Fix Lancer-patched libvorbis-aoTuV so it builds with GCC.
[vorbis-lancer-gcc.git] / vorbis-tools-1.2.0 / configure
blobcb6dc8e472368561efa39d6e7cfd64a795ca0049
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="oggenc/encode.c"
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 gt_needs=
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
820 INSTALL_PROGRAM
821 INSTALL_SCRIPT
822 INSTALL_DATA
823 am__isrc
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 MAINTAINER_MODE_TRUE
843 MAINTAINER_MODE_FALSE
844 MAINT
846 CFLAGS
847 LDFLAGS
848 CPPFLAGS
849 ac_ct_CC
850 EXEEXT
851 OBJEXT
852 DEPDIR
853 am__include
854 am__quote
855 AMDEP_TRUE
856 AMDEP_FALSE
857 AMDEPBACKSLASH
858 CCDEPMODE
859 am__fastdepCC_TRUE
860 am__fastdepCC_FALSE
861 GREP
862 EGREP
863 LN_S
864 ECHO
866 RANLIB
869 CXXFLAGS
870 ac_ct_CXX
871 CXXDEPMODE
872 am__fastdepCXX_TRUE
873 am__fastdepCXX_FALSE
874 CXXCPP
876 FFLAGS
877 ac_ct_F77
878 LIBTOOL
879 USE_NLS
880 MSGFMT
881 GMSGFMT
882 MSGFMT_015
883 GMSGFMT_015
884 XGETTEXT
885 XGETTEXT_015
886 MSGMERGE
887 GLIBC2
888 CFLAG_VISIBILITY
889 HAVE_VISIBILITY
890 ALLOCA
891 PRI_MACROS_BROKEN
892 LIBPTH
893 LTLIBPTH
894 LIBTHREAD
895 LTLIBTHREAD
896 LIBMULTITHREAD
897 LTLIBMULTITHREAD
898 LIBICONV
899 INTLBISON
900 GLIBC21
901 INTL_MACOSX_LIBS
902 HAVE_POSIX_PRINTF
903 HAVE_ASPRINTF
904 HAVE_SNPRINTF
905 HAVE_WPRINTF
906 WOE32DLL
907 BUILD_INCLUDED_LIBINTL
908 USE_INCLUDED_LIBINTL
909 CATOBJEXT
910 DATADIRNAME
911 INSTOBJEXT
912 GENCAT
913 INTLOBJS
914 INTL_LIBTOOL_SUFFIX_PREFIX
915 INTLLIBS
916 LIBINTL
917 LTLIBINTL
918 POSUB
919 HAVE_PKG_CONFIG
920 PKG_CONFIG
921 OGG_CFLAGS
922 OGG_LIBS
923 VORBIS_CFLAGS
924 VORBIS_LIBS
925 VORBISENC_LIBS
926 VORBISFILE_LIBS
927 CURL_CFLAGS
928 CURL_LIBS
929 AO_CFLAGS
930 AO_LIBS
931 PTHREAD_CC
932 PTHREAD_LIBS
933 PTHREAD_CFLAGS
934 HAVE_LIBFLAC_TRUE
935 HAVE_LIBFLAC_FALSE
936 FLAC_LIBS
937 HAVE_LIBSPEEX_TRUE
938 HAVE_LIBSPEEX_FALSE
939 SPEEX_LIBS
940 MANDIR
941 OPT_SUBDIRS
942 DEBUG
943 PROFILE
944 SOCKET_LIBS
945 SHARE_CFLAGS
946 SHARE_LIBS
947 I18N_CFLAGS
948 I18N_LIBS
949 LIBOBJS
950 LTLIBOBJS'
951 ac_subst_files=''
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
962 CXXFLAGS
964 CXXCPP
966 FFLAGS
967 PKG_CONFIG
968 OGG_CFLAGS
969 OGG_LIBS
970 VORBIS_CFLAGS
971 VORBIS_LIBS
972 CURL_CFLAGS
973 CURL_LIBS'
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1083 eval enable_$ac_feature=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1102 eval enable_$ac_feature=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1299 eval with_$ac_package=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1308 eval with_$ac_package=no ;;
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 esac
1351 done
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1372 done
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417 echo X"$0" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1426 /^X\(\/\/\)$/{
1427 s//\1/
1430 /^X\(\/\).*/{
1431 s//\1/
1434 s/.*/./; q'`
1435 srcdir=$ac_confdir
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 srcdir=..
1439 else
1440 ac_srcdir_defaulted=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1451 pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1485 Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529 _ACEOF
1531 cat <<\_ACEOF
1533 Program names:
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538 System types:
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1542 _ACEOF
1545 if test -n "$ac_init_help"; then
1547 cat <<\_ACEOF
1549 Optional Features:
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-maintainer-mode enable make rules and dependencies not useful
1553 (and sometimes confusing) to the casual installer
1554 --disable-dependency-tracking speeds up one-time build
1555 --enable-dependency-tracking do not reject slow dependency extractors
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --disable-nls do not use Native Language Support
1562 --enable-threads={posix|solaris|pth|win32}
1563 specify multithreading API
1564 --disable-threads build without multithread safety
1565 --disable-rpath do not hardcode runtime library paths
1566 --disable-largefile omit support for large files
1567 --disable-ogg123 Skip building ogg123
1568 --disable-oggdec Skip building oggdec
1569 --disable-oggenc Skip building oggenc
1570 --disable-ogginfo Skip building ogginfo
1571 --disable-vcut Skip building vcut
1572 --disable-vorbiscomment Skip building vorbiscomment
1573 --disable-oggtest Do not try to compile and run a test Ogg program
1574 --disable-vorbistest Do not try to compile and run a test Vorbis program
1575 --disable-curltest Do not try to compile and run a test libcurl program
1576 --disable-aotest Do not try to compile and run a test ao program
1578 Optional Packages:
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-pic try to use only PIC/non-PIC objects [default=use
1583 both]
1584 --with-tags[=TAGS] include additional configurations [automatic]
1585 --with-gnu-ld assume the C compiler uses GNU ld default=no
1586 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1587 --without-libpth-prefix don't search for libpth in includedir and libdir
1588 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1589 --with-included-gettext use the GNU gettext library included here
1590 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1591 --without-libintl-prefix don't search for libintl in includedir and libdir
1592 --without-flac Do not compile FLAC support
1593 --without-speex Do not compile Speex support
1594 --with-ogg=PFX Prefix where libogg is installed (optional)
1595 --with-ogg-libraries=DIR
1596 Directory where libogg library is installed
1597 (optional)
1598 --with-ogg-includes=DIR Directory where libogg header files are installed
1599 (optional)
1600 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
1601 --with-vorbis-libraries=DIR
1602 Directory where libvorbis library is installed
1603 (optional)
1604 --with-vorbis-includes=DIR
1605 Directory where libvorbis header files are installed
1606 (optional)
1607 --with-curl=PFX Prefix where libcurl is installed (optional)
1608 --with-curl-libraries=DIR Directory where libcurl library is installed (optional)
1609 --with-curl-includes=DIR Directory where libcurl header files are installed (optional)
1610 --with-ao=PFX Prefix where libao is installed (optional)
1611 --with-ao-libraries=DIR Directory where libao library is installed
1612 (optional)
1613 --with-ao-includes=DIR Directory where libao header files are installed
1614 (optional)
1616 Some influential environment variables:
1617 CC C compiler command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1620 nonstandard directory <lib dir>
1621 LIBS libraries to pass to the linker, e.g. -l<library>
1622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
1624 CPP C preprocessor
1625 CXX C++ compiler command
1626 CXXFLAGS C++ compiler flags
1627 CXXCPP C++ preprocessor
1628 F77 Fortran 77 compiler command
1629 FFLAGS Fortran 77 compiler flags
1630 PKG_CONFIG path to pkg-config utility
1631 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1632 OGG_LIBS linker flags for OGG, overriding pkg-config
1633 VORBIS_CFLAGS
1634 C compiler flags for VORBIS, overriding pkg-config
1635 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1636 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1637 CURL_LIBS linker flags for CURL, overriding pkg-config
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 _ACEOF
1643 ac_status=$?
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" || continue
1650 ac_builddir=.
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.61
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.61. Invocation command line was
1719 $ $0 $@
1721 _ACEOF
1722 exec 5>>config.log
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746 _ASUNAME
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1757 } >&5
1759 cat >&5 <<_ACEOF
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1766 _ACEOF
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1780 for ac_arg
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1811 esac
1812 done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1825 echo
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1841 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 *) $as_unset $ac_var ;;
1846 esac ;;
1847 esac
1848 done
1849 (set) 2>&1 |
1850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1851 *${as_nl}ac_space=\ *)
1852 sed -n \
1853 "s/'\''/'\''\\\\'\'''\''/g;
1854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1855 ;; #(
1857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859 esac |
1860 sort
1862 echo
1864 cat <<\_ASBOX
1865 ## ----------------- ##
1866 ## Output variables. ##
1867 ## ----------------- ##
1868 _ASBOX
1869 echo
1870 for ac_var in $ac_subst_vars
1872 eval ac_val=\$$ac_var
1873 case $ac_val in
1874 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 esac
1876 echo "$ac_var='\''$ac_val'\''"
1877 done | sort
1878 echo
1880 if test -n "$ac_subst_files"; then
1881 cat <<\_ASBOX
1882 ## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##
1885 _ASBOX
1886 echo
1887 for ac_var in $ac_subst_files
1889 eval ac_val=\$$ac_var
1890 case $ac_val in
1891 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892 esac
1893 echo "$ac_var='\''$ac_val'\''"
1894 done | sort
1895 echo
1898 if test -s confdefs.h; then
1899 cat <<\_ASBOX
1900 ## ----------- ##
1901 ## confdefs.h. ##
1902 ## ----------- ##
1903 _ASBOX
1904 echo
1905 cat confdefs.h
1906 echo
1908 test "$ac_signal" != 0 &&
1909 echo "$as_me: caught signal $ac_signal"
1910 echo "$as_me: exit $exit_status"
1911 } >&5
1912 rm -f core *.core core.conftest.* &&
1913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1914 exit $exit_status
1916 for ac_signal in 1 2 13 15; do
1917 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1918 done
1919 ac_signal=0
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1924 # Predefined preprocessor variables.
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_NAME "$PACKAGE_NAME"
1928 _ACEOF
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1933 _ACEOF
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1938 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 _ACEOF
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1948 _ACEOF
1951 # Let the site file select an alternate cache file if it wants to.
1952 # Prefer explicitly selected file to automatically selected ones.
1953 if test -n "$CONFIG_SITE"; then
1954 set x "$CONFIG_SITE"
1955 elif test "x$prefix" != xNONE; then
1956 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1957 else
1958 set x "$ac_default_prefix/share/config.site" \
1959 "$ac_default_prefix/etc/config.site"
1961 shift
1962 for ac_site_file
1964 if test -r "$ac_site_file"; then
1965 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 echo "$as_me: loading site script $ac_site_file" >&6;}
1967 sed 's/^/| /' "$ac_site_file" >&5
1968 . "$ac_site_file"
1970 done
1972 if test -r "$cache_file"; then
1973 # Some versions of bash will fail to source /dev/null (special
1974 # files actually), so we avoid doing that.
1975 if test -f "$cache_file"; then
1976 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 echo "$as_me: loading cache $cache_file" >&6;}
1978 case $cache_file in
1979 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980 *) . "./$cache_file";;
1981 esac
1983 else
1984 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 echo "$as_me: creating cache $cache_file" >&6;}
1986 >$cache_file
1989 gt_needs="$gt_needs "
1990 # Check that the precious variables saved in the cache have kept the same
1991 # value.
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
1999 set,)
2000 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,set)
2004 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2005 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2007 ,);;
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2011 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2012 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2013 echo "$as_me: former value: $ac_old_val" >&2;}
2014 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2015 echo "$as_me: current value: $ac_new_val" >&2;}
2016 ac_cache_corrupted=:
2017 fi;;
2018 esac
2019 # Pass precious variables to config.status.
2020 if test "$ac_new_set" = set; then
2021 case $ac_new_val in
2022 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 *) ac_arg=$ac_var=$ac_new_val ;;
2024 esac
2025 case " $ac_configure_args " in
2026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2027 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2028 esac
2030 done
2031 if $ac_cache_corrupted; then
2032 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2033 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2034 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2035 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2036 { (exit 1); exit 1; }; }
2055 ac_ext=c
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 ac_aux_dir=
2064 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2065 if test -f "$ac_dir/install-sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 break
2069 elif test -f "$ac_dir/install.sh"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 break
2073 elif test -f "$ac_dir/shtool"; then
2074 ac_aux_dir=$ac_dir
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 break
2078 done
2079 if test -z "$ac_aux_dir"; then
2080 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2081 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2082 { (exit 1); exit 1; }; }
2085 # These three variables are undocumented and unsupported,
2086 # and are intended to be withdrawn in a future Autoconf release.
2087 # They can cause serious problems if a builder's source tree is in a directory
2088 # whose full name contains unusual characters.
2089 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2090 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2091 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 # Make sure we can run config.sub.
2095 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2096 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2097 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2098 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: checking build system type" >&5
2101 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_build+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_build_alias=$build_alias
2106 test "x$ac_build_alias" = x &&
2107 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2108 test "x$ac_build_alias" = x &&
2109 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2110 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2111 { (exit 1); exit 1; }; }
2112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2119 echo "${ECHO_T}$ac_cv_build" >&6; }
2120 case $ac_cv_build in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2123 echo "$as_me: error: invalid value of canonical build" >&2;}
2124 { (exit 1); exit 1; }; };;
2125 esac
2126 build=$ac_cv_build
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_build
2129 shift
2130 build_cpu=$1
2131 build_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 build_os=$*
2136 IFS=$ac_save_IFS
2137 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140 { echo "$as_me:$LINENO: checking host system type" >&5
2141 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2142 if test "${ac_cv_host+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test "x$host_alias" = x; then
2146 ac_cv_host=$ac_cv_build
2147 else
2148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2156 echo "${ECHO_T}$ac_cv_host" >&6; }
2157 case $ac_cv_host in
2158 *-*-*) ;;
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2160 echo "$as_me: error: invalid value of canonical host" >&2;}
2161 { (exit 1); exit 1; }; };;
2162 esac
2163 host=$ac_cv_host
2164 ac_save_IFS=$IFS; IFS='-'
2165 set x $ac_cv_host
2166 shift
2167 host_cpu=$1
2168 host_vendor=$2
2169 shift; shift
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2172 host_os=$*
2173 IFS=$ac_save_IFS
2174 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177 { echo "$as_me:$LINENO: checking target system type" >&5
2178 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2179 if test "${ac_cv_target+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test "x$target_alias" = x; then
2183 ac_cv_target=$ac_cv_host
2184 else
2185 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2186 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2187 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2192 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2193 echo "${ECHO_T}$ac_cv_target" >&6; }
2194 case $ac_cv_target in
2195 *-*-*) ;;
2196 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2197 echo "$as_me: error: invalid value of canonical target" >&2;}
2198 { (exit 1); exit 1; }; };;
2199 esac
2200 target=$ac_cv_target
2201 ac_save_IFS=$IFS; IFS='-'
2202 set x $ac_cv_target
2203 shift
2204 target_cpu=$1
2205 target_vendor=$2
2206 shift; shift
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2209 target_os=$*
2210 IFS=$ac_save_IFS
2211 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2214 # The aliases save the names the user supplied, while $host etc.
2215 # will get canonicalized.
2216 test -n "$target_alias" &&
2217 test "$program_prefix$program_suffix$program_transform_name" = \
2218 NONENONEs,x,x, &&
2219 program_prefix=${target_alias}-
2223 am__api_version='1.10'
2225 # Find a good install program. We prefer a C program (faster),
2226 # so one script is as good as another. But avoid the broken or
2227 # incompatible versions:
2228 # SysV /etc/install, /usr/sbin/install
2229 # SunOS /usr/etc/install
2230 # IRIX /sbin/install
2231 # AIX /bin/install
2232 # AmigaOS /C/install, which installs bootblocks on floppy discs
2233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236 # OS/2's system install, which has a completely different semantic
2237 # ./install, which can be erroneously created by make from ./install.sh.
2238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2240 if test -z "$INSTALL"; then
2241 if test "${ac_cv_path_install+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 # Account for people who put trailing slashes in PATH elements.
2250 case $as_dir/ in
2251 ./ | .// | /cC/* | \
2252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2254 /usr/ucb/* ) ;;
2256 # OSF1 and SCO ODT 3.0 have their own names for install.
2257 # Don't use installbsd from OSF since it installs stuff as root
2258 # by default.
2259 for ac_prog in ginstall scoinst install; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2262 if test $ac_prog = install &&
2263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # AIX install. It has an incompatible calling convention.
2266 elif test $ac_prog = install &&
2267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # program-specific install script used by HP pwplus--don't use.
2270 else
2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2272 break 3
2275 done
2276 done
2278 esac
2279 done
2280 IFS=$as_save_IFS
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2286 else
2287 # As a last resort, use the slow shell script. Don't cache a
2288 # value for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the value is a relative name.
2291 INSTALL=$ac_install_sh
2294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2295 echo "${ECHO_T}$INSTALL" >&6; }
2297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298 # It thinks the first close brace ends the variable substitution.
2299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2305 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2306 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2307 # Just in case
2308 sleep 1
2309 echo timestamp > conftest.file
2310 # Do `set' in a subshell so we don't clobber the current shell's
2311 # arguments. Must try -L first in case configure is actually a
2312 # symlink; some systems play weird games with the mod time of symlinks
2313 # (eg FreeBSD returns the mod time of the symlink's containing
2314 # directory).
2315 if (
2316 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2317 if test "$*" = "X"; then
2318 # -L didn't work.
2319 set X `ls -t $srcdir/configure conftest.file`
2321 rm -f conftest.file
2322 if test "$*" != "X $srcdir/configure conftest.file" \
2323 && test "$*" != "X conftest.file $srcdir/configure"; then
2325 # If neither matched, then we have a broken ls. This can happen
2326 # if, for instance, CONFIG_SHELL is bash and it inherits a
2327 # broken ls alias from the environment. This has actually
2328 # happened. Such a system could not be considered "sane".
2329 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2330 alias in your environment" >&5
2331 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2332 alias in your environment" >&2;}
2333 { (exit 1); exit 1; }; }
2336 test "$2" = conftest.file
2338 then
2339 # Ok.
2341 else
2342 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2343 Check your system clock" >&5
2344 echo "$as_me: error: newly created file is older than distributed files!
2345 Check your system clock" >&2;}
2346 { (exit 1); exit 1; }; }
2348 { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2350 test "$program_prefix" != NONE &&
2351 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2352 # Use a double $ so make ignores it.
2353 test "$program_suffix" != NONE &&
2354 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2355 # Double any \ or $. echo might interpret backslashes.
2356 # By default was `s,x,x', remove it if useless.
2357 cat <<\_ACEOF >conftest.sed
2358 s/[\\$]/&&/g;s/;s,x,x,$//
2359 _ACEOF
2360 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2361 rm -f conftest.sed
2363 # expand $ac_aux_dir to an absolute path
2364 am_aux_dir=`cd $ac_aux_dir && pwd`
2366 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2367 # Use eval to expand $SHELL
2368 if eval "$MISSING --run true"; then
2369 am_missing_run="$MISSING --run "
2370 else
2371 am_missing_run=
2372 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2373 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2376 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2377 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2378 if test -z "$MKDIR_P"; then
2379 if test "${ac_cv_path_mkdir+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_prog in mkdir gmkdir; do
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2390 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2391 'mkdir (GNU coreutils) '* | \
2392 'mkdir (coreutils) '* | \
2393 'mkdir (fileutils) '4.1*)
2394 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2395 break 3;;
2396 esac
2397 done
2398 done
2399 done
2400 IFS=$as_save_IFS
2404 if test "${ac_cv_path_mkdir+set}" = set; then
2405 MKDIR_P="$ac_cv_path_mkdir -p"
2406 else
2407 # As a last resort, use the slow shell script. Don't cache a
2408 # value for MKDIR_P within a source directory, because that will
2409 # break other packages using the cache if that directory is
2410 # removed, or if the value is a relative name.
2411 test -d ./--version && rmdir ./--version
2412 MKDIR_P="$ac_install_sh -d"
2415 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2416 echo "${ECHO_T}$MKDIR_P" >&6; }
2418 mkdir_p="$MKDIR_P"
2419 case $mkdir_p in
2420 [\\/$]* | ?:[\\/]*) ;;
2421 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2422 esac
2424 for ac_prog in gawk mawk nawk awk
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_AWK+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 if test -n "$AWK"; then
2434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_AWK="$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2447 done
2448 done
2449 IFS=$as_save_IFS
2453 AWK=$ac_cv_prog_AWK
2454 if test -n "$AWK"; then
2455 { echo "$as_me:$LINENO: result: $AWK" >&5
2456 echo "${ECHO_T}$AWK" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2463 test -n "$AWK" && break
2464 done
2466 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2467 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2468 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2469 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 cat >conftest.make <<\_ACEOF
2473 SHELL = /bin/sh
2474 all:
2475 @echo '@@@%%%=$(MAKE)=@@@%%%'
2476 _ACEOF
2477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2479 *@@@%%%=?*=@@@%%%*)
2480 eval ac_cv_prog_make_${ac_make}_set=yes;;
2482 eval ac_cv_prog_make_${ac_make}_set=no;;
2483 esac
2484 rm -f conftest.make
2486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2487 { echo "$as_me:$LINENO: result: yes" >&5
2488 echo "${ECHO_T}yes" >&6; }
2489 SET_MAKE=
2490 else
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 SET_MAKE="MAKE=${MAKE-make}"
2496 rm -rf .tst 2>/dev/null
2497 mkdir .tst 2>/dev/null
2498 if test -d .tst; then
2499 am__leading_dot=.
2500 else
2501 am__leading_dot=_
2503 rmdir .tst 2>/dev/null
2505 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2506 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2507 # is not polluted with repeated "-I."
2508 am__isrc=' -I$(srcdir)'
2509 # test to see if srcdir already configured
2510 if test -f $srcdir/config.status; then
2511 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2512 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2513 { (exit 1); exit 1; }; }
2517 # test whether we have cygpath
2518 if test -z "$CYGPATH_W"; then
2519 if (cygpath --version) >/dev/null 2>/dev/null; then
2520 CYGPATH_W='cygpath -w'
2521 else
2522 CYGPATH_W=echo
2527 # Define the identity of the package.
2528 PACKAGE=vorbis-tools
2529 VERSION=1.2.0
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE "$PACKAGE"
2534 _ACEOF
2537 cat >>confdefs.h <<_ACEOF
2538 #define VERSION "$VERSION"
2539 _ACEOF
2541 # Some tools Automake needs.
2543 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2546 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2549 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2552 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2555 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2557 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2559 # Installed binaries are usually stripped using `strip' when the user
2560 # run `make install-strip'. However `strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the `STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}strip; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_STRIP+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2586 done
2587 done
2588 IFS=$as_save_IFS
2592 STRIP=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594 { echo "$as_me:$LINENO: result: $STRIP" >&5
2595 echo "${ECHO_T}$STRIP" >&6; }
2596 else
2597 { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2603 if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2626 done
2627 done
2628 IFS=$as_save_IFS
2632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2635 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2636 else
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&5
2649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet. If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 STRIP=$ac_ct_STRIP
2656 else
2657 STRIP="$ac_cv_prog_STRIP"
2661 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2663 # We need awk for the "check" target. The system "awk" is bad on
2664 # some platforms.
2665 # Always define AMTAR for backward compatibility.
2667 AMTAR=${AMTAR-"${am_missing_run}tar"}
2669 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2676 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2677 # Check whether --enable-maintainer-mode was given.
2678 if test "${enable_maintainer_mode+set}" = set; then
2679 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2680 else
2681 USE_MAINTAINER_MODE=no
2684 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2685 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2686 if test $USE_MAINTAINER_MODE = yes; then
2687 MAINTAINER_MODE_TRUE=
2688 MAINTAINER_MODE_FALSE='#'
2689 else
2690 MAINTAINER_MODE_TRUE='#'
2691 MAINTAINER_MODE_FALSE=
2694 MAINT=$MAINTAINER_MODE_TRUE
2698 ac_config_headers="$ac_config_headers config.h"
2702 cflags_save="$CFLAGS"
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2740 else
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2748 ac_ct_CC=$CC
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2772 IFS=$as_save_IFS
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2780 else
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_CC" = x; then
2786 CC=""
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 CC=$ac_ct_CC
2800 else
2801 CC="$ac_cv_prog_CC"
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2837 else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 ac_prog_rejected=no
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected=yes
2866 continue
2868 ac_cv_prog_CC="cc"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy $ac_cv_prog_CC
2879 shift
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2884 shift
2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2894 else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2936 else
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$CC" && break
2943 done
2945 if test -z "$CC"; then
2946 ac_ct_CC=$CC
2947 for ac_prog in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2980 else
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2986 test -n "$ac_ct_CC" && break
2987 done
2989 if test "x$ac_ct_CC" = x; then
2990 CC=""
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned=yes ;;
3001 esac
3002 CC=$ac_ct_CC
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (ac_try="$ac_compiler --version >&5"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try="$ac_compiler -V >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3081 ac_rmfiles=
3082 for ac_file in $ac_files
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087 esac
3088 done
3089 rm -f $ac_rmfiles
3091 if { (ac_try="$ac_link_default"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3105 # Autoconf.
3106 for ac_file in $ac_files ''
3108 test -f "$ac_file" || continue
3109 case $ac_file in
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3112 [ab].out )
3113 # We found the default executable, but exeext='' is most
3114 # certainly right.
3115 break;;
3116 *.* )
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118 then :; else
3119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3125 # actually working.
3126 break;;
3128 break;;
3129 esac
3130 done
3131 test "$ac_cv_exeext" = no && ac_cv_exeext=
3133 else
3134 ac_file=''
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3150 ac_exeext=$ac_cv_exeext
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 cross_compiling=no
3170 else
3171 if test "$cross_compiling" = maybe; then
3172 cross_compiling=yes
3173 else
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: cannot run C compiled programs.
3178 If you meant to cross compile, use \`--host'.
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe'), while it won't with
3211 # `rm'.
3212 for ac_file in conftest.exe conftest conftest.*; do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 break;;
3218 * ) break;;
3219 esac
3220 done
3221 else
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233 rm -f conftest.$ac_ext
3234 EXEEXT=$ac_cv_exeext
3235 ac_exeext=$EXEEXT
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3249 main ()
3253 return 0;
3255 _ACEOF
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 break;;
3273 esac
3274 done
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3291 ac_objext=$OBJEXT
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3305 main ()
3307 #ifndef __GNUC__
3308 choke me
3309 #endif
3312 return 0;
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3332 ac_compiler_gnu=yes
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 ac_compiler_gnu=no
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3356 ac_cv_prog_cc_g=no
3357 CFLAGS="-g"
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 main ()
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_prog_cc_g=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 CFLAGS=""
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3404 main ()
3408 return 0;
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 CFLAGS="-g"
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3443 main ()
3447 return 0;
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3467 ac_cv_prog_cc_g=yes
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3490 CFLAGS="-g -O2"
3491 else
3492 CFLAGS="-g"
3494 else
3495 if test "$GCC" = yes; then
3496 CFLAGS="-O2"
3497 else
3498 CFLAGS=
3501 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3502 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 ac_cv_prog_cc_c89=no
3507 ac_save_CC=$CC
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <stdarg.h>
3515 #include <stdio.h>
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3522 char **p;
3523 int i;
3525 return p[i];
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3529 char *s;
3530 va_list v;
3531 va_start (v,p);
3532 s = g (p, va_arg (v,int));
3533 va_end (v);
3534 return s;
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3548 #define FOO(x) 'x'
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 int argc;
3556 char **argv;
3558 main ()
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3562 return 0;
3564 _ACEOF
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x$ac_cv_prog_cc_c89" != "xno" && break
3596 done
3597 rm -f conftest.$ac_ext
3598 CC=$ac_save_CC
3601 # AC_CACHE_VAL
3602 case "x$ac_cv_prog_cc_c89" in
3604 { echo "$as_me:$LINENO: result: none needed" >&5
3605 echo "${ECHO_T}none needed" >&6; } ;;
3606 xno)
3607 { echo "$as_me:$LINENO: result: unsupported" >&5
3608 echo "${ECHO_T}unsupported" >&6; } ;;
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3613 esac
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 DEPDIR="${am__leading_dot}deps"
3623 ac_config_commands="$ac_config_commands depfiles"
3626 am_make=${MAKE-make}
3627 cat > confinc << 'END'
3628 am__doit:
3629 @echo done
3630 .PHONY: am__doit
3632 # If we don't find an include directive, just comment out the code.
3633 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3634 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3635 am__include="#"
3636 am__quote=
3637 _am_result=none
3638 # First try GNU make style include.
3639 echo "include confinc" > confmf
3640 # We grep out `Entering directory' and `Leaving directory'
3641 # messages which can occur if `w' ends up in MAKEFLAGS.
3642 # In particular we don't look at `^make:' because GNU make might
3643 # be invoked under some other name (usually "gmake"), in which
3644 # case it prints its new name instead of `make'.
3645 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3646 am__include=include
3647 am__quote=
3648 _am_result=GNU
3650 # Now try BSD make style include.
3651 if test "$am__include" = "#"; then
3652 echo '.include "confinc"' > confmf
3653 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3654 am__include=.include
3655 am__quote="\""
3656 _am_result=BSD
3661 { echo "$as_me:$LINENO: result: $_am_result" >&5
3662 echo "${ECHO_T}$_am_result" >&6; }
3663 rm -f confinc confmf
3665 # Check whether --enable-dependency-tracking was given.
3666 if test "${enable_dependency_tracking+set}" = set; then
3667 enableval=$enable_dependency_tracking;
3670 if test "x$enable_dependency_tracking" != xno; then
3671 am_depcomp="$ac_aux_dir/depcomp"
3672 AMDEPBACKSLASH='\'
3674 if test "x$enable_dependency_tracking" != xno; then
3675 AMDEP_TRUE=
3676 AMDEP_FALSE='#'
3677 else
3678 AMDEP_TRUE='#'
3679 AMDEP_FALSE=
3684 depcc="$CC" am_compiler_list=
3686 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3687 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named `D' -- because `-MD' means `put the output
3696 # in D'.
3697 mkdir conftest.dir
3698 # Copy depcomp to subdir because otherwise we won't find it if we're
3699 # using a relative directory.
3700 cp "$am_depcomp" conftest.dir
3701 cd conftest.dir
3702 # We will build objects and dependencies in a subdirectory because
3703 # it helps to detect inapplicable dependency modes. For instance
3704 # both Tru64's cc and ICC support -MD to output dependencies as a
3705 # side effect of compilation, but ICC will put the dependencies in
3706 # the current directory while Tru64 will put them in the object
3707 # directory.
3708 mkdir sub
3710 am_cv_CC_dependencies_compiler_type=none
3711 if test "$am_compiler_list" = ""; then
3712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 for depmode in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3722 : > sub/conftest.c
3723 for i in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3726 # Solaris 8's {/usr,}/bin/sh.
3727 touch sub/conftst$i.h
3728 done
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3731 case $depmode in
3732 nosideeffect)
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3736 continue
3737 else
3738 break
3741 none) break ;;
3742 esac
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this.
3746 if depmode=$depmode \
3747 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3750 >/dev/null 2>conftest.err &&
3751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3755 # icc doesn't choke on unknown options, it will just issue warnings
3756 # or remarks (even with -Werror). So we grep stderr for any message
3757 # that says an option was ignored or not supported.
3758 # When given -MP, icc 7.0 and 7.1 complain thusly:
3759 # icc: Command line warning: ignoring option '-M'; no argument required
3760 # The diagnosis changed in icc 8.0:
3761 # icc: Command line remark: option '-MP' not supported
3762 if (grep 'ignoring option' conftest.err ||
3763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3764 am_cv_CC_dependencies_compiler_type=$depmode
3765 break
3768 done
3770 cd ..
3771 rm -rf conftest.dir
3772 else
3773 am_cv_CC_dependencies_compiler_type=none
3777 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3778 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3779 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3782 test "x$enable_dependency_tracking" != xno \
3783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3784 am__fastdepCC_TRUE=
3785 am__fastdepCC_FALSE='#'
3786 else
3787 am__fastdepCC_TRUE='#'
3788 am__fastdepCC_FALSE=
3792 CFLAGS="$cflags_save"
3794 # Check whether --enable-shared was given.
3795 if test "${enable_shared+set}" = set; then
3796 enableval=$enable_shared; p=${PACKAGE-default}
3797 case $enableval in
3798 yes) enable_shared=yes ;;
3799 no) enable_shared=no ;;
3801 enable_shared=no
3802 # Look at the argument we got. We use all the common list separators.
3803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3804 for pkg in $enableval; do
3805 IFS="$lt_save_ifs"
3806 if test "X$pkg" = "X$p"; then
3807 enable_shared=yes
3809 done
3810 IFS="$lt_save_ifs"
3812 esac
3813 else
3814 enable_shared=yes
3818 # Check whether --enable-static was given.
3819 if test "${enable_static+set}" = set; then
3820 enableval=$enable_static; p=${PACKAGE-default}
3821 case $enableval in
3822 yes) enable_static=yes ;;
3823 no) enable_static=no ;;
3825 enable_static=no
3826 # Look at the argument we got. We use all the common list separators.
3827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3828 for pkg in $enableval; do
3829 IFS="$lt_save_ifs"
3830 if test "X$pkg" = "X$p"; then
3831 enable_static=yes
3833 done
3834 IFS="$lt_save_ifs"
3836 esac
3837 else
3838 enable_static=yes
3842 # Check whether --enable-fast-install was given.
3843 if test "${enable_fast_install+set}" = set; then
3844 enableval=$enable_fast_install; p=${PACKAGE-default}
3845 case $enableval in
3846 yes) enable_fast_install=yes ;;
3847 no) enable_fast_install=no ;;
3849 enable_fast_install=no
3850 # Look at the argument we got. We use all the common list separators.
3851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852 for pkg in $enableval; do
3853 IFS="$lt_save_ifs"
3854 if test "X$pkg" = "X$p"; then
3855 enable_fast_install=yes
3857 done
3858 IFS="$lt_save_ifs"
3860 esac
3861 else
3862 enable_fast_install=yes
3866 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3867 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3868 if test "${lt_cv_path_SED+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 # Loop through the user's path and test for sed and gsed.
3872 # Then use that list of sed's as ones to test for truncation.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for lt_ac_prog in sed gsed; do
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3881 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3883 done
3884 done
3885 done
3886 lt_ac_max=0
3887 lt_ac_count=0
3888 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3889 # along with /bin/sed that truncates output.
3890 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3891 test ! -f $lt_ac_sed && continue
3892 cat /dev/null > conftest.in
3893 lt_ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3895 # Check for GNU sed and select it if it is found.
3896 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3897 lt_cv_path_SED=$lt_ac_sed
3898 break
3900 while true; do
3901 cat conftest.in conftest.in >conftest.tmp
3902 mv conftest.tmp conftest.in
3903 cp conftest.in conftest.nl
3904 echo >>conftest.nl
3905 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3906 cmp -s conftest.out conftest.nl || break
3907 # 10000 chars as input seems more than enough
3908 test $lt_ac_count -gt 10 && break
3909 lt_ac_count=`expr $lt_ac_count + 1`
3910 if test $lt_ac_count -gt $lt_ac_max; then
3911 lt_ac_max=$lt_ac_count
3912 lt_cv_path_SED=$lt_ac_sed
3914 done
3915 done
3919 SED=$lt_cv_path_SED
3920 { echo "$as_me:$LINENO: result: $SED" >&5
3921 echo "${ECHO_T}$SED" >&6; }
3923 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 # Extract the first word of "grep ggrep" to use in msg output
3929 if test -z "$GREP"; then
3930 set dummy grep ggrep; ac_prog_name=$2
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3948 *GNU*)
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3951 ac_count=0
3952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3953 while :
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 ac_count=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3974 $ac_path_GREP_found && break 3
3975 done
3976 done
3978 done
3979 IFS=$as_save_IFS
3984 GREP="$ac_cv_path_GREP"
3985 if test -z "$GREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3991 else
3992 ac_cv_path_GREP=$GREP
3997 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3999 GREP="$ac_cv_path_GREP"
4002 { echo "$as_me:$LINENO: checking for egrep" >&5
4003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004 if test "${ac_cv_path_EGREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008 then ac_cv_path_EGREP="$GREP -E"
4009 else
4010 # Extract the first word of "egrep" to use in msg output
4011 if test -z "$EGREP"; then
4012 set dummy egrep; ac_prog_name=$2
4013 if test "${ac_cv_path_EGREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 ac_path_EGREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in egrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
4028 # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4030 *GNU*)
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4033 ac_count=0
4034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035 while :
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 echo 'EGREP' >> "conftest.nl"
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 ac_count=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4051 done
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4056 $ac_path_EGREP_found && break 3
4057 done
4058 done
4060 done
4061 IFS=$as_save_IFS
4066 EGREP="$ac_cv_path_EGREP"
4067 if test -z "$EGREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4073 else
4074 ac_cv_path_EGREP=$EGREP
4080 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4082 EGREP="$ac_cv_path_EGREP"
4086 # Check whether --with-gnu-ld was given.
4087 if test "${with_gnu_ld+set}" = set; then
4088 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4089 else
4090 with_gnu_ld=no
4093 ac_prog=ld
4094 if test "$GCC" = yes; then
4095 # Check if gcc -print-prog-name=ld gives a path.
4096 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4097 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4098 case $host in
4099 *-*-mingw*)
4100 # gcc leaves a trailing carriage return which upsets mingw
4101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4104 esac
4105 case $ac_prog in
4106 # Accept absolute paths.
4107 [\\/]* | ?:[\\/]*)
4108 re_direlt='/[^/][^/]*/\.\./'
4109 # Canonicalize the pathname of ld
4110 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4111 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4112 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4113 done
4114 test -z "$LD" && LD="$ac_prog"
4117 # If it fails, then pretend we aren't using GCC.
4118 ac_prog=ld
4121 # If it is relative, then search for the first ld in PATH.
4122 with_gnu_ld=unknown
4124 esac
4125 elif test "$with_gnu_ld" = yes; then
4126 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4127 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4128 else
4129 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4130 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4132 if test "${lt_cv_path_LD+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 if test -z "$LD"; then
4136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4137 for ac_dir in $PATH; do
4138 IFS="$lt_save_ifs"
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4141 lt_cv_path_LD="$ac_dir/$ac_prog"
4142 # Check to see if the program is GNU ld. I'd rather use --version,
4143 # but apparently some variants of GNU ld only accept -v.
4144 # Break only if it was the GNU/non-GNU ld that we prefer.
4145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4146 *GNU* | *'with BFD'*)
4147 test "$with_gnu_ld" != no && break
4150 test "$with_gnu_ld" != yes && break
4152 esac
4154 done
4155 IFS="$lt_save_ifs"
4156 else
4157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4161 LD="$lt_cv_path_LD"
4162 if test -n "$LD"; then
4163 { echo "$as_me:$LINENO: result: $LD" >&5
4164 echo "${ECHO_T}$LD" >&6; }
4165 else
4166 { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4169 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4170 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4171 { (exit 1); exit 1; }; }
4172 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4173 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4174 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4178 case `$LD -v 2>&1 </dev/null` in
4179 *GNU* | *'with BFD'*)
4180 lt_cv_prog_gnu_ld=yes
4183 lt_cv_prog_gnu_ld=no
4185 esac
4187 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4188 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4189 with_gnu_ld=$lt_cv_prog_gnu_ld
4192 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4193 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4194 if test "${lt_cv_ld_reload_flag+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 lt_cv_ld_reload_flag='-r'
4199 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4200 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4201 reload_flag=$lt_cv_ld_reload_flag
4202 case $reload_flag in
4203 "" | " "*) ;;
4204 *) reload_flag=" $reload_flag" ;;
4205 esac
4206 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4207 case $host_os in
4208 darwin*)
4209 if test "$GCC" = yes; then
4210 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4211 else
4212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4215 esac
4217 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4218 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4219 if test "${lt_cv_path_NM+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 if test -n "$NM"; then
4223 # Let the user override the test.
4224 lt_cv_path_NM="$NM"
4225 else
4226 lt_nm_to_check="${ac_tool_prefix}nm"
4227 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4228 lt_nm_to_check="$lt_nm_to_check nm"
4230 for lt_tmp_nm in $lt_nm_to_check; do
4231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4232 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4233 IFS="$lt_save_ifs"
4234 test -z "$ac_dir" && ac_dir=.
4235 tmp_nm="$ac_dir/$lt_tmp_nm"
4236 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4237 # Check to see if the nm accepts a BSD-compat flag.
4238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239 # nm: unknown option "B" ignored
4240 # Tru64's nm complains that /dev/null is an invalid object file
4241 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4242 */dev/null* | *'Invalid file or object type'*)
4243 lt_cv_path_NM="$tmp_nm -B"
4244 break
4247 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4248 */dev/null*)
4249 lt_cv_path_NM="$tmp_nm -p"
4250 break
4253 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4254 continue # so that we can try to find one that supports BSD flags
4256 esac
4258 esac
4260 done
4261 IFS="$lt_save_ifs"
4262 done
4263 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4266 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4267 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4268 NM="$lt_cv_path_NM"
4270 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4272 LN_S=$as_ln_s
4273 if test "$LN_S" = "ln -s"; then
4274 { echo "$as_me:$LINENO: result: yes" >&5
4275 echo "${ECHO_T}yes" >&6; }
4276 else
4277 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4278 echo "${ECHO_T}no, using $LN_S" >&6; }
4281 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4282 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4283 if test "${lt_cv_deplibs_check_method+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 lt_cv_file_magic_cmd='$MAGIC_CMD'
4287 lt_cv_file_magic_test_file=
4288 lt_cv_deplibs_check_method='unknown'
4289 # Need to set the preceding variable on all platforms that support
4290 # interlibrary dependencies.
4291 # 'none' -- dependencies not supported.
4292 # `unknown' -- same as none, but documents that we really don't know.
4293 # 'pass_all' -- all dependencies passed with no checks.
4294 # 'test_compile' -- check by making test program.
4295 # 'file_magic [[regex]]' -- check by looking for files in library path
4296 # which responds to the $file_magic_cmd with a given extended regex.
4297 # If you have `file' or equivalent on your system and you're not sure
4298 # whether `pass_all' will *always* work, you probably want this one.
4300 case $host_os in
4301 aix4* | aix5*)
4302 lt_cv_deplibs_check_method=pass_all
4305 beos*)
4306 lt_cv_deplibs_check_method=pass_all
4309 bsdi[45]*)
4310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4311 lt_cv_file_magic_cmd='/usr/bin/file -L'
4312 lt_cv_file_magic_test_file=/shlib/libc.so
4315 cygwin*)
4316 # func_win32_libid is a shell function defined in ltmain.sh
4317 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318 lt_cv_file_magic_cmd='func_win32_libid'
4321 mingw* | pw32*)
4322 # Base MSYS/MinGW do not provide the 'file' command needed by
4323 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4324 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4325 lt_cv_file_magic_cmd='$OBJDUMP -f'
4328 darwin* | rhapsody*)
4329 lt_cv_deplibs_check_method=pass_all
4332 freebsd* | dragonfly*)
4333 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4334 case $host_cpu in
4335 i*86 )
4336 # Not sure whether the presence of OpenBSD here was a mistake.
4337 # Let's accept both of them until this is cleared up.
4338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4339 lt_cv_file_magic_cmd=/usr/bin/file
4340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4342 esac
4343 else
4344 lt_cv_deplibs_check_method=pass_all
4348 gnu*)
4349 lt_cv_deplibs_check_method=pass_all
4352 hpux10.20* | hpux11*)
4353 lt_cv_file_magic_cmd=/usr/bin/file
4354 case $host_cpu in
4355 ia64*)
4356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4359 hppa*64*)
4360 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]'
4361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4365 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4367 esac
4370 interix3*)
4371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4375 irix5* | irix6* | nonstopux*)
4376 case $LD in
4377 *-32|*"-32 ") libmagic=32-bit;;
4378 *-n32|*"-n32 ") libmagic=N32;;
4379 *-64|*"-64 ") libmagic=64-bit;;
4380 *) libmagic=never-match;;
4381 esac
4382 lt_cv_deplibs_check_method=pass_all
4385 # This must be Linux ELF.
4386 linux* | k*bsd*-gnu)
4387 lt_cv_deplibs_check_method=pass_all
4390 netbsd* | netbsdelf*-gnu)
4391 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4393 else
4394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4398 newos6*)
4399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4400 lt_cv_file_magic_cmd=/usr/bin/file
4401 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4404 nto-qnx*)
4405 lt_cv_deplibs_check_method=unknown
4408 openbsd*)
4409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4411 else
4412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4416 osf3* | osf4* | osf5*)
4417 lt_cv_deplibs_check_method=pass_all
4420 solaris*)
4421 lt_cv_deplibs_check_method=pass_all
4424 sysv4 | sysv4.3*)
4425 case $host_vendor in
4426 motorola)
4427 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]'
4428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4430 ncr)
4431 lt_cv_deplibs_check_method=pass_all
4433 sequent)
4434 lt_cv_file_magic_cmd='/bin/file'
4435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4437 sni)
4438 lt_cv_file_magic_cmd='/bin/file'
4439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4440 lt_cv_file_magic_test_file=/lib/libc.so
4442 siemens)
4443 lt_cv_deplibs_check_method=pass_all
4446 lt_cv_deplibs_check_method=pass_all
4448 esac
4451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4452 lt_cv_deplibs_check_method=pass_all
4454 esac
4457 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4458 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4459 file_magic_cmd=$lt_cv_file_magic_cmd
4460 deplibs_check_method=$lt_cv_deplibs_check_method
4461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4466 # If no C compiler was specified, use CC.
4467 LTCC=${LTCC-"$CC"}
4469 # If no C compiler flags were specified, use CFLAGS.
4470 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4472 # Allow CC to be a program name with arguments.
4473 compiler=$CC
4476 # Check whether --enable-libtool-lock was given.
4477 if test "${enable_libtool_lock+set}" = set; then
4478 enableval=$enable_libtool_lock;
4481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4483 # Some flags need to be propagated to the compiler or linker for good
4484 # libtool support.
4485 case $host in
4486 ia64-*-hpux*)
4487 # Find out which ABI we are using.
4488 echo 'int i;' > conftest.$ac_ext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 case `/usr/bin/file conftest.$ac_objext` in
4495 *ELF-32*)
4496 HPUX_IA64_MODE="32"
4498 *ELF-64*)
4499 HPUX_IA64_MODE="64"
4501 esac
4503 rm -rf conftest*
4505 *-*-irix6*)
4506 # Find out which ABI we are using.
4507 echo '#line 4507 "configure"' > conftest.$ac_ext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; then
4513 if test "$lt_cv_prog_gnu_ld" = yes; then
4514 case `/usr/bin/file conftest.$ac_objext` in
4515 *32-bit*)
4516 LD="${LD-ld} -melf32bsmip"
4518 *N32*)
4519 LD="${LD-ld} -melf32bmipn32"
4521 *64-bit*)
4522 LD="${LD-ld} -melf64bmip"
4524 esac
4525 else
4526 case `/usr/bin/file conftest.$ac_objext` in
4527 *32-bit*)
4528 LD="${LD-ld} -32"
4530 *N32*)
4531 LD="${LD-ld} -n32"
4533 *64-bit*)
4534 LD="${LD-ld} -64"
4536 esac
4539 rm -rf conftest*
4542 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4543 # Find out which ABI we are using.
4544 echo 'int i;' > conftest.$ac_ext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; then
4550 case `/usr/bin/file conftest.o` in
4551 *32-bit*)
4552 case $host in
4553 x86_64-*linux*)
4554 LD="${LD-ld} -m elf_i386"
4556 ppc64-*linux*|powerpc64-*linux*)
4557 LD="${LD-ld} -m elf32ppclinux"
4559 s390x-*linux*)
4560 LD="${LD-ld} -m elf_s390"
4562 sparc64-*linux*)
4563 LD="${LD-ld} -m elf32_sparc"
4565 esac
4567 *64-bit*)
4568 case $host in
4569 x86_64-*linux*)
4570 LD="${LD-ld} -m elf_x86_64"
4572 ppc*-*linux*|powerpc*-*linux*)
4573 LD="${LD-ld} -m elf64ppc"
4575 s390*-*linux*)
4576 LD="${LD-ld} -m elf64_s390"
4578 sparc*-*linux*)
4579 LD="${LD-ld} -m elf64_sparc"
4581 esac
4583 esac
4585 rm -rf conftest*
4588 *-*-sco3.2v5*)
4589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4590 SAVE_CFLAGS="$CFLAGS"
4591 CFLAGS="$CFLAGS -belf"
4592 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4593 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4594 if test "${lt_cv_cc_needs_belf+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4611 main ()
4615 return 0;
4617 _ACEOF
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (ac_try="$ac_link"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_link") 2>conftest.er1
4626 ac_status=$?
4627 grep -v '^ *+' conftest.er1 >conftest.err
4628 rm -f conftest.er1
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && {
4632 test -z "$ac_c_werror_flag" ||
4633 test ! -s conftest.err
4634 } && test -s conftest$ac_exeext &&
4635 $as_test_x conftest$ac_exeext; then
4636 lt_cv_cc_needs_belf=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 lt_cv_cc_needs_belf=no
4644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4645 conftest$ac_exeext conftest.$ac_ext
4646 ac_ext=c
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4654 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4655 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4656 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4657 CFLAGS="$SAVE_CFLAGS"
4660 sparc*-*solaris*)
4661 # Find out which ABI we are using.
4662 echo 'int i;' > conftest.$ac_ext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; then
4668 case `/usr/bin/file conftest.o` in
4669 *64-bit*)
4670 case $lt_cv_prog_gnu_ld in
4671 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4672 *) LD="${LD-ld} -64" ;;
4673 esac
4675 esac
4677 rm -rf conftest*
4681 esac
4683 need_locks="$enable_libtool_lock"
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4695 CPP=
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 # Double quotes because CPP needs to be expanded
4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4704 ac_preproc_ok=false
4705 for ac_c_preproc_warn_flag in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #ifdef __STDC__
4720 # include <limits.h>
4721 #else
4722 # include <assert.h>
4723 #endif
4724 Syntax error
4725 _ACEOF
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 }; then
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4748 continue
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 }; then
4779 # Broken: success on invalid input.
4780 continue
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Passes both tests.
4786 ac_preproc_ok=:
4787 break
4790 rm -f conftest.err conftest.$ac_ext
4792 done
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.$ac_ext
4795 if $ac_preproc_ok; then
4796 break
4799 done
4800 ac_cv_prog_CPP=$CPP
4803 CPP=$ac_cv_prog_CPP
4804 else
4805 ac_cv_prog_CPP=$CPP
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829 Syntax error
4830 _ACEOF
4831 if { (ac_try="$ac_cpp conftest.$ac_ext"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 }; then
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4853 continue
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 }; then
4884 # Broken: success on invalid input.
4885 continue
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4895 rm -f conftest.err conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then
4902 else
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4918 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4919 if test "${ac_cv_header_stdc+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <stdlib.h>
4929 #include <stdarg.h>
4930 #include <string.h>
4931 #include <float.h>
4934 main ()
4938 return 0;
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_cv_header_stdc=yes
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ac_cv_header_stdc=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 if test $ac_cv_header_stdc = yes; then
4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <string.h>
4978 _ACEOF
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980 $EGREP "memchr" >/dev/null 2>&1; then
4982 else
4983 ac_cv_header_stdc=no
4985 rm -f conftest*
4989 if test $ac_cv_header_stdc = yes; then
4990 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include <stdlib.h>
4999 _ACEOF
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 $EGREP "free" >/dev/null 2>&1; then
5003 else
5004 ac_cv_header_stdc=no
5006 rm -f conftest*
5010 if test $ac_cv_header_stdc = yes; then
5011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5012 if test "$cross_compiling" = yes; then
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <ctype.h>
5022 #include <stdlib.h>
5023 #if ((' ' & 0x0FF) == 0x020)
5024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5026 #else
5027 # define ISLOWER(c) \
5028 (('a' <= (c) && (c) <= 'i') \
5029 || ('j' <= (c) && (c) <= 'r') \
5030 || ('s' <= (c) && (c) <= 'z'))
5031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5032 #endif
5034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5036 main ()
5038 int i;
5039 for (i = 0; i < 256; i++)
5040 if (XOR (islower (i), ISLOWER (i))
5041 || toupper (i) != TOUPPER (i))
5042 return 2;
5043 return 0;
5045 _ACEOF
5046 rm -f conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_link") 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057 { (case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_try") 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5067 else
5068 echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 ( exit $ac_status )
5073 ac_cv_header_stdc=no
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5082 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5083 if test $ac_cv_header_stdc = yes; then
5085 cat >>confdefs.h <<\_ACEOF
5086 #define STDC_HEADERS 1
5087 _ACEOF
5091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5102 inttypes.h stdint.h unistd.h
5104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5118 #include <$ac_header>
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (ac_try="$ac_compile"
5122 case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.$ac_objext; then
5137 eval "$as_ac_Header=yes"
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 eval "$as_ac_Header=no"
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 ac_res=`eval echo '${'$as_ac_Header'}'`
5148 { echo "$as_me:$LINENO: result: $ac_res" >&5
5149 echo "${ECHO_T}$ac_res" >&6; }
5150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153 _ACEOF
5157 done
5161 for ac_header in dlfcn.h
5163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 ac_res=`eval echo '${'$as_ac_Header'}'`
5171 { echo "$as_me:$LINENO: result: $ac_res" >&5
5172 echo "${ECHO_T}$ac_res" >&6; }
5173 else
5174 # Is the header compilable?
5175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 $ac_includes_default
5184 #include <$ac_header>
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (ac_try="$ac_compile"
5188 case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191 esac
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_compile") 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && {
5200 test -z "$ac_c_werror_flag" ||
5201 test ! -s conftest.err
5202 } && test -s conftest.$ac_objext; then
5203 ac_header_compiler=yes
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_header_compiler=no
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213 echo "${ECHO_T}$ac_header_compiler" >&6; }
5215 # Is the header present?
5216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <$ac_header>
5225 _ACEOF
5226 if { (ac_try="$ac_cpp conftest.$ac_ext"
5227 case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } >/dev/null && {
5239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 }; then
5242 ac_header_preproc=yes
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_header_preproc=no
5250 rm -f conftest.err conftest.$ac_ext
5251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5252 echo "${ECHO_T}$ac_header_preproc" >&6; }
5254 # So? What about this header?
5255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5256 yes:no: )
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5261 ac_header_preproc=yes
5263 no:yes:* )
5264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5278 esac
5279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 eval "$as_ac_Header=\$ac_header_preproc"
5286 ac_res=`eval echo '${'$as_ac_Header'}'`
5287 { echo "$as_me:$LINENO: result: $ac_res" >&5
5288 echo "${ECHO_T}$ac_res" >&6; }
5291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292 cat >>confdefs.h <<_ACEOF
5293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294 _ACEOF
5298 done
5300 ac_ext=cpp
5301 ac_cpp='$CXXCPP $CPPFLAGS'
5302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5305 if test -z "$CXX"; then
5306 if test -n "$CCC"; then
5307 CXX=$CCC
5308 else
5309 if test -n "$ac_tool_prefix"; then
5310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316 if test "${ac_cv_prog_CXX+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 if test -n "$CXX"; then
5320 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5335 IFS=$as_save_IFS
5339 CXX=$ac_cv_prog_CXX
5340 if test -n "$CXX"; then
5341 { echo "$as_me:$LINENO: result: $CXX" >&5
5342 echo "${ECHO_T}$CXX" >&6; }
5343 else
5344 { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5349 test -n "$CXX" && break
5350 done
5352 if test -z "$CXX"; then
5353 ac_ct_CXX=$CXX
5354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5356 # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy $ac_prog; ac_word=$2
5358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 if test -n "$ac_ct_CXX"; then
5364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_CXX="$ac_prog"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5379 IFS=$as_save_IFS
5383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5384 if test -n "$ac_ct_CXX"; then
5385 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5386 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5387 else
5388 { echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6; }
5393 test -n "$ac_ct_CXX" && break
5394 done
5396 if test "x$ac_ct_CXX" = x; then
5397 CXX="g++"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5402 whose name does not start with the host triplet. If you think this
5403 configuration is useful to you, please write to autoconf@gnu.org." >&5
5404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5405 whose name does not start with the host triplet. If you think this
5406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 CXX=$ac_ct_CXX
5415 # Provide some information about the compiler.
5416 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5417 ac_compiler=`set X $ac_compile; echo $2`
5418 { (ac_try="$ac_compiler --version >&5"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compiler --version >&5") 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }
5428 { (ac_try="$ac_compiler -v >&5"
5429 case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compiler -v >&5") 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }
5438 { (ac_try="$ac_compiler -V >&5"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compiler -V >&5") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5449 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5462 main ()
5464 #ifndef __GNUC__
5465 choke me
5466 #endif
5469 return 0;
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5474 case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_cxx_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.$ac_objext; then
5489 ac_compiler_gnu=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ac_compiler_gnu=no
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5501 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5502 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5503 GXX=`test $ac_compiler_gnu = yes && echo yes`
5504 ac_test_CXXFLAGS=${CXXFLAGS+set}
5505 ac_save_CXXFLAGS=$CXXFLAGS
5506 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5508 if test "${ac_cv_prog_cxx_g+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5512 ac_cxx_werror_flag=yes
5513 ac_cv_prog_cxx_g=no
5514 CXXFLAGS="-g"
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5523 main ()
5527 return 0;
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_cxx_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547 ac_cv_prog_cxx_g=yes
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 CXXFLAGS=""
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5561 main ()
5565 return 0;
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_cxx_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5591 CXXFLAGS="-g"
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5600 main ()
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_cxx_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_prog_cxx_g=yes
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5643 if test "$ac_test_CXXFLAGS" = set; then
5644 CXXFLAGS=$ac_save_CXXFLAGS
5645 elif test $ac_cv_prog_cxx_g = yes; then
5646 if test "$GXX" = yes; then
5647 CXXFLAGS="-g -O2"
5648 else
5649 CXXFLAGS="-g"
5651 else
5652 if test "$GXX" = yes; then
5653 CXXFLAGS="-O2"
5654 else
5655 CXXFLAGS=
5658 ac_ext=cpp
5659 ac_cpp='$CXXCPP $CPPFLAGS'
5660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664 depcc="$CXX" am_compiler_list=
5666 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5667 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5668 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5672 # We make a subdir and do the tests there. Otherwise we can end up
5673 # making bogus files that we don't know about and never remove. For
5674 # instance it was reported that on HP-UX the gcc test will end up
5675 # making a dummy file named `D' -- because `-MD' means `put the output
5676 # in D'.
5677 mkdir conftest.dir
5678 # Copy depcomp to subdir because otherwise we won't find it if we're
5679 # using a relative directory.
5680 cp "$am_depcomp" conftest.dir
5681 cd conftest.dir
5682 # We will build objects and dependencies in a subdirectory because
5683 # it helps to detect inapplicable dependency modes. For instance
5684 # both Tru64's cc and ICC support -MD to output dependencies as a
5685 # side effect of compilation, but ICC will put the dependencies in
5686 # the current directory while Tru64 will put them in the object
5687 # directory.
5688 mkdir sub
5690 am_cv_CXX_dependencies_compiler_type=none
5691 if test "$am_compiler_list" = ""; then
5692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5694 for depmode in $am_compiler_list; do
5695 # Setup a source with many dependencies, because some compilers
5696 # like to wrap large dependency lists on column 80 (with \), and
5697 # we should not choose a depcomp mode which is confused by this.
5699 # We need to recreate these files for each test, as the compiler may
5700 # overwrite some of them when testing with obscure command lines.
5701 # This happens at least with the AIX C compiler.
5702 : > sub/conftest.c
5703 for i in 1 2 3 4 5 6; do
5704 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5705 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5706 # Solaris 8's {/usr,}/bin/sh.
5707 touch sub/conftst$i.h
5708 done
5709 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5711 case $depmode in
5712 nosideeffect)
5713 # after this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested
5715 if test "x$enable_dependency_tracking" = xyes; then
5716 continue
5717 else
5718 break
5721 none) break ;;
5722 esac
5723 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5724 # mode. It turns out that the SunPro C++ compiler does not properly
5725 # handle `-M -o', and we need to detect this.
5726 if depmode=$depmode \
5727 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5729 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5730 >/dev/null 2>conftest.err &&
5731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5733 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5735 # icc doesn't choke on unknown options, it will just issue warnings
5736 # or remarks (even with -Werror). So we grep stderr for any message
5737 # that says an option was ignored or not supported.
5738 # When given -MP, icc 7.0 and 7.1 complain thusly:
5739 # icc: Command line warning: ignoring option '-M'; no argument required
5740 # The diagnosis changed in icc 8.0:
5741 # icc: Command line remark: option '-MP' not supported
5742 if (grep 'ignoring option' conftest.err ||
5743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5744 am_cv_CXX_dependencies_compiler_type=$depmode
5745 break
5748 done
5750 cd ..
5751 rm -rf conftest.dir
5752 else
5753 am_cv_CXX_dependencies_compiler_type=none
5757 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5758 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5759 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5762 test "x$enable_dependency_tracking" != xno \
5763 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5764 am__fastdepCXX_TRUE=
5765 am__fastdepCXX_FALSE='#'
5766 else
5767 am__fastdepCXX_TRUE='#'
5768 am__fastdepCXX_FALSE=
5774 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5775 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5776 (test "X$CXX" != "Xg++"))) ; then
5777 ac_ext=cpp
5778 ac_cpp='$CXXCPP $CPPFLAGS'
5779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5782 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5783 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5784 if test -z "$CXXCPP"; then
5785 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788 # Double quotes because CXXCPP needs to be expanded
5789 for CXXCPP in "$CXX -E" "/lib/cpp"
5791 ac_preproc_ok=false
5792 for ac_cxx_preproc_warn_flag in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 #ifdef __STDC__
5807 # include <limits.h>
5808 #else
5809 # include <assert.h>
5810 #endif
5811 Syntax error
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827 test ! -s conftest.err
5828 }; then
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 # Broken: fails on valid input.
5835 continue
5838 rm -f conftest.err conftest.$ac_ext
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <ac_nonexistent.h>
5849 _ACEOF
5850 if { (ac_try="$ac_cpp conftest.$ac_ext"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 # Broken: success on invalid input.
5867 continue
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 # Passes both tests.
5873 ac_preproc_ok=:
5874 break
5877 rm -f conftest.err conftest.$ac_ext
5879 done
5880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881 rm -f conftest.err conftest.$ac_ext
5882 if $ac_preproc_ok; then
5883 break
5886 done
5887 ac_cv_prog_CXXCPP=$CXXCPP
5890 CXXCPP=$ac_cv_prog_CXXCPP
5891 else
5892 ac_cv_prog_CXXCPP=$CXXCPP
5894 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5895 echo "${ECHO_T}$CXXCPP" >&6; }
5896 ac_preproc_ok=false
5897 for ac_cxx_preproc_warn_flag in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #ifdef __STDC__
5912 # include <limits.h>
5913 #else
5914 # include <assert.h>
5915 #endif
5916 Syntax error
5917 _ACEOF
5918 if { (ac_try="$ac_cpp conftest.$ac_ext"
5919 case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } >/dev/null && {
5931 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932 test ! -s conftest.err
5933 }; then
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 # Broken: fails on valid input.
5940 continue
5943 rm -f conftest.err conftest.$ac_ext
5945 # OK, works on sane cases. Now check whether nonexistent headers
5946 # can be detected and how.
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <ac_nonexistent.h>
5954 _ACEOF
5955 if { (ac_try="$ac_cpp conftest.$ac_ext"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 # Broken: success on invalid input.
5972 continue
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 # Passes both tests.
5978 ac_preproc_ok=:
5979 break
5982 rm -f conftest.err conftest.$ac_ext
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then
5989 else
5990 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5991 See \`config.log' for more details." >&5
5992 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5993 See \`config.log' for more details." >&2;}
5994 { (exit 1); exit 1; }; }
5997 ac_ext=cpp
5998 ac_cpp='$CXXCPP $CPPFLAGS'
5999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6006 ac_ext=f
6007 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6008 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6010 if test -n "$ac_tool_prefix"; then
6011 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
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_F77+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 if test -n "$F77"; then
6021 ac_cv_prog_F77="$F77" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6034 done
6035 done
6036 IFS=$as_save_IFS
6040 F77=$ac_cv_prog_F77
6041 if test -n "$F77"; then
6042 { echo "$as_me:$LINENO: result: $F77" >&5
6043 echo "${ECHO_T}$F77" >&6; }
6044 else
6045 { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6050 test -n "$F77" && break
6051 done
6053 if test -z "$F77"; then
6054 ac_ct_F77=$F77
6055 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
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 if test -n "$ac_ct_F77"; then
6065 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_F77="$ac_prog"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6078 done
6079 done
6080 IFS=$as_save_IFS
6084 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6085 if test -n "$ac_ct_F77"; then
6086 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6087 echo "${ECHO_T}$ac_ct_F77" >&6; }
6088 else
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6094 test -n "$ac_ct_F77" && break
6095 done
6097 if test "x$ac_ct_F77" = x; then
6098 F77=""
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6103 whose name does not start with the host triplet. If you think this
6104 configuration is useful to you, please write to autoconf@gnu.org." >&5
6105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6106 whose name does not start with the host triplet. If you think this
6107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 F77=$ac_ct_F77
6115 # Provide some information about the compiler.
6116 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6117 ac_compiler=`set X $ac_compile; echo $2`
6118 { (ac_try="$ac_compiler --version >&5"
6119 case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compiler --version >&5") 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }
6128 { (ac_try="$ac_compiler -v >&5"
6129 case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compiler -v >&5") 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }
6138 { (ac_try="$ac_compiler -V >&5"
6139 case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_compiler -V >&5") 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }
6148 rm -f a.out
6150 # If we don't use `.F' as extension, the preprocessor is not run on the
6151 # input file. (Note that this only needs to work for GNU compilers.)
6152 ac_save_ext=$ac_ext
6153 ac_ext=F
6154 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6155 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6156 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 cat >conftest.$ac_ext <<_ACEOF
6160 program main
6161 #ifndef __GNUC__
6162 choke me
6163 #endif
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_f77_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_compiler_gnu=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ac_compiler_gnu=no
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6196 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6197 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6198 ac_ext=$ac_save_ext
6199 ac_test_FFLAGS=${FFLAGS+set}
6200 ac_save_FFLAGS=$FFLAGS
6201 FFLAGS=
6202 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6203 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_f77_g+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 FFLAGS=-g
6208 cat >conftest.$ac_ext <<_ACEOF
6209 program main
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6215 case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_f77_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 ac_cv_prog_f77_g=yes
6231 else
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 ac_cv_prog_f77_g=no
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6242 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6243 if test "$ac_test_FFLAGS" = set; then
6244 FFLAGS=$ac_save_FFLAGS
6245 elif test $ac_cv_prog_f77_g = yes; then
6246 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6247 FFLAGS="-g -O2"
6248 else
6249 FFLAGS="-g"
6251 else
6252 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6253 FFLAGS="-O2"
6254 else
6255 FFLAGS=
6259 G77=`test $ac_compiler_gnu = yes && echo yes`
6260 ac_ext=c
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6268 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6270 # find the maximum length of command line arguments
6271 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6272 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6273 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6277 teststring="ABCD"
6279 case $build_os in
6280 msdosdjgpp*)
6281 # On DJGPP, this test can blow up pretty badly due to problems in libc
6282 # (any single argument exceeding 2000 bytes causes a buffer overrun
6283 # during glob expansion). Even if it were fixed, the result of this
6284 # check would be larger than it should be.
6285 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6288 gnu*)
6289 # Under GNU Hurd, this test is not required because there is
6290 # no limit to the length of command line arguments.
6291 # Libtool will interpret -1 as no limit whatsoever
6292 lt_cv_sys_max_cmd_len=-1;
6295 cygwin* | mingw*)
6296 # On Win9x/ME, this test blows up -- it succeeds, but takes
6297 # about 5 minutes as the teststring grows exponentially.
6298 # Worse, since 9x/ME are not pre-emptively multitasking,
6299 # you end up with a "frozen" computer, even though with patience
6300 # the test eventually succeeds (with a max line length of 256k).
6301 # Instead, let's just punt: use the minimum linelength reported by
6302 # all of the supported platforms: 8192 (on NT/2K/XP).
6303 lt_cv_sys_max_cmd_len=8192;
6306 amigaos*)
6307 # On AmigaOS with pdksh, this test takes hours, literally.
6308 # So we just punt and use a minimum line length of 8192.
6309 lt_cv_sys_max_cmd_len=8192;
6312 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6313 # This has been around since 386BSD, at least. Likely further.
6314 if test -x /sbin/sysctl; then
6315 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6316 elif test -x /usr/sbin/sysctl; then
6317 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6318 else
6319 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6321 # And add a safety zone
6322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6326 interix*)
6327 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6328 lt_cv_sys_max_cmd_len=196608
6331 osf*)
6332 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6333 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6334 # nice to cause kernel panics so lets avoid the loop below.
6335 # First set a reasonable default.
6336 lt_cv_sys_max_cmd_len=16384
6338 if test -x /sbin/sysconfig; then
6339 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6340 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6341 esac
6344 sco3.2v5*)
6345 lt_cv_sys_max_cmd_len=102400
6347 sysv5* | sco5v6* | sysv4.2uw2*)
6348 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6349 if test -n "$kargmax"; then
6350 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6351 else
6352 lt_cv_sys_max_cmd_len=32768
6356 # If test is not a shell built-in, we'll probably end up computing a
6357 # maximum length that is only half of the actual maximum length, but
6358 # we can't tell.
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`
6375 esac
6379 if test -n $lt_cv_sys_max_cmd_len ; then
6380 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6381 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6382 else
6383 { echo "$as_me:$LINENO: result: none" >&5
6384 echo "${ECHO_T}none" >&6; }
6390 # Check for command to grab the raw symbol name followed by C symbol from nm.
6391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6397 # These are sane defaults that work on at least a few old systems.
6398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6400 # Character class describing NM global symbol codes.
6401 symcode='[BCDEGRST]'
6403 # Regexp to match symbols that can be accessed directly from C.
6404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6406 # Transform an extracted symbol line into a proper C declaration
6407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6409 # Transform an extracted symbol line into symbol name and symbol address
6410 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'"
6412 # Define system-specific variables.
6413 case $host_os in
6414 aix*)
6415 symcode='[BCDT]'
6417 cygwin* | mingw* | pw32*)
6418 symcode='[ABCDGISTW]'
6420 hpux*) # Its linker distinguishes data from code symbols
6421 if test "$host_cpu" = ia64; then
6422 symcode='[ABCDEGRST]'
6424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425 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'"
6427 linux* | k*bsd*-gnu)
6428 if test "$host_cpu" = ia64; then
6429 symcode='[ABCDGIRSTW]'
6430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6431 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'"
6434 irix* | nonstopux*)
6435 symcode='[BCDEGRST]'
6437 osf*)
6438 symcode='[BCDEGQRST]'
6440 solaris*)
6441 symcode='[BDRT]'
6443 sco3.2v5*)
6444 symcode='[DT]'
6446 sysv4.2uw2*)
6447 symcode='[DT]'
6449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6450 symcode='[ABDT]'
6452 sysv4)
6453 symcode='[DFNSTU]'
6455 esac
6457 # Handle CRLF in mingw tool chain
6458 opt_cr=
6459 case $build_os in
6460 mingw*)
6461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6463 esac
6465 # If we're using GNU nm, then use its standard symbol codes.
6466 case `$NM -V 2>&1` in
6467 *GNU* | *'with BFD'*)
6468 symcode='[ABCDGIRSTW]' ;;
6469 esac
6471 # Try without a prefix undercore, then with it.
6472 for ac_symprfx in "" "_"; do
6474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6475 symxfrm="\\1 $ac_symprfx\\2 \\2"
6477 # Write the raw and C identifiers.
6478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6480 # Check to see that the pipe works correctly.
6481 pipe_works=no
6483 rm -f conftest*
6484 cat > conftest.$ac_ext <<EOF
6485 #ifdef __cplusplus
6486 extern "C" {
6487 #endif
6488 char nm_test_var;
6489 void nm_test_func(){}
6490 #ifdef __cplusplus
6492 #endif
6493 int main(){nm_test_var='a';nm_test_func();return(0);}
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; then
6501 # Now try to grab the symbols.
6502 nlist=conftest.nm
6503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && test -s "$nlist"; then
6508 # Try sorting and uniquifying the output.
6509 if sort "$nlist" | uniq > "$nlist"T; then
6510 mv -f "$nlist"T "$nlist"
6511 else
6512 rm -f "$nlist"T
6515 # Make sure that we snagged all the symbols we need.
6516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6518 cat <<EOF > conftest.$ac_ext
6519 #ifdef __cplusplus
6520 extern "C" {
6521 #endif
6524 # Now generate the symbol file.
6525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6527 cat <<EOF >> conftest.$ac_ext
6528 #if defined (__STDC__) && __STDC__
6529 # define lt_ptr_t void *
6530 #else
6531 # define lt_ptr_t char *
6532 # define const
6533 #endif
6535 /* The mapping between symbol names and symbols. */
6536 const struct {
6537 const char *name;
6538 lt_ptr_t address;
6540 lt_preloaded_symbols[] =
6543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6544 cat <<\EOF >> conftest.$ac_ext
6545 {0, (lt_ptr_t) 0}
6548 #ifdef __cplusplus
6550 #endif
6552 # Now try linking the two files.
6553 mv conftest.$ac_objext conftstm.$ac_objext
6554 lt_save_LIBS="$LIBS"
6555 lt_save_CFLAGS="$CFLAGS"
6556 LIBS="conftstm.$ac_objext"
6557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6563 pipe_works=yes
6565 LIBS="$lt_save_LIBS"
6566 CFLAGS="$lt_save_CFLAGS"
6567 else
6568 echo "cannot find nm_test_func in $nlist" >&5
6570 else
6571 echo "cannot find nm_test_var in $nlist" >&5
6573 else
6574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6576 else
6577 echo "$progname: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 rm -f conftest* conftst*
6582 # Do not use the global_symbol_pipe unless it works.
6583 if test "$pipe_works" = yes; then
6584 break
6585 else
6586 lt_cv_sys_global_symbol_pipe=
6588 done
6592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6593 lt_cv_sys_global_symbol_to_cdecl=
6595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6596 { echo "$as_me:$LINENO: result: failed" >&5
6597 echo "${ECHO_T}failed" >&6; }
6598 else
6599 { echo "$as_me:$LINENO: result: ok" >&5
6600 echo "${ECHO_T}ok" >&6; }
6603 { echo "$as_me:$LINENO: checking for objdir" >&5
6604 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6605 if test "${lt_cv_objdir+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608 rm -f .libs 2>/dev/null
6609 mkdir .libs 2>/dev/null
6610 if test -d .libs; then
6611 lt_cv_objdir=.libs
6612 else
6613 # MS-DOS does not allow filenames that begin with a dot.
6614 lt_cv_objdir=_libs
6616 rmdir .libs 2>/dev/null
6618 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6619 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6620 objdir=$lt_cv_objdir
6626 case $host_os in
6627 aix3*)
6628 # AIX sometimes has problems with the GCC collect2 program. For some
6629 # reason, if we set the COLLECT_NAMES environment variable, the problems
6630 # vanish in a puff of smoke.
6631 if test "X${COLLECT_NAMES+set}" != Xset; then
6632 COLLECT_NAMES=
6633 export COLLECT_NAMES
6636 esac
6638 # Sed substitution that helps us do robust quoting. It backslashifies
6639 # metacharacters that are still active within double-quoted strings.
6640 Xsed='sed -e 1s/^X//'
6641 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6643 # Same as above, but do not quote variable references.
6644 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6646 # Sed substitution to delay expansion of an escaped shell variable in a
6647 # double_quote_subst'ed string.
6648 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6650 # Sed substitution to avoid accidental globbing in evaled expressions
6651 no_glob_subst='s/\*/\\\*/g'
6653 # Constants:
6654 rm="rm -f"
6656 # Global variables:
6657 default_ofile=libtool
6658 can_build_shared=yes
6660 # All known linkers require a `.a' archive for static linking (except MSVC,
6661 # which needs '.lib').
6662 libext=a
6663 ltmain="$ac_aux_dir/ltmain.sh"
6664 ofile="$default_ofile"
6665 with_gnu_ld="$lt_cv_prog_gnu_ld"
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}ar; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_AR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 if test -n "$AR"; then
6676 ac_cv_prog_AR="$AR" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_AR="${ac_tool_prefix}ar"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6689 done
6690 done
6691 IFS=$as_save_IFS
6695 AR=$ac_cv_prog_AR
6696 if test -n "$AR"; then
6697 { echo "$as_me:$LINENO: result: $AR" >&5
6698 echo "${ECHO_T}$AR" >&6; }
6699 else
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_AR"; then
6707 ac_ct_AR=$AR
6708 # Extract the first word of "ar", so it can be a program name with args.
6709 set dummy ar; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 if test -n "$ac_ct_AR"; then
6716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_AR="ar"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6736 if test -n "$ac_ct_AR"; then
6737 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6738 echo "${ECHO_T}$ac_ct_AR" >&6; }
6739 else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744 if test "x$ac_ct_AR" = x; then
6745 AR="false"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757 AR=$ac_ct_AR
6759 else
6760 AR="$ac_cv_prog_AR"
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_prog_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 RANLIB=$ac_cv_prog_RANLIB
6792 if test -n "$RANLIB"; then
6793 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6794 echo "${ECHO_T}$RANLIB" >&6; }
6795 else
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6802 if test -z "$ac_cv_prog_RANLIB"; then
6803 ac_ct_RANLIB=$RANLIB
6804 # Extract the first word of "ranlib", so it can be a program name with args.
6805 set dummy ranlib; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 if test -n "$ac_ct_RANLIB"; then
6812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_RANLIB="ranlib"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6825 done
6826 done
6827 IFS=$as_save_IFS
6831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6832 if test -n "$ac_ct_RANLIB"; then
6833 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6834 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6835 else
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6840 if test "x$ac_ct_RANLIB" = x; then
6841 RANLIB=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6846 whose name does not start with the host triplet. If you think this
6847 configuration is useful to you, please write to autoconf@gnu.org." >&5
6848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6849 whose name does not start with the host triplet. If you think this
6850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853 RANLIB=$ac_ct_RANLIB
6855 else
6856 RANLIB="$ac_cv_prog_RANLIB"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}strip; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_STRIP+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 if test -n "$STRIP"; then
6868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6887 STRIP=$ac_cv_prog_STRIP
6888 if test -n "$STRIP"; then
6889 { echo "$as_me:$LINENO: result: $STRIP" >&5
6890 echo "${ECHO_T}$STRIP" >&6; }
6891 else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6898 if test -z "$ac_cv_prog_STRIP"; then
6899 ac_ct_STRIP=$STRIP
6900 # Extract the first word of "strip", so it can be a program name with args.
6901 set dummy strip; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 if test -n "$ac_ct_STRIP"; then
6908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_STRIP="strip"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6928 if test -n "$ac_ct_STRIP"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6930 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6931 else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6936 if test "x$ac_ct_STRIP" = x; then
6937 STRIP=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 STRIP=$ac_ct_STRIP
6951 else
6952 STRIP="$ac_cv_prog_STRIP"
6956 old_CC="$CC"
6957 old_CFLAGS="$CFLAGS"
6959 # Set sane defaults for various variables
6960 test -z "$AR" && AR=ar
6961 test -z "$AR_FLAGS" && AR_FLAGS=cru
6962 test -z "$AS" && AS=as
6963 test -z "$CC" && CC=cc
6964 test -z "$LTCC" && LTCC=$CC
6965 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6966 test -z "$DLLTOOL" && DLLTOOL=dlltool
6967 test -z "$LD" && LD=ld
6968 test -z "$LN_S" && LN_S="ln -s"
6969 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6970 test -z "$NM" && NM=nm
6971 test -z "$SED" && SED=sed
6972 test -z "$OBJDUMP" && OBJDUMP=objdump
6973 test -z "$RANLIB" && RANLIB=:
6974 test -z "$STRIP" && STRIP=:
6975 test -z "$ac_objext" && ac_objext=o
6977 # Determine commands to create old-style static archives.
6978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6979 old_postinstall_cmds='chmod 644 $oldlib'
6980 old_postuninstall_cmds=
6982 if test -n "$RANLIB"; then
6983 case $host_os in
6984 openbsd*)
6985 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6990 esac
6991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6994 for cc_temp in $compiler""; do
6995 case $cc_temp in
6996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6998 \-*) ;;
6999 *) break;;
7000 esac
7001 done
7002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7005 # Only perform the check for file, if the check method requires it
7006 case $deplibs_check_method in
7007 file_magic*)
7008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7009 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7010 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7011 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014 case $MAGIC_CMD in
7015 [\\/*] | ?:[\\/]*)
7016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7019 lt_save_MAGIC_CMD="$MAGIC_CMD"
7020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7022 for ac_dir in $ac_dummy; do
7023 IFS="$lt_save_ifs"
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/${ac_tool_prefix}file; then
7026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7027 if test -n "$file_magic_test_file"; then
7028 case $deplibs_check_method in
7029 "file_magic "*)
7030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7033 $EGREP "$file_magic_regex" > /dev/null; then
7035 else
7036 cat <<EOF 1>&2
7038 *** Warning: the command libtool uses to detect shared libraries,
7039 *** $file_magic_cmd, produces output that libtool cannot recognize.
7040 *** The result is that libtool may fail to recognize shared libraries
7041 *** as such. This will affect the creation of libtool libraries that
7042 *** depend on shared libraries, but programs linked with such libtool
7043 *** libraries will work regardless of this problem. Nevertheless, you
7044 *** may want to report the problem to your system manager and/or to
7045 *** bug-libtool@gnu.org
7048 fi ;;
7049 esac
7051 break
7053 done
7054 IFS="$lt_save_ifs"
7055 MAGIC_CMD="$lt_save_MAGIC_CMD"
7057 esac
7060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7061 if test -n "$MAGIC_CMD"; then
7062 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7063 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7064 else
7065 { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7069 if test -z "$lt_cv_path_MAGIC_CMD"; then
7070 if test -n "$ac_tool_prefix"; then
7071 { echo "$as_me:$LINENO: checking for file" >&5
7072 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7073 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 case $MAGIC_CMD in
7077 [\\/*] | ?:[\\/]*)
7078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7081 lt_save_MAGIC_CMD="$MAGIC_CMD"
7082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7084 for ac_dir in $ac_dummy; do
7085 IFS="$lt_save_ifs"
7086 test -z "$ac_dir" && ac_dir=.
7087 if test -f $ac_dir/file; then
7088 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7089 if test -n "$file_magic_test_file"; then
7090 case $deplibs_check_method in
7091 "file_magic "*)
7092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7095 $EGREP "$file_magic_regex" > /dev/null; then
7097 else
7098 cat <<EOF 1>&2
7100 *** Warning: the command libtool uses to detect shared libraries,
7101 *** $file_magic_cmd, produces output that libtool cannot recognize.
7102 *** The result is that libtool may fail to recognize shared libraries
7103 *** as such. This will affect the creation of libtool libraries that
7104 *** depend on shared libraries, but programs linked with such libtool
7105 *** libraries will work regardless of this problem. Nevertheless, you
7106 *** may want to report the problem to your system manager and/or to
7107 *** bug-libtool@gnu.org
7110 fi ;;
7111 esac
7113 break
7115 done
7116 IFS="$lt_save_ifs"
7117 MAGIC_CMD="$lt_save_MAGIC_CMD"
7119 esac
7122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123 if test -n "$MAGIC_CMD"; then
7124 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7125 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7126 else
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7131 else
7132 MAGIC_CMD=:
7138 esac
7140 enable_dlopen=no
7141 enable_win32_dll=no
7143 # Check whether --enable-libtool-lock was given.
7144 if test "${enable_libtool_lock+set}" = set; then
7145 enableval=$enable_libtool_lock;
7148 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7151 # Check whether --with-pic was given.
7152 if test "${with_pic+set}" = set; then
7153 withval=$with_pic; pic_mode="$withval"
7154 else
7155 pic_mode=default
7158 test -z "$pic_mode" && pic_mode=default
7160 # Use C for the default configuration in the libtool script
7161 tagname=
7162 lt_save_CC="$CC"
7163 ac_ext=c
7164 ac_cpp='$CPP $CPPFLAGS'
7165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7170 # Source file extension for C test sources.
7171 ac_ext=c
7173 # Object file extension for compiled C test sources.
7174 objext=o
7175 objext=$objext
7177 # Code to be used in simple compile tests
7178 lt_simple_compile_test_code="int some_variable = 0;\n"
7180 # Code to be used in simple link tests
7181 lt_simple_link_test_code='int main(){return(0);}\n'
7184 # If no C compiler was specified, use CC.
7185 LTCC=${LTCC-"$CC"}
7187 # If no C compiler flags were specified, use CFLAGS.
7188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7190 # Allow CC to be a program name with arguments.
7191 compiler=$CC
7194 # save warnings/boilerplate of simple test code
7195 ac_outfile=conftest.$ac_objext
7196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7198 _lt_compiler_boilerplate=`cat conftest.err`
7199 $rm conftest*
7201 ac_outfile=conftest.$ac_objext
7202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7204 _lt_linker_boilerplate=`cat conftest.err`
7205 $rm conftest*
7209 lt_prog_compiler_no_builtin_flag=
7211 if test "$GCC" = yes; then
7212 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7215 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7216 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7217 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 lt_cv_prog_compiler_rtti_exceptions=no
7221 ac_outfile=conftest.$ac_objext
7222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7223 lt_compiler_flag="-fno-rtti -fno-exceptions"
7224 # Insert the option either (1) after the last *FLAGS variable, or
7225 # (2) before a word containing "conftest.", or (3) at the end.
7226 # Note that $ac_compile itself does not contain backslashes and begins
7227 # with a dollar sign (not a hyphen), so the echo should work correctly.
7228 # The option is referenced via a variable to avoid confusing sed.
7229 lt_compile=`echo "$ac_compile" | $SED \
7230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7232 -e 's:$: $lt_compiler_flag:'`
7233 (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
7234 (eval "$lt_compile" 2>conftest.err)
7235 ac_status=$?
7236 cat conftest.err >&5
7237 echo "$as_me:7237: \$? = $ac_status" >&5
7238 if (exit $ac_status) && test -s "$ac_outfile"; then
7239 # The compiler can only warn and ignore the option if not recognized
7240 # So say no if there are warnings other than the usual output.
7241 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7244 lt_cv_prog_compiler_rtti_exceptions=yes
7247 $rm conftest*
7250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7251 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7253 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7254 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7255 else
7261 lt_prog_compiler_wl=
7262 lt_prog_compiler_pic=
7263 lt_prog_compiler_static=
7265 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7268 if test "$GCC" = yes; then
7269 lt_prog_compiler_wl='-Wl,'
7270 lt_prog_compiler_static='-static'
7272 case $host_os in
7273 aix*)
7274 # All AIX code is PIC.
7275 if test "$host_cpu" = ia64; then
7276 # AIX 5 now supports IA64 processor
7277 lt_prog_compiler_static='-Bstatic'
7281 amigaos*)
7282 # FIXME: we need at least 68020 code to build shared libraries, but
7283 # adding the `-m68020' flag to GCC prevents building anything better,
7284 # like `-m68040'.
7285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7288 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7289 # PIC is the default for these OSes.
7292 mingw* | pw32* | os2*)
7293 # This hack is so that the source file can tell whether it is being
7294 # built for inclusion in a dll (and should export symbols for example).
7295 lt_prog_compiler_pic='-DDLL_EXPORT'
7298 darwin* | rhapsody*)
7299 # PIC is the default on this platform
7300 # Common symbols not allowed in MH_DYLIB files
7301 lt_prog_compiler_pic='-fno-common'
7304 interix3*)
7305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7306 # Instead, we relocate shared libraries at runtime.
7309 msdosdjgpp*)
7310 # Just because we use GCC doesn't mean we suddenly get shared libraries
7311 # on systems that don't support them.
7312 lt_prog_compiler_can_build_shared=no
7313 enable_shared=no
7316 sysv4*MP*)
7317 if test -d /usr/nec; then
7318 lt_prog_compiler_pic=-Kconform_pic
7322 hpux*)
7323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7324 # not for PA HP-UX.
7325 case $host_cpu in
7326 hppa*64*|ia64*)
7327 # +Z the default
7330 lt_prog_compiler_pic='-fPIC'
7332 esac
7336 lt_prog_compiler_pic='-fPIC'
7338 esac
7339 else
7340 # PORTME Check for flag to pass linker flags through the system compiler.
7341 case $host_os in
7342 aix*)
7343 lt_prog_compiler_wl='-Wl,'
7344 if test "$host_cpu" = ia64; then
7345 # AIX 5 now supports IA64 processor
7346 lt_prog_compiler_static='-Bstatic'
7347 else
7348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7351 darwin*)
7352 # PIC is the default on this platform
7353 # Common symbols not allowed in MH_DYLIB files
7354 case $cc_basename in
7355 xlc*)
7356 lt_prog_compiler_pic='-qnocommon'
7357 lt_prog_compiler_wl='-Wl,'
7359 esac
7362 mingw* | pw32* | os2*)
7363 # This hack is so that the source file can tell whether it is being
7364 # built for inclusion in a dll (and should export symbols for example).
7365 lt_prog_compiler_pic='-DDLL_EXPORT'
7368 hpux9* | hpux10* | hpux11*)
7369 lt_prog_compiler_wl='-Wl,'
7370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7371 # not for PA HP-UX.
7372 case $host_cpu in
7373 hppa*64*|ia64*)
7374 # +Z the default
7377 lt_prog_compiler_pic='+Z'
7379 esac
7380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7381 lt_prog_compiler_static='${wl}-a ${wl}archive'
7384 irix5* | irix6* | nonstopux*)
7385 lt_prog_compiler_wl='-Wl,'
7386 # PIC (with -KPIC) is the default.
7387 lt_prog_compiler_static='-non_shared'
7390 newsos6)
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-Bstatic'
7395 linux* | k*bsd*-gnu)
7396 case $cc_basename in
7397 icc* | ecc*)
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_pic='-KPIC'
7400 lt_prog_compiler_static='-static'
7402 pgcc* | pgf77* | pgf90* | pgf95*)
7403 # Portland Group compilers (*not* the Pentium gcc compiler,
7404 # which looks to be a dead project)
7405 lt_prog_compiler_wl='-Wl,'
7406 lt_prog_compiler_pic='-fpic'
7407 lt_prog_compiler_static='-Bstatic'
7409 ccc*)
7410 lt_prog_compiler_wl='-Wl,'
7411 # All Alpha code is PIC.
7412 lt_prog_compiler_static='-non_shared'
7414 esac
7417 osf3* | osf4* | osf5*)
7418 lt_prog_compiler_wl='-Wl,'
7419 # All OSF/1 code is PIC.
7420 lt_prog_compiler_static='-non_shared'
7423 solaris*)
7424 lt_prog_compiler_pic='-KPIC'
7425 lt_prog_compiler_static='-Bstatic'
7426 case $cc_basename in
7427 f77* | f90* | f95*)
7428 lt_prog_compiler_wl='-Qoption ld ';;
7430 lt_prog_compiler_wl='-Wl,';;
7431 esac
7434 sunos4*)
7435 lt_prog_compiler_wl='-Qoption ld '
7436 lt_prog_compiler_pic='-PIC'
7437 lt_prog_compiler_static='-Bstatic'
7440 sysv4 | sysv4.2uw2* | sysv4.3*)
7441 lt_prog_compiler_wl='-Wl,'
7442 lt_prog_compiler_pic='-KPIC'
7443 lt_prog_compiler_static='-Bstatic'
7446 sysv4*MP*)
7447 if test -d /usr/nec ;then
7448 lt_prog_compiler_pic='-Kconform_pic'
7449 lt_prog_compiler_static='-Bstatic'
7453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7454 lt_prog_compiler_wl='-Wl,'
7455 lt_prog_compiler_pic='-KPIC'
7456 lt_prog_compiler_static='-Bstatic'
7459 unicos*)
7460 lt_prog_compiler_wl='-Wl,'
7461 lt_prog_compiler_can_build_shared=no
7464 uts4*)
7465 lt_prog_compiler_pic='-pic'
7466 lt_prog_compiler_static='-Bstatic'
7470 lt_prog_compiler_can_build_shared=no
7472 esac
7475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7476 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7479 # Check to make sure the PIC flag actually works.
7481 if test -n "$lt_prog_compiler_pic"; then
7483 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7485 if test "${lt_prog_compiler_pic_works+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 lt_prog_compiler_pic_works=no
7489 ac_outfile=conftest.$ac_objext
7490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7491 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7492 # Insert the option either (1) after the last *FLAGS variable, or
7493 # (2) before a word containing "conftest.", or (3) at the end.
7494 # Note that $ac_compile itself does not contain backslashes and begins
7495 # with a dollar sign (not a hyphen), so the echo should work correctly.
7496 # The option is referenced via a variable to avoid confusing sed.
7497 lt_compile=`echo "$ac_compile" | $SED \
7498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7500 -e 's:$: $lt_compiler_flag:'`
7501 (eval echo "\"\$as_me:7501: $lt_compile\"" >&5)
7502 (eval "$lt_compile" 2>conftest.err)
7503 ac_status=$?
7504 cat conftest.err >&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 if (exit $ac_status) && test -s "$ac_outfile"; then
7507 # The compiler can only warn and ignore the option if not recognized
7508 # So say no if there are warnings other than the usual output.
7509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7512 lt_prog_compiler_pic_works=yes
7515 $rm conftest*
7518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7519 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7521 if test x"$lt_prog_compiler_pic_works" = xyes; then
7522 case $lt_prog_compiler_pic in
7523 "" | " "*) ;;
7524 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7525 esac
7526 else
7527 lt_prog_compiler_pic=
7528 lt_prog_compiler_can_build_shared=no
7532 case $host_os in
7533 # For platforms which do not support PIC, -DPIC is meaningless:
7534 *djgpp*)
7535 lt_prog_compiler_pic=
7538 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7540 esac
7543 # Check to make sure the static flag actually works.
7545 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7546 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7547 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7548 if test "${lt_prog_compiler_static_works+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 lt_prog_compiler_static_works=no
7552 save_LDFLAGS="$LDFLAGS"
7553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7554 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7556 # The linker can only warn and ignore the option if not recognized
7557 # So say no if there are warnings
7558 if test -s conftest.err; then
7559 # Append any errors to the config.log.
7560 cat conftest.err 1>&5
7561 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7563 if diff conftest.exp conftest.er2 >/dev/null; then
7564 lt_prog_compiler_static_works=yes
7566 else
7567 lt_prog_compiler_static_works=yes
7570 $rm conftest*
7571 LDFLAGS="$save_LDFLAGS"
7574 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7575 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7577 if test x"$lt_prog_compiler_static_works" = xyes; then
7579 else
7580 lt_prog_compiler_static=
7584 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 lt_cv_prog_compiler_c_o=no
7590 $rm -r conftest 2>/dev/null
7591 mkdir conftest
7592 cd conftest
7593 mkdir out
7594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7596 lt_compiler_flag="-o out/conftest2.$ac_objext"
7597 # Insert the option either (1) after the last *FLAGS variable, or
7598 # (2) before a word containing "conftest.", or (3) at the end.
7599 # Note that $ac_compile itself does not contain backslashes and begins
7600 # with a dollar sign (not a hyphen), so the echo should work correctly.
7601 lt_compile=`echo "$ac_compile" | $SED \
7602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7604 -e 's:$: $lt_compiler_flag:'`
7605 (eval echo "\"\$as_me:7605: $lt_compile\"" >&5)
7606 (eval "$lt_compile" 2>out/conftest.err)
7607 ac_status=$?
7608 cat out/conftest.err >&5
7609 echo "$as_me:7609: \$? = $ac_status" >&5
7610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7611 then
7612 # The compiler can only warn and ignore the option if not recognized
7613 # So say no if there are warnings
7614 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7617 lt_cv_prog_compiler_c_o=yes
7620 chmod u+w . 2>&5
7621 $rm conftest*
7622 # SGI C++ compiler will create directory out/ii_files/ for
7623 # template instantiation
7624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7625 $rm out/* && rmdir out
7626 cd ..
7627 rmdir conftest
7628 $rm conftest*
7631 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7635 hard_links="nottested"
7636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7637 # do not overwrite the value of need_locks provided by the user
7638 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7640 hard_links=yes
7641 $rm conftest*
7642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7643 touch conftest.a
7644 ln conftest.a conftest.b 2>&5 || hard_links=no
7645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7646 { echo "$as_me:$LINENO: result: $hard_links" >&5
7647 echo "${ECHO_T}$hard_links" >&6; }
7648 if test "$hard_links" = no; then
7649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7651 need_locks=warn
7653 else
7654 need_locks=no
7657 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7660 runpath_var=
7661 allow_undefined_flag=
7662 enable_shared_with_static_runtimes=no
7663 archive_cmds=
7664 archive_expsym_cmds=
7665 old_archive_From_new_cmds=
7666 old_archive_from_expsyms_cmds=
7667 export_dynamic_flag_spec=
7668 whole_archive_flag_spec=
7669 thread_safe_flag_spec=
7670 hardcode_libdir_flag_spec=
7671 hardcode_libdir_flag_spec_ld=
7672 hardcode_libdir_separator=
7673 hardcode_direct=no
7674 hardcode_minus_L=no
7675 hardcode_shlibpath_var=unsupported
7676 link_all_deplibs=unknown
7677 hardcode_automatic=no
7678 module_cmds=
7679 module_expsym_cmds=
7680 always_export_symbols=no
7681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7682 # include_expsyms should be a list of space-separated symbols to be *always*
7683 # included in the symbol list
7684 include_expsyms=
7685 # exclude_expsyms can be an extended regexp of symbols to exclude
7686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688 # as well as any symbol that contains `d'.
7689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691 # platforms (ab)use it in PIC code, but their linkers get confused if
7692 # the symbol is explicitly referenced. Since portable code cannot
7693 # rely on this symbol name, it's probably fine to never include it in
7694 # preloaded symbol tables.
7695 extract_expsyms_cmds=
7696 # Just being paranoid about ensuring that cc_basename is set.
7697 for cc_temp in $compiler""; do
7698 case $cc_temp in
7699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701 \-*) ;;
7702 *) break;;
7703 esac
7704 done
7705 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7707 case $host_os in
7708 cygwin* | mingw* | pw32*)
7709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7710 # When not using gcc, we currently assume that we are using
7711 # Microsoft Visual C++.
7712 if test "$GCC" != yes; then
7713 with_gnu_ld=no
7716 interix*)
7717 # we just hope/assume this is gcc and not c89 (= MSVC++)
7718 with_gnu_ld=yes
7720 openbsd*)
7721 with_gnu_ld=no
7723 esac
7725 ld_shlibs=yes
7726 if test "$with_gnu_ld" = yes; then
7727 # If archive_cmds runs LD, not CC, wlarc should be empty
7728 wlarc='${wl}'
7730 # Set some defaults for GNU ld with shared library support. These
7731 # are reset later if shared libraries are not supported. Putting them
7732 # here allows them to be overridden if necessary.
7733 runpath_var=LD_RUN_PATH
7734 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7735 export_dynamic_flag_spec='${wl}--export-dynamic'
7736 # ancient GNU ld didn't support --whole-archive et. al.
7737 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7738 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7739 else
7740 whole_archive_flag_spec=
7742 supports_anon_versioning=no
7743 case `$LD -v 2>/dev/null` in
7744 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7745 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7746 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7747 *\ 2.11.*) ;; # other 2.11 versions
7748 *) supports_anon_versioning=yes ;;
7749 esac
7751 # See if GNU ld supports shared libraries.
7752 case $host_os in
7753 aix3* | aix4* | aix5*)
7754 # On AIX/PPC, the GNU linker is very broken
7755 if test "$host_cpu" != ia64; then
7756 ld_shlibs=no
7757 cat <<EOF 1>&2
7759 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7760 *** to be unable to reliably create shared libraries on AIX.
7761 *** Therefore, libtool is disabling shared libraries support. If you
7762 *** really care for shared libraries, you may want to modify your PATH
7763 *** so that a non-GNU linker is found, and then restart.
7769 amigaos*)
7770 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)'
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 hardcode_minus_L=yes
7774 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7775 # that the semantics of dynamic libraries on AmigaOS, at least up
7776 # to version 4, is to share data among multiple programs linked
7777 # with the same dynamic library. Since this doesn't match the
7778 # behavior of shared libraries on other platforms, we can't use
7779 # them.
7780 ld_shlibs=no
7783 beos*)
7784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7785 allow_undefined_flag=unsupported
7786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7787 # support --undefined. This deserves some investigation. FIXME
7788 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789 else
7790 ld_shlibs=no
7794 cygwin* | mingw* | pw32*)
7795 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7796 # as there is no search path for DLLs.
7797 hardcode_libdir_flag_spec='-L$libdir'
7798 allow_undefined_flag=unsupported
7799 always_export_symbols=no
7800 enable_shared_with_static_runtimes=yes
7801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7803 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805 # If the export-symbols file already is a .def file (1st line
7806 # is EXPORTS), use it as is; otherwise, prepend...
7807 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7808 cp $export_symbols $output_objdir/$soname.def;
7809 else
7810 echo EXPORTS > $output_objdir/$soname.def;
7811 cat $export_symbols >> $output_objdir/$soname.def;
7813 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7814 else
7815 ld_shlibs=no
7819 interix3*)
7820 hardcode_direct=no
7821 hardcode_shlibpath_var=no
7822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7823 export_dynamic_flag_spec='${wl}-E'
7824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7825 # Instead, shared libraries are loaded at an image base (0x10000000 by
7826 # default) and relocated if they conflict, which is a slow very memory
7827 # consuming and fragmenting process. To avoid this, we pick a random,
7828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7831 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'
7834 linux* | k*bsd*-gnu)
7835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7836 tmp_addflag=
7837 case $cc_basename,$host_cpu in
7838 pgcc*) # Portland Group C compiler
7839 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'
7840 tmp_addflag=' $pic_flag'
7842 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7843 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'
7844 tmp_addflag=' $pic_flag -Mnomain' ;;
7845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7846 tmp_addflag=' -i_dynamic' ;;
7847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7848 tmp_addflag=' -i_dynamic -nofor_main' ;;
7849 ifc* | ifort*) # Intel Fortran compiler
7850 tmp_addflag=' -nofor_main' ;;
7851 esac
7852 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854 if test $supports_anon_versioning = yes; then
7855 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7857 $echo "local: *; };" >> $output_objdir/$libname.ver~
7858 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7860 link_all_deplibs=no
7861 else
7862 ld_shlibs=no
7866 netbsd* | netbsdelf*-gnu)
7867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7869 wlarc=
7870 else
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7876 solaris*)
7877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7878 ld_shlibs=no
7879 cat <<EOF 1>&2
7881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7882 *** create shared libraries on Solaris systems. Therefore, libtool
7883 *** is disabling shared libraries support. We urge you to upgrade GNU
7884 *** binutils to release 2.9.1 or newer. Another option is to modify
7885 *** your PATH or compiler configuration so that the native linker is
7886 *** used, and then restart.
7889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7892 else
7893 ld_shlibs=no
7897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7898 case `$LD -v 2>&1` in
7899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7900 ld_shlibs=no
7901 cat <<_LT_EOF 1>&2
7903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7904 *** reliably create shared libraries on SCO systems. Therefore, libtool
7905 *** is disabling shared libraries support. We urge you to upgrade GNU
7906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7907 *** your PATH or compiler configuration so that the native linker is
7908 *** used, and then restart.
7910 _LT_EOF
7913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7914 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7917 else
7918 ld_shlibs=no
7921 esac
7924 sunos4*)
7925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7926 wlarc=
7927 hardcode_direct=yes
7928 hardcode_shlibpath_var=no
7932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7935 else
7936 ld_shlibs=no
7939 esac
7941 if test "$ld_shlibs" = no; then
7942 runpath_var=
7943 hardcode_libdir_flag_spec=
7944 export_dynamic_flag_spec=
7945 whole_archive_flag_spec=
7947 else
7948 # PORTME fill in a description of your system's linker (not GNU ld)
7949 case $host_os in
7950 aix3*)
7951 allow_undefined_flag=unsupported
7952 always_export_symbols=yes
7953 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'
7954 # Note: this linker hardcodes the directories in LIBPATH if there
7955 # are no directories specified by -L.
7956 hardcode_minus_L=yes
7957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7958 # Neither direct hardcoding nor static linking is supported with a
7959 # broken collect2.
7960 hardcode_direct=unsupported
7964 aix4* | aix5*)
7965 if test "$host_cpu" = ia64; then
7966 # On IA64, the linker does run time linking by default, so we don't
7967 # have to do anything special.
7968 aix_use_runtimelinking=no
7969 exp_sym_flag='-Bexport'
7970 no_entry_flag=""
7971 else
7972 # If we're using GNU nm, then we don't want the "-C" option.
7973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7975 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'
7976 else
7977 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'
7979 aix_use_runtimelinking=no
7981 # Test if we are trying to use run time linking or normal
7982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7983 # need to do runtime linking.
7984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7985 for ld_flag in $LDFLAGS; do
7986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7987 aix_use_runtimelinking=yes
7988 break
7990 done
7992 esac
7994 exp_sym_flag='-bexport'
7995 no_entry_flag='-bnoentry'
7998 # When large executables or shared objects are built, AIX ld can
7999 # have problems creating the table of contents. If linking a library
8000 # or program results in "error TOC overflow" add -mminimal-toc to
8001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8004 archive_cmds=''
8005 hardcode_direct=yes
8006 hardcode_libdir_separator=':'
8007 link_all_deplibs=yes
8009 if test "$GCC" = yes; then
8010 case $host_os in aix4.[012]|aix4.[012].*)
8011 # We only want to do this on AIX 4.2 and lower, the check
8012 # below for broken collect2 doesn't work under 4.3+
8013 collect2name=`${CC} -print-prog-name=collect2`
8014 if test -f "$collect2name" && \
8015 strings "$collect2name" | grep resolve_lib_name >/dev/null
8016 then
8017 # We have reworked collect2
8018 hardcode_direct=yes
8019 else
8020 # We have old collect2
8021 hardcode_direct=unsupported
8022 # It fails to find uninstalled libraries when the uninstalled
8023 # path is not listed in the libpath. Setting hardcode_minus_L
8024 # to unsupported forces relinking
8025 hardcode_minus_L=yes
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_libdir_separator=
8030 esac
8031 shared_flag='-shared'
8032 if test "$aix_use_runtimelinking" = yes; then
8033 shared_flag="$shared_flag "'${wl}-G'
8035 else
8036 # not using gcc
8037 if test "$host_cpu" = ia64; then
8038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8039 # chokes on -Wl,-G. The following line is correct:
8040 shared_flag='-G'
8041 else
8042 if test "$aix_use_runtimelinking" = yes; then
8043 shared_flag='${wl}-G'
8044 else
8045 shared_flag='${wl}-bM:SRE'
8050 # It seems that -bexpall does not export symbols beginning with
8051 # underscore (_), so it is better to generate a list of symbols to export.
8052 always_export_symbols=yes
8053 if test "$aix_use_runtimelinking" = yes; then
8054 # Warning - without using the other runtime loading flags (-brtl),
8055 # -berok will link without error, but may produce a broken library.
8056 allow_undefined_flag='-berok'
8057 # Determine the default libpath from the value encoded in an empty executable.
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8066 main ()
8070 return 0;
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8075 case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078 esac
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_link") 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest$ac_exeext &&
8090 $as_test_x conftest$ac_exeext; then
8092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8094 # Check for a 64-bit object if we didn't find anything.
8095 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8096 }'`; fi
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 conftest$ac_exeext conftest.$ac_ext
8106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8109 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"
8110 else
8111 if test "$host_cpu" = ia64; then
8112 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8113 allow_undefined_flag="-z nodefs"
8114 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"
8115 else
8116 # Determine the default libpath from the value encoded in an empty executable.
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8125 main ()
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8134 case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_link") 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest$ac_exeext &&
8149 $as_test_x conftest$ac_exeext; then
8151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8153 # Check for a 64-bit object if we didn't find anything.
8154 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8155 }'`; fi
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164 conftest$ac_exeext conftest.$ac_ext
8165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8167 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8168 # Warning - without using the other run time loading flags,
8169 # -berok will link without error, but may produce a broken library.
8170 no_undefined_flag=' ${wl}-bernotok'
8171 allow_undefined_flag=' ${wl}-berok'
8172 # Exported symbols can be pulled into shared objects from archives
8173 whole_archive_flag_spec='$convenience'
8174 archive_cmds_need_lc=yes
8175 # This is similar to how AIX traditionally builds its shared libraries.
8176 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'
8181 amigaos*)
8182 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)'
8183 hardcode_libdir_flag_spec='-L$libdir'
8184 hardcode_minus_L=yes
8185 # see comment about different semantics on the GNU ld section
8186 ld_shlibs=no
8189 bsdi[45]*)
8190 export_dynamic_flag_spec=-rdynamic
8193 cygwin* | mingw* | pw32*)
8194 # When not using gcc, we currently assume that we are using
8195 # Microsoft Visual C++.
8196 # hardcode_libdir_flag_spec is actually meaningless, as there is
8197 # no search path for DLLs.
8198 hardcode_libdir_flag_spec=' '
8199 allow_undefined_flag=unsupported
8200 # Tell ltmain to make .lib files, not .a files.
8201 libext=lib
8202 # Tell ltmain to make .dll files, not .so files.
8203 shrext_cmds=".dll"
8204 # FIXME: Setting linknames here is a bad hack.
8205 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8206 # The linker will automatically build a .lib file if we build a DLL.
8207 old_archive_From_new_cmds='true'
8208 # FIXME: Should let the user specify the lib program.
8209 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8210 fix_srcfile_path='`cygpath -w "$srcfile"`'
8211 enable_shared_with_static_runtimes=yes
8214 darwin* | rhapsody*)
8215 case $host_os in
8216 rhapsody* | darwin1.[012])
8217 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8219 *) # Darwin 1.3 on
8220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8221 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8222 else
8223 case ${MACOSX_DEPLOYMENT_TARGET} in
8224 10.[012])
8225 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8227 10.*)
8228 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8230 esac
8233 esac
8234 archive_cmds_need_lc=no
8235 hardcode_direct=no
8236 hardcode_automatic=yes
8237 hardcode_shlibpath_var=unsupported
8238 whole_archive_flag_spec=''
8239 link_all_deplibs=yes
8240 if test "$GCC" = yes ; then
8241 output_verbose_link_cmd='echo'
8242 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8243 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8244 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8245 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8246 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}'
8247 else
8248 case $cc_basename in
8249 xlc*)
8250 output_verbose_link_cmd='echo'
8251 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8252 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8254 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8255 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}'
8258 ld_shlibs=no
8260 esac
8264 dgux*)
8265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_libdir_flag_spec='-L$libdir'
8267 hardcode_shlibpath_var=no
8270 freebsd1*)
8271 ld_shlibs=no
8274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8275 # support. Future versions do this automatically, but an explicit c++rt0.o
8276 # does not break anything, and helps significantly (at the cost of a little
8277 # extra space).
8278 freebsd2.2*)
8279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8280 hardcode_libdir_flag_spec='-R$libdir'
8281 hardcode_direct=yes
8282 hardcode_shlibpath_var=no
8285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8286 freebsd2*)
8287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_direct=yes
8289 hardcode_minus_L=yes
8290 hardcode_shlibpath_var=no
8293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8294 freebsd* | dragonfly*)
8295 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8296 hardcode_libdir_flag_spec='-R$libdir'
8297 hardcode_direct=yes
8298 hardcode_shlibpath_var=no
8301 hpux9*)
8302 if test "$GCC" = yes; then
8303 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'
8304 else
8305 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'
8307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8308 hardcode_libdir_separator=:
8309 hardcode_direct=yes
8311 # hardcode_minus_L: Not really in the search PATH,
8312 # but as the default location of the library.
8313 hardcode_minus_L=yes
8314 export_dynamic_flag_spec='${wl}-E'
8317 hpux10*)
8318 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8320 else
8321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8323 if test "$with_gnu_ld" = no; then
8324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8325 hardcode_libdir_separator=:
8327 hardcode_direct=yes
8328 export_dynamic_flag_spec='${wl}-E'
8330 # hardcode_minus_L: Not really in the search PATH,
8331 # but as the default location of the library.
8332 hardcode_minus_L=yes
8336 hpux11*)
8337 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8338 case $host_cpu in
8339 hppa*64*)
8340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8342 ia64*)
8343 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8348 esac
8349 else
8350 case $host_cpu in
8351 hppa*64*)
8352 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 ia64*)
8355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8360 esac
8362 if test "$with_gnu_ld" = no; then
8363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8364 hardcode_libdir_separator=:
8366 case $host_cpu in
8367 hppa*64*|ia64*)
8368 hardcode_libdir_flag_spec_ld='+b $libdir'
8369 hardcode_direct=no
8370 hardcode_shlibpath_var=no
8373 hardcode_direct=yes
8374 export_dynamic_flag_spec='${wl}-E'
8376 # hardcode_minus_L: Not really in the search PATH,
8377 # but as the default location of the library.
8378 hardcode_minus_L=yes
8380 esac
8384 irix5* | irix6* | nonstopux*)
8385 if test "$GCC" = yes; then
8386 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'
8387 else
8388 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'
8389 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8392 hardcode_libdir_separator=:
8393 link_all_deplibs=yes
8396 netbsd* | netbsdelf*-gnu)
8397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8399 else
8400 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8402 hardcode_libdir_flag_spec='-R$libdir'
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8407 newsos6)
8408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_direct=yes
8410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8411 hardcode_libdir_separator=:
8412 hardcode_shlibpath_var=no
8415 openbsd*)
8416 hardcode_direct=yes
8417 hardcode_shlibpath_var=no
8418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8420 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8422 export_dynamic_flag_spec='${wl}-E'
8423 else
8424 case $host_os in
8425 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_libdir_flag_spec='-R$libdir'
8430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8431 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8433 esac
8437 os2*)
8438 hardcode_libdir_flag_spec='-L$libdir'
8439 hardcode_minus_L=yes
8440 allow_undefined_flag=unsupported
8441 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'
8442 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8445 osf3*)
8446 if test "$GCC" = yes; then
8447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8448 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'
8449 else
8450 allow_undefined_flag=' -expect_unresolved \*'
8451 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'
8453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8454 hardcode_libdir_separator=:
8457 osf4* | osf5*) # as osf3* with the addition of -msym flag
8458 if test "$GCC" = yes; then
8459 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8460 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'
8461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8462 else
8463 allow_undefined_flag=' -expect_unresolved \*'
8464 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'
8465 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8466 $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'
8468 # Both c and cxx compiler support -rpath directly
8469 hardcode_libdir_flag_spec='-rpath $libdir'
8471 hardcode_libdir_separator=:
8474 solaris*)
8475 no_undefined_flag=' -z text'
8476 if test "$GCC" = yes; then
8477 wlarc='${wl}'
8478 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8481 else
8482 wlarc=''
8483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8487 hardcode_libdir_flag_spec='-R$libdir'
8488 hardcode_shlibpath_var=no
8489 case $host_os in
8490 solaris2.[0-5] | solaris2.[0-5].*) ;;
8492 # The compiler driver will combine linker options so we
8493 # cannot just pass the convience library names through
8494 # without $wl, iff we do not link with $LD.
8495 # Luckily, gcc supports the same syntax we need for Sun Studio.
8496 # Supported since Solaris 2.6 (maybe 2.5.1?)
8497 case $wlarc in
8499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8501 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8502 esac ;;
8503 esac
8504 link_all_deplibs=yes
8507 sunos4*)
8508 if test "x$host_vendor" = xsequent; then
8509 # Use $CC to link under sequent, because it throws in some extra .o
8510 # files that make .init and .fini sections work.
8511 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8512 else
8513 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_libdir_flag_spec='-L$libdir'
8516 hardcode_direct=yes
8517 hardcode_minus_L=yes
8518 hardcode_shlibpath_var=no
8521 sysv4)
8522 case $host_vendor in
8523 sni)
8524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_direct=yes # is this really true???
8527 siemens)
8528 ## LD is ld it makes a PLAMLIB
8529 ## CC just makes a GrossModule.
8530 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8531 reload_cmds='$CC -r -o $output$reload_objs'
8532 hardcode_direct=no
8534 motorola)
8535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8536 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8538 esac
8539 runpath_var='LD_RUN_PATH'
8540 hardcode_shlibpath_var=no
8543 sysv4.3*)
8544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_shlibpath_var=no
8546 export_dynamic_flag_spec='-Bexport'
8549 sysv4*MP*)
8550 if test -d /usr/nec; then
8551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_shlibpath_var=no
8553 runpath_var=LD_RUN_PATH
8554 hardcode_runpath_var=yes
8555 ld_shlibs=yes
8559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8560 no_undefined_flag='${wl}-z,text'
8561 archive_cmds_need_lc=no
8562 hardcode_shlibpath_var=no
8563 runpath_var='LD_RUN_PATH'
8565 if test "$GCC" = yes; then
8566 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8568 else
8569 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8570 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8574 sysv5* | sco3.2v5* | sco5v6*)
8575 # Note: We can NOT use -z defs as we might desire, because we do not
8576 # link with -lc, and that would cause any symbols used from libc to
8577 # always be unresolved, which means just about no library would
8578 # ever link correctly. If we're not using GNU ld we use -z text
8579 # though, which does catch some bad symbols but isn't as heavy-handed
8580 # as -z defs.
8581 no_undefined_flag='${wl}-z,text'
8582 allow_undefined_flag='${wl}-z,nodefs'
8583 archive_cmds_need_lc=no
8584 hardcode_shlibpath_var=no
8585 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8586 hardcode_libdir_separator=':'
8587 link_all_deplibs=yes
8588 export_dynamic_flag_spec='${wl}-Bexport'
8589 runpath_var='LD_RUN_PATH'
8591 if test "$GCC" = yes; then
8592 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594 else
8595 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8600 uts4*)
8601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 hardcode_libdir_flag_spec='-L$libdir'
8603 hardcode_shlibpath_var=no
8607 ld_shlibs=no
8609 esac
8612 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8613 echo "${ECHO_T}$ld_shlibs" >&6; }
8614 test "$ld_shlibs" = no && can_build_shared=no
8617 # Do we need to explicitly link libc?
8619 case "x$archive_cmds_need_lc" in
8620 x|xyes)
8621 # Assume -lc should be added
8622 archive_cmds_need_lc=yes
8624 if test "$enable_shared" = yes && test "$GCC" = yes; then
8625 case $archive_cmds in
8626 *'~'*)
8627 # FIXME: we may have to deal with multi-command sequences.
8629 '$CC '*)
8630 # Test whether the compiler implicitly links with -lc since on some
8631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8632 # to ld, don't add -lc before -lgcc.
8633 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8635 $rm conftest*
8636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } 2>conftest.err; then
8643 soname=conftest
8644 lib=conftest
8645 libobjs=conftest.$ac_objext
8646 deplibs=
8647 wl=$lt_prog_compiler_wl
8648 pic_flag=$lt_prog_compiler_pic
8649 compiler_flags=-v
8650 linker_flags=-v
8651 verstring=
8652 output_objdir=.
8653 libname=conftest
8654 lt_save_allow_undefined_flag=$allow_undefined_flag
8655 allow_undefined_flag=
8656 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8657 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }
8661 then
8662 archive_cmds_need_lc=no
8663 else
8664 archive_cmds_need_lc=yes
8666 allow_undefined_flag=$lt_save_allow_undefined_flag
8667 else
8668 cat conftest.err 1>&5
8670 $rm conftest*
8671 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8672 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8674 esac
8677 esac
8679 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8681 library_names_spec=
8682 libname_spec='lib$name'
8683 soname_spec=
8684 shrext_cmds=".so"
8685 postinstall_cmds=
8686 postuninstall_cmds=
8687 finish_cmds=
8688 finish_eval=
8689 shlibpath_var=
8690 shlibpath_overrides_runpath=unknown
8691 version_type=none
8692 dynamic_linker="$host_os ld.so"
8693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8694 if test "$GCC" = yes; then
8695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8697 # if the path contains ";" then we assume it to be the separator
8698 # otherwise default to the standard path separator (i.e. ":") - it is
8699 # assumed that no part of a normal pathname contains ";" but that should
8700 # okay in the real world where ";" in dirpaths is itself problematic.
8701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8702 else
8703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8705 else
8706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8708 need_lib_prefix=unknown
8709 hardcode_into_libs=no
8711 # when you set need_version to no, make sure it does not cause -set_version
8712 # flags to be left without arguments
8713 need_version=unknown
8715 case $host_os in
8716 aix3*)
8717 version_type=linux
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8719 shlibpath_var=LIBPATH
8721 # AIX 3 has no versioning support, so we append a major version to the name.
8722 soname_spec='${libname}${release}${shared_ext}$major'
8725 aix4* | aix5*)
8726 version_type=linux
8727 need_lib_prefix=no
8728 need_version=no
8729 hardcode_into_libs=yes
8730 if test "$host_cpu" = ia64; then
8731 # AIX 5 supports IA64
8732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8733 shlibpath_var=LD_LIBRARY_PATH
8734 else
8735 # With GCC up to 2.95.x, collect2 would create an import file
8736 # for dependence libraries. The import file would start with
8737 # the line `#! .'. This would cause the generated library to
8738 # depend on `.', always an invalid library. This was fixed in
8739 # development snapshots of GCC prior to 3.0.
8740 case $host_os in
8741 aix4 | aix4.[01] | aix4.[01].*)
8742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8743 echo ' yes '
8744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8746 else
8747 can_build_shared=no
8750 esac
8751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8752 # soname into executable. Probably we can add versioning support to
8753 # collect2, so additional links can be useful in future.
8754 if test "$aix_use_runtimelinking" = yes; then
8755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8756 # instead of lib<name>.a to let people know that these are not
8757 # typical AIX shared libraries.
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759 else
8760 # We preserve .a as extension for shared libraries through AIX4.2
8761 # and later when we are not doing run time linking.
8762 library_names_spec='${libname}${release}.a $libname.a'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8765 shlibpath_var=LIBPATH
8769 amigaos*)
8770 library_names_spec='$libname.ixlibrary $libname.a'
8771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8772 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'
8775 beos*)
8776 library_names_spec='${libname}${shared_ext}'
8777 dynamic_linker="$host_os ld.so"
8778 shlibpath_var=LIBRARY_PATH
8781 bsdi[45]*)
8782 version_type=linux
8783 need_version=no
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8790 # the default ld.so.conf also contains /usr/contrib/lib and
8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8792 # libtool to hard-code these into programs
8795 cygwin* | mingw* | pw32*)
8796 version_type=windows
8797 shrext_cmds=".dll"
8798 need_version=no
8799 need_lib_prefix=no
8801 case $GCC,$host_os in
8802 yes,cygwin* | yes,mingw* | yes,pw32*)
8803 library_names_spec='$libname.dll.a'
8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805 postinstall_cmds='base_file=`basename \${file}`~
8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8807 dldir=$destdir/`dirname \$dlpath`~
8808 test -d \$dldir || mkdir -p \$dldir~
8809 $install_prog $dir/$dlname \$dldir/$dlname~
8810 chmod a+x \$dldir/$dlname'
8811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8812 dlpath=$dir/\$dldll~
8813 $rm \$dlpath'
8814 shlibpath_overrides_runpath=yes
8816 case $host_os in
8817 cygwin*)
8818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8820 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8822 mingw*)
8823 # MinGW DLLs use traditional 'lib' prefix
8824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8827 # It is most probably a Windows format PATH printed by
8828 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8829 # path with ; separators, and with drive letters. We can handle the
8830 # drive letters (cygwin fileutils understands them), so leave them,
8831 # especially as we might pass files found there to a mingw objdump,
8832 # which wouldn't understand a cygwinified path. Ahh.
8833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8834 else
8835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8838 pw32*)
8839 # pw32 DLLs use 'pw' prefix rather than 'lib'
8840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842 esac
8846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8848 esac
8849 dynamic_linker='Win32 ld.exe'
8850 # FIXME: first we should search . and the directory the executable is in
8851 shlibpath_var=PATH
8854 darwin* | rhapsody*)
8855 dynamic_linker="$host_os dyld"
8856 version_type=darwin
8857 need_lib_prefix=no
8858 need_version=no
8859 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8860 soname_spec='${libname}${release}${major}$shared_ext'
8861 shlibpath_overrides_runpath=yes
8862 shlibpath_var=DYLD_LIBRARY_PATH
8863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8864 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8865 if test "$GCC" = yes; then
8866 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8867 else
8868 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8873 dgux*)
8874 version_type=linux
8875 need_lib_prefix=no
8876 need_version=no
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LD_LIBRARY_PATH
8882 freebsd1*)
8883 dynamic_linker=no
8886 freebsd* | dragonfly*)
8887 # DragonFly does not have aout. When/if they implement a new
8888 # versioning mechanism, adjust this.
8889 if test -x /usr/bin/objformat; then
8890 objformat=`/usr/bin/objformat`
8891 else
8892 case $host_os in
8893 freebsd[123]*) objformat=aout ;;
8894 *) objformat=elf ;;
8895 esac
8897 version_type=freebsd-$objformat
8898 case $version_type in
8899 freebsd-elf*)
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8901 need_version=no
8902 need_lib_prefix=no
8904 freebsd-*)
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8906 need_version=yes
8908 esac
8909 shlibpath_var=LD_LIBRARY_PATH
8910 case $host_os in
8911 freebsd2*)
8912 shlibpath_overrides_runpath=yes
8914 freebsd3.[01]* | freebsdelf3.[01]*)
8915 shlibpath_overrides_runpath=yes
8916 hardcode_into_libs=yes
8918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8923 freebsd*) # from 4.6 on
8924 shlibpath_overrides_runpath=yes
8925 hardcode_into_libs=yes
8927 esac
8930 gnu*)
8931 version_type=linux
8932 need_lib_prefix=no
8933 need_version=no
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 hardcode_into_libs=yes
8940 hpux9* | hpux10* | hpux11*)
8941 # Give a soname corresponding to the major version so that dld.sl refuses to
8942 # link against other versions.
8943 version_type=sunos
8944 need_lib_prefix=no
8945 need_version=no
8946 case $host_cpu in
8947 ia64*)
8948 shrext_cmds='.so'
8949 hardcode_into_libs=yes
8950 dynamic_linker="$host_os dld.so"
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 if test "X$HPUX_IA64_MODE" = X32; then
8956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8957 else
8958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8962 hppa*64*)
8963 shrext_cmds='.sl'
8964 hardcode_into_libs=yes
8965 dynamic_linker="$host_os dld.sl"
8966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8974 shrext_cmds='.sl'
8975 dynamic_linker="$host_os dld.sl"
8976 shlibpath_var=SHLIB_PATH
8977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8981 esac
8982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8983 postinstall_cmds='chmod 555 $lib'
8986 interix3*)
8987 version_type=linux
8988 need_lib_prefix=no
8989 need_version=no
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 hardcode_into_libs=yes
8998 irix5* | irix6* | nonstopux*)
8999 case $host_os in
9000 nonstopux*) version_type=nonstopux ;;
9002 if test "$lt_cv_prog_gnu_ld" = yes; then
9003 version_type=linux
9004 else
9005 version_type=irix
9006 fi ;;
9007 esac
9008 need_lib_prefix=no
9009 need_version=no
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9012 case $host_os in
9013 irix5* | nonstopux*)
9014 libsuff= shlibsuff=
9017 case $LD in # libtool.m4 will add one of these switches to LD
9018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9019 libsuff= shlibsuff= libmagic=32-bit;;
9020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9021 libsuff=32 shlibsuff=N32 libmagic=N32;;
9022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9024 *) libsuff= shlibsuff= libmagic=never-match;;
9025 esac
9027 esac
9028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9029 shlibpath_overrides_runpath=no
9030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9032 hardcode_into_libs=yes
9035 # No shared lib support for Linux oldld, aout, or coff.
9036 linux*oldld* | linux*aout* | linux*coff*)
9037 dynamic_linker=no
9040 # This must be Linux ELF.
9041 linux* | k*bsd*-gnu)
9042 version_type=linux
9043 need_lib_prefix=no
9044 need_version=no
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=no
9050 # This implies no fast_install, which is unacceptable.
9051 # Some rework will be needed to allow for fast_install
9052 # before this can be enabled.
9053 hardcode_into_libs=yes
9055 # Append ld.so.conf contents to the search path
9056 if test -f /etc/ld.so.conf; then
9057 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9061 # We used to test for /lib/ld.so.1 and disable shared libraries on
9062 # powerpc, because MkLinux only supported shared libraries with the
9063 # GNU dynamic linker. Since this was broken with cross compilers,
9064 # most powerpc-linux boxes support dynamic linking these days and
9065 # people can always --disable-shared, the test was removed, and we
9066 # assume the GNU/Linux dynamic linker is in use.
9067 dynamic_linker='GNU/Linux ld.so'
9070 netbsdelf*-gnu)
9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 hardcode_into_libs=yes
9079 dynamic_linker='NetBSD ld.elf_so'
9082 netbsd*)
9083 version_type=sunos
9084 need_lib_prefix=no
9085 need_version=no
9086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9089 dynamic_linker='NetBSD (a.out) ld.so'
9090 else
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 dynamic_linker='NetBSD ld.elf_so'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=yes
9097 hardcode_into_libs=yes
9100 newsos6)
9101 version_type=linux
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=yes
9107 nto-qnx*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9117 openbsd*)
9118 version_type=sunos
9119 sys_lib_dlsearch_path_spec="/usr/lib"
9120 need_lib_prefix=no
9121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9122 case $host_os in
9123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9124 *) need_version=no ;;
9125 esac
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9130 case $host_os in
9131 openbsd2.[89] | openbsd2.[89].*)
9132 shlibpath_overrides_runpath=no
9135 shlibpath_overrides_runpath=yes
9137 esac
9138 else
9139 shlibpath_overrides_runpath=yes
9143 os2*)
9144 libname_spec='$name'
9145 shrext_cmds=".dll"
9146 need_lib_prefix=no
9147 library_names_spec='$libname${shared_ext} $libname.a'
9148 dynamic_linker='OS/2 ld.exe'
9149 shlibpath_var=LIBPATH
9152 osf3* | osf4* | osf5*)
9153 version_type=osf
9154 need_lib_prefix=no
9155 need_version=no
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9163 solaris*)
9164 version_type=linux
9165 need_lib_prefix=no
9166 need_version=no
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes
9171 hardcode_into_libs=yes
9172 # ldd complains unless libraries are executable
9173 postinstall_cmds='chmod +x $lib'
9176 sunos4*)
9177 version_type=sunos
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9182 if test "$with_gnu_ld" = yes; then
9183 need_lib_prefix=no
9185 need_version=yes
9188 sysv4 | sysv4.3*)
9189 version_type=linux
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 case $host_vendor in
9194 sni)
9195 shlibpath_overrides_runpath=no
9196 need_lib_prefix=no
9197 export_dynamic_flag_spec='${wl}-Blargedynsym'
9198 runpath_var=LD_RUN_PATH
9200 siemens)
9201 need_lib_prefix=no
9203 motorola)
9204 need_lib_prefix=no
9205 need_version=no
9206 shlibpath_overrides_runpath=no
9207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9209 esac
9212 sysv4*MP*)
9213 if test -d /usr/nec ;then
9214 version_type=linux
9215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9216 soname_spec='$libname${shared_ext}.$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9222 version_type=freebsd-elf
9223 need_lib_prefix=no
9224 need_version=no
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 hardcode_into_libs=yes
9229 if test "$with_gnu_ld" = yes; then
9230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9231 shlibpath_overrides_runpath=no
9232 else
9233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9234 shlibpath_overrides_runpath=yes
9235 case $host_os in
9236 sco3.2v5*)
9237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9239 esac
9241 sys_lib_dlsearch_path_spec='/usr/lib'
9244 uts4*)
9245 version_type=linux
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9252 dynamic_linker=no
9254 esac
9255 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9256 echo "${ECHO_T}$dynamic_linker" >&6; }
9257 test "$dynamic_linker" = no && can_build_shared=no
9259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9260 if test "$GCC" = yes; then
9261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9264 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9266 hardcode_action=
9267 if test -n "$hardcode_libdir_flag_spec" || \
9268 test -n "$runpath_var" || \
9269 test "X$hardcode_automatic" = "Xyes" ; then
9271 # We can hardcode non-existant directories.
9272 if test "$hardcode_direct" != no &&
9273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9274 # have to relink, otherwise we might link with an installed library
9275 # when we should be linking with a yet-to-be-installed one
9276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9277 test "$hardcode_minus_L" != no; then
9278 # Linking always hardcodes the temporary library directory.
9279 hardcode_action=relink
9280 else
9281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9282 hardcode_action=immediate
9284 else
9285 # We cannot hardcode anything, or else we can only hardcode existing
9286 # directories.
9287 hardcode_action=unsupported
9289 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9290 echo "${ECHO_T}$hardcode_action" >&6; }
9292 if test "$hardcode_action" = relink; then
9293 # Fast installation is not supported
9294 enable_fast_install=no
9295 elif test "$shlibpath_overrides_runpath" = yes ||
9296 test "$enable_shared" = no; then
9297 # Fast installation is not necessary
9298 enable_fast_install=needless
9301 striplib=
9302 old_striplib=
9303 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9305 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9308 { echo "$as_me:$LINENO: result: yes" >&5
9309 echo "${ECHO_T}yes" >&6; }
9310 else
9311 # FIXME - insert some real tests, host_os isn't really good enough
9312 case $host_os in
9313 darwin*)
9314 if test -n "$STRIP" ; then
9315 striplib="$STRIP -x"
9316 { echo "$as_me:$LINENO: result: yes" >&5
9317 echo "${ECHO_T}yes" >&6; }
9318 else
9319 { echo "$as_me:$LINENO: result: no" >&5
9320 echo "${ECHO_T}no" >&6; }
9324 { echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6; }
9327 esac
9330 if test "x$enable_dlopen" != xyes; then
9331 enable_dlopen=unknown
9332 enable_dlopen_self=unknown
9333 enable_dlopen_self_static=unknown
9334 else
9335 lt_cv_dlopen=no
9336 lt_cv_dlopen_libs=
9338 case $host_os in
9339 beos*)
9340 lt_cv_dlopen="load_add_on"
9341 lt_cv_dlopen_libs=
9342 lt_cv_dlopen_self=yes
9345 mingw* | pw32*)
9346 lt_cv_dlopen="LoadLibrary"
9347 lt_cv_dlopen_libs=
9350 cygwin*)
9351 lt_cv_dlopen="dlopen"
9352 lt_cv_dlopen_libs=
9355 darwin*)
9356 # if libdl is installed we need to link against it
9357 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362 ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-ldl $LIBS"
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 char dlopen ();
9379 main ()
9381 return dlopen ();
9383 return 0;
9385 _ACEOF
9386 rm -f conftest.$ac_objext conftest$ac_exeext
9387 if { (ac_try="$ac_link"
9388 case "(($ac_try" in
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_link") 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && {
9400 test -z "$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 } && test -s conftest$ac_exeext &&
9403 $as_test_x conftest$ac_exeext; then
9404 ac_cv_lib_dl_dlopen=yes
9405 else
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 ac_cv_lib_dl_dlopen=no
9412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9413 conftest$ac_exeext conftest.$ac_ext
9414 LIBS=$ac_check_lib_save_LIBS
9416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9417 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9418 if test $ac_cv_lib_dl_dlopen = yes; then
9419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9420 else
9422 lt_cv_dlopen="dyld"
9423 lt_cv_dlopen_libs=
9424 lt_cv_dlopen_self=yes
9431 { echo "$as_me:$LINENO: checking for shl_load" >&5
9432 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9433 if test "${ac_cv_func_shl_load+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9444 #define shl_load innocuous_shl_load
9446 /* System header to define __stub macros and hopefully few prototypes,
9447 which can conflict with char shl_load (); below.
9448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9449 <limits.h> exists even on freestanding compilers. */
9451 #ifdef __STDC__
9452 # include <limits.h>
9453 #else
9454 # include <assert.h>
9455 #endif
9457 #undef shl_load
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 char shl_load ();
9466 /* The GNU C library defines this for functions which it implements
9467 to always fail with ENOSYS. Some functions are actually named
9468 something starting with __ and the normal name is an alias. */
9469 #if defined __stub_shl_load || defined __stub___shl_load
9470 choke me
9471 #endif
9474 main ()
9476 return shl_load ();
9478 return 0;
9480 _ACEOF
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9483 case "(($ac_try" in
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_link") 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest$ac_exeext &&
9498 $as_test_x conftest$ac_exeext; then
9499 ac_cv_func_shl_load=yes
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 ac_cv_func_shl_load=no
9507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9508 conftest$ac_exeext conftest.$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9511 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9512 if test $ac_cv_func_shl_load = yes; then
9513 lt_cv_dlopen="shl_load"
9514 else
9515 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9516 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-ldld $LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char shl_load ();
9537 main ()
9539 return shl_load ();
9541 return 0;
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9546 case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562 ac_cv_lib_dld_shl_load=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_lib_dld_shl_load=no
9570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9575 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9576 if test $ac_cv_lib_dld_shl_load = yes; then
9577 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9578 else
9579 { echo "$as_me:$LINENO: checking for dlopen" >&5
9580 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9581 if test "${ac_cv_func_dlopen+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9592 #define dlopen innocuous_dlopen
9594 /* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char dlopen (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9599 #ifdef __STDC__
9600 # include <limits.h>
9601 #else
9602 # include <assert.h>
9603 #endif
9605 #undef dlopen
9607 /* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
9610 #ifdef __cplusplus
9611 extern "C"
9612 #endif
9613 char dlopen ();
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined __stub_dlopen || defined __stub___dlopen
9618 choke me
9619 #endif
9622 main ()
9624 return dlopen ();
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_link") 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest$ac_exeext &&
9646 $as_test_x conftest$ac_exeext; then
9647 ac_cv_func_dlopen=yes
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_cv_func_dlopen=no
9655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656 conftest$ac_exeext conftest.$ac_ext
9658 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9660 if test $ac_cv_func_dlopen = yes; then
9661 lt_cv_dlopen="dlopen"
9662 else
9663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-ldl $LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char dlopen ();
9685 main ()
9687 return dlopen ();
9689 return 0;
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest$ac_exeext &&
9709 $as_test_x conftest$ac_exeext; then
9710 ac_cv_lib_dl_dlopen=yes
9711 else
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 ac_cv_lib_dl_dlopen=no
9718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719 conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9722 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9723 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9724 if test $ac_cv_lib_dl_dlopen = yes; then
9725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9726 else
9727 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9728 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9729 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-lsvld $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 /* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9744 #ifdef __cplusplus
9745 extern "C"
9746 #endif
9747 char dlopen ();
9749 main ()
9751 return dlopen ();
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9758 case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 } && test -s conftest$ac_exeext &&
9773 $as_test_x conftest$ac_exeext; then
9774 ac_cv_lib_svld_dlopen=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_cv_lib_svld_dlopen=no
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9787 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9788 if test $ac_cv_lib_svld_dlopen = yes; then
9789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9790 else
9791 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9792 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-ldld $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char dld_link ();
9813 main ()
9815 return dld_link ();
9817 return 0;
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext &&
9837 $as_test_x conftest$ac_exeext; then
9838 ac_cv_lib_dld_dld_link=yes
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_lib_dld_dld_link=no
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9851 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9852 if test $ac_cv_lib_dld_dld_link = yes; then
9853 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9872 esac
9874 if test "x$lt_cv_dlopen" != xno; then
9875 enable_dlopen=yes
9876 else
9877 enable_dlopen=no
9880 case $lt_cv_dlopen in
9881 dlopen)
9882 save_CPPFLAGS="$CPPFLAGS"
9883 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9885 save_LDFLAGS="$LDFLAGS"
9886 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9888 save_LIBS="$LIBS"
9889 LIBS="$lt_cv_dlopen_libs $LIBS"
9891 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9892 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9893 if test "${lt_cv_dlopen_self+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 if test "$cross_compiling" = yes; then :
9897 lt_cv_dlopen_self=cross
9898 else
9899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9900 lt_status=$lt_dlunknown
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9902 "configure"
9903 #include "confdefs.h"
9905 #if HAVE_DLFCN_H
9906 #include <dlfcn.h>
9907 #endif
9909 #include <stdio.h>
9911 #ifdef RTLD_GLOBAL
9912 # define LT_DLGLOBAL RTLD_GLOBAL
9913 #else
9914 # ifdef DL_GLOBAL
9915 # define LT_DLGLOBAL DL_GLOBAL
9916 # else
9917 # define LT_DLGLOBAL 0
9918 # endif
9919 #endif
9921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9922 find out it does not work in some platform. */
9923 #ifndef LT_DLLAZY_OR_NOW
9924 # ifdef RTLD_LAZY
9925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9926 # else
9927 # ifdef DL_LAZY
9928 # define LT_DLLAZY_OR_NOW DL_LAZY
9929 # else
9930 # ifdef RTLD_NOW
9931 # define LT_DLLAZY_OR_NOW RTLD_NOW
9932 # else
9933 # ifdef DL_NOW
9934 # define LT_DLLAZY_OR_NOW DL_NOW
9935 # else
9936 # define LT_DLLAZY_OR_NOW 0
9937 # endif
9938 # endif
9939 # endif
9940 # endif
9941 #endif
9943 #ifdef __cplusplus
9944 extern "C" void exit (int);
9945 #endif
9947 void fnord() { int i=42;}
9948 int main ()
9950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9951 int status = $lt_dlunknown;
9953 if (self)
9955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9957 /* dlclose (self); */
9959 else
9960 puts (dlerror ());
9962 exit (status);
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9970 (./conftest; exit; ) >&5 2>/dev/null
9971 lt_status=$?
9972 case x$lt_status in
9973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9976 esac
9977 else :
9978 # compilation failed
9979 lt_cv_dlopen_self=no
9982 rm -fr conftest*
9986 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9987 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9989 if test "x$lt_cv_dlopen_self" = xyes; then
9990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9991 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9992 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9993 if test "${lt_cv_dlopen_self_static+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996 if test "$cross_compiling" = yes; then :
9997 lt_cv_dlopen_self_static=cross
9998 else
9999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10000 lt_status=$lt_dlunknown
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10002 "configure"
10003 #include "confdefs.h"
10005 #if HAVE_DLFCN_H
10006 #include <dlfcn.h>
10007 #endif
10009 #include <stdio.h>
10011 #ifdef RTLD_GLOBAL
10012 # define LT_DLGLOBAL RTLD_GLOBAL
10013 #else
10014 # ifdef DL_GLOBAL
10015 # define LT_DLGLOBAL DL_GLOBAL
10016 # else
10017 # define LT_DLGLOBAL 0
10018 # endif
10019 #endif
10021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10022 find out it does not work in some platform. */
10023 #ifndef LT_DLLAZY_OR_NOW
10024 # ifdef RTLD_LAZY
10025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10026 # else
10027 # ifdef DL_LAZY
10028 # define LT_DLLAZY_OR_NOW DL_LAZY
10029 # else
10030 # ifdef RTLD_NOW
10031 # define LT_DLLAZY_OR_NOW RTLD_NOW
10032 # else
10033 # ifdef DL_NOW
10034 # define LT_DLLAZY_OR_NOW DL_NOW
10035 # else
10036 # define LT_DLLAZY_OR_NOW 0
10037 # endif
10038 # endif
10039 # endif
10040 # endif
10041 #endif
10043 #ifdef __cplusplus
10044 extern "C" void exit (int);
10045 #endif
10047 void fnord() { int i=42;}
10048 int main ()
10050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10051 int status = $lt_dlunknown;
10053 if (self)
10055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10056 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10057 /* dlclose (self); */
10059 else
10060 puts (dlerror ());
10062 exit (status);
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10070 (./conftest; exit; ) >&5 2>/dev/null
10071 lt_status=$?
10072 case x$lt_status in
10073 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10074 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10075 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10076 esac
10077 else :
10078 # compilation failed
10079 lt_cv_dlopen_self_static=no
10082 rm -fr conftest*
10086 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10087 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10090 CPPFLAGS="$save_CPPFLAGS"
10091 LDFLAGS="$save_LDFLAGS"
10092 LIBS="$save_LIBS"
10094 esac
10096 case $lt_cv_dlopen_self in
10097 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10098 *) enable_dlopen_self=unknown ;;
10099 esac
10101 case $lt_cv_dlopen_self_static in
10102 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10103 *) enable_dlopen_self_static=unknown ;;
10104 esac
10108 # Report which library types will actually be built
10109 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10110 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10111 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10112 echo "${ECHO_T}$can_build_shared" >&6; }
10114 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10115 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10116 test "$can_build_shared" = "no" && enable_shared=no
10118 # On AIX, shared libraries and static libraries use the same namespace, and
10119 # are all built from PIC.
10120 case $host_os in
10121 aix3*)
10122 test "$enable_shared" = yes && enable_static=no
10123 if test -n "$RANLIB"; then
10124 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10125 postinstall_cmds='$RANLIB $lib'
10129 aix4* | aix5*)
10130 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10131 test "$enable_shared" = yes && enable_static=no
10134 esac
10135 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10136 echo "${ECHO_T}$enable_shared" >&6; }
10138 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10139 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10140 # Make sure either enable_shared or enable_static is yes.
10141 test "$enable_shared" = yes || enable_static=yes
10142 { echo "$as_me:$LINENO: result: $enable_static" >&5
10143 echo "${ECHO_T}$enable_static" >&6; }
10145 # The else clause should only fire when bootstrapping the
10146 # libtool distribution, otherwise you forgot to ship ltmain.sh
10147 # with your package, and you will get complaints that there are
10148 # no rules to generate ltmain.sh.
10149 if test -f "$ltmain"; then
10150 # See if we are running on zsh, and set the options which allow our commands through
10151 # without removal of \ escapes.
10152 if test -n "${ZSH_VERSION+set}" ; then
10153 setopt NO_GLOB_SUBST
10155 # Now quote all the things that may contain metacharacters while being
10156 # careful not to overquote the AC_SUBSTed values. We take copies of the
10157 # variables and quote the copies for generation of the libtool script.
10158 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10159 SED SHELL STRIP \
10160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10162 deplibs_check_method reload_flag reload_cmds need_locks \
10163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10164 lt_cv_sys_global_symbol_to_c_name_address \
10165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10166 old_postinstall_cmds old_postuninstall_cmds \
10167 compiler \
10168 CC \
10169 LD \
10170 lt_prog_compiler_wl \
10171 lt_prog_compiler_pic \
10172 lt_prog_compiler_static \
10173 lt_prog_compiler_no_builtin_flag \
10174 export_dynamic_flag_spec \
10175 thread_safe_flag_spec \
10176 whole_archive_flag_spec \
10177 enable_shared_with_static_runtimes \
10178 old_archive_cmds \
10179 old_archive_from_new_cmds \
10180 predep_objects \
10181 postdep_objects \
10182 predeps \
10183 postdeps \
10184 compiler_lib_search_path \
10185 archive_cmds \
10186 archive_expsym_cmds \
10187 postinstall_cmds \
10188 postuninstall_cmds \
10189 old_archive_from_expsyms_cmds \
10190 allow_undefined_flag \
10191 no_undefined_flag \
10192 export_symbols_cmds \
10193 hardcode_libdir_flag_spec \
10194 hardcode_libdir_flag_spec_ld \
10195 hardcode_libdir_separator \
10196 hardcode_automatic \
10197 module_cmds \
10198 module_expsym_cmds \
10199 lt_cv_prog_compiler_c_o \
10200 exclude_expsyms \
10201 include_expsyms; do
10203 case $var in
10204 old_archive_cmds | \
10205 old_archive_from_new_cmds | \
10206 archive_cmds | \
10207 archive_expsym_cmds | \
10208 module_cmds | \
10209 module_expsym_cmds | \
10210 old_archive_from_expsyms_cmds | \
10211 export_symbols_cmds | \
10212 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10213 postinstall_cmds | postuninstall_cmds | \
10214 old_postinstall_cmds | old_postuninstall_cmds | \
10215 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10216 # Double-quote double-evaled strings.
10217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10222 esac
10223 done
10225 case $lt_echo in
10226 *'\$0 --fallback-echo"')
10227 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10229 esac
10231 cfgfile="${ofile}T"
10232 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10233 $rm -f "$cfgfile"
10234 { echo "$as_me:$LINENO: creating $ofile" >&5
10235 echo "$as_me: creating $ofile" >&6;}
10237 cat <<__EOF__ >> "$cfgfile"
10238 #! $SHELL
10240 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10241 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10242 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10244 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10245 # Free Software Foundation, Inc.
10247 # This file is part of GNU Libtool:
10248 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10250 # This program is free software; you can redistribute it and/or modify
10251 # it under the terms of the GNU General Public License as published by
10252 # the Free Software Foundation; either version 2 of the License, or
10253 # (at your option) any later version.
10255 # This program is distributed in the hope that it will be useful, but
10256 # WITHOUT ANY WARRANTY; without even the implied warranty of
10257 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10258 # General Public License for more details.
10260 # You should have received a copy of the GNU General Public License
10261 # along with this program; if not, write to the Free Software
10262 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10264 # As a special exception to the GNU General Public License, if you
10265 # distribute this file as part of a program that contains a
10266 # configuration script generated by Autoconf, you may include it under
10267 # the same distribution terms that you use for the rest of that program.
10269 # A sed program that does not truncate output.
10270 SED=$lt_SED
10272 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10273 Xsed="$SED -e 1s/^X//"
10275 # The HP-UX ksh and POSIX shell print the target directory to stdout
10276 # if CDPATH is set.
10277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10279 # The names of the tagged configurations supported by this script.
10280 available_tags=
10282 # ### BEGIN LIBTOOL CONFIG
10284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10286 # Shell to use when invoking shell scripts.
10287 SHELL=$lt_SHELL
10289 # Whether or not to build shared libraries.
10290 build_libtool_libs=$enable_shared
10292 # Whether or not to build static libraries.
10293 build_old_libs=$enable_static
10295 # Whether or not to add -lc for building shared libraries.
10296 build_libtool_need_lc=$archive_cmds_need_lc
10298 # Whether or not to disallow shared libs when runtime libs are static
10299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10301 # Whether or not to optimize for fast installation.
10302 fast_install=$enable_fast_install
10304 # The host system.
10305 host_alias=$host_alias
10306 host=$host
10307 host_os=$host_os
10309 # The build system.
10310 build_alias=$build_alias
10311 build=$build
10312 build_os=$build_os
10314 # An echo program that does not interpret backslashes.
10315 echo=$lt_echo
10317 # The archiver.
10318 AR=$lt_AR
10319 AR_FLAGS=$lt_AR_FLAGS
10321 # A C compiler.
10322 LTCC=$lt_LTCC
10324 # LTCC compiler flags.
10325 LTCFLAGS=$lt_LTCFLAGS
10327 # A language-specific compiler.
10328 CC=$lt_compiler
10330 # Is the compiler the GNU C compiler?
10331 with_gcc=$GCC
10333 # An ERE matcher.
10334 EGREP=$lt_EGREP
10336 # The linker used to build libraries.
10337 LD=$lt_LD
10339 # Whether we need hard or soft links.
10340 LN_S=$lt_LN_S
10342 # A BSD-compatible nm program.
10343 NM=$lt_NM
10345 # A symbol stripping program
10346 STRIP=$lt_STRIP
10348 # Used to examine libraries when file_magic_cmd begins "file"
10349 MAGIC_CMD=$MAGIC_CMD
10351 # Used on cygwin: DLL creation program.
10352 DLLTOOL="$DLLTOOL"
10354 # Used on cygwin: object dumper.
10355 OBJDUMP="$OBJDUMP"
10357 # Used on cygwin: assembler.
10358 AS="$AS"
10360 # The name of the directory that contains temporary libtool files.
10361 objdir=$objdir
10363 # How to create reloadable object files.
10364 reload_flag=$lt_reload_flag
10365 reload_cmds=$lt_reload_cmds
10367 # How to pass a linker flag through the compiler.
10368 wl=$lt_lt_prog_compiler_wl
10370 # Object file suffix (normally "o").
10371 objext="$ac_objext"
10373 # Old archive suffix (normally "a").
10374 libext="$libext"
10376 # Shared library suffix (normally ".so").
10377 shrext_cmds='$shrext_cmds'
10379 # Executable file suffix (normally "").
10380 exeext="$exeext"
10382 # Additional compiler flags for building library objects.
10383 pic_flag=$lt_lt_prog_compiler_pic
10384 pic_mode=$pic_mode
10386 # What is the maximum length of a command?
10387 max_cmd_len=$lt_cv_sys_max_cmd_len
10389 # Does compiler simultaneously support -c and -o options?
10390 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10392 # Must we lock files when doing compilation?
10393 need_locks=$lt_need_locks
10395 # Do we need the lib prefix for modules?
10396 need_lib_prefix=$need_lib_prefix
10398 # Do we need a version for libraries?
10399 need_version=$need_version
10401 # Whether dlopen is supported.
10402 dlopen_support=$enable_dlopen
10404 # Whether dlopen of programs is supported.
10405 dlopen_self=$enable_dlopen_self
10407 # Whether dlopen of statically linked programs is supported.
10408 dlopen_self_static=$enable_dlopen_self_static
10410 # Compiler flag to prevent dynamic linking.
10411 link_static_flag=$lt_lt_prog_compiler_static
10413 # Compiler flag to turn off builtin functions.
10414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10416 # Compiler flag to allow reflexive dlopens.
10417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10419 # Compiler flag to generate shared objects directly from archives.
10420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10422 # Compiler flag to generate thread-safe objects.
10423 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10425 # Library versioning type.
10426 version_type=$version_type
10428 # Format of library name prefix.
10429 libname_spec=$lt_libname_spec
10431 # List of archive names. First name is the real one, the rest are links.
10432 # The last name is the one that the linker finds with -lNAME.
10433 library_names_spec=$lt_library_names_spec
10435 # The coded name of the library, if different from the real name.
10436 soname_spec=$lt_soname_spec
10438 # Commands used to build and install an old-style archive.
10439 RANLIB=$lt_RANLIB
10440 old_archive_cmds=$lt_old_archive_cmds
10441 old_postinstall_cmds=$lt_old_postinstall_cmds
10442 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10444 # Create an old-style archive from a shared archive.
10445 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10447 # Create a temporary old-style archive to link instead of a shared archive.
10448 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10450 # Commands used to build and install a shared archive.
10451 archive_cmds=$lt_archive_cmds
10452 archive_expsym_cmds=$lt_archive_expsym_cmds
10453 postinstall_cmds=$lt_postinstall_cmds
10454 postuninstall_cmds=$lt_postuninstall_cmds
10456 # Commands used to build a loadable module (assumed same as above if empty)
10457 module_cmds=$lt_module_cmds
10458 module_expsym_cmds=$lt_module_expsym_cmds
10460 # Commands to strip libraries.
10461 old_striplib=$lt_old_striplib
10462 striplib=$lt_striplib
10464 # Dependencies to place before the objects being linked to create a
10465 # shared library.
10466 predep_objects=$lt_predep_objects
10468 # Dependencies to place after the objects being linked to create a
10469 # shared library.
10470 postdep_objects=$lt_postdep_objects
10472 # Dependencies to place before the objects being linked to create a
10473 # shared library.
10474 predeps=$lt_predeps
10476 # Dependencies to place after the objects being linked to create a
10477 # shared library.
10478 postdeps=$lt_postdeps
10480 # The library search path used internally by the compiler when linking
10481 # a shared library.
10482 compiler_lib_search_path=$lt_compiler_lib_search_path
10484 # Method to check whether dependent libraries are shared objects.
10485 deplibs_check_method=$lt_deplibs_check_method
10487 # Command to use when deplibs_check_method == file_magic.
10488 file_magic_cmd=$lt_file_magic_cmd
10490 # Flag that allows shared libraries with undefined symbols to be built.
10491 allow_undefined_flag=$lt_allow_undefined_flag
10493 # Flag that forces no undefined symbols.
10494 no_undefined_flag=$lt_no_undefined_flag
10496 # Commands used to finish a libtool library installation in a directory.
10497 finish_cmds=$lt_finish_cmds
10499 # Same as above, but a single script fragment to be evaled but not shown.
10500 finish_eval=$lt_finish_eval
10502 # Take the output of nm and produce a listing of raw symbols and C names.
10503 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10505 # Transform the output of nm in a proper C declaration
10506 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10508 # Transform the output of nm in a C name address pair
10509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10511 # This is the shared library runtime path variable.
10512 runpath_var=$runpath_var
10514 # This is the shared library path variable.
10515 shlibpath_var=$shlibpath_var
10517 # Is shlibpath searched before the hard-coded library search path?
10518 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10520 # How to hardcode a shared library path into an executable.
10521 hardcode_action=$hardcode_action
10523 # Whether we should hardcode library paths into libraries.
10524 hardcode_into_libs=$hardcode_into_libs
10526 # Flag to hardcode \$libdir into a binary during linking.
10527 # This must work even if \$libdir does not exist.
10528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10530 # If ld is used when linking, flag to hardcode \$libdir into
10531 # a binary during linking. This must work even if \$libdir does
10532 # not exist.
10533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10535 # Whether we need a single -rpath flag with a separated argument.
10536 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10538 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10539 # resulting binary.
10540 hardcode_direct=$hardcode_direct
10542 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10543 # resulting binary.
10544 hardcode_minus_L=$hardcode_minus_L
10546 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10547 # the resulting binary.
10548 hardcode_shlibpath_var=$hardcode_shlibpath_var
10550 # Set to yes if building a shared library automatically hardcodes DIR into the library
10551 # and all subsequent libraries and executables linked against it.
10552 hardcode_automatic=$hardcode_automatic
10554 # Variables whose values should be saved in libtool wrapper scripts and
10555 # restored at relink time.
10556 variables_saved_for_relink="$variables_saved_for_relink"
10558 # Whether libtool must link a program against all its dependency libraries.
10559 link_all_deplibs=$link_all_deplibs
10561 # Compile-time system search path for libraries
10562 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10564 # Run-time system search path for libraries
10565 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10567 # Fix the shell variable \$srcfile for the compiler.
10568 fix_srcfile_path="$fix_srcfile_path"
10570 # Set to yes if exported symbols are required.
10571 always_export_symbols=$always_export_symbols
10573 # The commands to list exported symbols.
10574 export_symbols_cmds=$lt_export_symbols_cmds
10576 # The commands to extract the exported symbol list from a shared archive.
10577 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10579 # Symbols that should not be listed in the preloaded symbols.
10580 exclude_expsyms=$lt_exclude_expsyms
10582 # Symbols that must always be exported.
10583 include_expsyms=$lt_include_expsyms
10585 # ### END LIBTOOL CONFIG
10587 __EOF__
10590 case $host_os in
10591 aix3*)
10592 cat <<\EOF >> "$cfgfile"
10594 # AIX sometimes has problems with the GCC collect2 program. For some
10595 # reason, if we set the COLLECT_NAMES environment variable, the problems
10596 # vanish in a puff of smoke.
10597 if test "X${COLLECT_NAMES+set}" != Xset; then
10598 COLLECT_NAMES=
10599 export COLLECT_NAMES
10603 esac
10605 # We use sed instead of cat because bash on DJGPP gets confused if
10606 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10607 # text mode, it properly converts lines to CR/LF. This bash problem
10608 # is reportedly fixed, but why not run on old versions too?
10609 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10611 mv -f "$cfgfile" "$ofile" || \
10612 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10613 chmod +x "$ofile"
10615 else
10616 # If there is no Makefile yet, we rely on a make rule to execute
10617 # `config.status --recheck' to rerun these tests and create the
10618 # libtool script then.
10619 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10620 if test -f "$ltmain_in"; then
10621 test -f Makefile && make "$ltmain"
10626 ac_ext=c
10627 ac_cpp='$CPP $CPPFLAGS'
10628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10632 CC="$lt_save_CC"
10635 # Check whether --with-tags was given.
10636 if test "${with_tags+set}" = set; then
10637 withval=$with_tags; tagnames="$withval"
10641 if test -f "$ltmain" && test -n "$tagnames"; then
10642 if test ! -f "${ofile}"; then
10643 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10644 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10647 if test -z "$LTCC"; then
10648 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10649 if test -z "$LTCC"; then
10650 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10651 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10652 else
10653 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10654 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10657 if test -z "$LTCFLAGS"; then
10658 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10661 # Extract list of available tagged configurations in $ofile.
10662 # Note that this assumes the entire list is on one line.
10663 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10666 for tagname in $tagnames; do
10667 IFS="$lt_save_ifs"
10668 # Check whether tagname contains only valid characters
10669 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10670 "") ;;
10671 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10672 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10673 { (exit 1); exit 1; }; }
10675 esac
10677 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10678 then
10679 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10680 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10681 { (exit 1); exit 1; }; }
10684 # Update the list of available tags.
10685 if test -n "$tagname"; then
10686 echo appending configuration tag \"$tagname\" to $ofile
10688 case $tagname in
10689 CXX)
10690 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10691 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10692 (test "X$CXX" != "Xg++"))) ; then
10693 ac_ext=cpp
10694 ac_cpp='$CXXCPP $CPPFLAGS'
10695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10702 archive_cmds_need_lc_CXX=no
10703 allow_undefined_flag_CXX=
10704 always_export_symbols_CXX=no
10705 archive_expsym_cmds_CXX=
10706 export_dynamic_flag_spec_CXX=
10707 hardcode_direct_CXX=no
10708 hardcode_libdir_flag_spec_CXX=
10709 hardcode_libdir_flag_spec_ld_CXX=
10710 hardcode_libdir_separator_CXX=
10711 hardcode_minus_L_CXX=no
10712 hardcode_shlibpath_var_CXX=unsupported
10713 hardcode_automatic_CXX=no
10714 module_cmds_CXX=
10715 module_expsym_cmds_CXX=
10716 link_all_deplibs_CXX=unknown
10717 old_archive_cmds_CXX=$old_archive_cmds
10718 no_undefined_flag_CXX=
10719 whole_archive_flag_spec_CXX=
10720 enable_shared_with_static_runtimes_CXX=no
10722 # Dependencies to place before and after the object being linked:
10723 predep_objects_CXX=
10724 postdep_objects_CXX=
10725 predeps_CXX=
10726 postdeps_CXX=
10727 compiler_lib_search_path_CXX=
10729 # Source file extension for C++ test sources.
10730 ac_ext=cpp
10732 # Object file extension for compiled C++ test sources.
10733 objext=o
10734 objext_CXX=$objext
10736 # Code to be used in simple compile tests
10737 lt_simple_compile_test_code="int some_variable = 0;\n"
10739 # Code to be used in simple link tests
10740 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10744 # If no C compiler was specified, use CC.
10745 LTCC=${LTCC-"$CC"}
10747 # If no C compiler flags were specified, use CFLAGS.
10748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10750 # Allow CC to be a program name with arguments.
10751 compiler=$CC
10754 # save warnings/boilerplate of simple test code
10755 ac_outfile=conftest.$ac_objext
10756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10758 _lt_compiler_boilerplate=`cat conftest.err`
10759 $rm conftest*
10761 ac_outfile=conftest.$ac_objext
10762 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10764 _lt_linker_boilerplate=`cat conftest.err`
10765 $rm conftest*
10768 # Allow CC to be a program name with arguments.
10769 lt_save_CC=$CC
10770 lt_save_LD=$LD
10771 lt_save_GCC=$GCC
10772 GCC=$GXX
10773 lt_save_with_gnu_ld=$with_gnu_ld
10774 lt_save_path_LD=$lt_cv_path_LD
10775 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10776 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10777 else
10778 $as_unset lt_cv_prog_gnu_ld
10780 if test -n "${lt_cv_path_LDCXX+set}"; then
10781 lt_cv_path_LD=$lt_cv_path_LDCXX
10782 else
10783 $as_unset lt_cv_path_LD
10785 test -z "${LDCXX+set}" || LD=$LDCXX
10786 CC=${CXX-"c++"}
10787 compiler=$CC
10788 compiler_CXX=$CC
10789 for cc_temp in $compiler""; do
10790 case $cc_temp in
10791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10793 \-*) ;;
10794 *) break;;
10795 esac
10796 done
10797 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10800 # We don't want -fno-exception wen compiling C++ code, so set the
10801 # no_builtin_flag separately
10802 if test "$GXX" = yes; then
10803 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10804 else
10805 lt_prog_compiler_no_builtin_flag_CXX=
10808 if test "$GXX" = yes; then
10809 # Set up default GNU C++ configuration
10812 # Check whether --with-gnu-ld was given.
10813 if test "${with_gnu_ld+set}" = set; then
10814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10815 else
10816 with_gnu_ld=no
10819 ac_prog=ld
10820 if test "$GCC" = yes; then
10821 # Check if gcc -print-prog-name=ld gives a path.
10822 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10823 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10824 case $host in
10825 *-*-mingw*)
10826 # gcc leaves a trailing carriage return which upsets mingw
10827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10830 esac
10831 case $ac_prog in
10832 # Accept absolute paths.
10833 [\\/]* | ?:[\\/]*)
10834 re_direlt='/[^/][^/]*/\.\./'
10835 # Canonicalize the pathname of ld
10836 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10838 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10839 done
10840 test -z "$LD" && LD="$ac_prog"
10843 # If it fails, then pretend we aren't using GCC.
10844 ac_prog=ld
10847 # If it is relative, then search for the first ld in PATH.
10848 with_gnu_ld=unknown
10850 esac
10851 elif test "$with_gnu_ld" = yes; then
10852 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10853 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10854 else
10855 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10856 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10858 if test "${lt_cv_path_LD+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 if test -z "$LD"; then
10862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10863 for ac_dir in $PATH; do
10864 IFS="$lt_save_ifs"
10865 test -z "$ac_dir" && ac_dir=.
10866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10867 lt_cv_path_LD="$ac_dir/$ac_prog"
10868 # Check to see if the program is GNU ld. I'd rather use --version,
10869 # but apparently some variants of GNU ld only accept -v.
10870 # Break only if it was the GNU/non-GNU ld that we prefer.
10871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10872 *GNU* | *'with BFD'*)
10873 test "$with_gnu_ld" != no && break
10876 test "$with_gnu_ld" != yes && break
10878 esac
10880 done
10881 IFS="$lt_save_ifs"
10882 else
10883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10887 LD="$lt_cv_path_LD"
10888 if test -n "$LD"; then
10889 { echo "$as_me:$LINENO: result: $LD" >&5
10890 echo "${ECHO_T}$LD" >&6; }
10891 else
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10895 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10896 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10897 { (exit 1); exit 1; }; }
10898 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10899 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10900 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10904 case `$LD -v 2>&1 </dev/null` in
10905 *GNU* | *'with BFD'*)
10906 lt_cv_prog_gnu_ld=yes
10909 lt_cv_prog_gnu_ld=no
10911 esac
10913 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10914 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10915 with_gnu_ld=$lt_cv_prog_gnu_ld
10919 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10920 # archiving commands below assume that GNU ld is being used.
10921 if test "$with_gnu_ld" = yes; then
10922 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10923 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'
10925 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10928 # If archive_cmds runs LD, not CC, wlarc should be empty
10929 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10930 # investigate it a little bit more. (MM)
10931 wlarc='${wl}'
10933 # ancient GNU ld didn't support --whole-archive et. al.
10934 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10935 grep 'no-whole-archive' > /dev/null; then
10936 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10937 else
10938 whole_archive_flag_spec_CXX=
10940 else
10941 with_gnu_ld=no
10942 wlarc=
10944 # A generic and very simple default shared library creation
10945 # command for GNU C++ for the case where it uses the native
10946 # linker, instead of GNU ld. If possible, this setting should
10947 # overridden to take advantage of the native linker features on
10948 # the platform it is being used on.
10949 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10952 # Commands to make compiler produce verbose output that lists
10953 # what "hidden" libraries, object files and flags are used when
10954 # linking a shared library.
10955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10957 else
10958 GXX=no
10959 with_gnu_ld=no
10960 wlarc=
10963 # PORTME: fill in a description of your system's C++ link characteristics
10964 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10966 ld_shlibs_CXX=yes
10967 case $host_os in
10968 aix3*)
10969 # FIXME: insert proper C++ library support
10970 ld_shlibs_CXX=no
10972 aix4* | aix5*)
10973 if test "$host_cpu" = ia64; then
10974 # On IA64, the linker does run time linking by default, so we don't
10975 # have to do anything special.
10976 aix_use_runtimelinking=no
10977 exp_sym_flag='-Bexport'
10978 no_entry_flag=""
10979 else
10980 aix_use_runtimelinking=no
10982 # Test if we are trying to use run time linking or normal
10983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10984 # need to do runtime linking.
10985 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10986 for ld_flag in $LDFLAGS; do
10987 case $ld_flag in
10988 *-brtl*)
10989 aix_use_runtimelinking=yes
10990 break
10992 esac
10993 done
10995 esac
10997 exp_sym_flag='-bexport'
10998 no_entry_flag='-bnoentry'
11001 # When large executables or shared objects are built, AIX ld can
11002 # have problems creating the table of contents. If linking a library
11003 # or program results in "error TOC overflow" add -mminimal-toc to
11004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11007 archive_cmds_CXX=''
11008 hardcode_direct_CXX=yes
11009 hardcode_libdir_separator_CXX=':'
11010 link_all_deplibs_CXX=yes
11012 if test "$GXX" = yes; then
11013 case $host_os in aix4.[012]|aix4.[012].*)
11014 # We only want to do this on AIX 4.2 and lower, the check
11015 # below for broken collect2 doesn't work under 4.3+
11016 collect2name=`${CC} -print-prog-name=collect2`
11017 if test -f "$collect2name" && \
11018 strings "$collect2name" | grep resolve_lib_name >/dev/null
11019 then
11020 # We have reworked collect2
11021 hardcode_direct_CXX=yes
11022 else
11023 # We have old collect2
11024 hardcode_direct_CXX=unsupported
11025 # It fails to find uninstalled libraries when the uninstalled
11026 # path is not listed in the libpath. Setting hardcode_minus_L
11027 # to unsupported forces relinking
11028 hardcode_minus_L_CXX=yes
11029 hardcode_libdir_flag_spec_CXX='-L$libdir'
11030 hardcode_libdir_separator_CXX=
11033 esac
11034 shared_flag='-shared'
11035 if test "$aix_use_runtimelinking" = yes; then
11036 shared_flag="$shared_flag "'${wl}-G'
11038 else
11039 # not using gcc
11040 if test "$host_cpu" = ia64; then
11041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11042 # chokes on -Wl,-G. The following line is correct:
11043 shared_flag='-G'
11044 else
11045 if test "$aix_use_runtimelinking" = yes; then
11046 shared_flag='${wl}-G'
11047 else
11048 shared_flag='${wl}-bM:SRE'
11053 # It seems that -bexpall does not export symbols beginning with
11054 # underscore (_), so it is better to generate a list of symbols to export.
11055 always_export_symbols_CXX=yes
11056 if test "$aix_use_runtimelinking" = yes; then
11057 # Warning - without using the other runtime loading flags (-brtl),
11058 # -berok will link without error, but may produce a broken library.
11059 allow_undefined_flag_CXX='-berok'
11060 # Determine the default libpath from the value encoded in an empty executable.
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11069 main ()
11073 return 0;
11075 _ACEOF
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (ac_try="$ac_link"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_link") 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } && {
11090 test -z "$ac_cxx_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest$ac_exeext &&
11093 $as_test_x conftest$ac_exeext; then
11095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11097 # Check for a 64-bit object if we didn't find anything.
11098 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11099 }'`; fi
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11113 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"
11114 else
11115 if test "$host_cpu" = ia64; then
11116 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117 allow_undefined_flag_CXX="-z nodefs"
11118 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"
11119 else
11120 # Determine the default libpath from the value encoded in an empty executable.
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11129 main ()
11133 return 0;
11135 _ACEOF
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (ac_try="$ac_link"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_link") 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_cxx_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest$ac_exeext &&
11153 $as_test_x conftest$ac_exeext; then
11155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11157 # Check for a 64-bit object if we didn't find anything.
11158 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11159 }'`; fi
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11168 conftest$ac_exeext conftest.$ac_ext
11169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172 # Warning - without using the other run time loading flags,
11173 # -berok will link without error, but may produce a broken library.
11174 no_undefined_flag_CXX=' ${wl}-bernotok'
11175 allow_undefined_flag_CXX=' ${wl}-berok'
11176 # Exported symbols can be pulled into shared objects from archives
11177 whole_archive_flag_spec_CXX='$convenience'
11178 archive_cmds_need_lc_CXX=yes
11179 # This is similar to how AIX traditionally builds its shared libraries.
11180 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'
11185 beos*)
11186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11187 allow_undefined_flag_CXX=unsupported
11188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11189 # support --undefined. This deserves some investigation. FIXME
11190 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11191 else
11192 ld_shlibs_CXX=no
11196 chorus*)
11197 case $cc_basename in
11199 # FIXME: insert proper C++ library support
11200 ld_shlibs_CXX=no
11202 esac
11205 cygwin* | mingw* | pw32*)
11206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207 # as there is no search path for DLLs.
11208 hardcode_libdir_flag_spec_CXX='-L$libdir'
11209 allow_undefined_flag_CXX=unsupported
11210 always_export_symbols_CXX=no
11211 enable_shared_with_static_runtimes_CXX=yes
11213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214 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'
11215 # If the export-symbols file already is a .def file (1st line
11216 # is EXPORTS), use it as is; otherwise, prepend...
11217 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11218 cp $export_symbols $output_objdir/$soname.def;
11219 else
11220 echo EXPORTS > $output_objdir/$soname.def;
11221 cat $export_symbols >> $output_objdir/$soname.def;
11223 $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'
11224 else
11225 ld_shlibs_CXX=no
11228 darwin* | rhapsody*)
11229 case $host_os in
11230 rhapsody* | darwin1.[012])
11231 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11233 *) # Darwin 1.3 on
11234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11236 else
11237 case ${MACOSX_DEPLOYMENT_TARGET} in
11238 10.[012])
11239 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11241 10.*)
11242 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11244 esac
11247 esac
11248 archive_cmds_need_lc_CXX=no
11249 hardcode_direct_CXX=no
11250 hardcode_automatic_CXX=yes
11251 hardcode_shlibpath_var_CXX=unsupported
11252 whole_archive_flag_spec_CXX=''
11253 link_all_deplibs_CXX=yes
11255 if test "$GXX" = yes ; then
11256 lt_int_apple_cc_single_mod=no
11257 output_verbose_link_cmd='echo'
11258 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259 lt_int_apple_cc_single_mod=yes
11261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11263 else
11264 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'
11266 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11270 else
11271 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273 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}'
11274 else
11275 case $cc_basename in
11276 xlc*)
11277 output_verbose_link_cmd='echo'
11278 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11279 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11282 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}'
11285 ld_shlibs_CXX=no
11287 esac
11291 dgux*)
11292 case $cc_basename in
11293 ec++*)
11294 # FIXME: insert proper C++ library support
11295 ld_shlibs_CXX=no
11297 ghcx*)
11298 # Green Hills C++ Compiler
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11303 # FIXME: insert proper C++ library support
11304 ld_shlibs_CXX=no
11306 esac
11308 freebsd[12]*)
11309 # C++ shared libraries reported to be fairly broken before switch to ELF
11310 ld_shlibs_CXX=no
11312 freebsd-elf*)
11313 archive_cmds_need_lc_CXX=no
11315 freebsd* | dragonfly*)
11316 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11317 # conventions
11318 ld_shlibs_CXX=yes
11320 gnu*)
11322 hpux9*)
11323 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324 hardcode_libdir_separator_CXX=:
11325 export_dynamic_flag_spec_CXX='${wl}-E'
11326 hardcode_direct_CXX=yes
11327 hardcode_minus_L_CXX=yes # Not in the search PATH,
11328 # but as the default
11329 # location of the library.
11331 case $cc_basename in
11332 CC*)
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11336 aCC*)
11337 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'
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11342 # There doesn't appear to be a way to prevent this compiler from
11343 # explicitly linking system object files so we need to strip them
11344 # from the output so that they don't get included in the library
11345 # dependencies.
11346 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'
11349 if test "$GXX" = yes; then
11350 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'
11351 else
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11356 esac
11358 hpux10*|hpux11*)
11359 if test $with_gnu_ld = no; then
11360 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11361 hardcode_libdir_separator_CXX=:
11363 case $host_cpu in
11364 hppa*64*|ia64*)
11365 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11368 export_dynamic_flag_spec_CXX='${wl}-E'
11370 esac
11372 case $host_cpu in
11373 hppa*64*|ia64*)
11374 hardcode_direct_CXX=no
11375 hardcode_shlibpath_var_CXX=no
11378 hardcode_direct_CXX=yes
11379 hardcode_minus_L_CXX=yes # Not in the search PATH,
11380 # but as the default
11381 # location of the library.
11383 esac
11385 case $cc_basename in
11386 CC*)
11387 # FIXME: insert proper C++ library support
11388 ld_shlibs_CXX=no
11390 aCC*)
11391 case $host_cpu in
11392 hppa*64*)
11393 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395 ia64*)
11396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11401 esac
11402 # Commands to make compiler produce verbose output that lists
11403 # what "hidden" libraries, object files and flags are used when
11404 # linking a shared library.
11406 # There doesn't appear to be a way to prevent this compiler from
11407 # explicitly linking system object files so we need to strip them
11408 # from the output so that they don't get included in the library
11409 # dependencies.
11410 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'
11413 if test "$GXX" = yes; then
11414 if test $with_gnu_ld = no; then
11415 case $host_cpu in
11416 hppa*64*)
11417 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11419 ia64*)
11420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11423 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'
11425 esac
11427 else
11428 # FIXME: insert proper C++ library support
11429 ld_shlibs_CXX=no
11432 esac
11434 interix3*)
11435 hardcode_direct_CXX=no
11436 hardcode_shlibpath_var_CXX=no
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}-E'
11439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440 # Instead, shared libraries are loaded at an image base (0x10000000 by
11441 # default) and relocated if they conflict, which is a slow very memory
11442 # consuming and fragmenting process. To avoid this, we pick a random,
11443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11445 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'
11446 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'
11448 irix5* | irix6*)
11449 case $cc_basename in
11450 CC*)
11451 # SGI C++
11452 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'
11454 # Archives containing C++ object files must be created using
11455 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11456 # necessary to make sure instantiated templates are included
11457 # in the archive.
11458 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11461 if test "$GXX" = yes; then
11462 if test "$with_gnu_ld" = no; then
11463 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'
11464 else
11465 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'
11468 link_all_deplibs_CXX=yes
11470 esac
11471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11472 hardcode_libdir_separator_CXX=:
11474 linux* | k*bsd*-gnu)
11475 case $cc_basename in
11476 KCC*)
11477 # Kuck and Associates, Inc. (KAI) C++ Compiler
11479 # KCC will only create a shared library if the output file
11480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11481 # to its proper name (with version) after linking.
11482 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'
11483 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'
11484 # Commands to make compiler produce verbose output that lists
11485 # what "hidden" libraries, object files and flags are used when
11486 # linking a shared library.
11488 # There doesn't appear to be a way to prevent this compiler from
11489 # explicitly linking system object files so we need to strip them
11490 # from the output so that they don't get included in the library
11491 # dependencies.
11492 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'
11494 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11497 # Archives containing C++ object files must be created using
11498 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11499 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11501 icpc*)
11502 # Intel C++
11503 with_gnu_ld=yes
11504 # version 8.0 and above of icpc choke on multiply defined symbols
11505 # if we add $predep_objects and $postdep_objects, however 7.1 and
11506 # earlier do not add the objects themselves.
11507 case `$CC -V 2>&1` in
11508 *"Version 7."*)
11509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510 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'
11512 *) # Version 8.0 or newer
11513 tmp_idyn=
11514 case $host_cpu in
11515 ia64*) tmp_idyn=' -i_dynamic';;
11516 esac
11517 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518 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'
11520 esac
11521 archive_cmds_need_lc_CXX=no
11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11524 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11526 pgCC*)
11527 # Portland Group C++ compiler
11528 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11529 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'
11531 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11533 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'
11535 cxx*)
11536 # Compaq C++
11537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538 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'
11540 runpath_var=LD_RUN_PATH
11541 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11542 hardcode_libdir_separator_CXX=:
11544 # Commands to make compiler produce verbose output that lists
11545 # what "hidden" libraries, object files and flags are used when
11546 # linking a shared library.
11548 # There doesn't appear to be a way to prevent this compiler from
11549 # explicitly linking system object files so we need to strip them
11550 # from the output so that they don't get included in the library
11551 # dependencies.
11552 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'
11554 esac
11556 lynxos*)
11557 # FIXME: insert proper C++ library support
11558 ld_shlibs_CXX=no
11560 m88k*)
11561 # FIXME: insert proper C++ library support
11562 ld_shlibs_CXX=no
11564 mvs*)
11565 case $cc_basename in
11566 cxx*)
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11571 # FIXME: insert proper C++ library support
11572 ld_shlibs_CXX=no
11574 esac
11576 netbsd* | netbsdelf*-gnu)
11577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11578 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11579 wlarc=
11580 hardcode_libdir_flag_spec_CXX='-R$libdir'
11581 hardcode_direct_CXX=yes
11582 hardcode_shlibpath_var_CXX=no
11584 # Workaround some broken pre-1.5 toolchains
11585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11587 openbsd2*)
11588 # C++ shared libraries are fairly broken
11589 ld_shlibs_CXX=no
11591 openbsd*)
11592 hardcode_direct_CXX=yes
11593 hardcode_shlibpath_var_CXX=no
11594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11598 export_dynamic_flag_spec_CXX='${wl}-E'
11599 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11601 output_verbose_link_cmd='echo'
11603 osf3*)
11604 case $cc_basename in
11605 KCC*)
11606 # Kuck and Associates, Inc. (KAI) C++ Compiler
11608 # KCC will only create a shared library if the output file
11609 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11610 # to its proper name (with version) after linking.
11611 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'
11613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614 hardcode_libdir_separator_CXX=:
11616 # Archives containing C++ object files must be created using
11617 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11621 RCC*)
11622 # Rational C++ 2.4.1
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11626 cxx*)
11627 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11628 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'
11630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11631 hardcode_libdir_separator_CXX=:
11633 # Commands to make compiler produce verbose output that lists
11634 # what "hidden" libraries, object files and flags are used when
11635 # linking a shared library.
11637 # There doesn't appear to be a way to prevent this compiler from
11638 # explicitly linking system object files so we need to strip them
11639 # from the output so that they don't get included in the library
11640 # dependencies.
11641 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'
11644 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11645 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11646 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'
11648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649 hardcode_libdir_separator_CXX=:
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11656 else
11657 # FIXME: insert proper C++ library support
11658 ld_shlibs_CXX=no
11661 esac
11663 osf4* | osf5*)
11664 case $cc_basename in
11665 KCC*)
11666 # Kuck and Associates, Inc. (KAI) C++ Compiler
11668 # KCC will only create a shared library if the output file
11669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11670 # to its proper name (with version) after linking.
11671 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'
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674 hardcode_libdir_separator_CXX=:
11676 # Archives containing C++ object files must be created using
11677 # the KAI C++ compiler.
11678 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11680 RCC*)
11681 # Rational C++ 2.4.1
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11685 cxx*)
11686 allow_undefined_flag_CXX=' -expect_unresolved \*'
11687 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'
11688 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11689 echo "-hidden">> $lib.exp~
11690 $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~
11691 $rm $lib.exp'
11693 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11694 hardcode_libdir_separator_CXX=:
11696 # Commands to make compiler produce verbose output that lists
11697 # what "hidden" libraries, object files and flags are used when
11698 # linking a shared library.
11700 # There doesn't appear to be a way to prevent this compiler from
11701 # explicitly linking system object files so we need to strip them
11702 # from the output so that they don't get included in the library
11703 # dependencies.
11704 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'
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709 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'
11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712 hardcode_libdir_separator_CXX=:
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11719 else
11720 # FIXME: insert proper C++ library support
11721 ld_shlibs_CXX=no
11724 esac
11726 psos*)
11727 # FIXME: insert proper C++ library support
11728 ld_shlibs_CXX=no
11730 sunos4*)
11731 case $cc_basename in
11732 CC*)
11733 # Sun C++ 4.x
11734 # FIXME: insert proper C++ library support
11735 ld_shlibs_CXX=no
11737 lcc*)
11738 # Lucid
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11743 # FIXME: insert proper C++ library support
11744 ld_shlibs_CXX=no
11746 esac
11748 solaris*)
11749 case $cc_basename in
11750 CC*)
11751 # Sun C++ 4.2, 5.x and Centerline C++
11752 archive_cmds_need_lc_CXX=yes
11753 no_undefined_flag_CXX=' -zdefs'
11754 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756 $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'
11758 hardcode_libdir_flag_spec_CXX='-R$libdir'
11759 hardcode_shlibpath_var_CXX=no
11760 case $host_os in
11761 solaris2.[0-5] | solaris2.[0-5].*) ;;
11763 # The C++ compiler is used as linker so we must use $wl
11764 # flag to pass the commands to the underlying system
11765 # linker. We must also pass each convience library through
11766 # to the system linker between allextract/defaultextract.
11767 # The C++ compiler will combine linker options so we
11768 # cannot just pass the convience library names through
11769 # without $wl.
11770 # Supported since Solaris 2.6 (maybe 2.5.1?)
11771 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11773 esac
11774 link_all_deplibs_CXX=yes
11776 output_verbose_link_cmd='echo'
11778 # Archives containing C++ object files must be created using
11779 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11780 # necessary to make sure instantiated templates are included
11781 # in the archive.
11782 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11784 gcx*)
11785 # Green Hills C++ Compiler
11786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11788 # The C++ compiler must be used to create the archive.
11789 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11792 # GNU C++ compiler with Solaris linker
11793 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11794 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11795 if $CC --version | grep -v '^2\.7' > /dev/null; then
11796 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11803 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11804 else
11805 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11806 # platform.
11807 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811 # Commands to make compiler produce verbose output that lists
11812 # what "hidden" libraries, object files and flags are used when
11813 # linking a shared library.
11814 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11820 esac
11822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11823 no_undefined_flag_CXX='${wl}-z,text'
11824 archive_cmds_need_lc_CXX=no
11825 hardcode_shlibpath_var_CXX=no
11826 runpath_var='LD_RUN_PATH'
11828 case $cc_basename in
11829 CC*)
11830 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 esac
11839 sysv5* | sco3.2v5* | sco5v6*)
11840 # Note: We can NOT use -z defs as we might desire, because we do not
11841 # link with -lc, and that would cause any symbols used from libc to
11842 # always be unresolved, which means just about no library would
11843 # ever link correctly. If we're not using GNU ld we use -z text
11844 # though, which does catch some bad symbols but isn't as heavy-handed
11845 # as -z defs.
11846 # For security reasons, it is highly recommended that you always
11847 # use absolute paths for naming shared libraries, and exclude the
11848 # DT_RUNPATH tag from executables and libraries. But doing so
11849 # requires that you compile everything twice, which is a pain.
11850 # So that behaviour is only enabled if SCOABSPATH is set to a
11851 # non-empty value in the environment. Most likely only useful for
11852 # creating official distributions of packages.
11853 # This is a hack until libtool officially supports absolute path
11854 # names for shared libraries.
11855 no_undefined_flag_CXX='${wl}-z,text'
11856 allow_undefined_flag_CXX='${wl}-z,nodefs'
11857 archive_cmds_need_lc_CXX=no
11858 hardcode_shlibpath_var_CXX=no
11859 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11860 hardcode_libdir_separator_CXX=':'
11861 link_all_deplibs_CXX=yes
11862 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11863 runpath_var='LD_RUN_PATH'
11865 case $cc_basename in
11866 CC*)
11867 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11874 esac
11876 tandem*)
11877 case $cc_basename in
11878 NCC*)
11879 # NonStop-UX NCC 3.20
11880 # FIXME: insert proper C++ library support
11881 ld_shlibs_CXX=no
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11887 esac
11889 vxworks*)
11890 # FIXME: insert proper C++ library support
11891 ld_shlibs_CXX=no
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11897 esac
11898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11900 test "$ld_shlibs_CXX" = no && can_build_shared=no
11902 GCC_CXX="$GXX"
11903 LD_CXX="$LD"
11906 cat > conftest.$ac_ext <<EOF
11907 class Foo
11909 public:
11910 Foo (void) { a = 0; }
11911 private:
11912 int a;
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; then
11921 # Parse the compiler output and extract the necessary
11922 # objects, libraries and library flags.
11924 # Sentinel used to keep track of whether or not we are before
11925 # the conftest object file.
11926 pre_test_object_deps_done=no
11928 # The `*' in the case matches for architectures that use `case' in
11929 # $output_verbose_cmd can trigger glob expansion during the loop
11930 # eval without this substitution.
11931 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11933 for p in `eval $output_verbose_link_cmd`; do
11934 case $p in
11936 -L* | -R* | -l*)
11937 # Some compilers place space between "-{L,R}" and the path.
11938 # Remove the space.
11939 if test $p = "-L" \
11940 || test $p = "-R"; then
11941 prev=$p
11942 continue
11943 else
11944 prev=
11947 if test "$pre_test_object_deps_done" = no; then
11948 case $p in
11949 -L* | -R*)
11950 # Internal compiler library paths should come after those
11951 # provided the user. The postdeps already come after the
11952 # user supplied libs so there is no need to process them.
11953 if test -z "$compiler_lib_search_path_CXX"; then
11954 compiler_lib_search_path_CXX="${prev}${p}"
11955 else
11956 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11959 # The "-l" case would never come before the object being
11960 # linked, so don't bother handling this case.
11961 esac
11962 else
11963 if test -z "$postdeps_CXX"; then
11964 postdeps_CXX="${prev}${p}"
11965 else
11966 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11971 *.$objext)
11972 # This assumes that the test object file only shows up
11973 # once in the compiler output.
11974 if test "$p" = "conftest.$objext"; then
11975 pre_test_object_deps_done=yes
11976 continue
11979 if test "$pre_test_object_deps_done" = no; then
11980 if test -z "$predep_objects_CXX"; then
11981 predep_objects_CXX="$p"
11982 else
11983 predep_objects_CXX="$predep_objects_CXX $p"
11985 else
11986 if test -z "$postdep_objects_CXX"; then
11987 postdep_objects_CXX="$p"
11988 else
11989 postdep_objects_CXX="$postdep_objects_CXX $p"
11994 *) ;; # Ignore the rest.
11996 esac
11997 done
11999 # Clean up.
12000 rm -f a.out a.exe
12001 else
12002 echo "libtool.m4: error: problem compiling CXX test program"
12005 $rm -f confest.$objext
12007 # PORTME: override above test on systems where it is broken
12008 case $host_os in
12009 interix3*)
12010 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12011 # hack all around it, let's just trust "g++" to DTRT.
12012 predep_objects_CXX=
12013 postdep_objects_CXX=
12014 postdeps_CXX=
12017 solaris*)
12018 case $cc_basename in
12019 CC*)
12020 # Adding this requires a known-good setup of shared libraries for
12021 # Sun compiler versions before 5.6, else PIC objects from an old
12022 # archive will be linked into the output, leading to subtle bugs.
12023 postdeps_CXX='-lCstd -lCrun'
12025 esac
12027 esac
12030 case " $postdeps_CXX " in
12031 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12032 esac
12034 lt_prog_compiler_wl_CXX=
12035 lt_prog_compiler_pic_CXX=
12036 lt_prog_compiler_static_CXX=
12038 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12041 # C++ specific cases for pic, static, wl, etc.
12042 if test "$GXX" = yes; then
12043 lt_prog_compiler_wl_CXX='-Wl,'
12044 lt_prog_compiler_static_CXX='-static'
12046 case $host_os in
12047 aix*)
12048 # All AIX code is PIC.
12049 if test "$host_cpu" = ia64; then
12050 # AIX 5 now supports IA64 processor
12051 lt_prog_compiler_static_CXX='-Bstatic'
12054 amigaos*)
12055 # FIXME: we need at least 68020 code to build shared libraries, but
12056 # adding the `-m68020' flag to GCC prevents building anything better,
12057 # like `-m68040'.
12058 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12060 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12061 # PIC is the default for these OSes.
12063 mingw* | os2* | pw32*)
12064 # This hack is so that the source file can tell whether it is being
12065 # built for inclusion in a dll (and should export symbols for example).
12066 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12068 darwin* | rhapsody*)
12069 # PIC is the default on this platform
12070 # Common symbols not allowed in MH_DYLIB files
12071 lt_prog_compiler_pic_CXX='-fno-common'
12073 *djgpp*)
12074 # DJGPP does not support shared libraries at all
12075 lt_prog_compiler_pic_CXX=
12077 interix3*)
12078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079 # Instead, we relocate shared libraries at runtime.
12081 sysv4*MP*)
12082 if test -d /usr/nec; then
12083 lt_prog_compiler_pic_CXX=-Kconform_pic
12086 hpux*)
12087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088 # not for PA HP-UX.
12089 case $host_cpu in
12090 hppa*64*|ia64*)
12093 lt_prog_compiler_pic_CXX='-fPIC'
12095 esac
12098 lt_prog_compiler_pic_CXX='-fPIC'
12100 esac
12101 else
12102 case $host_os in
12103 aix4* | aix5*)
12104 # All AIX code is PIC.
12105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static_CXX='-Bstatic'
12108 else
12109 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12112 chorus*)
12113 case $cc_basename in
12114 cxch68*)
12115 # Green Hills C++ Compiler
12116 # _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"
12118 esac
12120 darwin*)
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 case $cc_basename in
12124 xlc*)
12125 lt_prog_compiler_pic_CXX='-qnocommon'
12126 lt_prog_compiler_wl_CXX='-Wl,'
12128 esac
12130 dgux*)
12131 case $cc_basename in
12132 ec++*)
12133 lt_prog_compiler_pic_CXX='-KPIC'
12135 ghcx*)
12136 # Green Hills C++ Compiler
12137 lt_prog_compiler_pic_CXX='-pic'
12141 esac
12143 freebsd* | dragonfly*)
12144 # FreeBSD uses GNU C++
12146 hpux9* | hpux10* | hpux11*)
12147 case $cc_basename in
12148 CC*)
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151 if test "$host_cpu" != ia64; then
12152 lt_prog_compiler_pic_CXX='+Z'
12155 aCC*)
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12158 case $host_cpu in
12159 hppa*64*|ia64*)
12160 # +Z the default
12163 lt_prog_compiler_pic_CXX='+Z'
12165 esac
12169 esac
12171 interix*)
12172 # This is c89, which is MS Visual C++ (no shared libs)
12173 # Anyone wants to do a port?
12175 irix5* | irix6* | nonstopux*)
12176 case $cc_basename in
12177 CC*)
12178 lt_prog_compiler_wl_CXX='-Wl,'
12179 lt_prog_compiler_static_CXX='-non_shared'
12180 # CC pic flag -KPIC is the default.
12184 esac
12186 linux* | k*bsd*-gnu)
12187 case $cc_basename in
12188 KCC*)
12189 # KAI C++ Compiler
12190 lt_prog_compiler_wl_CXX='--backend -Wl,'
12191 lt_prog_compiler_pic_CXX='-fPIC'
12193 icpc* | ecpc*)
12194 # Intel C++
12195 lt_prog_compiler_wl_CXX='-Wl,'
12196 lt_prog_compiler_pic_CXX='-KPIC'
12197 lt_prog_compiler_static_CXX='-static'
12199 pgCC*)
12200 # Portland Group C++ compiler.
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_pic_CXX='-fpic'
12203 lt_prog_compiler_static_CXX='-Bstatic'
12205 cxx*)
12206 # Compaq C++
12207 # Make sure the PIC flag is empty. It appears that all Alpha
12208 # Linux and Compaq Tru64 Unix objects are PIC.
12209 lt_prog_compiler_pic_CXX=
12210 lt_prog_compiler_static_CXX='-non_shared'
12214 esac
12216 lynxos*)
12218 m88k*)
12220 mvs*)
12221 case $cc_basename in
12222 cxx*)
12223 lt_prog_compiler_pic_CXX='-W c,exportall'
12227 esac
12229 netbsd* | netbsdelf*-gnu)
12231 osf3* | osf4* | osf5*)
12232 case $cc_basename in
12233 KCC*)
12234 lt_prog_compiler_wl_CXX='--backend -Wl,'
12236 RCC*)
12237 # Rational C++ 2.4.1
12238 lt_prog_compiler_pic_CXX='-pic'
12240 cxx*)
12241 # Digital/Compaq C++
12242 lt_prog_compiler_wl_CXX='-Wl,'
12243 # Make sure the PIC flag is empty. It appears that all Alpha
12244 # Linux and Compaq Tru64 Unix objects are PIC.
12245 lt_prog_compiler_pic_CXX=
12246 lt_prog_compiler_static_CXX='-non_shared'
12250 esac
12252 psos*)
12254 solaris*)
12255 case $cc_basename in
12256 CC*)
12257 # Sun C++ 4.2, 5.x and Centerline C++
12258 lt_prog_compiler_pic_CXX='-KPIC'
12259 lt_prog_compiler_static_CXX='-Bstatic'
12260 lt_prog_compiler_wl_CXX='-Qoption ld '
12262 gcx*)
12263 # Green Hills C++ Compiler
12264 lt_prog_compiler_pic_CXX='-PIC'
12268 esac
12270 sunos4*)
12271 case $cc_basename in
12272 CC*)
12273 # Sun C++ 4.x
12274 lt_prog_compiler_pic_CXX='-pic'
12275 lt_prog_compiler_static_CXX='-Bstatic'
12277 lcc*)
12278 # Lucid
12279 lt_prog_compiler_pic_CXX='-pic'
12283 esac
12285 tandem*)
12286 case $cc_basename in
12287 NCC*)
12288 # NonStop-UX NCC 3.20
12289 lt_prog_compiler_pic_CXX='-KPIC'
12293 esac
12295 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296 case $cc_basename in
12297 CC*)
12298 lt_prog_compiler_wl_CXX='-Wl,'
12299 lt_prog_compiler_pic_CXX='-KPIC'
12300 lt_prog_compiler_static_CXX='-Bstatic'
12302 esac
12304 vxworks*)
12307 lt_prog_compiler_can_build_shared_CXX=no
12309 esac
12312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12316 # Check to make sure the PIC flag actually works.
12318 if test -n "$lt_prog_compiler_pic_CXX"; then
12320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 lt_prog_compiler_pic_works_CXX=no
12326 ac_outfile=conftest.$ac_objext
12327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12328 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329 # Insert the option either (1) after the last *FLAGS variable, or
12330 # (2) before a word containing "conftest.", or (3) at the end.
12331 # Note that $ac_compile itself does not contain backslashes and begins
12332 # with a dollar sign (not a hyphen), so the echo should work correctly.
12333 # The option is referenced via a variable to avoid confusing sed.
12334 lt_compile=`echo "$ac_compile" | $SED \
12335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337 -e 's:$: $lt_compiler_flag:'`
12338 (eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339 (eval "$lt_compile" 2>conftest.err)
12340 ac_status=$?
12341 cat conftest.err >&5
12342 echo "$as_me:12342: \$? = $ac_status" >&5
12343 if (exit $ac_status) && test -s "$ac_outfile"; then
12344 # The compiler can only warn and ignore the option if not recognized
12345 # So say no if there are warnings other than the usual output.
12346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349 lt_prog_compiler_pic_works_CXX=yes
12352 $rm conftest*
12355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12358 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12359 case $lt_prog_compiler_pic_CXX in
12360 "" | " "*) ;;
12361 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12362 esac
12363 else
12364 lt_prog_compiler_pic_CXX=
12365 lt_prog_compiler_can_build_shared_CXX=no
12369 case $host_os in
12370 # For platforms which do not support PIC, -DPIC is meaningless:
12371 *djgpp*)
12372 lt_prog_compiler_pic_CXX=
12375 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12377 esac
12380 # Check to make sure the static flag actually works.
12382 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 lt_prog_compiler_static_works_CXX=no
12389 save_LDFLAGS="$LDFLAGS"
12390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393 # The linker can only warn and ignore the option if not recognized
12394 # So say no if there are warnings
12395 if test -s conftest.err; then
12396 # Append any errors to the config.log.
12397 cat conftest.err 1>&5
12398 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400 if diff conftest.exp conftest.er2 >/dev/null; then
12401 lt_prog_compiler_static_works_CXX=yes
12403 else
12404 lt_prog_compiler_static_works_CXX=yes
12407 $rm conftest*
12408 LDFLAGS="$save_LDFLAGS"
12411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12414 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12416 else
12417 lt_prog_compiler_static_CXX=
12421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 lt_cv_prog_compiler_c_o_CXX=no
12427 $rm -r conftest 2>/dev/null
12428 mkdir conftest
12429 cd conftest
12430 mkdir out
12431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12433 lt_compiler_flag="-o out/conftest2.$ac_objext"
12434 # Insert the option either (1) after the last *FLAGS variable, or
12435 # (2) before a word containing "conftest.", or (3) at the end.
12436 # Note that $ac_compile itself does not contain backslashes and begins
12437 # with a dollar sign (not a hyphen), so the echo should work correctly.
12438 lt_compile=`echo "$ac_compile" | $SED \
12439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441 -e 's:$: $lt_compiler_flag:'`
12442 (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443 (eval "$lt_compile" 2>out/conftest.err)
12444 ac_status=$?
12445 cat out/conftest.err >&5
12446 echo "$as_me:12446: \$? = $ac_status" >&5
12447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12448 then
12449 # The compiler can only warn and ignore the option if not recognized
12450 # So say no if there are warnings
12451 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454 lt_cv_prog_compiler_c_o_CXX=yes
12457 chmod u+w . 2>&5
12458 $rm conftest*
12459 # SGI C++ compiler will create directory out/ii_files/ for
12460 # template instantiation
12461 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462 $rm out/* && rmdir out
12463 cd ..
12464 rmdir conftest
12465 $rm conftest*
12468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12472 hard_links="nottested"
12473 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474 # do not overwrite the value of need_locks provided by the user
12475 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12477 hard_links=yes
12478 $rm conftest*
12479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12480 touch conftest.a
12481 ln conftest.a conftest.b 2>&5 || hard_links=no
12482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483 { echo "$as_me:$LINENO: result: $hard_links" >&5
12484 echo "${ECHO_T}$hard_links" >&6; }
12485 if test "$hard_links" = no; then
12486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12488 need_locks=warn
12490 else
12491 need_locks=no
12494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12497 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12498 case $host_os in
12499 aix4* | aix5*)
12500 # If we're using GNU nm, then we don't want the "-C" option.
12501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503 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'
12504 else
12505 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'
12508 pw32*)
12509 export_symbols_cmds_CXX="$ltdll_cmds"
12511 cygwin* | mingw*)
12512 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'
12514 linux* | k*bsd*-gnu)
12515 link_all_deplibs_CXX=no
12518 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12520 esac
12522 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12523 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12524 test "$ld_shlibs_CXX" = no && can_build_shared=no
12527 # Do we need to explicitly link libc?
12529 case "x$archive_cmds_need_lc_CXX" in
12530 x|xyes)
12531 # Assume -lc should be added
12532 archive_cmds_need_lc_CXX=yes
12534 if test "$enable_shared" = yes && test "$GCC" = yes; then
12535 case $archive_cmds_CXX in
12536 *'~'*)
12537 # FIXME: we may have to deal with multi-command sequences.
12539 '$CC '*)
12540 # Test whether the compiler implicitly links with -lc since on some
12541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12542 # to ld, don't add -lc before -lgcc.
12543 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12545 $rm conftest*
12546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } 2>conftest.err; then
12553 soname=conftest
12554 lib=conftest
12555 libobjs=conftest.$ac_objext
12556 deplibs=
12557 wl=$lt_prog_compiler_wl_CXX
12558 pic_flag=$lt_prog_compiler_pic_CXX
12559 compiler_flags=-v
12560 linker_flags=-v
12561 verstring=
12562 output_objdir=.
12563 libname=conftest
12564 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12565 allow_undefined_flag_CXX=
12566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12567 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }
12571 then
12572 archive_cmds_need_lc_CXX=no
12573 else
12574 archive_cmds_need_lc_CXX=yes
12576 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12577 else
12578 cat conftest.err 1>&5
12580 $rm conftest*
12581 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12582 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12584 esac
12587 esac
12589 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12591 library_names_spec=
12592 libname_spec='lib$name'
12593 soname_spec=
12594 shrext_cmds=".so"
12595 postinstall_cmds=
12596 postuninstall_cmds=
12597 finish_cmds=
12598 finish_eval=
12599 shlibpath_var=
12600 shlibpath_overrides_runpath=unknown
12601 version_type=none
12602 dynamic_linker="$host_os ld.so"
12603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12604 if test "$GCC" = yes; then
12605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12607 # if the path contains ";" then we assume it to be the separator
12608 # otherwise default to the standard path separator (i.e. ":") - it is
12609 # assumed that no part of a normal pathname contains ";" but that should
12610 # okay in the real world where ";" in dirpaths is itself problematic.
12611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12612 else
12613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12615 else
12616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12618 need_lib_prefix=unknown
12619 hardcode_into_libs=no
12621 # when you set need_version to no, make sure it does not cause -set_version
12622 # flags to be left without arguments
12623 need_version=unknown
12625 case $host_os in
12626 aix3*)
12627 version_type=linux
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12629 shlibpath_var=LIBPATH
12631 # AIX 3 has no versioning support, so we append a major version to the name.
12632 soname_spec='${libname}${release}${shared_ext}$major'
12635 aix4* | aix5*)
12636 version_type=linux
12637 need_lib_prefix=no
12638 need_version=no
12639 hardcode_into_libs=yes
12640 if test "$host_cpu" = ia64; then
12641 # AIX 5 supports IA64
12642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 else
12645 # With GCC up to 2.95.x, collect2 would create an import file
12646 # for dependence libraries. The import file would start with
12647 # the line `#! .'. This would cause the generated library to
12648 # depend on `.', always an invalid library. This was fixed in
12649 # development snapshots of GCC prior to 3.0.
12650 case $host_os in
12651 aix4 | aix4.[01] | aix4.[01].*)
12652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12653 echo ' yes '
12654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12656 else
12657 can_build_shared=no
12660 esac
12661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12662 # soname into executable. Probably we can add versioning support to
12663 # collect2, so additional links can be useful in future.
12664 if test "$aix_use_runtimelinking" = yes; then
12665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12666 # instead of lib<name>.a to let people know that these are not
12667 # typical AIX shared libraries.
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669 else
12670 # We preserve .a as extension for shared libraries through AIX4.2
12671 # and later when we are not doing run time linking.
12672 library_names_spec='${libname}${release}.a $libname.a'
12673 soname_spec='${libname}${release}${shared_ext}$major'
12675 shlibpath_var=LIBPATH
12679 amigaos*)
12680 library_names_spec='$libname.ixlibrary $libname.a'
12681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12682 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'
12685 beos*)
12686 library_names_spec='${libname}${shared_ext}'
12687 dynamic_linker="$host_os ld.so"
12688 shlibpath_var=LIBRARY_PATH
12691 bsdi[45]*)
12692 version_type=linux
12693 need_version=no
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12697 shlibpath_var=LD_LIBRARY_PATH
12698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12700 # the default ld.so.conf also contains /usr/contrib/lib and
12701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12702 # libtool to hard-code these into programs
12705 cygwin* | mingw* | pw32*)
12706 version_type=windows
12707 shrext_cmds=".dll"
12708 need_version=no
12709 need_lib_prefix=no
12711 case $GCC,$host_os in
12712 yes,cygwin* | yes,mingw* | yes,pw32*)
12713 library_names_spec='$libname.dll.a'
12714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12715 postinstall_cmds='base_file=`basename \${file}`~
12716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12717 dldir=$destdir/`dirname \$dlpath`~
12718 test -d \$dldir || mkdir -p \$dldir~
12719 $install_prog $dir/$dlname \$dldir/$dlname~
12720 chmod a+x \$dldir/$dlname'
12721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12722 dlpath=$dir/\$dldll~
12723 $rm \$dlpath'
12724 shlibpath_overrides_runpath=yes
12726 case $host_os in
12727 cygwin*)
12728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12732 mingw*)
12733 # MinGW DLLs use traditional 'lib' prefix
12734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12737 # It is most probably a Windows format PATH printed by
12738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12739 # path with ; separators, and with drive letters. We can handle the
12740 # drive letters (cygwin fileutils understands them), so leave them,
12741 # especially as we might pass files found there to a mingw objdump,
12742 # which wouldn't understand a cygwinified path. Ahh.
12743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12744 else
12745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12748 pw32*)
12749 # pw32 DLLs use 'pw' prefix rather than 'lib'
12750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12752 esac
12756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12758 esac
12759 dynamic_linker='Win32 ld.exe'
12760 # FIXME: first we should search . and the directory the executable is in
12761 shlibpath_var=PATH
12764 darwin* | rhapsody*)
12765 dynamic_linker="$host_os dyld"
12766 version_type=darwin
12767 need_lib_prefix=no
12768 need_version=no
12769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12770 soname_spec='${libname}${release}${major}$shared_ext'
12771 shlibpath_overrides_runpath=yes
12772 shlibpath_var=DYLD_LIBRARY_PATH
12773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12775 if test "$GCC" = yes; then
12776 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12777 else
12778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12783 dgux*)
12784 version_type=linux
12785 need_lib_prefix=no
12786 need_version=no
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 shlibpath_var=LD_LIBRARY_PATH
12792 freebsd1*)
12793 dynamic_linker=no
12796 freebsd* | dragonfly*)
12797 # DragonFly does not have aout. When/if they implement a new
12798 # versioning mechanism, adjust this.
12799 if test -x /usr/bin/objformat; then
12800 objformat=`/usr/bin/objformat`
12801 else
12802 case $host_os in
12803 freebsd[123]*) objformat=aout ;;
12804 *) objformat=elf ;;
12805 esac
12807 version_type=freebsd-$objformat
12808 case $version_type in
12809 freebsd-elf*)
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12811 need_version=no
12812 need_lib_prefix=no
12814 freebsd-*)
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12816 need_version=yes
12818 esac
12819 shlibpath_var=LD_LIBRARY_PATH
12820 case $host_os in
12821 freebsd2*)
12822 shlibpath_overrides_runpath=yes
12824 freebsd3.[01]* | freebsdelf3.[01]*)
12825 shlibpath_overrides_runpath=yes
12826 hardcode_into_libs=yes
12828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12830 shlibpath_overrides_runpath=no
12831 hardcode_into_libs=yes
12833 freebsd*) # from 4.6 on
12834 shlibpath_overrides_runpath=yes
12835 hardcode_into_libs=yes
12837 esac
12840 gnu*)
12841 version_type=linux
12842 need_lib_prefix=no
12843 need_version=no
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 hardcode_into_libs=yes
12850 hpux9* | hpux10* | hpux11*)
12851 # Give a soname corresponding to the major version so that dld.sl refuses to
12852 # link against other versions.
12853 version_type=sunos
12854 need_lib_prefix=no
12855 need_version=no
12856 case $host_cpu in
12857 ia64*)
12858 shrext_cmds='.so'
12859 hardcode_into_libs=yes
12860 dynamic_linker="$host_os dld.so"
12861 shlibpath_var=LD_LIBRARY_PATH
12862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 if test "X$HPUX_IA64_MODE" = X32; then
12866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12867 else
12868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12872 hppa*64*)
12873 shrext_cmds='.sl'
12874 hardcode_into_libs=yes
12875 dynamic_linker="$host_os dld.sl"
12876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12884 shrext_cmds='.sl'
12885 dynamic_linker="$host_os dld.sl"
12886 shlibpath_var=SHLIB_PATH
12887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889 soname_spec='${libname}${release}${shared_ext}$major'
12891 esac
12892 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12893 postinstall_cmds='chmod 555 $lib'
12896 interix3*)
12897 version_type=linux
12898 need_lib_prefix=no
12899 need_version=no
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12903 shlibpath_var=LD_LIBRARY_PATH
12904 shlibpath_overrides_runpath=no
12905 hardcode_into_libs=yes
12908 irix5* | irix6* | nonstopux*)
12909 case $host_os in
12910 nonstopux*) version_type=nonstopux ;;
12912 if test "$lt_cv_prog_gnu_ld" = yes; then
12913 version_type=linux
12914 else
12915 version_type=irix
12916 fi ;;
12917 esac
12918 need_lib_prefix=no
12919 need_version=no
12920 soname_spec='${libname}${release}${shared_ext}$major'
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12922 case $host_os in
12923 irix5* | nonstopux*)
12924 libsuff= shlibsuff=
12927 case $LD in # libtool.m4 will add one of these switches to LD
12928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12929 libsuff= shlibsuff= libmagic=32-bit;;
12930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12931 libsuff=32 shlibsuff=N32 libmagic=N32;;
12932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12934 *) libsuff= shlibsuff= libmagic=never-match;;
12935 esac
12937 esac
12938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12939 shlibpath_overrides_runpath=no
12940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12942 hardcode_into_libs=yes
12945 # No shared lib support for Linux oldld, aout, or coff.
12946 linux*oldld* | linux*aout* | linux*coff*)
12947 dynamic_linker=no
12950 # This must be Linux ELF.
12951 linux* | k*bsd*-gnu)
12952 version_type=linux
12953 need_lib_prefix=no
12954 need_version=no
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956 soname_spec='${libname}${release}${shared_ext}$major'
12957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12958 shlibpath_var=LD_LIBRARY_PATH
12959 shlibpath_overrides_runpath=no
12960 # This implies no fast_install, which is unacceptable.
12961 # Some rework will be needed to allow for fast_install
12962 # before this can be enabled.
12963 hardcode_into_libs=yes
12965 # Append ld.so.conf contents to the search path
12966 if test -f /etc/ld.so.conf; then
12967 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12968 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12971 # We used to test for /lib/ld.so.1 and disable shared libraries on
12972 # powerpc, because MkLinux only supported shared libraries with the
12973 # GNU dynamic linker. Since this was broken with cross compilers,
12974 # most powerpc-linux boxes support dynamic linking these days and
12975 # people can always --disable-shared, the test was removed, and we
12976 # assume the GNU/Linux dynamic linker is in use.
12977 dynamic_linker='GNU/Linux ld.so'
12980 netbsdelf*-gnu)
12981 version_type=linux
12982 need_lib_prefix=no
12983 need_version=no
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=no
12988 hardcode_into_libs=yes
12989 dynamic_linker='NetBSD ld.elf_so'
12992 netbsd*)
12993 version_type=sunos
12994 need_lib_prefix=no
12995 need_version=no
12996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999 dynamic_linker='NetBSD (a.out) ld.so'
13000 else
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 dynamic_linker='NetBSD ld.elf_so'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=yes
13007 hardcode_into_libs=yes
13010 newsos6)
13011 version_type=linux
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes
13017 nto-qnx*)
13018 version_type=linux
13019 need_lib_prefix=no
13020 need_version=no
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=yes
13027 openbsd*)
13028 version_type=sunos
13029 sys_lib_dlsearch_path_spec="/usr/lib"
13030 need_lib_prefix=no
13031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13032 case $host_os in
13033 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13034 *) need_version=no ;;
13035 esac
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13040 case $host_os in
13041 openbsd2.[89] | openbsd2.[89].*)
13042 shlibpath_overrides_runpath=no
13045 shlibpath_overrides_runpath=yes
13047 esac
13048 else
13049 shlibpath_overrides_runpath=yes
13053 os2*)
13054 libname_spec='$name'
13055 shrext_cmds=".dll"
13056 need_lib_prefix=no
13057 library_names_spec='$libname${shared_ext} $libname.a'
13058 dynamic_linker='OS/2 ld.exe'
13059 shlibpath_var=LIBPATH
13062 osf3* | osf4* | osf5*)
13063 version_type=osf
13064 need_lib_prefix=no
13065 need_version=no
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13073 solaris*)
13074 version_type=linux
13075 need_lib_prefix=no
13076 need_version=no
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 shlibpath_var=LD_LIBRARY_PATH
13080 shlibpath_overrides_runpath=yes
13081 hardcode_into_libs=yes
13082 # ldd complains unless libraries are executable
13083 postinstall_cmds='chmod +x $lib'
13086 sunos4*)
13087 version_type=sunos
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13090 shlibpath_var=LD_LIBRARY_PATH
13091 shlibpath_overrides_runpath=yes
13092 if test "$with_gnu_ld" = yes; then
13093 need_lib_prefix=no
13095 need_version=yes
13098 sysv4 | sysv4.3*)
13099 version_type=linux
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 shlibpath_var=LD_LIBRARY_PATH
13103 case $host_vendor in
13104 sni)
13105 shlibpath_overrides_runpath=no
13106 need_lib_prefix=no
13107 export_dynamic_flag_spec='${wl}-Blargedynsym'
13108 runpath_var=LD_RUN_PATH
13110 siemens)
13111 need_lib_prefix=no
13113 motorola)
13114 need_lib_prefix=no
13115 need_version=no
13116 shlibpath_overrides_runpath=no
13117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13119 esac
13122 sysv4*MP*)
13123 if test -d /usr/nec ;then
13124 version_type=linux
13125 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13126 soname_spec='$libname${shared_ext}.$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13132 version_type=freebsd-elf
13133 need_lib_prefix=no
13134 need_version=no
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 hardcode_into_libs=yes
13139 if test "$with_gnu_ld" = yes; then
13140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13141 shlibpath_overrides_runpath=no
13142 else
13143 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13144 shlibpath_overrides_runpath=yes
13145 case $host_os in
13146 sco3.2v5*)
13147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13149 esac
13151 sys_lib_dlsearch_path_spec='/usr/lib'
13154 uts4*)
13155 version_type=linux
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 shlibpath_var=LD_LIBRARY_PATH
13162 dynamic_linker=no
13164 esac
13165 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13166 echo "${ECHO_T}$dynamic_linker" >&6; }
13167 test "$dynamic_linker" = no && can_build_shared=no
13169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13170 if test "$GCC" = yes; then
13171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13174 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13176 hardcode_action_CXX=
13177 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13178 test -n "$runpath_var_CXX" || \
13179 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13181 # We can hardcode non-existant directories.
13182 if test "$hardcode_direct_CXX" != no &&
13183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13184 # have to relink, otherwise we might link with an installed library
13185 # when we should be linking with a yet-to-be-installed one
13186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13187 test "$hardcode_minus_L_CXX" != no; then
13188 # Linking always hardcodes the temporary library directory.
13189 hardcode_action_CXX=relink
13190 else
13191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13192 hardcode_action_CXX=immediate
13194 else
13195 # We cannot hardcode anything, or else we can only hardcode existing
13196 # directories.
13197 hardcode_action_CXX=unsupported
13199 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13200 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13202 if test "$hardcode_action_CXX" = relink; then
13203 # Fast installation is not supported
13204 enable_fast_install=no
13205 elif test "$shlibpath_overrides_runpath" = yes ||
13206 test "$enable_shared" = no; then
13207 # Fast installation is not necessary
13208 enable_fast_install=needless
13212 # The else clause should only fire when bootstrapping the
13213 # libtool distribution, otherwise you forgot to ship ltmain.sh
13214 # with your package, and you will get complaints that there are
13215 # no rules to generate ltmain.sh.
13216 if test -f "$ltmain"; then
13217 # See if we are running on zsh, and set the options which allow our commands through
13218 # without removal of \ escapes.
13219 if test -n "${ZSH_VERSION+set}" ; then
13220 setopt NO_GLOB_SUBST
13222 # Now quote all the things that may contain metacharacters while being
13223 # careful not to overquote the AC_SUBSTed values. We take copies of the
13224 # variables and quote the copies for generation of the libtool script.
13225 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13226 SED SHELL STRIP \
13227 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13228 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13229 deplibs_check_method reload_flag reload_cmds need_locks \
13230 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13231 lt_cv_sys_global_symbol_to_c_name_address \
13232 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13233 old_postinstall_cmds old_postuninstall_cmds \
13234 compiler_CXX \
13235 CC_CXX \
13236 LD_CXX \
13237 lt_prog_compiler_wl_CXX \
13238 lt_prog_compiler_pic_CXX \
13239 lt_prog_compiler_static_CXX \
13240 lt_prog_compiler_no_builtin_flag_CXX \
13241 export_dynamic_flag_spec_CXX \
13242 thread_safe_flag_spec_CXX \
13243 whole_archive_flag_spec_CXX \
13244 enable_shared_with_static_runtimes_CXX \
13245 old_archive_cmds_CXX \
13246 old_archive_from_new_cmds_CXX \
13247 predep_objects_CXX \
13248 postdep_objects_CXX \
13249 predeps_CXX \
13250 postdeps_CXX \
13251 compiler_lib_search_path_CXX \
13252 archive_cmds_CXX \
13253 archive_expsym_cmds_CXX \
13254 postinstall_cmds_CXX \
13255 postuninstall_cmds_CXX \
13256 old_archive_from_expsyms_cmds_CXX \
13257 allow_undefined_flag_CXX \
13258 no_undefined_flag_CXX \
13259 export_symbols_cmds_CXX \
13260 hardcode_libdir_flag_spec_CXX \
13261 hardcode_libdir_flag_spec_ld_CXX \
13262 hardcode_libdir_separator_CXX \
13263 hardcode_automatic_CXX \
13264 module_cmds_CXX \
13265 module_expsym_cmds_CXX \
13266 lt_cv_prog_compiler_c_o_CXX \
13267 exclude_expsyms_CXX \
13268 include_expsyms_CXX; do
13270 case $var in
13271 old_archive_cmds_CXX | \
13272 old_archive_from_new_cmds_CXX | \
13273 archive_cmds_CXX | \
13274 archive_expsym_cmds_CXX | \
13275 module_cmds_CXX | \
13276 module_expsym_cmds_CXX | \
13277 old_archive_from_expsyms_cmds_CXX | \
13278 export_symbols_cmds_CXX | \
13279 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13280 postinstall_cmds | postuninstall_cmds | \
13281 old_postinstall_cmds | old_postuninstall_cmds | \
13282 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13283 # Double-quote double-evaled strings.
13284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13289 esac
13290 done
13292 case $lt_echo in
13293 *'\$0 --fallback-echo"')
13294 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13296 esac
13298 cfgfile="$ofile"
13300 cat <<__EOF__ >> "$cfgfile"
13301 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13305 # Shell to use when invoking shell scripts.
13306 SHELL=$lt_SHELL
13308 # Whether or not to build shared libraries.
13309 build_libtool_libs=$enable_shared
13311 # Whether or not to build static libraries.
13312 build_old_libs=$enable_static
13314 # Whether or not to add -lc for building shared libraries.
13315 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13317 # Whether or not to disallow shared libs when runtime libs are static
13318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13320 # Whether or not to optimize for fast installation.
13321 fast_install=$enable_fast_install
13323 # The host system.
13324 host_alias=$host_alias
13325 host=$host
13326 host_os=$host_os
13328 # The build system.
13329 build_alias=$build_alias
13330 build=$build
13331 build_os=$build_os
13333 # An echo program that does not interpret backslashes.
13334 echo=$lt_echo
13336 # The archiver.
13337 AR=$lt_AR
13338 AR_FLAGS=$lt_AR_FLAGS
13340 # A C compiler.
13341 LTCC=$lt_LTCC
13343 # LTCC compiler flags.
13344 LTCFLAGS=$lt_LTCFLAGS
13346 # A language-specific compiler.
13347 CC=$lt_compiler_CXX
13349 # Is the compiler the GNU C compiler?
13350 with_gcc=$GCC_CXX
13352 # An ERE matcher.
13353 EGREP=$lt_EGREP
13355 # The linker used to build libraries.
13356 LD=$lt_LD_CXX
13358 # Whether we need hard or soft links.
13359 LN_S=$lt_LN_S
13361 # A BSD-compatible nm program.
13362 NM=$lt_NM
13364 # A symbol stripping program
13365 STRIP=$lt_STRIP
13367 # Used to examine libraries when file_magic_cmd begins "file"
13368 MAGIC_CMD=$MAGIC_CMD
13370 # Used on cygwin: DLL creation program.
13371 DLLTOOL="$DLLTOOL"
13373 # Used on cygwin: object dumper.
13374 OBJDUMP="$OBJDUMP"
13376 # Used on cygwin: assembler.
13377 AS="$AS"
13379 # The name of the directory that contains temporary libtool files.
13380 objdir=$objdir
13382 # How to create reloadable object files.
13383 reload_flag=$lt_reload_flag
13384 reload_cmds=$lt_reload_cmds
13386 # How to pass a linker flag through the compiler.
13387 wl=$lt_lt_prog_compiler_wl_CXX
13389 # Object file suffix (normally "o").
13390 objext="$ac_objext"
13392 # Old archive suffix (normally "a").
13393 libext="$libext"
13395 # Shared library suffix (normally ".so").
13396 shrext_cmds='$shrext_cmds'
13398 # Executable file suffix (normally "").
13399 exeext="$exeext"
13401 # Additional compiler flags for building library objects.
13402 pic_flag=$lt_lt_prog_compiler_pic_CXX
13403 pic_mode=$pic_mode
13405 # What is the maximum length of a command?
13406 max_cmd_len=$lt_cv_sys_max_cmd_len
13408 # Does compiler simultaneously support -c and -o options?
13409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13411 # Must we lock files when doing compilation?
13412 need_locks=$lt_need_locks
13414 # Do we need the lib prefix for modules?
13415 need_lib_prefix=$need_lib_prefix
13417 # Do we need a version for libraries?
13418 need_version=$need_version
13420 # Whether dlopen is supported.
13421 dlopen_support=$enable_dlopen
13423 # Whether dlopen of programs is supported.
13424 dlopen_self=$enable_dlopen_self
13426 # Whether dlopen of statically linked programs is supported.
13427 dlopen_self_static=$enable_dlopen_self_static
13429 # Compiler flag to prevent dynamic linking.
13430 link_static_flag=$lt_lt_prog_compiler_static_CXX
13432 # Compiler flag to turn off builtin functions.
13433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13435 # Compiler flag to allow reflexive dlopens.
13436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13438 # Compiler flag to generate shared objects directly from archives.
13439 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13441 # Compiler flag to generate thread-safe objects.
13442 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13444 # Library versioning type.
13445 version_type=$version_type
13447 # Format of library name prefix.
13448 libname_spec=$lt_libname_spec
13450 # List of archive names. First name is the real one, the rest are links.
13451 # The last name is the one that the linker finds with -lNAME.
13452 library_names_spec=$lt_library_names_spec
13454 # The coded name of the library, if different from the real name.
13455 soname_spec=$lt_soname_spec
13457 # Commands used to build and install an old-style archive.
13458 RANLIB=$lt_RANLIB
13459 old_archive_cmds=$lt_old_archive_cmds_CXX
13460 old_postinstall_cmds=$lt_old_postinstall_cmds
13461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13463 # Create an old-style archive from a shared archive.
13464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13466 # Create a temporary old-style archive to link instead of a shared archive.
13467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13469 # Commands used to build and install a shared archive.
13470 archive_cmds=$lt_archive_cmds_CXX
13471 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13472 postinstall_cmds=$lt_postinstall_cmds
13473 postuninstall_cmds=$lt_postuninstall_cmds
13475 # Commands used to build a loadable module (assumed same as above if empty)
13476 module_cmds=$lt_module_cmds_CXX
13477 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13479 # Commands to strip libraries.
13480 old_striplib=$lt_old_striplib
13481 striplib=$lt_striplib
13483 # Dependencies to place before the objects being linked to create a
13484 # shared library.
13485 predep_objects=$lt_predep_objects_CXX
13487 # Dependencies to place after the objects being linked to create a
13488 # shared library.
13489 postdep_objects=$lt_postdep_objects_CXX
13491 # Dependencies to place before the objects being linked to create a
13492 # shared library.
13493 predeps=$lt_predeps_CXX
13495 # Dependencies to place after the objects being linked to create a
13496 # shared library.
13497 postdeps=$lt_postdeps_CXX
13499 # The library search path used internally by the compiler when linking
13500 # a shared library.
13501 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13503 # Method to check whether dependent libraries are shared objects.
13504 deplibs_check_method=$lt_deplibs_check_method
13506 # Command to use when deplibs_check_method == file_magic.
13507 file_magic_cmd=$lt_file_magic_cmd
13509 # Flag that allows shared libraries with undefined symbols to be built.
13510 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13512 # Flag that forces no undefined symbols.
13513 no_undefined_flag=$lt_no_undefined_flag_CXX
13515 # Commands used to finish a libtool library installation in a directory.
13516 finish_cmds=$lt_finish_cmds
13518 # Same as above, but a single script fragment to be evaled but not shown.
13519 finish_eval=$lt_finish_eval
13521 # Take the output of nm and produce a listing of raw symbols and C names.
13522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13524 # Transform the output of nm in a proper C declaration
13525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13527 # Transform the output of nm in a C name address pair
13528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13530 # This is the shared library runtime path variable.
13531 runpath_var=$runpath_var
13533 # This is the shared library path variable.
13534 shlibpath_var=$shlibpath_var
13536 # Is shlibpath searched before the hard-coded library search path?
13537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13539 # How to hardcode a shared library path into an executable.
13540 hardcode_action=$hardcode_action_CXX
13542 # Whether we should hardcode library paths into libraries.
13543 hardcode_into_libs=$hardcode_into_libs
13545 # Flag to hardcode \$libdir into a binary during linking.
13546 # This must work even if \$libdir does not exist.
13547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13549 # If ld is used when linking, flag to hardcode \$libdir into
13550 # a binary during linking. This must work even if \$libdir does
13551 # not exist.
13552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13554 # Whether we need a single -rpath flag with a separated argument.
13555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13558 # resulting binary.
13559 hardcode_direct=$hardcode_direct_CXX
13561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13562 # resulting binary.
13563 hardcode_minus_L=$hardcode_minus_L_CXX
13565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13566 # the resulting binary.
13567 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13569 # Set to yes if building a shared library automatically hardcodes DIR into the library
13570 # and all subsequent libraries and executables linked against it.
13571 hardcode_automatic=$hardcode_automatic_CXX
13573 # Variables whose values should be saved in libtool wrapper scripts and
13574 # restored at relink time.
13575 variables_saved_for_relink="$variables_saved_for_relink"
13577 # Whether libtool must link a program against all its dependency libraries.
13578 link_all_deplibs=$link_all_deplibs_CXX
13580 # Compile-time system search path for libraries
13581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13583 # Run-time system search path for libraries
13584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13586 # Fix the shell variable \$srcfile for the compiler.
13587 fix_srcfile_path="$fix_srcfile_path_CXX"
13589 # Set to yes if exported symbols are required.
13590 always_export_symbols=$always_export_symbols_CXX
13592 # The commands to list exported symbols.
13593 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13595 # The commands to extract the exported symbol list from a shared archive.
13596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13598 # Symbols that should not be listed in the preloaded symbols.
13599 exclude_expsyms=$lt_exclude_expsyms_CXX
13601 # Symbols that must always be exported.
13602 include_expsyms=$lt_include_expsyms_CXX
13604 # ### END LIBTOOL TAG CONFIG: $tagname
13606 __EOF__
13609 else
13610 # If there is no Makefile yet, we rely on a make rule to execute
13611 # `config.status --recheck' to rerun these tests and create the
13612 # libtool script then.
13613 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13614 if test -f "$ltmain_in"; then
13615 test -f Makefile && make "$ltmain"
13620 ac_ext=c
13621 ac_cpp='$CPP $CPPFLAGS'
13622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13626 CC=$lt_save_CC
13627 LDCXX=$LD
13628 LD=$lt_save_LD
13629 GCC=$lt_save_GCC
13630 with_gnu_ldcxx=$with_gnu_ld
13631 with_gnu_ld=$lt_save_with_gnu_ld
13632 lt_cv_path_LDCXX=$lt_cv_path_LD
13633 lt_cv_path_LD=$lt_save_path_LD
13634 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13635 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13637 else
13638 tagname=""
13642 F77)
13643 if test -n "$F77" && test "X$F77" != "Xno"; then
13645 ac_ext=f
13646 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13647 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13651 archive_cmds_need_lc_F77=no
13652 allow_undefined_flag_F77=
13653 always_export_symbols_F77=no
13654 archive_expsym_cmds_F77=
13655 export_dynamic_flag_spec_F77=
13656 hardcode_direct_F77=no
13657 hardcode_libdir_flag_spec_F77=
13658 hardcode_libdir_flag_spec_ld_F77=
13659 hardcode_libdir_separator_F77=
13660 hardcode_minus_L_F77=no
13661 hardcode_automatic_F77=no
13662 module_cmds_F77=
13663 module_expsym_cmds_F77=
13664 link_all_deplibs_F77=unknown
13665 old_archive_cmds_F77=$old_archive_cmds
13666 no_undefined_flag_F77=
13667 whole_archive_flag_spec_F77=
13668 enable_shared_with_static_runtimes_F77=no
13670 # Source file extension for f77 test sources.
13671 ac_ext=f
13673 # Object file extension for compiled f77 test sources.
13674 objext=o
13675 objext_F77=$objext
13677 # Code to be used in simple compile tests
13678 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13680 # Code to be used in simple link tests
13681 lt_simple_link_test_code=" program t\n end\n"
13683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13685 # If no C compiler was specified, use CC.
13686 LTCC=${LTCC-"$CC"}
13688 # If no C compiler flags were specified, use CFLAGS.
13689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13691 # Allow CC to be a program name with arguments.
13692 compiler=$CC
13695 # save warnings/boilerplate of simple test code
13696 ac_outfile=conftest.$ac_objext
13697 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13699 _lt_compiler_boilerplate=`cat conftest.err`
13700 $rm conftest*
13702 ac_outfile=conftest.$ac_objext
13703 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13705 _lt_linker_boilerplate=`cat conftest.err`
13706 $rm conftest*
13709 # Allow CC to be a program name with arguments.
13710 lt_save_CC="$CC"
13711 CC=${F77-"f77"}
13712 compiler=$CC
13713 compiler_F77=$CC
13714 for cc_temp in $compiler""; do
13715 case $cc_temp in
13716 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13717 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13718 \-*) ;;
13719 *) break;;
13720 esac
13721 done
13722 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13725 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13726 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13727 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13728 echo "${ECHO_T}$can_build_shared" >&6; }
13730 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13731 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13732 test "$can_build_shared" = "no" && enable_shared=no
13734 # On AIX, shared libraries and static libraries use the same namespace, and
13735 # are all built from PIC.
13736 case $host_os in
13737 aix3*)
13738 test "$enable_shared" = yes && enable_static=no
13739 if test -n "$RANLIB"; then
13740 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13741 postinstall_cmds='$RANLIB $lib'
13744 aix4* | aix5*)
13745 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13746 test "$enable_shared" = yes && enable_static=no
13749 esac
13750 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13751 echo "${ECHO_T}$enable_shared" >&6; }
13753 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13754 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13755 # Make sure either enable_shared or enable_static is yes.
13756 test "$enable_shared" = yes || enable_static=yes
13757 { echo "$as_me:$LINENO: result: $enable_static" >&5
13758 echo "${ECHO_T}$enable_static" >&6; }
13760 GCC_F77="$G77"
13761 LD_F77="$LD"
13763 lt_prog_compiler_wl_F77=
13764 lt_prog_compiler_pic_F77=
13765 lt_prog_compiler_static_F77=
13767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13770 if test "$GCC" = yes; then
13771 lt_prog_compiler_wl_F77='-Wl,'
13772 lt_prog_compiler_static_F77='-static'
13774 case $host_os in
13775 aix*)
13776 # All AIX code is PIC.
13777 if test "$host_cpu" = ia64; then
13778 # AIX 5 now supports IA64 processor
13779 lt_prog_compiler_static_F77='-Bstatic'
13783 amigaos*)
13784 # FIXME: we need at least 68020 code to build shared libraries, but
13785 # adding the `-m68020' flag to GCC prevents building anything better,
13786 # like `-m68040'.
13787 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13790 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13791 # PIC is the default for these OSes.
13794 mingw* | pw32* | os2*)
13795 # This hack is so that the source file can tell whether it is being
13796 # built for inclusion in a dll (and should export symbols for example).
13797 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13800 darwin* | rhapsody*)
13801 # PIC is the default on this platform
13802 # Common symbols not allowed in MH_DYLIB files
13803 lt_prog_compiler_pic_F77='-fno-common'
13806 interix3*)
13807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13808 # Instead, we relocate shared libraries at runtime.
13811 msdosdjgpp*)
13812 # Just because we use GCC doesn't mean we suddenly get shared libraries
13813 # on systems that don't support them.
13814 lt_prog_compiler_can_build_shared_F77=no
13815 enable_shared=no
13818 sysv4*MP*)
13819 if test -d /usr/nec; then
13820 lt_prog_compiler_pic_F77=-Kconform_pic
13824 hpux*)
13825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13826 # not for PA HP-UX.
13827 case $host_cpu in
13828 hppa*64*|ia64*)
13829 # +Z the default
13832 lt_prog_compiler_pic_F77='-fPIC'
13834 esac
13838 lt_prog_compiler_pic_F77='-fPIC'
13840 esac
13841 else
13842 # PORTME Check for flag to pass linker flags through the system compiler.
13843 case $host_os in
13844 aix*)
13845 lt_prog_compiler_wl_F77='-Wl,'
13846 if test "$host_cpu" = ia64; then
13847 # AIX 5 now supports IA64 processor
13848 lt_prog_compiler_static_F77='-Bstatic'
13849 else
13850 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13853 darwin*)
13854 # PIC is the default on this platform
13855 # Common symbols not allowed in MH_DYLIB files
13856 case $cc_basename in
13857 xlc*)
13858 lt_prog_compiler_pic_F77='-qnocommon'
13859 lt_prog_compiler_wl_F77='-Wl,'
13861 esac
13864 mingw* | pw32* | os2*)
13865 # This hack is so that the source file can tell whether it is being
13866 # built for inclusion in a dll (and should export symbols for example).
13867 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13870 hpux9* | hpux10* | hpux11*)
13871 lt_prog_compiler_wl_F77='-Wl,'
13872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13873 # not for PA HP-UX.
13874 case $host_cpu in
13875 hppa*64*|ia64*)
13876 # +Z the default
13879 lt_prog_compiler_pic_F77='+Z'
13881 esac
13882 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13883 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13886 irix5* | irix6* | nonstopux*)
13887 lt_prog_compiler_wl_F77='-Wl,'
13888 # PIC (with -KPIC) is the default.
13889 lt_prog_compiler_static_F77='-non_shared'
13892 newsos6)
13893 lt_prog_compiler_pic_F77='-KPIC'
13894 lt_prog_compiler_static_F77='-Bstatic'
13897 linux* | k*bsd*-gnu)
13898 case $cc_basename in
13899 icc* | ecc*)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 lt_prog_compiler_pic_F77='-KPIC'
13902 lt_prog_compiler_static_F77='-static'
13904 pgcc* | pgf77* | pgf90* | pgf95*)
13905 # Portland Group compilers (*not* the Pentium gcc compiler,
13906 # which looks to be a dead project)
13907 lt_prog_compiler_wl_F77='-Wl,'
13908 lt_prog_compiler_pic_F77='-fpic'
13909 lt_prog_compiler_static_F77='-Bstatic'
13911 ccc*)
13912 lt_prog_compiler_wl_F77='-Wl,'
13913 # All Alpha code is PIC.
13914 lt_prog_compiler_static_F77='-non_shared'
13916 esac
13919 osf3* | osf4* | osf5*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 # All OSF/1 code is PIC.
13922 lt_prog_compiler_static_F77='-non_shared'
13925 solaris*)
13926 lt_prog_compiler_pic_F77='-KPIC'
13927 lt_prog_compiler_static_F77='-Bstatic'
13928 case $cc_basename in
13929 f77* | f90* | f95*)
13930 lt_prog_compiler_wl_F77='-Qoption ld ';;
13932 lt_prog_compiler_wl_F77='-Wl,';;
13933 esac
13936 sunos4*)
13937 lt_prog_compiler_wl_F77='-Qoption ld '
13938 lt_prog_compiler_pic_F77='-PIC'
13939 lt_prog_compiler_static_F77='-Bstatic'
13942 sysv4 | sysv4.2uw2* | sysv4.3*)
13943 lt_prog_compiler_wl_F77='-Wl,'
13944 lt_prog_compiler_pic_F77='-KPIC'
13945 lt_prog_compiler_static_F77='-Bstatic'
13948 sysv4*MP*)
13949 if test -d /usr/nec ;then
13950 lt_prog_compiler_pic_F77='-Kconform_pic'
13951 lt_prog_compiler_static_F77='-Bstatic'
13955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_pic_F77='-KPIC'
13958 lt_prog_compiler_static_F77='-Bstatic'
13961 unicos*)
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 lt_prog_compiler_can_build_shared_F77=no
13966 uts4*)
13967 lt_prog_compiler_pic_F77='-pic'
13968 lt_prog_compiler_static_F77='-Bstatic'
13972 lt_prog_compiler_can_build_shared_F77=no
13974 esac
13977 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13978 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13981 # Check to make sure the PIC flag actually works.
13983 if test -n "$lt_prog_compiler_pic_F77"; then
13985 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13986 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13987 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990 lt_prog_compiler_pic_works_F77=no
13991 ac_outfile=conftest.$ac_objext
13992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13993 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13994 # Insert the option either (1) after the last *FLAGS variable, or
13995 # (2) before a word containing "conftest.", or (3) at the end.
13996 # Note that $ac_compile itself does not contain backslashes and begins
13997 # with a dollar sign (not a hyphen), so the echo should work correctly.
13998 # The option is referenced via a variable to avoid confusing sed.
13999 lt_compile=`echo "$ac_compile" | $SED \
14000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14002 -e 's:$: $lt_compiler_flag:'`
14003 (eval echo "\"\$as_me:14003: $lt_compile\"" >&5)
14004 (eval "$lt_compile" 2>conftest.err)
14005 ac_status=$?
14006 cat conftest.err >&5
14007 echo "$as_me:14007: \$? = $ac_status" >&5
14008 if (exit $ac_status) && test -s "$ac_outfile"; then
14009 # The compiler can only warn and ignore the option if not recognized
14010 # So say no if there are warnings other than the usual output.
14011 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14014 lt_prog_compiler_pic_works_F77=yes
14017 $rm conftest*
14020 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14021 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14023 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14024 case $lt_prog_compiler_pic_F77 in
14025 "" | " "*) ;;
14026 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14027 esac
14028 else
14029 lt_prog_compiler_pic_F77=
14030 lt_prog_compiler_can_build_shared_F77=no
14034 case $host_os in
14035 # For platforms which do not support PIC, -DPIC is meaningless:
14036 *djgpp*)
14037 lt_prog_compiler_pic_F77=
14040 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14042 esac
14045 # Check to make sure the static flag actually works.
14047 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14048 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14049 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14050 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053 lt_prog_compiler_static_works_F77=no
14054 save_LDFLAGS="$LDFLAGS"
14055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14056 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14058 # The linker can only warn and ignore the option if not recognized
14059 # So say no if there are warnings
14060 if test -s conftest.err; then
14061 # Append any errors to the config.log.
14062 cat conftest.err 1>&5
14063 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14065 if diff conftest.exp conftest.er2 >/dev/null; then
14066 lt_prog_compiler_static_works_F77=yes
14068 else
14069 lt_prog_compiler_static_works_F77=yes
14072 $rm conftest*
14073 LDFLAGS="$save_LDFLAGS"
14076 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14077 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14079 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14081 else
14082 lt_prog_compiler_static_F77=
14086 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14087 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14088 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 lt_cv_prog_compiler_c_o_F77=no
14092 $rm -r conftest 2>/dev/null
14093 mkdir conftest
14094 cd conftest
14095 mkdir out
14096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14098 lt_compiler_flag="-o out/conftest2.$ac_objext"
14099 # Insert the option either (1) after the last *FLAGS variable, or
14100 # (2) before a word containing "conftest.", or (3) at the end.
14101 # Note that $ac_compile itself does not contain backslashes and begins
14102 # with a dollar sign (not a hyphen), so the echo should work correctly.
14103 lt_compile=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\$as_me:14107: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>out/conftest.err)
14109 ac_status=$?
14110 cat out/conftest.err >&5
14111 echo "$as_me:14111: \$? = $ac_status" >&5
14112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14113 then
14114 # The compiler can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119 lt_cv_prog_compiler_c_o_F77=yes
14122 chmod u+w . 2>&5
14123 $rm conftest*
14124 # SGI C++ compiler will create directory out/ii_files/ for
14125 # template instantiation
14126 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14127 $rm out/* && rmdir out
14128 cd ..
14129 rmdir conftest
14130 $rm conftest*
14133 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14134 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14137 hard_links="nottested"
14138 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14139 # do not overwrite the value of need_locks provided by the user
14140 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14141 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14142 hard_links=yes
14143 $rm conftest*
14144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14145 touch conftest.a
14146 ln conftest.a conftest.b 2>&5 || hard_links=no
14147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148 { echo "$as_me:$LINENO: result: $hard_links" >&5
14149 echo "${ECHO_T}$hard_links" >&6; }
14150 if test "$hard_links" = no; then
14151 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14152 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14153 need_locks=warn
14155 else
14156 need_locks=no
14159 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14160 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14162 runpath_var=
14163 allow_undefined_flag_F77=
14164 enable_shared_with_static_runtimes_F77=no
14165 archive_cmds_F77=
14166 archive_expsym_cmds_F77=
14167 old_archive_From_new_cmds_F77=
14168 old_archive_from_expsyms_cmds_F77=
14169 export_dynamic_flag_spec_F77=
14170 whole_archive_flag_spec_F77=
14171 thread_safe_flag_spec_F77=
14172 hardcode_libdir_flag_spec_F77=
14173 hardcode_libdir_flag_spec_ld_F77=
14174 hardcode_libdir_separator_F77=
14175 hardcode_direct_F77=no
14176 hardcode_minus_L_F77=no
14177 hardcode_shlibpath_var_F77=unsupported
14178 link_all_deplibs_F77=unknown
14179 hardcode_automatic_F77=no
14180 module_cmds_F77=
14181 module_expsym_cmds_F77=
14182 always_export_symbols_F77=no
14183 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14184 # include_expsyms should be a list of space-separated symbols to be *always*
14185 # included in the symbol list
14186 include_expsyms_F77=
14187 # exclude_expsyms can be an extended regexp of symbols to exclude
14188 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14189 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14190 # as well as any symbol that contains `d'.
14191 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14193 # platforms (ab)use it in PIC code, but their linkers get confused if
14194 # the symbol is explicitly referenced. Since portable code cannot
14195 # rely on this symbol name, it's probably fine to never include it in
14196 # preloaded symbol tables.
14197 extract_expsyms_cmds=
14198 # Just being paranoid about ensuring that cc_basename is set.
14199 for cc_temp in $compiler""; do
14200 case $cc_temp in
14201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14203 \-*) ;;
14204 *) break;;
14205 esac
14206 done
14207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14209 case $host_os in
14210 cygwin* | mingw* | pw32*)
14211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14212 # When not using gcc, we currently assume that we are using
14213 # Microsoft Visual C++.
14214 if test "$GCC" != yes; then
14215 with_gnu_ld=no
14218 interix*)
14219 # we just hope/assume this is gcc and not c89 (= MSVC++)
14220 with_gnu_ld=yes
14222 openbsd*)
14223 with_gnu_ld=no
14225 esac
14227 ld_shlibs_F77=yes
14228 if test "$with_gnu_ld" = yes; then
14229 # If archive_cmds runs LD, not CC, wlarc should be empty
14230 wlarc='${wl}'
14232 # Set some defaults for GNU ld with shared library support. These
14233 # are reset later if shared libraries are not supported. Putting them
14234 # here allows them to be overridden if necessary.
14235 runpath_var=LD_RUN_PATH
14236 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14237 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14238 # ancient GNU ld didn't support --whole-archive et. al.
14239 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14240 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14241 else
14242 whole_archive_flag_spec_F77=
14244 supports_anon_versioning=no
14245 case `$LD -v 2>/dev/null` in
14246 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14249 *\ 2.11.*) ;; # other 2.11 versions
14250 *) supports_anon_versioning=yes ;;
14251 esac
14253 # See if GNU ld supports shared libraries.
14254 case $host_os in
14255 aix3* | aix4* | aix5*)
14256 # On AIX/PPC, the GNU linker is very broken
14257 if test "$host_cpu" != ia64; then
14258 ld_shlibs_F77=no
14259 cat <<EOF 1>&2
14261 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14262 *** to be unable to reliably create shared libraries on AIX.
14263 *** Therefore, libtool is disabling shared libraries support. If you
14264 *** really care for shared libraries, you may want to modify your PATH
14265 *** so that a non-GNU linker is found, and then restart.
14271 amigaos*)
14272 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)'
14273 hardcode_libdir_flag_spec_F77='-L$libdir'
14274 hardcode_minus_L_F77=yes
14276 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14277 # that the semantics of dynamic libraries on AmigaOS, at least up
14278 # to version 4, is to share data among multiple programs linked
14279 # with the same dynamic library. Since this doesn't match the
14280 # behavior of shared libraries on other platforms, we can't use
14281 # them.
14282 ld_shlibs_F77=no
14285 beos*)
14286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14287 allow_undefined_flag_F77=unsupported
14288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14289 # support --undefined. This deserves some investigation. FIXME
14290 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14291 else
14292 ld_shlibs_F77=no
14296 cygwin* | mingw* | pw32*)
14297 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14298 # as there is no search path for DLLs.
14299 hardcode_libdir_flag_spec_F77='-L$libdir'
14300 allow_undefined_flag_F77=unsupported
14301 always_export_symbols_F77=no
14302 enable_shared_with_static_runtimes_F77=yes
14303 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14305 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307 # If the export-symbols file already is a .def file (1st line
14308 # is EXPORTS), use it as is; otherwise, prepend...
14309 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14310 cp $export_symbols $output_objdir/$soname.def;
14311 else
14312 echo EXPORTS > $output_objdir/$soname.def;
14313 cat $export_symbols >> $output_objdir/$soname.def;
14315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14316 else
14317 ld_shlibs_F77=no
14321 interix3*)
14322 hardcode_direct_F77=no
14323 hardcode_shlibpath_var_F77=no
14324 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14325 export_dynamic_flag_spec_F77='${wl}-E'
14326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14327 # Instead, shared libraries are loaded at an image base (0x10000000 by
14328 # default) and relocated if they conflict, which is a slow very memory
14329 # consuming and fragmenting process. To avoid this, we pick a random,
14330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14332 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'
14333 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'
14336 linux* | k*bsd*-gnu)
14337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14338 tmp_addflag=
14339 case $cc_basename,$host_cpu in
14340 pgcc*) # Portland Group C compiler
14341 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'
14342 tmp_addflag=' $pic_flag'
14344 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14345 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'
14346 tmp_addflag=' $pic_flag -Mnomain' ;;
14347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14348 tmp_addflag=' -i_dynamic' ;;
14349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14350 tmp_addflag=' -i_dynamic -nofor_main' ;;
14351 ifc* | ifort*) # Intel Fortran compiler
14352 tmp_addflag=' -nofor_main' ;;
14353 esac
14354 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 if test $supports_anon_versioning = yes; then
14357 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359 $echo "local: *; };" >> $output_objdir/$libname.ver~
14360 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14362 link_all_deplibs_F77=no
14363 else
14364 ld_shlibs_F77=no
14368 netbsd* | netbsdelf*-gnu)
14369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14370 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14371 wlarc=
14372 else
14373 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14374 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14378 solaris*)
14379 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14380 ld_shlibs_F77=no
14381 cat <<EOF 1>&2
14383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14384 *** create shared libraries on Solaris systems. Therefore, libtool
14385 *** is disabling shared libraries support. We urge you to upgrade GNU
14386 *** binutils to release 2.9.1 or newer. Another option is to modify
14387 *** your PATH or compiler configuration so that the native linker is
14388 *** used, and then restart.
14391 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14392 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14393 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14394 else
14395 ld_shlibs_F77=no
14399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14400 case `$LD -v 2>&1` in
14401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14402 ld_shlibs_F77=no
14403 cat <<_LT_EOF 1>&2
14405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14406 *** reliably create shared libraries on SCO systems. Therefore, libtool
14407 *** is disabling shared libraries support. We urge you to upgrade GNU
14408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14409 *** your PATH or compiler configuration so that the native linker is
14410 *** used, and then restart.
14412 _LT_EOF
14415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14417 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14418 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14419 else
14420 ld_shlibs_F77=no
14423 esac
14426 sunos4*)
14427 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14428 wlarc=
14429 hardcode_direct_F77=yes
14430 hardcode_shlibpath_var_F77=no
14434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14435 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14436 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14437 else
14438 ld_shlibs_F77=no
14441 esac
14443 if test "$ld_shlibs_F77" = no; then
14444 runpath_var=
14445 hardcode_libdir_flag_spec_F77=
14446 export_dynamic_flag_spec_F77=
14447 whole_archive_flag_spec_F77=
14449 else
14450 # PORTME fill in a description of your system's linker (not GNU ld)
14451 case $host_os in
14452 aix3*)
14453 allow_undefined_flag_F77=unsupported
14454 always_export_symbols_F77=yes
14455 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'
14456 # Note: this linker hardcodes the directories in LIBPATH if there
14457 # are no directories specified by -L.
14458 hardcode_minus_L_F77=yes
14459 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14460 # Neither direct hardcoding nor static linking is supported with a
14461 # broken collect2.
14462 hardcode_direct_F77=unsupported
14466 aix4* | aix5*)
14467 if test "$host_cpu" = ia64; then
14468 # On IA64, the linker does run time linking by default, so we don't
14469 # have to do anything special.
14470 aix_use_runtimelinking=no
14471 exp_sym_flag='-Bexport'
14472 no_entry_flag=""
14473 else
14474 # If we're using GNU nm, then we don't want the "-C" option.
14475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14476 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14477 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'
14478 else
14479 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'
14481 aix_use_runtimelinking=no
14483 # Test if we are trying to use run time linking or normal
14484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14485 # need to do runtime linking.
14486 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14487 for ld_flag in $LDFLAGS; do
14488 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14489 aix_use_runtimelinking=yes
14490 break
14492 done
14494 esac
14496 exp_sym_flag='-bexport'
14497 no_entry_flag='-bnoentry'
14500 # When large executables or shared objects are built, AIX ld can
14501 # have problems creating the table of contents. If linking a library
14502 # or program results in "error TOC overflow" add -mminimal-toc to
14503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14506 archive_cmds_F77=''
14507 hardcode_direct_F77=yes
14508 hardcode_libdir_separator_F77=':'
14509 link_all_deplibs_F77=yes
14511 if test "$GCC" = yes; then
14512 case $host_os in aix4.[012]|aix4.[012].*)
14513 # We only want to do this on AIX 4.2 and lower, the check
14514 # below for broken collect2 doesn't work under 4.3+
14515 collect2name=`${CC} -print-prog-name=collect2`
14516 if test -f "$collect2name" && \
14517 strings "$collect2name" | grep resolve_lib_name >/dev/null
14518 then
14519 # We have reworked collect2
14520 hardcode_direct_F77=yes
14521 else
14522 # We have old collect2
14523 hardcode_direct_F77=unsupported
14524 # It fails to find uninstalled libraries when the uninstalled
14525 # path is not listed in the libpath. Setting hardcode_minus_L
14526 # to unsupported forces relinking
14527 hardcode_minus_L_F77=yes
14528 hardcode_libdir_flag_spec_F77='-L$libdir'
14529 hardcode_libdir_separator_F77=
14532 esac
14533 shared_flag='-shared'
14534 if test "$aix_use_runtimelinking" = yes; then
14535 shared_flag="$shared_flag "'${wl}-G'
14537 else
14538 # not using gcc
14539 if test "$host_cpu" = ia64; then
14540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14541 # chokes on -Wl,-G. The following line is correct:
14542 shared_flag='-G'
14543 else
14544 if test "$aix_use_runtimelinking" = yes; then
14545 shared_flag='${wl}-G'
14546 else
14547 shared_flag='${wl}-bM:SRE'
14552 # It seems that -bexpall does not export symbols beginning with
14553 # underscore (_), so it is better to generate a list of symbols to export.
14554 always_export_symbols_F77=yes
14555 if test "$aix_use_runtimelinking" = yes; then
14556 # Warning - without using the other runtime loading flags (-brtl),
14557 # -berok will link without error, but may produce a broken library.
14558 allow_undefined_flag_F77='-berok'
14559 # Determine the default libpath from the value encoded in an empty executable.
14560 cat >conftest.$ac_ext <<_ACEOF
14561 program main
14564 _ACEOF
14565 rm -f conftest.$ac_objext conftest$ac_exeext
14566 if { (ac_try="$ac_link"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570 esac
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_link") 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_f77_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest$ac_exeext &&
14582 $as_test_x conftest$ac_exeext; then
14584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14586 # Check for a 64-bit object if we didn't find anything.
14587 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14588 }'`; fi
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14600 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14601 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"
14602 else
14603 if test "$host_cpu" = ia64; then
14604 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14605 allow_undefined_flag_F77="-z nodefs"
14606 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"
14607 else
14608 # Determine the default libpath from the value encoded in an empty executable.
14609 cat >conftest.$ac_ext <<_ACEOF
14610 program main
14613 _ACEOF
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_link") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_f77_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest$ac_exeext &&
14631 $as_test_x conftest$ac_exeext; then
14633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14635 # Check for a 64-bit object if we didn't find anything.
14636 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14637 }'`; fi
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14646 conftest$ac_exeext conftest.$ac_ext
14647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14649 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14650 # Warning - without using the other run time loading flags,
14651 # -berok will link without error, but may produce a broken library.
14652 no_undefined_flag_F77=' ${wl}-bernotok'
14653 allow_undefined_flag_F77=' ${wl}-berok'
14654 # Exported symbols can be pulled into shared objects from archives
14655 whole_archive_flag_spec_F77='$convenience'
14656 archive_cmds_need_lc_F77=yes
14657 # This is similar to how AIX traditionally builds its shared libraries.
14658 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'
14663 amigaos*)
14664 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)'
14665 hardcode_libdir_flag_spec_F77='-L$libdir'
14666 hardcode_minus_L_F77=yes
14667 # see comment about different semantics on the GNU ld section
14668 ld_shlibs_F77=no
14671 bsdi[45]*)
14672 export_dynamic_flag_spec_F77=-rdynamic
14675 cygwin* | mingw* | pw32*)
14676 # When not using gcc, we currently assume that we are using
14677 # Microsoft Visual C++.
14678 # hardcode_libdir_flag_spec is actually meaningless, as there is
14679 # no search path for DLLs.
14680 hardcode_libdir_flag_spec_F77=' '
14681 allow_undefined_flag_F77=unsupported
14682 # Tell ltmain to make .lib files, not .a files.
14683 libext=lib
14684 # Tell ltmain to make .dll files, not .so files.
14685 shrext_cmds=".dll"
14686 # FIXME: Setting linknames here is a bad hack.
14687 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14688 # The linker will automatically build a .lib file if we build a DLL.
14689 old_archive_From_new_cmds_F77='true'
14690 # FIXME: Should let the user specify the lib program.
14691 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14692 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14693 enable_shared_with_static_runtimes_F77=yes
14696 darwin* | rhapsody*)
14697 case $host_os in
14698 rhapsody* | darwin1.[012])
14699 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14701 *) # Darwin 1.3 on
14702 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14703 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14704 else
14705 case ${MACOSX_DEPLOYMENT_TARGET} in
14706 10.[012])
14707 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14709 10.*)
14710 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14712 esac
14715 esac
14716 archive_cmds_need_lc_F77=no
14717 hardcode_direct_F77=no
14718 hardcode_automatic_F77=yes
14719 hardcode_shlibpath_var_F77=unsupported
14720 whole_archive_flag_spec_F77=''
14721 link_all_deplibs_F77=yes
14722 if test "$GCC" = yes ; then
14723 output_verbose_link_cmd='echo'
14724 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14725 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14727 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14728 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}'
14729 else
14730 case $cc_basename in
14731 xlc*)
14732 output_verbose_link_cmd='echo'
14733 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14734 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14736 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14737 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}'
14740 ld_shlibs_F77=no
14742 esac
14746 dgux*)
14747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748 hardcode_libdir_flag_spec_F77='-L$libdir'
14749 hardcode_shlibpath_var_F77=no
14752 freebsd1*)
14753 ld_shlibs_F77=no
14756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14757 # support. Future versions do this automatically, but an explicit c++rt0.o
14758 # does not break anything, and helps significantly (at the cost of a little
14759 # extra space).
14760 freebsd2.2*)
14761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14762 hardcode_libdir_flag_spec_F77='-R$libdir'
14763 hardcode_direct_F77=yes
14764 hardcode_shlibpath_var_F77=no
14767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14768 freebsd2*)
14769 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_direct_F77=yes
14771 hardcode_minus_L_F77=yes
14772 hardcode_shlibpath_var_F77=no
14775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14776 freebsd* | dragonfly*)
14777 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14778 hardcode_libdir_flag_spec_F77='-R$libdir'
14779 hardcode_direct_F77=yes
14780 hardcode_shlibpath_var_F77=no
14783 hpux9*)
14784 if test "$GCC" = yes; then
14785 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'
14786 else
14787 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'
14789 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14790 hardcode_libdir_separator_F77=:
14791 hardcode_direct_F77=yes
14793 # hardcode_minus_L: Not really in the search PATH,
14794 # but as the default location of the library.
14795 hardcode_minus_L_F77=yes
14796 export_dynamic_flag_spec_F77='${wl}-E'
14799 hpux10*)
14800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14802 else
14803 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14805 if test "$with_gnu_ld" = no; then
14806 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14807 hardcode_libdir_separator_F77=:
14809 hardcode_direct_F77=yes
14810 export_dynamic_flag_spec_F77='${wl}-E'
14812 # hardcode_minus_L: Not really in the search PATH,
14813 # but as the default location of the library.
14814 hardcode_minus_L_F77=yes
14818 hpux11*)
14819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14820 case $host_cpu in
14821 hppa*64*)
14822 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 ia64*)
14825 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14830 esac
14831 else
14832 case $host_cpu in
14833 hppa*64*)
14834 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 ia64*)
14837 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14840 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14842 esac
14844 if test "$with_gnu_ld" = no; then
14845 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14846 hardcode_libdir_separator_F77=:
14848 case $host_cpu in
14849 hppa*64*|ia64*)
14850 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14851 hardcode_direct_F77=no
14852 hardcode_shlibpath_var_F77=no
14855 hardcode_direct_F77=yes
14856 export_dynamic_flag_spec_F77='${wl}-E'
14858 # hardcode_minus_L: Not really in the search PATH,
14859 # but as the default location of the library.
14860 hardcode_minus_L_F77=yes
14862 esac
14866 irix5* | irix6* | nonstopux*)
14867 if test "$GCC" = yes; then
14868 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'
14869 else
14870 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'
14871 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14873 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14874 hardcode_libdir_separator_F77=:
14875 link_all_deplibs_F77=yes
14878 netbsd* | netbsdelf*-gnu)
14879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14881 else
14882 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14884 hardcode_libdir_flag_spec_F77='-R$libdir'
14885 hardcode_direct_F77=yes
14886 hardcode_shlibpath_var_F77=no
14889 newsos6)
14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_direct_F77=yes
14892 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14893 hardcode_libdir_separator_F77=:
14894 hardcode_shlibpath_var_F77=no
14897 openbsd*)
14898 hardcode_direct_F77=yes
14899 hardcode_shlibpath_var_F77=no
14900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14903 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14904 export_dynamic_flag_spec_F77='${wl}-E'
14905 else
14906 case $host_os in
14907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14908 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_libdir_flag_spec_F77='-R$libdir'
14912 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14913 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14915 esac
14919 os2*)
14920 hardcode_libdir_flag_spec_F77='-L$libdir'
14921 hardcode_minus_L_F77=yes
14922 allow_undefined_flag_F77=unsupported
14923 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'
14924 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14927 osf3*)
14928 if test "$GCC" = yes; then
14929 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14930 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'
14931 else
14932 allow_undefined_flag_F77=' -expect_unresolved \*'
14933 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'
14935 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14936 hardcode_libdir_separator_F77=:
14939 osf4* | osf5*) # as osf3* with the addition of -msym flag
14940 if test "$GCC" = yes; then
14941 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14942 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'
14943 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14944 else
14945 allow_undefined_flag_F77=' -expect_unresolved \*'
14946 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'
14947 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~
14948 $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'
14950 # Both c and cxx compiler support -rpath directly
14951 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14953 hardcode_libdir_separator_F77=:
14956 solaris*)
14957 no_undefined_flag_F77=' -z text'
14958 if test "$GCC" = yes; then
14959 wlarc='${wl}'
14960 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14962 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14963 else
14964 wlarc=''
14965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14969 hardcode_libdir_flag_spec_F77='-R$libdir'
14970 hardcode_shlibpath_var_F77=no
14971 case $host_os in
14972 solaris2.[0-5] | solaris2.[0-5].*) ;;
14974 # The compiler driver will combine linker options so we
14975 # cannot just pass the convience library names through
14976 # without $wl, iff we do not link with $LD.
14977 # Luckily, gcc supports the same syntax we need for Sun Studio.
14978 # Supported since Solaris 2.6 (maybe 2.5.1?)
14979 case $wlarc in
14981 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14983 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14984 esac ;;
14985 esac
14986 link_all_deplibs_F77=yes
14989 sunos4*)
14990 if test "x$host_vendor" = xsequent; then
14991 # Use $CC to link under sequent, because it throws in some extra .o
14992 # files that make .init and .fini sections work.
14993 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14994 else
14995 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_libdir_flag_spec_F77='-L$libdir'
14998 hardcode_direct_F77=yes
14999 hardcode_minus_L_F77=yes
15000 hardcode_shlibpath_var_F77=no
15003 sysv4)
15004 case $host_vendor in
15005 sni)
15006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_direct_F77=yes # is this really true???
15009 siemens)
15010 ## LD is ld it makes a PLAMLIB
15011 ## CC just makes a GrossModule.
15012 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15013 reload_cmds_F77='$CC -r -o $output$reload_objs'
15014 hardcode_direct_F77=no
15016 motorola)
15017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15018 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15020 esac
15021 runpath_var='LD_RUN_PATH'
15022 hardcode_shlibpath_var_F77=no
15025 sysv4.3*)
15026 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027 hardcode_shlibpath_var_F77=no
15028 export_dynamic_flag_spec_F77='-Bexport'
15031 sysv4*MP*)
15032 if test -d /usr/nec; then
15033 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_shlibpath_var_F77=no
15035 runpath_var=LD_RUN_PATH
15036 hardcode_runpath_var=yes
15037 ld_shlibs_F77=yes
15041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15042 no_undefined_flag_F77='${wl}-z,text'
15043 archive_cmds_need_lc_F77=no
15044 hardcode_shlibpath_var_F77=no
15045 runpath_var='LD_RUN_PATH'
15047 if test "$GCC" = yes; then
15048 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050 else
15051 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 sysv5* | sco3.2v5* | sco5v6*)
15057 # Note: We can NOT use -z defs as we might desire, because we do not
15058 # link with -lc, and that would cause any symbols used from libc to
15059 # always be unresolved, which means just about no library would
15060 # ever link correctly. If we're not using GNU ld we use -z text
15061 # though, which does catch some bad symbols but isn't as heavy-handed
15062 # as -z defs.
15063 no_undefined_flag_F77='${wl}-z,text'
15064 allow_undefined_flag_F77='${wl}-z,nodefs'
15065 archive_cmds_need_lc_F77=no
15066 hardcode_shlibpath_var_F77=no
15067 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15068 hardcode_libdir_separator_F77=':'
15069 link_all_deplibs_F77=yes
15070 export_dynamic_flag_spec_F77='${wl}-Bexport'
15071 runpath_var='LD_RUN_PATH'
15073 if test "$GCC" = yes; then
15074 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 else
15077 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15082 uts4*)
15083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_libdir_flag_spec_F77='-L$libdir'
15085 hardcode_shlibpath_var_F77=no
15089 ld_shlibs_F77=no
15091 esac
15094 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15095 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15096 test "$ld_shlibs_F77" = no && can_build_shared=no
15099 # Do we need to explicitly link libc?
15101 case "x$archive_cmds_need_lc_F77" in
15102 x|xyes)
15103 # Assume -lc should be added
15104 archive_cmds_need_lc_F77=yes
15106 if test "$enable_shared" = yes && test "$GCC" = yes; then
15107 case $archive_cmds_F77 in
15108 *'~'*)
15109 # FIXME: we may have to deal with multi-command sequences.
15111 '$CC '*)
15112 # Test whether the compiler implicitly links with -lc since on some
15113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15114 # to ld, don't add -lc before -lgcc.
15115 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15117 $rm conftest*
15118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } 2>conftest.err; then
15125 soname=conftest
15126 lib=conftest
15127 libobjs=conftest.$ac_objext
15128 deplibs=
15129 wl=$lt_prog_compiler_wl_F77
15130 pic_flag=$lt_prog_compiler_pic_F77
15131 compiler_flags=-v
15132 linker_flags=-v
15133 verstring=
15134 output_objdir=.
15135 libname=conftest
15136 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15137 allow_undefined_flag_F77=
15138 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15139 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }
15143 then
15144 archive_cmds_need_lc_F77=no
15145 else
15146 archive_cmds_need_lc_F77=yes
15148 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15149 else
15150 cat conftest.err 1>&5
15152 $rm conftest*
15153 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15154 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15156 esac
15159 esac
15161 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15163 library_names_spec=
15164 libname_spec='lib$name'
15165 soname_spec=
15166 shrext_cmds=".so"
15167 postinstall_cmds=
15168 postuninstall_cmds=
15169 finish_cmds=
15170 finish_eval=
15171 shlibpath_var=
15172 shlibpath_overrides_runpath=unknown
15173 version_type=none
15174 dynamic_linker="$host_os ld.so"
15175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15176 if test "$GCC" = yes; then
15177 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15178 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15179 # if the path contains ";" then we assume it to be the separator
15180 # otherwise default to the standard path separator (i.e. ":") - it is
15181 # assumed that no part of a normal pathname contains ";" but that should
15182 # okay in the real world where ";" in dirpaths is itself problematic.
15183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15184 else
15185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15187 else
15188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15190 need_lib_prefix=unknown
15191 hardcode_into_libs=no
15193 # when you set need_version to no, make sure it does not cause -set_version
15194 # flags to be left without arguments
15195 need_version=unknown
15197 case $host_os in
15198 aix3*)
15199 version_type=linux
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15201 shlibpath_var=LIBPATH
15203 # AIX 3 has no versioning support, so we append a major version to the name.
15204 soname_spec='${libname}${release}${shared_ext}$major'
15207 aix4* | aix5*)
15208 version_type=linux
15209 need_lib_prefix=no
15210 need_version=no
15211 hardcode_into_libs=yes
15212 if test "$host_cpu" = ia64; then
15213 # AIX 5 supports IA64
15214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 else
15217 # With GCC up to 2.95.x, collect2 would create an import file
15218 # for dependence libraries. The import file would start with
15219 # the line `#! .'. This would cause the generated library to
15220 # depend on `.', always an invalid library. This was fixed in
15221 # development snapshots of GCC prior to 3.0.
15222 case $host_os in
15223 aix4 | aix4.[01] | aix4.[01].*)
15224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15225 echo ' yes '
15226 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15228 else
15229 can_build_shared=no
15232 esac
15233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15234 # soname into executable. Probably we can add versioning support to
15235 # collect2, so additional links can be useful in future.
15236 if test "$aix_use_runtimelinking" = yes; then
15237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15238 # instead of lib<name>.a to let people know that these are not
15239 # typical AIX shared libraries.
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 else
15242 # We preserve .a as extension for shared libraries through AIX4.2
15243 # and later when we are not doing run time linking.
15244 library_names_spec='${libname}${release}.a $libname.a'
15245 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LIBPATH
15251 amigaos*)
15252 library_names_spec='$libname.ixlibrary $libname.a'
15253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15254 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'
15257 beos*)
15258 library_names_spec='${libname}${shared_ext}'
15259 dynamic_linker="$host_os ld.so"
15260 shlibpath_var=LIBRARY_PATH
15263 bsdi[45]*)
15264 version_type=linux
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15272 # the default ld.so.conf also contains /usr/contrib/lib and
15273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274 # libtool to hard-code these into programs
15277 cygwin* | mingw* | pw32*)
15278 version_type=windows
15279 shrext_cmds=".dll"
15280 need_version=no
15281 need_lib_prefix=no
15283 case $GCC,$host_os in
15284 yes,cygwin* | yes,mingw* | yes,pw32*)
15285 library_names_spec='$libname.dll.a'
15286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15287 postinstall_cmds='base_file=`basename \${file}`~
15288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15289 dldir=$destdir/`dirname \$dlpath`~
15290 test -d \$dldir || mkdir -p \$dldir~
15291 $install_prog $dir/$dlname \$dldir/$dlname~
15292 chmod a+x \$dldir/$dlname'
15293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15294 dlpath=$dir/\$dldll~
15295 $rm \$dlpath'
15296 shlibpath_overrides_runpath=yes
15298 case $host_os in
15299 cygwin*)
15300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15304 mingw*)
15305 # MinGW DLLs use traditional 'lib' prefix
15306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15309 # It is most probably a Windows format PATH printed by
15310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15311 # path with ; separators, and with drive letters. We can handle the
15312 # drive letters (cygwin fileutils understands them), so leave them,
15313 # especially as we might pass files found there to a mingw objdump,
15314 # which wouldn't understand a cygwinified path. Ahh.
15315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15316 else
15317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15320 pw32*)
15321 # pw32 DLLs use 'pw' prefix rather than 'lib'
15322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15324 esac
15328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15330 esac
15331 dynamic_linker='Win32 ld.exe'
15332 # FIXME: first we should search . and the directory the executable is in
15333 shlibpath_var=PATH
15336 darwin* | rhapsody*)
15337 dynamic_linker="$host_os dyld"
15338 version_type=darwin
15339 need_lib_prefix=no
15340 need_version=no
15341 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15342 soname_spec='${libname}${release}${major}$shared_ext'
15343 shlibpath_overrides_runpath=yes
15344 shlibpath_var=DYLD_LIBRARY_PATH
15345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15346 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15347 if test "$GCC" = yes; then
15348 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15349 else
15350 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15355 dgux*)
15356 version_type=linux
15357 need_lib_prefix=no
15358 need_version=no
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15364 freebsd1*)
15365 dynamic_linker=no
15368 freebsd* | dragonfly*)
15369 # DragonFly does not have aout. When/if they implement a new
15370 # versioning mechanism, adjust this.
15371 if test -x /usr/bin/objformat; then
15372 objformat=`/usr/bin/objformat`
15373 else
15374 case $host_os in
15375 freebsd[123]*) objformat=aout ;;
15376 *) objformat=elf ;;
15377 esac
15379 version_type=freebsd-$objformat
15380 case $version_type in
15381 freebsd-elf*)
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15383 need_version=no
15384 need_lib_prefix=no
15386 freebsd-*)
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15388 need_version=yes
15390 esac
15391 shlibpath_var=LD_LIBRARY_PATH
15392 case $host_os in
15393 freebsd2*)
15394 shlibpath_overrides_runpath=yes
15396 freebsd3.[01]* | freebsdelf3.[01]*)
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15402 shlibpath_overrides_runpath=no
15403 hardcode_into_libs=yes
15405 freebsd*) # from 4.6 on
15406 shlibpath_overrides_runpath=yes
15407 hardcode_into_libs=yes
15409 esac
15412 gnu*)
15413 version_type=linux
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 hardcode_into_libs=yes
15422 hpux9* | hpux10* | hpux11*)
15423 # Give a soname corresponding to the major version so that dld.sl refuses to
15424 # link against other versions.
15425 version_type=sunos
15426 need_lib_prefix=no
15427 need_version=no
15428 case $host_cpu in
15429 ia64*)
15430 shrext_cmds='.so'
15431 hardcode_into_libs=yes
15432 dynamic_linker="$host_os dld.so"
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 if test "X$HPUX_IA64_MODE" = X32; then
15438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439 else
15440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15444 hppa*64*)
15445 shrext_cmds='.sl'
15446 hardcode_into_libs=yes
15447 dynamic_linker="$host_os dld.sl"
15448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 shrext_cmds='.sl'
15457 dynamic_linker="$host_os dld.sl"
15458 shlibpath_var=SHLIB_PATH
15459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15463 esac
15464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15465 postinstall_cmds='chmod 555 $lib'
15468 interix3*)
15469 version_type=linux
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15480 irix5* | irix6* | nonstopux*)
15481 case $host_os in
15482 nonstopux*) version_type=nonstopux ;;
15484 if test "$lt_cv_prog_gnu_ld" = yes; then
15485 version_type=linux
15486 else
15487 version_type=irix
15488 fi ;;
15489 esac
15490 need_lib_prefix=no
15491 need_version=no
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 case $host_os in
15495 irix5* | nonstopux*)
15496 libsuff= shlibsuff=
15499 case $LD in # libtool.m4 will add one of these switches to LD
15500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501 libsuff= shlibsuff= libmagic=32-bit;;
15502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503 libsuff=32 shlibsuff=N32 libmagic=N32;;
15504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506 *) libsuff= shlibsuff= libmagic=never-match;;
15507 esac
15509 esac
15510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514 hardcode_into_libs=yes
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux*oldld* | linux*aout* | linux*coff*)
15519 dynamic_linker=no
15522 # This must be Linux ELF.
15523 linux* | k*bsd*-gnu)
15524 version_type=linux
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
15532 # This implies no fast_install, which is unacceptable.
15533 # Some rework will be needed to allow for fast_install
15534 # before this can be enabled.
15535 hardcode_into_libs=yes
15537 # Append ld.so.conf contents to the search path
15538 if test -f /etc/ld.so.conf; then
15539 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15543 # We used to test for /lib/ld.so.1 and disable shared libraries on
15544 # powerpc, because MkLinux only supported shared libraries with the
15545 # GNU dynamic linker. Since this was broken with cross compilers,
15546 # most powerpc-linux boxes support dynamic linking these days and
15547 # people can always --disable-shared, the test was removed, and we
15548 # assume the GNU/Linux dynamic linker is in use.
15549 dynamic_linker='GNU/Linux ld.so'
15552 netbsdelf*-gnu)
15553 version_type=linux
15554 need_lib_prefix=no
15555 need_version=no
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=no
15560 hardcode_into_libs=yes
15561 dynamic_linker='NetBSD ld.elf_so'
15564 netbsd*)
15565 version_type=sunos
15566 need_lib_prefix=no
15567 need_version=no
15568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571 dynamic_linker='NetBSD (a.out) ld.so'
15572 else
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 dynamic_linker='NetBSD ld.elf_so'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15582 newsos6)
15583 version_type=linux
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15589 nto-qnx*)
15590 version_type=linux
15591 need_lib_prefix=no
15592 need_version=no
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15599 openbsd*)
15600 version_type=sunos
15601 sys_lib_dlsearch_path_spec="/usr/lib"
15602 need_lib_prefix=no
15603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15604 case $host_os in
15605 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15606 *) need_version=no ;;
15607 esac
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15612 case $host_os in
15613 openbsd2.[89] | openbsd2.[89].*)
15614 shlibpath_overrides_runpath=no
15617 shlibpath_overrides_runpath=yes
15619 esac
15620 else
15621 shlibpath_overrides_runpath=yes
15625 os2*)
15626 libname_spec='$name'
15627 shrext_cmds=".dll"
15628 need_lib_prefix=no
15629 library_names_spec='$libname${shared_ext} $libname.a'
15630 dynamic_linker='OS/2 ld.exe'
15631 shlibpath_var=LIBPATH
15634 osf3* | osf4* | osf5*)
15635 version_type=osf
15636 need_lib_prefix=no
15637 need_version=no
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15642 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15645 solaris*)
15646 version_type=linux
15647 need_lib_prefix=no
15648 need_version=no
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath=yes
15653 hardcode_into_libs=yes
15654 # ldd complains unless libraries are executable
15655 postinstall_cmds='chmod +x $lib'
15658 sunos4*)
15659 version_type=sunos
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15662 shlibpath_var=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath=yes
15664 if test "$with_gnu_ld" = yes; then
15665 need_lib_prefix=no
15667 need_version=yes
15670 sysv4 | sysv4.3*)
15671 version_type=linux
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 case $host_vendor in
15676 sni)
15677 shlibpath_overrides_runpath=no
15678 need_lib_prefix=no
15679 export_dynamic_flag_spec='${wl}-Blargedynsym'
15680 runpath_var=LD_RUN_PATH
15682 siemens)
15683 need_lib_prefix=no
15685 motorola)
15686 need_lib_prefix=no
15687 need_version=no
15688 shlibpath_overrides_runpath=no
15689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15691 esac
15694 sysv4*MP*)
15695 if test -d /usr/nec ;then
15696 version_type=linux
15697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15698 soname_spec='$libname${shared_ext}.$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15704 version_type=freebsd-elf
15705 need_lib_prefix=no
15706 need_version=no
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 hardcode_into_libs=yes
15711 if test "$with_gnu_ld" = yes; then
15712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15713 shlibpath_overrides_runpath=no
15714 else
15715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15716 shlibpath_overrides_runpath=yes
15717 case $host_os in
15718 sco3.2v5*)
15719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15721 esac
15723 sys_lib_dlsearch_path_spec='/usr/lib'
15726 uts4*)
15727 version_type=linux
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15734 dynamic_linker=no
15736 esac
15737 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15738 echo "${ECHO_T}$dynamic_linker" >&6; }
15739 test "$dynamic_linker" = no && can_build_shared=no
15741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15742 if test "$GCC" = yes; then
15743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15746 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15748 hardcode_action_F77=
15749 if test -n "$hardcode_libdir_flag_spec_F77" || \
15750 test -n "$runpath_var_F77" || \
15751 test "X$hardcode_automatic_F77" = "Xyes" ; then
15753 # We can hardcode non-existant directories.
15754 if test "$hardcode_direct_F77" != no &&
15755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15756 # have to relink, otherwise we might link with an installed library
15757 # when we should be linking with a yet-to-be-installed one
15758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15759 test "$hardcode_minus_L_F77" != no; then
15760 # Linking always hardcodes the temporary library directory.
15761 hardcode_action_F77=relink
15762 else
15763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15764 hardcode_action_F77=immediate
15766 else
15767 # We cannot hardcode anything, or else we can only hardcode existing
15768 # directories.
15769 hardcode_action_F77=unsupported
15771 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15772 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15774 if test "$hardcode_action_F77" = relink; then
15775 # Fast installation is not supported
15776 enable_fast_install=no
15777 elif test "$shlibpath_overrides_runpath" = yes ||
15778 test "$enable_shared" = no; then
15779 # Fast installation is not necessary
15780 enable_fast_install=needless
15784 # The else clause should only fire when bootstrapping the
15785 # libtool distribution, otherwise you forgot to ship ltmain.sh
15786 # with your package, and you will get complaints that there are
15787 # no rules to generate ltmain.sh.
15788 if test -f "$ltmain"; then
15789 # See if we are running on zsh, and set the options which allow our commands through
15790 # without removal of \ escapes.
15791 if test -n "${ZSH_VERSION+set}" ; then
15792 setopt NO_GLOB_SUBST
15794 # Now quote all the things that may contain metacharacters while being
15795 # careful not to overquote the AC_SUBSTed values. We take copies of the
15796 # variables and quote the copies for generation of the libtool script.
15797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15798 SED SHELL STRIP \
15799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15801 deplibs_check_method reload_flag reload_cmds need_locks \
15802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15803 lt_cv_sys_global_symbol_to_c_name_address \
15804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15805 old_postinstall_cmds old_postuninstall_cmds \
15806 compiler_F77 \
15807 CC_F77 \
15808 LD_F77 \
15809 lt_prog_compiler_wl_F77 \
15810 lt_prog_compiler_pic_F77 \
15811 lt_prog_compiler_static_F77 \
15812 lt_prog_compiler_no_builtin_flag_F77 \
15813 export_dynamic_flag_spec_F77 \
15814 thread_safe_flag_spec_F77 \
15815 whole_archive_flag_spec_F77 \
15816 enable_shared_with_static_runtimes_F77 \
15817 old_archive_cmds_F77 \
15818 old_archive_from_new_cmds_F77 \
15819 predep_objects_F77 \
15820 postdep_objects_F77 \
15821 predeps_F77 \
15822 postdeps_F77 \
15823 compiler_lib_search_path_F77 \
15824 archive_cmds_F77 \
15825 archive_expsym_cmds_F77 \
15826 postinstall_cmds_F77 \
15827 postuninstall_cmds_F77 \
15828 old_archive_from_expsyms_cmds_F77 \
15829 allow_undefined_flag_F77 \
15830 no_undefined_flag_F77 \
15831 export_symbols_cmds_F77 \
15832 hardcode_libdir_flag_spec_F77 \
15833 hardcode_libdir_flag_spec_ld_F77 \
15834 hardcode_libdir_separator_F77 \
15835 hardcode_automatic_F77 \
15836 module_cmds_F77 \
15837 module_expsym_cmds_F77 \
15838 lt_cv_prog_compiler_c_o_F77 \
15839 exclude_expsyms_F77 \
15840 include_expsyms_F77; do
15842 case $var in
15843 old_archive_cmds_F77 | \
15844 old_archive_from_new_cmds_F77 | \
15845 archive_cmds_F77 | \
15846 archive_expsym_cmds_F77 | \
15847 module_cmds_F77 | \
15848 module_expsym_cmds_F77 | \
15849 old_archive_from_expsyms_cmds_F77 | \
15850 export_symbols_cmds_F77 | \
15851 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15852 postinstall_cmds | postuninstall_cmds | \
15853 old_postinstall_cmds | old_postuninstall_cmds | \
15854 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15855 # Double-quote double-evaled strings.
15856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15861 esac
15862 done
15864 case $lt_echo in
15865 *'\$0 --fallback-echo"')
15866 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15868 esac
15870 cfgfile="$ofile"
15872 cat <<__EOF__ >> "$cfgfile"
15873 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15877 # Shell to use when invoking shell scripts.
15878 SHELL=$lt_SHELL
15880 # Whether or not to build shared libraries.
15881 build_libtool_libs=$enable_shared
15883 # Whether or not to build static libraries.
15884 build_old_libs=$enable_static
15886 # Whether or not to add -lc for building shared libraries.
15887 build_libtool_need_lc=$archive_cmds_need_lc_F77
15889 # Whether or not to disallow shared libs when runtime libs are static
15890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15892 # Whether or not to optimize for fast installation.
15893 fast_install=$enable_fast_install
15895 # The host system.
15896 host_alias=$host_alias
15897 host=$host
15898 host_os=$host_os
15900 # The build system.
15901 build_alias=$build_alias
15902 build=$build
15903 build_os=$build_os
15905 # An echo program that does not interpret backslashes.
15906 echo=$lt_echo
15908 # The archiver.
15909 AR=$lt_AR
15910 AR_FLAGS=$lt_AR_FLAGS
15912 # A C compiler.
15913 LTCC=$lt_LTCC
15915 # LTCC compiler flags.
15916 LTCFLAGS=$lt_LTCFLAGS
15918 # A language-specific compiler.
15919 CC=$lt_compiler_F77
15921 # Is the compiler the GNU C compiler?
15922 with_gcc=$GCC_F77
15924 # An ERE matcher.
15925 EGREP=$lt_EGREP
15927 # The linker used to build libraries.
15928 LD=$lt_LD_F77
15930 # Whether we need hard or soft links.
15931 LN_S=$lt_LN_S
15933 # A BSD-compatible nm program.
15934 NM=$lt_NM
15936 # A symbol stripping program
15937 STRIP=$lt_STRIP
15939 # Used to examine libraries when file_magic_cmd begins "file"
15940 MAGIC_CMD=$MAGIC_CMD
15942 # Used on cygwin: DLL creation program.
15943 DLLTOOL="$DLLTOOL"
15945 # Used on cygwin: object dumper.
15946 OBJDUMP="$OBJDUMP"
15948 # Used on cygwin: assembler.
15949 AS="$AS"
15951 # The name of the directory that contains temporary libtool files.
15952 objdir=$objdir
15954 # How to create reloadable object files.
15955 reload_flag=$lt_reload_flag
15956 reload_cmds=$lt_reload_cmds
15958 # How to pass a linker flag through the compiler.
15959 wl=$lt_lt_prog_compiler_wl_F77
15961 # Object file suffix (normally "o").
15962 objext="$ac_objext"
15964 # Old archive suffix (normally "a").
15965 libext="$libext"
15967 # Shared library suffix (normally ".so").
15968 shrext_cmds='$shrext_cmds'
15970 # Executable file suffix (normally "").
15971 exeext="$exeext"
15973 # Additional compiler flags for building library objects.
15974 pic_flag=$lt_lt_prog_compiler_pic_F77
15975 pic_mode=$pic_mode
15977 # What is the maximum length of a command?
15978 max_cmd_len=$lt_cv_sys_max_cmd_len
15980 # Does compiler simultaneously support -c and -o options?
15981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15983 # Must we lock files when doing compilation?
15984 need_locks=$lt_need_locks
15986 # Do we need the lib prefix for modules?
15987 need_lib_prefix=$need_lib_prefix
15989 # Do we need a version for libraries?
15990 need_version=$need_version
15992 # Whether dlopen is supported.
15993 dlopen_support=$enable_dlopen
15995 # Whether dlopen of programs is supported.
15996 dlopen_self=$enable_dlopen_self
15998 # Whether dlopen of statically linked programs is supported.
15999 dlopen_self_static=$enable_dlopen_self_static
16001 # Compiler flag to prevent dynamic linking.
16002 link_static_flag=$lt_lt_prog_compiler_static_F77
16004 # Compiler flag to turn off builtin functions.
16005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16007 # Compiler flag to allow reflexive dlopens.
16008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16010 # Compiler flag to generate shared objects directly from archives.
16011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16013 # Compiler flag to generate thread-safe objects.
16014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16016 # Library versioning type.
16017 version_type=$version_type
16019 # Format of library name prefix.
16020 libname_spec=$lt_libname_spec
16022 # List of archive names. First name is the real one, the rest are links.
16023 # The last name is the one that the linker finds with -lNAME.
16024 library_names_spec=$lt_library_names_spec
16026 # The coded name of the library, if different from the real name.
16027 soname_spec=$lt_soname_spec
16029 # Commands used to build and install an old-style archive.
16030 RANLIB=$lt_RANLIB
16031 old_archive_cmds=$lt_old_archive_cmds_F77
16032 old_postinstall_cmds=$lt_old_postinstall_cmds
16033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16035 # Create an old-style archive from a shared archive.
16036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16038 # Create a temporary old-style archive to link instead of a shared archive.
16039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16041 # Commands used to build and install a shared archive.
16042 archive_cmds=$lt_archive_cmds_F77
16043 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16044 postinstall_cmds=$lt_postinstall_cmds
16045 postuninstall_cmds=$lt_postuninstall_cmds
16047 # Commands used to build a loadable module (assumed same as above if empty)
16048 module_cmds=$lt_module_cmds_F77
16049 module_expsym_cmds=$lt_module_expsym_cmds_F77
16051 # Commands to strip libraries.
16052 old_striplib=$lt_old_striplib
16053 striplib=$lt_striplib
16055 # Dependencies to place before the objects being linked to create a
16056 # shared library.
16057 predep_objects=$lt_predep_objects_F77
16059 # Dependencies to place after the objects being linked to create a
16060 # shared library.
16061 postdep_objects=$lt_postdep_objects_F77
16063 # Dependencies to place before the objects being linked to create a
16064 # shared library.
16065 predeps=$lt_predeps_F77
16067 # Dependencies to place after the objects being linked to create a
16068 # shared library.
16069 postdeps=$lt_postdeps_F77
16071 # The library search path used internally by the compiler when linking
16072 # a shared library.
16073 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16075 # Method to check whether dependent libraries are shared objects.
16076 deplibs_check_method=$lt_deplibs_check_method
16078 # Command to use when deplibs_check_method == file_magic.
16079 file_magic_cmd=$lt_file_magic_cmd
16081 # Flag that allows shared libraries with undefined symbols to be built.
16082 allow_undefined_flag=$lt_allow_undefined_flag_F77
16084 # Flag that forces no undefined symbols.
16085 no_undefined_flag=$lt_no_undefined_flag_F77
16087 # Commands used to finish a libtool library installation in a directory.
16088 finish_cmds=$lt_finish_cmds
16090 # Same as above, but a single script fragment to be evaled but not shown.
16091 finish_eval=$lt_finish_eval
16093 # Take the output of nm and produce a listing of raw symbols and C names.
16094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16096 # Transform the output of nm in a proper C declaration
16097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16099 # Transform the output of nm in a C name address pair
16100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16102 # This is the shared library runtime path variable.
16103 runpath_var=$runpath_var
16105 # This is the shared library path variable.
16106 shlibpath_var=$shlibpath_var
16108 # Is shlibpath searched before the hard-coded library search path?
16109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16111 # How to hardcode a shared library path into an executable.
16112 hardcode_action=$hardcode_action_F77
16114 # Whether we should hardcode library paths into libraries.
16115 hardcode_into_libs=$hardcode_into_libs
16117 # Flag to hardcode \$libdir into a binary during linking.
16118 # This must work even if \$libdir does not exist.
16119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16121 # If ld is used when linking, flag to hardcode \$libdir into
16122 # a binary during linking. This must work even if \$libdir does
16123 # not exist.
16124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16126 # Whether we need a single -rpath flag with a separated argument.
16127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16130 # resulting binary.
16131 hardcode_direct=$hardcode_direct_F77
16133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16134 # resulting binary.
16135 hardcode_minus_L=$hardcode_minus_L_F77
16137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16138 # the resulting binary.
16139 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16141 # Set to yes if building a shared library automatically hardcodes DIR into the library
16142 # and all subsequent libraries and executables linked against it.
16143 hardcode_automatic=$hardcode_automatic_F77
16145 # Variables whose values should be saved in libtool wrapper scripts and
16146 # restored at relink time.
16147 variables_saved_for_relink="$variables_saved_for_relink"
16149 # Whether libtool must link a program against all its dependency libraries.
16150 link_all_deplibs=$link_all_deplibs_F77
16152 # Compile-time system search path for libraries
16153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16155 # Run-time system search path for libraries
16156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16158 # Fix the shell variable \$srcfile for the compiler.
16159 fix_srcfile_path="$fix_srcfile_path_F77"
16161 # Set to yes if exported symbols are required.
16162 always_export_symbols=$always_export_symbols_F77
16164 # The commands to list exported symbols.
16165 export_symbols_cmds=$lt_export_symbols_cmds_F77
16167 # The commands to extract the exported symbol list from a shared archive.
16168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16170 # Symbols that should not be listed in the preloaded symbols.
16171 exclude_expsyms=$lt_exclude_expsyms_F77
16173 # Symbols that must always be exported.
16174 include_expsyms=$lt_include_expsyms_F77
16176 # ### END LIBTOOL TAG CONFIG: $tagname
16178 __EOF__
16181 else
16182 # If there is no Makefile yet, we rely on a make rule to execute
16183 # `config.status --recheck' to rerun these tests and create the
16184 # libtool script then.
16185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16186 if test -f "$ltmain_in"; then
16187 test -f Makefile && make "$ltmain"
16192 ac_ext=c
16193 ac_cpp='$CPP $CPPFLAGS'
16194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16198 CC="$lt_save_CC"
16200 else
16201 tagname=""
16205 GCJ)
16206 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16209 # Source file extension for Java test sources.
16210 ac_ext=java
16212 # Object file extension for compiled Java test sources.
16213 objext=o
16214 objext_GCJ=$objext
16216 # Code to be used in simple compile tests
16217 lt_simple_compile_test_code="class foo {}\n"
16219 # Code to be used in simple link tests
16220 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16224 # If no C compiler was specified, use CC.
16225 LTCC=${LTCC-"$CC"}
16227 # If no C compiler flags were specified, use CFLAGS.
16228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16230 # Allow CC to be a program name with arguments.
16231 compiler=$CC
16234 # save warnings/boilerplate of simple test code
16235 ac_outfile=conftest.$ac_objext
16236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16238 _lt_compiler_boilerplate=`cat conftest.err`
16239 $rm conftest*
16241 ac_outfile=conftest.$ac_objext
16242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16244 _lt_linker_boilerplate=`cat conftest.err`
16245 $rm conftest*
16248 # Allow CC to be a program name with arguments.
16249 lt_save_CC="$CC"
16250 CC=${GCJ-"gcj"}
16251 compiler=$CC
16252 compiler_GCJ=$CC
16253 for cc_temp in $compiler""; do
16254 case $cc_temp in
16255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16257 \-*) ;;
16258 *) break;;
16259 esac
16260 done
16261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16264 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16265 archive_cmds_need_lc_GCJ=no
16267 old_archive_cmds_GCJ=$old_archive_cmds
16270 lt_prog_compiler_no_builtin_flag_GCJ=
16272 if test "$GCC" = yes; then
16273 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16276 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16277 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16278 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 lt_cv_prog_compiler_rtti_exceptions=no
16282 ac_outfile=conftest.$ac_objext
16283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284 lt_compiler_flag="-fno-rtti -fno-exceptions"
16285 # Insert the option either (1) after the last *FLAGS variable, or
16286 # (2) before a word containing "conftest.", or (3) at the end.
16287 # Note that $ac_compile itself does not contain backslashes and begins
16288 # with a dollar sign (not a hyphen), so the echo should work correctly.
16289 # The option is referenced via a variable to avoid confusing sed.
16290 lt_compile=`echo "$ac_compile" | $SED \
16291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293 -e 's:$: $lt_compiler_flag:'`
16294 (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295 (eval "$lt_compile" 2>conftest.err)
16296 ac_status=$?
16297 cat conftest.err >&5
16298 echo "$as_me:16298: \$? = $ac_status" >&5
16299 if (exit $ac_status) && test -s "$ac_outfile"; then
16300 # The compiler can only warn and ignore the option if not recognized
16301 # So say no if there are warnings other than the usual output.
16302 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16305 lt_cv_prog_compiler_rtti_exceptions=yes
16308 $rm conftest*
16311 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16312 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16314 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16315 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16316 else
16322 lt_prog_compiler_wl_GCJ=
16323 lt_prog_compiler_pic_GCJ=
16324 lt_prog_compiler_static_GCJ=
16326 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16327 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16329 if test "$GCC" = yes; then
16330 lt_prog_compiler_wl_GCJ='-Wl,'
16331 lt_prog_compiler_static_GCJ='-static'
16333 case $host_os in
16334 aix*)
16335 # All AIX code is PIC.
16336 if test "$host_cpu" = ia64; then
16337 # AIX 5 now supports IA64 processor
16338 lt_prog_compiler_static_GCJ='-Bstatic'
16342 amigaos*)
16343 # FIXME: we need at least 68020 code to build shared libraries, but
16344 # adding the `-m68020' flag to GCC prevents building anything better,
16345 # like `-m68040'.
16346 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16349 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16350 # PIC is the default for these OSes.
16353 mingw* | pw32* | os2*)
16354 # This hack is so that the source file can tell whether it is being
16355 # built for inclusion in a dll (and should export symbols for example).
16356 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16359 darwin* | rhapsody*)
16360 # PIC is the default on this platform
16361 # Common symbols not allowed in MH_DYLIB files
16362 lt_prog_compiler_pic_GCJ='-fno-common'
16365 interix3*)
16366 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16367 # Instead, we relocate shared libraries at runtime.
16370 msdosdjgpp*)
16371 # Just because we use GCC doesn't mean we suddenly get shared libraries
16372 # on systems that don't support them.
16373 lt_prog_compiler_can_build_shared_GCJ=no
16374 enable_shared=no
16377 sysv4*MP*)
16378 if test -d /usr/nec; then
16379 lt_prog_compiler_pic_GCJ=-Kconform_pic
16383 hpux*)
16384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16385 # not for PA HP-UX.
16386 case $host_cpu in
16387 hppa*64*|ia64*)
16388 # +Z the default
16391 lt_prog_compiler_pic_GCJ='-fPIC'
16393 esac
16397 lt_prog_compiler_pic_GCJ='-fPIC'
16399 esac
16400 else
16401 # PORTME Check for flag to pass linker flags through the system compiler.
16402 case $host_os in
16403 aix*)
16404 lt_prog_compiler_wl_GCJ='-Wl,'
16405 if test "$host_cpu" = ia64; then
16406 # AIX 5 now supports IA64 processor
16407 lt_prog_compiler_static_GCJ='-Bstatic'
16408 else
16409 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16412 darwin*)
16413 # PIC is the default on this platform
16414 # Common symbols not allowed in MH_DYLIB files
16415 case $cc_basename in
16416 xlc*)
16417 lt_prog_compiler_pic_GCJ='-qnocommon'
16418 lt_prog_compiler_wl_GCJ='-Wl,'
16420 esac
16423 mingw* | pw32* | os2*)
16424 # This hack is so that the source file can tell whether it is being
16425 # built for inclusion in a dll (and should export symbols for example).
16426 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16429 hpux9* | hpux10* | hpux11*)
16430 lt_prog_compiler_wl_GCJ='-Wl,'
16431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16432 # not for PA HP-UX.
16433 case $host_cpu in
16434 hppa*64*|ia64*)
16435 # +Z the default
16438 lt_prog_compiler_pic_GCJ='+Z'
16440 esac
16441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16442 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16445 irix5* | irix6* | nonstopux*)
16446 lt_prog_compiler_wl_GCJ='-Wl,'
16447 # PIC (with -KPIC) is the default.
16448 lt_prog_compiler_static_GCJ='-non_shared'
16451 newsos6)
16452 lt_prog_compiler_pic_GCJ='-KPIC'
16453 lt_prog_compiler_static_GCJ='-Bstatic'
16456 linux* | k*bsd*-gnu)
16457 case $cc_basename in
16458 icc* | ecc*)
16459 lt_prog_compiler_wl_GCJ='-Wl,'
16460 lt_prog_compiler_pic_GCJ='-KPIC'
16461 lt_prog_compiler_static_GCJ='-static'
16463 pgcc* | pgf77* | pgf90* | pgf95*)
16464 # Portland Group compilers (*not* the Pentium gcc compiler,
16465 # which looks to be a dead project)
16466 lt_prog_compiler_wl_GCJ='-Wl,'
16467 lt_prog_compiler_pic_GCJ='-fpic'
16468 lt_prog_compiler_static_GCJ='-Bstatic'
16470 ccc*)
16471 lt_prog_compiler_wl_GCJ='-Wl,'
16472 # All Alpha code is PIC.
16473 lt_prog_compiler_static_GCJ='-non_shared'
16475 esac
16478 osf3* | osf4* | osf5*)
16479 lt_prog_compiler_wl_GCJ='-Wl,'
16480 # All OSF/1 code is PIC.
16481 lt_prog_compiler_static_GCJ='-non_shared'
16484 solaris*)
16485 lt_prog_compiler_pic_GCJ='-KPIC'
16486 lt_prog_compiler_static_GCJ='-Bstatic'
16487 case $cc_basename in
16488 f77* | f90* | f95*)
16489 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16491 lt_prog_compiler_wl_GCJ='-Wl,';;
16492 esac
16495 sunos4*)
16496 lt_prog_compiler_wl_GCJ='-Qoption ld '
16497 lt_prog_compiler_pic_GCJ='-PIC'
16498 lt_prog_compiler_static_GCJ='-Bstatic'
16501 sysv4 | sysv4.2uw2* | sysv4.3*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 lt_prog_compiler_pic_GCJ='-KPIC'
16504 lt_prog_compiler_static_GCJ='-Bstatic'
16507 sysv4*MP*)
16508 if test -d /usr/nec ;then
16509 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16510 lt_prog_compiler_static_GCJ='-Bstatic'
16514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16516 lt_prog_compiler_pic_GCJ='-KPIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16520 unicos*)
16521 lt_prog_compiler_wl_GCJ='-Wl,'
16522 lt_prog_compiler_can_build_shared_GCJ=no
16525 uts4*)
16526 lt_prog_compiler_pic_GCJ='-pic'
16527 lt_prog_compiler_static_GCJ='-Bstatic'
16531 lt_prog_compiler_can_build_shared_GCJ=no
16533 esac
16536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16537 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16540 # Check to make sure the PIC flag actually works.
16542 if test -n "$lt_prog_compiler_pic_GCJ"; then
16544 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16546 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549 lt_prog_compiler_pic_works_GCJ=no
16550 ac_outfile=conftest.$ac_objext
16551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16553 # Insert the option either (1) after the last *FLAGS variable, or
16554 # (2) before a word containing "conftest.", or (3) at the end.
16555 # Note that $ac_compile itself does not contain backslashes and begins
16556 # with a dollar sign (not a hyphen), so the echo should work correctly.
16557 # The option is referenced via a variable to avoid confusing sed.
16558 lt_compile=`echo "$ac_compile" | $SED \
16559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561 -e 's:$: $lt_compiler_flag:'`
16562 (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563 (eval "$lt_compile" 2>conftest.err)
16564 ac_status=$?
16565 cat conftest.err >&5
16566 echo "$as_me:16566: \$? = $ac_status" >&5
16567 if (exit $ac_status) && test -s "$ac_outfile"; then
16568 # The compiler can only warn and ignore the option if not recognized
16569 # So say no if there are warnings other than the usual output.
16570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16573 lt_prog_compiler_pic_works_GCJ=yes
16576 $rm conftest*
16579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16580 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16582 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16583 case $lt_prog_compiler_pic_GCJ in
16584 "" | " "*) ;;
16585 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16586 esac
16587 else
16588 lt_prog_compiler_pic_GCJ=
16589 lt_prog_compiler_can_build_shared_GCJ=no
16593 case $host_os in
16594 # For platforms which do not support PIC, -DPIC is meaningless:
16595 *djgpp*)
16596 lt_prog_compiler_pic_GCJ=
16599 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16601 esac
16604 # Check to make sure the static flag actually works.
16606 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16607 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16608 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16609 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 lt_prog_compiler_static_works_GCJ=no
16613 save_LDFLAGS="$LDFLAGS"
16614 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16615 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16617 # The linker can only warn and ignore the option if not recognized
16618 # So say no if there are warnings
16619 if test -s conftest.err; then
16620 # Append any errors to the config.log.
16621 cat conftest.err 1>&5
16622 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624 if diff conftest.exp conftest.er2 >/dev/null; then
16625 lt_prog_compiler_static_works_GCJ=yes
16627 else
16628 lt_prog_compiler_static_works_GCJ=yes
16631 $rm conftest*
16632 LDFLAGS="$save_LDFLAGS"
16635 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16636 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16638 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16640 else
16641 lt_prog_compiler_static_GCJ=
16645 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16647 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 lt_cv_prog_compiler_c_o_GCJ=no
16651 $rm -r conftest 2>/dev/null
16652 mkdir conftest
16653 cd conftest
16654 mkdir out
16655 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16657 lt_compiler_flag="-o out/conftest2.$ac_objext"
16658 # Insert the option either (1) after the last *FLAGS variable, or
16659 # (2) before a word containing "conftest.", or (3) at the end.
16660 # Note that $ac_compile itself does not contain backslashes and begins
16661 # with a dollar sign (not a hyphen), so the echo should work correctly.
16662 lt_compile=`echo "$ac_compile" | $SED \
16663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16665 -e 's:$: $lt_compiler_flag:'`
16666 (eval echo "\"\$as_me:16666: $lt_compile\"" >&5)
16667 (eval "$lt_compile" 2>out/conftest.err)
16668 ac_status=$?
16669 cat out/conftest.err >&5
16670 echo "$as_me:16670: \$? = $ac_status" >&5
16671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16672 then
16673 # The compiler can only warn and ignore the option if not recognized
16674 # So say no if there are warnings
16675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16678 lt_cv_prog_compiler_c_o_GCJ=yes
16681 chmod u+w . 2>&5
16682 $rm conftest*
16683 # SGI C++ compiler will create directory out/ii_files/ for
16684 # template instantiation
16685 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16686 $rm out/* && rmdir out
16687 cd ..
16688 rmdir conftest
16689 $rm conftest*
16692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16696 hard_links="nottested"
16697 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16698 # do not overwrite the value of need_locks provided by the user
16699 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16701 hard_links=yes
16702 $rm conftest*
16703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16704 touch conftest.a
16705 ln conftest.a conftest.b 2>&5 || hard_links=no
16706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16707 { echo "$as_me:$LINENO: result: $hard_links" >&5
16708 echo "${ECHO_T}$hard_links" >&6; }
16709 if test "$hard_links" = no; then
16710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16712 need_locks=warn
16714 else
16715 need_locks=no
16718 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16721 runpath_var=
16722 allow_undefined_flag_GCJ=
16723 enable_shared_with_static_runtimes_GCJ=no
16724 archive_cmds_GCJ=
16725 archive_expsym_cmds_GCJ=
16726 old_archive_From_new_cmds_GCJ=
16727 old_archive_from_expsyms_cmds_GCJ=
16728 export_dynamic_flag_spec_GCJ=
16729 whole_archive_flag_spec_GCJ=
16730 thread_safe_flag_spec_GCJ=
16731 hardcode_libdir_flag_spec_GCJ=
16732 hardcode_libdir_flag_spec_ld_GCJ=
16733 hardcode_libdir_separator_GCJ=
16734 hardcode_direct_GCJ=no
16735 hardcode_minus_L_GCJ=no
16736 hardcode_shlibpath_var_GCJ=unsupported
16737 link_all_deplibs_GCJ=unknown
16738 hardcode_automatic_GCJ=no
16739 module_cmds_GCJ=
16740 module_expsym_cmds_GCJ=
16741 always_export_symbols_GCJ=no
16742 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16743 # include_expsyms should be a list of space-separated symbols to be *always*
16744 # included in the symbol list
16745 include_expsyms_GCJ=
16746 # exclude_expsyms can be an extended regexp of symbols to exclude
16747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16749 # as well as any symbol that contains `d'.
16750 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16752 # platforms (ab)use it in PIC code, but their linkers get confused if
16753 # the symbol is explicitly referenced. Since portable code cannot
16754 # rely on this symbol name, it's probably fine to never include it in
16755 # preloaded symbol tables.
16756 extract_expsyms_cmds=
16757 # Just being paranoid about ensuring that cc_basename is set.
16758 for cc_temp in $compiler""; do
16759 case $cc_temp in
16760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16762 \-*) ;;
16763 *) break;;
16764 esac
16765 done
16766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16768 case $host_os in
16769 cygwin* | mingw* | pw32*)
16770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16771 # When not using gcc, we currently assume that we are using
16772 # Microsoft Visual C++.
16773 if test "$GCC" != yes; then
16774 with_gnu_ld=no
16777 interix*)
16778 # we just hope/assume this is gcc and not c89 (= MSVC++)
16779 with_gnu_ld=yes
16781 openbsd*)
16782 with_gnu_ld=no
16784 esac
16786 ld_shlibs_GCJ=yes
16787 if test "$with_gnu_ld" = yes; then
16788 # If archive_cmds runs LD, not CC, wlarc should be empty
16789 wlarc='${wl}'
16791 # Set some defaults for GNU ld with shared library support. These
16792 # are reset later if shared libraries are not supported. Putting them
16793 # here allows them to be overridden if necessary.
16794 runpath_var=LD_RUN_PATH
16795 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16796 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16797 # ancient GNU ld didn't support --whole-archive et. al.
16798 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16799 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16800 else
16801 whole_archive_flag_spec_GCJ=
16803 supports_anon_versioning=no
16804 case `$LD -v 2>/dev/null` in
16805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16808 *\ 2.11.*) ;; # other 2.11 versions
16809 *) supports_anon_versioning=yes ;;
16810 esac
16812 # See if GNU ld supports shared libraries.
16813 case $host_os in
16814 aix3* | aix4* | aix5*)
16815 # On AIX/PPC, the GNU linker is very broken
16816 if test "$host_cpu" != ia64; then
16817 ld_shlibs_GCJ=no
16818 cat <<EOF 1>&2
16820 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16821 *** to be unable to reliably create shared libraries on AIX.
16822 *** Therefore, libtool is disabling shared libraries support. If you
16823 *** really care for shared libraries, you may want to modify your PATH
16824 *** so that a non-GNU linker is found, and then restart.
16830 amigaos*)
16831 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)'
16832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16833 hardcode_minus_L_GCJ=yes
16835 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16836 # that the semantics of dynamic libraries on AmigaOS, at least up
16837 # to version 4, is to share data among multiple programs linked
16838 # with the same dynamic library. Since this doesn't match the
16839 # behavior of shared libraries on other platforms, we can't use
16840 # them.
16841 ld_shlibs_GCJ=no
16844 beos*)
16845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16846 allow_undefined_flag_GCJ=unsupported
16847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16848 # support --undefined. This deserves some investigation. FIXME
16849 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16850 else
16851 ld_shlibs_GCJ=no
16855 cygwin* | mingw* | pw32*)
16856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16857 # as there is no search path for DLLs.
16858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16859 allow_undefined_flag_GCJ=unsupported
16860 always_export_symbols_GCJ=no
16861 enable_shared_with_static_runtimes_GCJ=yes
16862 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16866 # If the export-symbols file already is a .def file (1st line
16867 # is EXPORTS), use it as is; otherwise, prepend...
16868 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16869 cp $export_symbols $output_objdir/$soname.def;
16870 else
16871 echo EXPORTS > $output_objdir/$soname.def;
16872 cat $export_symbols >> $output_objdir/$soname.def;
16874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16875 else
16876 ld_shlibs_GCJ=no
16880 interix3*)
16881 hardcode_direct_GCJ=no
16882 hardcode_shlibpath_var_GCJ=no
16883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16884 export_dynamic_flag_spec_GCJ='${wl}-E'
16885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16886 # Instead, shared libraries are loaded at an image base (0x10000000 by
16887 # default) and relocated if they conflict, which is a slow very memory
16888 # consuming and fragmenting process. To avoid this, we pick a random,
16889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16891 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'
16892 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'
16895 linux* | k*bsd*-gnu)
16896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16897 tmp_addflag=
16898 case $cc_basename,$host_cpu in
16899 pgcc*) # Portland Group C compiler
16900 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'
16901 tmp_addflag=' $pic_flag'
16903 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16904 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'
16905 tmp_addflag=' $pic_flag -Mnomain' ;;
16906 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16907 tmp_addflag=' -i_dynamic' ;;
16908 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16909 tmp_addflag=' -i_dynamic -nofor_main' ;;
16910 ifc* | ifort*) # Intel Fortran compiler
16911 tmp_addflag=' -nofor_main' ;;
16912 esac
16913 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915 if test $supports_anon_versioning = yes; then
16916 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16918 $echo "local: *; };" >> $output_objdir/$libname.ver~
16919 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16921 link_all_deplibs_GCJ=no
16922 else
16923 ld_shlibs_GCJ=no
16927 netbsd* | netbsdelf*-gnu)
16928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16929 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16930 wlarc=
16931 else
16932 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16933 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16937 solaris*)
16938 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16939 ld_shlibs_GCJ=no
16940 cat <<EOF 1>&2
16942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16943 *** create shared libraries on Solaris systems. Therefore, libtool
16944 *** is disabling shared libraries support. We urge you to upgrade GNU
16945 *** binutils to release 2.9.1 or newer. Another option is to modify
16946 *** your PATH or compiler configuration so that the native linker is
16947 *** used, and then restart.
16950 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16951 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16953 else
16954 ld_shlibs_GCJ=no
16958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16959 case `$LD -v 2>&1` in
16960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16961 ld_shlibs_GCJ=no
16962 cat <<_LT_EOF 1>&2
16964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16965 *** reliably create shared libraries on SCO systems. Therefore, libtool
16966 *** is disabling shared libraries support. We urge you to upgrade GNU
16967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16968 *** your PATH or compiler configuration so that the native linker is
16969 *** used, and then restart.
16971 _LT_EOF
16974 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16975 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16976 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16977 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16978 else
16979 ld_shlibs_GCJ=no
16982 esac
16985 sunos4*)
16986 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16987 wlarc=
16988 hardcode_direct_GCJ=yes
16989 hardcode_shlibpath_var_GCJ=no
16993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16994 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16996 else
16997 ld_shlibs_GCJ=no
17000 esac
17002 if test "$ld_shlibs_GCJ" = no; then
17003 runpath_var=
17004 hardcode_libdir_flag_spec_GCJ=
17005 export_dynamic_flag_spec_GCJ=
17006 whole_archive_flag_spec_GCJ=
17008 else
17009 # PORTME fill in a description of your system's linker (not GNU ld)
17010 case $host_os in
17011 aix3*)
17012 allow_undefined_flag_GCJ=unsupported
17013 always_export_symbols_GCJ=yes
17014 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'
17015 # Note: this linker hardcodes the directories in LIBPATH if there
17016 # are no directories specified by -L.
17017 hardcode_minus_L_GCJ=yes
17018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17019 # Neither direct hardcoding nor static linking is supported with a
17020 # broken collect2.
17021 hardcode_direct_GCJ=unsupported
17025 aix4* | aix5*)
17026 if test "$host_cpu" = ia64; then
17027 # On IA64, the linker does run time linking by default, so we don't
17028 # have to do anything special.
17029 aix_use_runtimelinking=no
17030 exp_sym_flag='-Bexport'
17031 no_entry_flag=""
17032 else
17033 # If we're using GNU nm, then we don't want the "-C" option.
17034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17035 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17036 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'
17037 else
17038 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'
17040 aix_use_runtimelinking=no
17042 # Test if we are trying to use run time linking or normal
17043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17044 # need to do runtime linking.
17045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17046 for ld_flag in $LDFLAGS; do
17047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17048 aix_use_runtimelinking=yes
17049 break
17051 done
17053 esac
17055 exp_sym_flag='-bexport'
17056 no_entry_flag='-bnoentry'
17059 # When large executables or shared objects are built, AIX ld can
17060 # have problems creating the table of contents. If linking a library
17061 # or program results in "error TOC overflow" add -mminimal-toc to
17062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17065 archive_cmds_GCJ=''
17066 hardcode_direct_GCJ=yes
17067 hardcode_libdir_separator_GCJ=':'
17068 link_all_deplibs_GCJ=yes
17070 if test "$GCC" = yes; then
17071 case $host_os in aix4.[012]|aix4.[012].*)
17072 # We only want to do this on AIX 4.2 and lower, the check
17073 # below for broken collect2 doesn't work under 4.3+
17074 collect2name=`${CC} -print-prog-name=collect2`
17075 if test -f "$collect2name" && \
17076 strings "$collect2name" | grep resolve_lib_name >/dev/null
17077 then
17078 # We have reworked collect2
17079 hardcode_direct_GCJ=yes
17080 else
17081 # We have old collect2
17082 hardcode_direct_GCJ=unsupported
17083 # It fails to find uninstalled libraries when the uninstalled
17084 # path is not listed in the libpath. Setting hardcode_minus_L
17085 # to unsupported forces relinking
17086 hardcode_minus_L_GCJ=yes
17087 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17088 hardcode_libdir_separator_GCJ=
17091 esac
17092 shared_flag='-shared'
17093 if test "$aix_use_runtimelinking" = yes; then
17094 shared_flag="$shared_flag "'${wl}-G'
17096 else
17097 # not using gcc
17098 if test "$host_cpu" = ia64; then
17099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17100 # chokes on -Wl,-G. The following line is correct:
17101 shared_flag='-G'
17102 else
17103 if test "$aix_use_runtimelinking" = yes; then
17104 shared_flag='${wl}-G'
17105 else
17106 shared_flag='${wl}-bM:SRE'
17111 # It seems that -bexpall does not export symbols beginning with
17112 # underscore (_), so it is better to generate a list of symbols to export.
17113 always_export_symbols_GCJ=yes
17114 if test "$aix_use_runtimelinking" = yes; then
17115 # Warning - without using the other runtime loading flags (-brtl),
17116 # -berok will link without error, but may produce a broken library.
17117 allow_undefined_flag_GCJ='-berok'
17118 # Determine the default libpath from the value encoded in an empty executable.
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h. */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17127 main ()
17131 return 0;
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
17142 ac_status=$?
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } && {
17148 test -z "$ac_c_werror_flag" ||
17149 test ! -s conftest.err
17150 } && test -s conftest$ac_exeext &&
17151 $as_test_x conftest$ac_exeext; then
17153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17155 # Check for a 64-bit object if we didn't find anything.
17156 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17157 }'`; fi
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17166 conftest$ac_exeext conftest.$ac_ext
17167 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17169 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17170 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"
17171 else
17172 if test "$host_cpu" = ia64; then
17173 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17174 allow_undefined_flag_GCJ="-z nodefs"
17175 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"
17176 else
17177 # Determine the default libpath from the value encoded in an empty executable.
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h. */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17186 main ()
17190 return 0;
17192 _ACEOF
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (ac_try="$ac_link"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest$ac_exeext &&
17210 $as_test_x conftest$ac_exeext; then
17212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17214 # Check for a 64-bit object if we didn't find anything.
17215 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17216 }'`; fi
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225 conftest$ac_exeext conftest.$ac_ext
17226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17228 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17229 # Warning - without using the other run time loading flags,
17230 # -berok will link without error, but may produce a broken library.
17231 no_undefined_flag_GCJ=' ${wl}-bernotok'
17232 allow_undefined_flag_GCJ=' ${wl}-berok'
17233 # Exported symbols can be pulled into shared objects from archives
17234 whole_archive_flag_spec_GCJ='$convenience'
17235 archive_cmds_need_lc_GCJ=yes
17236 # This is similar to how AIX traditionally builds its shared libraries.
17237 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'
17242 amigaos*)
17243 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)'
17244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17245 hardcode_minus_L_GCJ=yes
17246 # see comment about different semantics on the GNU ld section
17247 ld_shlibs_GCJ=no
17250 bsdi[45]*)
17251 export_dynamic_flag_spec_GCJ=-rdynamic
17254 cygwin* | mingw* | pw32*)
17255 # When not using gcc, we currently assume that we are using
17256 # Microsoft Visual C++.
17257 # hardcode_libdir_flag_spec is actually meaningless, as there is
17258 # no search path for DLLs.
17259 hardcode_libdir_flag_spec_GCJ=' '
17260 allow_undefined_flag_GCJ=unsupported
17261 # Tell ltmain to make .lib files, not .a files.
17262 libext=lib
17263 # Tell ltmain to make .dll files, not .so files.
17264 shrext_cmds=".dll"
17265 # FIXME: Setting linknames here is a bad hack.
17266 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267 # The linker will automatically build a .lib file if we build a DLL.
17268 old_archive_From_new_cmds_GCJ='true'
17269 # FIXME: Should let the user specify the lib program.
17270 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17272 enable_shared_with_static_runtimes_GCJ=yes
17275 darwin* | rhapsody*)
17276 case $host_os in
17277 rhapsody* | darwin1.[012])
17278 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17280 *) # Darwin 1.3 on
17281 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17283 else
17284 case ${MACOSX_DEPLOYMENT_TARGET} in
17285 10.[012])
17286 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17288 10.*)
17289 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17291 esac
17294 esac
17295 archive_cmds_need_lc_GCJ=no
17296 hardcode_direct_GCJ=no
17297 hardcode_automatic_GCJ=yes
17298 hardcode_shlibpath_var_GCJ=unsupported
17299 whole_archive_flag_spec_GCJ=''
17300 link_all_deplibs_GCJ=yes
17301 if test "$GCC" = yes ; then
17302 output_verbose_link_cmd='echo'
17303 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17306 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17307 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}'
17308 else
17309 case $cc_basename in
17310 xlc*)
17311 output_verbose_link_cmd='echo'
17312 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17315 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17316 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}'
17319 ld_shlibs_GCJ=no
17321 esac
17325 dgux*)
17326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328 hardcode_shlibpath_var_GCJ=no
17331 freebsd1*)
17332 ld_shlibs_GCJ=no
17335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336 # support. Future versions do this automatically, but an explicit c++rt0.o
17337 # does not break anything, and helps significantly (at the cost of a little
17338 # extra space).
17339 freebsd2.2*)
17340 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17342 hardcode_direct_GCJ=yes
17343 hardcode_shlibpath_var_GCJ=no
17346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17347 freebsd2*)
17348 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_direct_GCJ=yes
17350 hardcode_minus_L_GCJ=yes
17351 hardcode_shlibpath_var_GCJ=no
17354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355 freebsd* | dragonfly*)
17356 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358 hardcode_direct_GCJ=yes
17359 hardcode_shlibpath_var_GCJ=no
17362 hpux9*)
17363 if test "$GCC" = yes; then
17364 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'
17365 else
17366 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'
17368 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17369 hardcode_libdir_separator_GCJ=:
17370 hardcode_direct_GCJ=yes
17372 # hardcode_minus_L: Not really in the search PATH,
17373 # but as the default location of the library.
17374 hardcode_minus_L_GCJ=yes
17375 export_dynamic_flag_spec_GCJ='${wl}-E'
17378 hpux10*)
17379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17380 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17381 else
17382 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17384 if test "$with_gnu_ld" = no; then
17385 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17386 hardcode_libdir_separator_GCJ=:
17388 hardcode_direct_GCJ=yes
17389 export_dynamic_flag_spec_GCJ='${wl}-E'
17391 # hardcode_minus_L: Not really in the search PATH,
17392 # but as the default location of the library.
17393 hardcode_minus_L_GCJ=yes
17397 hpux11*)
17398 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17399 case $host_cpu in
17400 hppa*64*)
17401 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17403 ia64*)
17404 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17407 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17409 esac
17410 else
17411 case $host_cpu in
17412 hppa*64*)
17413 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17415 ia64*)
17416 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17419 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17421 esac
17423 if test "$with_gnu_ld" = no; then
17424 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17425 hardcode_libdir_separator_GCJ=:
17427 case $host_cpu in
17428 hppa*64*|ia64*)
17429 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17430 hardcode_direct_GCJ=no
17431 hardcode_shlibpath_var_GCJ=no
17434 hardcode_direct_GCJ=yes
17435 export_dynamic_flag_spec_GCJ='${wl}-E'
17437 # hardcode_minus_L: Not really in the search PATH,
17438 # but as the default location of the library.
17439 hardcode_minus_L_GCJ=yes
17441 esac
17445 irix5* | irix6* | nonstopux*)
17446 if test "$GCC" = yes; then
17447 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'
17448 else
17449 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'
17450 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17453 hardcode_libdir_separator_GCJ=:
17454 link_all_deplibs_GCJ=yes
17457 netbsd* | netbsdelf*-gnu)
17458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17459 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17460 else
17461 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464 hardcode_direct_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=no
17468 newsos6)
17469 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470 hardcode_direct_GCJ=yes
17471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17472 hardcode_libdir_separator_GCJ=:
17473 hardcode_shlibpath_var_GCJ=no
17476 openbsd*)
17477 hardcode_direct_GCJ=yes
17478 hardcode_shlibpath_var_GCJ=no
17479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17480 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17481 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17482 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17483 export_dynamic_flag_spec_GCJ='${wl}-E'
17484 else
17485 case $host_os in
17486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17487 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17488 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17494 esac
17498 os2*)
17499 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17500 hardcode_minus_L_GCJ=yes
17501 allow_undefined_flag_GCJ=unsupported
17502 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'
17503 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17506 osf3*)
17507 if test "$GCC" = yes; then
17508 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17509 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'
17510 else
17511 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17512 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'
17514 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17515 hardcode_libdir_separator_GCJ=:
17518 osf4* | osf5*) # as osf3* with the addition of -msym flag
17519 if test "$GCC" = yes; then
17520 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17521 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'
17522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17523 else
17524 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17525 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'
17526 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~
17527 $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'
17529 # Both c and cxx compiler support -rpath directly
17530 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17532 hardcode_libdir_separator_GCJ=:
17535 solaris*)
17536 no_undefined_flag_GCJ=' -z text'
17537 if test "$GCC" = yes; then
17538 wlarc='${wl}'
17539 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17540 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17541 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17542 else
17543 wlarc=''
17544 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17546 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17548 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17549 hardcode_shlibpath_var_GCJ=no
17550 case $host_os in
17551 solaris2.[0-5] | solaris2.[0-5].*) ;;
17553 # The compiler driver will combine linker options so we
17554 # cannot just pass the convience library names through
17555 # without $wl, iff we do not link with $LD.
17556 # Luckily, gcc supports the same syntax we need for Sun Studio.
17557 # Supported since Solaris 2.6 (maybe 2.5.1?)
17558 case $wlarc in
17560 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17562 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17563 esac ;;
17564 esac
17565 link_all_deplibs_GCJ=yes
17568 sunos4*)
17569 if test "x$host_vendor" = xsequent; then
17570 # Use $CC to link under sequent, because it throws in some extra .o
17571 # files that make .init and .fini sections work.
17572 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17573 else
17574 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17576 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17577 hardcode_direct_GCJ=yes
17578 hardcode_minus_L_GCJ=yes
17579 hardcode_shlibpath_var_GCJ=no
17582 sysv4)
17583 case $host_vendor in
17584 sni)
17585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_direct_GCJ=yes # is this really true???
17588 siemens)
17589 ## LD is ld it makes a PLAMLIB
17590 ## CC just makes a GrossModule.
17591 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17592 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17593 hardcode_direct_GCJ=no
17595 motorola)
17596 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17599 esac
17600 runpath_var='LD_RUN_PATH'
17601 hardcode_shlibpath_var_GCJ=no
17604 sysv4.3*)
17605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_shlibpath_var_GCJ=no
17607 export_dynamic_flag_spec_GCJ='-Bexport'
17610 sysv4*MP*)
17611 if test -d /usr/nec; then
17612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_shlibpath_var_GCJ=no
17614 runpath_var=LD_RUN_PATH
17615 hardcode_runpath_var=yes
17616 ld_shlibs_GCJ=yes
17620 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17621 no_undefined_flag_GCJ='${wl}-z,text'
17622 archive_cmds_need_lc_GCJ=no
17623 hardcode_shlibpath_var_GCJ=no
17624 runpath_var='LD_RUN_PATH'
17626 if test "$GCC" = yes; then
17627 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17628 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 else
17630 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17631 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635 sysv5* | sco3.2v5* | sco5v6*)
17636 # Note: We can NOT use -z defs as we might desire, because we do not
17637 # link with -lc, and that would cause any symbols used from libc to
17638 # always be unresolved, which means just about no library would
17639 # ever link correctly. If we're not using GNU ld we use -z text
17640 # though, which does catch some bad symbols but isn't as heavy-handed
17641 # as -z defs.
17642 no_undefined_flag_GCJ='${wl}-z,text'
17643 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17644 archive_cmds_need_lc_GCJ=no
17645 hardcode_shlibpath_var_GCJ=no
17646 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17647 hardcode_libdir_separator_GCJ=':'
17648 link_all_deplibs_GCJ=yes
17649 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17650 runpath_var='LD_RUN_PATH'
17652 if test "$GCC" = yes; then
17653 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17655 else
17656 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 uts4*)
17662 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17664 hardcode_shlibpath_var_GCJ=no
17668 ld_shlibs_GCJ=no
17670 esac
17673 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17674 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17675 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17678 # Do we need to explicitly link libc?
17680 case "x$archive_cmds_need_lc_GCJ" in
17681 x|xyes)
17682 # Assume -lc should be added
17683 archive_cmds_need_lc_GCJ=yes
17685 if test "$enable_shared" = yes && test "$GCC" = yes; then
17686 case $archive_cmds_GCJ in
17687 *'~'*)
17688 # FIXME: we may have to deal with multi-command sequences.
17690 '$CC '*)
17691 # Test whether the compiler implicitly links with -lc since on some
17692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17693 # to ld, don't add -lc before -lgcc.
17694 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17695 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17696 $rm conftest*
17697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700 (eval $ac_compile) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } 2>conftest.err; then
17704 soname=conftest
17705 lib=conftest
17706 libobjs=conftest.$ac_objext
17707 deplibs=
17708 wl=$lt_prog_compiler_wl_GCJ
17709 pic_flag=$lt_prog_compiler_pic_GCJ
17710 compiler_flags=-v
17711 linker_flags=-v
17712 verstring=
17713 output_objdir=.
17714 libname=conftest
17715 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17716 allow_undefined_flag_GCJ=
17717 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17718 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }
17722 then
17723 archive_cmds_need_lc_GCJ=no
17724 else
17725 archive_cmds_need_lc_GCJ=yes
17727 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17728 else
17729 cat conftest.err 1>&5
17731 $rm conftest*
17732 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17733 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17735 esac
17738 esac
17740 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17741 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17742 library_names_spec=
17743 libname_spec='lib$name'
17744 soname_spec=
17745 shrext_cmds=".so"
17746 postinstall_cmds=
17747 postuninstall_cmds=
17748 finish_cmds=
17749 finish_eval=
17750 shlibpath_var=
17751 shlibpath_overrides_runpath=unknown
17752 version_type=none
17753 dynamic_linker="$host_os ld.so"
17754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17755 if test "$GCC" = yes; then
17756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17757 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17758 # if the path contains ";" then we assume it to be the separator
17759 # otherwise default to the standard path separator (i.e. ":") - it is
17760 # assumed that no part of a normal pathname contains ";" but that should
17761 # okay in the real world where ";" in dirpaths is itself problematic.
17762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17763 else
17764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17766 else
17767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17769 need_lib_prefix=unknown
17770 hardcode_into_libs=no
17772 # when you set need_version to no, make sure it does not cause -set_version
17773 # flags to be left without arguments
17774 need_version=unknown
17776 case $host_os in
17777 aix3*)
17778 version_type=linux
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17780 shlibpath_var=LIBPATH
17782 # AIX 3 has no versioning support, so we append a major version to the name.
17783 soname_spec='${libname}${release}${shared_ext}$major'
17786 aix4* | aix5*)
17787 version_type=linux
17788 need_lib_prefix=no
17789 need_version=no
17790 hardcode_into_libs=yes
17791 if test "$host_cpu" = ia64; then
17792 # AIX 5 supports IA64
17793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 else
17796 # With GCC up to 2.95.x, collect2 would create an import file
17797 # for dependence libraries. The import file would start with
17798 # the line `#! .'. This would cause the generated library to
17799 # depend on `.', always an invalid library. This was fixed in
17800 # development snapshots of GCC prior to 3.0.
17801 case $host_os in
17802 aix4 | aix4.[01] | aix4.[01].*)
17803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17804 echo ' yes '
17805 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17807 else
17808 can_build_shared=no
17811 esac
17812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17813 # soname into executable. Probably we can add versioning support to
17814 # collect2, so additional links can be useful in future.
17815 if test "$aix_use_runtimelinking" = yes; then
17816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17817 # instead of lib<name>.a to let people know that these are not
17818 # typical AIX shared libraries.
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820 else
17821 # We preserve .a as extension for shared libraries through AIX4.2
17822 # and later when we are not doing run time linking.
17823 library_names_spec='${libname}${release}.a $libname.a'
17824 soname_spec='${libname}${release}${shared_ext}$major'
17826 shlibpath_var=LIBPATH
17830 amigaos*)
17831 library_names_spec='$libname.ixlibrary $libname.a'
17832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17833 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'
17836 beos*)
17837 library_names_spec='${libname}${shared_ext}'
17838 dynamic_linker="$host_os ld.so"
17839 shlibpath_var=LIBRARY_PATH
17842 bsdi[45]*)
17843 version_type=linux
17844 need_version=no
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17851 # the default ld.so.conf also contains /usr/contrib/lib and
17852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17853 # libtool to hard-code these into programs
17856 cygwin* | mingw* | pw32*)
17857 version_type=windows
17858 shrext_cmds=".dll"
17859 need_version=no
17860 need_lib_prefix=no
17862 case $GCC,$host_os in
17863 yes,cygwin* | yes,mingw* | yes,pw32*)
17864 library_names_spec='$libname.dll.a'
17865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17866 postinstall_cmds='base_file=`basename \${file}`~
17867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17868 dldir=$destdir/`dirname \$dlpath`~
17869 test -d \$dldir || mkdir -p \$dldir~
17870 $install_prog $dir/$dlname \$dldir/$dlname~
17871 chmod a+x \$dldir/$dlname'
17872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17873 dlpath=$dir/\$dldll~
17874 $rm \$dlpath'
17875 shlibpath_overrides_runpath=yes
17877 case $host_os in
17878 cygwin*)
17879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17881 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17883 mingw*)
17884 # MinGW DLLs use traditional 'lib' prefix
17885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17888 # It is most probably a Windows format PATH printed by
17889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17890 # path with ; separators, and with drive letters. We can handle the
17891 # drive letters (cygwin fileutils understands them), so leave them,
17892 # especially as we might pass files found there to a mingw objdump,
17893 # which wouldn't understand a cygwinified path. Ahh.
17894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17895 else
17896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17899 pw32*)
17900 # pw32 DLLs use 'pw' prefix rather than 'lib'
17901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17903 esac
17907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17909 esac
17910 dynamic_linker='Win32 ld.exe'
17911 # FIXME: first we should search . and the directory the executable is in
17912 shlibpath_var=PATH
17915 darwin* | rhapsody*)
17916 dynamic_linker="$host_os dyld"
17917 version_type=darwin
17918 need_lib_prefix=no
17919 need_version=no
17920 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17921 soname_spec='${libname}${release}${major}$shared_ext'
17922 shlibpath_overrides_runpath=yes
17923 shlibpath_var=DYLD_LIBRARY_PATH
17924 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17926 if test "$GCC" = yes; then
17927 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17928 else
17929 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17934 dgux*)
17935 version_type=linux
17936 need_lib_prefix=no
17937 need_version=no
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17939 soname_spec='${libname}${release}${shared_ext}$major'
17940 shlibpath_var=LD_LIBRARY_PATH
17943 freebsd1*)
17944 dynamic_linker=no
17947 freebsd* | dragonfly*)
17948 # DragonFly does not have aout. When/if they implement a new
17949 # versioning mechanism, adjust this.
17950 if test -x /usr/bin/objformat; then
17951 objformat=`/usr/bin/objformat`
17952 else
17953 case $host_os in
17954 freebsd[123]*) objformat=aout ;;
17955 *) objformat=elf ;;
17956 esac
17958 version_type=freebsd-$objformat
17959 case $version_type in
17960 freebsd-elf*)
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17962 need_version=no
17963 need_lib_prefix=no
17965 freebsd-*)
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17967 need_version=yes
17969 esac
17970 shlibpath_var=LD_LIBRARY_PATH
17971 case $host_os in
17972 freebsd2*)
17973 shlibpath_overrides_runpath=yes
17975 freebsd3.[01]* | freebsdelf3.[01]*)
17976 shlibpath_overrides_runpath=yes
17977 hardcode_into_libs=yes
17979 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17980 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17981 shlibpath_overrides_runpath=no
17982 hardcode_into_libs=yes
17984 freebsd*) # from 4.6 on
17985 shlibpath_overrides_runpath=yes
17986 hardcode_into_libs=yes
17988 esac
17991 gnu*)
17992 version_type=linux
17993 need_lib_prefix=no
17994 need_version=no
17995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17996 soname_spec='${libname}${release}${shared_ext}$major'
17997 shlibpath_var=LD_LIBRARY_PATH
17998 hardcode_into_libs=yes
18001 hpux9* | hpux10* | hpux11*)
18002 # Give a soname corresponding to the major version so that dld.sl refuses to
18003 # link against other versions.
18004 version_type=sunos
18005 need_lib_prefix=no
18006 need_version=no
18007 case $host_cpu in
18008 ia64*)
18009 shrext_cmds='.so'
18010 hardcode_into_libs=yes
18011 dynamic_linker="$host_os dld.so"
18012 shlibpath_var=LD_LIBRARY_PATH
18013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 if test "X$HPUX_IA64_MODE" = X32; then
18017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18018 else
18019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18023 hppa*64*)
18024 shrext_cmds='.sl'
18025 hardcode_into_libs=yes
18026 dynamic_linker="$host_os dld.sl"
18027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18035 shrext_cmds='.sl'
18036 dynamic_linker="$host_os dld.sl"
18037 shlibpath_var=SHLIB_PATH
18038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040 soname_spec='${libname}${release}${shared_ext}$major'
18042 esac
18043 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18044 postinstall_cmds='chmod 555 $lib'
18047 interix3*)
18048 version_type=linux
18049 need_lib_prefix=no
18050 need_version=no
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=no
18056 hardcode_into_libs=yes
18059 irix5* | irix6* | nonstopux*)
18060 case $host_os in
18061 nonstopux*) version_type=nonstopux ;;
18063 if test "$lt_cv_prog_gnu_ld" = yes; then
18064 version_type=linux
18065 else
18066 version_type=irix
18067 fi ;;
18068 esac
18069 need_lib_prefix=no
18070 need_version=no
18071 soname_spec='${libname}${release}${shared_ext}$major'
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18073 case $host_os in
18074 irix5* | nonstopux*)
18075 libsuff= shlibsuff=
18078 case $LD in # libtool.m4 will add one of these switches to LD
18079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18080 libsuff= shlibsuff= libmagic=32-bit;;
18081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18082 libsuff=32 shlibsuff=N32 libmagic=N32;;
18083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18085 *) libsuff= shlibsuff= libmagic=never-match;;
18086 esac
18088 esac
18089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18090 shlibpath_overrides_runpath=no
18091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18093 hardcode_into_libs=yes
18096 # No shared lib support for Linux oldld, aout, or coff.
18097 linux*oldld* | linux*aout* | linux*coff*)
18098 dynamic_linker=no
18101 # This must be Linux ELF.
18102 linux* | k*bsd*-gnu)
18103 version_type=linux
18104 need_lib_prefix=no
18105 need_version=no
18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107 soname_spec='${libname}${release}${shared_ext}$major'
18108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18109 shlibpath_var=LD_LIBRARY_PATH
18110 shlibpath_overrides_runpath=no
18111 # This implies no fast_install, which is unacceptable.
18112 # Some rework will be needed to allow for fast_install
18113 # before this can be enabled.
18114 hardcode_into_libs=yes
18116 # Append ld.so.conf contents to the search path
18117 if test -f /etc/ld.so.conf; then
18118 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18122 # We used to test for /lib/ld.so.1 and disable shared libraries on
18123 # powerpc, because MkLinux only supported shared libraries with the
18124 # GNU dynamic linker. Since this was broken with cross compilers,
18125 # most powerpc-linux boxes support dynamic linking these days and
18126 # people can always --disable-shared, the test was removed, and we
18127 # assume the GNU/Linux dynamic linker is in use.
18128 dynamic_linker='GNU/Linux ld.so'
18131 netbsdelf*-gnu)
18132 version_type=linux
18133 need_lib_prefix=no
18134 need_version=no
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=no
18139 hardcode_into_libs=yes
18140 dynamic_linker='NetBSD ld.elf_so'
18143 netbsd*)
18144 version_type=sunos
18145 need_lib_prefix=no
18146 need_version=no
18147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18150 dynamic_linker='NetBSD (a.out) ld.so'
18151 else
18152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18153 soname_spec='${libname}${release}${shared_ext}$major'
18154 dynamic_linker='NetBSD ld.elf_so'
18156 shlibpath_var=LD_LIBRARY_PATH
18157 shlibpath_overrides_runpath=yes
18158 hardcode_into_libs=yes
18161 newsos6)
18162 version_type=linux
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164 shlibpath_var=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath=yes
18168 nto-qnx*)
18169 version_type=linux
18170 need_lib_prefix=no
18171 need_version=no
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes
18178 openbsd*)
18179 version_type=sunos
18180 sys_lib_dlsearch_path_spec="/usr/lib"
18181 need_lib_prefix=no
18182 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18183 case $host_os in
18184 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18185 *) need_version=no ;;
18186 esac
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18189 shlibpath_var=LD_LIBRARY_PATH
18190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18191 case $host_os in
18192 openbsd2.[89] | openbsd2.[89].*)
18193 shlibpath_overrides_runpath=no
18196 shlibpath_overrides_runpath=yes
18198 esac
18199 else
18200 shlibpath_overrides_runpath=yes
18204 os2*)
18205 libname_spec='$name'
18206 shrext_cmds=".dll"
18207 need_lib_prefix=no
18208 library_names_spec='$libname${shared_ext} $libname.a'
18209 dynamic_linker='OS/2 ld.exe'
18210 shlibpath_var=LIBPATH
18213 osf3* | osf4* | osf5*)
18214 version_type=osf
18215 need_lib_prefix=no
18216 need_version=no
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18221 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18224 solaris*)
18225 version_type=linux
18226 need_lib_prefix=no
18227 need_version=no
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18232 hardcode_into_libs=yes
18233 # ldd complains unless libraries are executable
18234 postinstall_cmds='chmod +x $lib'
18237 sunos4*)
18238 version_type=sunos
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 shlibpath_overrides_runpath=yes
18243 if test "$with_gnu_ld" = yes; then
18244 need_lib_prefix=no
18246 need_version=yes
18249 sysv4 | sysv4.3*)
18250 version_type=linux
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 case $host_vendor in
18255 sni)
18256 shlibpath_overrides_runpath=no
18257 need_lib_prefix=no
18258 export_dynamic_flag_spec='${wl}-Blargedynsym'
18259 runpath_var=LD_RUN_PATH
18261 siemens)
18262 need_lib_prefix=no
18264 motorola)
18265 need_lib_prefix=no
18266 need_version=no
18267 shlibpath_overrides_runpath=no
18268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18270 esac
18273 sysv4*MP*)
18274 if test -d /usr/nec ;then
18275 version_type=linux
18276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18277 soname_spec='$libname${shared_ext}.$major'
18278 shlibpath_var=LD_LIBRARY_PATH
18282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18283 version_type=freebsd-elf
18284 need_lib_prefix=no
18285 need_version=no
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287 soname_spec='${libname}${release}${shared_ext}$major'
18288 shlibpath_var=LD_LIBRARY_PATH
18289 hardcode_into_libs=yes
18290 if test "$with_gnu_ld" = yes; then
18291 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18292 shlibpath_overrides_runpath=no
18293 else
18294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18295 shlibpath_overrides_runpath=yes
18296 case $host_os in
18297 sco3.2v5*)
18298 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18300 esac
18302 sys_lib_dlsearch_path_spec='/usr/lib'
18305 uts4*)
18306 version_type=linux
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 shlibpath_var=LD_LIBRARY_PATH
18313 dynamic_linker=no
18315 esac
18316 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18317 echo "${ECHO_T}$dynamic_linker" >&6; }
18318 test "$dynamic_linker" = no && can_build_shared=no
18320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18321 if test "$GCC" = yes; then
18322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18325 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18327 hardcode_action_GCJ=
18328 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18329 test -n "$runpath_var_GCJ" || \
18330 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18332 # We can hardcode non-existant directories.
18333 if test "$hardcode_direct_GCJ" != no &&
18334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18335 # have to relink, otherwise we might link with an installed library
18336 # when we should be linking with a yet-to-be-installed one
18337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18338 test "$hardcode_minus_L_GCJ" != no; then
18339 # Linking always hardcodes the temporary library directory.
18340 hardcode_action_GCJ=relink
18341 else
18342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18343 hardcode_action_GCJ=immediate
18345 else
18346 # We cannot hardcode anything, or else we can only hardcode existing
18347 # directories.
18348 hardcode_action_GCJ=unsupported
18350 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18351 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18353 if test "$hardcode_action_GCJ" = relink; then
18354 # Fast installation is not supported
18355 enable_fast_install=no
18356 elif test "$shlibpath_overrides_runpath" = yes ||
18357 test "$enable_shared" = no; then
18358 # Fast installation is not necessary
18359 enable_fast_install=needless
18363 # The else clause should only fire when bootstrapping the
18364 # libtool distribution, otherwise you forgot to ship ltmain.sh
18365 # with your package, and you will get complaints that there are
18366 # no rules to generate ltmain.sh.
18367 if test -f "$ltmain"; then
18368 # See if we are running on zsh, and set the options which allow our commands through
18369 # without removal of \ escapes.
18370 if test -n "${ZSH_VERSION+set}" ; then
18371 setopt NO_GLOB_SUBST
18373 # Now quote all the things that may contain metacharacters while being
18374 # careful not to overquote the AC_SUBSTed values. We take copies of the
18375 # variables and quote the copies for generation of the libtool script.
18376 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18377 SED SHELL STRIP \
18378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18380 deplibs_check_method reload_flag reload_cmds need_locks \
18381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18382 lt_cv_sys_global_symbol_to_c_name_address \
18383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18384 old_postinstall_cmds old_postuninstall_cmds \
18385 compiler_GCJ \
18386 CC_GCJ \
18387 LD_GCJ \
18388 lt_prog_compiler_wl_GCJ \
18389 lt_prog_compiler_pic_GCJ \
18390 lt_prog_compiler_static_GCJ \
18391 lt_prog_compiler_no_builtin_flag_GCJ \
18392 export_dynamic_flag_spec_GCJ \
18393 thread_safe_flag_spec_GCJ \
18394 whole_archive_flag_spec_GCJ \
18395 enable_shared_with_static_runtimes_GCJ \
18396 old_archive_cmds_GCJ \
18397 old_archive_from_new_cmds_GCJ \
18398 predep_objects_GCJ \
18399 postdep_objects_GCJ \
18400 predeps_GCJ \
18401 postdeps_GCJ \
18402 compiler_lib_search_path_GCJ \
18403 archive_cmds_GCJ \
18404 archive_expsym_cmds_GCJ \
18405 postinstall_cmds_GCJ \
18406 postuninstall_cmds_GCJ \
18407 old_archive_from_expsyms_cmds_GCJ \
18408 allow_undefined_flag_GCJ \
18409 no_undefined_flag_GCJ \
18410 export_symbols_cmds_GCJ \
18411 hardcode_libdir_flag_spec_GCJ \
18412 hardcode_libdir_flag_spec_ld_GCJ \
18413 hardcode_libdir_separator_GCJ \
18414 hardcode_automatic_GCJ \
18415 module_cmds_GCJ \
18416 module_expsym_cmds_GCJ \
18417 lt_cv_prog_compiler_c_o_GCJ \
18418 exclude_expsyms_GCJ \
18419 include_expsyms_GCJ; do
18421 case $var in
18422 old_archive_cmds_GCJ | \
18423 old_archive_from_new_cmds_GCJ | \
18424 archive_cmds_GCJ | \
18425 archive_expsym_cmds_GCJ | \
18426 module_cmds_GCJ | \
18427 module_expsym_cmds_GCJ | \
18428 old_archive_from_expsyms_cmds_GCJ | \
18429 export_symbols_cmds_GCJ | \
18430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18431 postinstall_cmds | postuninstall_cmds | \
18432 old_postinstall_cmds | old_postuninstall_cmds | \
18433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18434 # Double-quote double-evaled strings.
18435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18440 esac
18441 done
18443 case $lt_echo in
18444 *'\$0 --fallback-echo"')
18445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18447 esac
18449 cfgfile="$ofile"
18451 cat <<__EOF__ >> "$cfgfile"
18452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18456 # Shell to use when invoking shell scripts.
18457 SHELL=$lt_SHELL
18459 # Whether or not to build shared libraries.
18460 build_libtool_libs=$enable_shared
18462 # Whether or not to build static libraries.
18463 build_old_libs=$enable_static
18465 # Whether or not to add -lc for building shared libraries.
18466 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18468 # Whether or not to disallow shared libs when runtime libs are static
18469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18471 # Whether or not to optimize for fast installation.
18472 fast_install=$enable_fast_install
18474 # The host system.
18475 host_alias=$host_alias
18476 host=$host
18477 host_os=$host_os
18479 # The build system.
18480 build_alias=$build_alias
18481 build=$build
18482 build_os=$build_os
18484 # An echo program that does not interpret backslashes.
18485 echo=$lt_echo
18487 # The archiver.
18488 AR=$lt_AR
18489 AR_FLAGS=$lt_AR_FLAGS
18491 # A C compiler.
18492 LTCC=$lt_LTCC
18494 # LTCC compiler flags.
18495 LTCFLAGS=$lt_LTCFLAGS
18497 # A language-specific compiler.
18498 CC=$lt_compiler_GCJ
18500 # Is the compiler the GNU C compiler?
18501 with_gcc=$GCC_GCJ
18503 # An ERE matcher.
18504 EGREP=$lt_EGREP
18506 # The linker used to build libraries.
18507 LD=$lt_LD_GCJ
18509 # Whether we need hard or soft links.
18510 LN_S=$lt_LN_S
18512 # A BSD-compatible nm program.
18513 NM=$lt_NM
18515 # A symbol stripping program
18516 STRIP=$lt_STRIP
18518 # Used to examine libraries when file_magic_cmd begins "file"
18519 MAGIC_CMD=$MAGIC_CMD
18521 # Used on cygwin: DLL creation program.
18522 DLLTOOL="$DLLTOOL"
18524 # Used on cygwin: object dumper.
18525 OBJDUMP="$OBJDUMP"
18527 # Used on cygwin: assembler.
18528 AS="$AS"
18530 # The name of the directory that contains temporary libtool files.
18531 objdir=$objdir
18533 # How to create reloadable object files.
18534 reload_flag=$lt_reload_flag
18535 reload_cmds=$lt_reload_cmds
18537 # How to pass a linker flag through the compiler.
18538 wl=$lt_lt_prog_compiler_wl_GCJ
18540 # Object file suffix (normally "o").
18541 objext="$ac_objext"
18543 # Old archive suffix (normally "a").
18544 libext="$libext"
18546 # Shared library suffix (normally ".so").
18547 shrext_cmds='$shrext_cmds'
18549 # Executable file suffix (normally "").
18550 exeext="$exeext"
18552 # Additional compiler flags for building library objects.
18553 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18554 pic_mode=$pic_mode
18556 # What is the maximum length of a command?
18557 max_cmd_len=$lt_cv_sys_max_cmd_len
18559 # Does compiler simultaneously support -c and -o options?
18560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18562 # Must we lock files when doing compilation?
18563 need_locks=$lt_need_locks
18565 # Do we need the lib prefix for modules?
18566 need_lib_prefix=$need_lib_prefix
18568 # Do we need a version for libraries?
18569 need_version=$need_version
18571 # Whether dlopen is supported.
18572 dlopen_support=$enable_dlopen
18574 # Whether dlopen of programs is supported.
18575 dlopen_self=$enable_dlopen_self
18577 # Whether dlopen of statically linked programs is supported.
18578 dlopen_self_static=$enable_dlopen_self_static
18580 # Compiler flag to prevent dynamic linking.
18581 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18583 # Compiler flag to turn off builtin functions.
18584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18586 # Compiler flag to allow reflexive dlopens.
18587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18589 # Compiler flag to generate shared objects directly from archives.
18590 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18592 # Compiler flag to generate thread-safe objects.
18593 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18595 # Library versioning type.
18596 version_type=$version_type
18598 # Format of library name prefix.
18599 libname_spec=$lt_libname_spec
18601 # List of archive names. First name is the real one, the rest are links.
18602 # The last name is the one that the linker finds with -lNAME.
18603 library_names_spec=$lt_library_names_spec
18605 # The coded name of the library, if different from the real name.
18606 soname_spec=$lt_soname_spec
18608 # Commands used to build and install an old-style archive.
18609 RANLIB=$lt_RANLIB
18610 old_archive_cmds=$lt_old_archive_cmds_GCJ
18611 old_postinstall_cmds=$lt_old_postinstall_cmds
18612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18614 # Create an old-style archive from a shared archive.
18615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18617 # Create a temporary old-style archive to link instead of a shared archive.
18618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18620 # Commands used to build and install a shared archive.
18621 archive_cmds=$lt_archive_cmds_GCJ
18622 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18623 postinstall_cmds=$lt_postinstall_cmds
18624 postuninstall_cmds=$lt_postuninstall_cmds
18626 # Commands used to build a loadable module (assumed same as above if empty)
18627 module_cmds=$lt_module_cmds_GCJ
18628 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18630 # Commands to strip libraries.
18631 old_striplib=$lt_old_striplib
18632 striplib=$lt_striplib
18634 # Dependencies to place before the objects being linked to create a
18635 # shared library.
18636 predep_objects=$lt_predep_objects_GCJ
18638 # Dependencies to place after the objects being linked to create a
18639 # shared library.
18640 postdep_objects=$lt_postdep_objects_GCJ
18642 # Dependencies to place before the objects being linked to create a
18643 # shared library.
18644 predeps=$lt_predeps_GCJ
18646 # Dependencies to place after the objects being linked to create a
18647 # shared library.
18648 postdeps=$lt_postdeps_GCJ
18650 # The library search path used internally by the compiler when linking
18651 # a shared library.
18652 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18654 # Method to check whether dependent libraries are shared objects.
18655 deplibs_check_method=$lt_deplibs_check_method
18657 # Command to use when deplibs_check_method == file_magic.
18658 file_magic_cmd=$lt_file_magic_cmd
18660 # Flag that allows shared libraries with undefined symbols to be built.
18661 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18663 # Flag that forces no undefined symbols.
18664 no_undefined_flag=$lt_no_undefined_flag_GCJ
18666 # Commands used to finish a libtool library installation in a directory.
18667 finish_cmds=$lt_finish_cmds
18669 # Same as above, but a single script fragment to be evaled but not shown.
18670 finish_eval=$lt_finish_eval
18672 # Take the output of nm and produce a listing of raw symbols and C names.
18673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18675 # Transform the output of nm in a proper C declaration
18676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18678 # Transform the output of nm in a C name address pair
18679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18681 # This is the shared library runtime path variable.
18682 runpath_var=$runpath_var
18684 # This is the shared library path variable.
18685 shlibpath_var=$shlibpath_var
18687 # Is shlibpath searched before the hard-coded library search path?
18688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18690 # How to hardcode a shared library path into an executable.
18691 hardcode_action=$hardcode_action_GCJ
18693 # Whether we should hardcode library paths into libraries.
18694 hardcode_into_libs=$hardcode_into_libs
18696 # Flag to hardcode \$libdir into a binary during linking.
18697 # This must work even if \$libdir does not exist.
18698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18700 # If ld is used when linking, flag to hardcode \$libdir into
18701 # a binary during linking. This must work even if \$libdir does
18702 # not exist.
18703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18705 # Whether we need a single -rpath flag with a separated argument.
18706 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18709 # resulting binary.
18710 hardcode_direct=$hardcode_direct_GCJ
18712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18713 # resulting binary.
18714 hardcode_minus_L=$hardcode_minus_L_GCJ
18716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18717 # the resulting binary.
18718 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18720 # Set to yes if building a shared library automatically hardcodes DIR into the library
18721 # and all subsequent libraries and executables linked against it.
18722 hardcode_automatic=$hardcode_automatic_GCJ
18724 # Variables whose values should be saved in libtool wrapper scripts and
18725 # restored at relink time.
18726 variables_saved_for_relink="$variables_saved_for_relink"
18728 # Whether libtool must link a program against all its dependency libraries.
18729 link_all_deplibs=$link_all_deplibs_GCJ
18731 # Compile-time system search path for libraries
18732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18734 # Run-time system search path for libraries
18735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18737 # Fix the shell variable \$srcfile for the compiler.
18738 fix_srcfile_path="$fix_srcfile_path_GCJ"
18740 # Set to yes if exported symbols are required.
18741 always_export_symbols=$always_export_symbols_GCJ
18743 # The commands to list exported symbols.
18744 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18746 # The commands to extract the exported symbol list from a shared archive.
18747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18749 # Symbols that should not be listed in the preloaded symbols.
18750 exclude_expsyms=$lt_exclude_expsyms_GCJ
18752 # Symbols that must always be exported.
18753 include_expsyms=$lt_include_expsyms_GCJ
18755 # ### END LIBTOOL TAG CONFIG: $tagname
18757 __EOF__
18760 else
18761 # If there is no Makefile yet, we rely on a make rule to execute
18762 # `config.status --recheck' to rerun these tests and create the
18763 # libtool script then.
18764 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18765 if test -f "$ltmain_in"; then
18766 test -f Makefile && make "$ltmain"
18771 ac_ext=c
18772 ac_cpp='$CPP $CPPFLAGS'
18773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18777 CC="$lt_save_CC"
18779 else
18780 tagname=""
18787 # Source file extension for RC test sources.
18788 ac_ext=rc
18790 # Object file extension for compiled RC test sources.
18791 objext=o
18792 objext_RC=$objext
18794 # Code to be used in simple compile tests
18795 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18797 # Code to be used in simple link tests
18798 lt_simple_link_test_code="$lt_simple_compile_test_code"
18800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18802 # If no C compiler was specified, use CC.
18803 LTCC=${LTCC-"$CC"}
18805 # If no C compiler flags were specified, use CFLAGS.
18806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18808 # Allow CC to be a program name with arguments.
18809 compiler=$CC
18812 # save warnings/boilerplate of simple test code
18813 ac_outfile=conftest.$ac_objext
18814 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18816 _lt_compiler_boilerplate=`cat conftest.err`
18817 $rm conftest*
18819 ac_outfile=conftest.$ac_objext
18820 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18822 _lt_linker_boilerplate=`cat conftest.err`
18823 $rm conftest*
18826 # Allow CC to be a program name with arguments.
18827 lt_save_CC="$CC"
18828 CC=${RC-"windres"}
18829 compiler=$CC
18830 compiler_RC=$CC
18831 for cc_temp in $compiler""; do
18832 case $cc_temp in
18833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18835 \-*) ;;
18836 *) break;;
18837 esac
18838 done
18839 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18841 lt_cv_prog_compiler_c_o_RC=yes
18843 # The else clause should only fire when bootstrapping the
18844 # libtool distribution, otherwise you forgot to ship ltmain.sh
18845 # with your package, and you will get complaints that there are
18846 # no rules to generate ltmain.sh.
18847 if test -f "$ltmain"; then
18848 # See if we are running on zsh, and set the options which allow our commands through
18849 # without removal of \ escapes.
18850 if test -n "${ZSH_VERSION+set}" ; then
18851 setopt NO_GLOB_SUBST
18853 # Now quote all the things that may contain metacharacters while being
18854 # careful not to overquote the AC_SUBSTed values. We take copies of the
18855 # variables and quote the copies for generation of the libtool script.
18856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18857 SED SHELL STRIP \
18858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18860 deplibs_check_method reload_flag reload_cmds need_locks \
18861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18862 lt_cv_sys_global_symbol_to_c_name_address \
18863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18864 old_postinstall_cmds old_postuninstall_cmds \
18865 compiler_RC \
18866 CC_RC \
18867 LD_RC \
18868 lt_prog_compiler_wl_RC \
18869 lt_prog_compiler_pic_RC \
18870 lt_prog_compiler_static_RC \
18871 lt_prog_compiler_no_builtin_flag_RC \
18872 export_dynamic_flag_spec_RC \
18873 thread_safe_flag_spec_RC \
18874 whole_archive_flag_spec_RC \
18875 enable_shared_with_static_runtimes_RC \
18876 old_archive_cmds_RC \
18877 old_archive_from_new_cmds_RC \
18878 predep_objects_RC \
18879 postdep_objects_RC \
18880 predeps_RC \
18881 postdeps_RC \
18882 compiler_lib_search_path_RC \
18883 archive_cmds_RC \
18884 archive_expsym_cmds_RC \
18885 postinstall_cmds_RC \
18886 postuninstall_cmds_RC \
18887 old_archive_from_expsyms_cmds_RC \
18888 allow_undefined_flag_RC \
18889 no_undefined_flag_RC \
18890 export_symbols_cmds_RC \
18891 hardcode_libdir_flag_spec_RC \
18892 hardcode_libdir_flag_spec_ld_RC \
18893 hardcode_libdir_separator_RC \
18894 hardcode_automatic_RC \
18895 module_cmds_RC \
18896 module_expsym_cmds_RC \
18897 lt_cv_prog_compiler_c_o_RC \
18898 exclude_expsyms_RC \
18899 include_expsyms_RC; do
18901 case $var in
18902 old_archive_cmds_RC | \
18903 old_archive_from_new_cmds_RC | \
18904 archive_cmds_RC | \
18905 archive_expsym_cmds_RC | \
18906 module_cmds_RC | \
18907 module_expsym_cmds_RC | \
18908 old_archive_from_expsyms_cmds_RC | \
18909 export_symbols_cmds_RC | \
18910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18911 postinstall_cmds | postuninstall_cmds | \
18912 old_postinstall_cmds | old_postuninstall_cmds | \
18913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18914 # Double-quote double-evaled strings.
18915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18920 esac
18921 done
18923 case $lt_echo in
18924 *'\$0 --fallback-echo"')
18925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18927 esac
18929 cfgfile="$ofile"
18931 cat <<__EOF__ >> "$cfgfile"
18932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18936 # Shell to use when invoking shell scripts.
18937 SHELL=$lt_SHELL
18939 # Whether or not to build shared libraries.
18940 build_libtool_libs=$enable_shared
18942 # Whether or not to build static libraries.
18943 build_old_libs=$enable_static
18945 # Whether or not to add -lc for building shared libraries.
18946 build_libtool_need_lc=$archive_cmds_need_lc_RC
18948 # Whether or not to disallow shared libs when runtime libs are static
18949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18951 # Whether or not to optimize for fast installation.
18952 fast_install=$enable_fast_install
18954 # The host system.
18955 host_alias=$host_alias
18956 host=$host
18957 host_os=$host_os
18959 # The build system.
18960 build_alias=$build_alias
18961 build=$build
18962 build_os=$build_os
18964 # An echo program that does not interpret backslashes.
18965 echo=$lt_echo
18967 # The archiver.
18968 AR=$lt_AR
18969 AR_FLAGS=$lt_AR_FLAGS
18971 # A C compiler.
18972 LTCC=$lt_LTCC
18974 # LTCC compiler flags.
18975 LTCFLAGS=$lt_LTCFLAGS
18977 # A language-specific compiler.
18978 CC=$lt_compiler_RC
18980 # Is the compiler the GNU C compiler?
18981 with_gcc=$GCC_RC
18983 # An ERE matcher.
18984 EGREP=$lt_EGREP
18986 # The linker used to build libraries.
18987 LD=$lt_LD_RC
18989 # Whether we need hard or soft links.
18990 LN_S=$lt_LN_S
18992 # A BSD-compatible nm program.
18993 NM=$lt_NM
18995 # A symbol stripping program
18996 STRIP=$lt_STRIP
18998 # Used to examine libraries when file_magic_cmd begins "file"
18999 MAGIC_CMD=$MAGIC_CMD
19001 # Used on cygwin: DLL creation program.
19002 DLLTOOL="$DLLTOOL"
19004 # Used on cygwin: object dumper.
19005 OBJDUMP="$OBJDUMP"
19007 # Used on cygwin: assembler.
19008 AS="$AS"
19010 # The name of the directory that contains temporary libtool files.
19011 objdir=$objdir
19013 # How to create reloadable object files.
19014 reload_flag=$lt_reload_flag
19015 reload_cmds=$lt_reload_cmds
19017 # How to pass a linker flag through the compiler.
19018 wl=$lt_lt_prog_compiler_wl_RC
19020 # Object file suffix (normally "o").
19021 objext="$ac_objext"
19023 # Old archive suffix (normally "a").
19024 libext="$libext"
19026 # Shared library suffix (normally ".so").
19027 shrext_cmds='$shrext_cmds'
19029 # Executable file suffix (normally "").
19030 exeext="$exeext"
19032 # Additional compiler flags for building library objects.
19033 pic_flag=$lt_lt_prog_compiler_pic_RC
19034 pic_mode=$pic_mode
19036 # What is the maximum length of a command?
19037 max_cmd_len=$lt_cv_sys_max_cmd_len
19039 # Does compiler simultaneously support -c and -o options?
19040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19042 # Must we lock files when doing compilation?
19043 need_locks=$lt_need_locks
19045 # Do we need the lib prefix for modules?
19046 need_lib_prefix=$need_lib_prefix
19048 # Do we need a version for libraries?
19049 need_version=$need_version
19051 # Whether dlopen is supported.
19052 dlopen_support=$enable_dlopen
19054 # Whether dlopen of programs is supported.
19055 dlopen_self=$enable_dlopen_self
19057 # Whether dlopen of statically linked programs is supported.
19058 dlopen_self_static=$enable_dlopen_self_static
19060 # Compiler flag to prevent dynamic linking.
19061 link_static_flag=$lt_lt_prog_compiler_static_RC
19063 # Compiler flag to turn off builtin functions.
19064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19066 # Compiler flag to allow reflexive dlopens.
19067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19069 # Compiler flag to generate shared objects directly from archives.
19070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19072 # Compiler flag to generate thread-safe objects.
19073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19075 # Library versioning type.
19076 version_type=$version_type
19078 # Format of library name prefix.
19079 libname_spec=$lt_libname_spec
19081 # List of archive names. First name is the real one, the rest are links.
19082 # The last name is the one that the linker finds with -lNAME.
19083 library_names_spec=$lt_library_names_spec
19085 # The coded name of the library, if different from the real name.
19086 soname_spec=$lt_soname_spec
19088 # Commands used to build and install an old-style archive.
19089 RANLIB=$lt_RANLIB
19090 old_archive_cmds=$lt_old_archive_cmds_RC
19091 old_postinstall_cmds=$lt_old_postinstall_cmds
19092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19094 # Create an old-style archive from a shared archive.
19095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19097 # Create a temporary old-style archive to link instead of a shared archive.
19098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19100 # Commands used to build and install a shared archive.
19101 archive_cmds=$lt_archive_cmds_RC
19102 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19103 postinstall_cmds=$lt_postinstall_cmds
19104 postuninstall_cmds=$lt_postuninstall_cmds
19106 # Commands used to build a loadable module (assumed same as above if empty)
19107 module_cmds=$lt_module_cmds_RC
19108 module_expsym_cmds=$lt_module_expsym_cmds_RC
19110 # Commands to strip libraries.
19111 old_striplib=$lt_old_striplib
19112 striplib=$lt_striplib
19114 # Dependencies to place before the objects being linked to create a
19115 # shared library.
19116 predep_objects=$lt_predep_objects_RC
19118 # Dependencies to place after the objects being linked to create a
19119 # shared library.
19120 postdep_objects=$lt_postdep_objects_RC
19122 # Dependencies to place before the objects being linked to create a
19123 # shared library.
19124 predeps=$lt_predeps_RC
19126 # Dependencies to place after the objects being linked to create a
19127 # shared library.
19128 postdeps=$lt_postdeps_RC
19130 # The library search path used internally by the compiler when linking
19131 # a shared library.
19132 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19134 # Method to check whether dependent libraries are shared objects.
19135 deplibs_check_method=$lt_deplibs_check_method
19137 # Command to use when deplibs_check_method == file_magic.
19138 file_magic_cmd=$lt_file_magic_cmd
19140 # Flag that allows shared libraries with undefined symbols to be built.
19141 allow_undefined_flag=$lt_allow_undefined_flag_RC
19143 # Flag that forces no undefined symbols.
19144 no_undefined_flag=$lt_no_undefined_flag_RC
19146 # Commands used to finish a libtool library installation in a directory.
19147 finish_cmds=$lt_finish_cmds
19149 # Same as above, but a single script fragment to be evaled but not shown.
19150 finish_eval=$lt_finish_eval
19152 # Take the output of nm and produce a listing of raw symbols and C names.
19153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155 # Transform the output of nm in a proper C declaration
19156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158 # Transform the output of nm in a C name address pair
19159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161 # This is the shared library runtime path variable.
19162 runpath_var=$runpath_var
19164 # This is the shared library path variable.
19165 shlibpath_var=$shlibpath_var
19167 # Is shlibpath searched before the hard-coded library search path?
19168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170 # How to hardcode a shared library path into an executable.
19171 hardcode_action=$hardcode_action_RC
19173 # Whether we should hardcode library paths into libraries.
19174 hardcode_into_libs=$hardcode_into_libs
19176 # Flag to hardcode \$libdir into a binary during linking.
19177 # This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19180 # If ld is used when linking, flag to hardcode \$libdir into
19181 # a binary during linking. This must work even if \$libdir does
19182 # not exist.
19183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19185 # Whether we need a single -rpath flag with a separated argument.
19186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_direct=$hardcode_direct_RC
19192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193 # resulting binary.
19194 hardcode_minus_L=$hardcode_minus_L_RC
19196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197 # the resulting binary.
19198 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19200 # Set to yes if building a shared library automatically hardcodes DIR into the library
19201 # and all subsequent libraries and executables linked against it.
19202 hardcode_automatic=$hardcode_automatic_RC
19204 # Variables whose values should be saved in libtool wrapper scripts and
19205 # restored at relink time.
19206 variables_saved_for_relink="$variables_saved_for_relink"
19208 # Whether libtool must link a program against all its dependency libraries.
19209 link_all_deplibs=$link_all_deplibs_RC
19211 # Compile-time system search path for libraries
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214 # Run-time system search path for libraries
19215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217 # Fix the shell variable \$srcfile for the compiler.
19218 fix_srcfile_path="$fix_srcfile_path_RC"
19220 # Set to yes if exported symbols are required.
19221 always_export_symbols=$always_export_symbols_RC
19223 # The commands to list exported symbols.
19224 export_symbols_cmds=$lt_export_symbols_cmds_RC
19226 # The commands to extract the exported symbol list from a shared archive.
19227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229 # Symbols that should not be listed in the preloaded symbols.
19230 exclude_expsyms=$lt_exclude_expsyms_RC
19232 # Symbols that must always be exported.
19233 include_expsyms=$lt_include_expsyms_RC
19235 # ### END LIBTOOL TAG CONFIG: $tagname
19237 __EOF__
19240 else
19241 # If there is no Makefile yet, we rely on a make rule to execute
19242 # `config.status --recheck' to rerun these tests and create the
19243 # libtool script then.
19244 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245 if test -f "$ltmain_in"; then
19246 test -f Makefile && make "$ltmain"
19251 ac_ext=c
19252 ac_cpp='$CPP $CPPFLAGS'
19253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19257 CC="$lt_save_CC"
19262 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19263 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19264 { (exit 1); exit 1; }; }
19266 esac
19268 # Append the new tag name to the list of available tags.
19269 if test -n "$tagname" ; then
19270 available_tags="$available_tags $tagname"
19273 done
19274 IFS="$lt_save_ifs"
19276 # Now substitute the updated list of available tags.
19277 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19278 mv "${ofile}T" "$ofile"
19279 chmod +x "$ofile"
19280 else
19281 rm -f "${ofile}T"
19282 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19283 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19284 { (exit 1); exit 1; }; }
19290 # This can be used to rebuild libtool when needed
19291 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19293 # Always use our own libtool.
19294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19296 # Prevent multiple expansion
19318 ALL_LINGUAS="be cs da es fr hr hu nl ro ru sv uk"
19320 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19321 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
19322 # Check whether --enable-nls was given.
19323 if test "${enable_nls+set}" = set; then
19324 enableval=$enable_nls; USE_NLS=$enableval
19325 else
19326 USE_NLS=yes
19329 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
19330 echo "${ECHO_T}$USE_NLS" >&6; }
19337 # Prepare PATH_SEPARATOR.
19338 # The user is always right.
19339 if test "${PATH_SEPARATOR+set}" != set; then
19340 echo "#! /bin/sh" >conf$$.sh
19341 echo "exit 0" >>conf$$.sh
19342 chmod +x conf$$.sh
19343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19344 PATH_SEPARATOR=';'
19345 else
19346 PATH_SEPARATOR=:
19348 rm -f conf$$.sh
19351 # Find out how to test for executable files. Don't use a zero-byte file,
19352 # as systems may use methods other than mode bits to determine executability.
19353 cat >conf$$.file <<_ASEOF
19354 #! /bin/sh
19355 exit 0
19356 _ASEOF
19357 chmod +x conf$$.file
19358 if test -x conf$$.file >/dev/null 2>&1; then
19359 ac_executable_p="test -x"
19360 else
19361 ac_executable_p="test -f"
19363 rm -f conf$$.file
19365 # Extract the first word of "msgfmt", so it can be a program name with args.
19366 set dummy msgfmt; ac_word=$2
19367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19369 if test "${ac_cv_path_MSGFMT+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372 case "$MSGFMT" in
19373 [\\/]* | ?:[\\/]*)
19374 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19377 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19378 for ac_dir in $PATH; do
19379 IFS="$ac_save_IFS"
19380 test -z "$ac_dir" && ac_dir=.
19381 for ac_exec_ext in '' $ac_executable_extensions; do
19382 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19383 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19384 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
19385 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19386 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
19387 break 2
19390 done
19391 done
19392 IFS="$ac_save_IFS"
19393 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
19395 esac
19397 MSGFMT="$ac_cv_path_MSGFMT"
19398 if test "$MSGFMT" != ":"; then
19399 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
19400 echo "${ECHO_T}$MSGFMT" >&6; }
19401 else
19402 { echo "$as_me:$LINENO: result: no" >&5
19403 echo "${ECHO_T}no" >&6; }
19406 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19407 set dummy gmsgfmt; ac_word=$2
19408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19410 if test "${ac_cv_path_GMSGFMT+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 else
19413 case $GMSGFMT in
19414 [\\/]* | ?:[\\/]*)
19415 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19419 for as_dir in $PATH
19421 IFS=$as_save_IFS
19422 test -z "$as_dir" && as_dir=.
19423 for ac_exec_ext in '' $ac_executable_extensions; do
19424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19425 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19427 break 2
19429 done
19430 done
19431 IFS=$as_save_IFS
19433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19435 esac
19437 GMSGFMT=$ac_cv_path_GMSGFMT
19438 if test -n "$GMSGFMT"; then
19439 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
19440 echo "${ECHO_T}$GMSGFMT" >&6; }
19441 else
19442 { echo "$as_me:$LINENO: result: no" >&5
19443 echo "${ECHO_T}no" >&6; }
19448 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19449 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
19450 *) MSGFMT_015=$MSGFMT ;;
19451 esac
19453 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19454 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
19455 *) GMSGFMT_015=$GMSGFMT ;;
19456 esac
19460 # Prepare PATH_SEPARATOR.
19461 # The user is always right.
19462 if test "${PATH_SEPARATOR+set}" != set; then
19463 echo "#! /bin/sh" >conf$$.sh
19464 echo "exit 0" >>conf$$.sh
19465 chmod +x conf$$.sh
19466 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19467 PATH_SEPARATOR=';'
19468 else
19469 PATH_SEPARATOR=:
19471 rm -f conf$$.sh
19474 # Find out how to test for executable files. Don't use a zero-byte file,
19475 # as systems may use methods other than mode bits to determine executability.
19476 cat >conf$$.file <<_ASEOF
19477 #! /bin/sh
19478 exit 0
19479 _ASEOF
19480 chmod +x conf$$.file
19481 if test -x conf$$.file >/dev/null 2>&1; then
19482 ac_executable_p="test -x"
19483 else
19484 ac_executable_p="test -f"
19486 rm -f conf$$.file
19488 # Extract the first word of "xgettext", so it can be a program name with args.
19489 set dummy xgettext; ac_word=$2
19490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19492 if test "${ac_cv_path_XGETTEXT+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19494 else
19495 case "$XGETTEXT" in
19496 [\\/]* | ?:[\\/]*)
19497 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19500 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19501 for ac_dir in $PATH; do
19502 IFS="$ac_save_IFS"
19503 test -z "$ac_dir" && ac_dir=.
19504 for ac_exec_ext in '' $ac_executable_extensions; do
19505 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19506 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19507 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
19508 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19509 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
19510 break 2
19513 done
19514 done
19515 IFS="$ac_save_IFS"
19516 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19518 esac
19520 XGETTEXT="$ac_cv_path_XGETTEXT"
19521 if test "$XGETTEXT" != ":"; then
19522 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
19523 echo "${ECHO_T}$XGETTEXT" >&6; }
19524 else
19525 { echo "$as_me:$LINENO: result: no" >&5
19526 echo "${ECHO_T}no" >&6; }
19529 rm -f messages.po
19531 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
19532 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
19533 *) XGETTEXT_015=$XGETTEXT ;;
19534 esac
19538 # Prepare PATH_SEPARATOR.
19539 # The user is always right.
19540 if test "${PATH_SEPARATOR+set}" != set; then
19541 echo "#! /bin/sh" >conf$$.sh
19542 echo "exit 0" >>conf$$.sh
19543 chmod +x conf$$.sh
19544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19545 PATH_SEPARATOR=';'
19546 else
19547 PATH_SEPARATOR=:
19549 rm -f conf$$.sh
19552 # Find out how to test for executable files. Don't use a zero-byte file,
19553 # as systems may use methods other than mode bits to determine executability.
19554 cat >conf$$.file <<_ASEOF
19555 #! /bin/sh
19556 exit 0
19557 _ASEOF
19558 chmod +x conf$$.file
19559 if test -x conf$$.file >/dev/null 2>&1; then
19560 ac_executable_p="test -x"
19561 else
19562 ac_executable_p="test -f"
19564 rm -f conf$$.file
19566 # Extract the first word of "msgmerge", so it can be a program name with args.
19567 set dummy msgmerge; ac_word=$2
19568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19570 if test "${ac_cv_path_MSGMERGE+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 case "$MSGMERGE" in
19574 [\\/]* | ?:[\\/]*)
19575 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19578 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19579 for ac_dir in $PATH; do
19580 IFS="$ac_save_IFS"
19581 test -z "$ac_dir" && ac_dir=.
19582 for ac_exec_ext in '' $ac_executable_extensions; do
19583 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19584 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19585 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
19586 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
19587 break 2
19590 done
19591 done
19592 IFS="$ac_save_IFS"
19593 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
19595 esac
19597 MSGMERGE="$ac_cv_path_MSGMERGE"
19598 if test "$MSGMERGE" != ":"; then
19599 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
19600 echo "${ECHO_T}$MSGMERGE" >&6; }
19601 else
19602 { echo "$as_me:$LINENO: result: no" >&5
19603 echo "${ECHO_T}no" >&6; }
19607 test -n "$localedir" || localedir='${datadir}/locale'
19610 ac_config_commands="$ac_config_commands po-directories"
19614 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
19615 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
19616 if test "${ac_cv_gnu_library_2+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h. */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 #include <features.h>
19627 #ifdef __GNU_LIBRARY__
19628 #if (__GLIBC__ >= 2)
19629 Lucky GNU user
19630 #endif
19631 #endif
19633 _ACEOF
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
19636 ac_cv_gnu_library_2=yes
19637 else
19638 ac_cv_gnu_library_2=no
19640 rm -f conftest*
19645 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
19646 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
19648 GLIBC2="$ac_cv_gnu_library_2"
19651 if test -n "$ac_tool_prefix"; then
19652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19656 if test "${ac_cv_prog_RANLIB+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659 if test -n "$RANLIB"; then
19660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19661 else
19662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663 for as_dir in $PATH
19665 IFS=$as_save_IFS
19666 test -z "$as_dir" && as_dir=.
19667 for ac_exec_ext in '' $ac_executable_extensions; do
19668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19671 break 2
19673 done
19674 done
19675 IFS=$as_save_IFS
19679 RANLIB=$ac_cv_prog_RANLIB
19680 if test -n "$RANLIB"; then
19681 { echo "$as_me:$LINENO: result: $RANLIB" >&5
19682 echo "${ECHO_T}$RANLIB" >&6; }
19683 else
19684 { echo "$as_me:$LINENO: result: no" >&5
19685 echo "${ECHO_T}no" >&6; }
19690 if test -z "$ac_cv_prog_RANLIB"; then
19691 ac_ct_RANLIB=$RANLIB
19692 # Extract the first word of "ranlib", so it can be a program name with args.
19693 set dummy ranlib; ac_word=$2
19694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19696 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699 if test -n "$ac_ct_RANLIB"; then
19700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19701 else
19702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703 for as_dir in $PATH
19705 IFS=$as_save_IFS
19706 test -z "$as_dir" && as_dir=.
19707 for ac_exec_ext in '' $ac_executable_extensions; do
19708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19709 ac_cv_prog_ac_ct_RANLIB="ranlib"
19710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19711 break 2
19713 done
19714 done
19715 IFS=$as_save_IFS
19719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19720 if test -n "$ac_ct_RANLIB"; then
19721 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19722 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19723 else
19724 { echo "$as_me:$LINENO: result: no" >&5
19725 echo "${ECHO_T}no" >&6; }
19728 if test "x$ac_ct_RANLIB" = x; then
19729 RANLIB=":"
19730 else
19731 case $cross_compiling:$ac_tool_warned in
19732 yes:)
19733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19734 whose name does not start with the host triplet. If you think this
19735 configuration is useful to you, please write to autoconf@gnu.org." >&5
19736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19737 whose name does not start with the host triplet. If you think this
19738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19739 ac_tool_warned=yes ;;
19740 esac
19741 RANLIB=$ac_ct_RANLIB
19743 else
19744 RANLIB="$ac_cv_prog_RANLIB"
19749 CFLAG_VISIBILITY=
19750 HAVE_VISIBILITY=0
19751 if test -n "$GCC"; then
19752 { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
19753 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
19754 if test "${gl_cv_cc_visibility+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19758 gl_save_CFLAGS="$CFLAGS"
19759 CFLAGS="$CFLAGS -fvisibility=hidden"
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h. */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
19767 extern __attribute__((__visibility__("default"))) int exportedvar;
19768 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
19769 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
19771 main ()
19775 return 0;
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (ac_try="$ac_compile"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_compile") 2>conftest.er1
19786 ac_status=$?
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest.$ac_objext; then
19795 gl_cv_cc_visibility=yes
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 gl_cv_cc_visibility=no
19803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 CFLAGS="$gl_save_CFLAGS"
19807 { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
19808 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
19809 if test $gl_cv_cc_visibility = yes; then
19810 CFLAG_VISIBILITY="-fvisibility=hidden"
19811 HAVE_VISIBILITY=1
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_VISIBILITY $HAVE_VISIBILITY
19819 _ACEOF
19822 { echo "$as_me:$LINENO: checking for inline" >&5
19823 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19824 if test "${ac_cv_c_inline+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827 ac_cv_c_inline=no
19828 for ac_kw in inline __inline__ __inline; do
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 #ifndef __cplusplus
19836 typedef int foo_t;
19837 static $ac_kw foo_t static_foo () {return 0; }
19838 $ac_kw foo_t foo () {return 0; }
19839 #endif
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_cv_c_inline=$ac_kw
19860 else
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 test "$ac_cv_c_inline" != no && break
19869 done
19872 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19873 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19876 case $ac_cv_c_inline in
19877 inline | yes) ;;
19879 case $ac_cv_c_inline in
19880 no) ac_val=;;
19881 *) ac_val=$ac_cv_c_inline;;
19882 esac
19883 cat >>confdefs.h <<_ACEOF
19884 #ifndef __cplusplus
19885 #define inline $ac_val
19886 #endif
19887 _ACEOF
19889 esac
19891 { echo "$as_me:$LINENO: checking for size_t" >&5
19892 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19893 if test "${ac_cv_type_size_t+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 $ac_includes_default
19903 typedef size_t ac__type_new_;
19905 main ()
19907 if ((ac__type_new_ *) 0)
19908 return 0;
19909 if (sizeof (ac__type_new_))
19910 return 0;
19912 return 0;
19914 _ACEOF
19915 rm -f conftest.$ac_objext
19916 if { (ac_try="$ac_compile"
19917 case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19920 esac
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922 (eval "$ac_compile") 2>conftest.er1
19923 ac_status=$?
19924 grep -v '^ *+' conftest.er1 >conftest.err
19925 rm -f conftest.er1
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } && {
19929 test -z "$ac_c_werror_flag" ||
19930 test ! -s conftest.err
19931 } && test -s conftest.$ac_objext; then
19932 ac_cv_type_size_t=yes
19933 else
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19937 ac_cv_type_size_t=no
19940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19942 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19943 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19944 if test $ac_cv_type_size_t = yes; then
19946 else
19948 cat >>confdefs.h <<_ACEOF
19949 #define size_t unsigned int
19950 _ACEOF
19955 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19956 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19957 if test "${gl_cv_header_stdint_h+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #include <sys/types.h>
19967 #include <stdint.h>
19969 main ()
19971 uintmax_t i = (uintmax_t) -1; return !i;
19973 return 0;
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest.$ac_objext; then
19993 gl_cv_header_stdint_h=yes
19994 else
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 gl_cv_header_stdint_h=no
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
20004 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
20005 if test $gl_cv_header_stdint_h = yes; then
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_STDINT_H_WITH_UINTMAX 1
20009 _ACEOF
20013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20014 # for constant arguments. Useless!
20015 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20016 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20017 if test "${ac_cv_working_alloca_h+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <alloca.h>
20028 main ()
20030 char *p = (char *) alloca (2 * sizeof (int));
20031 if (p) return 0;
20033 return 0;
20035 _ACEOF
20036 rm -f conftest.$ac_objext conftest$ac_exeext
20037 if { (ac_try="$ac_link"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_link") 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && {
20050 test -z "$ac_c_werror_flag" ||
20051 test ! -s conftest.err
20052 } && test -s conftest$ac_exeext &&
20053 $as_test_x conftest$ac_exeext; then
20054 ac_cv_working_alloca_h=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_cv_working_alloca_h=no
20062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20063 conftest$ac_exeext conftest.$ac_ext
20065 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20066 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20067 if test $ac_cv_working_alloca_h = yes; then
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_ALLOCA_H 1
20071 _ACEOF
20075 { echo "$as_me:$LINENO: checking for alloca" >&5
20076 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20077 if test "${ac_cv_func_alloca_works+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #ifdef __GNUC__
20087 # define alloca __builtin_alloca
20088 #else
20089 # ifdef _MSC_VER
20090 # include <malloc.h>
20091 # define alloca _alloca
20092 # else
20093 # ifdef HAVE_ALLOCA_H
20094 # include <alloca.h>
20095 # else
20096 # ifdef _AIX
20097 #pragma alloca
20098 # else
20099 # ifndef alloca /* predefined by HP cc +Olibcalls */
20100 char *alloca ();
20101 # endif
20102 # endif
20103 # endif
20104 # endif
20105 #endif
20108 main ()
20110 char *p = (char *) alloca (1);
20111 if (p) return 0;
20113 return 0;
20115 _ACEOF
20116 rm -f conftest.$ac_objext conftest$ac_exeext
20117 if { (ac_try="$ac_link"
20118 case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20121 esac
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_link") 2>conftest.er1
20124 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && {
20130 test -z "$ac_c_werror_flag" ||
20131 test ! -s conftest.err
20132 } && test -s conftest$ac_exeext &&
20133 $as_test_x conftest$ac_exeext; then
20134 ac_cv_func_alloca_works=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_cv_func_alloca_works=no
20142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20143 conftest$ac_exeext conftest.$ac_ext
20145 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20146 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
20148 if test $ac_cv_func_alloca_works = yes; then
20150 cat >>confdefs.h <<\_ACEOF
20151 #define HAVE_ALLOCA 1
20152 _ACEOF
20154 else
20155 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20156 # that cause trouble. Some versions do not even contain alloca or
20157 # contain a buggy version. If you still want to use their alloca,
20158 # use ar to extract alloca.o from them instead of compiling alloca.c.
20160 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20162 cat >>confdefs.h <<\_ACEOF
20163 #define C_ALLOCA 1
20164 _ACEOF
20167 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20168 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
20169 if test "${ac_cv_os_cray+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h. */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #if defined CRAY && ! defined CRAY2
20179 webecray
20180 #else
20181 wenotbecray
20182 #endif
20184 _ACEOF
20185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20186 $EGREP "webecray" >/dev/null 2>&1; then
20187 ac_cv_os_cray=yes
20188 else
20189 ac_cv_os_cray=no
20191 rm -f conftest*
20194 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20195 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
20196 if test $ac_cv_os_cray = yes; then
20197 for ac_func in _getb67 GETB67 getb67; do
20198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h. */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20212 #define $ac_func innocuous_$ac_func
20214 /* System header to define __stub macros and hopefully few prototypes,
20215 which can conflict with char $ac_func (); below.
20216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217 <limits.h> exists even on freestanding compilers. */
20219 #ifdef __STDC__
20220 # include <limits.h>
20221 #else
20222 # include <assert.h>
20223 #endif
20225 #undef $ac_func
20227 /* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20230 #ifdef __cplusplus
20231 extern "C"
20232 #endif
20233 char $ac_func ();
20234 /* The GNU C library defines this for functions which it implements
20235 to always fail with ENOSYS. Some functions are actually named
20236 something starting with __ and the normal name is an alias. */
20237 #if defined __stub_$ac_func || defined __stub___$ac_func
20238 choke me
20239 #endif
20242 main ()
20244 return $ac_func ();
20246 return 0;
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 eval "$as_ac_var=yes"
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 eval "$as_ac_var=no"
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20278 ac_res=`eval echo '${'$as_ac_var'}'`
20279 { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20281 if test `eval echo '${'$as_ac_var'}'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define CRAY_STACKSEG_END $ac_func
20285 _ACEOF
20287 break
20290 done
20293 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20294 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
20295 if test "${ac_cv_c_stack_direction+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298 if test "$cross_compiling" = yes; then
20299 ac_cv_c_stack_direction=0
20300 else
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 $ac_includes_default
20309 find_stack_direction ()
20311 static char *addr = 0;
20312 auto char dummy;
20313 if (addr == 0)
20315 addr = &dummy;
20316 return find_stack_direction ();
20318 else
20319 return (&dummy > addr) ? 1 : -1;
20323 main ()
20325 return find_stack_direction () < 0;
20327 _ACEOF
20328 rm -f conftest$ac_exeext
20329 if { (ac_try="$ac_link"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_link") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_stack_direction=1
20349 else
20350 echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ( exit $ac_status )
20355 ac_cv_c_stack_direction=-1
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20363 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
20365 cat >>confdefs.h <<_ACEOF
20366 #define STACK_DIRECTION $ac_cv_c_stack_direction
20367 _ACEOF
20374 for ac_header in stdlib.h unistd.h
20376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 ac_res=`eval echo '${'$as_ac_Header'}'`
20384 { echo "$as_me:$LINENO: result: $ac_res" >&5
20385 echo "${ECHO_T}$ac_res" >&6; }
20386 else
20387 # Is the header compilable?
20388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20397 #include <$ac_header>
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20416 ac_header_compiler=yes
20417 else
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_header_compiler=no
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6; }
20428 # Is the header present?
20429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <$ac_header>
20438 _ACEOF
20439 if { (ac_try="$ac_cpp conftest.$ac_ext"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } >/dev/null && {
20452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 }; then
20455 ac_header_preproc=yes
20456 else
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_header_preproc=no
20463 rm -f conftest.err conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20465 echo "${ECHO_T}$ac_header_preproc" >&6; }
20467 # So? What about this header?
20468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20469 yes:no: )
20470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20474 ac_header_preproc=yes
20476 no:yes:* )
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20491 esac
20492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 eval "$as_ac_Header=\$ac_header_preproc"
20499 ac_res=`eval echo '${'$as_ac_Header'}'`
20500 { echo "$as_me:$LINENO: result: $ac_res" >&5
20501 echo "${ECHO_T}$ac_res" >&6; }
20504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20507 _ACEOF
20511 done
20514 for ac_func in getpagesize
20516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20530 #define $ac_func innocuous_$ac_func
20532 /* System header to define __stub macros and hopefully few prototypes,
20533 which can conflict with char $ac_func (); below.
20534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20535 <limits.h> exists even on freestanding compilers. */
20537 #ifdef __STDC__
20538 # include <limits.h>
20539 #else
20540 # include <assert.h>
20541 #endif
20543 #undef $ac_func
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20548 #ifdef __cplusplus
20549 extern "C"
20550 #endif
20551 char $ac_func ();
20552 /* The GNU C library defines this for functions which it implements
20553 to always fail with ENOSYS. Some functions are actually named
20554 something starting with __ and the normal name is an alias. */
20555 #if defined __stub_$ac_func || defined __stub___$ac_func
20556 choke me
20557 #endif
20560 main ()
20562 return $ac_func ();
20564 return 0;
20566 _ACEOF
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest$ac_exeext &&
20584 $as_test_x conftest$ac_exeext; then
20585 eval "$as_ac_var=yes"
20586 else
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 eval "$as_ac_var=no"
20593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20594 conftest$ac_exeext conftest.$ac_ext
20596 ac_res=`eval echo '${'$as_ac_var'}'`
20597 { echo "$as_me:$LINENO: result: $ac_res" >&5
20598 echo "${ECHO_T}$ac_res" >&6; }
20599 if test `eval echo '${'$as_ac_var'}'` = yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20602 _ACEOF
20605 done
20607 { echo "$as_me:$LINENO: checking for working mmap" >&5
20608 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20609 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 if test "$cross_compiling" = yes; then
20613 ac_cv_func_mmap_fixed_mapped=no
20614 else
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 $ac_includes_default
20622 /* malloc might have been renamed as rpl_malloc. */
20623 #undef malloc
20625 /* Thanks to Mike Haertel and Jim Avera for this test.
20626 Here is a matrix of mmap possibilities:
20627 mmap private not fixed
20628 mmap private fixed at somewhere currently unmapped
20629 mmap private fixed at somewhere already mapped
20630 mmap shared not fixed
20631 mmap shared fixed at somewhere currently unmapped
20632 mmap shared fixed at somewhere already mapped
20633 For private mappings, we should verify that changes cannot be read()
20634 back from the file, nor mmap's back from the file at a different
20635 address. (There have been systems where private was not correctly
20636 implemented like the infamous i386 svr4.0, and systems where the
20637 VM page cache was not coherent with the file system buffer cache
20638 like early versions of FreeBSD and possibly contemporary NetBSD.)
20639 For shared mappings, we should conversely verify that changes get
20640 propagated back to all the places they're supposed to be.
20642 Grep wants private fixed already mapped.
20643 The main things grep needs to know about mmap are:
20644 * does it exist and is it safe to write into the mmap'd area
20645 * how to use it (BSD variants) */
20647 #include <fcntl.h>
20648 #include <sys/mman.h>
20650 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20651 char *malloc ();
20652 #endif
20654 /* This mess was copied from the GNU getpagesize.h. */
20655 #ifndef HAVE_GETPAGESIZE
20656 /* Assume that all systems that can run configure have sys/param.h. */
20657 # ifndef HAVE_SYS_PARAM_H
20658 # define HAVE_SYS_PARAM_H 1
20659 # endif
20661 # ifdef _SC_PAGESIZE
20662 # define getpagesize() sysconf(_SC_PAGESIZE)
20663 # else /* no _SC_PAGESIZE */
20664 # ifdef HAVE_SYS_PARAM_H
20665 # include <sys/param.h>
20666 # ifdef EXEC_PAGESIZE
20667 # define getpagesize() EXEC_PAGESIZE
20668 # else /* no EXEC_PAGESIZE */
20669 # ifdef NBPG
20670 # define getpagesize() NBPG * CLSIZE
20671 # ifndef CLSIZE
20672 # define CLSIZE 1
20673 # endif /* no CLSIZE */
20674 # else /* no NBPG */
20675 # ifdef NBPC
20676 # define getpagesize() NBPC
20677 # else /* no NBPC */
20678 # ifdef PAGESIZE
20679 # define getpagesize() PAGESIZE
20680 # endif /* PAGESIZE */
20681 # endif /* no NBPC */
20682 # endif /* no NBPG */
20683 # endif /* no EXEC_PAGESIZE */
20684 # else /* no HAVE_SYS_PARAM_H */
20685 # define getpagesize() 8192 /* punt totally */
20686 # endif /* no HAVE_SYS_PARAM_H */
20687 # endif /* no _SC_PAGESIZE */
20689 #endif /* no HAVE_GETPAGESIZE */
20692 main ()
20694 char *data, *data2, *data3;
20695 int i, pagesize;
20696 int fd;
20698 pagesize = getpagesize ();
20700 /* First, make a file with some known garbage in it. */
20701 data = (char *) malloc (pagesize);
20702 if (!data)
20703 return 1;
20704 for (i = 0; i < pagesize; ++i)
20705 *(data + i) = rand ();
20706 umask (0);
20707 fd = creat ("conftest.mmap", 0600);
20708 if (fd < 0)
20709 return 1;
20710 if (write (fd, data, pagesize) != pagesize)
20711 return 1;
20712 close (fd);
20714 /* Next, try to mmap the file at a fixed address which already has
20715 something else allocated at it. If we can, also make sure that
20716 we see the same garbage. */
20717 fd = open ("conftest.mmap", O_RDWR);
20718 if (fd < 0)
20719 return 1;
20720 data2 = (char *) malloc (2 * pagesize);
20721 if (!data2)
20722 return 1;
20723 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20724 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20725 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20726 return 1;
20727 for (i = 0; i < pagesize; ++i)
20728 if (*(data + i) != *(data2 + i))
20729 return 1;
20731 /* Finally, make sure that changes to the mapped area do not
20732 percolate back to the file as seen by read(). (This is a bug on
20733 some variants of i386 svr4.0.) */
20734 for (i = 0; i < pagesize; ++i)
20735 *(data2 + i) = *(data2 + i) + 1;
20736 data3 = (char *) malloc (pagesize);
20737 if (!data3)
20738 return 1;
20739 if (read (fd, data3, pagesize) != pagesize)
20740 return 1;
20741 for (i = 0; i < pagesize; ++i)
20742 if (*(data + i) != *(data3 + i))
20743 return 1;
20744 close (fd);
20745 return 0;
20747 _ACEOF
20748 rm -f conftest$ac_exeext
20749 if { (ac_try="$ac_link"
20750 case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20753 esac
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_link") 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20759 { (case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_try") 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_cv_func_mmap_fixed_mapped=yes
20769 else
20770 echo "$as_me: program exited with status $ac_status" >&5
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ( exit $ac_status )
20775 ac_cv_func_mmap_fixed_mapped=no
20777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20782 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20783 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20784 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20786 cat >>confdefs.h <<\_ACEOF
20787 #define HAVE_MMAP 1
20788 _ACEOF
20791 rm -f conftest.mmap
20795 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20796 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20797 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20801 if test "$cross_compiling" = yes; then
20803 # Guess based on the CPU.
20804 case "$host_cpu" in
20805 alpha* | i3456786 | m68k | s390*)
20806 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20808 gt_cv_int_divbyzero_sigfpe="guessing no";;
20809 esac
20811 else
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h. */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20819 #include <stdlib.h>
20820 #include <signal.h>
20822 static void
20823 #ifdef __cplusplus
20824 sigfpe_handler (int sig)
20825 #else
20826 sigfpe_handler (sig) int sig;
20827 #endif
20829 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20830 exit (sig != SIGFPE);
20833 int x = 1;
20834 int y = 0;
20835 int z;
20836 int nan;
20838 int main ()
20840 signal (SIGFPE, sigfpe_handler);
20841 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20842 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20843 signal (SIGTRAP, sigfpe_handler);
20844 #endif
20845 /* Linux/SPARC yields signal SIGILL. */
20846 #if defined (__sparc__) && defined (__linux__)
20847 signal (SIGILL, sigfpe_handler);
20848 #endif
20850 z = x / y;
20851 nan = y / y;
20852 exit (1);
20855 _ACEOF
20856 rm -f conftest$ac_exeext
20857 if { (ac_try="$ac_link"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_link") 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20867 { (case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20870 esac
20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_try") 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 gt_cv_int_divbyzero_sigfpe=yes
20877 else
20878 echo "$as_me: program exited with status $ac_status" >&5
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ( exit $ac_status )
20883 gt_cv_int_divbyzero_sigfpe=no
20885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20891 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20892 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20893 case "$gt_cv_int_divbyzero_sigfpe" in
20894 *yes) value=1;;
20895 *) value=0;;
20896 esac
20898 cat >>confdefs.h <<_ACEOF
20899 #define INTDIV0_RAISES_SIGFPE $value
20900 _ACEOF
20904 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20905 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20906 if test "${gl_cv_header_inttypes_h+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <sys/types.h>
20916 #include <inttypes.h>
20918 main ()
20920 uintmax_t i = (uintmax_t) -1; return !i;
20922 return 0;
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 gl_cv_header_inttypes_h=yes
20943 else
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 gl_cv_header_inttypes_h=no
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
20953 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
20954 if test $gl_cv_header_inttypes_h = yes; then
20956 cat >>confdefs.h <<_ACEOF
20957 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20958 _ACEOF
20963 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
20964 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
20965 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 unsigned long long int ull = 18446744073709551615ULL;
20975 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
20976 ? 1 : -1)];
20977 int i = 63;
20979 main ()
20981 unsigned long long int ullmax = 18446744073709551615ull;
20982 return (ull << 63 | ull >> 63 | ull << i | ull >> i
20983 | ullmax / ull | ullmax % ull);
20985 return 0;
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest$ac_exeext &&
21005 $as_test_x conftest$ac_exeext; then
21006 ac_cv_type_unsigned_long_long_int=yes
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_cv_type_unsigned_long_long_int=no
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015 conftest$ac_exeext conftest.$ac_ext
21017 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
21018 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
21019 if test $ac_cv_type_unsigned_long_long_int = yes; then
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_UNSIGNED_LONG_LONG_INT 1
21023 _ACEOF
21029 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
21030 if test $ac_cv_type_unsigned_long_long = yes; then
21032 cat >>confdefs.h <<\_ACEOF
21033 #define HAVE_UNSIGNED_LONG_LONG 1
21034 _ACEOF
21041 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
21043 test $ac_cv_type_unsigned_long_long = yes \
21044 && ac_type='unsigned long long' \
21045 || ac_type='unsigned long'
21047 cat >>confdefs.h <<_ACEOF
21048 #define uintmax_t $ac_type
21049 _ACEOF
21051 else
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_UINTMAX_T 1
21055 _ACEOF
21061 for ac_header in inttypes.h
21063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21073 else
21074 # Is the header compilable?
21075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h. */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 #include <$ac_header>
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (ac_try="$ac_compile"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_compile") 2>conftest.er1
21094 ac_status=$?
21095 grep -v '^ *+' conftest.er1 >conftest.err
21096 rm -f conftest.er1
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } && {
21100 test -z "$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 } && test -s conftest.$ac_objext; then
21103 ac_header_compiler=yes
21104 else
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ac_header_compiler=no
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21113 echo "${ECHO_T}$ac_header_compiler" >&6; }
21115 # Is the header present?
21116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 #include <$ac_header>
21125 _ACEOF
21126 if { (ac_try="$ac_cpp conftest.$ac_ext"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } >/dev/null && {
21139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 }; then
21142 ac_header_preproc=yes
21143 else
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_header_preproc=no
21150 rm -f conftest.err conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21152 echo "${ECHO_T}$ac_header_preproc" >&6; }
21154 # So? What about this header?
21155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21156 yes:no: )
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21161 ac_header_preproc=yes
21163 no:yes:* )
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21178 esac
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184 eval "$as_ac_Header=\$ac_header_preproc"
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21192 cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21194 _ACEOF
21198 done
21200 if test $ac_cv_header_inttypes_h = yes; then
21201 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
21202 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
21203 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h. */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <inttypes.h>
21214 #ifdef PRId32
21215 char *p = PRId32;
21216 #endif
21219 main ()
21223 return 0;
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (ac_try="$ac_compile"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 gt_cv_inttypes_pri_broken=no
21244 else
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 gt_cv_inttypes_pri_broken=yes
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21255 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
21257 if test "$gt_cv_inttypes_pri_broken" = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define PRI_MACROS_BROKEN 1
21261 _ACEOF
21263 PRI_MACROS_BROKEN=1
21264 else
21265 PRI_MACROS_BROKEN=0
21270 cat >>confdefs.h <<\_ACEOF
21271 #define _GNU_SOURCE 1
21272 _ACEOF
21278 # Check whether --enable-threads was given.
21279 if test "${enable_threads+set}" = set; then
21280 enableval=$enable_threads; gl_use_threads=$enableval
21281 else
21282 case "$host_os" in
21283 osf*) gl_use_threads=no ;;
21284 *) gl_use_threads=yes ;;
21285 esac
21289 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
21290 # For using <pthread.h>:
21291 case "$host_os" in
21292 osf*)
21293 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
21294 # groks <pthread.h>. cc also understands the flag -pthread, but
21295 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
21296 # 2. putting a flag into CPPFLAGS that has an effect on the linker
21297 # causes the AC_TRY_LINK test below to succeed unexpectedly,
21298 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
21299 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21301 esac
21302 # Some systems optimize for single-threaded programs by default, and
21303 # need special flags to disable these optimizations. For example, the
21304 # definition of 'errno' in <errno.h>.
21305 case "$host_os" in
21306 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
21307 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
21308 esac
21315 if test "X$prefix" = "XNONE"; then
21316 acl_final_prefix="$ac_default_prefix"
21317 else
21318 acl_final_prefix="$prefix"
21320 if test "X$exec_prefix" = "XNONE"; then
21321 acl_final_exec_prefix='${prefix}'
21322 else
21323 acl_final_exec_prefix="$exec_prefix"
21325 acl_save_prefix="$prefix"
21326 prefix="$acl_final_prefix"
21327 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21328 prefix="$acl_save_prefix"
21331 # Check whether --with-gnu-ld was given.
21332 if test "${with_gnu_ld+set}" = set; then
21333 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21334 else
21335 with_gnu_ld=no
21338 # Prepare PATH_SEPARATOR.
21339 # The user is always right.
21340 if test "${PATH_SEPARATOR+set}" != set; then
21341 echo "#! /bin/sh" >conf$$.sh
21342 echo "exit 0" >>conf$$.sh
21343 chmod +x conf$$.sh
21344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21345 PATH_SEPARATOR=';'
21346 else
21347 PATH_SEPARATOR=:
21349 rm -f conf$$.sh
21351 ac_prog=ld
21352 if test "$GCC" = yes; then
21353 # Check if gcc -print-prog-name=ld gives a path.
21354 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21355 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21356 case $host in
21357 *-*-mingw*)
21358 # gcc leaves a trailing carriage return which upsets mingw
21359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21362 esac
21363 case $ac_prog in
21364 # Accept absolute paths.
21365 [\\/]* | [A-Za-z]:[\\/]*)
21366 re_direlt='/[^/][^/]*/\.\./'
21367 # Canonicalize the path of ld
21368 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21369 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21370 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21371 done
21372 test -z "$LD" && LD="$ac_prog"
21375 # If it fails, then pretend we aren't using GCC.
21376 ac_prog=ld
21379 # If it is relative, then search for the first ld in PATH.
21380 with_gnu_ld=unknown
21382 esac
21383 elif test "$with_gnu_ld" = yes; then
21384 { echo "$as_me:$LINENO: checking for GNU ld" >&5
21385 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21386 else
21387 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21388 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21390 if test "${acl_cv_path_LD+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 else
21393 if test -z "$LD"; then
21394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21395 for ac_dir in $PATH; do
21396 test -z "$ac_dir" && ac_dir=.
21397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21398 acl_cv_path_LD="$ac_dir/$ac_prog"
21399 # Check to see if the program is GNU ld. I'd rather use --version,
21400 # but apparently some GNU ld's only accept -v.
21401 # Break only if it was the GNU/non-GNU ld that we prefer.
21402 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21403 *GNU* | *'with BFD'*)
21404 test "$with_gnu_ld" != no && break ;;
21406 test "$with_gnu_ld" != yes && break ;;
21407 esac
21409 done
21410 IFS="$ac_save_ifs"
21411 else
21412 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21416 LD="$acl_cv_path_LD"
21417 if test -n "$LD"; then
21418 { echo "$as_me:$LINENO: result: $LD" >&5
21419 echo "${ECHO_T}$LD" >&6; }
21420 else
21421 { echo "$as_me:$LINENO: result: no" >&5
21422 echo "${ECHO_T}no" >&6; }
21424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21426 { (exit 1); exit 1; }; }
21427 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
21429 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21433 case `$LD -v 2>&1 </dev/null` in
21434 *GNU* | *'with BFD'*)
21435 acl_cv_prog_gnu_ld=yes ;;
21437 acl_cv_prog_gnu_ld=no ;;
21438 esac
21440 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21441 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
21442 with_gnu_ld=$acl_cv_prog_gnu_ld
21447 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21448 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21449 if test "${acl_cv_rpath+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21453 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21454 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21455 . ./conftest.sh
21456 rm -f ./conftest.sh
21457 acl_cv_rpath=done
21460 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21461 echo "${ECHO_T}$acl_cv_rpath" >&6; }
21462 wl="$acl_cv_wl"
21463 libext="$acl_cv_libext"
21464 shlibext="$acl_cv_shlibext"
21465 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21466 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21467 hardcode_direct="$acl_cv_hardcode_direct"
21468 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21469 # Check whether --enable-rpath was given.
21470 if test "${enable_rpath+set}" = set; then
21471 enableval=$enable_rpath; :
21472 else
21473 enable_rpath=yes
21478 acl_libdirstem=lib
21479 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21480 if test -n "$searchpath"; then
21481 acl_save_IFS="${IFS= }"; IFS=":"
21482 for searchdir in $searchpath; do
21483 if test -d "$searchdir"; then
21484 case "$searchdir" in
21485 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21486 *) searchdir=`cd "$searchdir" && pwd`
21487 case "$searchdir" in
21488 */lib64 ) acl_libdirstem=lib64 ;;
21489 esac ;;
21490 esac
21492 done
21493 IFS="$acl_save_IFS"
21498 gl_threads_api=none
21499 LIBTHREAD=
21500 LTLIBTHREAD=
21501 LIBMULTITHREAD=
21502 LTLIBMULTITHREAD=
21503 if test "$gl_use_threads" != no; then
21504 { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
21505 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
21506 gl_have_weak=no
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 extern void xyzzy ();
21514 #pragma weak xyzzy
21516 main ()
21518 xyzzy();
21520 return 0;
21522 _ACEOF
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_link") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest$ac_exeext &&
21540 $as_test_x conftest$ac_exeext; then
21541 gl_have_weak=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21550 conftest$ac_exeext conftest.$ac_ext
21551 { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
21552 echo "${ECHO_T}$gl_have_weak" >&6; }
21553 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
21554 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
21555 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
21556 if test "${ac_cv_header_pthread_h+set}" = set; then
21557 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21558 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21559 if test "${ac_cv_header_pthread_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21563 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21564 else
21565 # Is the header compilable?
21566 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
21567 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
21568 cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h. */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21575 #include <pthread.h>
21576 _ACEOF
21577 rm -f conftest.$ac_objext
21578 if { (ac_try="$ac_compile"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21585 ac_status=$?
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
21594 ac_header_compiler=yes
21595 else
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 ac_header_compiler=no
21602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21604 echo "${ECHO_T}$ac_header_compiler" >&6; }
21606 # Is the header present?
21607 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
21608 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <pthread.h>
21616 _ACEOF
21617 if { (ac_try="$ac_cpp conftest.$ac_ext"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } >/dev/null && {
21630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 }; then
21633 ac_header_preproc=yes
21634 else
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_header_preproc=no
21641 rm -f conftest.err conftest.$ac_ext
21642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21643 echo "${ECHO_T}$ac_header_preproc" >&6; }
21645 # So? What about this header?
21646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21647 yes:no: )
21648 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21649 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21651 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21652 ac_header_preproc=yes
21654 no:yes:* )
21655 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21656 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21658 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21660 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21662 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21666 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21669 esac
21670 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21671 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21672 if test "${ac_cv_header_pthread_h+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 else
21675 ac_cv_header_pthread_h=$ac_header_preproc
21677 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21678 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21681 if test $ac_cv_header_pthread_h = yes; then
21682 gl_have_pthread_h=yes
21683 else
21684 gl_have_pthread_h=no
21688 if test "$gl_have_pthread_h" = yes; then
21689 # Other possible tests:
21690 # -lpthreads (FSU threads, PCthreads)
21691 # -lgthreads
21692 gl_have_pthread=
21693 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
21694 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
21695 # the second one only in libpthread, and lock.c needs it.
21696 cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h. */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 #include <pthread.h>
21704 main ()
21706 pthread_mutex_lock((pthread_mutex_t*)0);
21707 pthread_mutexattr_init((pthread_mutexattr_t*)0);
21709 return 0;
21711 _ACEOF
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest$ac_exeext &&
21729 $as_test_x conftest$ac_exeext; then
21730 gl_have_pthread=yes
21731 else
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739 conftest$ac_exeext conftest.$ac_ext
21740 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
21741 # since it is defined as a macro on OSF/1.)
21742 if test -n "$gl_have_pthread"; then
21743 # The program links fine without libpthread. But it may actually
21744 # need to link with libpthread in order to create multiple threads.
21745 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
21746 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
21747 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 ac_check_lib_save_LIBS=$LIBS
21751 LIBS="-lpthread $LIBS"
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 /* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21762 #ifdef __cplusplus
21763 extern "C"
21764 #endif
21765 char pthread_kill ();
21767 main ()
21769 return pthread_kill ();
21771 return 0;
21773 _ACEOF
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (ac_try="$ac_link"
21776 case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_link") 2>conftest.er1
21782 ac_status=$?
21783 grep -v '^ *+' conftest.er1 >conftest.err
21784 rm -f conftest.er1
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest$ac_exeext &&
21791 $as_test_x conftest$ac_exeext; then
21792 ac_cv_lib_pthread_pthread_kill=yes
21793 else
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 ac_cv_lib_pthread_pthread_kill=no
21800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21801 conftest$ac_exeext conftest.$ac_ext
21802 LIBS=$ac_check_lib_save_LIBS
21804 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
21805 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
21806 if test $ac_cv_lib_pthread_pthread_kill = yes; then
21807 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
21808 # On Solaris and HP-UX, most pthread functions exist also in libc.
21809 # Therefore pthread_in_use() needs to actually try to create a
21810 # thread: pthread_create from libc will fail, whereas
21811 # pthread_create will actually create a thread.
21812 case "$host_os" in
21813 solaris* | hpux*)
21815 cat >>confdefs.h <<\_ACEOF
21816 #define PTHREAD_IN_USE_DETECTION_HARD 1
21817 _ACEOF
21819 esac
21823 else
21824 # Some library is needed. Try libpthread and libc_r.
21825 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
21826 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
21827 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 else
21830 ac_check_lib_save_LIBS=$LIBS
21831 LIBS="-lpthread $LIBS"
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h. */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21839 /* Override any GCC internal prototype to avoid an error.
21840 Use char because int might match the return type of a GCC
21841 builtin and then its argument prototype would still apply. */
21842 #ifdef __cplusplus
21843 extern "C"
21844 #endif
21845 char pthread_kill ();
21847 main ()
21849 return pthread_kill ();
21851 return 0;
21853 _ACEOF
21854 rm -f conftest.$ac_objext conftest$ac_exeext
21855 if { (ac_try="$ac_link"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_link") 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest$ac_exeext &&
21871 $as_test_x conftest$ac_exeext; then
21872 ac_cv_lib_pthread_pthread_kill=yes
21873 else
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_cv_lib_pthread_pthread_kill=no
21880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21881 conftest$ac_exeext conftest.$ac_ext
21882 LIBS=$ac_check_lib_save_LIBS
21884 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
21885 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
21886 if test $ac_cv_lib_pthread_pthread_kill = yes; then
21887 gl_have_pthread=yes
21888 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
21889 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
21892 if test -z "$gl_have_pthread"; then
21893 # For FreeBSD 4.
21894 { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
21895 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
21896 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899 ac_check_lib_save_LIBS=$LIBS
21900 LIBS="-lc_r $LIBS"
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21908 /* Override any GCC internal prototype to avoid an error.
21909 Use char because int might match the return type of a GCC
21910 builtin and then its argument prototype would still apply. */
21911 #ifdef __cplusplus
21912 extern "C"
21913 #endif
21914 char pthread_kill ();
21916 main ()
21918 return pthread_kill ();
21920 return 0;
21922 _ACEOF
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (ac_try="$ac_link"
21925 case "(($ac_try" in
21926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927 *) ac_try_echo=$ac_try;;
21928 esac
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930 (eval "$ac_link") 2>conftest.er1
21931 ac_status=$?
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } && {
21937 test -z "$ac_c_werror_flag" ||
21938 test ! -s conftest.err
21939 } && test -s conftest$ac_exeext &&
21940 $as_test_x conftest$ac_exeext; then
21941 ac_cv_lib_c_r_pthread_kill=yes
21942 else
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_cv_lib_c_r_pthread_kill=no
21949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21950 conftest$ac_exeext conftest.$ac_ext
21951 LIBS=$ac_check_lib_save_LIBS
21953 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
21954 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
21955 if test $ac_cv_lib_c_r_pthread_kill = yes; then
21956 gl_have_pthread=yes
21957 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
21958 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
21963 if test -n "$gl_have_pthread"; then
21964 gl_threads_api=posix
21966 cat >>confdefs.h <<\_ACEOF
21967 #define USE_POSIX_THREADS 1
21968 _ACEOF
21970 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
21971 if test $gl_have_weak = yes; then
21973 cat >>confdefs.h <<\_ACEOF
21974 #define USE_POSIX_THREADS_WEAK 1
21975 _ACEOF
21977 LIBTHREAD=
21978 LTLIBTHREAD=
21981 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
21982 # pthread_rwlock_* functions.
21983 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
21984 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
21985 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h. */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <pthread.h>
21996 typedef pthread_rwlock_t ac__type_new_;
21998 main ()
22000 if ((ac__type_new_ *) 0)
22001 return 0;
22002 if (sizeof (ac__type_new_))
22003 return 0;
22005 return 0;
22007 _ACEOF
22008 rm -f conftest.$ac_objext
22009 if { (ac_try="$ac_compile"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 ac_cv_type_pthread_rwlock_t=yes
22026 else
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_cv_type_pthread_rwlock_t=no
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
22036 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
22037 if test $ac_cv_type_pthread_rwlock_t = yes; then
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_PTHREAD_RWLOCK 1
22041 _ACEOF
22045 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 #include <pthread.h>
22054 main ()
22056 #if __FreeBSD__ == 4
22057 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22058 #else
22059 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22060 return !x;
22061 #endif
22063 return 0;
22065 _ACEOF
22066 rm -f conftest.$ac_objext
22067 if { (ac_try="$ac_compile"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071 esac
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22074 ac_status=$?
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
22086 _ACEOF
22088 else
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 if test -z "$gl_have_pthread"; then
22100 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
22101 gl_have_solaristhread=
22102 gl_save_LIBS="$LIBS"
22103 LIBS="$LIBS -lthread"
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <thread.h>
22111 #include <synch.h>
22113 main ()
22115 thr_self();
22117 return 0;
22119 _ACEOF
22120 rm -f conftest.$ac_objext conftest$ac_exeext
22121 if { (ac_try="$ac_link"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_link") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest$ac_exeext &&
22137 $as_test_x conftest$ac_exeext; then
22138 gl_have_solaristhread=yes
22139 else
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22148 LIBS="$gl_save_LIBS"
22149 if test -n "$gl_have_solaristhread"; then
22150 gl_threads_api=solaris
22151 LIBTHREAD=-lthread
22152 LTLIBTHREAD=-lthread
22153 LIBMULTITHREAD="$LIBTHREAD"
22154 LTLIBMULTITHREAD="$LTLIBTHREAD"
22156 cat >>confdefs.h <<\_ACEOF
22157 #define USE_SOLARIS_THREADS 1
22158 _ACEOF
22160 if test $gl_have_weak = yes; then
22162 cat >>confdefs.h <<\_ACEOF
22163 #define USE_SOLARIS_THREADS_WEAK 1
22164 _ACEOF
22166 LIBTHREAD=
22167 LTLIBTHREAD=
22172 if test "$gl_use_threads" = pth; then
22173 gl_save_CPPFLAGS="$CPPFLAGS"
22179 { echo "$as_me:$LINENO: checking how to link with libpth" >&5
22180 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
22181 if test "${ac_cv_libpth_libs+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22188 use_additional=yes
22190 acl_save_prefix="$prefix"
22191 prefix="$acl_final_prefix"
22192 acl_save_exec_prefix="$exec_prefix"
22193 exec_prefix="$acl_final_exec_prefix"
22195 eval additional_includedir=\"$includedir\"
22196 eval additional_libdir=\"$libdir\"
22198 exec_prefix="$acl_save_exec_prefix"
22199 prefix="$acl_save_prefix"
22202 # Check whether --with-libpth-prefix was given.
22203 if test "${with_libpth_prefix+set}" = set; then
22204 withval=$with_libpth_prefix;
22205 if test "X$withval" = "Xno"; then
22206 use_additional=no
22207 else
22208 if test "X$withval" = "X"; then
22210 acl_save_prefix="$prefix"
22211 prefix="$acl_final_prefix"
22212 acl_save_exec_prefix="$exec_prefix"
22213 exec_prefix="$acl_final_exec_prefix"
22215 eval additional_includedir=\"$includedir\"
22216 eval additional_libdir=\"$libdir\"
22218 exec_prefix="$acl_save_exec_prefix"
22219 prefix="$acl_save_prefix"
22221 else
22222 additional_includedir="$withval/include"
22223 additional_libdir="$withval/$acl_libdirstem"
22229 LIBPTH=
22230 LTLIBPTH=
22231 INCPTH=
22232 rpathdirs=
22233 ltrpathdirs=
22234 names_already_handled=
22235 names_next_round='pth '
22236 while test -n "$names_next_round"; do
22237 names_this_round="$names_next_round"
22238 names_next_round=
22239 for name in $names_this_round; do
22240 already_handled=
22241 for n in $names_already_handled; do
22242 if test "$n" = "$name"; then
22243 already_handled=yes
22244 break
22246 done
22247 if test -z "$already_handled"; then
22248 names_already_handled="$names_already_handled $name"
22249 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22250 eval value=\"\$HAVE_LIB$uppername\"
22251 if test -n "$value"; then
22252 if test "$value" = yes; then
22253 eval value=\"\$LIB$uppername\"
22254 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
22255 eval value=\"\$LTLIB$uppername\"
22256 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
22257 else
22260 else
22261 found_dir=
22262 found_la=
22263 found_so=
22264 found_a=
22265 if test $use_additional = yes; then
22266 if test -n "$shlibext" \
22267 && { test -f "$additional_libdir/lib$name.$shlibext" \
22268 || { test "$shlibext" = dll \
22269 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
22270 found_dir="$additional_libdir"
22271 if test -f "$additional_libdir/lib$name.$shlibext"; then
22272 found_so="$additional_libdir/lib$name.$shlibext"
22273 else
22274 found_so="$additional_libdir/lib$name.dll.a"
22276 if test -f "$additional_libdir/lib$name.la"; then
22277 found_la="$additional_libdir/lib$name.la"
22279 else
22280 if test -f "$additional_libdir/lib$name.$libext"; then
22281 found_dir="$additional_libdir"
22282 found_a="$additional_libdir/lib$name.$libext"
22283 if test -f "$additional_libdir/lib$name.la"; then
22284 found_la="$additional_libdir/lib$name.la"
22289 if test "X$found_dir" = "X"; then
22290 for x in $LDFLAGS $LTLIBPTH; do
22292 acl_save_prefix="$prefix"
22293 prefix="$acl_final_prefix"
22294 acl_save_exec_prefix="$exec_prefix"
22295 exec_prefix="$acl_final_exec_prefix"
22296 eval x=\"$x\"
22297 exec_prefix="$acl_save_exec_prefix"
22298 prefix="$acl_save_prefix"
22300 case "$x" in
22301 -L*)
22302 dir=`echo "X$x" | sed -e 's/^X-L//'`
22303 if test -n "$shlibext" \
22304 && { test -f "$dir/lib$name.$shlibext" \
22305 || { test "$shlibext" = dll \
22306 && test -f "$dir/lib$name.dll.a"; }; }; then
22307 found_dir="$dir"
22308 if test -f "$dir/lib$name.$shlibext"; then
22309 found_so="$dir/lib$name.$shlibext"
22310 else
22311 found_so="$dir/lib$name.dll.a"
22313 if test -f "$dir/lib$name.la"; then
22314 found_la="$dir/lib$name.la"
22316 else
22317 if test -f "$dir/lib$name.$libext"; then
22318 found_dir="$dir"
22319 found_a="$dir/lib$name.$libext"
22320 if test -f "$dir/lib$name.la"; then
22321 found_la="$dir/lib$name.la"
22326 esac
22327 if test "X$found_dir" != "X"; then
22328 break
22330 done
22332 if test "X$found_dir" != "X"; then
22333 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
22334 if test "X$found_so" != "X"; then
22335 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22336 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22337 else
22338 haveit=
22339 for x in $ltrpathdirs; do
22340 if test "X$x" = "X$found_dir"; then
22341 haveit=yes
22342 break
22344 done
22345 if test -z "$haveit"; then
22346 ltrpathdirs="$ltrpathdirs $found_dir"
22348 if test "$hardcode_direct" = yes; then
22349 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22350 else
22351 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22352 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22353 haveit=
22354 for x in $rpathdirs; do
22355 if test "X$x" = "X$found_dir"; then
22356 haveit=yes
22357 break
22359 done
22360 if test -z "$haveit"; then
22361 rpathdirs="$rpathdirs $found_dir"
22363 else
22364 haveit=
22365 for x in $LDFLAGS $LIBPTH; do
22367 acl_save_prefix="$prefix"
22368 prefix="$acl_final_prefix"
22369 acl_save_exec_prefix="$exec_prefix"
22370 exec_prefix="$acl_final_exec_prefix"
22371 eval x=\"$x\"
22372 exec_prefix="$acl_save_exec_prefix"
22373 prefix="$acl_save_prefix"
22375 if test "X$x" = "X-L$found_dir"; then
22376 haveit=yes
22377 break
22379 done
22380 if test -z "$haveit"; then
22381 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
22383 if test "$hardcode_minus_L" != no; then
22384 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22385 else
22386 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
22391 else
22392 if test "X$found_a" != "X"; then
22393 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
22394 else
22395 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
22398 additional_includedir=
22399 case "$found_dir" in
22400 */$acl_libdirstem | */$acl_libdirstem/)
22401 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22402 additional_includedir="$basedir/include"
22404 esac
22405 if test "X$additional_includedir" != "X"; then
22406 if test "X$additional_includedir" != "X/usr/include"; then
22407 haveit=
22408 if test "X$additional_includedir" = "X/usr/local/include"; then
22409 if test -n "$GCC"; then
22410 case $host_os in
22411 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22412 esac
22415 if test -z "$haveit"; then
22416 for x in $CPPFLAGS $INCPTH; do
22418 acl_save_prefix="$prefix"
22419 prefix="$acl_final_prefix"
22420 acl_save_exec_prefix="$exec_prefix"
22421 exec_prefix="$acl_final_exec_prefix"
22422 eval x=\"$x\"
22423 exec_prefix="$acl_save_exec_prefix"
22424 prefix="$acl_save_prefix"
22426 if test "X$x" = "X-I$additional_includedir"; then
22427 haveit=yes
22428 break
22430 done
22431 if test -z "$haveit"; then
22432 if test -d "$additional_includedir"; then
22433 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
22439 if test -n "$found_la"; then
22440 save_libdir="$libdir"
22441 case "$found_la" in
22442 */* | *\\*) . "$found_la" ;;
22443 *) . "./$found_la" ;;
22444 esac
22445 libdir="$save_libdir"
22446 for dep in $dependency_libs; do
22447 case "$dep" in
22448 -L*)
22449 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22450 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22451 haveit=
22452 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22453 if test -n "$GCC"; then
22454 case $host_os in
22455 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22456 esac
22459 if test -z "$haveit"; then
22460 haveit=
22461 for x in $LDFLAGS $LIBPTH; do
22463 acl_save_prefix="$prefix"
22464 prefix="$acl_final_prefix"
22465 acl_save_exec_prefix="$exec_prefix"
22466 exec_prefix="$acl_final_exec_prefix"
22467 eval x=\"$x\"
22468 exec_prefix="$acl_save_exec_prefix"
22469 prefix="$acl_save_prefix"
22471 if test "X$x" = "X-L$additional_libdir"; then
22472 haveit=yes
22473 break
22475 done
22476 if test -z "$haveit"; then
22477 if test -d "$additional_libdir"; then
22478 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
22481 haveit=
22482 for x in $LDFLAGS $LTLIBPTH; do
22484 acl_save_prefix="$prefix"
22485 prefix="$acl_final_prefix"
22486 acl_save_exec_prefix="$exec_prefix"
22487 exec_prefix="$acl_final_exec_prefix"
22488 eval x=\"$x\"
22489 exec_prefix="$acl_save_exec_prefix"
22490 prefix="$acl_save_prefix"
22492 if test "X$x" = "X-L$additional_libdir"; then
22493 haveit=yes
22494 break
22496 done
22497 if test -z "$haveit"; then
22498 if test -d "$additional_libdir"; then
22499 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
22505 -R*)
22506 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22507 if test "$enable_rpath" != no; then
22508 haveit=
22509 for x in $rpathdirs; do
22510 if test "X$x" = "X$dir"; then
22511 haveit=yes
22512 break
22514 done
22515 if test -z "$haveit"; then
22516 rpathdirs="$rpathdirs $dir"
22518 haveit=
22519 for x in $ltrpathdirs; do
22520 if test "X$x" = "X$dir"; then
22521 haveit=yes
22522 break
22524 done
22525 if test -z "$haveit"; then
22526 ltrpathdirs="$ltrpathdirs $dir"
22530 -l*)
22531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22533 *.la)
22534 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22537 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
22538 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
22540 esac
22541 done
22543 else
22544 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
22545 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
22549 done
22550 done
22551 if test "X$rpathdirs" != "X"; then
22552 if test -n "$hardcode_libdir_separator"; then
22553 alldirs=
22554 for found_dir in $rpathdirs; do
22555 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22556 done
22557 acl_save_libdir="$libdir"
22558 libdir="$alldirs"
22559 eval flag=\"$hardcode_libdir_flag_spec\"
22560 libdir="$acl_save_libdir"
22561 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
22562 else
22563 for found_dir in $rpathdirs; do
22564 acl_save_libdir="$libdir"
22565 libdir="$found_dir"
22566 eval flag=\"$hardcode_libdir_flag_spec\"
22567 libdir="$acl_save_libdir"
22568 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
22569 done
22572 if test "X$ltrpathdirs" != "X"; then
22573 for found_dir in $ltrpathdirs; do
22574 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
22575 done
22578 ac_cv_libpth_libs="$LIBPTH"
22579 ac_cv_libpth_ltlibs="$LTLIBPTH"
22580 ac_cv_libpth_cppflags="$INCPTH"
22583 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
22584 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
22585 LIBPTH="$ac_cv_libpth_libs"
22586 LTLIBPTH="$ac_cv_libpth_ltlibs"
22587 INCPTH="$ac_cv_libpth_cppflags"
22589 for element in $INCPTH; do
22590 haveit=
22591 for x in $CPPFLAGS; do
22593 acl_save_prefix="$prefix"
22594 prefix="$acl_final_prefix"
22595 acl_save_exec_prefix="$exec_prefix"
22596 exec_prefix="$acl_final_exec_prefix"
22597 eval x=\"$x\"
22598 exec_prefix="$acl_save_exec_prefix"
22599 prefix="$acl_save_prefix"
22601 if test "X$x" = "X$element"; then
22602 haveit=yes
22603 break
22605 done
22606 if test -z "$haveit"; then
22607 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22609 done
22613 HAVE_LIBPTH=yes
22617 gl_have_pth=
22618 gl_save_LIBS="$LIBS"
22619 LIBS="$LIBS -lpth"
22620 cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h. */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 #include <pth.h>
22628 main ()
22630 pth_self();
22632 return 0;
22634 _ACEOF
22635 rm -f conftest.$ac_objext conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_link") 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest$ac_exeext &&
22652 $as_test_x conftest$ac_exeext; then
22653 gl_have_pth=yes
22654 else
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22662 conftest$ac_exeext conftest.$ac_ext
22663 LIBS="$gl_save_LIBS"
22664 if test -n "$gl_have_pth"; then
22665 gl_threads_api=pth
22666 LIBTHREAD="$LIBPTH"
22667 LTLIBTHREAD="$LTLIBPTH"
22668 LIBMULTITHREAD="$LIBTHREAD"
22669 LTLIBMULTITHREAD="$LTLIBTHREAD"
22671 cat >>confdefs.h <<\_ACEOF
22672 #define USE_PTH_THREADS 1
22673 _ACEOF
22675 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
22676 if test $gl_have_weak = yes; then
22678 cat >>confdefs.h <<\_ACEOF
22679 #define USE_PTH_THREADS_WEAK 1
22680 _ACEOF
22682 LIBTHREAD=
22683 LTLIBTHREAD=
22686 else
22687 CPPFLAGS="$gl_save_CPPFLAGS"
22690 if test -z "$gl_have_pthread"; then
22691 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
22692 if { case "$host_os" in
22693 mingw*) true;;
22694 *) false;;
22695 esac
22696 }; then
22697 gl_threads_api=win32
22699 cat >>confdefs.h <<\_ACEOF
22700 #define USE_WIN32_THREADS 1
22701 _ACEOF
22707 { echo "$as_me:$LINENO: checking for multithread API to use" >&5
22708 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
22709 { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
22710 echo "${ECHO_T}$gl_threads_api" >&6; }
22726 cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h. */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
22734 main ()
22738 return 0;
22740 _ACEOF
22741 rm -f conftest.$ac_objext conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>conftest.er1
22749 ac_status=$?
22750 grep -v '^ *+' conftest.er1 >conftest.err
22751 rm -f conftest.er1
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest$ac_exeext &&
22758 $as_test_x conftest$ac_exeext; then
22760 cat >>confdefs.h <<\_ACEOF
22761 #define HAVE_BUILTIN_EXPECT 1
22762 _ACEOF
22764 else
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22772 conftest$ac_exeext conftest.$ac_ext
22779 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
22781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
22788 ac_res=`eval echo '${'$as_ac_Header'}'`
22789 { echo "$as_me:$LINENO: result: $ac_res" >&5
22790 echo "${ECHO_T}$ac_res" >&6; }
22791 else
22792 # Is the header compilable?
22793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h. */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 $ac_includes_default
22802 #include <$ac_header>
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (ac_try="$ac_compile"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22812 ac_status=$?
22813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
22821 ac_header_compiler=yes
22822 else
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_header_compiler=no
22829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22831 echo "${ECHO_T}$ac_header_compiler" >&6; }
22833 # Is the header present?
22834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h. */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 #include <$ac_header>
22843 _ACEOF
22844 if { (ac_try="$ac_cpp conftest.$ac_ext"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } >/dev/null && {
22857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 }; then
22860 ac_header_preproc=yes
22861 else
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_header_preproc=no
22868 rm -f conftest.err conftest.$ac_ext
22869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22870 echo "${ECHO_T}$ac_header_preproc" >&6; }
22872 # So? What about this header?
22873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22874 yes:no: )
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22879 ac_header_preproc=yes
22881 no:yes:* )
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22896 esac
22897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902 eval "$as_ac_Header=\$ac_header_preproc"
22904 ac_res=`eval echo '${'$as_ac_Header'}'`
22905 { echo "$as_me:$LINENO: result: $ac_res" >&5
22906 echo "${ECHO_T}$ac_res" >&6; }
22909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22910 cat >>confdefs.h <<_ACEOF
22911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22912 _ACEOF
22916 done
22934 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
22935 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
22936 argz_next __fsetlocking
22938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 else
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h. */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22952 #define $ac_func innocuous_$ac_func
22954 /* System header to define __stub macros and hopefully few prototypes,
22955 which can conflict with char $ac_func (); below.
22956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22957 <limits.h> exists even on freestanding compilers. */
22959 #ifdef __STDC__
22960 # include <limits.h>
22961 #else
22962 # include <assert.h>
22963 #endif
22965 #undef $ac_func
22967 /* Override any GCC internal prototype to avoid an error.
22968 Use char because int might match the return type of a GCC
22969 builtin and then its argument prototype would still apply. */
22970 #ifdef __cplusplus
22971 extern "C"
22972 #endif
22973 char $ac_func ();
22974 /* The GNU C library defines this for functions which it implements
22975 to always fail with ENOSYS. Some functions are actually named
22976 something starting with __ and the normal name is an alias. */
22977 #if defined __stub_$ac_func || defined __stub___$ac_func
22978 choke me
22979 #endif
22982 main ()
22984 return $ac_func ();
22986 return 0;
22988 _ACEOF
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (ac_try="$ac_link"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_link") 2>conftest.er1
22997 ac_status=$?
22998 grep -v '^ *+' conftest.er1 >conftest.err
22999 rm -f conftest.er1
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest$ac_exeext &&
23006 $as_test_x conftest$ac_exeext; then
23007 eval "$as_ac_var=yes"
23008 else
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23012 eval "$as_ac_var=no"
23015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23016 conftest$ac_exeext conftest.$ac_ext
23018 ac_res=`eval echo '${'$as_ac_var'}'`
23019 { echo "$as_me:$LINENO: result: $ac_res" >&5
23020 echo "${ECHO_T}$ac_res" >&6; }
23021 if test `eval echo '${'$as_ac_var'}'` = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23024 _ACEOF
23027 done
23031 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
23032 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
23033 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 #include <stdio.h>
23044 main ()
23047 #ifndef feof_unlocked
23048 char *p = (char *) feof_unlocked;
23049 #endif
23052 return 0;
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23063 ac_status=$?
23064 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_cv_have_decl_feof_unlocked=yes
23073 else
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_cv_have_decl_feof_unlocked=no
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
23083 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
23084 if test $ac_cv_have_decl_feof_unlocked = yes; then
23085 gt_value=1
23086 else
23087 gt_value=0
23090 cat >>confdefs.h <<_ACEOF
23091 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
23092 _ACEOF
23096 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23097 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
23098 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 #include <stdio.h>
23109 main ()
23112 #ifndef fgets_unlocked
23113 char *p = (char *) fgets_unlocked;
23114 #endif
23117 return 0;
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23137 ac_cv_have_decl_fgets_unlocked=yes
23138 else
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 ac_cv_have_decl_fgets_unlocked=no
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23148 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
23149 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23150 gt_value=1
23151 else
23152 gt_value=0
23155 cat >>confdefs.h <<_ACEOF
23156 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23157 _ACEOF
23164 # Check whether --with-libiconv-prefix was given.
23165 if test "${with_libiconv_prefix+set}" = set; then
23166 withval=$with_libiconv_prefix;
23167 for dir in `echo "$withval" | tr : ' '`; do
23168 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23169 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23170 done
23175 { echo "$as_me:$LINENO: checking for iconv" >&5
23176 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
23177 if test "${am_cv_func_iconv+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23181 am_cv_func_iconv="no, consider installing GNU libiconv"
23182 am_cv_lib_iconv=no
23183 cat >conftest.$ac_ext <<_ACEOF
23184 /* confdefs.h. */
23185 _ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 #include <stdlib.h>
23190 #include <iconv.h>
23192 main ()
23194 iconv_t cd = iconv_open("","");
23195 iconv(cd,NULL,NULL,NULL,NULL);
23196 iconv_close(cd);
23198 return 0;
23200 _ACEOF
23201 rm -f conftest.$ac_objext conftest$ac_exeext
23202 if { (ac_try="$ac_link"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_link") 2>conftest.er1
23209 ac_status=$?
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest$ac_exeext &&
23218 $as_test_x conftest$ac_exeext; then
23219 am_cv_func_iconv=yes
23220 else
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23228 conftest$ac_exeext conftest.$ac_ext
23229 if test "$am_cv_func_iconv" != yes; then
23230 am_save_LIBS="$LIBS"
23231 LIBS="$LIBS -liconv"
23232 cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h. */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 #include <stdlib.h>
23239 #include <iconv.h>
23241 main ()
23243 iconv_t cd = iconv_open("","");
23244 iconv(cd,NULL,NULL,NULL,NULL);
23245 iconv_close(cd);
23247 return 0;
23249 _ACEOF
23250 rm -f conftest.$ac_objext conftest$ac_exeext
23251 if { (ac_try="$ac_link"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_link") 2>conftest.er1
23258 ac_status=$?
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest$ac_exeext &&
23267 $as_test_x conftest$ac_exeext; then
23268 am_cv_lib_iconv=yes
23269 am_cv_func_iconv=yes
23270 else
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23278 conftest$ac_exeext conftest.$ac_ext
23279 LIBS="$am_save_LIBS"
23283 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23284 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
23285 if test "$am_cv_func_iconv" = yes; then
23287 cat >>confdefs.h <<\_ACEOF
23288 #define HAVE_ICONV 1
23289 _ACEOF
23291 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
23292 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
23293 if test "${am_cv_proto_iconv+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23297 cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h. */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23304 #include <stdlib.h>
23305 #include <iconv.h>
23306 extern
23307 #ifdef __cplusplus
23309 #endif
23310 #if defined(__STDC__) || defined(__cplusplus)
23311 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23312 #else
23313 size_t iconv();
23314 #endif
23317 main ()
23321 return 0;
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_compile") 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } && {
23338 test -z "$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23340 } && test -s conftest.$ac_objext; then
23341 am_cv_proto_iconv_arg1=""
23342 else
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 am_cv_proto_iconv_arg1="const"
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
23353 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23354 { echo "$as_me:$LINENO: result: ${ac_t:-
23355 }$am_cv_proto_iconv" >&5
23356 echo "${ECHO_T}${ac_t:-
23357 }$am_cv_proto_iconv" >&6; }
23359 cat >>confdefs.h <<_ACEOF
23360 #define ICONV_CONST $am_cv_proto_iconv_arg1
23361 _ACEOF
23364 LIBICONV=
23365 if test "$am_cv_lib_iconv" = yes; then
23366 LIBICONV="-liconv"
23371 { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
23372 echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
23373 if test "${gt_cv_nl_locale_name+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376 cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h. */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 #include <langinfo.h>
23383 #include <locale.h>
23385 main ()
23387 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
23389 return 0;
23391 _ACEOF
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (ac_try="$ac_link"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_link") 2>conftest.er1
23400 ac_status=$?
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest$ac_exeext &&
23409 $as_test_x conftest$ac_exeext; then
23410 gt_cv_nl_locale_name=yes
23411 else
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 gt_cv_nl_locale_name=no
23418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23419 conftest$ac_exeext conftest.$ac_ext
23422 { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
23423 echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
23424 if test $gt_cv_nl_locale_name = yes; then
23426 cat >>confdefs.h <<\_ACEOF
23427 #define HAVE_NL_LOCALE_NAME 1
23428 _ACEOF
23432 for ac_prog in bison
23434 # Extract the first word of "$ac_prog", so it can be a program name with args.
23435 set dummy $ac_prog; ac_word=$2
23436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23438 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 else
23441 if test -n "$INTLBISON"; then
23442 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23443 else
23444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23445 for as_dir in $PATH
23447 IFS=$as_save_IFS
23448 test -z "$as_dir" && as_dir=.
23449 for ac_exec_ext in '' $ac_executable_extensions; do
23450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23451 ac_cv_prog_INTLBISON="$ac_prog"
23452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23453 break 2
23455 done
23456 done
23457 IFS=$as_save_IFS
23461 INTLBISON=$ac_cv_prog_INTLBISON
23462 if test -n "$INTLBISON"; then
23463 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23464 echo "${ECHO_T}$INTLBISON" >&6; }
23465 else
23466 { echo "$as_me:$LINENO: result: no" >&5
23467 echo "${ECHO_T}no" >&6; }
23471 test -n "$INTLBISON" && break
23472 done
23474 if test -z "$INTLBISON"; then
23475 ac_verc_fail=yes
23476 else
23477 { echo "$as_me:$LINENO: checking version of bison" >&5
23478 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23479 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23480 case $ac_prog_version in
23481 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23482 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23483 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23484 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23485 esac
23486 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23487 echo "${ECHO_T}$ac_prog_version" >&6; }
23489 if test $ac_verc_fail = yes; then
23490 INTLBISON=:
23494 { echo "$as_me:$LINENO: checking for long long int" >&5
23495 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23496 if test "${ac_cv_type_long_long_int+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 long long int ll = 9223372036854775807ll;
23506 long long int nll = -9223372036854775807LL;
23507 typedef int a[((-9223372036854775807LL < 0
23508 && 0 < 9223372036854775807ll)
23509 ? 1 : -1)];
23510 int i = 63;
23512 main ()
23514 long long int llmax = 9223372036854775807ll;
23515 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23516 | (llmax / ll) | (llmax % ll));
23518 return 0;
23520 _ACEOF
23521 rm -f conftest.$ac_objext conftest$ac_exeext
23522 if { (ac_try="$ac_link"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_link") 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest$ac_exeext &&
23538 $as_test_x conftest$ac_exeext; then
23539 ac_cv_type_long_long_int=yes
23540 else
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_type_long_long_int=no
23547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23548 conftest$ac_exeext conftest.$ac_ext
23550 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23551 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23552 if test $ac_cv_type_long_long_int = yes; then
23554 cat >>confdefs.h <<\_ACEOF
23555 #define HAVE_LONG_LONG_INT 1
23556 _ACEOF
23561 { echo "$as_me:$LINENO: checking for long double" >&5
23562 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
23563 if test "${gt_cv_c_long_double+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566 if test "$GCC" = yes; then
23567 gt_cv_c_long_double=yes
23568 else
23569 cat >conftest.$ac_ext <<_ACEOF
23570 /* confdefs.h. */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23576 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
23577 long double foo = 0.0;
23578 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23579 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23582 main ()
23586 return 0;
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593 *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596 (eval "$ac_compile") 2>conftest.er1
23597 ac_status=$?
23598 grep -v '^ *+' conftest.er1 >conftest.err
23599 rm -f conftest.er1
23600 cat conftest.err >&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } && {
23603 test -z "$ac_c_werror_flag" ||
23604 test ! -s conftest.err
23605 } && test -s conftest.$ac_objext; then
23606 gt_cv_c_long_double=yes
23607 else
23608 echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23611 gt_cv_c_long_double=no
23614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23618 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
23619 if test $gt_cv_c_long_double = yes; then
23621 cat >>confdefs.h <<\_ACEOF
23622 #define HAVE_LONG_DOUBLE 1
23623 _ACEOF
23628 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23629 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23630 if test "${gt_cv_c_wchar_t+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <stddef.h>
23640 wchar_t foo = (wchar_t)'\0';
23642 main ()
23646 return 0;
23648 _ACEOF
23649 rm -f conftest.$ac_objext
23650 if { (ac_try="$ac_compile"
23651 case "(($ac_try" in
23652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23654 esac
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23657 ac_status=$?
23658 grep -v '^ *+' conftest.er1 >conftest.err
23659 rm -f conftest.er1
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 gt_cv_c_wchar_t=yes
23667 else
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 gt_cv_c_wchar_t=no
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23676 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
23677 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
23678 if test $gt_cv_c_wchar_t = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_WCHAR_T 1
23682 _ACEOF
23687 { echo "$as_me:$LINENO: checking for wint_t" >&5
23688 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
23689 if test "${gt_cv_c_wint_t+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 else
23692 cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h. */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <wchar.h>
23699 wint_t foo = (wchar_t)'\0';
23701 main ()
23705 return 0;
23707 _ACEOF
23708 rm -f conftest.$ac_objext
23709 if { (ac_try="$ac_compile"
23710 case "(($ac_try" in
23711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23712 *) ac_try_echo=$ac_try;;
23713 esac
23714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23715 (eval "$ac_compile") 2>conftest.er1
23716 ac_status=$?
23717 grep -v '^ *+' conftest.er1 >conftest.err
23718 rm -f conftest.er1
23719 cat conftest.err >&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } && {
23722 test -z "$ac_c_werror_flag" ||
23723 test ! -s conftest.err
23724 } && test -s conftest.$ac_objext; then
23725 gt_cv_c_wint_t=yes
23726 else
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23730 gt_cv_c_wint_t=no
23733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23735 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
23736 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
23737 if test $gt_cv_c_wint_t = yes; then
23739 cat >>confdefs.h <<\_ACEOF
23740 #define HAVE_WINT_T 1
23741 _ACEOF
23748 { echo "$as_me:$LINENO: checking for intmax_t" >&5
23749 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
23750 if test "${gt_cv_c_intmax_t+set}" = set; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753 cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h. */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23760 #include <stddef.h>
23761 #include <stdlib.h>
23762 #if HAVE_STDINT_H_WITH_UINTMAX
23763 #include <stdint.h>
23764 #endif
23765 #if HAVE_INTTYPES_H_WITH_UINTMAX
23766 #include <inttypes.h>
23767 #endif
23770 main ()
23772 intmax_t x = -1;
23773 return !x;
23775 return 0;
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23786 ac_status=$?
23787 grep -v '^ *+' conftest.er1 >conftest.err
23788 rm -f conftest.er1
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.$ac_objext; then
23795 gt_cv_c_intmax_t=yes
23796 else
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 gt_cv_c_intmax_t=no
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23806 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
23807 if test $gt_cv_c_intmax_t = yes; then
23809 cat >>confdefs.h <<\_ACEOF
23810 #define HAVE_INTMAX_T 1
23811 _ACEOF
23817 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
23818 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
23819 if test "${gt_cv_func_printf_posix+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23821 else
23823 if test "$cross_compiling" = yes; then
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23832 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
23833 notposix
23834 #endif
23836 _ACEOF
23837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23838 $EGREP "notposix" >/dev/null 2>&1; then
23839 gt_cv_func_printf_posix="guessing no"
23840 else
23841 gt_cv_func_printf_posix="guessing yes"
23843 rm -f conftest*
23846 else
23847 cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h. */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23854 #include <stdio.h>
23855 #include <string.h>
23856 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23857 dollar expansion (possibly an autoconf bug). */
23858 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23859 static char buf[100];
23860 int main ()
23862 sprintf (buf, format, 33, 55);
23863 return (strcmp (buf, "55 33") != 0);
23865 _ACEOF
23866 rm -f conftest$ac_exeext
23867 if { (ac_try="$ac_link"
23868 case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871 esac
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_link") 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23877 { (case "(($ac_try" in
23878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23880 esac
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_try") 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 gt_cv_func_printf_posix=yes
23887 else
23888 echo "$as_me: program exited with status $ac_status" >&5
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23892 ( exit $ac_status )
23893 gt_cv_func_printf_posix=no
23895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23901 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
23902 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
23903 case $gt_cv_func_printf_posix in
23904 *yes)
23906 cat >>confdefs.h <<\_ACEOF
23907 #define HAVE_POSIX_PRINTF 1
23908 _ACEOF
23911 esac
23914 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
23915 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
23916 if test "${ac_cv_gnu_library_2_1+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919 cat >conftest.$ac_ext <<_ACEOF
23920 /* confdefs.h. */
23921 _ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23926 #include <features.h>
23927 #ifdef __GNU_LIBRARY__
23928 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
23929 Lucky GNU user
23930 #endif
23931 #endif
23933 _ACEOF
23934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23935 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
23936 ac_cv_gnu_library_2_1=yes
23937 else
23938 ac_cv_gnu_library_2_1=no
23940 rm -f conftest*
23945 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
23946 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
23948 GLIBC21="$ac_cv_gnu_library_2_1"
23953 for ac_header in stdint.h
23955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23960 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 ac_res=`eval echo '${'$as_ac_Header'}'`
23963 { echo "$as_me:$LINENO: result: $ac_res" >&5
23964 echo "${ECHO_T}$ac_res" >&6; }
23965 else
23966 # Is the header compilable?
23967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h. */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 $ac_includes_default
23976 #include <$ac_header>
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23983 esac
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_compile") 2>conftest.er1
23986 ac_status=$?
23987 grep -v '^ *+' conftest.er1 >conftest.err
23988 rm -f conftest.er1
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } && {
23992 test -z "$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23994 } && test -s conftest.$ac_objext; then
23995 ac_header_compiler=yes
23996 else
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ac_header_compiler=no
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24005 echo "${ECHO_T}$ac_header_compiler" >&6; }
24007 # Is the header present?
24008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24010 cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h. */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24016 #include <$ac_header>
24017 _ACEOF
24018 if { (ac_try="$ac_cpp conftest.$ac_ext"
24019 case "(($ac_try" in
24020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021 *) ac_try_echo=$ac_try;;
24022 esac
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24025 ac_status=$?
24026 grep -v '^ *+' conftest.er1 >conftest.err
24027 rm -f conftest.er1
24028 cat conftest.err >&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } >/dev/null && {
24031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24033 }; then
24034 ac_header_preproc=yes
24035 else
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 ac_header_preproc=no
24042 rm -f conftest.err conftest.$ac_ext
24043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24044 echo "${ECHO_T}$ac_header_preproc" >&6; }
24046 # So? What about this header?
24047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24048 yes:no: )
24049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24053 ac_header_preproc=yes
24055 no:yes:* )
24056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24070 esac
24071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6
24075 else
24076 eval "$as_ac_Header=\$ac_header_preproc"
24078 ac_res=`eval echo '${'$as_ac_Header'}'`
24079 { echo "$as_me:$LINENO: result: $ac_res" >&5
24080 echo "${ECHO_T}$ac_res" >&6; }
24083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24084 cat >>confdefs.h <<_ACEOF
24085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24086 _ACEOF
24090 done
24092 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
24093 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
24094 if test "${gl_cv_size_max+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24098 gl_cv_size_max=
24099 cat >conftest.$ac_ext <<_ACEOF
24100 /* confdefs.h. */
24101 _ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h. */
24106 #include <limits.h>
24107 #if HAVE_STDINT_H
24108 #include <stdint.h>
24109 #endif
24110 #ifdef SIZE_MAX
24111 Found it
24112 #endif
24114 _ACEOF
24115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24116 $EGREP "Found it" >/dev/null 2>&1; then
24117 gl_cv_size_max=yes
24119 rm -f conftest*
24121 if test -z "$gl_cv_size_max"; then
24122 if test "$cross_compiling" = yes; then
24123 # Depending upon the size, compute the lo and hi bounds.
24124 cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h. */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 #include <stddef.h>
24131 #include <limits.h>
24133 main ()
24135 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
24136 test_array [0] = 0
24139 return 0;
24141 _ACEOF
24142 rm -f conftest.$ac_objext
24143 if { (ac_try="$ac_compile"
24144 case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24147 esac
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_compile") 2>conftest.er1
24150 ac_status=$?
24151 grep -v '^ *+' conftest.er1 >conftest.err
24152 rm -f conftest.er1
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } && {
24156 test -z "$ac_c_werror_flag" ||
24157 test ! -s conftest.err
24158 } && test -s conftest.$ac_objext; then
24159 ac_lo=0 ac_mid=0
24160 while :; do
24161 cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h. */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 #include <stddef.h>
24168 #include <limits.h>
24170 main ()
24172 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
24173 test_array [0] = 0
24176 return 0;
24178 _ACEOF
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24184 esac
24185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24186 (eval "$ac_compile") 2>conftest.er1
24187 ac_status=$?
24188 grep -v '^ *+' conftest.er1 >conftest.err
24189 rm -f conftest.er1
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } && {
24193 test -z "$ac_c_werror_flag" ||
24194 test ! -s conftest.err
24195 } && test -s conftest.$ac_objext; then
24196 ac_hi=$ac_mid; break
24197 else
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ac_lo=`expr $ac_mid + 1`
24202 if test $ac_lo -le $ac_mid; then
24203 ac_lo= ac_hi=
24204 break
24206 ac_mid=`expr 2 '*' $ac_mid + 1`
24209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210 done
24211 else
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 cat >conftest.$ac_ext <<_ACEOF
24216 /* confdefs.h. */
24217 _ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h. */
24221 #include <stddef.h>
24222 #include <limits.h>
24224 main ()
24226 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
24227 test_array [0] = 0
24230 return 0;
24232 _ACEOF
24233 rm -f conftest.$ac_objext
24234 if { (ac_try="$ac_compile"
24235 case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24238 esac
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_compile") 2>conftest.er1
24241 ac_status=$?
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest.$ac_objext; then
24250 ac_hi=-1 ac_mid=-1
24251 while :; do
24252 cat >conftest.$ac_ext <<_ACEOF
24253 /* confdefs.h. */
24254 _ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24258 #include <stddef.h>
24259 #include <limits.h>
24261 main ()
24263 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
24264 test_array [0] = 0
24267 return 0;
24269 _ACEOF
24270 rm -f conftest.$ac_objext
24271 if { (ac_try="$ac_compile"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_compile") 2>conftest.er1
24278 ac_status=$?
24279 grep -v '^ *+' conftest.er1 >conftest.err
24280 rm -f conftest.er1
24281 cat conftest.err >&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } && {
24284 test -z "$ac_c_werror_flag" ||
24285 test ! -s conftest.err
24286 } && test -s conftest.$ac_objext; then
24287 ac_lo=$ac_mid; break
24288 else
24289 echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24292 ac_hi=`expr '(' $ac_mid ')' - 1`
24293 if test $ac_mid -le $ac_hi; then
24294 ac_lo= ac_hi=
24295 break
24297 ac_mid=`expr 2 '*' $ac_mid`
24300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301 done
24302 else
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24306 ac_lo= ac_hi=
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 # Binary search between lo and hi bounds.
24314 while test "x$ac_lo" != "x$ac_hi"; do
24315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24316 cat >conftest.$ac_ext <<_ACEOF
24317 /* confdefs.h. */
24318 _ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h. */
24322 #include <stddef.h>
24323 #include <limits.h>
24325 main ()
24327 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
24328 test_array [0] = 0
24331 return 0;
24333 _ACEOF
24334 rm -f conftest.$ac_objext
24335 if { (ac_try="$ac_compile"
24336 case "(($ac_try" in
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338 *) ac_try_echo=$ac_try;;
24339 esac
24340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24341 (eval "$ac_compile") 2>conftest.er1
24342 ac_status=$?
24343 grep -v '^ *+' conftest.er1 >conftest.err
24344 rm -f conftest.er1
24345 cat conftest.err >&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } && {
24348 test -z "$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24350 } && test -s conftest.$ac_objext; then
24351 ac_hi=$ac_mid
24352 else
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_lo=`expr '(' $ac_mid ')' + 1`
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24360 done
24361 case $ac_lo in
24362 ?*) size_t_bits_minus_1=$ac_lo;;
24363 '') size_t_bits_minus_1= ;;
24364 esac
24365 else
24366 cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h. */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24372 #include <stddef.h>
24373 #include <limits.h>
24374 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
24375 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
24376 #include <stdio.h>
24377 #include <stdlib.h>
24379 main ()
24382 FILE *f = fopen ("conftest.val", "w");
24383 if (! f)
24384 return 1;
24385 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
24387 long int i = longval ();
24388 if (i != (sizeof (size_t) * CHAR_BIT - 1))
24389 return 1;
24390 fprintf (f, "%ld\n", i);
24392 else
24394 unsigned long int i = ulongval ();
24395 if (i != (sizeof (size_t) * CHAR_BIT - 1))
24396 return 1;
24397 fprintf (f, "%lu\n", i);
24399 return ferror (f) || fclose (f) != 0;
24402 return 0;
24404 _ACEOF
24405 rm -f conftest$ac_exeext
24406 if { (ac_try="$ac_link"
24407 case "(($ac_try" in
24408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24410 esac
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_link") 2>&5
24413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24416 { (case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24419 esac
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_try") 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 size_t_bits_minus_1=`cat conftest.val`
24426 else
24427 echo "$as_me: program exited with status $ac_status" >&5
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ( exit $ac_status )
24432 size_t_bits_minus_1=
24434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24436 rm -f conftest.val
24438 if test "$cross_compiling" = yes; then
24439 # Depending upon the size, compute the lo and hi bounds.
24440 cat >conftest.$ac_ext <<_ACEOF
24441 /* confdefs.h. */
24442 _ACEOF
24443 cat confdefs.h >>conftest.$ac_ext
24444 cat >>conftest.$ac_ext <<_ACEOF
24445 /* end confdefs.h. */
24446 #include <stddef.h>
24448 main ()
24450 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
24451 test_array [0] = 0
24454 return 0;
24456 _ACEOF
24457 rm -f conftest.$ac_objext
24458 if { (ac_try="$ac_compile"
24459 case "(($ac_try" in
24460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461 *) ac_try_echo=$ac_try;;
24462 esac
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464 (eval "$ac_compile") 2>conftest.er1
24465 ac_status=$?
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest.$ac_objext; then
24474 ac_lo=0 ac_mid=0
24475 while :; do
24476 cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h. */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 #include <stddef.h>
24484 main ()
24486 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24487 test_array [0] = 0
24490 return 0;
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
24510 ac_hi=$ac_mid; break
24511 else
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24515 ac_lo=`expr $ac_mid + 1`
24516 if test $ac_lo -le $ac_mid; then
24517 ac_lo= ac_hi=
24518 break
24520 ac_mid=`expr 2 '*' $ac_mid + 1`
24523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524 done
24525 else
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24529 cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h. */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24535 #include <stddef.h>
24537 main ()
24539 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
24540 test_array [0] = 0
24543 return 0;
24545 _ACEOF
24546 rm -f conftest.$ac_objext
24547 if { (ac_try="$ac_compile"
24548 case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24551 esac
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_compile") 2>conftest.er1
24554 ac_status=$?
24555 grep -v '^ *+' conftest.er1 >conftest.err
24556 rm -f conftest.er1
24557 cat conftest.err >&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest.$ac_objext; then
24563 ac_hi=-1 ac_mid=-1
24564 while :; do
24565 cat >conftest.$ac_ext <<_ACEOF
24566 /* confdefs.h. */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 #include <stddef.h>
24573 main ()
24575 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
24576 test_array [0] = 0
24579 return 0;
24581 _ACEOF
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24590 ac_status=$?
24591 grep -v '^ *+' conftest.er1 >conftest.err
24592 rm -f conftest.er1
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest.$ac_objext; then
24599 ac_lo=$ac_mid; break
24600 else
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24604 ac_hi=`expr '(' $ac_mid ')' - 1`
24605 if test $ac_mid -le $ac_hi; then
24606 ac_lo= ac_hi=
24607 break
24609 ac_mid=`expr 2 '*' $ac_mid`
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 done
24614 else
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 ac_lo= ac_hi=
24621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625 # Binary search between lo and hi bounds.
24626 while test "x$ac_lo" != "x$ac_hi"; do
24627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24628 cat >conftest.$ac_ext <<_ACEOF
24629 /* confdefs.h. */
24630 _ACEOF
24631 cat confdefs.h >>conftest.$ac_ext
24632 cat >>conftest.$ac_ext <<_ACEOF
24633 /* end confdefs.h. */
24634 #include <stddef.h>
24636 main ()
24638 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24639 test_array [0] = 0
24642 return 0;
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (ac_try="$ac_compile"
24647 case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24650 esac
24651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652 (eval "$ac_compile") 2>conftest.er1
24653 ac_status=$?
24654 grep -v '^ *+' conftest.er1 >conftest.err
24655 rm -f conftest.er1
24656 cat conftest.err >&5
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } && {
24659 test -z "$ac_c_werror_flag" ||
24660 test ! -s conftest.err
24661 } && test -s conftest.$ac_objext; then
24662 ac_hi=$ac_mid
24663 else
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ac_lo=`expr '(' $ac_mid ')' + 1`
24670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 done
24672 case $ac_lo in
24673 ?*) fits_in_uint=$ac_lo;;
24674 '') fits_in_uint= ;;
24675 esac
24676 else
24677 cat >conftest.$ac_ext <<_ACEOF
24678 /* confdefs.h. */
24679 _ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24683 #include <stddef.h>
24684 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
24685 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
24686 #include <stdio.h>
24687 #include <stdlib.h>
24689 main ()
24692 FILE *f = fopen ("conftest.val", "w");
24693 if (! f)
24694 return 1;
24695 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
24697 long int i = longval ();
24698 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24699 return 1;
24700 fprintf (f, "%ld\n", i);
24702 else
24704 unsigned long int i = ulongval ();
24705 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24706 return 1;
24707 fprintf (f, "%lu\n", i);
24709 return ferror (f) || fclose (f) != 0;
24712 return 0;
24714 _ACEOF
24715 rm -f conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_link") 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24726 { (case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24729 esac
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_try") 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 fits_in_uint=`cat conftest.val`
24736 else
24737 echo "$as_me: program exited with status $ac_status" >&5
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ( exit $ac_status )
24742 fits_in_uint=
24744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24746 rm -f conftest.val
24748 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
24749 if test $fits_in_uint = 1; then
24750 cat >conftest.$ac_ext <<_ACEOF
24751 /* confdefs.h. */
24752 _ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h. */
24756 #include <stddef.h>
24757 extern size_t foo;
24758 extern unsigned long foo;
24761 main ()
24765 return 0;
24767 _ACEOF
24768 rm -f conftest.$ac_objext
24769 if { (ac_try="$ac_compile"
24770 case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24773 esac
24774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775 (eval "$ac_compile") 2>conftest.er1
24776 ac_status=$?
24777 grep -v '^ *+' conftest.er1 >conftest.err
24778 rm -f conftest.er1
24779 cat conftest.err >&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } && {
24782 test -z "$ac_c_werror_flag" ||
24783 test ! -s conftest.err
24784 } && test -s conftest.$ac_objext; then
24785 fits_in_uint=0
24786 else
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 if test $fits_in_uint = 1; then
24796 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
24797 else
24798 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
24800 else
24801 gl_cv_size_max='((size_t)~(size_t)0)'
24807 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
24808 echo "${ECHO_T}$gl_cv_size_max" >&6; }
24809 if test "$gl_cv_size_max" != yes; then
24811 cat >>confdefs.h <<_ACEOF
24812 #define SIZE_MAX $gl_cv_size_max
24813 _ACEOF
24821 for ac_header in stdint.h
24823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 ac_res=`eval echo '${'$as_ac_Header'}'`
24831 { echo "$as_me:$LINENO: result: $ac_res" >&5
24832 echo "${ECHO_T}$ac_res" >&6; }
24833 else
24834 # Is the header compilable?
24835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24837 cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h. */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 $ac_includes_default
24844 #include <$ac_header>
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_compile") 2>conftest.er1
24854 ac_status=$?
24855 grep -v '^ *+' conftest.er1 >conftest.err
24856 rm -f conftest.er1
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && {
24860 test -z "$ac_c_werror_flag" ||
24861 test ! -s conftest.err
24862 } && test -s conftest.$ac_objext; then
24863 ac_header_compiler=yes
24864 else
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 ac_header_compiler=no
24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24873 echo "${ECHO_T}$ac_header_compiler" >&6; }
24875 # Is the header present?
24876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24878 cat >conftest.$ac_ext <<_ACEOF
24879 /* confdefs.h. */
24880 _ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h. */
24884 #include <$ac_header>
24885 _ACEOF
24886 if { (ac_try="$ac_cpp conftest.$ac_ext"
24887 case "(($ac_try" in
24888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889 *) ac_try_echo=$ac_try;;
24890 esac
24891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24893 ac_status=$?
24894 grep -v '^ *+' conftest.er1 >conftest.err
24895 rm -f conftest.er1
24896 cat conftest.err >&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } >/dev/null && {
24899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24900 test ! -s conftest.err
24901 }; then
24902 ac_header_preproc=yes
24903 else
24904 echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24907 ac_header_preproc=no
24910 rm -f conftest.err conftest.$ac_ext
24911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24912 echo "${ECHO_T}$ac_header_preproc" >&6; }
24914 # So? What about this header?
24915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24916 yes:no: )
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24921 ac_header_preproc=yes
24923 no:yes:* )
24924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24938 esac
24939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24943 else
24944 eval "$as_ac_Header=\$ac_header_preproc"
24946 ac_res=`eval echo '${'$as_ac_Header'}'`
24947 { echo "$as_me:$LINENO: result: $ac_res" >&5
24948 echo "${ECHO_T}$ac_res" >&6; }
24951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24952 cat >>confdefs.h <<_ACEOF
24953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24954 _ACEOF
24958 done
24962 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24963 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
24964 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24965 echo $ECHO_N "(cached) $ECHO_C" >&6
24966 else
24967 gt_save_LIBS="$LIBS"
24968 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24969 cat >conftest.$ac_ext <<_ACEOF
24970 /* confdefs.h. */
24971 _ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h. */
24975 #include <CoreFoundation/CFPreferences.h>
24977 main ()
24979 CFPreferencesCopyAppValue(NULL, NULL)
24981 return 0;
24983 _ACEOF
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_link") 2>conftest.er1
24992 ac_status=$?
24993 grep -v '^ *+' conftest.er1 >conftest.err
24994 rm -f conftest.er1
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest$ac_exeext &&
25001 $as_test_x conftest$ac_exeext; then
25002 gt_cv_func_CFPreferencesCopyAppValue=yes
25003 else
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 gt_cv_func_CFPreferencesCopyAppValue=no
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011 conftest$ac_exeext conftest.$ac_ext
25012 LIBS="$gt_save_LIBS"
25014 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
25015 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
25016 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
25020 _ACEOF
25023 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
25024 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
25025 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028 gt_save_LIBS="$LIBS"
25029 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
25030 cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h. */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 #include <CoreFoundation/CFLocale.h>
25038 main ()
25040 CFLocaleCopyCurrent();
25042 return 0;
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_link") 2>conftest.er1
25053 ac_status=$?
25054 grep -v '^ *+' conftest.er1 >conftest.err
25055 rm -f conftest.er1
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest$ac_exeext &&
25062 $as_test_x conftest$ac_exeext; then
25063 gt_cv_func_CFLocaleCopyCurrent=yes
25064 else
25065 echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25068 gt_cv_func_CFLocaleCopyCurrent=no
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072 conftest$ac_exeext conftest.$ac_ext
25073 LIBS="$gt_save_LIBS"
25075 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
25076 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
25077 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_CFLOCALECOPYCURRENT 1
25081 _ACEOF
25084 INTL_MACOSX_LIBS=
25085 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25086 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
25095 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25096 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
25097 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100 cat >conftest.$ac_ext <<_ACEOF
25101 /* confdefs.h. */
25102 _ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 $ac_includes_default
25107 typedef ptrdiff_t ac__type_new_;
25109 main ()
25111 if ((ac__type_new_ *) 0)
25112 return 0;
25113 if (sizeof (ac__type_new_))
25114 return 0;
25116 return 0;
25118 _ACEOF
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25124 esac
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_compile") 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest.$ac_objext; then
25136 ac_cv_type_ptrdiff_t=yes
25137 else
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_type_ptrdiff_t=no
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25147 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
25148 if test $ac_cv_type_ptrdiff_t = yes; then
25150 else
25152 cat >>confdefs.h <<\_ACEOF
25153 #define ptrdiff_t long
25154 _ACEOF
25162 for ac_header in stddef.h stdlib.h string.h
25164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 ac_res=`eval echo '${'$as_ac_Header'}'`
25172 { echo "$as_me:$LINENO: result: $ac_res" >&5
25173 echo "${ECHO_T}$ac_res" >&6; }
25174 else
25175 # Is the header compilable?
25176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 $ac_includes_default
25185 #include <$ac_header>
25186 _ACEOF
25187 rm -f conftest.$ac_objext
25188 if { (ac_try="$ac_compile"
25189 case "(($ac_try" in
25190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191 *) ac_try_echo=$ac_try;;
25192 esac
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194 (eval "$ac_compile") 2>conftest.er1
25195 ac_status=$?
25196 grep -v '^ *+' conftest.er1 >conftest.err
25197 rm -f conftest.er1
25198 cat conftest.err >&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); } && {
25201 test -z "$ac_c_werror_flag" ||
25202 test ! -s conftest.err
25203 } && test -s conftest.$ac_objext; then
25204 ac_header_compiler=yes
25205 else
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25209 ac_header_compiler=no
25212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25214 echo "${ECHO_T}$ac_header_compiler" >&6; }
25216 # Is the header present?
25217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25219 cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h. */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 #include <$ac_header>
25226 _ACEOF
25227 if { (ac_try="$ac_cpp conftest.$ac_ext"
25228 case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25231 esac
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25234 ac_status=$?
25235 grep -v '^ *+' conftest.er1 >conftest.err
25236 rm -f conftest.er1
25237 cat conftest.err >&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } >/dev/null && {
25240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25241 test ! -s conftest.err
25242 }; then
25243 ac_header_preproc=yes
25244 else
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25248 ac_header_preproc=no
25251 rm -f conftest.err conftest.$ac_ext
25252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25253 echo "${ECHO_T}$ac_header_preproc" >&6; }
25255 # So? What about this header?
25256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25257 yes:no: )
25258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25262 ac_header_preproc=yes
25264 no:yes:* )
25265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25279 esac
25280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 else
25285 eval "$as_ac_Header=\$ac_header_preproc"
25287 ac_res=`eval echo '${'$as_ac_Header'}'`
25288 { echo "$as_me:$LINENO: result: $ac_res" >&5
25289 echo "${ECHO_T}$ac_res" >&6; }
25292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25293 cat >>confdefs.h <<_ACEOF
25294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25295 _ACEOF
25299 done
25308 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
25310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25315 else
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h. */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25324 #define $ac_func innocuous_$ac_func
25326 /* System header to define __stub macros and hopefully few prototypes,
25327 which can conflict with char $ac_func (); below.
25328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25329 <limits.h> exists even on freestanding compilers. */
25331 #ifdef __STDC__
25332 # include <limits.h>
25333 #else
25334 # include <assert.h>
25335 #endif
25337 #undef $ac_func
25339 /* Override any GCC internal prototype to avoid an error.
25340 Use char because int might match the return type of a GCC
25341 builtin and then its argument prototype would still apply. */
25342 #ifdef __cplusplus
25343 extern "C"
25344 #endif
25345 char $ac_func ();
25346 /* The GNU C library defines this for functions which it implements
25347 to always fail with ENOSYS. Some functions are actually named
25348 something starting with __ and the normal name is an alias. */
25349 #if defined __stub_$ac_func || defined __stub___$ac_func
25350 choke me
25351 #endif
25354 main ()
25356 return $ac_func ();
25358 return 0;
25360 _ACEOF
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (ac_try="$ac_link"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25366 esac
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_link") 2>conftest.er1
25369 ac_status=$?
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest$ac_exeext &&
25378 $as_test_x conftest$ac_exeext; then
25379 eval "$as_ac_var=yes"
25380 else
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 eval "$as_ac_var=no"
25387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25388 conftest$ac_exeext conftest.$ac_ext
25390 ac_res=`eval echo '${'$as_ac_var'}'`
25391 { echo "$as_me:$LINENO: result: $ac_res" >&5
25392 echo "${ECHO_T}$ac_res" >&6; }
25393 if test `eval echo '${'$as_ac_var'}'` = yes; then
25394 cat >>confdefs.h <<_ACEOF
25395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25396 _ACEOF
25399 done
25403 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
25404 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
25405 if test "${ac_cv_have_decl__snprintf+set}" = set; then
25406 echo $ECHO_N "(cached) $ECHO_C" >&6
25407 else
25408 cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h. */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25414 #include <stdio.h>
25416 main ()
25419 #ifndef _snprintf
25420 char *p = (char *) _snprintf;
25421 #endif
25424 return 0;
25426 _ACEOF
25427 rm -f conftest.$ac_objext
25428 if { (ac_try="$ac_compile"
25429 case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_compile") 2>conftest.er1
25435 ac_status=$?
25436 grep -v '^ *+' conftest.er1 >conftest.err
25437 rm -f conftest.er1
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && {
25441 test -z "$ac_c_werror_flag" ||
25442 test ! -s conftest.err
25443 } && test -s conftest.$ac_objext; then
25444 ac_cv_have_decl__snprintf=yes
25445 else
25446 echo "$as_me: failed program was:" >&5
25447 sed 's/^/| /' conftest.$ac_ext >&5
25449 ac_cv_have_decl__snprintf=no
25452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
25455 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
25456 if test $ac_cv_have_decl__snprintf = yes; then
25457 gt_value=1
25458 else
25459 gt_value=0
25462 cat >>confdefs.h <<_ACEOF
25463 #define HAVE_DECL__SNPRINTF $gt_value
25464 _ACEOF
25468 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
25469 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
25470 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h. */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #include <stdio.h>
25481 main ()
25484 #ifndef _snwprintf
25485 char *p = (char *) _snwprintf;
25486 #endif
25489 return 0;
25491 _ACEOF
25492 rm -f conftest.$ac_objext
25493 if { (ac_try="$ac_compile"
25494 case "(($ac_try" in
25495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25497 esac
25498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25499 (eval "$ac_compile") 2>conftest.er1
25500 ac_status=$?
25501 grep -v '^ *+' conftest.er1 >conftest.err
25502 rm -f conftest.er1
25503 cat conftest.err >&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest.$ac_objext; then
25509 ac_cv_have_decl__snwprintf=yes
25510 else
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25514 ac_cv_have_decl__snwprintf=no
25517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
25520 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
25521 if test $ac_cv_have_decl__snwprintf = yes; then
25522 gt_value=1
25523 else
25524 gt_value=0
25527 cat >>confdefs.h <<_ACEOF
25528 #define HAVE_DECL__SNWPRINTF $gt_value
25529 _ACEOF
25534 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25535 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
25536 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 else
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h. */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 #include <stdio.h>
25547 main ()
25550 #ifndef getc_unlocked
25551 char *p = (char *) getc_unlocked;
25552 #endif
25555 return 0;
25557 _ACEOF
25558 rm -f conftest.$ac_objext
25559 if { (ac_try="$ac_compile"
25560 case "(($ac_try" in
25561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25562 *) ac_try_echo=$ac_try;;
25563 esac
25564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25565 (eval "$ac_compile") 2>conftest.er1
25566 ac_status=$?
25567 grep -v '^ *+' conftest.er1 >conftest.err
25568 rm -f conftest.er1
25569 cat conftest.err >&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } && {
25572 test -z "$ac_c_werror_flag" ||
25573 test ! -s conftest.err
25574 } && test -s conftest.$ac_objext; then
25575 ac_cv_have_decl_getc_unlocked=yes
25576 else
25577 echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25580 ac_cv_have_decl_getc_unlocked=no
25583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25585 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
25586 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
25587 if test $ac_cv_have_decl_getc_unlocked = yes; then
25588 gt_value=1
25589 else
25590 gt_value=0
25593 cat >>confdefs.h <<_ACEOF
25594 #define HAVE_DECL_GETC_UNLOCKED $gt_value
25595 _ACEOF
25599 case $gt_cv_func_printf_posix in
25600 *yes) HAVE_POSIX_PRINTF=1 ;;
25601 *) HAVE_POSIX_PRINTF=0 ;;
25602 esac
25604 if test "$ac_cv_func_asprintf" = yes; then
25605 HAVE_ASPRINTF=1
25606 else
25607 HAVE_ASPRINTF=0
25610 if test "$ac_cv_func_snprintf" = yes; then
25611 HAVE_SNPRINTF=1
25612 else
25613 HAVE_SNPRINTF=0
25616 if test "$ac_cv_func_wprintf" = yes; then
25617 HAVE_WPRINTF=1
25618 else
25619 HAVE_WPRINTF=0
25624 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25625 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
25626 if test "${am_cv_langinfo_codeset+set}" = set; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25628 else
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h. */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <langinfo.h>
25637 main ()
25639 char* cs = nl_langinfo(CODESET);
25641 return 0;
25643 _ACEOF
25644 rm -f conftest.$ac_objext conftest$ac_exeext
25645 if { (ac_try="$ac_link"
25646 case "(($ac_try" in
25647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25648 *) ac_try_echo=$ac_try;;
25649 esac
25650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25651 (eval "$ac_link") 2>conftest.er1
25652 ac_status=$?
25653 grep -v '^ *+' conftest.er1 >conftest.err
25654 rm -f conftest.er1
25655 cat conftest.err >&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } && {
25658 test -z "$ac_c_werror_flag" ||
25659 test ! -s conftest.err
25660 } && test -s conftest$ac_exeext &&
25661 $as_test_x conftest$ac_exeext; then
25662 am_cv_langinfo_codeset=yes
25663 else
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25667 am_cv_langinfo_codeset=no
25670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25671 conftest$ac_exeext conftest.$ac_ext
25674 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
25675 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
25676 if test $am_cv_langinfo_codeset = yes; then
25678 cat >>confdefs.h <<\_ACEOF
25679 #define HAVE_LANGINFO_CODESET 1
25680 _ACEOF
25685 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
25686 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
25687 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25689 else
25690 cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h. */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h. */
25696 #include <locale.h>
25698 main ()
25700 return LC_MESSAGES
25702 return 0;
25704 _ACEOF
25705 rm -f conftest.$ac_objext conftest$ac_exeext
25706 if { (ac_try="$ac_link"
25707 case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25710 esac
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_link") 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest$ac_exeext &&
25722 $as_test_x conftest$ac_exeext; then
25723 gt_cv_val_LC_MESSAGES=yes
25724 else
25725 echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25728 gt_cv_val_LC_MESSAGES=no
25731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25732 conftest$ac_exeext conftest.$ac_ext
25734 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
25735 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
25736 if test $gt_cv_val_LC_MESSAGES = yes; then
25738 cat >>confdefs.h <<\_ACEOF
25739 #define HAVE_LC_MESSAGES 1
25740 _ACEOF
25745 if test "$enable_shared" = yes; then
25746 case "$host_os" in
25747 cygwin*) is_woe32dll=yes ;;
25748 *) is_woe32dll=no ;;
25749 esac
25750 else
25751 is_woe32dll=no
25753 WOE32DLL=$is_woe32dll
25781 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
25782 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
25783 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25785 else
25786 gt_save_LIBS="$LIBS"
25787 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
25788 cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h. */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 #include <CoreFoundation/CFPreferences.h>
25796 main ()
25798 CFPreferencesCopyAppValue(NULL, NULL)
25800 return 0;
25802 _ACEOF
25803 rm -f conftest.$ac_objext conftest$ac_exeext
25804 if { (ac_try="$ac_link"
25805 case "(($ac_try" in
25806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807 *) ac_try_echo=$ac_try;;
25808 esac
25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810 (eval "$ac_link") 2>conftest.er1
25811 ac_status=$?
25812 grep -v '^ *+' conftest.er1 >conftest.err
25813 rm -f conftest.er1
25814 cat conftest.err >&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } && {
25817 test -z "$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25819 } && test -s conftest$ac_exeext &&
25820 $as_test_x conftest$ac_exeext; then
25821 gt_cv_func_CFPreferencesCopyAppValue=yes
25822 else
25823 echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 gt_cv_func_CFPreferencesCopyAppValue=no
25829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25830 conftest$ac_exeext conftest.$ac_ext
25831 LIBS="$gt_save_LIBS"
25833 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
25834 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
25835 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
25837 cat >>confdefs.h <<\_ACEOF
25838 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
25839 _ACEOF
25842 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
25843 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
25844 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
25845 echo $ECHO_N "(cached) $ECHO_C" >&6
25846 else
25847 gt_save_LIBS="$LIBS"
25848 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h. */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <CoreFoundation/CFLocale.h>
25857 main ()
25859 CFLocaleCopyCurrent();
25861 return 0;
25863 _ACEOF
25864 rm -f conftest.$ac_objext conftest$ac_exeext
25865 if { (ac_try="$ac_link"
25866 case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_link") 2>conftest.er1
25872 ac_status=$?
25873 grep -v '^ *+' conftest.er1 >conftest.err
25874 rm -f conftest.er1
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } && {
25878 test -z "$ac_c_werror_flag" ||
25879 test ! -s conftest.err
25880 } && test -s conftest$ac_exeext &&
25881 $as_test_x conftest$ac_exeext; then
25882 gt_cv_func_CFLocaleCopyCurrent=yes
25883 else
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 gt_cv_func_CFLocaleCopyCurrent=no
25890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25891 conftest$ac_exeext conftest.$ac_ext
25892 LIBS="$gt_save_LIBS"
25894 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
25895 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
25896 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_CFLOCALECOPYCURRENT 1
25900 _ACEOF
25903 INTL_MACOSX_LIBS=
25904 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25905 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
25913 BUILD_INCLUDED_LIBINTL=no
25914 USE_INCLUDED_LIBINTL=no
25916 LIBINTL=
25917 LTLIBINTL=
25918 POSUB=
25920 case " $gt_needs " in
25921 *" need-formatstring-macros "*) gt_api_version=3 ;;
25922 *" need-ngettext "*) gt_api_version=2 ;;
25923 *) gt_api_version=1 ;;
25924 esac
25925 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
25926 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
25928 if test "$USE_NLS" = "yes"; then
25929 gt_use_preinstalled_gnugettext=no
25931 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
25932 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
25934 # Check whether --with-included-gettext was given.
25935 if test "${with_included_gettext+set}" = set; then
25936 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
25937 else
25938 nls_cv_force_use_gnu_gettext=no
25941 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
25942 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
25944 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
25945 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
25948 if test $gt_api_version -ge 3; then
25949 gt_revision_test_code='
25950 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
25951 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
25952 #endif
25953 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
25955 else
25956 gt_revision_test_code=
25958 if test $gt_api_version -ge 2; then
25959 gt_expression_test_code=' + * ngettext ("", "", 0)'
25960 else
25961 gt_expression_test_code=
25964 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
25965 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
25966 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25968 else
25969 cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h. */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 #include <libintl.h>
25976 $gt_revision_test_code
25977 extern int _nl_msg_cat_cntr;
25978 extern int *_nl_domain_bindings;
25980 main ()
25982 bindtextdomain ("", "");
25983 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
25985 return 0;
25987 _ACEOF
25988 rm -f conftest.$ac_objext conftest$ac_exeext
25989 if { (ac_try="$ac_link"
25990 case "(($ac_try" in
25991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25992 *) ac_try_echo=$ac_try;;
25993 esac
25994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25995 (eval "$ac_link") 2>conftest.er1
25996 ac_status=$?
25997 grep -v '^ *+' conftest.er1 >conftest.err
25998 rm -f conftest.er1
25999 cat conftest.err >&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } && {
26002 test -z "$ac_c_werror_flag" ||
26003 test ! -s conftest.err
26004 } && test -s conftest$ac_exeext &&
26005 $as_test_x conftest$ac_exeext; then
26006 eval "$gt_func_gnugettext_libc=yes"
26007 else
26008 echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26011 eval "$gt_func_gnugettext_libc=no"
26014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26015 conftest$ac_exeext conftest.$ac_ext
26017 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
26018 { echo "$as_me:$LINENO: result: $ac_res" >&5
26019 echo "${ECHO_T}$ac_res" >&6; }
26021 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
26026 use_additional=yes
26028 acl_save_prefix="$prefix"
26029 prefix="$acl_final_prefix"
26030 acl_save_exec_prefix="$exec_prefix"
26031 exec_prefix="$acl_final_exec_prefix"
26033 eval additional_includedir=\"$includedir\"
26034 eval additional_libdir=\"$libdir\"
26036 exec_prefix="$acl_save_exec_prefix"
26037 prefix="$acl_save_prefix"
26040 # Check whether --with-libintl-prefix was given.
26041 if test "${with_libintl_prefix+set}" = set; then
26042 withval=$with_libintl_prefix;
26043 if test "X$withval" = "Xno"; then
26044 use_additional=no
26045 else
26046 if test "X$withval" = "X"; then
26048 acl_save_prefix="$prefix"
26049 prefix="$acl_final_prefix"
26050 acl_save_exec_prefix="$exec_prefix"
26051 exec_prefix="$acl_final_exec_prefix"
26053 eval additional_includedir=\"$includedir\"
26054 eval additional_libdir=\"$libdir\"
26056 exec_prefix="$acl_save_exec_prefix"
26057 prefix="$acl_save_prefix"
26059 else
26060 additional_includedir="$withval/include"
26061 additional_libdir="$withval/$acl_libdirstem"
26067 LIBINTL=
26068 LTLIBINTL=
26069 INCINTL=
26070 rpathdirs=
26071 ltrpathdirs=
26072 names_already_handled=
26073 names_next_round='intl '
26074 while test -n "$names_next_round"; do
26075 names_this_round="$names_next_round"
26076 names_next_round=
26077 for name in $names_this_round; do
26078 already_handled=
26079 for n in $names_already_handled; do
26080 if test "$n" = "$name"; then
26081 already_handled=yes
26082 break
26084 done
26085 if test -z "$already_handled"; then
26086 names_already_handled="$names_already_handled $name"
26087 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26088 eval value=\"\$HAVE_LIB$uppername\"
26089 if test -n "$value"; then
26090 if test "$value" = yes; then
26091 eval value=\"\$LIB$uppername\"
26092 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26093 eval value=\"\$LTLIB$uppername\"
26094 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26095 else
26098 else
26099 found_dir=
26100 found_la=
26101 found_so=
26102 found_a=
26103 if test $use_additional = yes; then
26104 if test -n "$shlibext" \
26105 && { test -f "$additional_libdir/lib$name.$shlibext" \
26106 || { test "$shlibext" = dll \
26107 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
26108 found_dir="$additional_libdir"
26109 if test -f "$additional_libdir/lib$name.$shlibext"; then
26110 found_so="$additional_libdir/lib$name.$shlibext"
26111 else
26112 found_so="$additional_libdir/lib$name.dll.a"
26114 if test -f "$additional_libdir/lib$name.la"; then
26115 found_la="$additional_libdir/lib$name.la"
26117 else
26118 if test -f "$additional_libdir/lib$name.$libext"; then
26119 found_dir="$additional_libdir"
26120 found_a="$additional_libdir/lib$name.$libext"
26121 if test -f "$additional_libdir/lib$name.la"; then
26122 found_la="$additional_libdir/lib$name.la"
26127 if test "X$found_dir" = "X"; then
26128 for x in $LDFLAGS $LTLIBINTL; do
26130 acl_save_prefix="$prefix"
26131 prefix="$acl_final_prefix"
26132 acl_save_exec_prefix="$exec_prefix"
26133 exec_prefix="$acl_final_exec_prefix"
26134 eval x=\"$x\"
26135 exec_prefix="$acl_save_exec_prefix"
26136 prefix="$acl_save_prefix"
26138 case "$x" in
26139 -L*)
26140 dir=`echo "X$x" | sed -e 's/^X-L//'`
26141 if test -n "$shlibext" \
26142 && { test -f "$dir/lib$name.$shlibext" \
26143 || { test "$shlibext" = dll \
26144 && test -f "$dir/lib$name.dll.a"; }; }; then
26145 found_dir="$dir"
26146 if test -f "$dir/lib$name.$shlibext"; then
26147 found_so="$dir/lib$name.$shlibext"
26148 else
26149 found_so="$dir/lib$name.dll.a"
26151 if test -f "$dir/lib$name.la"; then
26152 found_la="$dir/lib$name.la"
26154 else
26155 if test -f "$dir/lib$name.$libext"; then
26156 found_dir="$dir"
26157 found_a="$dir/lib$name.$libext"
26158 if test -f "$dir/lib$name.la"; then
26159 found_la="$dir/lib$name.la"
26164 esac
26165 if test "X$found_dir" != "X"; then
26166 break
26168 done
26170 if test "X$found_dir" != "X"; then
26171 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26172 if test "X$found_so" != "X"; then
26173 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26174 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26175 else
26176 haveit=
26177 for x in $ltrpathdirs; do
26178 if test "X$x" = "X$found_dir"; then
26179 haveit=yes
26180 break
26182 done
26183 if test -z "$haveit"; then
26184 ltrpathdirs="$ltrpathdirs $found_dir"
26186 if test "$hardcode_direct" = yes; then
26187 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26188 else
26189 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26190 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26191 haveit=
26192 for x in $rpathdirs; do
26193 if test "X$x" = "X$found_dir"; then
26194 haveit=yes
26195 break
26197 done
26198 if test -z "$haveit"; then
26199 rpathdirs="$rpathdirs $found_dir"
26201 else
26202 haveit=
26203 for x in $LDFLAGS $LIBINTL; do
26205 acl_save_prefix="$prefix"
26206 prefix="$acl_final_prefix"
26207 acl_save_exec_prefix="$exec_prefix"
26208 exec_prefix="$acl_final_exec_prefix"
26209 eval x=\"$x\"
26210 exec_prefix="$acl_save_exec_prefix"
26211 prefix="$acl_save_prefix"
26213 if test "X$x" = "X-L$found_dir"; then
26214 haveit=yes
26215 break
26217 done
26218 if test -z "$haveit"; then
26219 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26221 if test "$hardcode_minus_L" != no; then
26222 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26223 else
26224 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26229 else
26230 if test "X$found_a" != "X"; then
26231 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26232 else
26233 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26236 additional_includedir=
26237 case "$found_dir" in
26238 */$acl_libdirstem | */$acl_libdirstem/)
26239 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26240 additional_includedir="$basedir/include"
26242 esac
26243 if test "X$additional_includedir" != "X"; then
26244 if test "X$additional_includedir" != "X/usr/include"; then
26245 haveit=
26246 if test "X$additional_includedir" = "X/usr/local/include"; then
26247 if test -n "$GCC"; then
26248 case $host_os in
26249 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26250 esac
26253 if test -z "$haveit"; then
26254 for x in $CPPFLAGS $INCINTL; do
26256 acl_save_prefix="$prefix"
26257 prefix="$acl_final_prefix"
26258 acl_save_exec_prefix="$exec_prefix"
26259 exec_prefix="$acl_final_exec_prefix"
26260 eval x=\"$x\"
26261 exec_prefix="$acl_save_exec_prefix"
26262 prefix="$acl_save_prefix"
26264 if test "X$x" = "X-I$additional_includedir"; then
26265 haveit=yes
26266 break
26268 done
26269 if test -z "$haveit"; then
26270 if test -d "$additional_includedir"; then
26271 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26277 if test -n "$found_la"; then
26278 save_libdir="$libdir"
26279 case "$found_la" in
26280 */* | *\\*) . "$found_la" ;;
26281 *) . "./$found_la" ;;
26282 esac
26283 libdir="$save_libdir"
26284 for dep in $dependency_libs; do
26285 case "$dep" in
26286 -L*)
26287 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26288 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26289 haveit=
26290 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26291 if test -n "$GCC"; then
26292 case $host_os in
26293 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26294 esac
26297 if test -z "$haveit"; then
26298 haveit=
26299 for x in $LDFLAGS $LIBINTL; do
26301 acl_save_prefix="$prefix"
26302 prefix="$acl_final_prefix"
26303 acl_save_exec_prefix="$exec_prefix"
26304 exec_prefix="$acl_final_exec_prefix"
26305 eval x=\"$x\"
26306 exec_prefix="$acl_save_exec_prefix"
26307 prefix="$acl_save_prefix"
26309 if test "X$x" = "X-L$additional_libdir"; then
26310 haveit=yes
26311 break
26313 done
26314 if test -z "$haveit"; then
26315 if test -d "$additional_libdir"; then
26316 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26319 haveit=
26320 for x in $LDFLAGS $LTLIBINTL; do
26322 acl_save_prefix="$prefix"
26323 prefix="$acl_final_prefix"
26324 acl_save_exec_prefix="$exec_prefix"
26325 exec_prefix="$acl_final_exec_prefix"
26326 eval x=\"$x\"
26327 exec_prefix="$acl_save_exec_prefix"
26328 prefix="$acl_save_prefix"
26330 if test "X$x" = "X-L$additional_libdir"; then
26331 haveit=yes
26332 break
26334 done
26335 if test -z "$haveit"; then
26336 if test -d "$additional_libdir"; then
26337 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26343 -R*)
26344 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26345 if test "$enable_rpath" != no; then
26346 haveit=
26347 for x in $rpathdirs; do
26348 if test "X$x" = "X$dir"; then
26349 haveit=yes
26350 break
26352 done
26353 if test -z "$haveit"; then
26354 rpathdirs="$rpathdirs $dir"
26356 haveit=
26357 for x in $ltrpathdirs; do
26358 if test "X$x" = "X$dir"; then
26359 haveit=yes
26360 break
26362 done
26363 if test -z "$haveit"; then
26364 ltrpathdirs="$ltrpathdirs $dir"
26368 -l*)
26369 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26371 *.la)
26372 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26375 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26378 esac
26379 done
26381 else
26382 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26383 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26387 done
26388 done
26389 if test "X$rpathdirs" != "X"; then
26390 if test -n "$hardcode_libdir_separator"; then
26391 alldirs=
26392 for found_dir in $rpathdirs; do
26393 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26394 done
26395 acl_save_libdir="$libdir"
26396 libdir="$alldirs"
26397 eval flag=\"$hardcode_libdir_flag_spec\"
26398 libdir="$acl_save_libdir"
26399 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26400 else
26401 for found_dir in $rpathdirs; do
26402 acl_save_libdir="$libdir"
26403 libdir="$found_dir"
26404 eval flag=\"$hardcode_libdir_flag_spec\"
26405 libdir="$acl_save_libdir"
26406 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26407 done
26410 if test "X$ltrpathdirs" != "X"; then
26411 for found_dir in $ltrpathdirs; do
26412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26413 done
26416 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26417 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
26418 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26420 else
26421 gt_save_CPPFLAGS="$CPPFLAGS"
26422 CPPFLAGS="$CPPFLAGS $INCINTL"
26423 gt_save_LIBS="$LIBS"
26424 LIBS="$LIBS $LIBINTL"
26425 cat >conftest.$ac_ext <<_ACEOF
26426 /* confdefs.h. */
26427 _ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26431 #include <libintl.h>
26432 $gt_revision_test_code
26433 extern int _nl_msg_cat_cntr;
26434 extern
26435 #ifdef __cplusplus
26437 #endif
26438 const char *_nl_expand_alias (const char *);
26440 main ()
26442 bindtextdomain ("", "");
26443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26445 return 0;
26447 _ACEOF
26448 rm -f conftest.$ac_objext conftest$ac_exeext
26449 if { (ac_try="$ac_link"
26450 case "(($ac_try" in
26451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452 *) ac_try_echo=$ac_try;;
26453 esac
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455 (eval "$ac_link") 2>conftest.er1
26456 ac_status=$?
26457 grep -v '^ *+' conftest.er1 >conftest.err
26458 rm -f conftest.er1
26459 cat conftest.err >&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); } && {
26462 test -z "$ac_c_werror_flag" ||
26463 test ! -s conftest.err
26464 } && test -s conftest$ac_exeext &&
26465 $as_test_x conftest$ac_exeext; then
26466 eval "$gt_func_gnugettext_libintl=yes"
26467 else
26468 echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26471 eval "$gt_func_gnugettext_libintl=no"
26474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26475 conftest$ac_exeext conftest.$ac_ext
26476 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
26477 LIBS="$LIBS $LIBICONV"
26478 cat >conftest.$ac_ext <<_ACEOF
26479 /* confdefs.h. */
26480 _ACEOF
26481 cat confdefs.h >>conftest.$ac_ext
26482 cat >>conftest.$ac_ext <<_ACEOF
26483 /* end confdefs.h. */
26484 #include <libintl.h>
26485 $gt_revision_test_code
26486 extern int _nl_msg_cat_cntr;
26487 extern
26488 #ifdef __cplusplus
26490 #endif
26491 const char *_nl_expand_alias (const char *);
26493 main ()
26495 bindtextdomain ("", "");
26496 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26498 return 0;
26500 _ACEOF
26501 rm -f conftest.$ac_objext conftest$ac_exeext
26502 if { (ac_try="$ac_link"
26503 case "(($ac_try" in
26504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26505 *) ac_try_echo=$ac_try;;
26506 esac
26507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26508 (eval "$ac_link") 2>conftest.er1
26509 ac_status=$?
26510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } && {
26515 test -z "$ac_c_werror_flag" ||
26516 test ! -s conftest.err
26517 } && test -s conftest$ac_exeext &&
26518 $as_test_x conftest$ac_exeext; then
26519 LIBINTL="$LIBINTL $LIBICONV"
26520 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26521 eval "$gt_func_gnugettext_libintl=yes"
26523 else
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26531 conftest$ac_exeext conftest.$ac_ext
26533 CPPFLAGS="$gt_save_CPPFLAGS"
26534 LIBS="$gt_save_LIBS"
26536 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
26537 { echo "$as_me:$LINENO: result: $ac_res" >&5
26538 echo "${ECHO_T}$ac_res" >&6; }
26541 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
26542 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
26543 && test "$PACKAGE" != gettext-runtime \
26544 && test "$PACKAGE" != gettext-tools; }; then
26545 gt_use_preinstalled_gnugettext=yes
26546 else
26547 LIBINTL=
26548 LTLIBINTL=
26549 INCINTL=
26553 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
26554 nls_cv_use_gnu_gettext=yes
26558 if test "$nls_cv_use_gnu_gettext" = "yes"; then
26559 BUILD_INCLUDED_LIBINTL=yes
26560 USE_INCLUDED_LIBINTL=yes
26561 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
26562 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
26563 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
26566 CATOBJEXT=
26567 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26568 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26569 CATOBJEXT=.gmo
26573 if test -n "$INTL_MACOSX_LIBS"; then
26574 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26575 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26576 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
26577 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
26581 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26582 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26584 cat >>confdefs.h <<\_ACEOF
26585 #define ENABLE_NLS 1
26586 _ACEOF
26588 else
26589 USE_NLS=no
26593 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
26594 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
26595 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
26596 echo "${ECHO_T}$USE_NLS" >&6; }
26597 if test "$USE_NLS" = "yes"; then
26598 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
26599 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
26600 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26601 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
26602 gt_source="external libintl"
26603 else
26604 gt_source="libc"
26606 else
26607 gt_source="included intl directory"
26609 { echo "$as_me:$LINENO: result: $gt_source" >&5
26610 echo "${ECHO_T}$gt_source" >&6; }
26613 if test "$USE_NLS" = "yes"; then
26615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26616 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
26617 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
26618 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
26619 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
26620 echo "${ECHO_T}$LIBINTL" >&6; }
26622 for element in $INCINTL; do
26623 haveit=
26624 for x in $CPPFLAGS; do
26626 acl_save_prefix="$prefix"
26627 prefix="$acl_final_prefix"
26628 acl_save_exec_prefix="$exec_prefix"
26629 exec_prefix="$acl_final_exec_prefix"
26630 eval x=\"$x\"
26631 exec_prefix="$acl_save_exec_prefix"
26632 prefix="$acl_save_prefix"
26634 if test "X$x" = "X$element"; then
26635 haveit=yes
26636 break
26638 done
26639 if test -z "$haveit"; then
26640 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26642 done
26647 cat >>confdefs.h <<\_ACEOF
26648 #define HAVE_GETTEXT 1
26649 _ACEOF
26652 cat >>confdefs.h <<\_ACEOF
26653 #define HAVE_DCGETTEXT 1
26654 _ACEOF
26658 POSUB=po
26662 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
26663 BUILD_INCLUDED_LIBINTL=yes
26670 nls_cv_header_intl=
26671 nls_cv_header_libgt=
26673 DATADIRNAME=share
26676 INSTOBJEXT=.mo
26679 GENCAT=gencat
26682 INTLOBJS=
26683 if test "$USE_INCLUDED_LIBINTL" = yes; then
26684 INTLOBJS="\$(GETTOBJS)"
26688 INTL_LIBTOOL_SUFFIX_PREFIX=
26692 INTLLIBS="$LIBINTL"
26701 # Check whether --enable-largefile was given.
26702 if test "${enable_largefile+set}" = set; then
26703 enableval=$enable_largefile;
26706 if test "$enable_largefile" != no; then
26708 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26709 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
26710 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 else
26713 ac_cv_sys_largefile_CC=no
26714 if test "$GCC" != yes; then
26715 ac_save_CC=$CC
26716 while :; do
26717 # IRIX 6.2 and later do not support large files by default,
26718 # so use the C compiler's -n32 option if that helps.
26719 cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h. */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26725 #include <sys/types.h>
26726 /* Check that off_t can represent 2**63 - 1 correctly.
26727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26728 since some C++ compilers masquerading as C compilers
26729 incorrectly reject 9223372036854775807. */
26730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26732 && LARGE_OFF_T % 2147483647 == 1)
26733 ? 1 : -1];
26735 main ()
26739 return 0;
26741 _ACEOF
26742 rm -f conftest.$ac_objext
26743 if { (ac_try="$ac_compile"
26744 case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26747 esac
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_compile") 2>conftest.er1
26750 ac_status=$?
26751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } && {
26756 test -z "$ac_c_werror_flag" ||
26757 test ! -s conftest.err
26758 } && test -s conftest.$ac_objext; then
26759 break
26760 else
26761 echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26767 rm -f core conftest.err conftest.$ac_objext
26768 CC="$CC -n32"
26769 rm -f conftest.$ac_objext
26770 if { (ac_try="$ac_compile"
26771 case "(($ac_try" in
26772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773 *) ac_try_echo=$ac_try;;
26774 esac
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776 (eval "$ac_compile") 2>conftest.er1
26777 ac_status=$?
26778 grep -v '^ *+' conftest.er1 >conftest.err
26779 rm -f conftest.er1
26780 cat conftest.err >&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } && {
26783 test -z "$ac_c_werror_flag" ||
26784 test ! -s conftest.err
26785 } && test -s conftest.$ac_objext; then
26786 ac_cv_sys_largefile_CC=' -n32'; break
26787 else
26788 echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.$ac_ext >&5
26794 rm -f core conftest.err conftest.$ac_objext
26795 break
26796 done
26797 CC=$ac_save_CC
26798 rm -f conftest.$ac_ext
26801 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26802 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
26803 if test "$ac_cv_sys_largefile_CC" != no; then
26804 CC=$CC$ac_cv_sys_largefile_CC
26807 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26808 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
26809 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812 while :; do
26813 cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h. */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26819 #include <sys/types.h>
26820 /* Check that off_t can represent 2**63 - 1 correctly.
26821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26822 since some C++ compilers masquerading as C compilers
26823 incorrectly reject 9223372036854775807. */
26824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26826 && LARGE_OFF_T % 2147483647 == 1)
26827 ? 1 : -1];
26829 main ()
26833 return 0;
26835 _ACEOF
26836 rm -f conftest.$ac_objext
26837 if { (ac_try="$ac_compile"
26838 case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26841 esac
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_compile") 2>conftest.er1
26844 ac_status=$?
26845 grep -v '^ *+' conftest.er1 >conftest.err
26846 rm -f conftest.er1
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } && {
26850 test -z "$ac_c_werror_flag" ||
26851 test ! -s conftest.err
26852 } && test -s conftest.$ac_objext; then
26853 ac_cv_sys_file_offset_bits=no; break
26854 else
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862 cat >conftest.$ac_ext <<_ACEOF
26863 /* confdefs.h. */
26864 _ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26868 #define _FILE_OFFSET_BITS 64
26869 #include <sys/types.h>
26870 /* Check that off_t can represent 2**63 - 1 correctly.
26871 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26872 since some C++ compilers masquerading as C compilers
26873 incorrectly reject 9223372036854775807. */
26874 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26875 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26876 && LARGE_OFF_T % 2147483647 == 1)
26877 ? 1 : -1];
26879 main ()
26883 return 0;
26885 _ACEOF
26886 rm -f conftest.$ac_objext
26887 if { (ac_try="$ac_compile"
26888 case "(($ac_try" in
26889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890 *) ac_try_echo=$ac_try;;
26891 esac
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_compile") 2>conftest.er1
26894 ac_status=$?
26895 grep -v '^ *+' conftest.er1 >conftest.err
26896 rm -f conftest.er1
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } && {
26900 test -z "$ac_c_werror_flag" ||
26901 test ! -s conftest.err
26902 } && test -s conftest.$ac_objext; then
26903 ac_cv_sys_file_offset_bits=64; break
26904 else
26905 echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26912 ac_cv_sys_file_offset_bits=unknown
26913 break
26914 done
26916 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26917 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
26918 case $ac_cv_sys_file_offset_bits in #(
26919 no | unknown) ;;
26921 cat >>confdefs.h <<_ACEOF
26922 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26923 _ACEOF
26925 esac
26926 rm -f conftest*
26927 if test $ac_cv_sys_file_offset_bits = unknown; then
26928 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26929 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26930 if test "${ac_cv_sys_large_files+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26932 else
26933 while :; do
26934 cat >conftest.$ac_ext <<_ACEOF
26935 /* confdefs.h. */
26936 _ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26940 #include <sys/types.h>
26941 /* Check that off_t can represent 2**63 - 1 correctly.
26942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26943 since some C++ compilers masquerading as C compilers
26944 incorrectly reject 9223372036854775807. */
26945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26947 && LARGE_OFF_T % 2147483647 == 1)
26948 ? 1 : -1];
26950 main ()
26954 return 0;
26956 _ACEOF
26957 rm -f conftest.$ac_objext
26958 if { (ac_try="$ac_compile"
26959 case "(($ac_try" in
26960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26961 *) ac_try_echo=$ac_try;;
26962 esac
26963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26964 (eval "$ac_compile") 2>conftest.er1
26965 ac_status=$?
26966 grep -v '^ *+' conftest.er1 >conftest.err
26967 rm -f conftest.er1
26968 cat conftest.err >&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } && {
26971 test -z "$ac_c_werror_flag" ||
26972 test ! -s conftest.err
26973 } && test -s conftest.$ac_objext; then
26974 ac_cv_sys_large_files=no; break
26975 else
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26983 cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h. */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26989 #define _LARGE_FILES 1
26990 #include <sys/types.h>
26991 /* Check that off_t can represent 2**63 - 1 correctly.
26992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26993 since some C++ compilers masquerading as C compilers
26994 incorrectly reject 9223372036854775807. */
26995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26997 && LARGE_OFF_T % 2147483647 == 1)
26998 ? 1 : -1];
27000 main ()
27004 return 0;
27006 _ACEOF
27007 rm -f conftest.$ac_objext
27008 if { (ac_try="$ac_compile"
27009 case "(($ac_try" in
27010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011 *) ac_try_echo=$ac_try;;
27012 esac
27013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014 (eval "$ac_compile") 2>conftest.er1
27015 ac_status=$?
27016 grep -v '^ *+' conftest.er1 >conftest.err
27017 rm -f conftest.er1
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } && {
27021 test -z "$ac_c_werror_flag" ||
27022 test ! -s conftest.err
27023 } && test -s conftest.$ac_objext; then
27024 ac_cv_sys_large_files=1; break
27025 else
27026 echo "$as_me: failed program was:" >&5
27027 sed 's/^/| /' conftest.$ac_ext >&5
27032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27033 ac_cv_sys_large_files=unknown
27034 break
27035 done
27037 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
27038 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
27039 case $ac_cv_sys_large_files in #(
27040 no | unknown) ;;
27042 cat >>confdefs.h <<_ACEOF
27043 #define _LARGE_FILES $ac_cv_sys_large_files
27044 _ACEOF
27046 esac
27047 rm -f conftest*
27051 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27052 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
27053 if test "${ac_cv_c_bigendian+set}" = set; then
27054 echo $ECHO_N "(cached) $ECHO_C" >&6
27055 else
27056 # See if sys/param.h defines the BYTE_ORDER macro.
27057 cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h. */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 #include <sys/types.h>
27064 #include <sys/param.h>
27067 main ()
27069 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
27070 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
27071 bogus endian macros
27072 #endif
27075 return 0;
27077 _ACEOF
27078 rm -f conftest.$ac_objext
27079 if { (ac_try="$ac_compile"
27080 case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27083 esac
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_compile") 2>conftest.er1
27086 ac_status=$?
27087 grep -v '^ *+' conftest.er1 >conftest.err
27088 rm -f conftest.er1
27089 cat conftest.err >&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } && {
27092 test -z "$ac_c_werror_flag" ||
27093 test ! -s conftest.err
27094 } && test -s conftest.$ac_objext; then
27095 # It does; now see whether it defined to BIG_ENDIAN or not.
27096 cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h. */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 #include <sys/types.h>
27103 #include <sys/param.h>
27106 main ()
27108 #if BYTE_ORDER != BIG_ENDIAN
27109 not big endian
27110 #endif
27113 return 0;
27115 _ACEOF
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27121 esac
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_compile") 2>conftest.er1
27124 ac_status=$?
27125 grep -v '^ *+' conftest.er1 >conftest.err
27126 rm -f conftest.er1
27127 cat conftest.err >&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } && {
27130 test -z "$ac_c_werror_flag" ||
27131 test ! -s conftest.err
27132 } && test -s conftest.$ac_objext; then
27133 ac_cv_c_bigendian=yes
27134 else
27135 echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27138 ac_cv_c_bigendian=no
27141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27142 else
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 # It does not; compile a test program.
27147 if test "$cross_compiling" = yes; then
27148 # try to guess the endianness by grepping values into an object file
27149 ac_cv_c_bigendian=unknown
27150 cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h. */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27156 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27157 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27158 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27159 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27160 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27161 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27163 main ()
27165 _ascii (); _ebcdic ();
27167 return 0;
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (ac_try="$ac_compile"
27172 case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175 esac
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27178 ac_status=$?
27179 grep -v '^ *+' conftest.er1 >conftest.err
27180 rm -f conftest.er1
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27187 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27188 ac_cv_c_bigendian=yes
27190 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27191 if test "$ac_cv_c_bigendian" = unknown; then
27192 ac_cv_c_bigendian=no
27193 else
27194 # finding both strings is unlikely to happen, but who knows?
27195 ac_cv_c_bigendian=unknown
27198 else
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27206 else
27207 cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h. */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 $ac_includes_default
27215 main ()
27218 /* Are we little or big endian? From Harbison&Steele. */
27219 union
27221 long int l;
27222 char c[sizeof (long int)];
27223 } u;
27224 u.l = 1;
27225 return u.c[sizeof (long int) - 1] == 1;
27228 return 0;
27230 _ACEOF
27231 rm -f conftest$ac_exeext
27232 if { (ac_try="$ac_link"
27233 case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27236 esac
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_link") 2>&5
27239 ac_status=$?
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27242 { (case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27245 esac
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_cv_c_bigendian=no
27252 else
27253 echo "$as_me: program exited with status $ac_status" >&5
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27257 ( exit $ac_status )
27258 ac_cv_c_bigendian=yes
27260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27269 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
27270 case $ac_cv_c_bigendian in
27271 yes)
27273 cat >>confdefs.h <<\_ACEOF
27274 #define WORDS_BIGENDIAN 1
27275 _ACEOF
27280 { { echo "$as_me:$LINENO: error: unknown endianness
27281 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
27282 echo "$as_me: error: unknown endianness
27283 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
27284 { (exit 1); exit 1; }; } ;;
27285 esac
27289 cflags_save="$CFLAGS"
27290 if test -z "$GCC"; then
27291 case $host in
27292 *-*-irix*)
27293 DEBUG="-g -signed"
27294 CFLAGS="-O2 -w -signed"
27295 PROFILE="-p -g3 -O2 -signed"
27297 sparc-sun-solaris*)
27298 DEBUG="-v -g"
27299 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
27300 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
27303 DEBUG="-g"
27304 CFLAGS="-O"
27305 PROFILE="-g -p"
27307 esac
27308 else
27309 case $host in
27310 *-*-linux*)
27311 DEBUG="-g -Wall -fsigned-char"
27312 CFLAGS="-O2 -Wall -ffast-math -fsigned-char"
27313 PROFILE="-Wall -W -pg -g -O2 -ffast-math -fsigned-char"
27315 sparc-sun-*)
27316 DEBUG="-g -Wall -fsigned-char -mv8"
27317 CFLAGS="-O20 -ffast-math -fsigned-char -mv8"
27318 PROFILE="-pg -g -O20 -fsigned-char -mv8"
27320 *-*-darwin*)
27321 DEBUG="-fno-common -g -Wall -fsigned-char"
27322 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
27323 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
27326 DEBUG="-g -Wall -fsigned-char"
27327 CFLAGS="-O2 -fsigned-char"
27328 PROFILE="-O2 -g -pg -fsigned-char"
27330 esac
27332 CFLAGS="$CFLAGS $cflags_save"
27333 DEBUG="$DEBUG $cflags_save"
27334 PROFILE="$PROFILE $cflags_save"
27336 # Check whether --enable-ogg123 was given.
27337 if test "${enable_ogg123+set}" = set; then
27338 enableval=$enable_ogg123; build_ogg123="$enableval"
27339 else
27340 build_ogg123="yes"
27343 # Check whether --enable-oggdec was given.
27344 if test "${enable_oggdec+set}" = set; then
27345 enableval=$enable_oggdec; build_oggdec="$enableval"
27346 else
27347 build_oggdec="yes"
27350 # Check whether --enable-oggenc was given.
27351 if test "${enable_oggenc+set}" = set; then
27352 enableval=$enable_oggenc; build_oggenc="$enableval"
27353 else
27354 build_oggenc="yes"
27357 # Check whether --enable-ogginfo was given.
27358 if test "${enable_ogginfo+set}" = set; then
27359 enableval=$enable_ogginfo; build_ogginfo="$enableval"
27360 else
27361 build_ogginfo="yes"
27364 # Check whether --enable-vcut was given.
27365 if test "${enable_vcut+set}" = set; then
27366 enableval=$enable_vcut; build_vcut="$enableval"
27367 else
27368 build_vcut="no"
27371 # Check whether --enable-vorbiscomment was given.
27372 if test "${enable_vorbiscomment+set}" = set; then
27373 enableval=$enable_vorbiscomment; build_vorbiscomment="$enableval"
27374 else
27375 build_vorbiscomment="yes"
27379 # Check whether --with-flac was given.
27380 if test "${with_flac+set}" = set; then
27381 withval=$with_flac; build_flac=no
27382 else
27383 build_flac="yes"
27387 # Check whether --with-speex was given.
27388 if test "${with_speex+set}" = set; then
27389 withval=$with_speex; build_speex=no
27390 else
27391 build_speex="yes"
27396 HAVE_OGG=no
27397 # Extract the first word of "pkg-config", so it can be a program name with args.
27398 set dummy pkg-config; ac_word=$2
27399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27401 if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27403 else
27404 if test -n "$HAVE_PKG_CONFIG"; then
27405 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
27406 else
27407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27408 for as_dir in $PATH
27410 IFS=$as_save_IFS
27411 test -z "$as_dir" && as_dir=.
27412 for ac_exec_ext in '' $ac_executable_extensions; do
27413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27414 ac_cv_prog_HAVE_PKG_CONFIG="yes"
27415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27416 break 2
27418 done
27419 done
27420 IFS=$as_save_IFS
27424 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
27425 if test -n "$HAVE_PKG_CONFIG"; then
27426 { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
27427 echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
27428 else
27429 { echo "$as_me:$LINENO: result: no" >&5
27430 echo "${ECHO_T}no" >&6; }
27434 if test "x$HAVE_PKG_CONFIG" = "xyes"
27435 then
27438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
27439 if test -n "$ac_tool_prefix"; then
27440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27446 else
27447 case $PKG_CONFIG in
27448 [\\/]* | ?:[\\/]*)
27449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27453 for as_dir in $PATH
27455 IFS=$as_save_IFS
27456 test -z "$as_dir" && as_dir=.
27457 for ac_exec_ext in '' $ac_executable_extensions; do
27458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27461 break 2
27463 done
27464 done
27465 IFS=$as_save_IFS
27468 esac
27470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27471 if test -n "$PKG_CONFIG"; then
27472 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27473 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27474 else
27475 { echo "$as_me:$LINENO: result: no" >&5
27476 echo "${ECHO_T}no" >&6; }
27481 if test -z "$ac_cv_path_PKG_CONFIG"; then
27482 ac_pt_PKG_CONFIG=$PKG_CONFIG
27483 # Extract the first word of "pkg-config", so it can be a program name with args.
27484 set dummy pkg-config; ac_word=$2
27485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27487 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27489 else
27490 case $ac_pt_PKG_CONFIG in
27491 [\\/]* | ?:[\\/]*)
27492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
27495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27496 for as_dir in $PATH
27498 IFS=$as_save_IFS
27499 test -z "$as_dir" && as_dir=.
27500 for ac_exec_ext in '' $ac_executable_extensions; do
27501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27504 break 2
27506 done
27507 done
27508 IFS=$as_save_IFS
27511 esac
27513 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
27514 if test -n "$ac_pt_PKG_CONFIG"; then
27515 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
27516 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
27517 else
27518 { echo "$as_me:$LINENO: result: no" >&5
27519 echo "${ECHO_T}no" >&6; }
27522 if test "x$ac_pt_PKG_CONFIG" = x; then
27523 PKG_CONFIG=""
27524 else
27525 case $cross_compiling:$ac_tool_warned in
27526 yes:)
27527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27528 whose name does not start with the host triplet. If you think this
27529 configuration is useful to you, please write to autoconf@gnu.org." >&5
27530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27531 whose name does not start with the host triplet. If you think this
27532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27533 ac_tool_warned=yes ;;
27534 esac
27535 PKG_CONFIG=$ac_pt_PKG_CONFIG
27537 else
27538 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
27542 if test -n "$PKG_CONFIG"; then
27543 _pkg_min_version=0.9.0
27544 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
27545 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
27546 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
27547 { echo "$as_me:$LINENO: result: yes" >&5
27548 echo "${ECHO_T}yes" >&6; }
27549 else
27550 { echo "$as_me:$LINENO: result: no" >&5
27551 echo "${ECHO_T}no" >&6; }
27552 PKG_CONFIG=""
27557 pkg_failed=no
27558 { echo "$as_me:$LINENO: checking for OGG" >&5
27559 echo $ECHO_N "checking for OGG... $ECHO_C" >&6; }
27561 if test -n "$PKG_CONFIG"; then
27562 if test -n "$OGG_CFLAGS"; then
27563 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
27564 else
27565 if test -n "$PKG_CONFIG" && \
27566 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
27567 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; then
27571 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
27572 else
27573 pkg_failed=yes
27576 else
27577 pkg_failed=untried
27579 if test -n "$PKG_CONFIG"; then
27580 if test -n "$OGG_LIBS"; then
27581 pkg_cv_OGG_LIBS="$OGG_LIBS"
27582 else
27583 if test -n "$PKG_CONFIG" && \
27584 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
27585 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; then
27589 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
27590 else
27591 pkg_failed=yes
27594 else
27595 pkg_failed=untried
27600 if test $pkg_failed = yes; then
27602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27603 _pkg_short_errors_supported=yes
27604 else
27605 _pkg_short_errors_supported=no
27607 if test $_pkg_short_errors_supported = yes; then
27608 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
27609 else
27610 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
27612 # Put the nasty error message in config.log where it belongs
27613 echo "$OGG_PKG_ERRORS" >&5
27615 { echo "$as_me:$LINENO: result: no" >&5
27616 echo "${ECHO_T}no" >&6; }
27617 HAVE_OGG=no
27618 elif test $pkg_failed = untried; then
27619 HAVE_OGG=no
27620 else
27621 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
27622 OGG_LIBS=$pkg_cv_OGG_LIBS
27623 { echo "$as_me:$LINENO: result: yes" >&5
27624 echo "${ECHO_T}yes" >&6; }
27625 HAVE_OGG=yes
27628 if test "x$HAVE_OGG" = "xno"
27629 then
27631 # Check whether --with-ogg was given.
27632 if test "${with_ogg+set}" = set; then
27633 withval=$with_ogg; ogg_prefix="$withval"
27634 else
27635 ogg_prefix=""
27639 # Check whether --with-ogg-libraries was given.
27640 if test "${with_ogg_libraries+set}" = set; then
27641 withval=$with_ogg_libraries; ogg_libraries="$withval"
27642 else
27643 ogg_libraries=""
27647 # Check whether --with-ogg-includes was given.
27648 if test "${with_ogg_includes+set}" = set; then
27649 withval=$with_ogg_includes; ogg_includes="$withval"
27650 else
27651 ogg_includes=""
27654 # Check whether --enable-oggtest was given.
27655 if test "${enable_oggtest+set}" = set; then
27656 enableval=$enable_oggtest;
27657 else
27658 enable_oggtest=yes
27662 if test "x$ogg_libraries" != "x" ; then
27663 OGG_LIBS="-L$ogg_libraries"
27664 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
27665 OGG_LIBS=""
27666 elif test "x$ogg_prefix" != "x" ; then
27667 OGG_LIBS="-L$ogg_prefix/lib"
27668 elif test "x$prefix" != "xNONE" ; then
27669 OGG_LIBS="-L$prefix/lib"
27672 if test "x$ogg_prefix" != "xno" ; then
27673 OGG_LIBS="$OGG_LIBS -logg"
27676 if test "x$ogg_includes" != "x" ; then
27677 OGG_CFLAGS="-I$ogg_includes"
27678 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
27679 OGG_CFLAGS=""
27680 elif test "x$ogg_prefix" != "x" ; then
27681 OGG_CFLAGS="-I$ogg_prefix/include"
27682 elif test "x$prefix" != "xNONE"; then
27683 OGG_CFLAGS="-I$prefix/include"
27686 { echo "$as_me:$LINENO: checking for Ogg" >&5
27687 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
27688 if test "x$ogg_prefix" = "xno" ; then
27689 no_ogg="disabled"
27690 enable_oggtest="no"
27691 else
27692 no_ogg=""
27696 if test "x$enable_oggtest" = "xyes" ; then
27697 ac_save_CFLAGS="$CFLAGS"
27698 ac_save_LIBS="$LIBS"
27699 CFLAGS="$CFLAGS $OGG_CFLAGS"
27700 LIBS="$LIBS $OGG_LIBS"
27701 rm -f conf.oggtest
27702 if test "$cross_compiling" = yes; then
27703 echo $ac_n "cross compiling; assumed OK... $ac_c"
27704 else
27705 cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h. */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27712 #include <stdio.h>
27713 #include <stdlib.h>
27714 #include <string.h>
27715 #include <ogg/ogg.h>
27717 int main ()
27719 system("touch conf.oggtest");
27720 return 0;
27724 _ACEOF
27725 rm -f conftest$ac_exeext
27726 if { (ac_try="$ac_link"
27727 case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27730 esac
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732 (eval "$ac_link") 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27736 { (case "(($ac_try" in
27737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738 *) ac_try_echo=$ac_try;;
27739 esac
27740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27741 (eval "$ac_try") 2>&5
27742 ac_status=$?
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); }; }; then
27746 else
27747 echo "$as_me: program exited with status $ac_status" >&5
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ( exit $ac_status )
27752 no_ogg=yes
27754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27758 CFLAGS="$ac_save_CFLAGS"
27759 LIBS="$ac_save_LIBS"
27762 if test "x$no_ogg" = "xdisabled" ; then
27763 { echo "$as_me:$LINENO: result: no" >&5
27764 echo "${ECHO_T}no" >&6; }
27765 { { echo "$as_me:$LINENO: error: Ogg needed!" >&5
27766 echo "$as_me: error: Ogg needed!" >&2;}
27767 { (exit 1); exit 1; }; }
27768 elif test "x$no_ogg" = "x" ; then
27769 { echo "$as_me:$LINENO: result: yes" >&5
27770 echo "${ECHO_T}yes" >&6; }
27772 else
27773 { echo "$as_me:$LINENO: result: no" >&5
27774 echo "${ECHO_T}no" >&6; }
27775 if test -f conf.oggtest ; then
27777 else
27778 echo "*** Could not run Ogg test program, checking why..."
27779 CFLAGS="$CFLAGS $OGG_CFLAGS"
27780 LIBS="$LIBS $OGG_LIBS"
27781 cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h. */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27788 #include <stdio.h>
27789 #include <ogg/ogg.h>
27792 main ()
27794 return 0;
27796 return 0;
27798 _ACEOF
27799 rm -f conftest.$ac_objext conftest$ac_exeext
27800 if { (ac_try="$ac_link"
27801 case "(($ac_try" in
27802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803 *) ac_try_echo=$ac_try;;
27804 esac
27805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806 (eval "$ac_link") 2>conftest.er1
27807 ac_status=$?
27808 grep -v '^ *+' conftest.er1 >conftest.err
27809 rm -f conftest.er1
27810 cat conftest.err >&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } && {
27813 test -z "$ac_c_werror_flag" ||
27814 test ! -s conftest.err
27815 } && test -s conftest$ac_exeext &&
27816 $as_test_x conftest$ac_exeext; then
27817 echo "*** The test program compiled, but did not run. This usually means"
27818 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
27819 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
27820 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27821 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27822 echo "*** is required on your system"
27823 echo "***"
27824 echo "*** If you have an old version installed, it is best to remove it, although"
27825 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27826 else
27827 echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27830 echo "*** The test program failed to compile or link. See the file config.log for the"
27831 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
27832 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
27833 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
27836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27837 conftest$ac_exeext conftest.$ac_ext
27838 CFLAGS="$ac_save_CFLAGS"
27839 LIBS="$ac_save_LIBS"
27841 OGG_CFLAGS=""
27842 OGG_LIBS=""
27843 { { echo "$as_me:$LINENO: error: Ogg needed!" >&5
27844 echo "$as_me: error: Ogg needed!" >&2;}
27845 { (exit 1); exit 1; }; }
27849 rm -f conf.oggtest
27851 libs_save=$LIBS
27852 LIBS="$OGG_LIBS $VORBIS_LIBS"
27853 { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
27854 echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; }
27855 if test "${ac_cv_func_oggpack_writealign+set}" = set; then
27856 echo $ECHO_N "(cached) $ECHO_C" >&6
27857 else
27858 cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h. */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h. */
27864 /* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
27865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27866 #define oggpack_writealign innocuous_oggpack_writealign
27868 /* System header to define __stub macros and hopefully few prototypes,
27869 which can conflict with char oggpack_writealign (); below.
27870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27871 <limits.h> exists even on freestanding compilers. */
27873 #ifdef __STDC__
27874 # include <limits.h>
27875 #else
27876 # include <assert.h>
27877 #endif
27879 #undef oggpack_writealign
27881 /* Override any GCC internal prototype to avoid an error.
27882 Use char because int might match the return type of a GCC
27883 builtin and then its argument prototype would still apply. */
27884 #ifdef __cplusplus
27885 extern "C"
27886 #endif
27887 char oggpack_writealign ();
27888 /* The GNU C library defines this for functions which it implements
27889 to always fail with ENOSYS. Some functions are actually named
27890 something starting with __ and the normal name is an alias. */
27891 #if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign
27892 choke me
27893 #endif
27896 main ()
27898 return oggpack_writealign ();
27900 return 0;
27902 _ACEOF
27903 rm -f conftest.$ac_objext conftest$ac_exeext
27904 if { (ac_try="$ac_link"
27905 case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27908 esac
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_link") 2>conftest.er1
27911 ac_status=$?
27912 grep -v '^ *+' conftest.er1 >conftest.err
27913 rm -f conftest.er1
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } && {
27917 test -z "$ac_c_werror_flag" ||
27918 test ! -s conftest.err
27919 } && test -s conftest$ac_exeext &&
27920 $as_test_x conftest$ac_exeext; then
27921 ac_cv_func_oggpack_writealign=yes
27922 else
27923 echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27926 ac_cv_func_oggpack_writealign=no
27929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27930 conftest$ac_exeext conftest.$ac_ext
27932 { echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
27933 echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; }
27934 if test $ac_cv_func_oggpack_writealign = yes; then
27936 else
27937 { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
27938 echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
27939 { (exit 1); exit 1; }; }
27942 LIBS=$libs_save
27945 HAVE_VORBIS=no
27948 if test "x$HAVE_PKG_CONFIG" = "xyes"
27949 then
27951 pkg_failed=no
27952 { echo "$as_me:$LINENO: checking for VORBIS" >&5
27953 echo $ECHO_N "checking for VORBIS... $ECHO_C" >&6; }
27955 if test -n "$PKG_CONFIG"; then
27956 if test -n "$VORBIS_CFLAGS"; then
27957 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
27958 else
27959 if test -n "$PKG_CONFIG" && \
27960 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.1.1\"") >&5
27961 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.1.1") 2>&5
27962 ac_status=$?
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; then
27965 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.1.1" 2>/dev/null`
27966 else
27967 pkg_failed=yes
27970 else
27971 pkg_failed=untried
27973 if test -n "$PKG_CONFIG"; then
27974 if test -n "$VORBIS_LIBS"; then
27975 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
27976 else
27977 if test -n "$PKG_CONFIG" && \
27978 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.1.1\"") >&5
27979 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.1.1") 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; then
27983 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.1.1" 2>/dev/null`
27984 else
27985 pkg_failed=yes
27988 else
27989 pkg_failed=untried
27994 if test $pkg_failed = yes; then
27996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27997 _pkg_short_errors_supported=yes
27998 else
27999 _pkg_short_errors_supported=no
28001 if test $_pkg_short_errors_supported = yes; then
28002 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.1.1"`
28003 else
28004 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.1.1"`
28006 # Put the nasty error message in config.log where it belongs
28007 echo "$VORBIS_PKG_ERRORS" >&5
28009 { echo "$as_me:$LINENO: result: no" >&5
28010 echo "${ECHO_T}no" >&6; }
28011 HAVE_VORBIS=no
28012 elif test $pkg_failed = untried; then
28013 HAVE_VORBIS=no
28014 else
28015 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
28016 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
28017 { echo "$as_me:$LINENO: result: yes" >&5
28018 echo "${ECHO_T}yes" >&6; }
28019 HAVE_VORBIS=yes
28021 VORBISENC_LIBS="-lvorbisenc"
28022 VORBISFILE_LIBS="-lvorbisfile"
28026 if test "x$HAVE_VORBIS" = "xno"
28027 then
28029 # Check whether --with-vorbis was given.
28030 if test "${with_vorbis+set}" = set; then
28031 withval=$with_vorbis; vorbis_prefix="$withval"
28032 else
28033 vorbis_prefix=""
28037 # Check whether --with-vorbis-libraries was given.
28038 if test "${with_vorbis_libraries+set}" = set; then
28039 withval=$with_vorbis_libraries; vorbis_libraries="$withval"
28040 else
28041 vorbis_libraries=""
28045 # Check whether --with-vorbis-includes was given.
28046 if test "${with_vorbis_includes+set}" = set; then
28047 withval=$with_vorbis_includes; vorbis_includes="$withval"
28048 else
28049 vorbis_includes=""
28052 # Check whether --enable-vorbistest was given.
28053 if test "${enable_vorbistest+set}" = set; then
28054 enableval=$enable_vorbistest;
28055 else
28056 enable_vorbistest=yes
28060 if test "x$vorbis_libraries" != "x" ; then
28061 VORBIS_LIBS="-L$vorbis_libraries"
28062 elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ; then
28063 VORBIS_LIBS=""
28064 elif test "x$vorbis_prefix" != "x" ; then
28065 VORBIS_LIBS="-L$vorbis_prefix/lib"
28066 elif test "x$prefix" != "xNONE"; then
28067 VORBIS_LIBS="-L$prefix/lib"
28070 VORBISFILE_LIBS="$VORBIS_LIBS -lvorbisfile"
28071 VORBISENC_LIBS="$VORBIS_LIBS -lvorbisenc"
28072 if test "x$vorbis_prefix" != "xno" ; then
28073 VORBIS_LIBS="$VORBIS_LIBS -lvorbis"
28076 if test "x$vorbis_includes" != "x" ; then
28077 VORBIS_CFLAGS="-I$vorbis_includes"
28078 elif test "x$vorbis_prefix" = "xno" || test "x$vorbis_prefix" = "xyes" ; then
28079 VORBIS_CFLAGS=""
28080 elif test "x$vorbis_prefix" != "x" ; then
28081 VORBIS_CFLAGS="-I$vorbis_prefix/include"
28082 elif test "x$prefix" != "xNONE"; then
28083 VORBIS_CFLAGS="-I$prefix/include"
28086 xiph_saved_LIBS="$LIBS"
28087 LIBS=""
28088 { echo "$as_me:$LINENO: checking for library containing cos" >&5
28089 echo $ECHO_N "checking for library containing cos... $ECHO_C" >&6; }
28090 if test "${ac_cv_search_cos+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 else
28093 ac_func_search_save_LIBS=$LIBS
28094 cat >conftest.$ac_ext <<_ACEOF
28095 /* confdefs.h. */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28101 /* Override any GCC internal prototype to avoid an error.
28102 Use char because int might match the return type of a GCC
28103 builtin and then its argument prototype would still apply. */
28104 #ifdef __cplusplus
28105 extern "C"
28106 #endif
28107 char cos ();
28109 main ()
28111 return cos ();
28113 return 0;
28115 _ACEOF
28116 for ac_lib in '' m; do
28117 if test -z "$ac_lib"; then
28118 ac_res="none required"
28119 else
28120 ac_res=-l$ac_lib
28121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28123 rm -f conftest.$ac_objext conftest$ac_exeext
28124 if { (ac_try="$ac_link"
28125 case "(($ac_try" in
28126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127 *) ac_try_echo=$ac_try;;
28128 esac
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_link") 2>conftest.er1
28131 ac_status=$?
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } && {
28137 test -z "$ac_c_werror_flag" ||
28138 test ! -s conftest.err
28139 } && test -s conftest$ac_exeext &&
28140 $as_test_x conftest$ac_exeext; then
28141 ac_cv_search_cos=$ac_res
28142 else
28143 echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.$ac_ext >&5
28149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28150 conftest$ac_exeext
28151 if test "${ac_cv_search_cos+set}" = set; then
28152 break
28154 done
28155 if test "${ac_cv_search_cos+set}" = set; then
28157 else
28158 ac_cv_search_cos=no
28160 rm conftest.$ac_ext
28161 LIBS=$ac_func_search_save_LIBS
28163 { echo "$as_me:$LINENO: result: $ac_cv_search_cos" >&5
28164 echo "${ECHO_T}$ac_cv_search_cos" >&6; }
28165 ac_res=$ac_cv_search_cos
28166 if test "$ac_res" != no; then
28167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28168 VORBIS_LIBS="$VORBIS_LIBS $LIBS"
28169 else
28171 { echo "$as_me:$LINENO: WARNING: cos() not found in math library, vorbis installation may not work" >&5
28172 echo "$as_me: WARNING: cos() not found in math library, vorbis installation may not work" >&2;}
28176 LIBS="$xiph_saved_LIBS"
28178 { echo "$as_me:$LINENO: checking for Vorbis" >&5
28179 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
28180 if test "x$vorbis_prefix" = "xno" ; then
28181 no_vorbis="disabled"
28182 enable_vorbistest="no"
28183 else
28184 no_vorbis=""
28188 if test "x$enable_vorbistest" = "xyes" ; then
28189 ac_save_CFLAGS="$CFLAGS"
28190 ac_save_LIBS="$LIBS"
28191 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
28192 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
28193 rm -f conf.vorbistest
28194 if test "$cross_compiling" = yes; then
28195 echo $ac_n "cross compiling; assumed OK... $ac_c"
28196 else
28197 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h. */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28204 #include <stdio.h>
28205 #include <stdlib.h>
28206 #include <string.h>
28207 #include <vorbis/codec.h>
28209 int main ()
28211 system("touch conf.vorbistest");
28212 return 0;
28216 _ACEOF
28217 rm -f conftest$ac_exeext
28218 if { (ac_try="$ac_link"
28219 case "(($ac_try" in
28220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28222 esac
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224 (eval "$ac_link") 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28231 esac
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
28234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28238 else
28239 echo "$as_me: program exited with status $ac_status" >&5
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ( exit $ac_status )
28244 no_vorbis=yes
28246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28250 CFLAGS="$ac_save_CFLAGS"
28251 LIBS="$ac_save_LIBS"
28254 if test "x$no_vorbis" = "xdisabled" ; then
28255 { echo "$as_me:$LINENO: result: no" >&5
28256 echo "${ECHO_T}no" >&6; }
28257 { { echo "$as_me:$LINENO: error: Vorbis needed!" >&5
28258 echo "$as_me: error: Vorbis needed!" >&2;}
28259 { (exit 1); exit 1; }; }
28260 elif test "x$no_vorbis" = "x" ; then
28261 { echo "$as_me:$LINENO: result: yes" >&5
28262 echo "${ECHO_T}yes" >&6; }
28264 else
28265 { echo "$as_me:$LINENO: result: no" >&5
28266 echo "${ECHO_T}no" >&6; }
28267 if test -f conf.vorbistest ; then
28269 else
28270 echo "*** Could not run Vorbis test program, checking why..."
28271 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
28272 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
28273 cat >conftest.$ac_ext <<_ACEOF
28274 /* confdefs.h. */
28275 _ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h. */
28280 #include <stdio.h>
28281 #include <vorbis/codec.h>
28284 main ()
28286 return 0;
28288 return 0;
28290 _ACEOF
28291 rm -f conftest.$ac_objext conftest$ac_exeext
28292 if { (ac_try="$ac_link"
28293 case "(($ac_try" in
28294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295 *) ac_try_echo=$ac_try;;
28296 esac
28297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298 (eval "$ac_link") 2>conftest.er1
28299 ac_status=$?
28300 grep -v '^ *+' conftest.er1 >conftest.err
28301 rm -f conftest.er1
28302 cat conftest.err >&5
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } && {
28305 test -z "$ac_c_werror_flag" ||
28306 test ! -s conftest.err
28307 } && test -s conftest$ac_exeext &&
28308 $as_test_x conftest$ac_exeext; then
28309 echo "*** The test program compiled, but did not run. This usually means"
28310 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
28311 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
28312 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28313 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28314 echo "*** is required on your system"
28315 echo "***"
28316 echo "*** If you have an old version installed, it is best to remove it, although"
28317 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28318 else
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 echo "*** The test program failed to compile or link. See the file config.log for the"
28323 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
28324 echo "*** or that you have moved Vorbis since it was installed."
28327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28328 conftest$ac_exeext conftest.$ac_ext
28329 CFLAGS="$ac_save_CFLAGS"
28330 LIBS="$ac_save_LIBS"
28332 VORBIS_CFLAGS=""
28333 VORBIS_LIBS=""
28334 VORBISFILE_LIBS=""
28335 VORBISENC_LIBS=""
28336 { { echo "$as_me:$LINENO: error: Vorbis needed!" >&5
28337 echo "$as_me: error: Vorbis needed!" >&2;}
28338 { (exit 1); exit 1; }; }
28344 rm -f conf.vorbistest
28350 SHARE_LIBS='$(top_builddir)/share/libutf8.a $(top_builddir)/share/libgetopt.a'
28351 SHARE_CFLAGS='-I$(top_srcdir)/include'
28353 I18N_CFLAGS='-I$(top_srcdir)/intl'
28354 I18N_LIBS=$INTLLIBS
28356 SOCKET_LIBS=
28357 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
28358 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
28359 if test "${ac_cv_lib_socket_socket+set}" = set; then
28360 echo $ECHO_N "(cached) $ECHO_C" >&6
28361 else
28362 ac_check_lib_save_LIBS=$LIBS
28363 LIBS="-lsocket $LIBS"
28364 cat >conftest.$ac_ext <<_ACEOF
28365 /* confdefs.h. */
28366 _ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h. */
28371 /* Override any GCC internal prototype to avoid an error.
28372 Use char because int might match the return type of a GCC
28373 builtin and then its argument prototype would still apply. */
28374 #ifdef __cplusplus
28375 extern "C"
28376 #endif
28377 char socket ();
28379 main ()
28381 return socket ();
28383 return 0;
28385 _ACEOF
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (ac_try="$ac_link"
28388 case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28391 esac
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_link") 2>conftest.er1
28394 ac_status=$?
28395 grep -v '^ *+' conftest.er1 >conftest.err
28396 rm -f conftest.er1
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } && {
28400 test -z "$ac_c_werror_flag" ||
28401 test ! -s conftest.err
28402 } && test -s conftest$ac_exeext &&
28403 $as_test_x conftest$ac_exeext; then
28404 ac_cv_lib_socket_socket=yes
28405 else
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28409 ac_cv_lib_socket_socket=no
28412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28413 conftest$ac_exeext conftest.$ac_ext
28414 LIBS=$ac_check_lib_save_LIBS
28416 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
28417 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
28418 if test $ac_cv_lib_socket_socket = yes; then
28419 SOCKET_LIBS="-lsocket"
28422 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28423 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
28424 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28425 echo $ECHO_N "(cached) $ECHO_C" >&6
28426 else
28427 ac_check_lib_save_LIBS=$LIBS
28428 LIBS="-lnsl $LIBS"
28429 cat >conftest.$ac_ext <<_ACEOF
28430 /* confdefs.h. */
28431 _ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h. */
28436 /* Override any GCC internal prototype to avoid an error.
28437 Use char because int might match the return type of a GCC
28438 builtin and then its argument prototype would still apply. */
28439 #ifdef __cplusplus
28440 extern "C"
28441 #endif
28442 char gethostbyname ();
28444 main ()
28446 return gethostbyname ();
28448 return 0;
28450 _ACEOF
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (ac_try="$ac_link"
28453 case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456 esac
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_link") 2>conftest.er1
28459 ac_status=$?
28460 grep -v '^ *+' conftest.er1 >conftest.err
28461 rm -f conftest.er1
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } && {
28465 test -z "$ac_c_werror_flag" ||
28466 test ! -s conftest.err
28467 } && test -s conftest$ac_exeext &&
28468 $as_test_x conftest$ac_exeext; then
28469 ac_cv_lib_nsl_gethostbyname=yes
28470 else
28471 echo "$as_me: failed program was:" >&5
28472 sed 's/^/| /' conftest.$ac_ext >&5
28474 ac_cv_lib_nsl_gethostbyname=no
28477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28478 conftest$ac_exeext conftest.$ac_ext
28479 LIBS=$ac_check_lib_save_LIBS
28481 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28482 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
28483 if test $ac_cv_lib_nsl_gethostbyname = yes; then
28484 SOCKET_LIBS="-lnsl $SOCKET_LIBS"
28490 if test "x$HAVE_PKG_CONFIG" = "xyes"; then
28492 pkg_failed=no
28493 { echo "$as_me:$LINENO: checking for CURL" >&5
28494 echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
28496 if test -n "$PKG_CONFIG"; then
28497 if test -n "$CURL_CFLAGS"; then
28498 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
28499 else
28500 if test -n "$PKG_CONFIG" && \
28501 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
28502 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
28503 ac_status=$?
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); }; then
28506 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
28507 else
28508 pkg_failed=yes
28511 else
28512 pkg_failed=untried
28514 if test -n "$PKG_CONFIG"; then
28515 if test -n "$CURL_LIBS"; then
28516 pkg_cv_CURL_LIBS="$CURL_LIBS"
28517 else
28518 if test -n "$PKG_CONFIG" && \
28519 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
28520 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; then
28524 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
28525 else
28526 pkg_failed=yes
28529 else
28530 pkg_failed=untried
28535 if test $pkg_failed = yes; then
28537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28538 _pkg_short_errors_supported=yes
28539 else
28540 _pkg_short_errors_supported=no
28542 if test $_pkg_short_errors_supported = yes; then
28543 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
28544 else
28545 CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
28547 # Put the nasty error message in config.log where it belongs
28548 echo "$CURL_PKG_ERRORS" >&5
28550 { echo "$as_me:$LINENO: result: no" >&5
28551 echo "${ECHO_T}no" >&6; }
28552 HAVE_CURL=no
28553 elif test $pkg_failed = untried; then
28554 HAVE_CURL=no
28555 else
28556 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
28557 CURL_LIBS=$pkg_cv_CURL_LIBS
28558 { echo "$as_me:$LINENO: result: yes" >&5
28559 echo "${ECHO_T}yes" >&6; }
28560 HAVE_CURL=yes
28562 if test "x$HAVE_CURL" = "xno"; then
28564 # Check whether --with-curl was given.
28565 if test "${with_curl+set}" = set; then
28566 withval=$with_curl; curl_prefix="$withval"
28567 else
28568 curl_prefix=""
28572 # Check whether --with-curl-libraries was given.
28573 if test "${with_curl_libraries+set}" = set; then
28574 withval=$with_curl_libraries; curl_libraries="$withval"
28575 else
28576 curl_libraries=""
28580 # Check whether --with-curl-includes was given.
28581 if test "${with_curl_includes+set}" = set; then
28582 withval=$with_curl_includes; curl_includes="$withval"
28583 else
28584 curl_includes=""
28587 # Check whether --enable-curltest was given.
28588 if test "${enable_curltest+set}" = set; then
28589 enableval=$enable_curltest;
28590 else
28591 enable_curltest=yes
28595 if test "x$curl_prefix" != "xno" ; then
28597 if test "x$curl_libraries" != "x" ; then
28598 CURL_LIBS="-L$curl_libraries"
28599 elif test "x$curl_prefix" != "x" ; then
28600 CURL_LIBS="-L$curl_prefix/lib"
28601 elif test "x$prefix" != "xNONE" ; then
28602 CURL_LIBS="-L$prefix/lib"
28605 CURL_LIBS="$CURL_LIBS -lcurl"
28607 if test "x$curl_includes" != "x" ; then
28608 CURL_CFLAGS="-I$curl_includes"
28609 elif test "x$curl_prefix" != "x" ; then
28610 CURL_CFLAGS="-I$curl_prefix/include"
28611 elif test "x$prefix" != "xNONE"; then
28612 CURL_CFLAGS="-I$prefix/include"
28615 { echo "$as_me:$LINENO: checking for libcurl" >&5
28616 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
28617 no_curl=""
28620 if test "x$enable_curltest" = "xyes" ; then
28621 ac_save_CFLAGS="$CFLAGS"
28622 ac_save_LIBS="$LIBS"
28623 CFLAGS="$CFLAGS $CURL_CFLAGS"
28624 LIBS="$LIBS $CURL_LIBS"
28625 rm -f conf.curltest
28626 if test "$cross_compiling" = yes; then
28627 echo $ac_n "cross compiling; assumed OK... $ac_c"
28628 else
28629 cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h. */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28636 #include <stdio.h>
28637 #include <stdlib.h>
28638 #include <string.h>
28639 #include <curl/curl.h>
28641 int main ()
28643 system("touch conf.curltest");
28644 return 0;
28648 _ACEOF
28649 rm -f conftest$ac_exeext
28650 if { (ac_try="$ac_link"
28651 case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_link") 2>&5
28657 ac_status=$?
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28660 { (case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28663 esac
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665 (eval "$ac_try") 2>&5
28666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; }; then
28670 else
28671 echo "$as_me: program exited with status $ac_status" >&5
28672 echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28675 ( exit $ac_status )
28676 no_curl=yes
28678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28682 CFLAGS="$ac_save_CFLAGS"
28683 LIBS="$ac_save_LIBS"
28686 if test "x$no_curl" = "x" ; then
28687 { echo "$as_me:$LINENO: result: yes" >&5
28688 echo "${ECHO_T}yes" >&6; }
28690 cat >>confdefs.h <<\_ACEOF
28691 #define HAVE_CURL 1
28692 _ACEOF
28694 HAVE_CURL=yes
28695 else
28696 { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698 if test -f conf.curltest ; then
28700 else
28701 echo "*** Could not run libcurl test program, checking why..."
28702 CFLAGS="$CFLAGS $CURL_CFLAGS"
28703 LIBS="$LIBS $CURL_LIBS"
28704 cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h. */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28711 #include <stdio.h>
28712 #include <curl/curl.h>
28715 main ()
28717 return 0;
28719 return 0;
28721 _ACEOF
28722 rm -f conftest.$ac_objext conftest$ac_exeext
28723 if { (ac_try="$ac_link"
28724 case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727 esac
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_link") 2>conftest.er1
28730 ac_status=$?
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } && {
28736 test -z "$ac_c_werror_flag" ||
28737 test ! -s conftest.err
28738 } && test -s conftest$ac_exeext &&
28739 $as_test_x conftest$ac_exeext; then
28740 echo "*** The test program compiled, but did not run. This usually means"
28741 echo "*** that the run-time linker is not finding libcurl or finding the wrong"
28742 echo "*** version of libcurl. If it is not finding libcurl, you'll need to set your"
28743 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28744 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28745 echo "*** is required on your system"
28746 echo "***"
28747 echo "*** If you have an old version installed, it is best to remove it, although"
28748 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28749 else
28750 echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28753 echo "*** The test program failed to compile or link. See the file config.log for the"
28754 echo "*** exact error that occured. This usually means libcurl was incorrectly installed"
28755 echo "*** or that you have moved libcurl since it was installed."
28758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28759 conftest$ac_exeext conftest.$ac_ext
28760 CFLAGS="$ac_save_CFLAGS"
28761 LIBS="$ac_save_LIBS"
28763 CURL_CFLAGS=""
28764 CURL_LIBS=""
28765 HAVE_CURL=no; { echo "$as_me:$LINENO: WARNING: libcurl missing" >&5
28766 echo "$as_me: WARNING: libcurl missing" >&2;}
28768 else
28769 CURL_CFLAGS=""
28770 CURL_LIBS=""
28774 rm -f conf.curltest
28777 else
28779 # Check whether --with-curl was given.
28780 if test "${with_curl+set}" = set; then
28781 withval=$with_curl; curl_prefix="$withval"
28782 else
28783 curl_prefix=""
28787 # Check whether --with-curl-libraries was given.
28788 if test "${with_curl_libraries+set}" = set; then
28789 withval=$with_curl_libraries; curl_libraries="$withval"
28790 else
28791 curl_libraries=""
28795 # Check whether --with-curl-includes was given.
28796 if test "${with_curl_includes+set}" = set; then
28797 withval=$with_curl_includes; curl_includes="$withval"
28798 else
28799 curl_includes=""
28802 # Check whether --enable-curltest was given.
28803 if test "${enable_curltest+set}" = set; then
28804 enableval=$enable_curltest;
28805 else
28806 enable_curltest=yes
28810 if test "x$curl_prefix" != "xno" ; then
28812 if test "x$curl_libraries" != "x" ; then
28813 CURL_LIBS="-L$curl_libraries"
28814 elif test "x$curl_prefix" != "x" ; then
28815 CURL_LIBS="-L$curl_prefix/lib"
28816 elif test "x$prefix" != "xNONE" ; then
28817 CURL_LIBS="-L$prefix/lib"
28820 CURL_LIBS="$CURL_LIBS -lcurl"
28822 if test "x$curl_includes" != "x" ; then
28823 CURL_CFLAGS="-I$curl_includes"
28824 elif test "x$curl_prefix" != "x" ; then
28825 CURL_CFLAGS="-I$curl_prefix/include"
28826 elif test "x$prefix" != "xNONE"; then
28827 CURL_CFLAGS="-I$prefix/include"
28830 { echo "$as_me:$LINENO: checking for libcurl" >&5
28831 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
28832 no_curl=""
28835 if test "x$enable_curltest" = "xyes" ; then
28836 ac_save_CFLAGS="$CFLAGS"
28837 ac_save_LIBS="$LIBS"
28838 CFLAGS="$CFLAGS $CURL_CFLAGS"
28839 LIBS="$LIBS $CURL_LIBS"
28840 rm -f conf.curltest
28841 if test "$cross_compiling" = yes; then
28842 echo $ac_n "cross compiling; assumed OK... $ac_c"
28843 else
28844 cat >conftest.$ac_ext <<_ACEOF
28845 /* confdefs.h. */
28846 _ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28851 #include <stdio.h>
28852 #include <stdlib.h>
28853 #include <string.h>
28854 #include <curl/curl.h>
28856 int main ()
28858 system("touch conf.curltest");
28859 return 0;
28863 _ACEOF
28864 rm -f conftest$ac_exeext
28865 if { (ac_try="$ac_link"
28866 case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_link") 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28875 { (case "(($ac_try" in
28876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877 *) ac_try_echo=$ac_try;;
28878 esac
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880 (eval "$ac_try") 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28885 else
28886 echo "$as_me: program exited with status $ac_status" >&5
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28890 ( exit $ac_status )
28891 no_curl=yes
28893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28897 CFLAGS="$ac_save_CFLAGS"
28898 LIBS="$ac_save_LIBS"
28901 if test "x$no_curl" = "x" ; then
28902 { echo "$as_me:$LINENO: result: yes" >&5
28903 echo "${ECHO_T}yes" >&6; }
28905 cat >>confdefs.h <<\_ACEOF
28906 #define HAVE_CURL 1
28907 _ACEOF
28909 HAVE_CURL=yes
28910 else
28911 { echo "$as_me:$LINENO: result: no" >&5
28912 echo "${ECHO_T}no" >&6; }
28913 if test -f conf.curltest ; then
28915 else
28916 echo "*** Could not run libcurl test program, checking why..."
28917 CFLAGS="$CFLAGS $CURL_CFLAGS"
28918 LIBS="$LIBS $CURL_LIBS"
28919 cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h. */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h. */
28926 #include <stdio.h>
28927 #include <curl/curl.h>
28930 main ()
28932 return 0;
28934 return 0;
28936 _ACEOF
28937 rm -f conftest.$ac_objext conftest$ac_exeext
28938 if { (ac_try="$ac_link"
28939 case "(($ac_try" in
28940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28942 esac
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944 (eval "$ac_link") 2>conftest.er1
28945 ac_status=$?
28946 grep -v '^ *+' conftest.er1 >conftest.err
28947 rm -f conftest.er1
28948 cat conftest.err >&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } && {
28951 test -z "$ac_c_werror_flag" ||
28952 test ! -s conftest.err
28953 } && test -s conftest$ac_exeext &&
28954 $as_test_x conftest$ac_exeext; then
28955 echo "*** The test program compiled, but did not run. This usually means"
28956 echo "*** that the run-time linker is not finding libcurl or finding the wrong"
28957 echo "*** version of libcurl. If it is not finding libcurl, you'll need to set your"
28958 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28959 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28960 echo "*** is required on your system"
28961 echo "***"
28962 echo "*** If you have an old version installed, it is best to remove it, although"
28963 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28964 else
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 echo "*** The test program failed to compile or link. See the file config.log for the"
28969 echo "*** exact error that occured. This usually means libcurl was incorrectly installed"
28970 echo "*** or that you have moved libcurl since it was installed."
28973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28974 conftest$ac_exeext conftest.$ac_ext
28975 CFLAGS="$ac_save_CFLAGS"
28976 LIBS="$ac_save_LIBS"
28978 CURL_CFLAGS=""
28979 CURL_LIBS=""
28980 HAVE_CURL=no; { echo "$as_me:$LINENO: WARNING: libcurl missing" >&5
28981 echo "$as_me: WARNING: libcurl missing" >&2;}
28983 else
28984 CURL_CFLAGS=""
28985 CURL_LIBS=""
28989 rm -f conf.curltest
28992 if test "x$HAVE_CURL" = "xyes"; then
28994 cat >>confdefs.h <<\_ACEOF
28995 #define HAVE_CURL 1
28996 _ACEOF
29000 if test "x$build_ogg123" = xyes; then
29001 { echo "$as_me:$LINENO: result: checking for ogg123 requirements" >&5
29002 echo "${ECHO_T}checking for ogg123 requirements" >&6; }
29004 # Check whether --with-ao was given.
29005 if test "${with_ao+set}" = set; then
29006 withval=$with_ao; ao_prefix="$withval"
29007 else
29008 ao_prefix=""
29012 # Check whether --with-ao-libraries was given.
29013 if test "${with_ao_libraries+set}" = set; then
29014 withval=$with_ao_libraries; ao_libraries="$withval"
29015 else
29016 ao_libraries=""
29020 # Check whether --with-ao-includes was given.
29021 if test "${with_ao_includes+set}" = set; then
29022 withval=$with_ao_includes; ao_includes="$withval"
29023 else
29024 ao_includes=""
29027 # Check whether --enable-aotest was given.
29028 if test "${enable_aotest+set}" = set; then
29029 enableval=$enable_aotest;
29030 else
29031 enable_aotest=yes
29035 if test "x$ao_prefix" != "xno"
29036 then
29037 if test "x$ao_libraries" != "x" ; then
29038 AO_LIBS="-L$ao_libraries"
29039 elif test "x$ao_prefix" = "xno" || test "x$ao_prefix" = "xyes" ; then
29040 AO_LIBS=""
29041 elif test "x$ao_prefix" != "x" -a "x$ao_prefix" != "xyes"; then
29042 AO_LIBS="-L$ao_prefix/lib"
29043 elif test "x$prefix" != "xNONE"; then
29044 AO_LIBS="-L$prefix/lib"
29047 if test "x$ao_includes" != "x" ; then
29048 AO_CFLAGS="-I$ao_includes"
29049 elif test "x$ao_prefix" = "xno" || test "x$ao_prefix" = "xyes" ; then
29050 AO_CFLAGS=""
29051 elif test "x$ao_prefix" != "x" -a "x$ao_prefix" != "xyes"; then
29052 AO_CFLAGS="-I$ao_prefix/include"
29053 elif test "x$prefix" != "xNONE"; then
29054 AO_CFLAGS="-I$prefix/include"
29057 # see where dl* and friends live
29059 for ac_func in dlopen
29061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29066 else
29067 cat >conftest.$ac_ext <<_ACEOF
29068 /* confdefs.h. */
29069 _ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h. */
29073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29075 #define $ac_func innocuous_$ac_func
29077 /* System header to define __stub macros and hopefully few prototypes,
29078 which can conflict with char $ac_func (); below.
29079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29080 <limits.h> exists even on freestanding compilers. */
29082 #ifdef __STDC__
29083 # include <limits.h>
29084 #else
29085 # include <assert.h>
29086 #endif
29088 #undef $ac_func
29090 /* Override any GCC internal prototype to avoid an error.
29091 Use char because int might match the return type of a GCC
29092 builtin and then its argument prototype would still apply. */
29093 #ifdef __cplusplus
29094 extern "C"
29095 #endif
29096 char $ac_func ();
29097 /* The GNU C library defines this for functions which it implements
29098 to always fail with ENOSYS. Some functions are actually named
29099 something starting with __ and the normal name is an alias. */
29100 #if defined __stub_$ac_func || defined __stub___$ac_func
29101 choke me
29102 #endif
29105 main ()
29107 return $ac_func ();
29109 return 0;
29111 _ACEOF
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (ac_try="$ac_link"
29114 case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117 esac
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_link") 2>conftest.er1
29120 ac_status=$?
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } && {
29126 test -z "$ac_c_werror_flag" ||
29127 test ! -s conftest.err
29128 } && test -s conftest$ac_exeext &&
29129 $as_test_x conftest$ac_exeext; then
29130 eval "$as_ac_var=yes"
29131 else
29132 echo "$as_me: failed program was:" >&5
29133 sed 's/^/| /' conftest.$ac_ext >&5
29135 eval "$as_ac_var=no"
29138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29139 conftest$ac_exeext conftest.$ac_ext
29141 ac_res=`eval echo '${'$as_ac_var'}'`
29142 { echo "$as_me:$LINENO: result: $ac_res" >&5
29143 echo "${ECHO_T}$ac_res" >&6; }
29144 if test `eval echo '${'$as_ac_var'}'` = yes; then
29145 cat >>confdefs.h <<_ACEOF
29146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29147 _ACEOF
29148 AO_DL_LIBS=""
29149 else
29151 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29152 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
29153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29155 else
29156 ac_check_lib_save_LIBS=$LIBS
29157 LIBS="-ldl $LIBS"
29158 cat >conftest.$ac_ext <<_ACEOF
29159 /* confdefs.h. */
29160 _ACEOF
29161 cat confdefs.h >>conftest.$ac_ext
29162 cat >>conftest.$ac_ext <<_ACEOF
29163 /* end confdefs.h. */
29165 /* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29168 #ifdef __cplusplus
29169 extern "C"
29170 #endif
29171 char dlopen ();
29173 main ()
29175 return dlopen ();
29177 return 0;
29179 _ACEOF
29180 rm -f conftest.$ac_objext conftest$ac_exeext
29181 if { (ac_try="$ac_link"
29182 case "(($ac_try" in
29183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184 *) ac_try_echo=$ac_try;;
29185 esac
29186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_link") 2>conftest.er1
29188 ac_status=$?
29189 grep -v '^ *+' conftest.er1 >conftest.err
29190 rm -f conftest.er1
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } && {
29194 test -z "$ac_c_werror_flag" ||
29195 test ! -s conftest.err
29196 } && test -s conftest$ac_exeext &&
29197 $as_test_x conftest$ac_exeext; then
29198 ac_cv_lib_dl_dlopen=yes
29199 else
29200 echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29203 ac_cv_lib_dl_dlopen=no
29206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29207 conftest$ac_exeext conftest.$ac_ext
29208 LIBS=$ac_check_lib_save_LIBS
29210 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
29212 if test $ac_cv_lib_dl_dlopen = yes; then
29213 AO_DL_LIBS="-ldl"
29214 else
29216 { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
29217 your system may not be supported." >&5
29218 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
29219 your system may not be supported." >&2;}
29225 done
29228 if test "x$ao_prefix" != "xno" ; then
29229 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
29232 { echo "$as_me:$LINENO: checking for ao" >&5
29233 echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
29234 if test "x$ao_prefix" = "xno" ; then
29235 no_ao="disabled"
29236 enable_aotest="no"
29237 else
29238 no_ao=""
29242 if test "x$enable_aotest" = "xyes" ; then
29243 ac_save_CFLAGS="$CFLAGS"
29244 ac_save_LIBS="$LIBS"
29245 CFLAGS="$CFLAGS $AO_CFLAGS"
29246 LIBS="$LIBS $AO_LIBS"
29247 rm -f conf.aotest
29248 if test "$cross_compiling" = yes; then
29249 echo $ac_n "cross compiling; assumed OK... $ac_c"
29250 else
29251 cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h. */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29258 #include <stdio.h>
29259 #include <stdlib.h>
29260 #include <string.h>
29261 #include <ao/ao.h>
29263 int main ()
29265 system("touch conf.aotest");
29266 return 0;
29270 _ACEOF
29271 rm -f conftest$ac_exeext
29272 if { (ac_try="$ac_link"
29273 case "(($ac_try" in
29274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29276 esac
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_link") 2>&5
29279 ac_status=$?
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29282 { (case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_try") 2>&5
29288 ac_status=$?
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
29292 else
29293 echo "$as_me: program exited with status $ac_status" >&5
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29297 ( exit $ac_status )
29298 no_ao=yes
29300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29304 CFLAGS="$ac_save_CFLAGS"
29305 LIBS="$ac_save_LIBS"
29308 if test "x$no_ao" = "xdisabled" ; then
29309 { echo "$as_me:$LINENO: result: no" >&5
29310 echo "${ECHO_T}no" >&6; }
29311 build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao missing" >&5
29312 echo "$as_me: WARNING: libao missing" >&2;}
29313 elif test "x$no_ao" = "x" ; then
29314 { echo "$as_me:$LINENO: result: yes" >&5
29315 echo "${ECHO_T}yes" >&6; }
29317 else
29318 { echo "$as_me:$LINENO: result: no" >&5
29319 echo "${ECHO_T}no" >&6; }
29320 if test -f conf.aotest ; then
29322 else
29323 echo "*** Could not run ao test program, checking why..."
29324 CFLAGS="$CFLAGS $AO_CFLAGS"
29325 LIBS="$LIBS $AO_LIBS"
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h. */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29333 #include <stdio.h>
29334 #include <ao/ao.h>
29337 main ()
29339 return 0;
29341 return 0;
29343 _ACEOF
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (ac_try="$ac_link"
29346 case "(($ac_try" in
29347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_link") 2>conftest.er1
29352 ac_status=$?
29353 grep -v '^ *+' conftest.er1 >conftest.err
29354 rm -f conftest.er1
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest$ac_exeext &&
29361 $as_test_x conftest$ac_exeext; then
29362 echo "*** The test program compiled, but did not run. This usually means"
29363 echo "*** that the run-time linker is not finding ao or finding the wrong"
29364 echo "*** version of ao. If it is not finding ao, you'll need to set your"
29365 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29366 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29367 echo "*** is required on your system"
29368 echo "***"
29369 echo "*** If you have an old version installed, it is best to remove it, although"
29370 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29371 else
29372 echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29375 echo "*** The test program failed to compile or link. See the file config.log for the"
29376 echo "*** exact error that occured. This usually means ao was incorrectly installed"
29377 echo "*** or that you have moved ao since it was installed."
29380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29381 conftest$ac_exeext conftest.$ac_ext
29382 CFLAGS="$ac_save_CFLAGS"
29383 LIBS="$ac_save_LIBS"
29385 AO_CFLAGS=""
29386 AO_LIBS=""
29387 build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao missing" >&5
29388 echo "$as_me: WARNING: libao missing" >&2;}
29392 rm -f conf.aotest
29398 acx_pthread_ok=no
29400 # First, check if the POSIX threads header, pthread.h, is available.
29401 # If it isn't, don't bother looking for the threads libraries.
29402 if test "${ac_cv_header_pthread_h+set}" = set; then
29403 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29404 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29405 if test "${ac_cv_header_pthread_h+set}" = set; then
29406 echo $ECHO_N "(cached) $ECHO_C" >&6
29408 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29409 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29410 else
29411 # Is the header compilable?
29412 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29413 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h. */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 $ac_includes_default
29421 #include <pthread.h>
29422 _ACEOF
29423 rm -f conftest.$ac_objext
29424 if { (ac_try="$ac_compile"
29425 case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_compile") 2>conftest.er1
29431 ac_status=$?
29432 grep -v '^ *+' conftest.er1 >conftest.err
29433 rm -f conftest.er1
29434 cat conftest.err >&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); } && {
29437 test -z "$ac_c_werror_flag" ||
29438 test ! -s conftest.err
29439 } && test -s conftest.$ac_objext; then
29440 ac_header_compiler=yes
29441 else
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ac_header_compiler=no
29448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29450 echo "${ECHO_T}$ac_header_compiler" >&6; }
29452 # Is the header present?
29453 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29454 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29455 cat >conftest.$ac_ext <<_ACEOF
29456 /* confdefs.h. */
29457 _ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h. */
29461 #include <pthread.h>
29462 _ACEOF
29463 if { (ac_try="$ac_cpp conftest.$ac_ext"
29464 case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29467 esac
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29470 ac_status=$?
29471 grep -v '^ *+' conftest.er1 >conftest.err
29472 rm -f conftest.er1
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } >/dev/null && {
29476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29477 test ! -s conftest.err
29478 }; then
29479 ac_header_preproc=yes
29480 else
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29484 ac_header_preproc=no
29487 rm -f conftest.err conftest.$ac_ext
29488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29489 echo "${ECHO_T}$ac_header_preproc" >&6; }
29491 # So? What about this header?
29492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29493 yes:no: )
29494 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29495 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29497 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29498 ac_header_preproc=yes
29500 no:yes:* )
29501 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29502 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29504 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29505 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29506 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29507 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29508 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29510 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29511 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29512 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29515 esac
29516 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29517 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29518 if test "${ac_cv_header_pthread_h+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 else
29521 ac_cv_header_pthread_h=$ac_header_preproc
29523 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29524 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29527 if test $ac_cv_header_pthread_h = yes; then
29529 else
29530 acx_pthread_ok=noheader
29535 # We must check for the threads library under a number of different
29536 # names; the ordering is very important because some systems
29537 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
29538 # libraries is broken (non-POSIX).
29540 # First of all, check if the user has set any of the PTHREAD_LIBS,
29541 # etcetera environment variables, and if threads linking works using
29542 # them:
29543 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
29544 save_CFLAGS="$CFLAGS"
29545 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
29546 save_LIBS="$LIBS"
29547 LIBS="$PTHREAD_LIBS $LIBS"
29548 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
29549 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
29550 cat >conftest.$ac_ext <<_ACEOF
29551 /* confdefs.h. */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29557 /* Override any GCC internal prototype to avoid an error.
29558 Use char because int might match the return type of a GCC
29559 builtin and then its argument prototype would still apply. */
29560 #ifdef __cplusplus
29561 extern "C"
29562 #endif
29563 char pthread_join ();
29565 main ()
29567 return pthread_join ();
29569 return 0;
29571 _ACEOF
29572 rm -f conftest.$ac_objext conftest$ac_exeext
29573 if { (ac_try="$ac_link"
29574 case "(($ac_try" in
29575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29577 esac
29578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_link") 2>conftest.er1
29580 ac_status=$?
29581 grep -v '^ *+' conftest.er1 >conftest.err
29582 rm -f conftest.er1
29583 cat conftest.err >&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } && {
29586 test -z "$ac_c_werror_flag" ||
29587 test ! -s conftest.err
29588 } && test -s conftest$ac_exeext &&
29589 $as_test_x conftest$ac_exeext; then
29590 acx_pthread_ok=yes
29591 else
29592 echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29599 conftest$ac_exeext conftest.$ac_ext
29600 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
29601 echo "${ECHO_T}$acx_pthread_ok" >&6; }
29602 if test x"$acx_pthread_ok" = xno; then
29603 PTHREAD_LIBS=""
29604 PTHREAD_CFLAGS=""
29606 LIBS="$save_LIBS"
29607 CFLAGS="$save_CFLAGS"
29610 # Create a list of thread flags to try. Items starting with a "-" are
29611 # C compiler flags, and other items are library names, except for "none"
29612 # which indicates that we try without any flags at all.
29614 acx_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads --thread-safe -mt"
29616 # The ordering *is* (sometimes) important. Some notes on the
29617 # individual items follow:
29619 # pthreads: AIX (must check this before -lpthread)
29620 # none: in case threads are in libc; should be tried before -Kthread and
29621 # other compiler flags to prevent continual compiler warnings
29622 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
29623 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
29624 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
29625 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
29626 # -pthreads: Solaris/gcc
29627 # -mthreads: Mingw32/gcc, Lynx/gcc
29628 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
29629 # doesn't hurt to check since this sometimes defines pthreads too;
29630 # also defines -D_REENTRANT)
29631 # pthread: Linux, etcetera
29632 # --thread-safe: KAI C++
29634 case "${host_cpu}-${host_os}" in
29635 *solaris*)
29637 # On Solaris (at least, for some versions), libc contains stubbed
29638 # (non-functional) versions of the pthreads routines, so link-based
29639 # tests will erroneously succeed. (We need to link with -pthread or
29640 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
29641 # a function called by this macro, so we could check for that, but
29642 # who knows whether they'll stub that too in a future libc.) So,
29643 # we'll just look for -pthreads and -lpthread first:
29644 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
29646 esac
29648 if test x"$acx_pthread_ok" = xno; then
29649 for flag in $acx_pthread_flags; do
29651 case $flag in
29652 none)
29653 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29654 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
29658 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29659 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
29660 PTHREAD_CFLAGS="$flag"
29664 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29665 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
29666 PTHREAD_LIBS="-l$flag"
29668 esac
29670 save_LIBS="$LIBS"
29671 save_CFLAGS="$CFLAGS"
29672 LIBS="$PTHREAD_LIBS $LIBS"
29673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
29675 # Check for various functions. We must include pthread.h,
29676 # since some functions may be macros. (On the Sequent, we
29677 # need a special flag -Kthread to make this header compile.)
29678 # We check for pthread_join because it is in -lpthread on IRIX
29679 # while pthread_create is in libc. We check for pthread_attr_init
29680 # due to DEC craziness with -lpthreads. We check for
29681 # pthread_cleanup_push because it is one of the few pthread
29682 # functions on Solaris that doesn't have a non-functional libc stub.
29683 # We try pthread_create on general principles.
29684 cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h. */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 #include <pthread.h>
29692 main ()
29694 pthread_t th; pthread_join(th, 0);
29695 pthread_attr_init(0); pthread_cleanup_push(0, 0);
29696 pthread_create(0,0,0,0);
29697 pthread_cancel(0); pthread_cleanup_pop(0);
29699 return 0;
29701 _ACEOF
29702 rm -f conftest.$ac_objext conftest$ac_exeext
29703 if { (ac_try="$ac_link"
29704 case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29707 esac
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709 (eval "$ac_link") 2>conftest.er1
29710 ac_status=$?
29711 grep -v '^ *+' conftest.er1 >conftest.err
29712 rm -f conftest.er1
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } && {
29716 test -z "$ac_c_werror_flag" ||
29717 test ! -s conftest.err
29718 } && test -s conftest$ac_exeext &&
29719 $as_test_x conftest$ac_exeext; then
29720 acx_pthread_ok=yes
29721 else
29722 echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.$ac_ext >&5
29728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29729 conftest$ac_exeext conftest.$ac_ext
29731 LIBS="$save_LIBS"
29732 CFLAGS="$save_CFLAGS"
29734 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
29735 echo "${ECHO_T}$acx_pthread_ok" >&6; }
29736 if test "x$acx_pthread_ok" = xyes; then
29737 break;
29740 PTHREAD_LIBS=""
29741 PTHREAD_CFLAGS=""
29742 done
29745 # Various other checks:
29746 if test "x$acx_pthread_ok" = xyes; then
29747 save_LIBS="$LIBS"
29748 LIBS="$PTHREAD_LIBS $LIBS"
29749 save_CFLAGS="$CFLAGS"
29750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
29752 # Detect AIX lossage: threads are created detached by default
29753 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
29754 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
29755 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
29756 cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h. */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29762 #include <pthread.h>
29764 main ()
29766 int attr=PTHREAD_CREATE_JOINABLE;
29768 return 0;
29770 _ACEOF
29771 rm -f conftest.$ac_objext conftest$ac_exeext
29772 if { (ac_try="$ac_link"
29773 case "(($ac_try" in
29774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29776 esac
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_link") 2>conftest.er1
29779 ac_status=$?
29780 grep -v '^ *+' conftest.er1 >conftest.err
29781 rm -f conftest.er1
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } && {
29785 test -z "$ac_c_werror_flag" ||
29786 test ! -s conftest.err
29787 } && test -s conftest$ac_exeext &&
29788 $as_test_x conftest$ac_exeext; then
29789 ok=PTHREAD_CREATE_JOINABLE
29790 else
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ok=unknown
29797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29798 conftest$ac_exeext conftest.$ac_ext
29799 if test x"$ok" = xunknown; then
29800 cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h. */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29806 #include <pthread.h>
29808 main ()
29810 int attr=PTHREAD_CREATE_UNDETACHED;
29812 return 0;
29814 _ACEOF
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29820 esac
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_link") 2>conftest.er1
29823 ac_status=$?
29824 grep -v '^ *+' conftest.er1 >conftest.err
29825 rm -f conftest.er1
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } && {
29829 test -z "$ac_c_werror_flag" ||
29830 test ! -s conftest.err
29831 } && test -s conftest$ac_exeext &&
29832 $as_test_x conftest$ac_exeext; then
29833 ok=PTHREAD_CREATE_UNDETACHED
29834 else
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ok=unknown
29841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29842 conftest$ac_exeext conftest.$ac_ext
29844 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
29846 cat >>confdefs.h <<\_ACEOF
29847 #define PTHREAD_CREATE_JOINABLE $ok
29848 _ACEOF
29851 { echo "$as_me:$LINENO: result: ${ok}" >&5
29852 echo "${ECHO_T}${ok}" >&6; }
29853 if test x"$ok" = xunknown; then
29854 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
29855 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
29858 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29859 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
29860 flag=no
29861 case "${host_cpu}-${host_os}" in
29862 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
29863 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
29864 esac
29865 { echo "$as_me:$LINENO: result: ${flag}" >&5
29866 echo "${ECHO_T}${flag}" >&6; }
29867 if test "x$flag" != xno; then
29868 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
29871 LIBS="$save_LIBS"
29872 CFLAGS="$save_CFLAGS"
29874 # More AIX lossage: must compile with cc_r
29875 # Extract the first word of "cc_r", so it can be a program name with args.
29876 set dummy cc_r; ac_word=$2
29877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29879 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29881 else
29882 if test -n "$PTHREAD_CC"; then
29883 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
29884 else
29885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29886 for as_dir in $PATH
29888 IFS=$as_save_IFS
29889 test -z "$as_dir" && as_dir=.
29890 for ac_exec_ext in '' $ac_executable_extensions; do
29891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29892 ac_cv_prog_PTHREAD_CC="cc_r"
29893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29894 break 2
29896 done
29897 done
29898 IFS=$as_save_IFS
29900 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
29903 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
29904 if test -n "$PTHREAD_CC"; then
29905 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
29906 echo "${ECHO_T}$PTHREAD_CC" >&6; }
29907 else
29908 { echo "$as_me:$LINENO: result: no" >&5
29909 echo "${ECHO_T}no" >&6; }
29913 else
29914 PTHREAD_CC="$CC"
29921 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
29922 if test x"$acx_pthread_ok" = xyes; then
29924 cat >>confdefs.h <<\_ACEOF
29925 #define HAVE_PTHREAD 1
29926 _ACEOF
29929 else
29930 acx_pthread_ok=no
29931 build_ogg123=no; { echo "$as_me:$LINENO: WARNING: POSIX threads missing" >&5
29932 echo "$as_me: WARNING: POSIX threads missing" >&2;}
29939 FLAC_LIBS=""
29940 if test "x$build_flac" = xyes; then
29942 { echo "$as_me:$LINENO: checking for log in -lm" >&5
29943 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
29944 if test "${ac_cv_lib_m_log+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29947 ac_check_lib_save_LIBS=$LIBS
29948 LIBS="-lm $LIBS"
29949 cat >conftest.$ac_ext <<_ACEOF
29950 /* confdefs.h. */
29951 _ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29956 /* Override any GCC internal prototype to avoid an error.
29957 Use char because int might match the return type of a GCC
29958 builtin and then its argument prototype would still apply. */
29959 #ifdef __cplusplus
29960 extern "C"
29961 #endif
29962 char log ();
29964 main ()
29966 return log ();
29968 return 0;
29970 _ACEOF
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (ac_try="$ac_link"
29973 case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976 esac
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_link") 2>conftest.er1
29979 ac_status=$?
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && {
29985 test -z "$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 } && test -s conftest$ac_exeext &&
29988 $as_test_x conftest$ac_exeext; then
29989 ac_cv_lib_m_log=yes
29990 else
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29994 ac_cv_lib_m_log=no
29997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29998 conftest$ac_exeext conftest.$ac_ext
29999 LIBS=$ac_check_lib_save_LIBS
30001 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
30002 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
30003 if test $ac_cv_lib_m_log = yes; then
30004 FLAC_LIBS="-lm"
30009 { echo "$as_me:$LINENO: checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC" >&5
30010 echo $ECHO_N "checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... $ECHO_C" >&6; }
30011 if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream+set}" = set; then
30012 echo $ECHO_N "(cached) $ECHO_C" >&6
30013 else
30014 ac_check_lib_save_LIBS=$LIBS
30015 LIBS="-lFLAC $FLAC_LIBS $OGG_LIBS $LIBS"
30016 cat >conftest.$ac_ext <<_ACEOF
30017 /* confdefs.h. */
30018 _ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h. */
30023 /* Override any GCC internal prototype to avoid an error.
30024 Use char because int might match the return type of a GCC
30025 builtin and then its argument prototype would still apply. */
30026 #ifdef __cplusplus
30027 extern "C"
30028 #endif
30029 char FLAC__stream_decoder_init_ogg_stream ();
30031 main ()
30033 return FLAC__stream_decoder_init_ogg_stream ();
30035 return 0;
30037 _ACEOF
30038 rm -f conftest.$ac_objext conftest$ac_exeext
30039 if { (ac_try="$ac_link"
30040 case "(($ac_try" in
30041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042 *) ac_try_echo=$ac_try;;
30043 esac
30044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30045 (eval "$ac_link") 2>conftest.er1
30046 ac_status=$?
30047 grep -v '^ *+' conftest.er1 >conftest.err
30048 rm -f conftest.er1
30049 cat conftest.err >&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } && {
30052 test -z "$ac_c_werror_flag" ||
30053 test ! -s conftest.err
30054 } && test -s conftest$ac_exeext &&
30055 $as_test_x conftest$ac_exeext; then
30056 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=yes
30057 else
30058 echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.$ac_ext >&5
30061 ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no
30064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30065 conftest$ac_exeext conftest.$ac_ext
30066 LIBS=$ac_check_lib_save_LIBS
30068 { echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&5
30069 echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream" >&6; }
30070 if test $ac_cv_lib_FLAC_FLAC__stream_decoder_init_ogg_stream = yes; then
30071 have_libFLAC=yes
30072 else
30073 have_libFLAC=no
30077 if test "x$have_libFLAC" = xyes; then
30078 FLAC_LIBS="-lFLAC $FLAC_LIBS $OGG_LIBS"
30079 else
30080 { echo "$as_me:$LINENO: checking for FLAC__stream_decoder_process_single in -lFLAC" >&5
30081 echo $ECHO_N "checking for FLAC__stream_decoder_process_single in -lFLAC... $ECHO_C" >&6; }
30082 if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_process_single+set}" = set; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30084 else
30085 ac_check_lib_save_LIBS=$LIBS
30086 LIBS="-lFLAC $FLAC_LIBS
30087 $LIBS"
30088 cat >conftest.$ac_ext <<_ACEOF
30089 /* confdefs.h. */
30090 _ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h. */
30095 /* Override any GCC internal prototype to avoid an error.
30096 Use char because int might match the return type of a GCC
30097 builtin and then its argument prototype would still apply. */
30098 #ifdef __cplusplus
30099 extern "C"
30100 #endif
30101 char FLAC__stream_decoder_process_single ();
30103 main ()
30105 return FLAC__stream_decoder_process_single ();
30107 return 0;
30109 _ACEOF
30110 rm -f conftest.$ac_objext conftest$ac_exeext
30111 if { (ac_try="$ac_link"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115 esac
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_link") 2>conftest.er1
30118 ac_status=$?
30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } && {
30124 test -z "$ac_c_werror_flag" ||
30125 test ! -s conftest.err
30126 } && test -s conftest$ac_exeext &&
30127 $as_test_x conftest$ac_exeext; then
30128 ac_cv_lib_FLAC_FLAC__stream_decoder_process_single=yes
30129 else
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30133 ac_cv_lib_FLAC_FLAC__stream_decoder_process_single=no
30136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30137 conftest$ac_exeext conftest.$ac_ext
30138 LIBS=$ac_check_lib_save_LIBS
30140 { echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_process_single" >&5
30141 echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__stream_decoder_process_single" >&6; }
30142 if test $ac_cv_lib_FLAC_FLAC__stream_decoder_process_single = yes; then
30143 have_libFLAC=yes; FLAC_LIBS="-lFLAC $FLAC_LIBS"
30144 else
30145 { echo "$as_me:$LINENO: WARNING: libFLAC missing" >&5
30146 echo "$as_me: WARNING: libFLAC missing" >&2;}
30147 have_libFLAC=no
30151 { echo "$as_me:$LINENO: checking for OggFLAC__stream_decoder_new in -lOggFLAC" >&5
30152 echo $ECHO_N "checking for OggFLAC__stream_decoder_new in -lOggFLAC... $ECHO_C" >&6; }
30153 if test "${ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30155 else
30156 ac_check_lib_save_LIBS=$LIBS
30157 LIBS="-lOggFLAC $FLAC_LIBS $OGG_LIBS
30158 $LIBS"
30159 cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h. */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30166 /* Override any GCC internal prototype to avoid an error.
30167 Use char because int might match the return type of a GCC
30168 builtin and then its argument prototype would still apply. */
30169 #ifdef __cplusplus
30170 extern "C"
30171 #endif
30172 char OggFLAC__stream_decoder_new ();
30174 main ()
30176 return OggFLAC__stream_decoder_new ();
30178 return 0;
30180 _ACEOF
30181 rm -f conftest.$ac_objext conftest$ac_exeext
30182 if { (ac_try="$ac_link"
30183 case "(($ac_try" in
30184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185 *) ac_try_echo=$ac_try;;
30186 esac
30187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188 (eval "$ac_link") 2>conftest.er1
30189 ac_status=$?
30190 grep -v '^ *+' conftest.er1 >conftest.err
30191 rm -f conftest.er1
30192 cat conftest.err >&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); } && {
30195 test -z "$ac_c_werror_flag" ||
30196 test ! -s conftest.err
30197 } && test -s conftest$ac_exeext &&
30198 $as_test_x conftest$ac_exeext; then
30199 ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new=yes
30200 else
30201 echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30204 ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new=no
30207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30208 conftest$ac_exeext conftest.$ac_ext
30209 LIBS=$ac_check_lib_save_LIBS
30211 { echo "$as_me:$LINENO: result: $ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new" >&5
30212 echo "${ECHO_T}$ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new" >&6; }
30213 if test $ac_cv_lib_OggFLAC_OggFLAC__stream_decoder_new = yes; then
30214 FLAC_LIBS="-lOggFLAC $FLAC_LIBS $OGG_LIBS"
30215 else
30216 { echo "$as_me:$LINENO: WARNING: libOggFLAC missing" >&5
30217 echo "$as_me: WARNING: libOggFLAC missing" >&2;}
30218 have_libFLAC=no
30223 { echo "$as_me:$LINENO: checking for FLAC/stream_decoder.h" >&5
30224 echo $ECHO_N "checking for FLAC/stream_decoder.h... $ECHO_C" >&6; }
30225 if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
30226 echo $ECHO_N "(cached) $ECHO_C" >&6
30227 else
30228 cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h. */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30236 #include <FLAC/stream_decoder.h>
30237 _ACEOF
30238 rm -f conftest.$ac_objext
30239 if { (ac_try="$ac_compile"
30240 case "(($ac_try" in
30241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30242 *) ac_try_echo=$ac_try;;
30243 esac
30244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30245 (eval "$ac_compile") 2>conftest.er1
30246 ac_status=$?
30247 grep -v '^ *+' conftest.er1 >conftest.err
30248 rm -f conftest.er1
30249 cat conftest.err >&5
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); } && {
30252 test -z "$ac_c_werror_flag" ||
30253 test ! -s conftest.err
30254 } && test -s conftest.$ac_objext; then
30255 ac_cv_header_FLAC_stream_decoder_h=yes
30256 else
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30260 ac_cv_header_FLAC_stream_decoder_h=no
30263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265 { echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_stream_decoder_h" >&5
30266 echo "${ECHO_T}$ac_cv_header_FLAC_stream_decoder_h" >&6; }
30267 if test $ac_cv_header_FLAC_stream_decoder_h = yes; then
30269 else
30270 { echo "$as_me:$LINENO: WARNING: libFLAC headers missing" >&5
30271 echo "$as_me: WARNING: libFLAC headers missing" >&2;}
30272 have_libFLAC=no
30277 if test "x$have_libFLAC" = xyes; then
30279 cat >>confdefs.h <<\_ACEOF
30280 #define HAVE_LIBFLAC 1
30281 _ACEOF
30283 else
30284 build_flac="no"
30285 FLAC_LIBS=""
30288 if test "x$have_libFLAC" = "xyes"; then
30289 HAVE_LIBFLAC_TRUE=
30290 HAVE_LIBFLAC_FALSE='#'
30291 else
30292 HAVE_LIBFLAC_TRUE='#'
30293 HAVE_LIBFLAC_FALSE=
30299 SPEEX_LIBS=""
30300 if test "x$build_speex" = xyes; then
30301 { echo "$as_me:$LINENO: checking for log in -lm" >&5
30302 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
30303 if test "${ac_cv_lib_m_log+set}" = set; then
30304 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 else
30306 ac_check_lib_save_LIBS=$LIBS
30307 LIBS="-lm $LIBS"
30308 cat >conftest.$ac_ext <<_ACEOF
30309 /* confdefs.h. */
30310 _ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30315 /* Override any GCC internal prototype to avoid an error.
30316 Use char because int might match the return type of a GCC
30317 builtin and then its argument prototype would still apply. */
30318 #ifdef __cplusplus
30319 extern "C"
30320 #endif
30321 char log ();
30323 main ()
30325 return log ();
30327 return 0;
30329 _ACEOF
30330 rm -f conftest.$ac_objext conftest$ac_exeext
30331 if { (ac_try="$ac_link"
30332 case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30335 esac
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_link") 2>conftest.er1
30338 ac_status=$?
30339 grep -v '^ *+' conftest.er1 >conftest.err
30340 rm -f conftest.er1
30341 cat conftest.err >&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } && {
30344 test -z "$ac_c_werror_flag" ||
30345 test ! -s conftest.err
30346 } && test -s conftest$ac_exeext &&
30347 $as_test_x conftest$ac_exeext; then
30348 ac_cv_lib_m_log=yes
30349 else
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30353 ac_cv_lib_m_log=no
30356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30357 conftest$ac_exeext conftest.$ac_ext
30358 LIBS=$ac_check_lib_save_LIBS
30360 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
30361 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
30362 if test $ac_cv_lib_m_log = yes; then
30363 SPEEX_LIBS="-lm"
30366 { echo "$as_me:$LINENO: checking for speex_decoder_init in -lspeex" >&5
30367 echo $ECHO_N "checking for speex_decoder_init in -lspeex... $ECHO_C" >&6; }
30368 if test "${ac_cv_lib_speex_speex_decoder_init+set}" = set; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30370 else
30371 ac_check_lib_save_LIBS=$LIBS
30372 LIBS="-lspeex $SPEEX_LIBS
30373 $LIBS"
30374 cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h. */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30381 /* Override any GCC internal prototype to avoid an error.
30382 Use char because int might match the return type of a GCC
30383 builtin and then its argument prototype would still apply. */
30384 #ifdef __cplusplus
30385 extern "C"
30386 #endif
30387 char speex_decoder_init ();
30389 main ()
30391 return speex_decoder_init ();
30393 return 0;
30395 _ACEOF
30396 rm -f conftest.$ac_objext conftest$ac_exeext
30397 if { (ac_try="$ac_link"
30398 case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30401 esac
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_link") 2>conftest.er1
30404 ac_status=$?
30405 grep -v '^ *+' conftest.er1 >conftest.err
30406 rm -f conftest.er1
30407 cat conftest.err >&5
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); } && {
30410 test -z "$ac_c_werror_flag" ||
30411 test ! -s conftest.err
30412 } && test -s conftest$ac_exeext &&
30413 $as_test_x conftest$ac_exeext; then
30414 ac_cv_lib_speex_speex_decoder_init=yes
30415 else
30416 echo "$as_me: failed program was:" >&5
30417 sed 's/^/| /' conftest.$ac_ext >&5
30419 ac_cv_lib_speex_speex_decoder_init=no
30422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30423 conftest$ac_exeext conftest.$ac_ext
30424 LIBS=$ac_check_lib_save_LIBS
30426 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_decoder_init" >&5
30427 echo "${ECHO_T}$ac_cv_lib_speex_speex_decoder_init" >&6; }
30428 if test $ac_cv_lib_speex_speex_decoder_init = yes; then
30429 have_libspeex=yes; SPEEX_LIBS="-lspeex $SPEEX_LIBS"
30430 else
30431 { echo "$as_me:$LINENO: WARNING: libspeex missing" >&5
30432 echo "$as_me: WARNING: libspeex missing" >&2;}
30433 have_libspeex=no
30436 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30437 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30438 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30439 echo $ECHO_N "(cached) $ECHO_C" >&6
30440 else
30441 cat >conftest.$ac_ext <<_ACEOF
30442 /* confdefs.h. */
30443 _ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h. */
30449 #include <speex/speex.h>
30450 _ACEOF
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30459 ac_status=$?
30460 grep -v '^ *+' conftest.er1 >conftest.err
30461 rm -f conftest.er1
30462 cat conftest.err >&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } && {
30465 test -z "$ac_c_werror_flag" ||
30466 test ! -s conftest.err
30467 } && test -s conftest.$ac_objext; then
30468 ac_cv_header_speex_speex_h=yes
30469 else
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30473 ac_cv_header_speex_speex_h=no
30476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30478 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30479 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30480 if test $ac_cv_header_speex_speex_h = yes; then
30482 else
30483 { echo "$as_me:$LINENO: WARNING: libspeex headers missing" >&5
30484 echo "$as_me: WARNING: libspeex headers missing" >&2;}
30485 have_libspeex=no
30490 if test "x$have_libspeex" = xyes; then
30492 cat >>confdefs.h <<\_ACEOF
30493 #define HAVE_LIBSPEEX 1
30494 _ACEOF
30496 else
30497 build_speex="no"
30498 SPEEX_LIBS=""
30501 if test "x$have_libspeex" = "xyes"; then
30502 HAVE_LIBSPEEX_TRUE=
30503 HAVE_LIBSPEEX_FALSE='#'
30504 else
30505 HAVE_LIBSPEEX_TRUE='#'
30506 HAVE_LIBSPEEX_FALSE=
30514 for ac_header in fcntl.h unistd.h
30516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30523 ac_res=`eval echo '${'$as_ac_Header'}'`
30524 { echo "$as_me:$LINENO: result: $ac_res" >&5
30525 echo "${ECHO_T}$ac_res" >&6; }
30526 else
30527 # Is the header compilable?
30528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30530 cat >conftest.$ac_ext <<_ACEOF
30531 /* confdefs.h. */
30532 _ACEOF
30533 cat confdefs.h >>conftest.$ac_ext
30534 cat >>conftest.$ac_ext <<_ACEOF
30535 /* end confdefs.h. */
30536 $ac_includes_default
30537 #include <$ac_header>
30538 _ACEOF
30539 rm -f conftest.$ac_objext
30540 if { (ac_try="$ac_compile"
30541 case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30544 esac
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_compile") 2>conftest.er1
30547 ac_status=$?
30548 grep -v '^ *+' conftest.er1 >conftest.err
30549 rm -f conftest.er1
30550 cat conftest.err >&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } && {
30553 test -z "$ac_c_werror_flag" ||
30554 test ! -s conftest.err
30555 } && test -s conftest.$ac_objext; then
30556 ac_header_compiler=yes
30557 else
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.$ac_ext >&5
30561 ac_header_compiler=no
30564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30566 echo "${ECHO_T}$ac_header_compiler" >&6; }
30568 # Is the header present?
30569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30571 cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h. */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 #include <$ac_header>
30578 _ACEOF
30579 if { (ac_try="$ac_cpp conftest.$ac_ext"
30580 case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30583 esac
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30586 ac_status=$?
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } >/dev/null && {
30592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30593 test ! -s conftest.err
30594 }; then
30595 ac_header_preproc=yes
30596 else
30597 echo "$as_me: failed program was:" >&5
30598 sed 's/^/| /' conftest.$ac_ext >&5
30600 ac_header_preproc=no
30603 rm -f conftest.err conftest.$ac_ext
30604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30605 echo "${ECHO_T}$ac_header_preproc" >&6; }
30607 # So? What about this header?
30608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30609 yes:no: )
30610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30614 ac_header_preproc=yes
30616 no:yes:* )
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30631 esac
30632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637 eval "$as_ac_Header=\$ac_header_preproc"
30639 ac_res=`eval echo '${'$as_ac_Header'}'`
30640 { echo "$as_me:$LINENO: result: $ac_res" >&5
30641 echo "${ECHO_T}$ac_res" >&6; }
30644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30645 cat >>confdefs.h <<_ACEOF
30646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30647 _ACEOF
30651 done
30655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30656 # for constant arguments. Useless!
30657 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30658 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30659 if test "${ac_cv_working_alloca_h+set}" = set; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662 cat >conftest.$ac_ext <<_ACEOF
30663 /* confdefs.h. */
30664 _ACEOF
30665 cat confdefs.h >>conftest.$ac_ext
30666 cat >>conftest.$ac_ext <<_ACEOF
30667 /* end confdefs.h. */
30668 #include <alloca.h>
30670 main ()
30672 char *p = (char *) alloca (2 * sizeof (int));
30673 if (p) return 0;
30675 return 0;
30677 _ACEOF
30678 rm -f conftest.$ac_objext conftest$ac_exeext
30679 if { (ac_try="$ac_link"
30680 case "(($ac_try" in
30681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30683 esac
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_link") 2>conftest.er1
30686 ac_status=$?
30687 grep -v '^ *+' conftest.er1 >conftest.err
30688 rm -f conftest.er1
30689 cat conftest.err >&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } && {
30692 test -z "$ac_c_werror_flag" ||
30693 test ! -s conftest.err
30694 } && test -s conftest$ac_exeext &&
30695 $as_test_x conftest$ac_exeext; then
30696 ac_cv_working_alloca_h=yes
30697 else
30698 echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30701 ac_cv_working_alloca_h=no
30704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30705 conftest$ac_exeext conftest.$ac_ext
30707 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30708 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30709 if test $ac_cv_working_alloca_h = yes; then
30711 cat >>confdefs.h <<\_ACEOF
30712 #define HAVE_ALLOCA_H 1
30713 _ACEOF
30717 { echo "$as_me:$LINENO: checking for alloca" >&5
30718 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30719 if test "${ac_cv_func_alloca_works+set}" = set; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30721 else
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h. */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 #ifdef __GNUC__
30729 # define alloca __builtin_alloca
30730 #else
30731 # ifdef _MSC_VER
30732 # include <malloc.h>
30733 # define alloca _alloca
30734 # else
30735 # ifdef HAVE_ALLOCA_H
30736 # include <alloca.h>
30737 # else
30738 # ifdef _AIX
30739 #pragma alloca
30740 # else
30741 # ifndef alloca /* predefined by HP cc +Olibcalls */
30742 char *alloca ();
30743 # endif
30744 # endif
30745 # endif
30746 # endif
30747 #endif
30750 main ()
30752 char *p = (char *) alloca (1);
30753 if (p) return 0;
30755 return 0;
30757 _ACEOF
30758 rm -f conftest.$ac_objext conftest$ac_exeext
30759 if { (ac_try="$ac_link"
30760 case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30763 esac
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_link") 2>conftest.er1
30766 ac_status=$?
30767 grep -v '^ *+' conftest.er1 >conftest.err
30768 rm -f conftest.er1
30769 cat conftest.err >&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } && {
30772 test -z "$ac_c_werror_flag" ||
30773 test ! -s conftest.err
30774 } && test -s conftest$ac_exeext &&
30775 $as_test_x conftest$ac_exeext; then
30776 ac_cv_func_alloca_works=yes
30777 else
30778 echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30781 ac_cv_func_alloca_works=no
30784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30785 conftest$ac_exeext conftest.$ac_ext
30787 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30788 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30790 if test $ac_cv_func_alloca_works = yes; then
30792 cat >>confdefs.h <<\_ACEOF
30793 #define HAVE_ALLOCA 1
30794 _ACEOF
30796 else
30797 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30798 # that cause trouble. Some versions do not even contain alloca or
30799 # contain a buggy version. If you still want to use their alloca,
30800 # use ar to extract alloca.o from them instead of compiling alloca.c.
30802 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30804 cat >>confdefs.h <<\_ACEOF
30805 #define C_ALLOCA 1
30806 _ACEOF
30809 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30810 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30811 if test "${ac_cv_os_cray+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30813 else
30814 cat >conftest.$ac_ext <<_ACEOF
30815 /* confdefs.h. */
30816 _ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 #if defined CRAY && ! defined CRAY2
30821 webecray
30822 #else
30823 wenotbecray
30824 #endif
30826 _ACEOF
30827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30828 $EGREP "webecray" >/dev/null 2>&1; then
30829 ac_cv_os_cray=yes
30830 else
30831 ac_cv_os_cray=no
30833 rm -f conftest*
30836 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30837 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30838 if test $ac_cv_os_cray = yes; then
30839 for ac_func in _getb67 GETB67 getb67; do
30840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846 cat >conftest.$ac_ext <<_ACEOF
30847 /* confdefs.h. */
30848 _ACEOF
30849 cat confdefs.h >>conftest.$ac_ext
30850 cat >>conftest.$ac_ext <<_ACEOF
30851 /* end confdefs.h. */
30852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30854 #define $ac_func innocuous_$ac_func
30856 /* System header to define __stub macros and hopefully few prototypes,
30857 which can conflict with char $ac_func (); below.
30858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30859 <limits.h> exists even on freestanding compilers. */
30861 #ifdef __STDC__
30862 # include <limits.h>
30863 #else
30864 # include <assert.h>
30865 #endif
30867 #undef $ac_func
30869 /* Override any GCC internal prototype to avoid an error.
30870 Use char because int might match the return type of a GCC
30871 builtin and then its argument prototype would still apply. */
30872 #ifdef __cplusplus
30873 extern "C"
30874 #endif
30875 char $ac_func ();
30876 /* The GNU C library defines this for functions which it implements
30877 to always fail with ENOSYS. Some functions are actually named
30878 something starting with __ and the normal name is an alias. */
30879 #if defined __stub_$ac_func || defined __stub___$ac_func
30880 choke me
30881 #endif
30884 main ()
30886 return $ac_func ();
30888 return 0;
30890 _ACEOF
30891 rm -f conftest.$ac_objext conftest$ac_exeext
30892 if { (ac_try="$ac_link"
30893 case "(($ac_try" in
30894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895 *) ac_try_echo=$ac_try;;
30896 esac
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898 (eval "$ac_link") 2>conftest.er1
30899 ac_status=$?
30900 grep -v '^ *+' conftest.er1 >conftest.err
30901 rm -f conftest.er1
30902 cat conftest.err >&5
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); } && {
30905 test -z "$ac_c_werror_flag" ||
30906 test ! -s conftest.err
30907 } && test -s conftest$ac_exeext &&
30908 $as_test_x conftest$ac_exeext; then
30909 eval "$as_ac_var=yes"
30910 else
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30914 eval "$as_ac_var=no"
30917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30918 conftest$ac_exeext conftest.$ac_ext
30920 ac_res=`eval echo '${'$as_ac_var'}'`
30921 { echo "$as_me:$LINENO: result: $ac_res" >&5
30922 echo "${ECHO_T}$ac_res" >&6; }
30923 if test `eval echo '${'$as_ac_var'}'` = yes; then
30925 cat >>confdefs.h <<_ACEOF
30926 #define CRAY_STACKSEG_END $ac_func
30927 _ACEOF
30929 break
30932 done
30935 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30936 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30937 if test "${ac_cv_c_stack_direction+set}" = set; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30939 else
30940 if test "$cross_compiling" = yes; then
30941 ac_cv_c_stack_direction=0
30942 else
30943 cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h. */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30949 $ac_includes_default
30951 find_stack_direction ()
30953 static char *addr = 0;
30954 auto char dummy;
30955 if (addr == 0)
30957 addr = &dummy;
30958 return find_stack_direction ();
30960 else
30961 return (&dummy > addr) ? 1 : -1;
30965 main ()
30967 return find_stack_direction () < 0;
30969 _ACEOF
30970 rm -f conftest$ac_exeext
30971 if { (ac_try="$ac_link"
30972 case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_link") 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30981 { (case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30984 esac
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_try") 2>&5
30987 ac_status=$?
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); }; }; then
30990 ac_cv_c_stack_direction=1
30991 else
30992 echo "$as_me: program exited with status $ac_status" >&5
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ( exit $ac_status )
30997 ac_cv_c_stack_direction=-1
30999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31004 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31005 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31007 cat >>confdefs.h <<_ACEOF
31008 #define STACK_DIRECTION $ac_cv_c_stack_direction
31009 _ACEOF
31017 # Check whether --with-libiconv-prefix was given.
31018 if test "${with_libiconv_prefix+set}" = set; then
31019 withval=$with_libiconv_prefix;
31020 for dir in `echo "$withval" | tr : ' '`; do
31021 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31022 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31023 done
31028 { echo "$as_me:$LINENO: checking for iconv" >&5
31029 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
31030 if test "${am_cv_func_iconv+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31034 am_cv_func_iconv="no, consider installing GNU libiconv"
31035 am_cv_lib_iconv=no
31036 cat >conftest.$ac_ext <<_ACEOF
31037 /* confdefs.h. */
31038 _ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h. */
31042 #include <stdlib.h>
31043 #include <iconv.h>
31045 main ()
31047 iconv_t cd = iconv_open("","");
31048 iconv(cd,NULL,NULL,NULL,NULL);
31049 iconv_close(cd);
31051 return 0;
31053 _ACEOF
31054 rm -f conftest.$ac_objext conftest$ac_exeext
31055 if { (ac_try="$ac_link"
31056 case "(($ac_try" in
31057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058 *) ac_try_echo=$ac_try;;
31059 esac
31060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_link") 2>conftest.er1
31062 ac_status=$?
31063 grep -v '^ *+' conftest.er1 >conftest.err
31064 rm -f conftest.er1
31065 cat conftest.err >&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } && {
31068 test -z "$ac_c_werror_flag" ||
31069 test ! -s conftest.err
31070 } && test -s conftest$ac_exeext &&
31071 $as_test_x conftest$ac_exeext; then
31072 am_cv_func_iconv=yes
31073 else
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31081 conftest$ac_exeext conftest.$ac_ext
31082 if test "$am_cv_func_iconv" != yes; then
31083 am_save_LIBS="$LIBS"
31084 LIBS="$LIBS -liconv"
31085 cat >conftest.$ac_ext <<_ACEOF
31086 /* confdefs.h. */
31087 _ACEOF
31088 cat confdefs.h >>conftest.$ac_ext
31089 cat >>conftest.$ac_ext <<_ACEOF
31090 /* end confdefs.h. */
31091 #include <stdlib.h>
31092 #include <iconv.h>
31094 main ()
31096 iconv_t cd = iconv_open("","");
31097 iconv(cd,NULL,NULL,NULL,NULL);
31098 iconv_close(cd);
31100 return 0;
31102 _ACEOF
31103 rm -f conftest.$ac_objext conftest$ac_exeext
31104 if { (ac_try="$ac_link"
31105 case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31108 esac
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_link") 2>conftest.er1
31111 ac_status=$?
31112 grep -v '^ *+' conftest.er1 >conftest.err
31113 rm -f conftest.er1
31114 cat conftest.err >&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } && {
31117 test -z "$ac_c_werror_flag" ||
31118 test ! -s conftest.err
31119 } && test -s conftest$ac_exeext &&
31120 $as_test_x conftest$ac_exeext; then
31121 am_cv_lib_iconv=yes
31122 am_cv_func_iconv=yes
31123 else
31124 echo "$as_me: failed program was:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31131 conftest$ac_exeext conftest.$ac_ext
31132 LIBS="$am_save_LIBS"
31136 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31137 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
31138 if test "$am_cv_func_iconv" = yes; then
31140 cat >>confdefs.h <<\_ACEOF
31141 #define HAVE_ICONV 1
31142 _ACEOF
31144 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
31145 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
31146 if test "${am_cv_proto_iconv+set}" = set; then
31147 echo $ECHO_N "(cached) $ECHO_C" >&6
31148 else
31150 cat >conftest.$ac_ext <<_ACEOF
31151 /* confdefs.h. */
31152 _ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31157 #include <stdlib.h>
31158 #include <iconv.h>
31159 extern
31160 #ifdef __cplusplus
31162 #endif
31163 #if defined(__STDC__) || defined(__cplusplus)
31164 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31165 #else
31166 size_t iconv();
31167 #endif
31170 main ()
31174 return 0;
31176 _ACEOF
31177 rm -f conftest.$ac_objext
31178 if { (ac_try="$ac_compile"
31179 case "(($ac_try" in
31180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31181 *) ac_try_echo=$ac_try;;
31182 esac
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184 (eval "$ac_compile") 2>conftest.er1
31185 ac_status=$?
31186 grep -v '^ *+' conftest.er1 >conftest.err
31187 rm -f conftest.er1
31188 cat conftest.err >&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } && {
31191 test -z "$ac_c_werror_flag" ||
31192 test ! -s conftest.err
31193 } && test -s conftest.$ac_objext; then
31194 am_cv_proto_iconv_arg1=""
31195 else
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 am_cv_proto_iconv_arg1="const"
31202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31203 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
31206 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
31207 { echo "$as_me:$LINENO: result: ${ac_t:-
31208 }$am_cv_proto_iconv" >&5
31209 echo "${ECHO_T}${ac_t:-
31210 }$am_cv_proto_iconv" >&6; }
31212 cat >>confdefs.h <<_ACEOF
31213 #define ICONV_CONST $am_cv_proto_iconv_arg1
31214 _ACEOF
31217 LIBICONV=
31218 if test "$am_cv_lib_iconv" = yes; then
31219 LIBICONV="-liconv"
31229 for ac_func in atexit on_exit fcntl select stat chmod
31231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31236 else
31237 cat >conftest.$ac_ext <<_ACEOF
31238 /* confdefs.h. */
31239 _ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h. */
31243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31245 #define $ac_func innocuous_$ac_func
31247 /* System header to define __stub macros and hopefully few prototypes,
31248 which can conflict with char $ac_func (); below.
31249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31250 <limits.h> exists even on freestanding compilers. */
31252 #ifdef __STDC__
31253 # include <limits.h>
31254 #else
31255 # include <assert.h>
31256 #endif
31258 #undef $ac_func
31260 /* Override any GCC internal prototype to avoid an error.
31261 Use char because int might match the return type of a GCC
31262 builtin and then its argument prototype would still apply. */
31263 #ifdef __cplusplus
31264 extern "C"
31265 #endif
31266 char $ac_func ();
31267 /* The GNU C library defines this for functions which it implements
31268 to always fail with ENOSYS. Some functions are actually named
31269 something starting with __ and the normal name is an alias. */
31270 #if defined __stub_$ac_func || defined __stub___$ac_func
31271 choke me
31272 #endif
31275 main ()
31277 return $ac_func ();
31279 return 0;
31281 _ACEOF
31282 rm -f conftest.$ac_objext conftest$ac_exeext
31283 if { (ac_try="$ac_link"
31284 case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31287 esac
31288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_link") 2>conftest.er1
31290 ac_status=$?
31291 grep -v '^ *+' conftest.er1 >conftest.err
31292 rm -f conftest.er1
31293 cat conftest.err >&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } && {
31296 test -z "$ac_c_werror_flag" ||
31297 test ! -s conftest.err
31298 } && test -s conftest$ac_exeext &&
31299 $as_test_x conftest$ac_exeext; then
31300 eval "$as_ac_var=yes"
31301 else
31302 echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31305 eval "$as_ac_var=no"
31308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31309 conftest$ac_exeext conftest.$ac_ext
31311 ac_res=`eval echo '${'$as_ac_var'}'`
31312 { echo "$as_me:$LINENO: result: $ac_res" >&5
31313 echo "${ECHO_T}$ac_res" >&6; }
31314 if test `eval echo '${'$as_ac_var'}'` = yes; then
31315 cat >>confdefs.h <<_ACEOF
31316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31317 _ACEOF
31320 done
31323 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
31324 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
31325 if test "${am_cv_langinfo_codeset+set}" = set; then
31326 echo $ECHO_N "(cached) $ECHO_C" >&6
31327 else
31328 cat >conftest.$ac_ext <<_ACEOF
31329 /* confdefs.h. */
31330 _ACEOF
31331 cat confdefs.h >>conftest.$ac_ext
31332 cat >>conftest.$ac_ext <<_ACEOF
31333 /* end confdefs.h. */
31334 #include <langinfo.h>
31336 main ()
31338 char* cs = nl_langinfo(CODESET);
31340 return 0;
31342 _ACEOF
31343 rm -f conftest.$ac_objext conftest$ac_exeext
31344 if { (ac_try="$ac_link"
31345 case "(($ac_try" in
31346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347 *) ac_try_echo=$ac_try;;
31348 esac
31349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350 (eval "$ac_link") 2>conftest.er1
31351 ac_status=$?
31352 grep -v '^ *+' conftest.er1 >conftest.err
31353 rm -f conftest.er1
31354 cat conftest.err >&5
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); } && {
31357 test -z "$ac_c_werror_flag" ||
31358 test ! -s conftest.err
31359 } && test -s conftest$ac_exeext &&
31360 $as_test_x conftest$ac_exeext; then
31361 am_cv_langinfo_codeset=yes
31362 else
31363 echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31366 am_cv_langinfo_codeset=no
31369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31370 conftest$ac_exeext conftest.$ac_ext
31373 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
31374 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
31375 if test $am_cv_langinfo_codeset = yes; then
31377 cat >>confdefs.h <<\_ACEOF
31378 #define HAVE_LANGINFO_CODESET 1
31379 _ACEOF
31385 if test -z "$mandir"; then
31386 if test "$prefix" = "/usr"; then
31387 MANDIR='$(datadir)/man'
31388 else
31389 MANDIR='$(prefix)/man'
31391 else
31392 MANDIR=$mandir
31398 # add optional subdirs to the build
31399 OPT_SUBDIRS=""
31400 if test "x$build_ogg123" = xyes; then
31401 OPT_SUBDIRS="$OPT_SUBDIRS ogg123"
31403 if test "x$build_oggenc" = xyes; then
31404 OPT_SUBDIRS="$OPT_SUBDIRS oggenc"
31406 if test "x$build_oggdec" = xyes; then
31407 OPT_SUBDIRS="$OPT_SUBDIRS oggdec"
31409 if test "x$build_ogginfo" = xyes; then
31410 OPT_SUBDIRS="$OPT_SUBDIRS ogginfo"
31412 if test "x$build_vcut" = xyes; then
31413 OPT_SUBDIRS="$OPT_SUBDIRS vcut"
31415 if test "x$build_vorbiscomment" = xyes; then
31416 OPT_SUBDIRS="$OPT_SUBDIRS vorbiscomment"
31430 ac_config_files="$ac_config_files Makefile m4/Makefile po/Makefile.in intl/Makefile include/Makefile share/Makefile win32/Makefile oggdec/Makefile oggenc/Makefile oggenc/man/Makefile ogg123/Makefile vorbiscomment/Makefile vcut/Makefile ogginfo/Makefile debian/Makefile"
31432 cat >confcache <<\_ACEOF
31433 # This file is a shell script that caches the results of configure
31434 # tests run on this system so they can be shared between configure
31435 # scripts and configure runs, see configure's option --config-cache.
31436 # It is not useful on other systems. If it contains results you don't
31437 # want to keep, you may remove or edit it.
31439 # config.status only pays attention to the cache file if you give it
31440 # the --recheck option to rerun configure.
31442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31444 # following values.
31446 _ACEOF
31448 # The following way of writing the cache mishandles newlines in values,
31449 # but we know of no workaround that is simple, portable, and efficient.
31450 # So, we kill variables containing newlines.
31451 # Ultrix sh set writes to stderr and can't be redirected directly,
31452 # and sets the high bit in the cache file unless we assign to the vars.
31454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31455 eval ac_val=\$$ac_var
31456 case $ac_val in #(
31457 *${as_nl}*)
31458 case $ac_var in #(
31459 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31460 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31461 esac
31462 case $ac_var in #(
31463 _ | IFS | as_nl) ;; #(
31464 *) $as_unset $ac_var ;;
31465 esac ;;
31466 esac
31467 done
31469 (set) 2>&1 |
31470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31471 *${as_nl}ac_space=\ *)
31472 # `set' does not quote correctly, so add quotes (double-quote
31473 # substitution turns \\\\ into \\, and sed turns \\ into \).
31474 sed -n \
31475 "s/'/'\\\\''/g;
31476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31477 ;; #(
31479 # `set' quotes correctly as required by POSIX, so do not add quotes.
31480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31482 esac |
31483 sort
31485 sed '
31486 /^ac_cv_env_/b end
31487 t clear
31488 :clear
31489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31490 t end
31491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31492 :end' >>confcache
31493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31494 if test -w "$cache_file"; then
31495 test "x$cache_file" != "x/dev/null" &&
31496 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31497 echo "$as_me: updating cache $cache_file" >&6;}
31498 cat confcache >$cache_file
31499 else
31500 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31501 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31504 rm -f confcache
31506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31507 # Let make expand exec_prefix.
31508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31510 DEFS=-DHAVE_CONFIG_H
31512 ac_libobjs=
31513 ac_ltlibobjs=
31514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31515 # 1. Remove the extension, and $U if already installed.
31516 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31517 ac_i=`echo "$ac_i" | sed "$ac_script"`
31518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31519 # will be set to the directory where LIBOBJS objects are built.
31520 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31521 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31522 done
31523 LIBOBJS=$ac_libobjs
31525 LTLIBOBJS=$ac_ltlibobjs
31528 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31529 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31530 Usually this means the macro was only invoked conditionally." >&5
31531 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31532 Usually this means the macro was only invoked conditionally." >&2;}
31533 { (exit 1); exit 1; }; }
31535 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31536 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31537 Usually this means the macro was only invoked conditionally." >&5
31538 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31539 Usually this means the macro was only invoked conditionally." >&2;}
31540 { (exit 1); exit 1; }; }
31542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31543 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31544 Usually this means the macro was only invoked conditionally." >&5
31545 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31546 Usually this means the macro was only invoked conditionally." >&2;}
31547 { (exit 1); exit 1; }; }
31549 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31550 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31551 Usually this means the macro was only invoked conditionally." >&5
31552 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31553 Usually this means the macro was only invoked conditionally." >&2;}
31554 { (exit 1); exit 1; }; }
31556 if test -z "${HAVE_LIBFLAC_TRUE}" && test -z "${HAVE_LIBFLAC_FALSE}"; then
31557 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBFLAC\" was never defined.
31558 Usually this means the macro was only invoked conditionally." >&5
31559 echo "$as_me: error: conditional \"HAVE_LIBFLAC\" was never defined.
31560 Usually this means the macro was only invoked conditionally." >&2;}
31561 { (exit 1); exit 1; }; }
31563 if test -z "${HAVE_LIBSPEEX_TRUE}" && test -z "${HAVE_LIBSPEEX_FALSE}"; then
31564 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSPEEX\" was never defined.
31565 Usually this means the macro was only invoked conditionally." >&5
31566 echo "$as_me: error: conditional \"HAVE_LIBSPEEX\" was never defined.
31567 Usually this means the macro was only invoked conditionally." >&2;}
31568 { (exit 1); exit 1; }; }
31571 : ${CONFIG_STATUS=./config.status}
31572 ac_clean_files_save=$ac_clean_files
31573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31576 cat >$CONFIG_STATUS <<_ACEOF
31577 #! $SHELL
31578 # Generated by $as_me.
31579 # Run this file to recreate the current configuration.
31580 # Compiler output produced by configure, useful for debugging
31581 # configure, is in config.log if it exists.
31583 debug=false
31584 ac_cs_recheck=false
31585 ac_cs_silent=false
31586 SHELL=\${CONFIG_SHELL-$SHELL}
31587 _ACEOF
31589 cat >>$CONFIG_STATUS <<\_ACEOF
31590 ## --------------------- ##
31591 ## M4sh Initialization. ##
31592 ## --------------------- ##
31594 # Be more Bourne compatible
31595 DUALCASE=1; export DUALCASE # for MKS sh
31596 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31597 emulate sh
31598 NULLCMD=:
31599 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31600 # is contrary to our usage. Disable this feature.
31601 alias -g '${1+"$@"}'='"$@"'
31602 setopt NO_GLOB_SUBST
31603 else
31604 case `(set -o) 2>/dev/null` in
31605 *posix*) set -o posix ;;
31606 esac
31613 # PATH needs CR
31614 # Avoid depending upon Character Ranges.
31615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31618 as_cr_digits='0123456789'
31619 as_cr_alnum=$as_cr_Letters$as_cr_digits
31621 # The user is always right.
31622 if test "${PATH_SEPARATOR+set}" != set; then
31623 echo "#! /bin/sh" >conf$$.sh
31624 echo "exit 0" >>conf$$.sh
31625 chmod +x conf$$.sh
31626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31627 PATH_SEPARATOR=';'
31628 else
31629 PATH_SEPARATOR=:
31631 rm -f conf$$.sh
31634 # Support unset when possible.
31635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31636 as_unset=unset
31637 else
31638 as_unset=false
31642 # IFS
31643 # We need space, tab and new line, in precisely that order. Quoting is
31644 # there to prevent editors from complaining about space-tab.
31645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31646 # splitting by setting IFS to empty value.)
31647 as_nl='
31649 IFS=" "" $as_nl"
31651 # Find who we are. Look in the path if we contain no directory separator.
31652 case $0 in
31653 *[\\/]* ) as_myself=$0 ;;
31654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31655 for as_dir in $PATH
31657 IFS=$as_save_IFS
31658 test -z "$as_dir" && as_dir=.
31659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31660 done
31661 IFS=$as_save_IFS
31664 esac
31665 # We did not find ourselves, most probably we were run as `sh COMMAND'
31666 # in which case we are not to be found in the path.
31667 if test "x$as_myself" = x; then
31668 as_myself=$0
31670 if test ! -f "$as_myself"; then
31671 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31672 { (exit 1); exit 1; }
31675 # Work around bugs in pre-3.0 UWIN ksh.
31676 for as_var in ENV MAIL MAILPATH
31677 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31678 done
31679 PS1='$ '
31680 PS2='> '
31681 PS4='+ '
31683 # NLS nuisances.
31684 for as_var in \
31685 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31686 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31687 LC_TELEPHONE LC_TIME
31689 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31690 eval $as_var=C; export $as_var
31691 else
31692 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31694 done
31696 # Required to use basename.
31697 if expr a : '\(a\)' >/dev/null 2>&1 &&
31698 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31699 as_expr=expr
31700 else
31701 as_expr=false
31704 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31705 as_basename=basename
31706 else
31707 as_basename=false
31711 # Name of the executable.
31712 as_me=`$as_basename -- "$0" ||
31713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31714 X"$0" : 'X\(//\)$' \| \
31715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31716 echo X/"$0" |
31717 sed '/^.*\/\([^/][^/]*\)\/*$/{
31718 s//\1/
31721 /^X\/\(\/\/\)$/{
31722 s//\1/
31725 /^X\/\(\/\).*/{
31726 s//\1/
31729 s/.*/./; q'`
31731 # CDPATH.
31732 $as_unset CDPATH
31736 as_lineno_1=$LINENO
31737 as_lineno_2=$LINENO
31738 test "x$as_lineno_1" != "x$as_lineno_2" &&
31739 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31741 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31742 # uniformly replaced by the line number. The first 'sed' inserts a
31743 # line-number line after each line using $LINENO; the second 'sed'
31744 # does the real work. The second script uses 'N' to pair each
31745 # line-number line with the line containing $LINENO, and appends
31746 # trailing '-' during substitution so that $LINENO is not a special
31747 # case at line end.
31748 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31749 # scripts with optimization help from Paolo Bonzini. Blame Lee
31750 # E. McMahon (1931-1989) for sed's syntax. :-)
31751 sed -n '
31753 /[$]LINENO/=
31754 ' <$as_myself |
31755 sed '
31756 s/[$]LINENO.*/&-/
31757 t lineno
31759 :lineno
31761 :loop
31762 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31763 t loop
31764 s/-\n.*//
31765 ' >$as_me.lineno &&
31766 chmod +x "$as_me.lineno" ||
31767 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31768 { (exit 1); exit 1; }; }
31770 # Don't try to exec as it changes $[0], causing all sort of problems
31771 # (the dirname of $[0] is not the place where we might find the
31772 # original and so on. Autoconf is especially sensitive to this).
31773 . "./$as_me.lineno"
31774 # Exit status is that of the last command.
31775 exit
31779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31780 as_dirname=dirname
31781 else
31782 as_dirname=false
31785 ECHO_C= ECHO_N= ECHO_T=
31786 case `echo -n x` in
31787 -n*)
31788 case `echo 'x\c'` in
31789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31790 *) ECHO_C='\c';;
31791 esac;;
31793 ECHO_N='-n';;
31794 esac
31796 if expr a : '\(a\)' >/dev/null 2>&1 &&
31797 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31798 as_expr=expr
31799 else
31800 as_expr=false
31803 rm -f conf$$ conf$$.exe conf$$.file
31804 if test -d conf$$.dir; then
31805 rm -f conf$$.dir/conf$$.file
31806 else
31807 rm -f conf$$.dir
31808 mkdir conf$$.dir
31810 echo >conf$$.file
31811 if ln -s conf$$.file conf$$ 2>/dev/null; then
31812 as_ln_s='ln -s'
31813 # ... but there are two gotchas:
31814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31816 # In both cases, we have to default to `cp -p'.
31817 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31818 as_ln_s='cp -p'
31819 elif ln conf$$.file conf$$ 2>/dev/null; then
31820 as_ln_s=ln
31821 else
31822 as_ln_s='cp -p'
31824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31825 rmdir conf$$.dir 2>/dev/null
31827 if mkdir -p . 2>/dev/null; then
31828 as_mkdir_p=:
31829 else
31830 test -d ./-p && rmdir ./-p
31831 as_mkdir_p=false
31834 if test -x / >/dev/null 2>&1; then
31835 as_test_x='test -x'
31836 else
31837 if ls -dL / >/dev/null 2>&1; then
31838 as_ls_L_option=L
31839 else
31840 as_ls_L_option=
31842 as_test_x='
31843 eval sh -c '\''
31844 if test -d "$1"; then
31845 test -d "$1/.";
31846 else
31847 case $1 in
31848 -*)set "./$1";;
31849 esac;
31850 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31851 ???[sx]*):;;*)false;;esac;fi
31852 '\'' sh
31855 as_executable_p=$as_test_x
31857 # Sed expression to map a string onto a valid CPP name.
31858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31860 # Sed expression to map a string onto a valid variable name.
31861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31864 exec 6>&1
31866 # Save the log message, to keep $[0] and so on meaningful, and to
31867 # report actual input values of CONFIG_FILES etc. instead of their
31868 # values after options handling.
31869 ac_log="
31870 This file was extended by $as_me, which was
31871 generated by GNU Autoconf 2.61. Invocation command line was
31873 CONFIG_FILES = $CONFIG_FILES
31874 CONFIG_HEADERS = $CONFIG_HEADERS
31875 CONFIG_LINKS = $CONFIG_LINKS
31876 CONFIG_COMMANDS = $CONFIG_COMMANDS
31877 $ $0 $@
31879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31882 _ACEOF
31884 cat >>$CONFIG_STATUS <<_ACEOF
31885 # Files that config.status was made for.
31886 config_files="$ac_config_files"
31887 config_headers="$ac_config_headers"
31888 config_commands="$ac_config_commands"
31890 _ACEOF
31892 cat >>$CONFIG_STATUS <<\_ACEOF
31893 ac_cs_usage="\
31894 \`$as_me' instantiates files from templates according to the
31895 current configuration.
31897 Usage: $0 [OPTIONS] [FILE]...
31899 -h, --help print this help, then exit
31900 -V, --version print version number and configuration settings, then exit
31901 -q, --quiet do not print progress messages
31902 -d, --debug don't remove temporary files
31903 --recheck update $as_me by reconfiguring in the same conditions
31904 --file=FILE[:TEMPLATE]
31905 instantiate the configuration file FILE
31906 --header=FILE[:TEMPLATE]
31907 instantiate the configuration header FILE
31909 Configuration files:
31910 $config_files
31912 Configuration headers:
31913 $config_headers
31915 Configuration commands:
31916 $config_commands
31918 Report bugs to <bug-autoconf@gnu.org>."
31920 _ACEOF
31921 cat >>$CONFIG_STATUS <<_ACEOF
31922 ac_cs_version="\\
31923 config.status
31924 configured by $0, generated by GNU Autoconf 2.61,
31925 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31927 Copyright (C) 2006 Free Software Foundation, Inc.
31928 This config.status script is free software; the Free Software Foundation
31929 gives unlimited permission to copy, distribute and modify it."
31931 ac_pwd='$ac_pwd'
31932 srcdir='$srcdir'
31933 INSTALL='$INSTALL'
31934 MKDIR_P='$MKDIR_P'
31935 _ACEOF
31937 cat >>$CONFIG_STATUS <<\_ACEOF
31938 # If no file are specified by the user, then we need to provide default
31939 # value. By we need to know if files were specified by the user.
31940 ac_need_defaults=:
31941 while test $# != 0
31943 case $1 in
31944 --*=*)
31945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31947 ac_shift=:
31950 ac_option=$1
31951 ac_optarg=$2
31952 ac_shift=shift
31954 esac
31956 case $ac_option in
31957 # Handling of the options.
31958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31959 ac_cs_recheck=: ;;
31960 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31961 echo "$ac_cs_version"; exit ;;
31962 --debug | --debu | --deb | --de | --d | -d )
31963 debug=: ;;
31964 --file | --fil | --fi | --f )
31965 $ac_shift
31966 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31967 ac_need_defaults=false;;
31968 --header | --heade | --head | --hea )
31969 $ac_shift
31970 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31971 ac_need_defaults=false;;
31972 --he | --h)
31973 # Conflict between --help and --header
31974 { echo "$as_me: error: ambiguous option: $1
31975 Try \`$0 --help' for more information." >&2
31976 { (exit 1); exit 1; }; };;
31977 --help | --hel | -h )
31978 echo "$ac_cs_usage"; exit ;;
31979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31981 ac_cs_silent=: ;;
31983 # This is an error.
31984 -*) { echo "$as_me: error: unrecognized option: $1
31985 Try \`$0 --help' for more information." >&2
31986 { (exit 1); exit 1; }; } ;;
31988 *) ac_config_targets="$ac_config_targets $1"
31989 ac_need_defaults=false ;;
31991 esac
31992 shift
31993 done
31995 ac_configure_extra_args=
31997 if $ac_cs_silent; then
31998 exec 6>/dev/null
31999 ac_configure_extra_args="$ac_configure_extra_args --silent"
32002 _ACEOF
32003 cat >>$CONFIG_STATUS <<_ACEOF
32004 if \$ac_cs_recheck; then
32005 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32006 CONFIG_SHELL=$SHELL
32007 export CONFIG_SHELL
32008 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32011 _ACEOF
32012 cat >>$CONFIG_STATUS <<\_ACEOF
32013 exec 5>>config.log
32015 echo
32016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32017 ## Running $as_me. ##
32018 _ASBOX
32019 echo "$ac_log"
32020 } >&5
32022 _ACEOF
32023 cat >>$CONFIG_STATUS <<_ACEOF
32025 # INIT-COMMANDS
32027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32028 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32029 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32030 # from automake < 1.5.
32031 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32032 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32033 LINGUAS="${LINGUAS-%UNSET%}"
32036 _ACEOF
32038 cat >>$CONFIG_STATUS <<\_ACEOF
32040 # Handling of arguments.
32041 for ac_config_target in $ac_config_targets
32043 case $ac_config_target in
32044 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32046 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
32047 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32048 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
32049 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32050 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
32051 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32052 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
32053 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
32054 "oggdec/Makefile") CONFIG_FILES="$CONFIG_FILES oggdec/Makefile" ;;
32055 "oggenc/Makefile") CONFIG_FILES="$CONFIG_FILES oggenc/Makefile" ;;
32056 "oggenc/man/Makefile") CONFIG_FILES="$CONFIG_FILES oggenc/man/Makefile" ;;
32057 "ogg123/Makefile") CONFIG_FILES="$CONFIG_FILES ogg123/Makefile" ;;
32058 "vorbiscomment/Makefile") CONFIG_FILES="$CONFIG_FILES vorbiscomment/Makefile" ;;
32059 "vcut/Makefile") CONFIG_FILES="$CONFIG_FILES vcut/Makefile" ;;
32060 "ogginfo/Makefile") CONFIG_FILES="$CONFIG_FILES ogginfo/Makefile" ;;
32061 "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
32063 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32064 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32065 { (exit 1); exit 1; }; };;
32066 esac
32067 done
32070 # If the user did not use the arguments to specify the items to instantiate,
32071 # then the envvar interface is used. Set only those that are not.
32072 # We use the long form for the default assignment because of an extremely
32073 # bizarre bug on SunOS 4.1.3.
32074 if $ac_need_defaults; then
32075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32080 # Have a temporary directory for convenience. Make it in the build tree
32081 # simply because there is no reason against having it here, and in addition,
32082 # creating and moving files from /tmp can sometimes cause problems.
32083 # Hook for its removal unless debugging.
32084 # Note that there is a small window in which the directory will not be cleaned:
32085 # after its creation but before its name has been assigned to `$tmp'.
32086 $debug ||
32088 tmp=
32089 trap 'exit_status=$?
32090 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32092 trap '{ (exit 1); exit 1; }' 1 2 13 15
32094 # Create a (secure) tmp directory for tmp files.
32097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32098 test -n "$tmp" && test -d "$tmp"
32099 } ||
32101 tmp=./conf$$-$RANDOM
32102 (umask 077 && mkdir "$tmp")
32103 } ||
32105 echo "$me: cannot create a temporary directory in ." >&2
32106 { (exit 1); exit 1; }
32110 # Set up the sed scripts for CONFIG_FILES section.
32113 # No need to generate the scripts if there are no CONFIG_FILES.
32114 # This happens for instance when ./config.status config.h
32115 if test -n "$CONFIG_FILES"; then
32117 _ACEOF
32121 ac_delim='%!_!# '
32122 for ac_last_try in false false false false false :; do
32123 cat >conf$$subs.sed <<_ACEOF
32124 SHELL!$SHELL$ac_delim
32125 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32126 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32127 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32128 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32129 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32130 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32131 exec_prefix!$exec_prefix$ac_delim
32132 prefix!$prefix$ac_delim
32133 program_transform_name!$program_transform_name$ac_delim
32134 bindir!$bindir$ac_delim
32135 sbindir!$sbindir$ac_delim
32136 libexecdir!$libexecdir$ac_delim
32137 datarootdir!$datarootdir$ac_delim
32138 datadir!$datadir$ac_delim
32139 sysconfdir!$sysconfdir$ac_delim
32140 sharedstatedir!$sharedstatedir$ac_delim
32141 localstatedir!$localstatedir$ac_delim
32142 includedir!$includedir$ac_delim
32143 oldincludedir!$oldincludedir$ac_delim
32144 docdir!$docdir$ac_delim
32145 infodir!$infodir$ac_delim
32146 htmldir!$htmldir$ac_delim
32147 dvidir!$dvidir$ac_delim
32148 pdfdir!$pdfdir$ac_delim
32149 psdir!$psdir$ac_delim
32150 libdir!$libdir$ac_delim
32151 localedir!$localedir$ac_delim
32152 mandir!$mandir$ac_delim
32153 DEFS!$DEFS$ac_delim
32154 ECHO_C!$ECHO_C$ac_delim
32155 ECHO_N!$ECHO_N$ac_delim
32156 ECHO_T!$ECHO_T$ac_delim
32157 LIBS!$LIBS$ac_delim
32158 build_alias!$build_alias$ac_delim
32159 host_alias!$host_alias$ac_delim
32160 target_alias!$target_alias$ac_delim
32161 build!$build$ac_delim
32162 build_cpu!$build_cpu$ac_delim
32163 build_vendor!$build_vendor$ac_delim
32164 build_os!$build_os$ac_delim
32165 host!$host$ac_delim
32166 host_cpu!$host_cpu$ac_delim
32167 host_vendor!$host_vendor$ac_delim
32168 host_os!$host_os$ac_delim
32169 target!$target$ac_delim
32170 target_cpu!$target_cpu$ac_delim
32171 target_vendor!$target_vendor$ac_delim
32172 target_os!$target_os$ac_delim
32173 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32174 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32175 INSTALL_DATA!$INSTALL_DATA$ac_delim
32176 am__isrc!$am__isrc$ac_delim
32177 CYGPATH_W!$CYGPATH_W$ac_delim
32178 PACKAGE!$PACKAGE$ac_delim
32179 VERSION!$VERSION$ac_delim
32180 ACLOCAL!$ACLOCAL$ac_delim
32181 AUTOCONF!$AUTOCONF$ac_delim
32182 AUTOMAKE!$AUTOMAKE$ac_delim
32183 AUTOHEADER!$AUTOHEADER$ac_delim
32184 MAKEINFO!$MAKEINFO$ac_delim
32185 install_sh!$install_sh$ac_delim
32186 STRIP!$STRIP$ac_delim
32187 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
32188 mkdir_p!$mkdir_p$ac_delim
32189 AWK!$AWK$ac_delim
32190 SET_MAKE!$SET_MAKE$ac_delim
32191 am__leading_dot!$am__leading_dot$ac_delim
32192 AMTAR!$AMTAR$ac_delim
32193 am__tar!$am__tar$ac_delim
32194 am__untar!$am__untar$ac_delim
32195 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
32196 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
32197 MAINT!$MAINT$ac_delim
32198 CC!$CC$ac_delim
32199 CFLAGS!$CFLAGS$ac_delim
32200 LDFLAGS!$LDFLAGS$ac_delim
32201 CPPFLAGS!$CPPFLAGS$ac_delim
32202 ac_ct_CC!$ac_ct_CC$ac_delim
32203 EXEEXT!$EXEEXT$ac_delim
32204 OBJEXT!$OBJEXT$ac_delim
32205 DEPDIR!$DEPDIR$ac_delim
32206 am__include!$am__include$ac_delim
32207 am__quote!$am__quote$ac_delim
32208 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
32209 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
32210 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
32211 CCDEPMODE!$CCDEPMODE$ac_delim
32212 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32213 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32214 GREP!$GREP$ac_delim
32215 EGREP!$EGREP$ac_delim
32216 LN_S!$LN_S$ac_delim
32217 ECHO!$ECHO$ac_delim
32218 AR!$AR$ac_delim
32219 RANLIB!$RANLIB$ac_delim
32220 CPP!$CPP$ac_delim
32221 _ACEOF
32223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32224 break
32225 elif $ac_last_try; then
32226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32228 { (exit 1); exit 1; }; }
32229 else
32230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32232 done
32234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32235 if test -n "$ac_eof"; then
32236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32237 ac_eof=`expr $ac_eof + 1`
32240 cat >>$CONFIG_STATUS <<_ACEOF
32241 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32243 _ACEOF
32244 sed '
32245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32246 s/^/s,@/; s/!/@,|#_!!_#|/
32249 s/'"$ac_delim"'$/,g/; t
32250 s/$/\\/; p
32251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32252 ' >>$CONFIG_STATUS <conf$$subs.sed
32253 rm -f conf$$subs.sed
32254 cat >>$CONFIG_STATUS <<_ACEOF
32255 CEOF$ac_eof
32256 _ACEOF
32259 ac_delim='%!_!# '
32260 for ac_last_try in false false false false false :; do
32261 cat >conf$$subs.sed <<_ACEOF
32262 CXX!$CXX$ac_delim
32263 CXXFLAGS!$CXXFLAGS$ac_delim
32264 ac_ct_CXX!$ac_ct_CXX$ac_delim
32265 CXXDEPMODE!$CXXDEPMODE$ac_delim
32266 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32267 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32268 CXXCPP!$CXXCPP$ac_delim
32269 F77!$F77$ac_delim
32270 FFLAGS!$FFLAGS$ac_delim
32271 ac_ct_F77!$ac_ct_F77$ac_delim
32272 LIBTOOL!$LIBTOOL$ac_delim
32273 USE_NLS!$USE_NLS$ac_delim
32274 MSGFMT!$MSGFMT$ac_delim
32275 GMSGFMT!$GMSGFMT$ac_delim
32276 MSGFMT_015!$MSGFMT_015$ac_delim
32277 GMSGFMT_015!$GMSGFMT_015$ac_delim
32278 XGETTEXT!$XGETTEXT$ac_delim
32279 XGETTEXT_015!$XGETTEXT_015$ac_delim
32280 MSGMERGE!$MSGMERGE$ac_delim
32281 GLIBC2!$GLIBC2$ac_delim
32282 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
32283 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
32284 ALLOCA!$ALLOCA$ac_delim
32285 PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
32286 LIBPTH!$LIBPTH$ac_delim
32287 LTLIBPTH!$LTLIBPTH$ac_delim
32288 LIBTHREAD!$LIBTHREAD$ac_delim
32289 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
32290 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
32291 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
32292 LIBICONV!$LIBICONV$ac_delim
32293 INTLBISON!$INTLBISON$ac_delim
32294 GLIBC21!$GLIBC21$ac_delim
32295 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
32296 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
32297 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
32298 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
32299 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
32300 WOE32DLL!$WOE32DLL$ac_delim
32301 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
32302 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
32303 CATOBJEXT!$CATOBJEXT$ac_delim
32304 DATADIRNAME!$DATADIRNAME$ac_delim
32305 INSTOBJEXT!$INSTOBJEXT$ac_delim
32306 GENCAT!$GENCAT$ac_delim
32307 INTLOBJS!$INTLOBJS$ac_delim
32308 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
32309 INTLLIBS!$INTLLIBS$ac_delim
32310 LIBINTL!$LIBINTL$ac_delim
32311 LTLIBINTL!$LTLIBINTL$ac_delim
32312 POSUB!$POSUB$ac_delim
32313 HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
32314 PKG_CONFIG!$PKG_CONFIG$ac_delim
32315 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
32316 OGG_LIBS!$OGG_LIBS$ac_delim
32317 VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
32318 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
32319 VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
32320 VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
32321 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
32322 CURL_LIBS!$CURL_LIBS$ac_delim
32323 AO_CFLAGS!$AO_CFLAGS$ac_delim
32324 AO_LIBS!$AO_LIBS$ac_delim
32325 PTHREAD_CC!$PTHREAD_CC$ac_delim
32326 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32327 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32328 HAVE_LIBFLAC_TRUE!$HAVE_LIBFLAC_TRUE$ac_delim
32329 HAVE_LIBFLAC_FALSE!$HAVE_LIBFLAC_FALSE$ac_delim
32330 FLAC_LIBS!$FLAC_LIBS$ac_delim
32331 HAVE_LIBSPEEX_TRUE!$HAVE_LIBSPEEX_TRUE$ac_delim
32332 HAVE_LIBSPEEX_FALSE!$HAVE_LIBSPEEX_FALSE$ac_delim
32333 SPEEX_LIBS!$SPEEX_LIBS$ac_delim
32334 MANDIR!$MANDIR$ac_delim
32335 OPT_SUBDIRS!$OPT_SUBDIRS$ac_delim
32336 DEBUG!$DEBUG$ac_delim
32337 PROFILE!$PROFILE$ac_delim
32338 SOCKET_LIBS!$SOCKET_LIBS$ac_delim
32339 SHARE_CFLAGS!$SHARE_CFLAGS$ac_delim
32340 SHARE_LIBS!$SHARE_LIBS$ac_delim
32341 I18N_CFLAGS!$I18N_CFLAGS$ac_delim
32342 I18N_LIBS!$I18N_LIBS$ac_delim
32343 LIBOBJS!$LIBOBJS$ac_delim
32344 LTLIBOBJS!$LTLIBOBJS$ac_delim
32345 _ACEOF
32347 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
32348 break
32349 elif $ac_last_try; then
32350 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32351 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32352 { (exit 1); exit 1; }; }
32353 else
32354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32356 done
32358 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32359 if test -n "$ac_eof"; then
32360 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32361 ac_eof=`expr $ac_eof + 1`
32364 cat >>$CONFIG_STATUS <<_ACEOF
32365 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32367 _ACEOF
32368 sed '
32369 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32370 s/^/s,@/; s/!/@,|#_!!_#|/
32373 s/'"$ac_delim"'$/,g/; t
32374 s/$/\\/; p
32375 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32376 ' >>$CONFIG_STATUS <conf$$subs.sed
32377 rm -f conf$$subs.sed
32378 cat >>$CONFIG_STATUS <<_ACEOF
32379 :end
32380 s/|#_!!_#|//g
32381 CEOF$ac_eof
32382 _ACEOF
32385 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32386 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32387 # trailing colons and then remove the whole line if VPATH becomes empty
32388 # (actually we leave an empty line to preserve line numbers).
32389 if test "x$srcdir" = x.; then
32390 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32391 s/:*\$(srcdir):*/:/
32392 s/:*\${srcdir}:*/:/
32393 s/:*@srcdir@:*/:/
32394 s/^\([^=]*=[ ]*\):*/\1/
32395 s/:*$//
32396 s/^[^=]*=[ ]*$//
32400 cat >>$CONFIG_STATUS <<\_ACEOF
32401 fi # test -n "$CONFIG_FILES"
32404 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32406 case $ac_tag in
32407 :[FHLC]) ac_mode=$ac_tag; continue;;
32408 esac
32409 case $ac_mode$ac_tag in
32410 :[FHL]*:*);;
32411 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32412 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32413 { (exit 1); exit 1; }; };;
32414 :[FH]-) ac_tag=-:-;;
32415 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32416 esac
32417 ac_save_IFS=$IFS
32418 IFS=:
32419 set x $ac_tag
32420 IFS=$ac_save_IFS
32421 shift
32422 ac_file=$1
32423 shift
32425 case $ac_mode in
32426 :L) ac_source=$1;;
32427 :[FH])
32428 ac_file_inputs=
32429 for ac_f
32431 case $ac_f in
32432 -) ac_f="$tmp/stdin";;
32433 *) # Look for the file first in the build tree, then in the source tree
32434 # (if the path is not absolute). The absolute path cannot be DOS-style,
32435 # because $ac_f cannot contain `:'.
32436 test -f "$ac_f" ||
32437 case $ac_f in
32438 [\\/$]*) false;;
32439 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32440 esac ||
32441 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32442 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32443 { (exit 1); exit 1; }; };;
32444 esac
32445 ac_file_inputs="$ac_file_inputs $ac_f"
32446 done
32448 # Let's still pretend it is `configure' which instantiates (i.e., don't
32449 # use $as_me), people would be surprised to read:
32450 # /* config.h. Generated by config.status. */
32451 configure_input="Generated from "`IFS=:
32452 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32453 if test x"$ac_file" != x-; then
32454 configure_input="$ac_file. $configure_input"
32455 { echo "$as_me:$LINENO: creating $ac_file" >&5
32456 echo "$as_me: creating $ac_file" >&6;}
32459 case $ac_tag in
32460 *:-:* | *:-) cat >"$tmp/stdin";;
32461 esac
32463 esac
32465 ac_dir=`$as_dirname -- "$ac_file" ||
32466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32467 X"$ac_file" : 'X\(//\)[^/]' \| \
32468 X"$ac_file" : 'X\(//\)$' \| \
32469 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32470 echo X"$ac_file" |
32471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32472 s//\1/
32475 /^X\(\/\/\)[^/].*/{
32476 s//\1/
32479 /^X\(\/\/\)$/{
32480 s//\1/
32483 /^X\(\/\).*/{
32484 s//\1/
32487 s/.*/./; q'`
32488 { as_dir="$ac_dir"
32489 case $as_dir in #(
32490 -*) as_dir=./$as_dir;;
32491 esac
32492 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32493 as_dirs=
32494 while :; do
32495 case $as_dir in #(
32496 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32497 *) as_qdir=$as_dir;;
32498 esac
32499 as_dirs="'$as_qdir' $as_dirs"
32500 as_dir=`$as_dirname -- "$as_dir" ||
32501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32502 X"$as_dir" : 'X\(//\)[^/]' \| \
32503 X"$as_dir" : 'X\(//\)$' \| \
32504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32505 echo X"$as_dir" |
32506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32507 s//\1/
32510 /^X\(\/\/\)[^/].*/{
32511 s//\1/
32514 /^X\(\/\/\)$/{
32515 s//\1/
32518 /^X\(\/\).*/{
32519 s//\1/
32522 s/.*/./; q'`
32523 test -d "$as_dir" && break
32524 done
32525 test -z "$as_dirs" || eval "mkdir $as_dirs"
32526 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32527 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32528 { (exit 1); exit 1; }; }; }
32529 ac_builddir=.
32531 case "$ac_dir" in
32532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32535 # A ".." for each directory in $ac_dir_suffix.
32536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32537 case $ac_top_builddir_sub in
32538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32540 esac ;;
32541 esac
32542 ac_abs_top_builddir=$ac_pwd
32543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32544 # for backward compatibility:
32545 ac_top_builddir=$ac_top_build_prefix
32547 case $srcdir in
32548 .) # We are building in place.
32549 ac_srcdir=.
32550 ac_top_srcdir=$ac_top_builddir_sub
32551 ac_abs_top_srcdir=$ac_pwd ;;
32552 [\\/]* | ?:[\\/]* ) # Absolute name.
32553 ac_srcdir=$srcdir$ac_dir_suffix;
32554 ac_top_srcdir=$srcdir
32555 ac_abs_top_srcdir=$srcdir ;;
32556 *) # Relative name.
32557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32558 ac_top_srcdir=$ac_top_build_prefix$srcdir
32559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32560 esac
32561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32564 case $ac_mode in
32567 # CONFIG_FILE
32570 case $INSTALL in
32571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32572 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32573 esac
32574 ac_MKDIR_P=$MKDIR_P
32575 case $MKDIR_P in
32576 [\\/$]* | ?:[\\/]* ) ;;
32577 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32578 esac
32579 _ACEOF
32581 cat >>$CONFIG_STATUS <<\_ACEOF
32582 # If the template does not know about datarootdir, expand it.
32583 # FIXME: This hack should be removed a few years after 2.60.
32584 ac_datarootdir_hack=; ac_datarootdir_seen=
32586 case `sed -n '/datarootdir/ {
32590 /@datadir@/p
32591 /@docdir@/p
32592 /@infodir@/p
32593 /@localedir@/p
32594 /@mandir@/p
32595 ' $ac_file_inputs` in
32596 *datarootdir*) ac_datarootdir_seen=yes;;
32597 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32598 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32599 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32600 _ACEOF
32601 cat >>$CONFIG_STATUS <<_ACEOF
32602 ac_datarootdir_hack='
32603 s&@datadir@&$datadir&g
32604 s&@docdir@&$docdir&g
32605 s&@infodir@&$infodir&g
32606 s&@localedir@&$localedir&g
32607 s&@mandir@&$mandir&g
32608 s&\\\${datarootdir}&$datarootdir&g' ;;
32609 esac
32610 _ACEOF
32612 # Neutralize VPATH when `$srcdir' = `.'.
32613 # Shell code in configure.ac might set extrasub.
32614 # FIXME: do we really want to maintain this feature?
32615 cat >>$CONFIG_STATUS <<_ACEOF
32616 sed "$ac_vpsub
32617 $extrasub
32618 _ACEOF
32619 cat >>$CONFIG_STATUS <<\_ACEOF
32621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32622 s&@configure_input@&$configure_input&;t t
32623 s&@top_builddir@&$ac_top_builddir_sub&;t t
32624 s&@srcdir@&$ac_srcdir&;t t
32625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32626 s&@top_srcdir@&$ac_top_srcdir&;t t
32627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32628 s&@builddir@&$ac_builddir&;t t
32629 s&@abs_builddir@&$ac_abs_builddir&;t t
32630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32631 s&@INSTALL@&$ac_INSTALL&;t t
32632 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32633 $ac_datarootdir_hack
32634 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
32636 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32637 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32638 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32639 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32640 which seems to be undefined. Please make sure it is defined." >&5
32641 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32642 which seems to be undefined. Please make sure it is defined." >&2;}
32644 rm -f "$tmp/stdin"
32645 case $ac_file in
32646 -) cat "$tmp/out"; rm -f "$tmp/out";;
32647 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32648 esac
32652 # CONFIG_HEADER
32654 _ACEOF
32656 # Transform confdefs.h into a sed script `conftest.defines', that
32657 # substitutes the proper values into config.h.in to produce config.h.
32658 rm -f conftest.defines conftest.tail
32659 # First, append a space to every undef/define line, to ease matching.
32660 echo 's/$/ /' >conftest.defines
32661 # Then, protect against being on the right side of a sed subst, or in
32662 # an unquoted here document, in config.status. If some macros were
32663 # called several times there might be several #defines for the same
32664 # symbol, which is useless. But do not sort them, since the last
32665 # AC_DEFINE must be honored.
32666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32667 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32668 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32669 # PARAMS is the parameter list in the macro definition--in most cases, it's
32670 # just an empty string.
32671 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32672 ac_dB='\\)[ (].*,\\1define\\2'
32673 ac_dC=' '
32674 ac_dD=' ,'
32676 uniq confdefs.h |
32677 sed -n '
32678 t rset
32679 :rset
32680 s/^[ ]*#[ ]*define[ ][ ]*//
32681 t ok
32684 s/[\\&,]/\\&/g
32685 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32686 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32687 ' >>conftest.defines
32689 # Remove the space that was appended to ease matching.
32690 # Then replace #undef with comments. This is necessary, for
32691 # example, in the case of _POSIX_SOURCE, which is predefined and required
32692 # on some systems where configure will not decide to define it.
32693 # (The regexp can be short, since the line contains either #define or #undef.)
32694 echo 's/ $//
32695 s,^[ #]*u.*,/* & */,' >>conftest.defines
32697 # Break up conftest.defines:
32698 ac_max_sed_lines=50
32700 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32701 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32702 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32703 # et cetera.
32704 ac_in='$ac_file_inputs'
32705 ac_out='"$tmp/out1"'
32706 ac_nxt='"$tmp/out2"'
32708 while :
32710 # Write a here document:
32711 cat >>$CONFIG_STATUS <<_ACEOF
32712 # First, check the format of the line:
32713 cat >"\$tmp/defines.sed" <<\\CEOF
32714 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32715 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32717 :def
32718 _ACEOF
32719 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32720 echo 'CEOF
32721 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32722 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32723 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32724 grep . conftest.tail >/dev/null || break
32725 rm -f conftest.defines
32726 mv conftest.tail conftest.defines
32727 done
32728 rm -f conftest.defines conftest.tail
32730 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32731 cat >>$CONFIG_STATUS <<\_ACEOF
32732 if test x"$ac_file" != x-; then
32733 echo "/* $configure_input */" >"$tmp/config.h"
32734 cat "$ac_result" >>"$tmp/config.h"
32735 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32736 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32737 echo "$as_me: $ac_file is unchanged" >&6;}
32738 else
32739 rm -f $ac_file
32740 mv "$tmp/config.h" $ac_file
32742 else
32743 echo "/* $configure_input */"
32744 cat "$ac_result"
32746 rm -f "$tmp/out12"
32747 # Compute $ac_file's index in $config_headers.
32748 _am_stamp_count=1
32749 for _am_header in $config_headers :; do
32750 case $_am_header in
32751 $ac_file | $ac_file:* )
32752 break ;;
32754 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32755 esac
32756 done
32757 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
32758 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32759 X$ac_file : 'X\(//\)[^/]' \| \
32760 X$ac_file : 'X\(//\)$' \| \
32761 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
32762 echo X$ac_file |
32763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32764 s//\1/
32767 /^X\(\/\/\)[^/].*/{
32768 s//\1/
32771 /^X\(\/\/\)$/{
32772 s//\1/
32775 /^X\(\/\).*/{
32776 s//\1/
32779 s/.*/./; q'`/stamp-h$_am_stamp_count
32782 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32783 echo "$as_me: executing $ac_file commands" >&6;}
32785 esac
32788 case $ac_file$ac_mode in
32789 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32790 # Strip MF so we end up with the name of the file.
32791 mf=`echo "$mf" | sed -e 's/:.*$//'`
32792 # Check whether this is an Automake generated Makefile or not.
32793 # We used to match only the files named `Makefile.in', but
32794 # some people rename them; so instead we look at the file content.
32795 # Grep'ing the first line is not enough: some people post-process
32796 # each Makefile.in and add a new line on top of each file to say so.
32797 # Grep'ing the whole file is not good either: AIX grep has a line
32798 # limit of 2048, but all sed's we know have understand at least 4000.
32799 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
32800 dirpart=`$as_dirname -- "$mf" ||
32801 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32802 X"$mf" : 'X\(//\)[^/]' \| \
32803 X"$mf" : 'X\(//\)$' \| \
32804 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32805 echo X"$mf" |
32806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32807 s//\1/
32810 /^X\(\/\/\)[^/].*/{
32811 s//\1/
32814 /^X\(\/\/\)$/{
32815 s//\1/
32818 /^X\(\/\).*/{
32819 s//\1/
32822 s/.*/./; q'`
32823 else
32824 continue
32826 # Extract the definition of DEPDIR, am__include, and am__quote
32827 # from the Makefile without running `make'.
32828 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32829 test -z "$DEPDIR" && continue
32830 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32831 test -z "am__include" && continue
32832 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32833 # When using ansi2knr, U may be empty or an underscore; expand it
32834 U=`sed -n 's/^U = //p' < "$mf"`
32835 # Find all dependency output files, they are included files with
32836 # $(DEPDIR) in their names. We invoke sed twice because it is the
32837 # simplest approach to changing $(DEPDIR) to its actual value in the
32838 # expansion.
32839 for file in `sed -n "
32840 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32841 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32842 # Make sure the directory exists.
32843 test -f "$dirpart/$file" && continue
32844 fdir=`$as_dirname -- "$file" ||
32845 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32846 X"$file" : 'X\(//\)[^/]' \| \
32847 X"$file" : 'X\(//\)$' \| \
32848 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32849 echo X"$file" |
32850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32851 s//\1/
32854 /^X\(\/\/\)[^/].*/{
32855 s//\1/
32858 /^X\(\/\/\)$/{
32859 s//\1/
32862 /^X\(\/\).*/{
32863 s//\1/
32866 s/.*/./; q'`
32867 { as_dir=$dirpart/$fdir
32868 case $as_dir in #(
32869 -*) as_dir=./$as_dir;;
32870 esac
32871 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32872 as_dirs=
32873 while :; do
32874 case $as_dir in #(
32875 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32876 *) as_qdir=$as_dir;;
32877 esac
32878 as_dirs="'$as_qdir' $as_dirs"
32879 as_dir=`$as_dirname -- "$as_dir" ||
32880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32881 X"$as_dir" : 'X\(//\)[^/]' \| \
32882 X"$as_dir" : 'X\(//\)$' \| \
32883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32884 echo X"$as_dir" |
32885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32886 s//\1/
32889 /^X\(\/\/\)[^/].*/{
32890 s//\1/
32893 /^X\(\/\/\)$/{
32894 s//\1/
32897 /^X\(\/\).*/{
32898 s//\1/
32901 s/.*/./; q'`
32902 test -d "$as_dir" && break
32903 done
32904 test -z "$as_dirs" || eval "mkdir $as_dirs"
32905 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32906 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32907 { (exit 1); exit 1; }; }; }
32908 # echo "creating $dirpart/$file"
32909 echo '# dummy' > "$dirpart/$file"
32910 done
32911 done
32913 "po-directories":C)
32914 for ac_file in $CONFIG_FILES; do
32915 # Support "outfile[:infile[:infile...]]"
32916 case "$ac_file" in
32917 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32918 esac
32919 # PO directories have a Makefile.in generated from Makefile.in.in.
32920 case "$ac_file" in */Makefile.in)
32921 # Adjust a relative srcdir.
32922 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32923 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32924 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32925 # In autoconf-2.13 it is called $ac_given_srcdir.
32926 # In autoconf-2.50 it is called $srcdir.
32927 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32928 case "$ac_given_srcdir" in
32929 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32930 /*) top_srcdir="$ac_given_srcdir" ;;
32931 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32932 esac
32933 # Treat a directory as a PO directory if and only if it has a
32934 # POTFILES.in file. This allows packages to have multiple PO
32935 # directories under different names or in different locations.
32936 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32937 rm -f "$ac_dir/POTFILES"
32938 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32939 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32940 POMAKEFILEDEPS="POTFILES.in"
32941 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32942 # on $ac_dir but don't depend on user-specified configuration
32943 # parameters.
32944 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32945 # The LINGUAS file contains the set of available languages.
32946 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32947 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32949 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32950 # Hide the ALL_LINGUAS assigment from automake < 1.5.
32951 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32952 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32953 else
32954 # The set of available languages was given in configure.in.
32955 # Hide the ALL_LINGUAS assigment from automake < 1.5.
32956 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32958 # Compute POFILES
32959 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32960 # Compute UPDATEPOFILES
32961 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32962 # Compute DUMMYPOFILES
32963 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32964 # Compute GMOFILES
32965 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32966 case "$ac_given_srcdir" in
32967 .) srcdirpre= ;;
32968 *) srcdirpre='$(srcdir)/' ;;
32969 esac
32970 POFILES=
32971 UPDATEPOFILES=
32972 DUMMYPOFILES=
32973 GMOFILES=
32974 for lang in $ALL_LINGUAS; do
32975 POFILES="$POFILES $srcdirpre$lang.po"
32976 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32977 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32978 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32979 done
32980 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32981 # environment variable.
32982 INST_LINGUAS=
32983 if test -n "$ALL_LINGUAS"; then
32984 for presentlang in $ALL_LINGUAS; do
32985 useit=no
32986 if test "%UNSET%" != "$LINGUAS"; then
32987 desiredlanguages="$LINGUAS"
32988 else
32989 desiredlanguages="$ALL_LINGUAS"
32991 for desiredlang in $desiredlanguages; do
32992 # Use the presentlang catalog if desiredlang is
32993 # a. equal to presentlang, or
32994 # b. a variant of presentlang (because in this case,
32995 # presentlang can be used as a fallback for messages
32996 # which are not translated in the desiredlang catalog).
32997 case "$desiredlang" in
32998 "$presentlang"*) useit=yes;;
32999 esac
33000 done
33001 if test $useit = yes; then
33002 INST_LINGUAS="$INST_LINGUAS $presentlang"
33004 done
33006 CATALOGS=
33007 if test -n "$INST_LINGUAS"; then
33008 for lang in $INST_LINGUAS; do
33009 CATALOGS="$CATALOGS $lang.gmo"
33010 done
33012 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33013 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33014 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33015 if test -f "$f"; then
33016 case "$f" in
33017 *.orig | *.bak | *~) ;;
33018 *) cat "$f" >> "$ac_dir/Makefile" ;;
33019 esac
33021 done
33024 esac
33025 done ;;
33027 esac
33028 done # for ac_tag
33031 { (exit 0); exit 0; }
33032 _ACEOF
33033 chmod +x $CONFIG_STATUS
33034 ac_clean_files=$ac_clean_files_save
33037 # configure is writing to config.log, and then calls config.status.
33038 # config.status does its own redirection, appending to config.log.
33039 # Unfortunately, on DOS this fails, as config.log is still kept open
33040 # by configure, so config.status won't be able to write to it; its
33041 # output is simply discarded. So we exec the FD to /dev/null,
33042 # effectively closing config.log, so it can be properly (re)opened and
33043 # appended to by config.status. When coming back to configure, we
33044 # need to make the FD available again.
33045 if test "$no_create" != yes; then
33046 ac_cs_success=:
33047 ac_config_status_args=
33048 test "$silent" = yes &&
33049 ac_config_status_args="$ac_config_status_args --quiet"
33050 exec 5>/dev/null
33051 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33052 exec 5>>config.log
33053 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33054 # would make configure fail if this is the last instruction.
33055 $ac_cs_success || { (exit 1); exit 1; }
33059 if test "x$build_oggenc" = xyes -a "x$have_libFLAC" != xyes; then
33060 { echo "$as_me:$LINENO: WARNING: FLAC and/or OggFLAC libraries or headers missing, oggenc
33061 will NOT be built with FLAC read support." >&5
33062 echo "$as_me: WARNING: FLAC and/or OggFLAC libraries or headers missing, oggenc
33063 will NOT be built with FLAC read support." >&2;}
33066 if test "x$build_ogg123" != xyes; then
33067 { echo "$as_me:$LINENO: WARNING: Prerequisites for ogg123 not met, ogg123 will be skipped.
33068 Please ensure that you have POSIX threads, libao, and (optionally) libcurl
33069 libraries and headers present if you would like to build ogg123." >&5
33070 echo "$as_me: WARNING: Prerequisites for ogg123 not met, ogg123 will be skipped.
33071 Please ensure that you have POSIX threads, libao, and (optionally) libcurl
33072 libraries and headers present if you would like to build ogg123." >&2;}
33073 else
33074 if test "x$have_libFLAC" != xyes; then
33075 { echo "$as_me:$LINENO: WARNING: FLAC and/or OggFLAC libraries or headers missing, ogg123
33076 will NOT be built with FLAC read support." >&5
33077 echo "$as_me: WARNING: FLAC and/or OggFLAC libraries or headers missing, ogg123
33078 will NOT be built with FLAC read support." >&2;}
33080 if test "x$have_libspeex" != xyes; then
33081 { echo "$as_me:$LINENO: WARNING: Speex libraries and/or headers missing, ogg123
33082 will NOT be built with Speex read support." >&5
33083 echo "$as_me: WARNING: Speex libraries and/or headers missing, ogg123
33084 will NOT be built with Speex read support." >&2;}
33086 if test "x$HAVE_CURL" != xyes; then
33087 { echo "$as_me:$LINENO: WARNING: curl libraries and/or headers missing, ogg123
33088 will NOT be built with http support." >&5
33089 echo "$as_me: WARNING: curl libraries and/or headers missing, ogg123
33090 will NOT be built with http support." >&2;}