Sync usage with man page.
[netbsd-mini2440.git] / dist / nvi / dist / configure
blobb23e1677ef96dfbd97ac31523acea647fc49d452
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="../common/main.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 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
854 GREP
855 EGREP
856 LN_S
857 ECHO
859 RANLIB
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 OPTFLAG
873 no_op_OPTFLAG
874 vi_cv_path_shell
875 vi_cv_path_sendmail
876 vi_cv_path_perl
877 vi_cv_path_preserve
878 vi_cv_path_fuser
879 vi_cv_path_lsof
880 INUSE
881 vi_cv_path_ar
882 vi_cv_path_chmod
883 vi_cv_path_cp
884 vi_cv_path_ln
885 vi_cv_path_mkdir
886 vi_cv_path_rm
887 vi_cv_path_ranlib
888 vi_cv_path_strip
889 XMKMF
890 XINCS
891 LIBOBJS
892 vi_programs
893 vi_ipc
894 GTKLIBS
895 GTKINCS
896 PKG_CONFIG
897 GTK_CONFIG
898 GTK_CFLAGS
899 GTK_LIBS
900 MOTIFLIBS
901 IPCOBJS
902 shrpenv
903 perlldflags
904 perllibs
905 vi_cv_perllib
906 CURSLIBS
907 CURSCPPFLAGS
908 CURSLDFLAGS
909 HAVE_NCURSESW
910 u_char_decl
911 u_short_decl
912 u_int_decl
913 u_long_decl
914 u_int8_decl
915 u_int16_decl
916 int16_decl
917 u_int32_decl
918 int32_decl
919 NEED_FPRINTF_PROTO
920 dl_src
921 vi_cv_path_db3
922 LTLIBOBJS'
923 ac_subst_files=''
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
934 CXXFLAGS
936 CXXCPP
938 FFLAGS
939 XMKMF'
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
988 ac_prev=
989 ac_dashdash=
990 for ac_option
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
995 ac_prev=
996 continue
999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1008 ac_dashdash=yes ;;
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1049 eval enable_$ac_feature=no ;;
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
1061 -enable-* | --enable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1068 eval enable_$ac_feature=\$ac_optarg ;;
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1148 no_create=yes ;;
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
1217 sbindir=$ac_optarg ;;
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
1228 sharedstatedir=$ac_optarg ;;
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
1233 site=$ac_optarg ;;
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1258 -with-* | --with-*)
1259 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid package name: $ac_package" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274 eval with_$ac_package=no ;;
1276 --x)
1277 # Obsolete; use --with-x.
1278 with_x=yes ;;
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285 x_includes=$ac_optarg ;;
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292 x_libraries=$ac_optarg ;;
1294 -*) { echo "$as_me: error: unrecognized option: $ac_option
1295 Try \`$0 --help' for more information." >&2
1296 { (exit 1); exit 1; }; }
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1303 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1304 { (exit 1); exit 1; }; }
1305 eval $ac_envvar=\$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316 esac
1317 done
1319 if test -n "$ac_prev"; then
1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321 { echo "$as_me: error: missing argument to $ac_option" >&2
1322 { (exit 1); exit 1; }; }
1325 # Be sure to have absolute directory names.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val=\$$ac_var
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
1336 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1337 { (exit 1); exit 1; }; }
1338 done
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1352 If a cross compiler is detected then cross compile mode will be used." >&2
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361 test "$silent" = yes && exec 6>/dev/null
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 { echo "$as_me: error: Working directory cannot be determined" >&2
1368 { (exit 1); exit 1; }; }
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 { echo "$as_me: error: pwd does not report name of working directory" >&2
1371 { (exit 1); exit 1; }; }
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir=`$as_dirname -- "$0" ||
1379 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$0" : 'X\(//\)[^/]' \| \
1381 X"$0" : 'X\(//\)$' \| \
1382 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1383 echo X"$0" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 s//\1/
1388 /^X\(\/\/\)[^/].*/{
1389 s//\1/
1392 /^X\(\/\/\)$/{
1393 s//\1/
1396 /^X\(\/\).*/{
1397 s//\1/
1400 s/.*/./; q'`
1401 srcdir=$ac_confdir
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 srcdir=..
1405 else
1406 ac_srcdir_defaulted=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1411 { (exit 1); exit 1; }; }
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1416 { (exit 1); exit 1; }; }
1417 pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442 \`configure' configures this package to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1451 Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 [PREFIX]
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1497 cat <<\_ACEOF
1499 Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504 X features:
1505 --x-includes=DIR X include files are in DIR
1506 --x-libraries=DIR X library files are in DIR
1508 System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 _ACEOF
1514 if test -n "$ac_init_help"; then
1516 cat <<\_ACEOF
1518 Optional Features:
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=yes]
1523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
1525 --disable-dependency-tracking speeds up one-time build
1526 --enable-dependency-tracking do not reject slow dependency extractors
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --enable-debug Build a debugging version.
1529 --disable-runpath Don't record path of libraries in binary.
1530 --enable-trace Build a tracing version.
1531 --enable-widechar Build a wide char aware vi.
1532 --enable-gtk Build a Gtk front-end for vi.
1533 --disable-gtktest Do not try to compile and run a test GTK program
1534 --enable-motif Build a Motif front-end for vi.
1535 --enable-threads Turn on thread support.
1536 --enable-perlinterp Include a Perl interpreter in vi.
1537 --enable-tclinterp Include a Tk/Tcl interpreter in vi.
1538 --enable-dynamic-loading Load DB 3 dynamically.
1539 --enable-db4-logging Enable experimental/broken db4 logging.
1540 --disable-re DON'T use the nvi-provided RE routines.
1542 Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1547 both]
1548 --with-tags[=TAGS] include additional configurations [automatic]
1549 --with-x use the X Window System
1550 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1551 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1552 --with-curses=DIR Path to curses installation.
1553 --with-db=bundled|system Which db to use.
1554 --with-db-prefix=PFX Path to db installation.
1555 --with-db-build=prefix Path to db build.
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1565 CPP C preprocessor
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 CXXCPP C++ preprocessor
1569 F77 Fortran 77 compiler command
1570 FFLAGS Fortran 77 compiler flags
1571 XMKMF Path to xmkmf, Makefile generator for X Window System
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1576 _ACEOF
1577 ac_status=$?
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" || continue
1584 ac_builddir=.
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 configure
1637 generated by GNU Autoconf 2.61
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644 exit
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1650 It was created by $as_me, which was
1651 generated by GNU Autoconf 2.61. Invocation command line was
1653 $ $0 $@
1655 _ACEOF
1656 exec 5>>config.log
1658 cat <<_ASUNAME
1659 ## --------- ##
1660 ## Platform. ##
1661 ## --------- ##
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 _ASUNAME
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 echo "PATH: $as_dir"
1688 done
1689 IFS=$as_save_IFS
1691 } >&5
1693 cat >&5 <<_ACEOF
1696 ## ----------- ##
1697 ## Core tests. ##
1698 ## ----------- ##
1700 _ACEOF
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_configure_args=
1709 ac_configure_args0=
1710 ac_configure_args1=
1711 ac_must_keep_next=false
1712 for ac_pass in 1 2
1714 for ac_arg
1716 case $ac_arg in
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1720 continue ;;
1721 *\'*)
1722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 case $ac_pass in
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1730 else
1731 case $ac_arg in
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 esac
1740 -* ) ac_must_keep_next=true ;;
1741 esac
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
1745 esac
1746 done
1747 done
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1759 echo
1761 cat <<\_ASBOX
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1765 _ASBOX
1766 echo
1767 # The following way of writing the cache mishandles newlines in values,
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1771 case $ac_val in #(
1772 *${as_nl}*)
1773 case $ac_var in #(
1774 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 esac
1777 case $ac_var in #(
1778 _ | IFS | as_nl) ;; #(
1779 *) $as_unset $ac_var ;;
1780 esac ;;
1781 esac
1782 done
1783 (set) 2>&1 |
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1786 sed -n \
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 ;; #(
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 esac |
1794 sort
1796 echo
1798 cat <<\_ASBOX
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1802 _ASBOX
1803 echo
1804 for ac_var in $ac_subst_vars
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 echo "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1814 if test -n "$ac_subst_files"; then
1815 cat <<\_ASBOX
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1819 _ASBOX
1820 echo
1821 for ac_var in $ac_subst_files
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 echo "$ac_var='\''$ac_val'\''"
1828 done | sort
1829 echo
1832 if test -s confdefs.h; then
1833 cat <<\_ASBOX
1834 ## ----------- ##
1835 ## confdefs.h. ##
1836 ## ----------- ##
1837 _ASBOX
1838 echo
1839 cat confdefs.h
1840 echo
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1845 } >&5
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 exit $exit_status
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 done
1853 ac_signal=0
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 # Predefined preprocessor variables.
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 _ACEOF
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 _ACEOF
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 _ACEOF
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888 set x "$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 else
1892 set x "$ac_default_prefix/share/config.site" \
1893 "$ac_default_prefix/etc/config.site"
1895 shift
1896 for ac_site_file
1898 if test -r "$ac_site_file"; then
1899 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1902 . "$ac_site_file"
1904 done
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 echo "$as_me: loading cache $cache_file" >&6;}
1912 case $cache_file in
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1915 esac
1917 else
1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1920 >$cache_file
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1932 set,)
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,set)
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1940 ,);;
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1946 echo "$as_me: former value: $ac_old_val" >&2;}
1947 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1948 echo "$as_me: current value: $ac_new_val" >&2;}
1949 ac_cache_corrupted=:
1950 fi;;
1951 esac
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1954 case $ac_new_val in
1955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
1957 esac
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961 esac
1963 done
1964 if $ac_cache_corrupted; then
1965 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1988 ac_ext=c
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 ac_aux_dir=
1996 for ac_dir in . "$srcdir"/.; do
1997 if test -f "$ac_dir/install-sh"; then
1998 ac_aux_dir=$ac_dir
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2000 break
2001 elif test -f "$ac_dir/install.sh"; then
2002 ac_aux_dir=$ac_dir
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2004 break
2005 elif test -f "$ac_dir/shtool"; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2008 break
2010 done
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2026 am__api_version='1.10'
2028 # Find a good install program. We prefer a C program (faster),
2029 # so one script is as good as another. But avoid the broken or
2030 # incompatible versions:
2031 # SysV /etc/install, /usr/sbin/install
2032 # SunOS /usr/etc/install
2033 # IRIX /sbin/install
2034 # AIX /bin/install
2035 # AmigaOS /C/install, which installs bootblocks on floppy discs
2036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2039 # OS/2's system install, which has a completely different semantic
2040 # ./install, which can be erroneously created by make from ./install.sh.
2041 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2043 if test -z "$INSTALL"; then
2044 if test "${ac_cv_path_install+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 # Account for people who put trailing slashes in PATH elements.
2053 case $as_dir/ in
2054 ./ | .// | /cC/* | \
2055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2057 /usr/ucb/* ) ;;
2059 # OSF1 and SCO ODT 3.0 have their own names for install.
2060 # Don't use installbsd from OSF since it installs stuff as root
2061 # by default.
2062 for ac_prog in ginstall scoinst install; do
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2065 if test $ac_prog = install &&
2066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2067 # AIX install. It has an incompatible calling convention.
2069 elif test $ac_prog = install &&
2070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2071 # program-specific install script used by HP pwplus--don't use.
2073 else
2074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2075 break 3
2078 done
2079 done
2081 esac
2082 done
2083 IFS=$as_save_IFS
2087 if test "${ac_cv_path_install+set}" = set; then
2088 INSTALL=$ac_cv_path_install
2089 else
2090 # As a last resort, use the slow shell script. Don't cache a
2091 # value for INSTALL within a source directory, because that will
2092 # break other packages using the cache if that directory is
2093 # removed, or if the value is a relative name.
2094 INSTALL=$ac_install_sh
2097 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2098 echo "${ECHO_T}$INSTALL" >&6; }
2100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2101 # It thinks the first close brace ends the variable substitution.
2102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2108 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2109 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2110 # Just in case
2111 sleep 1
2112 echo timestamp > conftest.file
2113 # Do `set' in a subshell so we don't clobber the current shell's
2114 # arguments. Must try -L first in case configure is actually a
2115 # symlink; some systems play weird games with the mod time of symlinks
2116 # (eg FreeBSD returns the mod time of the symlink's containing
2117 # directory).
2118 if (
2119 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2120 if test "$*" = "X"; then
2121 # -L didn't work.
2122 set X `ls -t $srcdir/configure conftest.file`
2124 rm -f conftest.file
2125 if test "$*" != "X $srcdir/configure conftest.file" \
2126 && test "$*" != "X conftest.file $srcdir/configure"; then
2128 # If neither matched, then we have a broken ls. This can happen
2129 # if, for instance, CONFIG_SHELL is bash and it inherits a
2130 # broken ls alias from the environment. This has actually
2131 # happened. Such a system could not be considered "sane".
2132 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2133 alias in your environment" >&5
2134 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2135 alias in your environment" >&2;}
2136 { (exit 1); exit 1; }; }
2139 test "$2" = conftest.file
2141 then
2142 # Ok.
2144 else
2145 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2146 Check your system clock" >&5
2147 echo "$as_me: error: newly created file is older than distributed files!
2148 Check your system clock" >&2;}
2149 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6; }
2153 test "$program_prefix" != NONE &&
2154 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2155 # Use a double $ so make ignores it.
2156 test "$program_suffix" != NONE &&
2157 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2158 # Double any \ or $. echo might interpret backslashes.
2159 # By default was `s,x,x', remove it if useless.
2160 cat <<\_ACEOF >conftest.sed
2161 s/[\\$]/&&/g;s/;s,x,x,$//
2162 _ACEOF
2163 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2164 rm -f conftest.sed
2166 # expand $ac_aux_dir to an absolute path
2167 am_aux_dir=`cd $ac_aux_dir && pwd`
2169 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2170 # Use eval to expand $SHELL
2171 if eval "$MISSING --run true"; then
2172 am_missing_run="$MISSING --run "
2173 else
2174 am_missing_run=
2175 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2176 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2179 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2180 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2181 if test -z "$MKDIR_P"; then
2182 if test "${ac_cv_path_mkdir+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_prog in mkdir gmkdir; do
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2193 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2194 'mkdir (GNU coreutils) '* | \
2195 'mkdir (coreutils) '* | \
2196 'mkdir (fileutils) '4.1*)
2197 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2198 break 3;;
2199 esac
2200 done
2201 done
2202 done
2203 IFS=$as_save_IFS
2207 if test "${ac_cv_path_mkdir+set}" = set; then
2208 MKDIR_P="$ac_cv_path_mkdir -p"
2209 else
2210 # As a last resort, use the slow shell script. Don't cache a
2211 # value for MKDIR_P within a source directory, because that will
2212 # break other packages using the cache if that directory is
2213 # removed, or if the value is a relative name.
2214 test -d ./--version && rmdir ./--version
2215 MKDIR_P="$ac_install_sh -d"
2218 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2219 echo "${ECHO_T}$MKDIR_P" >&6; }
2221 mkdir_p="$MKDIR_P"
2222 case $mkdir_p in
2223 [\\/$]* | ?:[\\/]*) ;;
2224 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2225 esac
2227 for ac_prog in gawk mawk nawk awk
2229 # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_AWK+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$AWK"; then
2237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_AWK="$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2250 done
2251 done
2252 IFS=$as_save_IFS
2256 AWK=$ac_cv_prog_AWK
2257 if test -n "$AWK"; then
2258 { echo "$as_me:$LINENO: result: $AWK" >&5
2259 echo "${ECHO_T}$AWK" >&6; }
2260 else
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2266 test -n "$AWK" && break
2267 done
2269 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2270 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2271 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2272 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 cat >conftest.make <<\_ACEOF
2276 SHELL = /bin/sh
2277 all:
2278 @echo '@@@%%%=$(MAKE)=@@@%%%'
2279 _ACEOF
2280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2282 *@@@%%%=?*=@@@%%%*)
2283 eval ac_cv_prog_make_${ac_make}_set=yes;;
2285 eval ac_cv_prog_make_${ac_make}_set=no;;
2286 esac
2287 rm -f conftest.make
2289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2290 { echo "$as_me:$LINENO: result: yes" >&5
2291 echo "${ECHO_T}yes" >&6; }
2292 SET_MAKE=
2293 else
2294 { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2296 SET_MAKE="MAKE=${MAKE-make}"
2299 rm -rf .tst 2>/dev/null
2300 mkdir .tst 2>/dev/null
2301 if test -d .tst; then
2302 am__leading_dot=.
2303 else
2304 am__leading_dot=_
2306 rmdir .tst 2>/dev/null
2308 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2309 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2310 # is not polluted with repeated "-I."
2311 am__isrc=' -I$(srcdir)'
2312 # test to see if srcdir already configured
2313 if test -f $srcdir/config.status; then
2314 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2315 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2316 { (exit 1); exit 1; }; }
2320 # test whether we have cygpath
2321 if test -z "$CYGPATH_W"; then
2322 if (cygpath --version) >/dev/null 2>/dev/null; then
2323 CYGPATH_W='cygpath -w'
2324 else
2325 CYGPATH_W=echo
2330 # Define the identity of the package.
2331 PACKAGE=vi
2332 VERSION=1.81.6
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE "$PACKAGE"
2337 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define VERSION "$VERSION"
2342 _ACEOF
2344 # Some tools Automake needs.
2346 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2349 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2352 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2355 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2358 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2360 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2362 # Installed binaries are usually stripped using `strip' when the user
2363 # run `make install-strip'. However `strip' might not be the right
2364 # tool to use in cross-compilation environments, therefore Automake
2365 # will honor the `STRIP' environment variable to overrule this program.
2366 if test "$cross_compiling" != no; then
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2369 set dummy ${ac_tool_prefix}strip; ac_word=$2
2370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372 if test "${ac_cv_prog_STRIP+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 if test -n "$STRIP"; then
2376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2389 done
2390 done
2391 IFS=$as_save_IFS
2395 STRIP=$ac_cv_prog_STRIP
2396 if test -n "$STRIP"; then
2397 { echo "$as_me:$LINENO: result: $STRIP" >&5
2398 echo "${ECHO_T}$STRIP" >&6; }
2399 else
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2406 if test -z "$ac_cv_prog_STRIP"; then
2407 ac_ct_STRIP=$STRIP
2408 # Extract the first word of "strip", so it can be a program name with args.
2409 set dummy strip; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 if test -n "$ac_ct_STRIP"; then
2416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_ac_ct_STRIP="strip"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2429 done
2430 done
2431 IFS=$as_save_IFS
2435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2436 if test -n "$ac_ct_STRIP"; then
2437 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2438 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2439 else
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2444 if test "x$ac_ct_STRIP" = x; then
2445 STRIP=":"
2446 else
2447 case $cross_compiling:$ac_tool_warned in
2448 yes:)
2449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2450 whose name does not start with the host triplet. If you think this
2451 configuration is useful to you, please write to autoconf@gnu.org." >&5
2452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2453 whose name does not start with the host triplet. If you think this
2454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2455 ac_tool_warned=yes ;;
2456 esac
2457 STRIP=$ac_ct_STRIP
2459 else
2460 STRIP="$ac_cv_prog_STRIP"
2464 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2466 # We need awk for the "check" target. The system "awk" is bad on
2467 # some platforms.
2468 # Always define AMTAR for backward compatibility.
2470 AMTAR=${AMTAR-"${am_missing_run}tar"}
2472 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2478 ac_config_headers="$ac_config_headers config.h"
2481 # Find a good install program. We prefer a C program (faster),
2482 # so one script is as good as another. But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2487 # AIX /bin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2506 case $as_dir/ in
2507 ./ | .// | /cC/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2510 /usr/ucb/* ) ;;
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2526 else
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 break 3
2531 done
2532 done
2534 esac
2535 done
2536 IFS=$as_save_IFS
2540 if test "${ac_cv_path_install+set}" = set; then
2541 INSTALL=$ac_cv_path_install
2542 else
2543 # As a last resort, use the slow shell script. Don't cache a
2544 # value for INSTALL within a source directory, because that will
2545 # break other packages using the cache if that directory is
2546 # removed, or if the value is a relative name.
2547 INSTALL=$ac_install_sh
2550 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2551 echo "${ECHO_T}$INSTALL" >&6; }
2553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2554 # It thinks the first close brace ends the variable substitution.
2555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561 # Make sure we can run config.sub.
2562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2563 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2564 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2565 { (exit 1); exit 1; }; }
2567 { echo "$as_me:$LINENO: checking build system type" >&5
2568 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2569 if test "${ac_cv_build+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 ac_build_alias=$build_alias
2573 test "x$ac_build_alias" = x &&
2574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2575 test "x$ac_build_alias" = x &&
2576 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2578 { (exit 1); exit 1; }; }
2579 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2580 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2581 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2582 { (exit 1); exit 1; }; }
2585 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2586 echo "${ECHO_T}$ac_cv_build" >&6; }
2587 case $ac_cv_build in
2588 *-*-*) ;;
2589 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2590 echo "$as_me: error: invalid value of canonical build" >&2;}
2591 { (exit 1); exit 1; }; };;
2592 esac
2593 build=$ac_cv_build
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_build
2596 shift
2597 build_cpu=$1
2598 build_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 build_os=$*
2603 IFS=$ac_save_IFS
2604 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2607 { echo "$as_me:$LINENO: checking host system type" >&5
2608 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2609 if test "${ac_cv_host+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 if test "x$host_alias" = x; then
2613 ac_cv_host=$ac_cv_build
2614 else
2615 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2616 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2617 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2618 { (exit 1); exit 1; }; }
2622 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2623 echo "${ECHO_T}$ac_cv_host" >&6; }
2624 case $ac_cv_host in
2625 *-*-*) ;;
2626 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2627 echo "$as_me: error: invalid value of canonical host" >&2;}
2628 { (exit 1); exit 1; }; };;
2629 esac
2630 host=$ac_cv_host
2631 ac_save_IFS=$IFS; IFS='-'
2632 set x $ac_cv_host
2633 shift
2634 host_cpu=$1
2635 host_vendor=$2
2636 shift; shift
2637 # Remember, the first character of IFS is used to create $*,
2638 # except with old shells:
2639 host_os=$*
2640 IFS=$ac_save_IFS
2641 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2645 # Check whether --enable-shared was given.
2646 if test "${enable_shared+set}" = set; then
2647 enableval=$enable_shared; p=${PACKAGE-default}
2648 case $enableval in
2649 yes) enable_shared=yes ;;
2650 no) enable_shared=no ;;
2652 enable_shared=no
2653 # Look at the argument we got. We use all the common list separators.
2654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655 for pkg in $enableval; do
2656 IFS="$lt_save_ifs"
2657 if test "X$pkg" = "X$p"; then
2658 enable_shared=yes
2660 done
2661 IFS="$lt_save_ifs"
2663 esac
2664 else
2665 enable_shared=yes
2669 # Check whether --enable-static was given.
2670 if test "${enable_static+set}" = set; then
2671 enableval=$enable_static; p=${PACKAGE-default}
2672 case $enableval in
2673 yes) enable_static=yes ;;
2674 no) enable_static=no ;;
2676 enable_static=no
2677 # Look at the argument we got. We use all the common list separators.
2678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2679 for pkg in $enableval; do
2680 IFS="$lt_save_ifs"
2681 if test "X$pkg" = "X$p"; then
2682 enable_static=yes
2684 done
2685 IFS="$lt_save_ifs"
2687 esac
2688 else
2689 enable_static=yes
2693 # Check whether --enable-fast-install was given.
2694 if test "${enable_fast_install+set}" = set; then
2695 enableval=$enable_fast_install; p=${PACKAGE-default}
2696 case $enableval in
2697 yes) enable_fast_install=yes ;;
2698 no) enable_fast_install=no ;;
2700 enable_fast_install=no
2701 # Look at the argument we got. We use all the common list separators.
2702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2703 for pkg in $enableval; do
2704 IFS="$lt_save_ifs"
2705 if test "X$pkg" = "X$p"; then
2706 enable_fast_install=yes
2708 done
2709 IFS="$lt_save_ifs"
2711 esac
2712 else
2713 enable_fast_install=yes
2717 DEPDIR="${am__leading_dot}deps"
2719 ac_config_commands="$ac_config_commands depfiles"
2722 am_make=${MAKE-make}
2723 cat > confinc << 'END'
2724 am__doit:
2725 @echo done
2726 .PHONY: am__doit
2728 # If we don't find an include directive, just comment out the code.
2729 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2730 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2731 am__include="#"
2732 am__quote=
2733 _am_result=none
2734 # First try GNU make style include.
2735 echo "include confinc" > confmf
2736 # We grep out `Entering directory' and `Leaving directory'
2737 # messages which can occur if `w' ends up in MAKEFLAGS.
2738 # In particular we don't look at `^make:' because GNU make might
2739 # be invoked under some other name (usually "gmake"), in which
2740 # case it prints its new name instead of `make'.
2741 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2742 am__include=include
2743 am__quote=
2744 _am_result=GNU
2746 # Now try BSD make style include.
2747 if test "$am__include" = "#"; then
2748 echo '.include "confinc"' > confmf
2749 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2750 am__include=.include
2751 am__quote="\""
2752 _am_result=BSD
2757 { echo "$as_me:$LINENO: result: $_am_result" >&5
2758 echo "${ECHO_T}$_am_result" >&6; }
2759 rm -f confinc confmf
2761 # Check whether --enable-dependency-tracking was given.
2762 if test "${enable_dependency_tracking+set}" = set; then
2763 enableval=$enable_dependency_tracking;
2766 if test "x$enable_dependency_tracking" != xno; then
2767 am_depcomp="$ac_aux_dir/depcomp"
2768 AMDEPBACKSLASH='\'
2770 if test "x$enable_dependency_tracking" != xno; then
2771 AMDEP_TRUE=
2772 AMDEP_FALSE='#'
2773 else
2774 AMDEP_TRUE='#'
2775 AMDEP_FALSE=
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2808 IFS=$as_save_IFS
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2816 else
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2823 if test -z "$ac_cv_prog_CC"; then
2824 ac_ct_CC=$CC
2825 # Extract the first word of "gcc", so it can be a program name with args.
2826 set dummy gcc; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_ac_ct_CC="gcc"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2855 echo "${ECHO_T}$ac_ct_CC" >&6; }
2856 else
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2861 if test "x$ac_ct_CC" = x; then
2862 CC=""
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865 yes:)
2866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet. If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&5
2869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet. If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874 CC=$ac_ct_CC
2876 else
2877 CC="$ac_cv_prog_CC"
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}cc; ac_word=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}cc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2913 else
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2921 if test -z "$CC"; then
2922 # Extract the first word of "cc", so it can be a program name with args.
2923 set dummy cc; ac_word=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 ac_prog_rejected=no
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941 ac_prog_rejected=yes
2942 continue
2944 ac_cv_prog_CC="cc"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2948 done
2949 done
2950 IFS=$as_save_IFS
2952 if test $ac_prog_rejected = yes; then
2953 # We found a bogon in the path, so make sure we never use it.
2954 set dummy $ac_cv_prog_CC
2955 shift
2956 if test $# != 0; then
2957 # We chose a different compiler from the bogus one.
2958 # However, it has the same basename, so the bogon will be chosen
2959 # first if we set CC to just the basename; use the full file name.
2960 shift
2961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
2970 else
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 for ac_prog in cl.exe
2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { echo "$as_me:$LINENO: result: $CC" >&5
3011 echo "${ECHO_T}$CC" >&6; }
3012 else
3013 { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3018 test -n "$CC" && break
3019 done
3021 if test -z "$CC"; then
3022 ac_ct_CC=$CC
3023 for ac_prog in cl.exe
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3055 echo "${ECHO_T}$ac_ct_CC" >&6; }
3056 else
3057 { echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6; }
3062 test -n "$ac_ct_CC" && break
3063 done
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3071 whose name does not start with the host triplet. If you think this
3072 configuration is useful to you, please write to autoconf@gnu.org." >&5
3073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3074 whose name does not start with the host triplet. If you think this
3075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 CC=$ac_ct_CC
3085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details." >&2;}
3089 { (exit 1); exit 1; }; }
3091 # Provide some information about the compiler.
3092 echo "$as_me:$LINENO: checking for C compiler version" >&5
3093 ac_compiler=`set X $ac_compile; echo $2`
3094 { (ac_try="$ac_compiler --version >&5"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compiler --version >&5") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }
3104 { (ac_try="$ac_compiler -v >&5"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compiler -v >&5") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }
3114 { (ac_try="$ac_compiler -V >&5"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compiler -V >&5") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3133 main ()
3137 return 0;
3139 _ACEOF
3140 ac_clean_files_save=$ac_clean_files
3141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3142 # Try to create an executable without -o first, disregard a.out.
3143 # It will help us diagnose broken compilers, and finding out an intuition
3144 # of exeext.
3145 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3146 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3149 # List of possible output files, starting from the most likely.
3150 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3151 # only as a last resort. b.out is created by i960 compilers.
3152 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3154 # The IRIX 6 linker writes into existing files which may not be
3155 # executable, retaining their permissions. Remove them first so a
3156 # subsequent execution test works.
3157 ac_rmfiles=
3158 for ac_file in $ac_files
3160 case $ac_file in
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3162 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3163 esac
3164 done
3165 rm -f $ac_rmfiles
3167 if { (ac_try="$ac_link_default"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_link_default") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
3177 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3178 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3179 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3180 # so that the user can short-circuit this test for compilers unknown to
3181 # Autoconf.
3182 for ac_file in $ac_files ''
3184 test -f "$ac_file" || continue
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3188 [ab].out )
3189 # We found the default executable, but exeext='' is most
3190 # certainly right.
3191 break;;
3192 *.* )
3193 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3194 then :; else
3195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 # We set ac_cv_exeext here because the later test for it is not
3198 # safe: cross compilers may not add the suffix if given an `-o'
3199 # argument, so we may need to know it at that point already.
3200 # Even if this section looks crufty: it has the advantage of
3201 # actually working.
3202 break;;
3204 break;;
3205 esac
3206 done
3207 test "$ac_cv_exeext" = no && ac_cv_exeext=
3209 else
3210 ac_file=''
3213 { echo "$as_me:$LINENO: result: $ac_file" >&5
3214 echo "${ECHO_T}$ac_file" >&6; }
3215 if test -z "$ac_file"; then
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: C compiler cannot create executables
3222 See \`config.log' for more details." >&2;}
3223 { (exit 77); exit 77; }; }
3226 ac_exeext=$ac_cv_exeext
3228 # Check that the compiler produces executables we can run. If not, either
3229 # the compiler is broken, or we cross compile.
3230 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3233 # If not cross compiling, check that we can run a simple program.
3234 if test "$cross_compiling" != yes; then
3235 if { ac_try='./$ac_file'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 cross_compiling=no
3246 else
3247 if test "$cross_compiling" = maybe; then
3248 cross_compiling=yes
3249 else
3250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3251 If you meant to cross compile, use \`--host'.
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: cannot run C compiled programs.
3254 If you meant to cross compile, use \`--host'.
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3260 { echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6; }
3263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 # Check that the compiler produces executables we can run. If not, either
3266 # the compiler is broken, or we cross compile.
3267 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3269 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3270 echo "${ECHO_T}$cross_compiling" >&6; }
3272 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3274 if { (ac_try="$ac_link"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_link") 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; then
3284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3286 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 # `rm'.
3288 for ac_file in conftest.exe conftest conftest.*; do
3289 test -f "$ac_file" || continue
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 break;;
3294 * ) break;;
3295 esac
3296 done
3297 else
3298 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3305 rm -f conftest$ac_cv_exeext
3306 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3307 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3309 rm -f conftest.$ac_ext
3310 EXEEXT=$ac_cv_exeext
3311 ac_exeext=$EXEEXT
3312 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3313 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3314 if test "${ac_cv_objext+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 rm -f conftest.o conftest.obj
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_compile") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; then
3343 for ac_file in conftest.o conftest.obj conftest.*; do
3344 test -f "$ac_file" || continue;
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 break;;
3349 esac
3350 done
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details." >&5
3357 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details." >&2;}
3359 { (exit 1); exit 1; }; }
3362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3364 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3365 echo "${ECHO_T}$ac_cv_objext" >&6; }
3366 OBJEXT=$ac_cv_objext
3367 ac_objext=$OBJEXT
3368 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3369 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3370 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 main ()
3383 #ifndef __GNUC__
3384 choke me
3385 #endif
3388 return 0;
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && {
3405 test -z "$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 } && test -s conftest.$ac_objext; then
3408 ac_compiler_gnu=yes
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 ac_compiler_gnu=no
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3422 GCC=`test $ac_compiler_gnu = yes && echo yes`
3423 ac_test_CFLAGS=${CFLAGS+set}
3424 ac_save_CFLAGS=$CFLAGS
3425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3427 if test "${ac_cv_prog_cc_g+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 ac_save_c_werror_flag=$ac_c_werror_flag
3431 ac_c_werror_flag=yes
3432 ac_cv_prog_cc_g=no
3433 CFLAGS="-g"
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3442 main ()
3446 return 0;
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } && {
3463 test -z "$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 } && test -s conftest.$ac_objext; then
3466 ac_cv_prog_cc_g=yes
3467 else
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 CFLAGS=""
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3480 main ()
3484 return 0;
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3505 else
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3510 CFLAGS="-g"
3511 cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3519 main ()
3523 return 0;
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest.$ac_objext; then
3543 ac_cv_prog_cc_g=yes
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3561 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3566 CFLAGS="-g -O2"
3567 else
3568 CFLAGS="-g"
3570 else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3577 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3578 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3579 if test "${ac_cv_prog_cc_c89+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 ac_cv_prog_cc_c89=no
3583 ac_save_CC=$CC
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <stdarg.h>
3591 #include <stdio.h>
3592 #include <sys/types.h>
3593 #include <sys/stat.h>
3594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595 struct buf { int x; };
3596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597 static char *e (p, i)
3598 char **p;
3599 int i;
3601 return p[i];
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std. */
3620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623 inside strings and character constants. */
3624 #define FOO(x) 'x'
3625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3627 int test (int i, double x);
3628 struct s1 {int (*f) (int a);};
3629 struct s2 {int (*f) (double a);};
3630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 int argc;
3632 char **argv;
3634 main ()
3636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3638 return 0;
3640 _ACEOF
3641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644 CC="$ac_save_CC $ac_arg"
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_compile") 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } && {
3659 test -z "$ac_c_werror_flag" ||
3660 test ! -s conftest.err
3661 } && test -s conftest.$ac_objext; then
3662 ac_cv_prog_cc_c89=$ac_arg
3663 else
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3670 rm -f core conftest.err conftest.$ac_objext
3671 test "x$ac_cv_prog_cc_c89" != "xno" && break
3672 done
3673 rm -f conftest.$ac_ext
3674 CC=$ac_save_CC
3677 # AC_CACHE_VAL
3678 case "x$ac_cv_prog_cc_c89" in
3680 { echo "$as_me:$LINENO: result: none needed" >&5
3681 echo "${ECHO_T}none needed" >&6; } ;;
3682 xno)
3683 { echo "$as_me:$LINENO: result: unsupported" >&5
3684 echo "${ECHO_T}unsupported" >&6; } ;;
3686 CC="$CC $ac_cv_prog_cc_c89"
3687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3689 esac
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698 depcc="$CC" am_compiler_list=
3700 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3701 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3702 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3706 # We make a subdir and do the tests there. Otherwise we can end up
3707 # making bogus files that we don't know about and never remove. For
3708 # instance it was reported that on HP-UX the gcc test will end up
3709 # making a dummy file named `D' -- because `-MD' means `put the output
3710 # in D'.
3711 mkdir conftest.dir
3712 # Copy depcomp to subdir because otherwise we won't find it if we're
3713 # using a relative directory.
3714 cp "$am_depcomp" conftest.dir
3715 cd conftest.dir
3716 # We will build objects and dependencies in a subdirectory because
3717 # it helps to detect inapplicable dependency modes. For instance
3718 # both Tru64's cc and ICC support -MD to output dependencies as a
3719 # side effect of compilation, but ICC will put the dependencies in
3720 # the current directory while Tru64 will put them in the object
3721 # directory.
3722 mkdir sub
3724 am_cv_CC_dependencies_compiler_type=none
3725 if test "$am_compiler_list" = ""; then
3726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 for depmode in $am_compiler_list; do
3729 # Setup a source with many dependencies, because some compilers
3730 # like to wrap large dependency lists on column 80 (with \), and
3731 # we should not choose a depcomp mode which is confused by this.
3733 # We need to recreate these files for each test, as the compiler may
3734 # overwrite some of them when testing with obscure command lines.
3735 # This happens at least with the AIX C compiler.
3736 : > sub/conftest.c
3737 for i in 1 2 3 4 5 6; do
3738 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3739 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3740 # Solaris 8's {/usr,}/bin/sh.
3741 touch sub/conftst$i.h
3742 done
3743 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3745 case $depmode in
3746 nosideeffect)
3747 # after this tag, mechanisms are not by side-effect, so they'll
3748 # only be used when explicitly requested
3749 if test "x$enable_dependency_tracking" = xyes; then
3750 continue
3751 else
3752 break
3755 none) break ;;
3756 esac
3757 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3758 # mode. It turns out that the SunPro C++ compiler does not properly
3759 # handle `-M -o', and we need to detect this.
3760 if depmode=$depmode \
3761 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3763 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3764 >/dev/null 2>conftest.err &&
3765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3767 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3769 # icc doesn't choke on unknown options, it will just issue warnings
3770 # or remarks (even with -Werror). So we grep stderr for any message
3771 # that says an option was ignored or not supported.
3772 # When given -MP, icc 7.0 and 7.1 complain thusly:
3773 # icc: Command line warning: ignoring option '-M'; no argument required
3774 # The diagnosis changed in icc 8.0:
3775 # icc: Command line remark: option '-MP' not supported
3776 if (grep 'ignoring option' conftest.err ||
3777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3778 am_cv_CC_dependencies_compiler_type=$depmode
3779 break
3782 done
3784 cd ..
3785 rm -rf conftest.dir
3786 else
3787 am_cv_CC_dependencies_compiler_type=none
3791 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3792 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3793 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3796 test "x$enable_dependency_tracking" != xno \
3797 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3798 am__fastdepCC_TRUE=
3799 am__fastdepCC_FALSE='#'
3800 else
3801 am__fastdepCC_TRUE='#'
3802 am__fastdepCC_FALSE=
3806 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3807 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3808 if test "${lt_cv_path_SED+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 # Loop through the user's path and test for sed and gsed.
3812 # Then use that list of sed's as ones to test for truncation.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for lt_ac_prog in sed gsed; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3821 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3823 done
3824 done
3825 done
3826 IFS=$as_save_IFS
3827 lt_ac_max=0
3828 lt_ac_count=0
3829 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3830 # along with /bin/sed that truncates output.
3831 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3832 test ! -f $lt_ac_sed && continue
3833 cat /dev/null > conftest.in
3834 lt_ac_count=0
3835 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3836 # Check for GNU sed and select it if it is found.
3837 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3838 lt_cv_path_SED=$lt_ac_sed
3839 break
3841 while true; do
3842 cat conftest.in conftest.in >conftest.tmp
3843 mv conftest.tmp conftest.in
3844 cp conftest.in conftest.nl
3845 echo >>conftest.nl
3846 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3847 cmp -s conftest.out conftest.nl || break
3848 # 10000 chars as input seems more than enough
3849 test $lt_ac_count -gt 10 && break
3850 lt_ac_count=`expr $lt_ac_count + 1`
3851 if test $lt_ac_count -gt $lt_ac_max; then
3852 lt_ac_max=$lt_ac_count
3853 lt_cv_path_SED=$lt_ac_sed
3855 done
3856 done
3860 SED=$lt_cv_path_SED
3862 { echo "$as_me:$LINENO: result: $SED" >&5
3863 echo "${ECHO_T}$SED" >&6; }
3865 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3866 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3867 if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 # Extract the first word of "grep ggrep" to use in msg output
3871 if test -z "$GREP"; then
3872 set dummy grep ggrep; ac_prog_name=$2
3873 if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 ac_path_GREP_found=false
3877 # Loop through the user's path and test for each of PROGNAME-LIST
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889 case `"$ac_path_GREP" --version 2>&1` in
3890 *GNU*)
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 esac
3916 $ac_path_GREP_found && break 3
3917 done
3918 done
3920 done
3921 IFS=$as_save_IFS
3926 GREP="$ac_cv_path_GREP"
3927 if test -z "$GREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3933 else
3934 ac_cv_path_GREP=$GREP
3939 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3940 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3944 { echo "$as_me:$LINENO: checking for egrep" >&5
3945 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3946 if test "${ac_cv_path_EGREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 # Extract the first word of "egrep" to use in msg output
3953 if test -z "$EGREP"; then
3954 set dummy egrep; ac_prog_name=$2
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 ac_path_EGREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971 case `"$ac_path_EGREP" --version 2>&1` in
3972 *GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3975 ac_count=0
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 while :
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3998 $ac_path_EGREP_found && break 3
3999 done
4000 done
4002 done
4003 IFS=$as_save_IFS
4008 EGREP="$ac_cv_path_EGREP"
4009 if test -z "$EGREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4015 else
4016 ac_cv_path_EGREP=$EGREP
4022 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4023 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
4028 # Check whether --with-gnu-ld was given.
4029 if test "${with_gnu_ld+set}" = set; then
4030 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4031 else
4032 with_gnu_ld=no
4035 ac_prog=ld
4036 if test "$GCC" = yes; then
4037 # Check if gcc -print-prog-name=ld gives a path.
4038 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4039 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4040 case $host in
4041 *-*-mingw*)
4042 # gcc leaves a trailing carriage return which upsets mingw
4043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4046 esac
4047 case $ac_prog in
4048 # Accept absolute paths.
4049 [\\/]* | ?:[\\/]*)
4050 re_direlt='/[^/][^/]*/\.\./'
4051 # Canonicalize the pathname of ld
4052 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4053 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4054 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4055 done
4056 test -z "$LD" && LD="$ac_prog"
4059 # If it fails, then pretend we aren't using GCC.
4060 ac_prog=ld
4063 # If it is relative, then search for the first ld in PATH.
4064 with_gnu_ld=unknown
4066 esac
4067 elif test "$with_gnu_ld" = yes; then
4068 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4069 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4070 else
4071 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4072 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4074 if test "${lt_cv_path_LD+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 if test -z "$LD"; then
4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079 for ac_dir in $PATH; do
4080 IFS="$lt_save_ifs"
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4083 lt_cv_path_LD="$ac_dir/$ac_prog"
4084 # Check to see if the program is GNU ld. I'd rather use --version,
4085 # but apparently some variants of GNU ld only accept -v.
4086 # Break only if it was the GNU/non-GNU ld that we prefer.
4087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4088 *GNU* | *'with BFD'*)
4089 test "$with_gnu_ld" != no && break
4092 test "$with_gnu_ld" != yes && break
4094 esac
4096 done
4097 IFS="$lt_save_ifs"
4098 else
4099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4103 LD="$lt_cv_path_LD"
4104 if test -n "$LD"; then
4105 { echo "$as_me:$LINENO: result: $LD" >&5
4106 echo "${ECHO_T}$LD" >&6; }
4107 else
4108 { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4111 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4112 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4113 { (exit 1); exit 1; }; }
4114 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4115 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4116 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4120 case `$LD -v 2>&1 </dev/null` in
4121 *GNU* | *'with BFD'*)
4122 lt_cv_prog_gnu_ld=yes
4125 lt_cv_prog_gnu_ld=no
4127 esac
4129 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4130 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4131 with_gnu_ld=$lt_cv_prog_gnu_ld
4134 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4135 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4136 if test "${lt_cv_ld_reload_flag+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 lt_cv_ld_reload_flag='-r'
4141 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4142 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4143 reload_flag=$lt_cv_ld_reload_flag
4144 case $reload_flag in
4145 "" | " "*) ;;
4146 *) reload_flag=" $reload_flag" ;;
4147 esac
4148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 case $host_os in
4150 darwin*)
4151 if test "$GCC" = yes; then
4152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4153 else
4154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4157 esac
4159 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4160 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4161 if test "${lt_cv_path_NM+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 if test -n "$NM"; then
4165 # Let the user override the test.
4166 lt_cv_path_NM="$NM"
4167 else
4168 lt_nm_to_check="${ac_tool_prefix}nm"
4169 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4170 lt_nm_to_check="$lt_nm_to_check nm"
4172 for lt_tmp_nm in $lt_nm_to_check; do
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 tmp_nm="$ac_dir/$lt_tmp_nm"
4178 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4179 # Check to see if the nm accepts a BSD-compat flag.
4180 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4181 # nm: unknown option "B" ignored
4182 # Tru64's nm complains that /dev/null is an invalid object file
4183 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4184 */dev/null* | *'Invalid file or object type'*)
4185 lt_cv_path_NM="$tmp_nm -B"
4186 break
4189 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4190 */dev/null*)
4191 lt_cv_path_NM="$tmp_nm -p"
4192 break
4195 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4196 continue # so that we can try to find one that supports BSD flags
4198 esac
4200 esac
4202 done
4203 IFS="$lt_save_ifs"
4204 done
4205 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4208 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4209 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4210 NM="$lt_cv_path_NM"
4212 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4213 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4214 LN_S=$as_ln_s
4215 if test "$LN_S" = "ln -s"; then
4216 { echo "$as_me:$LINENO: result: yes" >&5
4217 echo "${ECHO_T}yes" >&6; }
4218 else
4219 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4220 echo "${ECHO_T}no, using $LN_S" >&6; }
4223 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4224 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4225 if test "${lt_cv_deplibs_check_method+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 lt_cv_file_magic_cmd='$MAGIC_CMD'
4229 lt_cv_file_magic_test_file=
4230 lt_cv_deplibs_check_method='unknown'
4231 # Need to set the preceding variable on all platforms that support
4232 # interlibrary dependencies.
4233 # 'none' -- dependencies not supported.
4234 # `unknown' -- same as none, but documents that we really don't know.
4235 # 'pass_all' -- all dependencies passed with no checks.
4236 # 'test_compile' -- check by making test program.
4237 # 'file_magic [[regex]]' -- check by looking for files in library path
4238 # which responds to the $file_magic_cmd with a given extended regex.
4239 # If you have `file' or equivalent on your system and you're not sure
4240 # whether `pass_all' will *always* work, you probably want this one.
4242 case $host_os in
4243 aix4* | aix5*)
4244 lt_cv_deplibs_check_method=pass_all
4247 beos*)
4248 lt_cv_deplibs_check_method=pass_all
4251 bsdi[45]*)
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4253 lt_cv_file_magic_cmd='/usr/bin/file -L'
4254 lt_cv_file_magic_test_file=/shlib/libc.so
4257 cygwin*)
4258 # func_win32_libid is a shell function defined in ltmain.sh
4259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4260 lt_cv_file_magic_cmd='func_win32_libid'
4263 mingw* | pw32*)
4264 # Base MSYS/MinGW do not provide the 'file' command needed by
4265 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4266 # unless we find 'file', for example because we are cross-compiling.
4267 if ( file / ) >/dev/null 2>&1; then
4268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4269 lt_cv_file_magic_cmd='func_win32_libid'
4270 else
4271 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4272 lt_cv_file_magic_cmd='$OBJDUMP -f'
4276 darwin* | rhapsody*)
4277 lt_cv_deplibs_check_method=pass_all
4280 freebsd* | dragonfly*)
4281 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4282 case $host_cpu in
4283 i*86 )
4284 # Not sure whether the presence of OpenBSD here was a mistake.
4285 # Let's accept both of them until this is cleared up.
4286 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4287 lt_cv_file_magic_cmd=/usr/bin/file
4288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4290 esac
4291 else
4292 lt_cv_deplibs_check_method=pass_all
4296 gnu*)
4297 lt_cv_deplibs_check_method=pass_all
4300 hpux10.20* | hpux11*)
4301 lt_cv_file_magic_cmd=/usr/bin/file
4302 case $host_cpu in
4303 ia64*)
4304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4305 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4307 hppa*64*)
4308 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]'
4309 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4313 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4315 esac
4318 interix[3-9]*)
4319 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4323 irix5* | irix6* | nonstopux*)
4324 case $LD in
4325 *-32|*"-32 ") libmagic=32-bit;;
4326 *-n32|*"-n32 ") libmagic=N32;;
4327 *-64|*"-64 ") libmagic=64-bit;;
4328 *) libmagic=never-match;;
4329 esac
4330 lt_cv_deplibs_check_method=pass_all
4333 # This must be Linux ELF.
4334 linux* | k*bsd*-gnu)
4335 lt_cv_deplibs_check_method=pass_all
4338 netbsd*)
4339 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4341 else
4342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4346 newos6*)
4347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4348 lt_cv_file_magic_cmd=/usr/bin/file
4349 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4352 nto-qnx*)
4353 lt_cv_deplibs_check_method=unknown
4356 openbsd*)
4357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4359 else
4360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4364 osf3* | osf4* | osf5*)
4365 lt_cv_deplibs_check_method=pass_all
4368 rdos*)
4369 lt_cv_deplibs_check_method=pass_all
4372 solaris*)
4373 lt_cv_deplibs_check_method=pass_all
4376 sysv4 | sysv4.3*)
4377 case $host_vendor in
4378 motorola)
4379 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]'
4380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4382 ncr)
4383 lt_cv_deplibs_check_method=pass_all
4385 sequent)
4386 lt_cv_file_magic_cmd='/bin/file'
4387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4389 sni)
4390 lt_cv_file_magic_cmd='/bin/file'
4391 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4392 lt_cv_file_magic_test_file=/lib/libc.so
4394 siemens)
4395 lt_cv_deplibs_check_method=pass_all
4398 lt_cv_deplibs_check_method=pass_all
4400 esac
4403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4404 lt_cv_deplibs_check_method=pass_all
4406 esac
4409 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4410 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4411 file_magic_cmd=$lt_cv_file_magic_cmd
4412 deplibs_check_method=$lt_cv_deplibs_check_method
4413 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4418 # If no C compiler was specified, use CC.
4419 LTCC=${LTCC-"$CC"}
4421 # If no C compiler flags were specified, use CFLAGS.
4422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4424 # Allow CC to be a program name with arguments.
4425 compiler=$CC
4428 # Check whether --enable-libtool-lock was given.
4429 if test "${enable_libtool_lock+set}" = set; then
4430 enableval=$enable_libtool_lock;
4433 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4435 # Some flags need to be propagated to the compiler or linker for good
4436 # libtool support.
4437 case $host in
4438 ia64-*-hpux*)
4439 # Find out which ABI we are using.
4440 echo 'int i;' > conftest.$ac_ext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; then
4446 case `/usr/bin/file conftest.$ac_objext` in
4447 *ELF-32*)
4448 HPUX_IA64_MODE="32"
4450 *ELF-64*)
4451 HPUX_IA64_MODE="64"
4453 esac
4455 rm -rf conftest*
4457 *-*-irix6*)
4458 # Find out which ABI we are using.
4459 echo '#line 4459 "configure"' > conftest.$ac_ext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; then
4465 if test "$lt_cv_prog_gnu_ld" = yes; then
4466 case `/usr/bin/file conftest.$ac_objext` in
4467 *32-bit*)
4468 LD="${LD-ld} -melf32bsmip"
4470 *N32*)
4471 LD="${LD-ld} -melf32bmipn32"
4473 *64-bit*)
4474 LD="${LD-ld} -melf64bmip"
4476 esac
4477 else
4478 case `/usr/bin/file conftest.$ac_objext` in
4479 *32-bit*)
4480 LD="${LD-ld} -32"
4482 *N32*)
4483 LD="${LD-ld} -n32"
4485 *64-bit*)
4486 LD="${LD-ld} -64"
4488 esac
4491 rm -rf conftest*
4494 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4495 s390*-*linux*|sparc*-*linux*)
4496 # Find out which ABI we are using.
4497 echo 'int i;' > conftest.$ac_ext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; then
4503 case `/usr/bin/file conftest.o` in
4504 *32-bit*)
4505 case $host in
4506 x86_64-*kfreebsd*-gnu)
4507 LD="${LD-ld} -m elf_i386_fbsd"
4509 x86_64-*linux*)
4510 LD="${LD-ld} -m elf_i386"
4512 ppc64-*linux*|powerpc64-*linux*)
4513 LD="${LD-ld} -m elf32ppclinux"
4515 s390x-*linux*)
4516 LD="${LD-ld} -m elf_s390"
4518 sparc64-*linux*)
4519 LD="${LD-ld} -m elf32_sparc"
4521 esac
4523 *64-bit*)
4524 case $host in
4525 x86_64-*kfreebsd*-gnu)
4526 LD="${LD-ld} -m elf_x86_64_fbsd"
4528 x86_64-*linux*)
4529 LD="${LD-ld} -m elf_x86_64"
4531 ppc*-*linux*|powerpc*-*linux*)
4532 LD="${LD-ld} -m elf64ppc"
4534 s390*-*linux*)
4535 LD="${LD-ld} -m elf64_s390"
4537 sparc*-*linux*)
4538 LD="${LD-ld} -m elf64_sparc"
4540 esac
4542 esac
4544 rm -rf conftest*
4547 *-*-sco3.2v5*)
4548 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4549 SAVE_CFLAGS="$CFLAGS"
4550 CFLAGS="$CFLAGS -belf"
4551 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4552 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4553 if test "${lt_cv_cc_needs_belf+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4570 main ()
4574 return 0;
4576 _ACEOF
4577 rm -f conftest.$ac_objext conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && {
4591 test -z "$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 } && test -s conftest$ac_exeext &&
4594 $as_test_x conftest$ac_exeext; then
4595 lt_cv_cc_needs_belf=yes
4596 else
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 lt_cv_cc_needs_belf=no
4603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4604 conftest$ac_exeext conftest.$ac_ext
4605 ac_ext=c
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4613 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4614 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4615 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4616 CFLAGS="$SAVE_CFLAGS"
4619 sparc*-*solaris*)
4620 # Find out which ABI we are using.
4621 echo 'int i;' > conftest.$ac_ext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; then
4627 case `/usr/bin/file conftest.o` in
4628 *64-bit*)
4629 case $lt_cv_prog_gnu_ld in
4630 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4631 *) LD="${LD-ld} -64" ;;
4632 esac
4634 esac
4636 rm -rf conftest*
4640 esac
4642 need_locks="$enable_libtool_lock"
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4651 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4652 # On Suns, sometimes $CPP names a directory.
4653 if test -n "$CPP" && test -d "$CPP"; then
4654 CPP=
4656 if test -z "$CPP"; then
4657 if test "${ac_cv_prog_CPP+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 # Double quotes because CPP needs to be expanded
4661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4663 ac_preproc_ok=false
4664 for ac_c_preproc_warn_flag in '' yes
4666 # Use a header file that comes with gcc, so configuring glibc
4667 # with a fresh cross-compiler works.
4668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4669 # <limits.h> exists even on freestanding compilers.
4670 # On the NeXT, cc -E runs the code through the compiler's parser,
4671 # not just through cpp. "Syntax error" is here to catch this case.
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #ifdef __STDC__
4679 # include <limits.h>
4680 #else
4681 # include <assert.h>
4682 #endif
4683 Syntax error
4684 _ACEOF
4685 if { (ac_try="$ac_cpp conftest.$ac_ext"
4686 case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null && {
4698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 }; then
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 # Broken: fails on valid input.
4707 continue
4710 rm -f conftest.err conftest.$ac_ext
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #include <ac_nonexistent.h>
4721 _ACEOF
4722 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } >/dev/null && {
4735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4736 test ! -s conftest.err
4737 }; then
4738 # Broken: success on invalid input.
4739 continue
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 # Passes both tests.
4745 ac_preproc_ok=:
4746 break
4749 rm -f conftest.err conftest.$ac_ext
4751 done
4752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4753 rm -f conftest.err conftest.$ac_ext
4754 if $ac_preproc_ok; then
4755 break
4758 done
4759 ac_cv_prog_CPP=$CPP
4762 CPP=$ac_cv_prog_CPP
4763 else
4764 ac_cv_prog_CPP=$CPP
4766 { echo "$as_me:$LINENO: result: $CPP" >&5
4767 echo "${ECHO_T}$CPP" >&6; }
4768 ac_preproc_ok=false
4769 for ac_c_preproc_warn_flag in '' yes
4771 # Use a header file that comes with gcc, so configuring glibc
4772 # with a fresh cross-compiler works.
4773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4774 # <limits.h> exists even on freestanding compilers.
4775 # On the NeXT, cc -E runs the code through the compiler's parser,
4776 # not just through cpp. "Syntax error" is here to catch this case.
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #ifdef __STDC__
4784 # include <limits.h>
4785 #else
4786 # include <assert.h>
4787 #endif
4788 Syntax error
4789 _ACEOF
4790 if { (ac_try="$ac_cpp conftest.$ac_ext"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } >/dev/null && {
4803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 }; then
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 # Broken: fails on valid input.
4812 continue
4815 rm -f conftest.err conftest.$ac_ext
4817 # OK, works on sane cases. Now check whether nonexistent headers
4818 # can be detected and how.
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <ac_nonexistent.h>
4826 _ACEOF
4827 if { (ac_try="$ac_cpp conftest.$ac_ext"
4828 case "(($ac_try" in
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4831 esac
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } >/dev/null && {
4840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4841 test ! -s conftest.err
4842 }; then
4843 # Broken: success on invalid input.
4844 continue
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 # Passes both tests.
4850 ac_preproc_ok=:
4851 break
4854 rm -f conftest.err conftest.$ac_ext
4856 done
4857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4858 rm -f conftest.err conftest.$ac_ext
4859 if $ac_preproc_ok; then
4861 else
4862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4863 See \`config.log' for more details." >&5
4864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4865 See \`config.log' for more details." >&2;}
4866 { (exit 1); exit 1; }; }
4869 ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4878 if test "${ac_cv_header_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4888 #include <stdarg.h>
4889 #include <string.h>
4890 #include <float.h>
4893 main ()
4897 return 0;
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4917 ac_cv_header_stdc=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_cv_header_stdc=no
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 if test $ac_cv_header_stdc = yes; then
4928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #include <string.h>
4937 _ACEOF
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "memchr" >/dev/null 2>&1; then
4941 else
4942 ac_cv_header_stdc=no
4944 rm -f conftest*
4948 if test $ac_cv_header_stdc = yes; then
4949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <stdlib.h>
4958 _ACEOF
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "free" >/dev/null 2>&1; then
4962 else
4963 ac_cv_header_stdc=no
4965 rm -f conftest*
4969 if test $ac_cv_header_stdc = yes; then
4970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4971 if test "$cross_compiling" = yes; then
4973 else
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <ctype.h>
4981 #include <stdlib.h>
4982 #if ((' ' & 0x0FF) == 0x020)
4983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4985 #else
4986 # define ISLOWER(c) \
4987 (('a' <= (c) && (c) <= 'i') \
4988 || ('j' <= (c) && (c) <= 'r') \
4989 || ('s' <= (c) && (c) <= 'z'))
4990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4991 #endif
4993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 main ()
4997 int i;
4998 for (i = 0; i < 256; i++)
4999 if (XOR (islower (i), ISLOWER (i))
5000 || toupper (i) != TOUPPER (i))
5001 return 2;
5002 return 0;
5004 _ACEOF
5005 rm -f conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5007 case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_link") 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5016 { (case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_try") 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5026 else
5027 echo "$as_me: program exited with status $ac_status" >&5
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 ( exit $ac_status )
5032 ac_cv_header_stdc=no
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5041 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5042 if test $ac_cv_header_stdc = yes; then
5044 cat >>confdefs.h <<\_ACEOF
5045 #define STDC_HEADERS 1
5046 _ACEOF
5050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5061 inttypes.h stdint.h unistd.h
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5077 #include <$ac_header>
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5081 case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084 esac
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && {
5093 test -z "$ac_c_werror_flag" ||
5094 test ! -s conftest.err
5095 } && test -s conftest.$ac_objext; then
5096 eval "$as_ac_Header=yes"
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 eval "$as_ac_Header=no"
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 ac_res=`eval echo '${'$as_ac_Header'}'`
5107 { echo "$as_me:$LINENO: result: $ac_res" >&5
5108 echo "${ECHO_T}$ac_res" >&6; }
5109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5110 cat >>confdefs.h <<_ACEOF
5111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112 _ACEOF
5116 done
5120 for ac_header in dlfcn.h
5122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 ac_res=`eval echo '${'$as_ac_Header'}'`
5130 { echo "$as_me:$LINENO: result: $ac_res" >&5
5131 echo "${ECHO_T}$ac_res" >&6; }
5132 else
5133 # Is the header compilable?
5134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5143 #include <$ac_header>
5144 _ACEOF
5145 rm -f conftest.$ac_objext
5146 if { (ac_try="$ac_compile"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_compile") 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } && {
5159 test -z "$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 } && test -s conftest.$ac_objext; then
5162 ac_header_compiler=yes
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 ac_header_compiler=no
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5172 echo "${ECHO_T}$ac_header_compiler" >&6; }
5174 # Is the header present?
5175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5176 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
5184 _ACEOF
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } >/dev/null && {
5198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 }; then
5201 ac_header_preproc=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_header_preproc=no
5209 rm -f conftest.err conftest.$ac_ext
5210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5211 echo "${ECHO_T}$ac_header_preproc" >&6; }
5213 # So? What about this header?
5214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5215 yes:no: )
5216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5220 ac_header_preproc=yes
5222 no:yes:* )
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5237 esac
5238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 eval "$as_ac_Header=\$ac_header_preproc"
5245 ac_res=`eval echo '${'$as_ac_Header'}'`
5246 { echo "$as_me:$LINENO: result: $ac_res" >&5
5247 echo "${ECHO_T}$ac_res" >&6; }
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5257 done
5259 ac_ext=cpp
5260 ac_cpp='$CXXCPP $CPPFLAGS'
5261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5264 if test -z "$CXX"; then
5265 if test -n "$CCC"; then
5266 CXX=$CCC
5267 else
5268 if test -n "$ac_tool_prefix"; then
5269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_CXX+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 if test -n "$CXX"; then
5279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 CXX=$ac_cv_prog_CXX
5299 if test -n "$CXX"; then
5300 { echo "$as_me:$LINENO: result: $CXX" >&5
5301 echo "${ECHO_T}$CXX" >&6; }
5302 else
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 test -n "$CXX" && break
5309 done
5311 if test -z "$CXX"; then
5312 ac_ct_CXX=$CXX
5313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5315 # Extract the first word of "$ac_prog", so it can be a program name with args.
5316 set dummy $ac_prog; ac_word=$2
5317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5319 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 if test -n "$ac_ct_CXX"; then
5323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_ac_ct_CXX="$ac_prog"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5338 IFS=$as_save_IFS
5342 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5343 if test -n "$ac_ct_CXX"; then
5344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5345 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5346 else
5347 { echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6; }
5352 test -n "$ac_ct_CXX" && break
5353 done
5355 if test "x$ac_ct_CXX" = x; then
5356 CXX="g++"
5357 else
5358 case $cross_compiling:$ac_tool_warned in
5359 yes:)
5360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5361 whose name does not start with the host triplet. If you think this
5362 configuration is useful to you, please write to autoconf@gnu.org." >&5
5363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5364 whose name does not start with the host triplet. If you think this
5365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 CXX=$ac_ct_CXX
5374 # Provide some information about the compiler.
5375 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5376 ac_compiler=`set X $ac_compile; echo $2`
5377 { (ac_try="$ac_compiler --version >&5"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_compiler --version >&5") 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }
5387 { (ac_try="$ac_compiler -v >&5"
5388 case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compiler -v >&5") 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 { (ac_try="$ac_compiler -V >&5"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compiler -V >&5") 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }
5408 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5409 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5410 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5421 main ()
5423 #ifndef __GNUC__
5424 choke me
5425 #endif
5428 return 0;
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_cxx_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 ac_compiler_gnu=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 ac_compiler_gnu=no
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5461 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5462 GXX=`test $ac_compiler_gnu = yes && echo yes`
5463 ac_test_CXXFLAGS=${CXXFLAGS+set}
5464 ac_save_CXXFLAGS=$CXXFLAGS
5465 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5466 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_cxx_g+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5471 ac_cxx_werror_flag=yes
5472 ac_cv_prog_cxx_g=no
5473 CXXFLAGS="-g"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5482 main ()
5486 return 0;
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_cxx_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 ac_cv_prog_cxx_g=yes
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 CXXFLAGS=""
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5520 main ()
5524 return 0;
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_cxx_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5550 CXXFLAGS="-g"
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5559 main ()
5563 return 0;
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_cxx_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_prog_cxx_g=yes
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5601 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5602 if test "$ac_test_CXXFLAGS" = set; then
5603 CXXFLAGS=$ac_save_CXXFLAGS
5604 elif test $ac_cv_prog_cxx_g = yes; then
5605 if test "$GXX" = yes; then
5606 CXXFLAGS="-g -O2"
5607 else
5608 CXXFLAGS="-g"
5610 else
5611 if test "$GXX" = yes; then
5612 CXXFLAGS="-O2"
5613 else
5614 CXXFLAGS=
5617 ac_ext=cpp
5618 ac_cpp='$CXXCPP $CPPFLAGS'
5619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5623 depcc="$CXX" am_compiler_list=
5625 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5626 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5627 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5631 # We make a subdir and do the tests there. Otherwise we can end up
5632 # making bogus files that we don't know about and never remove. For
5633 # instance it was reported that on HP-UX the gcc test will end up
5634 # making a dummy file named `D' -- because `-MD' means `put the output
5635 # in D'.
5636 mkdir conftest.dir
5637 # Copy depcomp to subdir because otherwise we won't find it if we're
5638 # using a relative directory.
5639 cp "$am_depcomp" conftest.dir
5640 cd conftest.dir
5641 # We will build objects and dependencies in a subdirectory because
5642 # it helps to detect inapplicable dependency modes. For instance
5643 # both Tru64's cc and ICC support -MD to output dependencies as a
5644 # side effect of compilation, but ICC will put the dependencies in
5645 # the current directory while Tru64 will put them in the object
5646 # directory.
5647 mkdir sub
5649 am_cv_CXX_dependencies_compiler_type=none
5650 if test "$am_compiler_list" = ""; then
5651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5653 for depmode in $am_compiler_list; do
5654 # Setup a source with many dependencies, because some compilers
5655 # like to wrap large dependency lists on column 80 (with \), and
5656 # we should not choose a depcomp mode which is confused by this.
5658 # We need to recreate these files for each test, as the compiler may
5659 # overwrite some of them when testing with obscure command lines.
5660 # This happens at least with the AIX C compiler.
5661 : > sub/conftest.c
5662 for i in 1 2 3 4 5 6; do
5663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5665 # Solaris 8's {/usr,}/bin/sh.
5666 touch sub/conftst$i.h
5667 done
5668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5670 case $depmode in
5671 nosideeffect)
5672 # after this tag, mechanisms are not by side-effect, so they'll
5673 # only be used when explicitly requested
5674 if test "x$enable_dependency_tracking" = xyes; then
5675 continue
5676 else
5677 break
5680 none) break ;;
5681 esac
5682 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5683 # mode. It turns out that the SunPro C++ compiler does not properly
5684 # handle `-M -o', and we need to detect this.
5685 if depmode=$depmode \
5686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5689 >/dev/null 2>conftest.err &&
5690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5692 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5694 # icc doesn't choke on unknown options, it will just issue warnings
5695 # or remarks (even with -Werror). So we grep stderr for any message
5696 # that says an option was ignored or not supported.
5697 # When given -MP, icc 7.0 and 7.1 complain thusly:
5698 # icc: Command line warning: ignoring option '-M'; no argument required
5699 # The diagnosis changed in icc 8.0:
5700 # icc: Command line remark: option '-MP' not supported
5701 if (grep 'ignoring option' conftest.err ||
5702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5703 am_cv_CXX_dependencies_compiler_type=$depmode
5704 break
5707 done
5709 cd ..
5710 rm -rf conftest.dir
5711 else
5712 am_cv_CXX_dependencies_compiler_type=none
5716 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5717 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5718 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5721 test "x$enable_dependency_tracking" != xno \
5722 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5723 am__fastdepCXX_TRUE=
5724 am__fastdepCXX_FALSE='#'
5725 else
5726 am__fastdepCXX_TRUE='#'
5727 am__fastdepCXX_FALSE=
5733 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5734 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5735 (test "X$CXX" != "Xg++"))) ; then
5736 ac_ext=cpp
5737 ac_cpp='$CXXCPP $CPPFLAGS'
5738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5741 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5742 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5743 if test -z "$CXXCPP"; then
5744 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747 # Double quotes because CXXCPP needs to be expanded
5748 for CXXCPP in "$CXX -E" "/lib/cpp"
5750 ac_preproc_ok=false
5751 for ac_cxx_preproc_warn_flag in '' yes
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #ifdef __STDC__
5766 # include <limits.h>
5767 #else
5768 # include <assert.h>
5769 #endif
5770 Syntax error
5771 _ACEOF
5772 if { (ac_try="$ac_cpp conftest.$ac_ext"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } >/dev/null && {
5785 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5786 test ! -s conftest.err
5787 }; then
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 # Broken: fails on valid input.
5794 continue
5797 rm -f conftest.err conftest.$ac_ext
5799 # OK, works on sane cases. Now check whether nonexistent headers
5800 # can be detected and how.
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <ac_nonexistent.h>
5808 _ACEOF
5809 if { (ac_try="$ac_cpp conftest.$ac_ext"
5810 case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } >/dev/null && {
5822 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5823 test ! -s conftest.err
5824 }; then
5825 # Broken: success on invalid input.
5826 continue
5827 else
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 # Passes both tests.
5832 ac_preproc_ok=:
5833 break
5836 rm -f conftest.err conftest.$ac_ext
5838 done
5839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5840 rm -f conftest.err conftest.$ac_ext
5841 if $ac_preproc_ok; then
5842 break
5845 done
5846 ac_cv_prog_CXXCPP=$CXXCPP
5849 CXXCPP=$ac_cv_prog_CXXCPP
5850 else
5851 ac_cv_prog_CXXCPP=$CXXCPP
5853 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5854 echo "${ECHO_T}$CXXCPP" >&6; }
5855 ac_preproc_ok=false
5856 for ac_cxx_preproc_warn_flag in '' yes
5858 # Use a header file that comes with gcc, so configuring glibc
5859 # with a fresh cross-compiler works.
5860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 # <limits.h> exists even on freestanding compilers.
5862 # On the NeXT, cc -E runs the code through the compiler's parser,
5863 # not just through cpp. "Syntax error" is here to catch this case.
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 #ifdef __STDC__
5871 # include <limits.h>
5872 #else
5873 # include <assert.h>
5874 #endif
5875 Syntax error
5876 _ACEOF
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null && {
5890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5891 test ! -s conftest.err
5892 }; then
5894 else
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 # Broken: fails on valid input.
5899 continue
5902 rm -f conftest.err conftest.$ac_ext
5904 # OK, works on sane cases. Now check whether nonexistent headers
5905 # can be detected and how.
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #include <ac_nonexistent.h>
5913 _ACEOF
5914 if { (ac_try="$ac_cpp conftest.$ac_ext"
5915 case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } >/dev/null && {
5927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5928 test ! -s conftest.err
5929 }; then
5930 # Broken: success on invalid input.
5931 continue
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 # Passes both tests.
5937 ac_preproc_ok=:
5938 break
5941 rm -f conftest.err conftest.$ac_ext
5943 done
5944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5945 rm -f conftest.err conftest.$ac_ext
5946 if $ac_preproc_ok; then
5948 else
5949 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5950 See \`config.log' for more details." >&5
5951 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5952 See \`config.log' for more details." >&2;}
5953 { (exit 1); exit 1; }; }
5956 ac_ext=cpp
5957 ac_cpp='$CXXCPP $CPPFLAGS'
5958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5965 ac_ext=f
5966 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5967 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5969 if test -n "$ac_tool_prefix"; then
5970 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
5972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5976 if test "${ac_cv_prog_F77+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 if test -n "$F77"; then
5980 ac_cv_prog_F77="$F77" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
5993 done
5994 done
5995 IFS=$as_save_IFS
5999 F77=$ac_cv_prog_F77
6000 if test -n "$F77"; then
6001 { echo "$as_me:$LINENO: result: $F77" >&5
6002 echo "${ECHO_T}$F77" >&6; }
6003 else
6004 { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6009 test -n "$F77" && break
6010 done
6012 if test -z "$F77"; then
6013 ac_ct_F77=$F77
6014 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
6016 # Extract the first word of "$ac_prog", so it can be a program name with args.
6017 set dummy $ac_prog; ac_word=$2
6018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6020 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 if test -n "$ac_ct_F77"; then
6024 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_ac_ct_F77="$ac_prog"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6037 done
6038 done
6039 IFS=$as_save_IFS
6043 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6044 if test -n "$ac_ct_F77"; then
6045 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6046 echo "${ECHO_T}$ac_ct_F77" >&6; }
6047 else
6048 { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6053 test -n "$ac_ct_F77" && break
6054 done
6056 if test "x$ac_ct_F77" = x; then
6057 F77=""
6058 else
6059 case $cross_compiling:$ac_tool_warned in
6060 yes:)
6061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6062 whose name does not start with the host triplet. If you think this
6063 configuration is useful to you, please write to autoconf@gnu.org." >&5
6064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6065 whose name does not start with the host triplet. If you think this
6066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069 F77=$ac_ct_F77
6074 # Provide some information about the compiler.
6075 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6076 ac_compiler=`set X $ac_compile; echo $2`
6077 { (ac_try="$ac_compiler --version >&5"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compiler --version >&5") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }
6087 { (ac_try="$ac_compiler -v >&5"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compiler -v >&5") 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }
6097 { (ac_try="$ac_compiler -V >&5"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_compiler -V >&5") 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }
6107 rm -f a.out
6109 # If we don't use `.F' as extension, the preprocessor is not run on the
6110 # input file. (Note that this only needs to work for GNU compilers.)
6111 ac_save_ext=$ac_ext
6112 ac_ext=F
6113 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6114 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6115 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 cat >conftest.$ac_ext <<_ACEOF
6119 program main
6120 #ifndef __GNUC__
6121 choke me
6122 #endif
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compile") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } && {
6140 test -z "$ac_f77_werror_flag" ||
6141 test ! -s conftest.err
6142 } && test -s conftest.$ac_objext; then
6143 ac_compiler_gnu=yes
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 ac_compiler_gnu=no
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6155 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6156 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6157 ac_ext=$ac_save_ext
6158 ac_test_FFLAGS=${FFLAGS+set}
6159 ac_save_FFLAGS=$FFLAGS
6160 FFLAGS=
6161 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6162 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6163 if test "${ac_cv_prog_f77_g+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 FFLAGS=-g
6167 cat >conftest.$ac_ext <<_ACEOF
6168 program main
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_f77_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_objext; then
6189 ac_cv_prog_f77_g=yes
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_cv_prog_f77_g=no
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6201 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6202 if test "$ac_test_FFLAGS" = set; then
6203 FFLAGS=$ac_save_FFLAGS
6204 elif test $ac_cv_prog_f77_g = yes; then
6205 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6206 FFLAGS="-g -O2"
6207 else
6208 FFLAGS="-g"
6210 else
6211 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6212 FFLAGS="-O2"
6213 else
6214 FFLAGS=
6218 G77=`test $ac_compiler_gnu = yes && echo yes`
6219 ac_ext=c
6220 ac_cpp='$CPP $CPPFLAGS'
6221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6229 # find the maximum length of command line arguments
6230 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6231 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6232 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6236 teststring="ABCD"
6238 case $build_os in
6239 msdosdjgpp*)
6240 # On DJGPP, this test can blow up pretty badly due to problems in libc
6241 # (any single argument exceeding 2000 bytes causes a buffer overrun
6242 # during glob expansion). Even if it were fixed, the result of this
6243 # check would be larger than it should be.
6244 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6247 gnu*)
6248 # Under GNU Hurd, this test is not required because there is
6249 # no limit to the length of command line arguments.
6250 # Libtool will interpret -1 as no limit whatsoever
6251 lt_cv_sys_max_cmd_len=-1;
6254 cygwin* | mingw*)
6255 # On Win9x/ME, this test blows up -- it succeeds, but takes
6256 # about 5 minutes as the teststring grows exponentially.
6257 # Worse, since 9x/ME are not pre-emptively multitasking,
6258 # you end up with a "frozen" computer, even though with patience
6259 # the test eventually succeeds (with a max line length of 256k).
6260 # Instead, let's just punt: use the minimum linelength reported by
6261 # all of the supported platforms: 8192 (on NT/2K/XP).
6262 lt_cv_sys_max_cmd_len=8192;
6265 amigaos*)
6266 # On AmigaOS with pdksh, this test takes hours, literally.
6267 # So we just punt and use a minimum line length of 8192.
6268 lt_cv_sys_max_cmd_len=8192;
6271 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6272 # This has been around since 386BSD, at least. Likely further.
6273 if test -x /sbin/sysctl; then
6274 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6275 elif test -x /usr/sbin/sysctl; then
6276 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6277 else
6278 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6280 # And add a safety zone
6281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6285 interix*)
6286 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6287 lt_cv_sys_max_cmd_len=196608
6290 osf*)
6291 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6292 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6293 # nice to cause kernel panics so lets avoid the loop below.
6294 # First set a reasonable default.
6295 lt_cv_sys_max_cmd_len=16384
6297 if test -x /sbin/sysconfig; then
6298 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6299 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6300 esac
6303 sco3.2v5*)
6304 lt_cv_sys_max_cmd_len=102400
6306 sysv5* | sco5v6* | sysv4.2uw2*)
6307 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6308 if test -n "$kargmax"; then
6309 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6310 else
6311 lt_cv_sys_max_cmd_len=32768
6315 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6316 if test -n "$lt_cv_sys_max_cmd_len"; then
6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6319 else
6320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6321 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6322 = "XX$teststring") >/dev/null 2>&1 &&
6323 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6324 lt_cv_sys_max_cmd_len=$new_result &&
6325 test $i != 17 # 1/2 MB should be enough
6327 i=`expr $i + 1`
6328 teststring=$teststring$teststring
6329 done
6330 teststring=
6331 # Add a significant safety factor because C++ compilers can tack on massive
6332 # amounts of additional arguments before passing them to the linker.
6333 # It appears as though 1/2 is a usable value.
6334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6337 esac
6341 if test -n $lt_cv_sys_max_cmd_len ; then
6342 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6343 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6344 else
6345 { echo "$as_me:$LINENO: result: none" >&5
6346 echo "${ECHO_T}none" >&6; }
6353 # Check for command to grab the raw symbol name followed by C symbol from nm.
6354 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6355 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6356 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6360 # These are sane defaults that work on at least a few old systems.
6361 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6363 # Character class describing NM global symbol codes.
6364 symcode='[BCDEGRST]'
6366 # Regexp to match symbols that can be accessed directly from C.
6367 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6369 # Transform an extracted symbol line into a proper C declaration
6370 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6372 # Transform an extracted symbol line into symbol name and symbol address
6373 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'"
6375 # Define system-specific variables.
6376 case $host_os in
6377 aix*)
6378 symcode='[BCDT]'
6380 cygwin* | mingw* | pw32*)
6381 symcode='[ABCDGISTW]'
6383 hpux*) # Its linker distinguishes data from code symbols
6384 if test "$host_cpu" = ia64; then
6385 symcode='[ABCDEGRST]'
6387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388 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'"
6390 linux* | k*bsd*-gnu)
6391 if test "$host_cpu" = ia64; then
6392 symcode='[ABCDGIRSTW]'
6393 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6394 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'"
6397 irix* | nonstopux*)
6398 symcode='[BCDEGRST]'
6400 osf*)
6401 symcode='[BCDEGQRST]'
6403 solaris*)
6404 symcode='[BDRT]'
6406 sco3.2v5*)
6407 symcode='[DT]'
6409 sysv4.2uw2*)
6410 symcode='[DT]'
6412 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6413 symcode='[ABDT]'
6415 sysv4)
6416 symcode='[DFNSTU]'
6418 esac
6420 # Handle CRLF in mingw tool chain
6421 opt_cr=
6422 case $build_os in
6423 mingw*)
6424 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6426 esac
6428 # If we're using GNU nm, then use its standard symbol codes.
6429 case `$NM -V 2>&1` in
6430 *GNU* | *'with BFD'*)
6431 symcode='[ABCDGIRSTW]' ;;
6432 esac
6434 # Try without a prefix undercore, then with it.
6435 for ac_symprfx in "" "_"; do
6437 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6438 symxfrm="\\1 $ac_symprfx\\2 \\2"
6440 # Write the raw and C identifiers.
6441 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6443 # Check to see that the pipe works correctly.
6444 pipe_works=no
6446 rm -f conftest*
6447 cat > conftest.$ac_ext <<EOF
6448 #ifdef __cplusplus
6449 extern "C" {
6450 #endif
6451 char nm_test_var;
6452 void nm_test_func(){}
6453 #ifdef __cplusplus
6455 #endif
6456 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; then
6464 # Now try to grab the symbols.
6465 nlist=conftest.nm
6466 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6467 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && test -s "$nlist"; then
6471 # Try sorting and uniquifying the output.
6472 if sort "$nlist" | uniq > "$nlist"T; then
6473 mv -f "$nlist"T "$nlist"
6474 else
6475 rm -f "$nlist"T
6478 # Make sure that we snagged all the symbols we need.
6479 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6480 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6481 cat <<EOF > conftest.$ac_ext
6482 #ifdef __cplusplus
6483 extern "C" {
6484 #endif
6487 # Now generate the symbol file.
6488 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6490 cat <<EOF >> conftest.$ac_ext
6491 #if defined (__STDC__) && __STDC__
6492 # define lt_ptr_t void *
6493 #else
6494 # define lt_ptr_t char *
6495 # define const
6496 #endif
6498 /* The mapping between symbol names and symbols. */
6499 const struct {
6500 const char *name;
6501 lt_ptr_t address;
6503 lt_preloaded_symbols[] =
6506 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6507 cat <<\EOF >> conftest.$ac_ext
6508 {0, (lt_ptr_t) 0}
6511 #ifdef __cplusplus
6513 #endif
6515 # Now try linking the two files.
6516 mv conftest.$ac_objext conftstm.$ac_objext
6517 lt_save_LIBS="$LIBS"
6518 lt_save_CFLAGS="$CFLAGS"
6519 LIBS="conftstm.$ac_objext"
6520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6526 pipe_works=yes
6528 LIBS="$lt_save_LIBS"
6529 CFLAGS="$lt_save_CFLAGS"
6530 else
6531 echo "cannot find nm_test_func in $nlist" >&5
6533 else
6534 echo "cannot find nm_test_var in $nlist" >&5
6536 else
6537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6539 else
6540 echo "$progname: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 rm -f conftest* conftst*
6545 # Do not use the global_symbol_pipe unless it works.
6546 if test "$pipe_works" = yes; then
6547 break
6548 else
6549 lt_cv_sys_global_symbol_pipe=
6551 done
6555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6556 lt_cv_sys_global_symbol_to_cdecl=
6558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6559 { echo "$as_me:$LINENO: result: failed" >&5
6560 echo "${ECHO_T}failed" >&6; }
6561 else
6562 { echo "$as_me:$LINENO: result: ok" >&5
6563 echo "${ECHO_T}ok" >&6; }
6566 { echo "$as_me:$LINENO: checking for objdir" >&5
6567 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6568 if test "${lt_cv_objdir+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 rm -f .libs 2>/dev/null
6572 mkdir .libs 2>/dev/null
6573 if test -d .libs; then
6574 lt_cv_objdir=.libs
6575 else
6576 # MS-DOS does not allow filenames that begin with a dot.
6577 lt_cv_objdir=_libs
6579 rmdir .libs 2>/dev/null
6581 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6582 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6583 objdir=$lt_cv_objdir
6589 case $host_os in
6590 aix3*)
6591 # AIX sometimes has problems with the GCC collect2 program. For some
6592 # reason, if we set the COLLECT_NAMES environment variable, the problems
6593 # vanish in a puff of smoke.
6594 if test "X${COLLECT_NAMES+set}" != Xset; then
6595 COLLECT_NAMES=
6596 export COLLECT_NAMES
6599 esac
6601 # Sed substitution that helps us do robust quoting. It backslashifies
6602 # metacharacters that are still active within double-quoted strings.
6603 Xsed='sed -e 1s/^X//'
6604 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6613 # Sed substitution to avoid accidental globbing in evaled expressions
6614 no_glob_subst='s/\*/\\\*/g'
6616 # Constants:
6617 rm="rm -f"
6619 # Global variables:
6620 default_ofile=libtool
6621 can_build_shared=yes
6623 # All known linkers require a `.a' archive for static linking (except MSVC,
6624 # which needs '.lib').
6625 libext=a
6626 ltmain="$ac_aux_dir/ltmain.sh"
6627 ofile="$default_ofile"
6628 with_gnu_ld="$lt_cv_prog_gnu_ld"
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}ar; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_AR+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 if test -n "$AR"; then
6639 ac_cv_prog_AR="$AR" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_AR="${ac_tool_prefix}ar"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 AR=$ac_cv_prog_AR
6659 if test -n "$AR"; then
6660 { echo "$as_me:$LINENO: result: $AR" >&5
6661 echo "${ECHO_T}$AR" >&6; }
6662 else
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6669 if test -z "$ac_cv_prog_AR"; then
6670 ac_ct_AR=$AR
6671 # Extract the first word of "ar", so it can be a program name with args.
6672 set dummy ar; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 if test -n "$ac_ct_AR"; then
6679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_AR="ar"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6692 done
6693 done
6694 IFS=$as_save_IFS
6698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6699 if test -n "$ac_ct_AR"; then
6700 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6701 echo "${ECHO_T}$ac_ct_AR" >&6; }
6702 else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6707 if test "x$ac_ct_AR" = x; then
6708 AR="false"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet. If you think this
6714 configuration is useful to you, please write to autoconf@gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet. If you think this
6717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720 AR=$ac_ct_AR
6722 else
6723 AR="$ac_cv_prog_AR"
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_RANLIB+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 if test -n "$RANLIB"; then
6735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6748 done
6749 done
6750 IFS=$as_save_IFS
6754 RANLIB=$ac_cv_prog_RANLIB
6755 if test -n "$RANLIB"; then
6756 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6757 echo "${ECHO_T}$RANLIB" >&6; }
6758 else
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6765 if test -z "$ac_cv_prog_RANLIB"; then
6766 ac_ct_RANLIB=$RANLIB
6767 # Extract the first word of "ranlib", so it can be a program name with args.
6768 set dummy ranlib; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 if test -n "$ac_ct_RANLIB"; then
6775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_RANLIB="ranlib"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6788 done
6789 done
6790 IFS=$as_save_IFS
6794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6795 if test -n "$ac_ct_RANLIB"; then
6796 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6798 else
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6803 if test "x$ac_ct_RANLIB" = x; then
6804 RANLIB=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet. If you think this
6810 configuration is useful to you, please write to autoconf@gnu.org." >&5
6811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6812 whose name does not start with the host triplet. If you think this
6813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816 RANLIB=$ac_ct_RANLIB
6818 else
6819 RANLIB="$ac_cv_prog_RANLIB"
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}strip; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_STRIP+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 if test -n "$STRIP"; then
6831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6844 done
6845 done
6846 IFS=$as_save_IFS
6850 STRIP=$ac_cv_prog_STRIP
6851 if test -n "$STRIP"; then
6852 { echo "$as_me:$LINENO: result: $STRIP" >&5
6853 echo "${ECHO_T}$STRIP" >&6; }
6854 else
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6861 if test -z "$ac_cv_prog_STRIP"; then
6862 ac_ct_STRIP=$STRIP
6863 # Extract the first word of "strip", so it can be a program name with args.
6864 set dummy strip; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 if test -n "$ac_ct_STRIP"; then
6871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_STRIP="strip"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6886 IFS=$as_save_IFS
6890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6891 if test -n "$ac_ct_STRIP"; then
6892 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6893 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6894 else
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6899 if test "x$ac_ct_STRIP" = x; then
6900 STRIP=":"
6901 else
6902 case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6905 whose name does not start with the host triplet. If you think this
6906 configuration is useful to you, please write to autoconf@gnu.org." >&5
6907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6908 whose name does not start with the host triplet. If you think this
6909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912 STRIP=$ac_ct_STRIP
6914 else
6915 STRIP="$ac_cv_prog_STRIP"
6919 old_CC="$CC"
6920 old_CFLAGS="$CFLAGS"
6922 # Set sane defaults for various variables
6923 test -z "$AR" && AR=ar
6924 test -z "$AR_FLAGS" && AR_FLAGS=cru
6925 test -z "$AS" && AS=as
6926 test -z "$CC" && CC=cc
6927 test -z "$LTCC" && LTCC=$CC
6928 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6929 test -z "$DLLTOOL" && DLLTOOL=dlltool
6930 test -z "$LD" && LD=ld
6931 test -z "$LN_S" && LN_S="ln -s"
6932 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6933 test -z "$NM" && NM=nm
6934 test -z "$SED" && SED=sed
6935 test -z "$OBJDUMP" && OBJDUMP=objdump
6936 test -z "$RANLIB" && RANLIB=:
6937 test -z "$STRIP" && STRIP=:
6938 test -z "$ac_objext" && ac_objext=o
6940 # Determine commands to create old-style static archives.
6941 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6942 old_postinstall_cmds='chmod 644 $oldlib'
6943 old_postuninstall_cmds=
6945 if test -n "$RANLIB"; then
6946 case $host_os in
6947 openbsd*)
6948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6953 esac
6954 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6957 for cc_temp in $compiler""; do
6958 case $cc_temp in
6959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6961 \-*) ;;
6962 *) break;;
6963 esac
6964 done
6965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6968 # Only perform the check for file, if the check method requires it
6969 case $deplibs_check_method in
6970 file_magic*)
6971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6972 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6973 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 case $MAGIC_CMD in
6978 [\\/*] | ?:[\\/]*)
6979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6982 lt_save_MAGIC_CMD="$MAGIC_CMD"
6983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6985 for ac_dir in $ac_dummy; do
6986 IFS="$lt_save_ifs"
6987 test -z "$ac_dir" && ac_dir=.
6988 if test -f $ac_dir/${ac_tool_prefix}file; then
6989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6990 if test -n "$file_magic_test_file"; then
6991 case $deplibs_check_method in
6992 "file_magic "*)
6993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6996 $EGREP "$file_magic_regex" > /dev/null; then
6998 else
6999 cat <<EOF 1>&2
7001 *** Warning: the command libtool uses to detect shared libraries,
7002 *** $file_magic_cmd, produces output that libtool cannot recognize.
7003 *** The result is that libtool may fail to recognize shared libraries
7004 *** as such. This will affect the creation of libtool libraries that
7005 *** depend on shared libraries, but programs linked with such libtool
7006 *** libraries will work regardless of this problem. Nevertheless, you
7007 *** may want to report the problem to your system manager and/or to
7008 *** bug-libtool@gnu.org
7011 fi ;;
7012 esac
7014 break
7016 done
7017 IFS="$lt_save_ifs"
7018 MAGIC_CMD="$lt_save_MAGIC_CMD"
7020 esac
7023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024 if test -n "$MAGIC_CMD"; then
7025 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7026 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7027 else
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7032 if test -z "$lt_cv_path_MAGIC_CMD"; then
7033 if test -n "$ac_tool_prefix"; then
7034 { echo "$as_me:$LINENO: checking for file" >&5
7035 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7036 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 case $MAGIC_CMD in
7040 [\\/*] | ?:[\\/]*)
7041 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7044 lt_save_MAGIC_CMD="$MAGIC_CMD"
7045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7047 for ac_dir in $ac_dummy; do
7048 IFS="$lt_save_ifs"
7049 test -z "$ac_dir" && ac_dir=.
7050 if test -f $ac_dir/file; then
7051 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7052 if test -n "$file_magic_test_file"; then
7053 case $deplibs_check_method in
7054 "file_magic "*)
7055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7058 $EGREP "$file_magic_regex" > /dev/null; then
7060 else
7061 cat <<EOF 1>&2
7063 *** Warning: the command libtool uses to detect shared libraries,
7064 *** $file_magic_cmd, produces output that libtool cannot recognize.
7065 *** The result is that libtool may fail to recognize shared libraries
7066 *** as such. This will affect the creation of libtool libraries that
7067 *** depend on shared libraries, but programs linked with such libtool
7068 *** libraries will work regardless of this problem. Nevertheless, you
7069 *** may want to report the problem to your system manager and/or to
7070 *** bug-libtool@gnu.org
7073 fi ;;
7074 esac
7076 break
7078 done
7079 IFS="$lt_save_ifs"
7080 MAGIC_CMD="$lt_save_MAGIC_CMD"
7082 esac
7085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7086 if test -n "$MAGIC_CMD"; then
7087 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7088 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7089 else
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7094 else
7095 MAGIC_CMD=:
7101 esac
7103 enable_dlopen=no
7104 enable_win32_dll=no
7106 # Check whether --enable-libtool-lock was given.
7107 if test "${enable_libtool_lock+set}" = set; then
7108 enableval=$enable_libtool_lock;
7111 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7114 # Check whether --with-pic was given.
7115 if test "${with_pic+set}" = set; then
7116 withval=$with_pic; pic_mode="$withval"
7117 else
7118 pic_mode=default
7121 test -z "$pic_mode" && pic_mode=default
7123 # Use C for the default configuration in the libtool script
7124 tagname=
7125 lt_save_CC="$CC"
7126 ac_ext=c
7127 ac_cpp='$CPP $CPPFLAGS'
7128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133 # Source file extension for C test sources.
7134 ac_ext=c
7136 # Object file extension for compiled C test sources.
7137 objext=o
7138 objext=$objext
7140 # Code to be used in simple compile tests
7141 lt_simple_compile_test_code="int some_variable = 0;"
7143 # Code to be used in simple link tests
7144 lt_simple_link_test_code='int main(){return(0);}'
7147 # If no C compiler was specified, use CC.
7148 LTCC=${LTCC-"$CC"}
7150 # If no C compiler flags were specified, use CFLAGS.
7151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7153 # Allow CC to be a program name with arguments.
7154 compiler=$CC
7157 # save warnings/boilerplate of simple test code
7158 ac_outfile=conftest.$ac_objext
7159 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7161 _lt_compiler_boilerplate=`cat conftest.err`
7162 $rm conftest*
7164 ac_outfile=conftest.$ac_objext
7165 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7167 _lt_linker_boilerplate=`cat conftest.err`
7168 $rm conftest*
7172 lt_prog_compiler_no_builtin_flag=
7174 if test "$GCC" = yes; then
7175 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7178 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7179 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7180 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 lt_cv_prog_compiler_rtti_exceptions=no
7184 ac_outfile=conftest.$ac_objext
7185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7186 lt_compiler_flag="-fno-rtti -fno-exceptions"
7187 # Insert the option either (1) after the last *FLAGS variable, or
7188 # (2) before a word containing "conftest.", or (3) at the end.
7189 # Note that $ac_compile itself does not contain backslashes and begins
7190 # with a dollar sign (not a hyphen), so the echo should work correctly.
7191 # The option is referenced via a variable to avoid confusing sed.
7192 lt_compile=`echo "$ac_compile" | $SED \
7193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7195 -e 's:$: $lt_compiler_flag:'`
7196 (eval echo "\"\$as_me:7196: $lt_compile\"" >&5)
7197 (eval "$lt_compile" 2>conftest.err)
7198 ac_status=$?
7199 cat conftest.err >&5
7200 echo "$as_me:7200: \$? = $ac_status" >&5
7201 if (exit $ac_status) && test -s "$ac_outfile"; then
7202 # The compiler can only warn and ignore the option if not recognized
7203 # So say no if there are warnings other than the usual output.
7204 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7207 lt_cv_prog_compiler_rtti_exceptions=yes
7210 $rm conftest*
7213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7214 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7216 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7218 else
7224 lt_prog_compiler_wl=
7225 lt_prog_compiler_pic=
7226 lt_prog_compiler_static=
7228 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7229 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7231 if test "$GCC" = yes; then
7232 lt_prog_compiler_wl='-Wl,'
7233 lt_prog_compiler_static='-static'
7235 case $host_os in
7236 aix*)
7237 # All AIX code is PIC.
7238 if test "$host_cpu" = ia64; then
7239 # AIX 5 now supports IA64 processor
7240 lt_prog_compiler_static='-Bstatic'
7244 amigaos*)
7245 # FIXME: we need at least 68020 code to build shared libraries, but
7246 # adding the `-m68020' flag to GCC prevents building anything better,
7247 # like `-m68040'.
7248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7251 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7252 # PIC is the default for these OSes.
7255 mingw* | cygwin* | pw32* | os2*)
7256 # This hack is so that the source file can tell whether it is being
7257 # built for inclusion in a dll (and should export symbols for example).
7258 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7259 # (--disable-auto-import) libraries
7260 lt_prog_compiler_pic='-DDLL_EXPORT'
7263 darwin* | rhapsody*)
7264 # PIC is the default on this platform
7265 # Common symbols not allowed in MH_DYLIB files
7266 lt_prog_compiler_pic='-fno-common'
7269 interix[3-9]*)
7270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7271 # Instead, we relocate shared libraries at runtime.
7274 msdosdjgpp*)
7275 # Just because we use GCC doesn't mean we suddenly get shared libraries
7276 # on systems that don't support them.
7277 lt_prog_compiler_can_build_shared=no
7278 enable_shared=no
7281 sysv4*MP*)
7282 if test -d /usr/nec; then
7283 lt_prog_compiler_pic=-Kconform_pic
7287 hpux*)
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7289 # not for PA HP-UX.
7290 case $host_cpu in
7291 hppa*64*|ia64*)
7292 # +Z the default
7295 lt_prog_compiler_pic='-fPIC'
7297 esac
7301 lt_prog_compiler_pic='-fPIC'
7303 esac
7304 else
7305 # PORTME Check for flag to pass linker flags through the system compiler.
7306 case $host_os in
7307 aix*)
7308 lt_prog_compiler_wl='-Wl,'
7309 if test "$host_cpu" = ia64; then
7310 # AIX 5 now supports IA64 processor
7311 lt_prog_compiler_static='-Bstatic'
7312 else
7313 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7316 darwin*)
7317 # PIC is the default on this platform
7318 # Common symbols not allowed in MH_DYLIB files
7319 case $cc_basename in
7320 xlc*)
7321 lt_prog_compiler_pic='-qnocommon'
7322 lt_prog_compiler_wl='-Wl,'
7324 esac
7327 mingw* | cygwin* | pw32* | os2*)
7328 # This hack is so that the source file can tell whether it is being
7329 # built for inclusion in a dll (and should export symbols for example).
7330 lt_prog_compiler_pic='-DDLL_EXPORT'
7333 hpux9* | hpux10* | hpux11*)
7334 lt_prog_compiler_wl='-Wl,'
7335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7336 # not for PA HP-UX.
7337 case $host_cpu in
7338 hppa*64*|ia64*)
7339 # +Z the default
7342 lt_prog_compiler_pic='+Z'
7344 esac
7345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7346 lt_prog_compiler_static='${wl}-a ${wl}archive'
7349 irix5* | irix6* | nonstopux*)
7350 lt_prog_compiler_wl='-Wl,'
7351 # PIC (with -KPIC) is the default.
7352 lt_prog_compiler_static='-non_shared'
7355 newsos6)
7356 lt_prog_compiler_pic='-KPIC'
7357 lt_prog_compiler_static='-Bstatic'
7360 linux* | k*bsd*-gnu)
7361 case $cc_basename in
7362 icc* | ecc*)
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_pic='-KPIC'
7365 lt_prog_compiler_static='-static'
7367 pgcc* | pgf77* | pgf90* | pgf95*)
7368 # Portland Group compilers (*not* the Pentium gcc compiler,
7369 # which looks to be a dead project)
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_pic='-fpic'
7372 lt_prog_compiler_static='-Bstatic'
7374 ccc*)
7375 lt_prog_compiler_wl='-Wl,'
7376 # All Alpha code is PIC.
7377 lt_prog_compiler_static='-non_shared'
7380 case `$CC -V 2>&1 | sed 5q` in
7381 *Sun\ C*)
7382 # Sun C 5.9
7383 lt_prog_compiler_pic='-KPIC'
7384 lt_prog_compiler_static='-Bstatic'
7385 lt_prog_compiler_wl='-Wl,'
7387 *Sun\ F*)
7388 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7389 lt_prog_compiler_pic='-KPIC'
7390 lt_prog_compiler_static='-Bstatic'
7391 lt_prog_compiler_wl=''
7393 esac
7395 esac
7398 osf3* | osf4* | osf5*)
7399 lt_prog_compiler_wl='-Wl,'
7400 # All OSF/1 code is PIC.
7401 lt_prog_compiler_static='-non_shared'
7404 rdos*)
7405 lt_prog_compiler_static='-non_shared'
7408 solaris*)
7409 lt_prog_compiler_pic='-KPIC'
7410 lt_prog_compiler_static='-Bstatic'
7411 case $cc_basename in
7412 f77* | f90* | f95*)
7413 lt_prog_compiler_wl='-Qoption ld ';;
7415 lt_prog_compiler_wl='-Wl,';;
7416 esac
7419 sunos4*)
7420 lt_prog_compiler_wl='-Qoption ld '
7421 lt_prog_compiler_pic='-PIC'
7422 lt_prog_compiler_static='-Bstatic'
7425 sysv4 | sysv4.2uw2* | sysv4.3*)
7426 lt_prog_compiler_wl='-Wl,'
7427 lt_prog_compiler_pic='-KPIC'
7428 lt_prog_compiler_static='-Bstatic'
7431 sysv4*MP*)
7432 if test -d /usr/nec ;then
7433 lt_prog_compiler_pic='-Kconform_pic'
7434 lt_prog_compiler_static='-Bstatic'
7438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7439 lt_prog_compiler_wl='-Wl,'
7440 lt_prog_compiler_pic='-KPIC'
7441 lt_prog_compiler_static='-Bstatic'
7444 unicos*)
7445 lt_prog_compiler_wl='-Wl,'
7446 lt_prog_compiler_can_build_shared=no
7449 uts4*)
7450 lt_prog_compiler_pic='-pic'
7451 lt_prog_compiler_static='-Bstatic'
7455 lt_prog_compiler_can_build_shared=no
7457 esac
7460 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7461 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7464 # Check to make sure the PIC flag actually works.
7466 if test -n "$lt_prog_compiler_pic"; then
7468 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7469 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7470 if test "${lt_prog_compiler_pic_works+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473 lt_prog_compiler_pic_works=no
7474 ac_outfile=conftest.$ac_objext
7475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7477 # Insert the option either (1) after the last *FLAGS variable, or
7478 # (2) before a word containing "conftest.", or (3) at the end.
7479 # Note that $ac_compile itself does not contain backslashes and begins
7480 # with a dollar sign (not a hyphen), so the echo should work correctly.
7481 # The option is referenced via a variable to avoid confusing sed.
7482 lt_compile=`echo "$ac_compile" | $SED \
7483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7485 -e 's:$: $lt_compiler_flag:'`
7486 (eval echo "\"\$as_me:7486: $lt_compile\"" >&5)
7487 (eval "$lt_compile" 2>conftest.err)
7488 ac_status=$?
7489 cat conftest.err >&5
7490 echo "$as_me:7490: \$? = $ac_status" >&5
7491 if (exit $ac_status) && test -s "$ac_outfile"; then
7492 # The compiler can only warn and ignore the option if not recognized
7493 # So say no if there are warnings other than the usual output.
7494 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7497 lt_prog_compiler_pic_works=yes
7500 $rm conftest*
7503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7504 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7506 if test x"$lt_prog_compiler_pic_works" = xyes; then
7507 case $lt_prog_compiler_pic in
7508 "" | " "*) ;;
7509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7510 esac
7511 else
7512 lt_prog_compiler_pic=
7513 lt_prog_compiler_can_build_shared=no
7517 case $host_os in
7518 # For platforms which do not support PIC, -DPIC is meaningless:
7519 *djgpp*)
7520 lt_prog_compiler_pic=
7523 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7525 esac
7528 # Check to make sure the static flag actually works.
7530 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7531 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7532 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7533 if test "${lt_prog_compiler_static_works+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 lt_prog_compiler_static_works=no
7537 save_LDFLAGS="$LDFLAGS"
7538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7539 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7541 # The linker can only warn and ignore the option if not recognized
7542 # So say no if there are warnings
7543 if test -s conftest.err; then
7544 # Append any errors to the config.log.
7545 cat conftest.err 1>&5
7546 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7548 if diff conftest.exp conftest.er2 >/dev/null; then
7549 lt_prog_compiler_static_works=yes
7551 else
7552 lt_prog_compiler_static_works=yes
7555 $rm conftest*
7556 LDFLAGS="$save_LDFLAGS"
7559 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7560 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7562 if test x"$lt_prog_compiler_static_works" = xyes; then
7564 else
7565 lt_prog_compiler_static=
7569 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7570 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 lt_cv_prog_compiler_c_o=no
7575 $rm -r conftest 2>/dev/null
7576 mkdir conftest
7577 cd conftest
7578 mkdir out
7579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7581 lt_compiler_flag="-o out/conftest2.$ac_objext"
7582 # Insert the option either (1) after the last *FLAGS variable, or
7583 # (2) before a word containing "conftest.", or (3) at the end.
7584 # Note that $ac_compile itself does not contain backslashes and begins
7585 # with a dollar sign (not a hyphen), so the echo should work correctly.
7586 lt_compile=`echo "$ac_compile" | $SED \
7587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7589 -e 's:$: $lt_compiler_flag:'`
7590 (eval echo "\"\$as_me:7590: $lt_compile\"" >&5)
7591 (eval "$lt_compile" 2>out/conftest.err)
7592 ac_status=$?
7593 cat out/conftest.err >&5
7594 echo "$as_me:7594: \$? = $ac_status" >&5
7595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7596 then
7597 # The compiler can only warn and ignore the option if not recognized
7598 # So say no if there are warnings
7599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7602 lt_cv_prog_compiler_c_o=yes
7605 chmod u+w . 2>&5
7606 $rm conftest*
7607 # SGI C++ compiler will create directory out/ii_files/ for
7608 # template instantiation
7609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7610 $rm out/* && rmdir out
7611 cd ..
7612 rmdir conftest
7613 $rm conftest*
7616 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7617 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7620 hard_links="nottested"
7621 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7622 # do not overwrite the value of need_locks provided by the user
7623 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7624 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7625 hard_links=yes
7626 $rm conftest*
7627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7628 touch conftest.a
7629 ln conftest.a conftest.b 2>&5 || hard_links=no
7630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7631 { echo "$as_me:$LINENO: result: $hard_links" >&5
7632 echo "${ECHO_T}$hard_links" >&6; }
7633 if test "$hard_links" = no; then
7634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7635 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7636 need_locks=warn
7638 else
7639 need_locks=no
7642 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7643 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7645 runpath_var=
7646 allow_undefined_flag=
7647 enable_shared_with_static_runtimes=no
7648 archive_cmds=
7649 archive_expsym_cmds=
7650 old_archive_From_new_cmds=
7651 old_archive_from_expsyms_cmds=
7652 export_dynamic_flag_spec=
7653 whole_archive_flag_spec=
7654 thread_safe_flag_spec=
7655 hardcode_libdir_flag_spec=
7656 hardcode_libdir_flag_spec_ld=
7657 hardcode_libdir_separator=
7658 hardcode_direct=no
7659 hardcode_minus_L=no
7660 hardcode_shlibpath_var=unsupported
7661 link_all_deplibs=unknown
7662 hardcode_automatic=no
7663 module_cmds=
7664 module_expsym_cmds=
7665 always_export_symbols=no
7666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7667 # include_expsyms should be a list of space-separated symbols to be *always*
7668 # included in the symbol list
7669 include_expsyms=
7670 # exclude_expsyms can be an extended regexp of symbols to exclude
7671 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7672 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7673 # as well as any symbol that contains `d'.
7674 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7675 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7676 # platforms (ab)use it in PIC code, but their linkers get confused if
7677 # the symbol is explicitly referenced. Since portable code cannot
7678 # rely on this symbol name, it's probably fine to never include it in
7679 # preloaded symbol tables.
7680 extract_expsyms_cmds=
7681 # Just being paranoid about ensuring that cc_basename is set.
7682 for cc_temp in $compiler""; do
7683 case $cc_temp in
7684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7686 \-*) ;;
7687 *) break;;
7688 esac
7689 done
7690 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7692 case $host_os in
7693 cygwin* | mingw* | pw32*)
7694 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7695 # When not using gcc, we currently assume that we are using
7696 # Microsoft Visual C++.
7697 if test "$GCC" != yes; then
7698 with_gnu_ld=no
7701 interix*)
7702 # we just hope/assume this is gcc and not c89 (= MSVC++)
7703 with_gnu_ld=yes
7705 openbsd*)
7706 with_gnu_ld=no
7708 esac
7710 ld_shlibs=yes
7711 if test "$with_gnu_ld" = yes; then
7712 # If archive_cmds runs LD, not CC, wlarc should be empty
7713 wlarc='${wl}'
7715 # Set some defaults for GNU ld with shared library support. These
7716 # are reset later if shared libraries are not supported. Putting them
7717 # here allows them to be overridden if necessary.
7718 runpath_var=LD_RUN_PATH
7719 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7720 export_dynamic_flag_spec='${wl}--export-dynamic'
7721 # ancient GNU ld didn't support --whole-archive et. al.
7722 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7724 else
7725 whole_archive_flag_spec=
7727 supports_anon_versioning=no
7728 case `$LD -v 2>/dev/null` in
7729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7732 *\ 2.11.*) ;; # other 2.11 versions
7733 *) supports_anon_versioning=yes ;;
7734 esac
7736 # See if GNU ld supports shared libraries.
7737 case $host_os in
7738 aix3* | aix4* | aix5*)
7739 # On AIX/PPC, the GNU linker is very broken
7740 if test "$host_cpu" != ia64; then
7741 ld_shlibs=no
7742 cat <<EOF 1>&2
7744 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7745 *** to be unable to reliably create shared libraries on AIX.
7746 *** Therefore, libtool is disabling shared libraries support. If you
7747 *** really care for shared libraries, you may want to modify your PATH
7748 *** so that a non-GNU linker is found, and then restart.
7754 amigaos*)
7755 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)'
7756 hardcode_libdir_flag_spec='-L$libdir'
7757 hardcode_minus_L=yes
7759 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7760 # that the semantics of dynamic libraries on AmigaOS, at least up
7761 # to version 4, is to share data among multiple programs linked
7762 # with the same dynamic library. Since this doesn't match the
7763 # behavior of shared libraries on other platforms, we can't use
7764 # them.
7765 ld_shlibs=no
7768 beos*)
7769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770 allow_undefined_flag=unsupported
7771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7772 # support --undefined. This deserves some investigation. FIXME
7773 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7774 else
7775 ld_shlibs=no
7779 cygwin* | mingw* | pw32*)
7780 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7781 # as there is no search path for DLLs.
7782 hardcode_libdir_flag_spec='-L$libdir'
7783 allow_undefined_flag=unsupported
7784 always_export_symbols=no
7785 enable_shared_with_static_runtimes=yes
7786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7788 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7790 # If the export-symbols file already is a .def file (1st line
7791 # is EXPORTS), use it as is; otherwise, prepend...
7792 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7793 cp $export_symbols $output_objdir/$soname.def;
7794 else
7795 echo EXPORTS > $output_objdir/$soname.def;
7796 cat $export_symbols >> $output_objdir/$soname.def;
7798 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7799 else
7800 ld_shlibs=no
7804 interix[3-9]*)
7805 hardcode_direct=no
7806 hardcode_shlibpath_var=no
7807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7808 export_dynamic_flag_spec='${wl}-E'
7809 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7810 # Instead, shared libraries are loaded at an image base (0x10000000 by
7811 # default) and relocated if they conflict, which is a slow very memory
7812 # consuming and fragmenting process. To avoid this, we pick a random,
7813 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7814 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7816 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'
7819 gnu* | linux* | k*bsd*-gnu)
7820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7821 tmp_addflag=
7822 case $cc_basename,$host_cpu in
7823 pgcc*) # Portland Group C compiler
7824 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'
7825 tmp_addflag=' $pic_flag'
7827 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7828 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'
7829 tmp_addflag=' $pic_flag -Mnomain' ;;
7830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7831 tmp_addflag=' -i_dynamic' ;;
7832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7833 tmp_addflag=' -i_dynamic -nofor_main' ;;
7834 ifc* | ifort*) # Intel Fortran compiler
7835 tmp_addflag=' -nofor_main' ;;
7836 esac
7837 case `$CC -V 2>&1 | sed 5q` in
7838 *Sun\ C*) # Sun C 5.9
7839 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7840 tmp_sharedflag='-G' ;;
7841 *Sun\ F*) # Sun Fortran 8.3
7842 tmp_sharedflag='-G' ;;
7844 tmp_sharedflag='-shared' ;;
7845 esac
7846 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7848 if test $supports_anon_versioning = yes; then
7849 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7851 $echo "local: *; };" >> $output_objdir/$libname.ver~
7852 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7854 else
7855 ld_shlibs=no
7859 netbsd*)
7860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7861 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7862 wlarc=
7863 else
7864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7869 solaris*)
7870 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7871 ld_shlibs=no
7872 cat <<EOF 1>&2
7874 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7875 *** create shared libraries on Solaris systems. Therefore, libtool
7876 *** is disabling shared libraries support. We urge you to upgrade GNU
7877 *** binutils to release 2.9.1 or newer. Another option is to modify
7878 *** your PATH or compiler configuration so that the native linker is
7879 *** used, and then restart.
7882 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7885 else
7886 ld_shlibs=no
7890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7891 case `$LD -v 2>&1` in
7892 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7893 ld_shlibs=no
7894 cat <<_LT_EOF 1>&2
7896 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7897 *** reliably create shared libraries on SCO systems. Therefore, libtool
7898 *** is disabling shared libraries support. We urge you to upgrade GNU
7899 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7900 *** your PATH or compiler configuration so that the native linker is
7901 *** used, and then restart.
7903 _LT_EOF
7906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7907 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7910 else
7911 ld_shlibs=no
7914 esac
7917 sunos4*)
7918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7919 wlarc=
7920 hardcode_direct=yes
7921 hardcode_shlibpath_var=no
7925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7928 else
7929 ld_shlibs=no
7932 esac
7934 if test "$ld_shlibs" = no; then
7935 runpath_var=
7936 hardcode_libdir_flag_spec=
7937 export_dynamic_flag_spec=
7938 whole_archive_flag_spec=
7940 else
7941 # PORTME fill in a description of your system's linker (not GNU ld)
7942 case $host_os in
7943 aix3*)
7944 allow_undefined_flag=unsupported
7945 always_export_symbols=yes
7946 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'
7947 # Note: this linker hardcodes the directories in LIBPATH if there
7948 # are no directories specified by -L.
7949 hardcode_minus_L=yes
7950 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7951 # Neither direct hardcoding nor static linking is supported with a
7952 # broken collect2.
7953 hardcode_direct=unsupported
7957 aix4* | aix5*)
7958 if test "$host_cpu" = ia64; then
7959 # On IA64, the linker does run time linking by default, so we don't
7960 # have to do anything special.
7961 aix_use_runtimelinking=no
7962 exp_sym_flag='-Bexport'
7963 no_entry_flag=""
7964 else
7965 # If we're using GNU nm, then we don't want the "-C" option.
7966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7967 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7968 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'
7969 else
7970 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'
7972 aix_use_runtimelinking=no
7974 # Test if we are trying to use run time linking or normal
7975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7976 # need to do runtime linking.
7977 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7978 for ld_flag in $LDFLAGS; do
7979 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7980 aix_use_runtimelinking=yes
7981 break
7983 done
7985 esac
7987 exp_sym_flag='-bexport'
7988 no_entry_flag='-bnoentry'
7991 # When large executables or shared objects are built, AIX ld can
7992 # have problems creating the table of contents. If linking a library
7993 # or program results in "error TOC overflow" add -mminimal-toc to
7994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7997 archive_cmds=''
7998 hardcode_direct=yes
7999 hardcode_libdir_separator=':'
8000 link_all_deplibs=yes
8002 if test "$GCC" = yes; then
8003 case $host_os in aix4.[012]|aix4.[012].*)
8004 # We only want to do this on AIX 4.2 and lower, the check
8005 # below for broken collect2 doesn't work under 4.3+
8006 collect2name=`${CC} -print-prog-name=collect2`
8007 if test -f "$collect2name" && \
8008 strings "$collect2name" | grep resolve_lib_name >/dev/null
8009 then
8010 # We have reworked collect2
8012 else
8013 # We have old collect2
8014 hardcode_direct=unsupported
8015 # It fails to find uninstalled libraries when the uninstalled
8016 # path is not listed in the libpath. Setting hardcode_minus_L
8017 # to unsupported forces relinking
8018 hardcode_minus_L=yes
8019 hardcode_libdir_flag_spec='-L$libdir'
8020 hardcode_libdir_separator=
8023 esac
8024 shared_flag='-shared'
8025 if test "$aix_use_runtimelinking" = yes; then
8026 shared_flag="$shared_flag "'${wl}-G'
8028 else
8029 # not using gcc
8030 if test "$host_cpu" = ia64; then
8031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8032 # chokes on -Wl,-G. The following line is correct:
8033 shared_flag='-G'
8034 else
8035 if test "$aix_use_runtimelinking" = yes; then
8036 shared_flag='${wl}-G'
8037 else
8038 shared_flag='${wl}-bM:SRE'
8043 # It seems that -bexpall does not export symbols beginning with
8044 # underscore (_), so it is better to generate a list of symbols to export.
8045 always_export_symbols=yes
8046 if test "$aix_use_runtimelinking" = yes; then
8047 # Warning - without using the other runtime loading flags (-brtl),
8048 # -berok will link without error, but may produce a broken library.
8049 allow_undefined_flag='-berok'
8050 # Determine the default libpath from the value encoded in an empty executable.
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8059 main ()
8063 return 0;
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (ac_try="$ac_link"
8068 case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_link") 2>conftest.er1
8074 ac_status=$?
8075 grep -v '^ *+' conftest.er1 >conftest.err
8076 rm -f conftest.er1
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && {
8080 test -z "$ac_c_werror_flag" ||
8081 test ! -s conftest.err
8082 } && test -s conftest$ac_exeext &&
8083 $as_test_x conftest$ac_exeext; then
8085 lt_aix_libpath_sed='
8086 /Import File Strings/,/^$/ {
8087 /^0/ {
8088 s/^0 *\(.*\)$/\1/
8092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8093 # Check for a 64-bit object if we didn't find anything.
8094 if test -z "$aix_libpath"; then
8095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
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 lt_aix_libpath_sed='
8152 /Import File Strings/,/^$/ {
8153 /^0/ {
8154 s/^0 *\(.*\)$/\1/
8158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8159 # Check for a 64-bit object if we didn't find anything.
8160 if test -z "$aix_libpath"; then
8161 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8171 conftest$ac_exeext conftest.$ac_ext
8172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8174 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8175 # Warning - without using the other run time loading flags,
8176 # -berok will link without error, but may produce a broken library.
8177 no_undefined_flag=' ${wl}-bernotok'
8178 allow_undefined_flag=' ${wl}-berok'
8179 # Exported symbols can be pulled into shared objects from archives
8180 whole_archive_flag_spec='$convenience'
8181 archive_cmds_need_lc=yes
8182 # This is similar to how AIX traditionally builds its shared libraries.
8183 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'
8188 amigaos*)
8189 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)'
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_minus_L=yes
8192 # see comment about different semantics on the GNU ld section
8193 ld_shlibs=no
8196 bsdi[45]*)
8197 export_dynamic_flag_spec=-rdynamic
8200 cygwin* | mingw* | pw32*)
8201 # When not using gcc, we currently assume that we are using
8202 # Microsoft Visual C++.
8203 # hardcode_libdir_flag_spec is actually meaningless, as there is
8204 # no search path for DLLs.
8205 hardcode_libdir_flag_spec=' '
8206 allow_undefined_flag=unsupported
8207 # Tell ltmain to make .lib files, not .a files.
8208 libext=lib
8209 # Tell ltmain to make .dll files, not .so files.
8210 shrext_cmds=".dll"
8211 # FIXME: Setting linknames here is a bad hack.
8212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8213 # The linker will automatically build a .lib file if we build a DLL.
8214 old_archive_From_new_cmds='true'
8215 # FIXME: Should let the user specify the lib program.
8216 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8217 fix_srcfile_path='`cygpath -w "$srcfile"`'
8218 enable_shared_with_static_runtimes=yes
8221 darwin* | rhapsody*)
8222 case $host_os in
8223 rhapsody* | darwin1.[012])
8224 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8226 *) # Darwin 1.3 on
8227 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8228 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8229 else
8230 case ${MACOSX_DEPLOYMENT_TARGET} in
8231 10.[012])
8232 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8234 10.*)
8235 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8237 esac
8240 esac
8241 archive_cmds_need_lc=no
8242 hardcode_direct=no
8243 hardcode_automatic=yes
8244 hardcode_shlibpath_var=unsupported
8245 whole_archive_flag_spec=''
8246 link_all_deplibs=yes
8247 if test "$GCC" = yes ; then
8248 output_verbose_link_cmd='echo'
8249 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8250 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8252 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}'
8253 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}'
8254 else
8255 case $cc_basename in
8256 xlc*)
8257 output_verbose_link_cmd='echo'
8258 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8259 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8261 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8262 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}'
8265 ld_shlibs=no
8267 esac
8271 dgux*)
8272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 hardcode_shlibpath_var=no
8277 freebsd1*)
8278 ld_shlibs=no
8281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8282 # support. Future versions do this automatically, but an explicit c++rt0.o
8283 # does not break anything, and helps significantly (at the cost of a little
8284 # extra space).
8285 freebsd2.2*)
8286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8287 hardcode_libdir_flag_spec='-R$libdir'
8288 hardcode_direct=yes
8289 hardcode_shlibpath_var=no
8292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8293 freebsd2*)
8294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8295 hardcode_direct=yes
8296 hardcode_minus_L=yes
8297 hardcode_shlibpath_var=no
8300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8301 freebsd* | dragonfly*)
8302 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8303 hardcode_libdir_flag_spec='-R$libdir'
8304 hardcode_direct=yes
8305 hardcode_shlibpath_var=no
8308 hpux9*)
8309 if test "$GCC" = yes; then
8310 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'
8311 else
8312 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'
8314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8315 hardcode_libdir_separator=:
8316 hardcode_direct=yes
8318 # hardcode_minus_L: Not really in the search PATH,
8319 # but as the default location of the library.
8320 hardcode_minus_L=yes
8321 export_dynamic_flag_spec='${wl}-E'
8324 hpux10*)
8325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8326 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8327 else
8328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8330 if test "$with_gnu_ld" = no; then
8331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8332 hardcode_libdir_separator=:
8334 hardcode_direct=yes
8335 export_dynamic_flag_spec='${wl}-E'
8337 # hardcode_minus_L: Not really in the search PATH,
8338 # but as the default location of the library.
8339 hardcode_minus_L=yes
8343 hpux11*)
8344 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8345 case $host_cpu in
8346 hppa*64*)
8347 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8349 ia64*)
8350 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8355 esac
8356 else
8357 case $host_cpu in
8358 hppa*64*)
8359 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8361 ia64*)
8362 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8367 esac
8369 if test "$with_gnu_ld" = no; then
8370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8371 hardcode_libdir_separator=:
8373 case $host_cpu in
8374 hppa*64*|ia64*)
8375 hardcode_libdir_flag_spec_ld='+b $libdir'
8376 hardcode_direct=no
8377 hardcode_shlibpath_var=no
8380 hardcode_direct=yes
8381 export_dynamic_flag_spec='${wl}-E'
8383 # hardcode_minus_L: Not really in the search PATH,
8384 # but as the default location of the library.
8385 hardcode_minus_L=yes
8387 esac
8391 irix5* | irix6* | nonstopux*)
8392 if test "$GCC" = yes; then
8393 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'
8394 else
8395 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'
8396 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8399 hardcode_libdir_separator=:
8400 link_all_deplibs=yes
8403 netbsd*)
8404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8406 else
8407 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8409 hardcode_libdir_flag_spec='-R$libdir'
8410 hardcode_direct=yes
8411 hardcode_shlibpath_var=no
8414 newsos6)
8415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416 hardcode_direct=yes
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 hardcode_libdir_separator=:
8419 hardcode_shlibpath_var=no
8422 openbsd*)
8423 if test -f /usr/libexec/ld.so; then
8424 hardcode_direct=yes
8425 hardcode_shlibpath_var=no
8426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8428 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8430 export_dynamic_flag_spec='${wl}-E'
8431 else
8432 case $host_os in
8433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8435 hardcode_libdir_flag_spec='-R$libdir'
8438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8441 esac
8443 else
8444 ld_shlibs=no
8448 os2*)
8449 hardcode_libdir_flag_spec='-L$libdir'
8450 hardcode_minus_L=yes
8451 allow_undefined_flag=unsupported
8452 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'
8453 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8456 osf3*)
8457 if test "$GCC" = yes; then
8458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8459 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'
8460 else
8461 allow_undefined_flag=' -expect_unresolved \*'
8462 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'
8464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8465 hardcode_libdir_separator=:
8468 osf4* | osf5*) # as osf3* with the addition of -msym flag
8469 if test "$GCC" = yes; then
8470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8471 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'
8472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8473 else
8474 allow_undefined_flag=' -expect_unresolved \*'
8475 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'
8476 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8477 $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'
8479 # Both c and cxx compiler support -rpath directly
8480 hardcode_libdir_flag_spec='-rpath $libdir'
8482 hardcode_libdir_separator=:
8485 solaris*)
8486 no_undefined_flag=' -z text'
8487 if test "$GCC" = yes; then
8488 wlarc='${wl}'
8489 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8491 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8492 else
8493 wlarc=''
8494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8498 hardcode_libdir_flag_spec='-R$libdir'
8499 hardcode_shlibpath_var=no
8500 case $host_os in
8501 solaris2.[0-5] | solaris2.[0-5].*) ;;
8503 # The compiler driver will combine and reorder linker options,
8504 # but understands `-z linker_flag'. GCC discards it without `$wl',
8505 # but is careful enough not to reorder.
8506 # Supported since Solaris 2.6 (maybe 2.5.1?)
8507 if test "$GCC" = yes; then
8508 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8509 else
8510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8513 esac
8514 link_all_deplibs=yes
8517 sunos4*)
8518 if test "x$host_vendor" = xsequent; then
8519 # Use $CC to link under sequent, because it throws in some extra .o
8520 # files that make .init and .fini sections work.
8521 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8522 else
8523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_libdir_flag_spec='-L$libdir'
8526 hardcode_direct=yes
8527 hardcode_minus_L=yes
8528 hardcode_shlibpath_var=no
8531 sysv4)
8532 case $host_vendor in
8533 sni)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_direct=yes # is this really true???
8537 siemens)
8538 ## LD is ld it makes a PLAMLIB
8539 ## CC just makes a GrossModule.
8540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8541 reload_cmds='$CC -r -o $output$reload_objs'
8542 hardcode_direct=no
8544 motorola)
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8548 esac
8549 runpath_var='LD_RUN_PATH'
8550 hardcode_shlibpath_var=no
8553 sysv4.3*)
8554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555 hardcode_shlibpath_var=no
8556 export_dynamic_flag_spec='-Bexport'
8559 sysv4*MP*)
8560 if test -d /usr/nec; then
8561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_shlibpath_var=no
8563 runpath_var=LD_RUN_PATH
8564 hardcode_runpath_var=yes
8565 ld_shlibs=yes
8569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8570 no_undefined_flag='${wl}-z,text'
8571 archive_cmds_need_lc=no
8572 hardcode_shlibpath_var=no
8573 runpath_var='LD_RUN_PATH'
8575 if test "$GCC" = yes; then
8576 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8577 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8578 else
8579 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 sysv5* | sco3.2v5* | sco5v6*)
8585 # Note: We can NOT use -z defs as we might desire, because we do not
8586 # link with -lc, and that would cause any symbols used from libc to
8587 # always be unresolved, which means just about no library would
8588 # ever link correctly. If we're not using GNU ld we use -z text
8589 # though, which does catch some bad symbols but isn't as heavy-handed
8590 # as -z defs.
8591 no_undefined_flag='${wl}-z,text'
8592 allow_undefined_flag='${wl}-z,nodefs'
8593 archive_cmds_need_lc=no
8594 hardcode_shlibpath_var=no
8595 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8596 hardcode_libdir_separator=':'
8597 link_all_deplibs=yes
8598 export_dynamic_flag_spec='${wl}-Bexport'
8599 runpath_var='LD_RUN_PATH'
8601 if test "$GCC" = yes; then
8602 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8603 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604 else
8605 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 uts4*)
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_libdir_flag_spec='-L$libdir'
8613 hardcode_shlibpath_var=no
8617 ld_shlibs=no
8619 esac
8622 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8623 echo "${ECHO_T}$ld_shlibs" >&6; }
8624 test "$ld_shlibs" = no && can_build_shared=no
8627 # Do we need to explicitly link libc?
8629 case "x$archive_cmds_need_lc" in
8630 x|xyes)
8631 # Assume -lc should be added
8632 archive_cmds_need_lc=yes
8634 if test "$enable_shared" = yes && test "$GCC" = yes; then
8635 case $archive_cmds in
8636 *'~'*)
8637 # FIXME: we may have to deal with multi-command sequences.
8639 '$CC '*)
8640 # Test whether the compiler implicitly links with -lc since on some
8641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8642 # to ld, don't add -lc before -lgcc.
8643 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8644 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8645 $rm conftest*
8646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649 (eval $ac_compile) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } 2>conftest.err; then
8653 soname=conftest
8654 lib=conftest
8655 libobjs=conftest.$ac_objext
8656 deplibs=
8657 wl=$lt_prog_compiler_wl
8658 pic_flag=$lt_prog_compiler_pic
8659 compiler_flags=-v
8660 linker_flags=-v
8661 verstring=
8662 output_objdir=.
8663 libname=conftest
8664 lt_save_allow_undefined_flag=$allow_undefined_flag
8665 allow_undefined_flag=
8666 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8667 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }
8671 then
8672 archive_cmds_need_lc=no
8673 else
8674 archive_cmds_need_lc=yes
8676 allow_undefined_flag=$lt_save_allow_undefined_flag
8677 else
8678 cat conftest.err 1>&5
8680 $rm conftest*
8681 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8682 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8684 esac
8687 esac
8689 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8690 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8691 library_names_spec=
8692 libname_spec='lib$name'
8693 soname_spec=
8694 shrext_cmds=".so"
8695 postinstall_cmds=
8696 postuninstall_cmds=
8697 finish_cmds=
8698 finish_eval=
8699 shlibpath_var=
8700 shlibpath_overrides_runpath=unknown
8701 version_type=none
8702 dynamic_linker="$host_os ld.so"
8703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8705 if test "$GCC" = yes; then
8706 case $host_os in
8707 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8708 *) lt_awk_arg="/^libraries:/" ;;
8709 esac
8710 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8711 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8712 # if the path contains ";" then we assume it to be the separator
8713 # otherwise default to the standard path separator (i.e. ":") - it is
8714 # assumed that no part of a normal pathname contains ";" but that should
8715 # okay in the real world where ";" in dirpaths is itself problematic.
8716 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8717 else
8718 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8720 # Ok, now we have the path, separated by spaces, we can step through it
8721 # and add multilib dir if necessary.
8722 lt_tmp_lt_search_path_spec=
8723 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8724 for lt_sys_path in $lt_search_path_spec; do
8725 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8727 else
8728 test -d "$lt_sys_path" && \
8729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8731 done
8732 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8733 BEGIN {RS=" "; FS="/|\n";} {
8734 lt_foo="";
8735 lt_count=0;
8736 for (lt_i = NF; lt_i > 0; lt_i--) {
8737 if ($lt_i != "" && $lt_i != ".") {
8738 if ($lt_i == "..") {
8739 lt_count++;
8740 } else {
8741 if (lt_count == 0) {
8742 lt_foo="/" $lt_i lt_foo;
8743 } else {
8744 lt_count--;
8749 if (lt_foo != "") { lt_freq[lt_foo]++; }
8750 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8752 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8753 else
8754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8756 need_lib_prefix=unknown
8757 hardcode_into_libs=no
8759 # when you set need_version to no, make sure it does not cause -set_version
8760 # flags to be left without arguments
8761 need_version=unknown
8763 case $host_os in
8764 aix3*)
8765 version_type=linux
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8767 shlibpath_var=LIBPATH
8769 # AIX 3 has no versioning support, so we append a major version to the name.
8770 soname_spec='${libname}${release}${shared_ext}$major'
8773 aix4* | aix5*)
8774 version_type=linux
8775 need_lib_prefix=no
8776 need_version=no
8777 hardcode_into_libs=yes
8778 if test "$host_cpu" = ia64; then
8779 # AIX 5 supports IA64
8780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 else
8783 # With GCC up to 2.95.x, collect2 would create an import file
8784 # for dependence libraries. The import file would start with
8785 # the line `#! .'. This would cause the generated library to
8786 # depend on `.', always an invalid library. This was fixed in
8787 # development snapshots of GCC prior to 3.0.
8788 case $host_os in
8789 aix4 | aix4.[01] | aix4.[01].*)
8790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8791 echo ' yes '
8792 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8794 else
8795 can_build_shared=no
8798 esac
8799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8800 # soname into executable. Probably we can add versioning support to
8801 # collect2, so additional links can be useful in future.
8802 if test "$aix_use_runtimelinking" = yes; then
8803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8804 # instead of lib<name>.a to let people know that these are not
8805 # typical AIX shared libraries.
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 else
8808 # We preserve .a as extension for shared libraries through AIX4.2
8809 # and later when we are not doing run time linking.
8810 library_names_spec='${libname}${release}.a $libname.a'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LIBPATH
8817 amigaos*)
8818 library_names_spec='$libname.ixlibrary $libname.a'
8819 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8820 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'
8823 beos*)
8824 library_names_spec='${libname}${shared_ext}'
8825 dynamic_linker="$host_os ld.so"
8826 shlibpath_var=LIBRARY_PATH
8829 bsdi[45]*)
8830 version_type=linux
8831 need_version=no
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8833 soname_spec='${libname}${release}${shared_ext}$major'
8834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8838 # the default ld.so.conf also contains /usr/contrib/lib and
8839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8840 # libtool to hard-code these into programs
8843 cygwin* | mingw* | pw32*)
8844 version_type=windows
8845 shrext_cmds=".dll"
8846 need_version=no
8847 need_lib_prefix=no
8849 case $GCC,$host_os in
8850 yes,cygwin* | yes,mingw* | yes,pw32*)
8851 library_names_spec='$libname.dll.a'
8852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8853 postinstall_cmds='base_file=`basename \${file}`~
8854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8855 dldir=$destdir/`dirname \$dlpath`~
8856 test -d \$dldir || mkdir -p \$dldir~
8857 $install_prog $dir/$dlname \$dldir/$dlname~
8858 chmod a+x \$dldir/$dlname'
8859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8860 dlpath=$dir/\$dldll~
8861 $rm \$dlpath'
8862 shlibpath_overrides_runpath=yes
8864 case $host_os in
8865 cygwin*)
8866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8867 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8868 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8870 mingw*)
8871 # MinGW DLLs use traditional 'lib' prefix
8872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8874 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8875 # It is most probably a Windows format PATH printed by
8876 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8877 # path with ; separators, and with drive letters. We can handle the
8878 # drive letters (cygwin fileutils understands them), so leave them,
8879 # especially as we might pass files found there to a mingw objdump,
8880 # which wouldn't understand a cygwinified path. Ahh.
8881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8882 else
8883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8886 pw32*)
8887 # pw32 DLLs use 'pw' prefix rather than 'lib'
8888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8890 esac
8894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8896 esac
8897 dynamic_linker='Win32 ld.exe'
8898 # FIXME: first we should search . and the directory the executable is in
8899 shlibpath_var=PATH
8902 darwin* | rhapsody*)
8903 dynamic_linker="$host_os dyld"
8904 version_type=darwin
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8908 soname_spec='${libname}${release}${major}$shared_ext'
8909 shlibpath_overrides_runpath=yes
8910 shlibpath_var=DYLD_LIBRARY_PATH
8911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8917 dgux*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8926 freebsd1*)
8927 dynamic_linker=no
8930 freebsd* | dragonfly*)
8931 # DragonFly does not have aout. When/if they implement a new
8932 # versioning mechanism, adjust this.
8933 if test -x /usr/bin/objformat; then
8934 objformat=`/usr/bin/objformat`
8935 else
8936 case $host_os in
8937 freebsd[123]*) objformat=aout ;;
8938 *) objformat=elf ;;
8939 esac
8941 version_type=freebsd-$objformat
8942 case $version_type in
8943 freebsd-elf*)
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8945 need_version=no
8946 need_lib_prefix=no
8948 freebsd-*)
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8950 need_version=yes
8952 esac
8953 shlibpath_var=LD_LIBRARY_PATH
8954 case $host_os in
8955 freebsd2*)
8956 shlibpath_overrides_runpath=yes
8958 freebsd3.[01]* | freebsdelf3.[01]*)
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8964 shlibpath_overrides_runpath=no
8965 hardcode_into_libs=yes
8967 *) # from 4.6 on, and DragonFly
8968 shlibpath_overrides_runpath=yes
8969 hardcode_into_libs=yes
8971 esac
8974 gnu*)
8975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
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'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 hardcode_into_libs=yes
8984 hpux9* | hpux10* | hpux11*)
8985 # Give a soname corresponding to the major version so that dld.sl refuses to
8986 # link against other versions.
8987 version_type=sunos
8988 need_lib_prefix=no
8989 need_version=no
8990 case $host_cpu in
8991 ia64*)
8992 shrext_cmds='.so'
8993 hardcode_into_libs=yes
8994 dynamic_linker="$host_os dld.so"
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 if test "X$HPUX_IA64_MODE" = X32; then
9000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9001 else
9002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9006 hppa*64*)
9007 shrext_cmds='.sl'
9008 hardcode_into_libs=yes
9009 dynamic_linker="$host_os dld.sl"
9010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9018 shrext_cmds='.sl'
9019 dynamic_linker="$host_os dld.sl"
9020 shlibpath_var=SHLIB_PATH
9021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9025 esac
9026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027 postinstall_cmds='chmod 555 $lib'
9030 interix[3-9]*)
9031 version_type=linux
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9042 irix5* | irix6* | nonstopux*)
9043 case $host_os in
9044 nonstopux*) version_type=nonstopux ;;
9046 if test "$lt_cv_prog_gnu_ld" = yes; then
9047 version_type=linux
9048 else
9049 version_type=irix
9050 fi ;;
9051 esac
9052 need_lib_prefix=no
9053 need_version=no
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9056 case $host_os in
9057 irix5* | nonstopux*)
9058 libsuff= shlibsuff=
9061 case $LD in # libtool.m4 will add one of these switches to LD
9062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9063 libsuff= shlibsuff= libmagic=32-bit;;
9064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9065 libsuff=32 shlibsuff=N32 libmagic=N32;;
9066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9068 *) libsuff= shlibsuff= libmagic=never-match;;
9069 esac
9071 esac
9072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9076 hardcode_into_libs=yes
9079 # No shared lib support for Linux oldld, aout, or coff.
9080 linux*oldld* | linux*aout* | linux*coff*)
9081 dynamic_linker=no
9084 # This must be Linux ELF.
9085 linux* | k*bsd*-gnu)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=no
9094 # This implies no fast_install, which is unacceptable.
9095 # Some rework will be needed to allow for fast_install
9096 # before this can be enabled.
9097 hardcode_into_libs=yes
9099 # Append ld.so.conf contents to the search path
9100 if test -f /etc/ld.so.conf; then
9101 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9105 # We used to test for /lib/ld.so.1 and disable shared libraries on
9106 # powerpc, because MkLinux only supported shared libraries with the
9107 # GNU dynamic linker. Since this was broken with cross compilers,
9108 # most powerpc-linux boxes support dynamic linking these days and
9109 # people can always --disable-shared, the test was removed, and we
9110 # assume the GNU/Linux dynamic linker is in use.
9111 dynamic_linker='GNU/Linux ld.so'
9114 netbsd*)
9115 version_type=sunos
9116 need_lib_prefix=no
9117 need_version=no
9118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9121 dynamic_linker='NetBSD (a.out) ld.so'
9122 else
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 dynamic_linker='NetBSD ld.elf_so'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 shlibpath_overrides_runpath=yes
9129 hardcode_into_libs=yes
9132 newsos6)
9133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes
9139 nto-qnx*)
9140 version_type=linux
9141 need_lib_prefix=no
9142 need_version=no
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9149 openbsd*)
9150 version_type=sunos
9151 sys_lib_dlsearch_path_spec="/usr/lib"
9152 need_lib_prefix=no
9153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9154 case $host_os in
9155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9156 *) need_version=no ;;
9157 esac
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9162 case $host_os in
9163 openbsd2.[89] | openbsd2.[89].*)
9164 shlibpath_overrides_runpath=no
9167 shlibpath_overrides_runpath=yes
9169 esac
9170 else
9171 shlibpath_overrides_runpath=yes
9175 os2*)
9176 libname_spec='$name'
9177 shrext_cmds=".dll"
9178 need_lib_prefix=no
9179 library_names_spec='$libname${shared_ext} $libname.a'
9180 dynamic_linker='OS/2 ld.exe'
9181 shlibpath_var=LIBPATH
9184 osf3* | osf4* | osf5*)
9185 version_type=osf
9186 need_lib_prefix=no
9187 need_version=no
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9195 rdos*)
9196 dynamic_linker=no
9199 solaris*)
9200 version_type=linux
9201 need_lib_prefix=no
9202 need_version=no
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=yes
9207 hardcode_into_libs=yes
9208 # ldd complains unless libraries are executable
9209 postinstall_cmds='chmod +x $lib'
9212 sunos4*)
9213 version_type=sunos
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9218 if test "$with_gnu_ld" = yes; then
9219 need_lib_prefix=no
9221 need_version=yes
9224 sysv4 | sysv4.3*)
9225 version_type=linux
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 case $host_vendor in
9230 sni)
9231 shlibpath_overrides_runpath=no
9232 need_lib_prefix=no
9233 export_dynamic_flag_spec='${wl}-Blargedynsym'
9234 runpath_var=LD_RUN_PATH
9236 siemens)
9237 need_lib_prefix=no
9239 motorola)
9240 need_lib_prefix=no
9241 need_version=no
9242 shlibpath_overrides_runpath=no
9243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9245 esac
9248 sysv4*MP*)
9249 if test -d /usr/nec ;then
9250 version_type=linux
9251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9252 soname_spec='$libname${shared_ext}.$major'
9253 shlibpath_var=LD_LIBRARY_PATH
9257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9258 version_type=freebsd-elf
9259 need_lib_prefix=no
9260 need_version=no
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 hardcode_into_libs=yes
9265 if test "$with_gnu_ld" = yes; then
9266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9267 shlibpath_overrides_runpath=no
9268 else
9269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9270 shlibpath_overrides_runpath=yes
9271 case $host_os in
9272 sco3.2v5*)
9273 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9275 esac
9277 sys_lib_dlsearch_path_spec='/usr/lib'
9280 uts4*)
9281 version_type=linux
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9288 dynamic_linker=no
9290 esac
9291 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9292 echo "${ECHO_T}$dynamic_linker" >&6; }
9293 test "$dynamic_linker" = no && can_build_shared=no
9295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9296 if test "$GCC" = yes; then
9297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9300 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9302 hardcode_action=
9303 if test -n "$hardcode_libdir_flag_spec" || \
9304 test -n "$runpath_var" || \
9305 test "X$hardcode_automatic" = "Xyes" ; then
9307 # We can hardcode non-existant directories.
9308 if test "$hardcode_direct" != no &&
9309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9310 # have to relink, otherwise we might link with an installed library
9311 # when we should be linking with a yet-to-be-installed one
9312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9313 test "$hardcode_minus_L" != no; then
9314 # Linking always hardcodes the temporary library directory.
9315 hardcode_action=relink
9316 else
9317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9318 hardcode_action=immediate
9320 else
9321 # We cannot hardcode anything, or else we can only hardcode existing
9322 # directories.
9323 hardcode_action=unsupported
9325 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9326 echo "${ECHO_T}$hardcode_action" >&6; }
9328 if test "$hardcode_action" = relink; then
9329 # Fast installation is not supported
9330 enable_fast_install=no
9331 elif test "$shlibpath_overrides_runpath" = yes ||
9332 test "$enable_shared" = no; then
9333 # Fast installation is not necessary
9334 enable_fast_install=needless
9337 striplib=
9338 old_striplib=
9339 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9340 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9341 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9344 { echo "$as_me:$LINENO: result: yes" >&5
9345 echo "${ECHO_T}yes" >&6; }
9346 else
9347 # FIXME - insert some real tests, host_os isn't really good enough
9348 case $host_os in
9349 darwin*)
9350 if test -n "$STRIP" ; then
9351 striplib="$STRIP -x"
9352 old_striplib="$STRIP -S"
9353 { echo "$as_me:$LINENO: result: yes" >&5
9354 echo "${ECHO_T}yes" >&6; }
9355 else
9356 { echo "$as_me:$LINENO: result: no" >&5
9357 echo "${ECHO_T}no" >&6; }
9361 { echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6; }
9364 esac
9367 if test "x$enable_dlopen" != xyes; then
9368 enable_dlopen=unknown
9369 enable_dlopen_self=unknown
9370 enable_dlopen_self_static=unknown
9371 else
9372 lt_cv_dlopen=no
9373 lt_cv_dlopen_libs=
9375 case $host_os in
9376 beos*)
9377 lt_cv_dlopen="load_add_on"
9378 lt_cv_dlopen_libs=
9379 lt_cv_dlopen_self=yes
9382 mingw* | pw32*)
9383 lt_cv_dlopen="LoadLibrary"
9384 lt_cv_dlopen_libs=
9387 cygwin*)
9388 lt_cv_dlopen="dlopen"
9389 lt_cv_dlopen_libs=
9392 darwin*)
9393 # if libdl is installed we need to link against it
9394 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399 ac_check_lib_save_LIBS=$LIBS
9400 LIBS="-ldl $LIBS"
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9408 /* Override any GCC internal prototype to avoid an error.
9409 Use char because int might match the return type of a GCC
9410 builtin and then its argument prototype would still apply. */
9411 #ifdef __cplusplus
9412 extern "C"
9413 #endif
9414 char dlopen ();
9416 main ()
9418 return dlopen ();
9420 return 0;
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_link") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest$ac_exeext &&
9440 $as_test_x conftest$ac_exeext; then
9441 ac_cv_lib_dl_dlopen=yes
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_cv_lib_dl_dlopen=no
9449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LIBS=$ac_check_lib_save_LIBS
9453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9455 if test $ac_cv_lib_dl_dlopen = yes; then
9456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9457 else
9459 lt_cv_dlopen="dyld"
9460 lt_cv_dlopen_libs=
9461 lt_cv_dlopen_self=yes
9468 { echo "$as_me:$LINENO: checking for shl_load" >&5
9469 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9470 if test "${ac_cv_func_shl_load+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9481 #define shl_load innocuous_shl_load
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char shl_load (); below.
9485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486 <limits.h> exists even on freestanding compilers. */
9488 #ifdef __STDC__
9489 # include <limits.h>
9490 #else
9491 # include <assert.h>
9492 #endif
9494 #undef shl_load
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 char shl_load ();
9503 /* The GNU C library defines this for functions which it implements
9504 to always fail with ENOSYS. Some functions are actually named
9505 something starting with __ and the normal name is an alias. */
9506 #if defined __stub_shl_load || defined __stub___shl_load
9507 choke me
9508 #endif
9511 main ()
9513 return shl_load ();
9515 return 0;
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9520 case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 ac_cv_func_shl_load=yes
9537 else
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_cv_func_shl_load=no
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9547 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9548 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9549 if test $ac_cv_func_shl_load = yes; then
9550 lt_cv_dlopen="shl_load"
9551 else
9552 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9553 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9554 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 ac_check_lib_save_LIBS=$LIBS
9558 LIBS="-ldld $LIBS"
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9566 /* Override any GCC internal prototype to avoid an error.
9567 Use char because int might match the return type of a GCC
9568 builtin and then its argument prototype would still apply. */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 char shl_load ();
9574 main ()
9576 return shl_load ();
9578 return 0;
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (ac_try="$ac_link"
9583 case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_link") 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } && {
9595 test -z "$ac_c_werror_flag" ||
9596 test ! -s conftest.err
9597 } && test -s conftest$ac_exeext &&
9598 $as_test_x conftest$ac_exeext; then
9599 ac_cv_lib_dld_shl_load=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_cv_lib_dld_shl_load=no
9607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9612 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9613 if test $ac_cv_lib_dld_shl_load = yes; then
9614 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9615 else
9616 { echo "$as_me:$LINENO: checking for dlopen" >&5
9617 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9618 if test "${ac_cv_func_dlopen+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629 #define dlopen innocuous_dlopen
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char dlopen (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
9636 #ifdef __STDC__
9637 # include <limits.h>
9638 #else
9639 # include <assert.h>
9640 #endif
9642 #undef dlopen
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9647 #ifdef __cplusplus
9648 extern "C"
9649 #endif
9650 char dlopen ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined __stub_dlopen || defined __stub___dlopen
9655 choke me
9656 #endif
9659 main ()
9661 return dlopen ();
9663 return 0;
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_func_dlopen=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_func_dlopen=no
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9696 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9697 if test $ac_cv_func_dlopen = yes; then
9698 lt_cv_dlopen="dlopen"
9699 else
9700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-ldl $LIBS"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9714 /* Override any GCC internal prototype to avoid an error.
9715 Use char because int might match the return type of a GCC
9716 builtin and then its argument prototype would still apply. */
9717 #ifdef __cplusplus
9718 extern "C"
9719 #endif
9720 char dlopen ();
9722 main ()
9724 return dlopen ();
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9731 case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest$ac_exeext &&
9746 $as_test_x conftest$ac_exeext; then
9747 ac_cv_lib_dl_dlopen=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_lib_dl_dlopen=no
9755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9760 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9761 if test $ac_cv_lib_dl_dlopen = yes; then
9762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9763 else
9764 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9765 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9766 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 ac_check_lib_save_LIBS=$LIBS
9770 LIBS="-lsvld $LIBS"
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9778 /* Override any GCC internal prototype to avoid an error.
9779 Use char because int might match the return type of a GCC
9780 builtin and then its argument prototype would still apply. */
9781 #ifdef __cplusplus
9782 extern "C"
9783 #endif
9784 char dlopen ();
9786 main ()
9788 return dlopen ();
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest$ac_exeext &&
9810 $as_test_x conftest$ac_exeext; then
9811 ac_cv_lib_svld_dlopen=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_svld_dlopen=no
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9824 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9825 if test $ac_cv_lib_svld_dlopen = yes; then
9826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9827 else
9828 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9829 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9830 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-ldld $LIBS"
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char dld_link ();
9850 main ()
9852 return dld_link ();
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext &&
9874 $as_test_x conftest$ac_exeext; then
9875 ac_cv_lib_dld_dld_link=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_lib_dld_dld_link=no
9883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9887 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9888 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9889 if test $ac_cv_lib_dld_dld_link = yes; then
9890 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9909 esac
9911 if test "x$lt_cv_dlopen" != xno; then
9912 enable_dlopen=yes
9913 else
9914 enable_dlopen=no
9917 case $lt_cv_dlopen in
9918 dlopen)
9919 save_CPPFLAGS="$CPPFLAGS"
9920 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9922 save_LDFLAGS="$LDFLAGS"
9923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9925 save_LIBS="$LIBS"
9926 LIBS="$lt_cv_dlopen_libs $LIBS"
9928 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9929 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9930 if test "${lt_cv_dlopen_self+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 if test "$cross_compiling" = yes; then :
9934 lt_cv_dlopen_self=cross
9935 else
9936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9937 lt_status=$lt_dlunknown
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9939 "configure"
9940 #include "confdefs.h"
9942 #if HAVE_DLFCN_H
9943 #include <dlfcn.h>
9944 #endif
9946 #include <stdio.h>
9948 #ifdef RTLD_GLOBAL
9949 # define LT_DLGLOBAL RTLD_GLOBAL
9950 #else
9951 # ifdef DL_GLOBAL
9952 # define LT_DLGLOBAL DL_GLOBAL
9953 # else
9954 # define LT_DLGLOBAL 0
9955 # endif
9956 #endif
9958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9959 find out it does not work in some platform. */
9960 #ifndef LT_DLLAZY_OR_NOW
9961 # ifdef RTLD_LAZY
9962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9963 # else
9964 # ifdef DL_LAZY
9965 # define LT_DLLAZY_OR_NOW DL_LAZY
9966 # else
9967 # ifdef RTLD_NOW
9968 # define LT_DLLAZY_OR_NOW RTLD_NOW
9969 # else
9970 # ifdef DL_NOW
9971 # define LT_DLLAZY_OR_NOW DL_NOW
9972 # else
9973 # define LT_DLLAZY_OR_NOW 0
9974 # endif
9975 # endif
9976 # endif
9977 # endif
9978 #endif
9980 #ifdef __cplusplus
9981 extern "C" void exit (int);
9982 #endif
9984 void fnord() { int i=42;}
9985 int main ()
9987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9988 int status = $lt_dlunknown;
9990 if (self)
9992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9994 /* dlclose (self); */
9996 else
9997 puts (dlerror ());
9999 exit (status);
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10007 (./conftest; exit; ) >&5 2>/dev/null
10008 lt_status=$?
10009 case x$lt_status in
10010 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10011 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10012 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10013 esac
10014 else :
10015 # compilation failed
10016 lt_cv_dlopen_self=no
10019 rm -fr conftest*
10023 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10024 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10026 if test "x$lt_cv_dlopen_self" = xyes; then
10027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10028 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10029 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10030 if test "${lt_cv_dlopen_self_static+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033 if test "$cross_compiling" = yes; then :
10034 lt_cv_dlopen_self_static=cross
10035 else
10036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10037 lt_status=$lt_dlunknown
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10039 "configure"
10040 #include "confdefs.h"
10042 #if HAVE_DLFCN_H
10043 #include <dlfcn.h>
10044 #endif
10046 #include <stdio.h>
10048 #ifdef RTLD_GLOBAL
10049 # define LT_DLGLOBAL RTLD_GLOBAL
10050 #else
10051 # ifdef DL_GLOBAL
10052 # define LT_DLGLOBAL DL_GLOBAL
10053 # else
10054 # define LT_DLGLOBAL 0
10055 # endif
10056 #endif
10058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10059 find out it does not work in some platform. */
10060 #ifndef LT_DLLAZY_OR_NOW
10061 # ifdef RTLD_LAZY
10062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10063 # else
10064 # ifdef DL_LAZY
10065 # define LT_DLLAZY_OR_NOW DL_LAZY
10066 # else
10067 # ifdef RTLD_NOW
10068 # define LT_DLLAZY_OR_NOW RTLD_NOW
10069 # else
10070 # ifdef DL_NOW
10071 # define LT_DLLAZY_OR_NOW DL_NOW
10072 # else
10073 # define LT_DLLAZY_OR_NOW 0
10074 # endif
10075 # endif
10076 # endif
10077 # endif
10078 #endif
10080 #ifdef __cplusplus
10081 extern "C" void exit (int);
10082 #endif
10084 void fnord() { int i=42;}
10085 int main ()
10087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10088 int status = $lt_dlunknown;
10090 if (self)
10092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10094 /* dlclose (self); */
10096 else
10097 puts (dlerror ());
10099 exit (status);
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10107 (./conftest; exit; ) >&5 2>/dev/null
10108 lt_status=$?
10109 case x$lt_status in
10110 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10111 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10112 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10113 esac
10114 else :
10115 # compilation failed
10116 lt_cv_dlopen_self_static=no
10119 rm -fr conftest*
10123 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10124 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10127 CPPFLAGS="$save_CPPFLAGS"
10128 LDFLAGS="$save_LDFLAGS"
10129 LIBS="$save_LIBS"
10131 esac
10133 case $lt_cv_dlopen_self in
10134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10135 *) enable_dlopen_self=unknown ;;
10136 esac
10138 case $lt_cv_dlopen_self_static in
10139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10140 *) enable_dlopen_self_static=unknown ;;
10141 esac
10145 # Report which library types will actually be built
10146 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10147 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10148 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10149 echo "${ECHO_T}$can_build_shared" >&6; }
10151 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10152 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10153 test "$can_build_shared" = "no" && enable_shared=no
10155 # On AIX, shared libraries and static libraries use the same namespace, and
10156 # are all built from PIC.
10157 case $host_os in
10158 aix3*)
10159 test "$enable_shared" = yes && enable_static=no
10160 if test -n "$RANLIB"; then
10161 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10162 postinstall_cmds='$RANLIB $lib'
10166 aix4* | aix5*)
10167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10168 test "$enable_shared" = yes && enable_static=no
10171 esac
10172 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10173 echo "${ECHO_T}$enable_shared" >&6; }
10175 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10176 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10177 # Make sure either enable_shared or enable_static is yes.
10178 test "$enable_shared" = yes || enable_static=yes
10179 { echo "$as_me:$LINENO: result: $enable_static" >&5
10180 echo "${ECHO_T}$enable_static" >&6; }
10182 # The else clause should only fire when bootstrapping the
10183 # libtool distribution, otherwise you forgot to ship ltmain.sh
10184 # with your package, and you will get complaints that there are
10185 # no rules to generate ltmain.sh.
10186 if test -f "$ltmain"; then
10187 # See if we are running on zsh, and set the options which allow our commands through
10188 # without removal of \ escapes.
10189 if test -n "${ZSH_VERSION+set}" ; then
10190 setopt NO_GLOB_SUBST
10192 # Now quote all the things that may contain metacharacters while being
10193 # careful not to overquote the AC_SUBSTed values. We take copies of the
10194 # variables and quote the copies for generation of the libtool script.
10195 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10196 SED SHELL STRIP \
10197 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10198 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10199 deplibs_check_method reload_flag reload_cmds need_locks \
10200 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10201 lt_cv_sys_global_symbol_to_c_name_address \
10202 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10203 old_postinstall_cmds old_postuninstall_cmds \
10204 compiler \
10205 CC \
10206 LD \
10207 lt_prog_compiler_wl \
10208 lt_prog_compiler_pic \
10209 lt_prog_compiler_static \
10210 lt_prog_compiler_no_builtin_flag \
10211 export_dynamic_flag_spec \
10212 thread_safe_flag_spec \
10213 whole_archive_flag_spec \
10214 enable_shared_with_static_runtimes \
10215 old_archive_cmds \
10216 old_archive_from_new_cmds \
10217 predep_objects \
10218 postdep_objects \
10219 predeps \
10220 postdeps \
10221 compiler_lib_search_path \
10222 archive_cmds \
10223 archive_expsym_cmds \
10224 postinstall_cmds \
10225 postuninstall_cmds \
10226 old_archive_from_expsyms_cmds \
10227 allow_undefined_flag \
10228 no_undefined_flag \
10229 export_symbols_cmds \
10230 hardcode_libdir_flag_spec \
10231 hardcode_libdir_flag_spec_ld \
10232 hardcode_libdir_separator \
10233 hardcode_automatic \
10234 module_cmds \
10235 module_expsym_cmds \
10236 lt_cv_prog_compiler_c_o \
10237 fix_srcfile_path \
10238 exclude_expsyms \
10239 include_expsyms; do
10241 case $var in
10242 old_archive_cmds | \
10243 old_archive_from_new_cmds | \
10244 archive_cmds | \
10245 archive_expsym_cmds | \
10246 module_cmds | \
10247 module_expsym_cmds | \
10248 old_archive_from_expsyms_cmds | \
10249 export_symbols_cmds | \
10250 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10251 postinstall_cmds | postuninstall_cmds | \
10252 old_postinstall_cmds | old_postuninstall_cmds | \
10253 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10254 # Double-quote double-evaled strings.
10255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10260 esac
10261 done
10263 case $lt_echo in
10264 *'\$0 --fallback-echo"')
10265 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10267 esac
10269 cfgfile="${ofile}T"
10270 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10271 $rm -f "$cfgfile"
10272 { echo "$as_me:$LINENO: creating $ofile" >&5
10273 echo "$as_me: creating $ofile" >&6;}
10275 cat <<__EOF__ >> "$cfgfile"
10276 #! $SHELL
10278 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10279 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10280 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10282 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10283 # Free Software Foundation, Inc.
10285 # This file is part of GNU Libtool:
10286 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10288 # This program is free software; you can redistribute it and/or modify
10289 # it under the terms of the GNU General Public License as published by
10290 # the Free Software Foundation; either version 2 of the License, or
10291 # (at your option) any later version.
10293 # This program is distributed in the hope that it will be useful, but
10294 # WITHOUT ANY WARRANTY; without even the implied warranty of
10295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10296 # General Public License for more details.
10298 # You should have received a copy of the GNU General Public License
10299 # along with this program; if not, write to the Free Software
10300 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10302 # As a special exception to the GNU General Public License, if you
10303 # distribute this file as part of a program that contains a
10304 # configuration script generated by Autoconf, you may include it under
10305 # the same distribution terms that you use for the rest of that program.
10307 # A sed program that does not truncate output.
10308 SED=$lt_SED
10310 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10311 Xsed="$SED -e 1s/^X//"
10313 # The HP-UX ksh and POSIX shell print the target directory to stdout
10314 # if CDPATH is set.
10315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10317 # The names of the tagged configurations supported by this script.
10318 available_tags=
10320 # ### BEGIN LIBTOOL CONFIG
10322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10324 # Shell to use when invoking shell scripts.
10325 SHELL=$lt_SHELL
10327 # Whether or not to build shared libraries.
10328 build_libtool_libs=$enable_shared
10330 # Whether or not to build static libraries.
10331 build_old_libs=$enable_static
10333 # Whether or not to add -lc for building shared libraries.
10334 build_libtool_need_lc=$archive_cmds_need_lc
10336 # Whether or not to disallow shared libs when runtime libs are static
10337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10339 # Whether or not to optimize for fast installation.
10340 fast_install=$enable_fast_install
10342 # The host system.
10343 host_alias=$host_alias
10344 host=$host
10345 host_os=$host_os
10347 # The build system.
10348 build_alias=$build_alias
10349 build=$build
10350 build_os=$build_os
10352 # An echo program that does not interpret backslashes.
10353 echo=$lt_echo
10355 # The archiver.
10356 AR=$lt_AR
10357 AR_FLAGS=$lt_AR_FLAGS
10359 # A C compiler.
10360 LTCC=$lt_LTCC
10362 # LTCC compiler flags.
10363 LTCFLAGS=$lt_LTCFLAGS
10365 # A language-specific compiler.
10366 CC=$lt_compiler
10368 # Is the compiler the GNU C compiler?
10369 with_gcc=$GCC
10371 # An ERE matcher.
10372 EGREP=$lt_EGREP
10374 # The linker used to build libraries.
10375 LD=$lt_LD
10377 # Whether we need hard or soft links.
10378 LN_S=$lt_LN_S
10380 # A BSD-compatible nm program.
10381 NM=$lt_NM
10383 # A symbol stripping program
10384 STRIP=$lt_STRIP
10386 # Used to examine libraries when file_magic_cmd begins "file"
10387 MAGIC_CMD=$MAGIC_CMD
10389 # Used on cygwin: DLL creation program.
10390 DLLTOOL="$DLLTOOL"
10392 # Used on cygwin: object dumper.
10393 OBJDUMP="$OBJDUMP"
10395 # Used on cygwin: assembler.
10396 AS="$AS"
10398 # The name of the directory that contains temporary libtool files.
10399 objdir=$objdir
10401 # How to create reloadable object files.
10402 reload_flag=$lt_reload_flag
10403 reload_cmds=$lt_reload_cmds
10405 # How to pass a linker flag through the compiler.
10406 wl=$lt_lt_prog_compiler_wl
10408 # Object file suffix (normally "o").
10409 objext="$ac_objext"
10411 # Old archive suffix (normally "a").
10412 libext="$libext"
10414 # Shared library suffix (normally ".so").
10415 shrext_cmds='$shrext_cmds'
10417 # Executable file suffix (normally "").
10418 exeext="$exeext"
10420 # Additional compiler flags for building library objects.
10421 pic_flag=$lt_lt_prog_compiler_pic
10422 pic_mode=$pic_mode
10424 # What is the maximum length of a command?
10425 max_cmd_len=$lt_cv_sys_max_cmd_len
10427 # Does compiler simultaneously support -c and -o options?
10428 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10430 # Must we lock files when doing compilation?
10431 need_locks=$lt_need_locks
10433 # Do we need the lib prefix for modules?
10434 need_lib_prefix=$need_lib_prefix
10436 # Do we need a version for libraries?
10437 need_version=$need_version
10439 # Whether dlopen is supported.
10440 dlopen_support=$enable_dlopen
10442 # Whether dlopen of programs is supported.
10443 dlopen_self=$enable_dlopen_self
10445 # Whether dlopen of statically linked programs is supported.
10446 dlopen_self_static=$enable_dlopen_self_static
10448 # Compiler flag to prevent dynamic linking.
10449 link_static_flag=$lt_lt_prog_compiler_static
10451 # Compiler flag to turn off builtin functions.
10452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10454 # Compiler flag to allow reflexive dlopens.
10455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10457 # Compiler flag to generate shared objects directly from archives.
10458 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10460 # Compiler flag to generate thread-safe objects.
10461 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10463 # Library versioning type.
10464 version_type=$version_type
10466 # Format of library name prefix.
10467 libname_spec=$lt_libname_spec
10469 # List of archive names. First name is the real one, the rest are links.
10470 # The last name is the one that the linker finds with -lNAME.
10471 library_names_spec=$lt_library_names_spec
10473 # The coded name of the library, if different from the real name.
10474 soname_spec=$lt_soname_spec
10476 # Commands used to build and install an old-style archive.
10477 RANLIB=$lt_RANLIB
10478 old_archive_cmds=$lt_old_archive_cmds
10479 old_postinstall_cmds=$lt_old_postinstall_cmds
10480 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10482 # Create an old-style archive from a shared archive.
10483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10485 # Create a temporary old-style archive to link instead of a shared archive.
10486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10488 # Commands used to build and install a shared archive.
10489 archive_cmds=$lt_archive_cmds
10490 archive_expsym_cmds=$lt_archive_expsym_cmds
10491 postinstall_cmds=$lt_postinstall_cmds
10492 postuninstall_cmds=$lt_postuninstall_cmds
10494 # Commands used to build a loadable module (assumed same as above if empty)
10495 module_cmds=$lt_module_cmds
10496 module_expsym_cmds=$lt_module_expsym_cmds
10498 # Commands to strip libraries.
10499 old_striplib=$lt_old_striplib
10500 striplib=$lt_striplib
10502 # Dependencies to place before the objects being linked to create a
10503 # shared library.
10504 predep_objects=$lt_predep_objects
10506 # Dependencies to place after the objects being linked to create a
10507 # shared library.
10508 postdep_objects=$lt_postdep_objects
10510 # Dependencies to place before the objects being linked to create a
10511 # shared library.
10512 predeps=$lt_predeps
10514 # Dependencies to place after the objects being linked to create a
10515 # shared library.
10516 postdeps=$lt_postdeps
10518 # The library search path used internally by the compiler when linking
10519 # a shared library.
10520 compiler_lib_search_path=$lt_compiler_lib_search_path
10522 # Method to check whether dependent libraries are shared objects.
10523 deplibs_check_method=$lt_deplibs_check_method
10525 # Command to use when deplibs_check_method == file_magic.
10526 file_magic_cmd=$lt_file_magic_cmd
10528 # Flag that allows shared libraries with undefined symbols to be built.
10529 allow_undefined_flag=$lt_allow_undefined_flag
10531 # Flag that forces no undefined symbols.
10532 no_undefined_flag=$lt_no_undefined_flag
10534 # Commands used to finish a libtool library installation in a directory.
10535 finish_cmds=$lt_finish_cmds
10537 # Same as above, but a single script fragment to be evaled but not shown.
10538 finish_eval=$lt_finish_eval
10540 # Take the output of nm and produce a listing of raw symbols and C names.
10541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10543 # Transform the output of nm in a proper C declaration
10544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10546 # Transform the output of nm in a C name address pair
10547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10549 # This is the shared library runtime path variable.
10550 runpath_var=$runpath_var
10552 # This is the shared library path variable.
10553 shlibpath_var=$shlibpath_var
10555 # Is shlibpath searched before the hard-coded library search path?
10556 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10558 # How to hardcode a shared library path into an executable.
10559 hardcode_action=$hardcode_action
10561 # Whether we should hardcode library paths into libraries.
10562 hardcode_into_libs=$hardcode_into_libs
10564 # Flag to hardcode \$libdir into a binary during linking.
10565 # This must work even if \$libdir does not exist.
10566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10568 # If ld is used when linking, flag to hardcode \$libdir into
10569 # a binary during linking. This must work even if \$libdir does
10570 # not exist.
10571 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10573 # Whether we need a single -rpath flag with a separated argument.
10574 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10576 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10577 # resulting binary.
10578 hardcode_direct=$hardcode_direct
10580 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10581 # resulting binary.
10582 hardcode_minus_L=$hardcode_minus_L
10584 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10585 # the resulting binary.
10586 hardcode_shlibpath_var=$hardcode_shlibpath_var
10588 # Set to yes if building a shared library automatically hardcodes DIR into the library
10589 # and all subsequent libraries and executables linked against it.
10590 hardcode_automatic=$hardcode_automatic
10592 # Variables whose values should be saved in libtool wrapper scripts and
10593 # restored at relink time.
10594 variables_saved_for_relink="$variables_saved_for_relink"
10596 # Whether libtool must link a program against all its dependency libraries.
10597 link_all_deplibs=$link_all_deplibs
10599 # Compile-time system search path for libraries
10600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10602 # Run-time system search path for libraries
10603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10605 # Fix the shell variable \$srcfile for the compiler.
10606 fix_srcfile_path=$lt_fix_srcfile_path
10608 # Set to yes if exported symbols are required.
10609 always_export_symbols=$always_export_symbols
10611 # The commands to list exported symbols.
10612 export_symbols_cmds=$lt_export_symbols_cmds
10614 # The commands to extract the exported symbol list from a shared archive.
10615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10617 # Symbols that should not be listed in the preloaded symbols.
10618 exclude_expsyms=$lt_exclude_expsyms
10620 # Symbols that must always be exported.
10621 include_expsyms=$lt_include_expsyms
10623 # ### END LIBTOOL CONFIG
10625 __EOF__
10628 case $host_os in
10629 aix3*)
10630 cat <<\EOF >> "$cfgfile"
10632 # AIX sometimes has problems with the GCC collect2 program. For some
10633 # reason, if we set the COLLECT_NAMES environment variable, the problems
10634 # vanish in a puff of smoke.
10635 if test "X${COLLECT_NAMES+set}" != Xset; then
10636 COLLECT_NAMES=
10637 export COLLECT_NAMES
10641 esac
10643 # We use sed instead of cat because bash on DJGPP gets confused if
10644 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10645 # text mode, it properly converts lines to CR/LF. This bash problem
10646 # is reportedly fixed, but why not run on old versions too?
10647 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10649 mv -f "$cfgfile" "$ofile" || \
10650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10651 chmod +x "$ofile"
10653 else
10654 # If there is no Makefile yet, we rely on a make rule to execute
10655 # `config.status --recheck' to rerun these tests and create the
10656 # libtool script then.
10657 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10658 if test -f "$ltmain_in"; then
10659 test -f Makefile && make "$ltmain"
10664 ac_ext=c
10665 ac_cpp='$CPP $CPPFLAGS'
10666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10670 CC="$lt_save_CC"
10673 # Check whether --with-tags was given.
10674 if test "${with_tags+set}" = set; then
10675 withval=$with_tags; tagnames="$withval"
10679 if test -f "$ltmain" && test -n "$tagnames"; then
10680 if test ! -f "${ofile}"; then
10681 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10682 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10685 if test -z "$LTCC"; then
10686 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10687 if test -z "$LTCC"; then
10688 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10689 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10690 else
10691 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10692 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10695 if test -z "$LTCFLAGS"; then
10696 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10699 # Extract list of available tagged configurations in $ofile.
10700 # Note that this assumes the entire list is on one line.
10701 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10704 for tagname in $tagnames; do
10705 IFS="$lt_save_ifs"
10706 # Check whether tagname contains only valid characters
10707 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10708 "") ;;
10709 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10710 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10711 { (exit 1); exit 1; }; }
10713 esac
10715 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10716 then
10717 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10718 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10719 { (exit 1); exit 1; }; }
10722 # Update the list of available tags.
10723 if test -n "$tagname"; then
10724 echo appending configuration tag \"$tagname\" to $ofile
10726 case $tagname in
10727 CXX)
10728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10730 (test "X$CXX" != "Xg++"))) ; then
10731 ac_ext=cpp
10732 ac_cpp='$CXXCPP $CPPFLAGS'
10733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10740 archive_cmds_need_lc_CXX=no
10741 allow_undefined_flag_CXX=
10742 always_export_symbols_CXX=no
10743 archive_expsym_cmds_CXX=
10744 export_dynamic_flag_spec_CXX=
10745 hardcode_direct_CXX=no
10746 hardcode_libdir_flag_spec_CXX=
10747 hardcode_libdir_flag_spec_ld_CXX=
10748 hardcode_libdir_separator_CXX=
10749 hardcode_minus_L_CXX=no
10750 hardcode_shlibpath_var_CXX=unsupported
10751 hardcode_automatic_CXX=no
10752 module_cmds_CXX=
10753 module_expsym_cmds_CXX=
10754 link_all_deplibs_CXX=unknown
10755 old_archive_cmds_CXX=$old_archive_cmds
10756 no_undefined_flag_CXX=
10757 whole_archive_flag_spec_CXX=
10758 enable_shared_with_static_runtimes_CXX=no
10760 # Dependencies to place before and after the object being linked:
10761 predep_objects_CXX=
10762 postdep_objects_CXX=
10763 predeps_CXX=
10764 postdeps_CXX=
10765 compiler_lib_search_path_CXX=
10767 # Source file extension for C++ test sources.
10768 ac_ext=cpp
10770 # Object file extension for compiled C++ test sources.
10771 objext=o
10772 objext_CXX=$objext
10774 # Code to be used in simple compile tests
10775 lt_simple_compile_test_code="int some_variable = 0;"
10777 # Code to be used in simple link tests
10778 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10782 # If no C compiler was specified, use CC.
10783 LTCC=${LTCC-"$CC"}
10785 # If no C compiler flags were specified, use CFLAGS.
10786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10788 # Allow CC to be a program name with arguments.
10789 compiler=$CC
10792 # save warnings/boilerplate of simple test code
10793 ac_outfile=conftest.$ac_objext
10794 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10796 _lt_compiler_boilerplate=`cat conftest.err`
10797 $rm conftest*
10799 ac_outfile=conftest.$ac_objext
10800 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10802 _lt_linker_boilerplate=`cat conftest.err`
10803 $rm conftest*
10806 # Allow CC to be a program name with arguments.
10807 lt_save_CC=$CC
10808 lt_save_LD=$LD
10809 lt_save_GCC=$GCC
10810 GCC=$GXX
10811 lt_save_with_gnu_ld=$with_gnu_ld
10812 lt_save_path_LD=$lt_cv_path_LD
10813 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10814 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10815 else
10816 $as_unset lt_cv_prog_gnu_ld
10818 if test -n "${lt_cv_path_LDCXX+set}"; then
10819 lt_cv_path_LD=$lt_cv_path_LDCXX
10820 else
10821 $as_unset lt_cv_path_LD
10823 test -z "${LDCXX+set}" || LD=$LDCXX
10824 CC=${CXX-"c++"}
10825 compiler=$CC
10826 compiler_CXX=$CC
10827 for cc_temp in $compiler""; do
10828 case $cc_temp in
10829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10831 \-*) ;;
10832 *) break;;
10833 esac
10834 done
10835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10838 # We don't want -fno-exception wen compiling C++ code, so set the
10839 # no_builtin_flag separately
10840 if test "$GXX" = yes; then
10841 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10842 else
10843 lt_prog_compiler_no_builtin_flag_CXX=
10846 if test "$GXX" = yes; then
10847 # Set up default GNU C++ configuration
10850 # Check whether --with-gnu-ld was given.
10851 if test "${with_gnu_ld+set}" = set; then
10852 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10853 else
10854 with_gnu_ld=no
10857 ac_prog=ld
10858 if test "$GCC" = yes; then
10859 # Check if gcc -print-prog-name=ld gives a path.
10860 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10861 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10862 case $host in
10863 *-*-mingw*)
10864 # gcc leaves a trailing carriage return which upsets mingw
10865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10868 esac
10869 case $ac_prog in
10870 # Accept absolute paths.
10871 [\\/]* | ?:[\\/]*)
10872 re_direlt='/[^/][^/]*/\.\./'
10873 # Canonicalize the pathname of ld
10874 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10875 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10876 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10877 done
10878 test -z "$LD" && LD="$ac_prog"
10881 # If it fails, then pretend we aren't using GCC.
10882 ac_prog=ld
10885 # If it is relative, then search for the first ld in PATH.
10886 with_gnu_ld=unknown
10888 esac
10889 elif test "$with_gnu_ld" = yes; then
10890 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10891 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10892 else
10893 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10894 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10896 if test "${lt_cv_path_LD+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899 if test -z "$LD"; then
10900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10901 for ac_dir in $PATH; do
10902 IFS="$lt_save_ifs"
10903 test -z "$ac_dir" && ac_dir=.
10904 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10905 lt_cv_path_LD="$ac_dir/$ac_prog"
10906 # Check to see if the program is GNU ld. I'd rather use --version,
10907 # but apparently some variants of GNU ld only accept -v.
10908 # Break only if it was the GNU/non-GNU ld that we prefer.
10909 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10910 *GNU* | *'with BFD'*)
10911 test "$with_gnu_ld" != no && break
10914 test "$with_gnu_ld" != yes && break
10916 esac
10918 done
10919 IFS="$lt_save_ifs"
10920 else
10921 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10925 LD="$lt_cv_path_LD"
10926 if test -n "$LD"; then
10927 { echo "$as_me:$LINENO: result: $LD" >&5
10928 echo "${ECHO_T}$LD" >&6; }
10929 else
10930 { echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6; }
10933 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10934 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10935 { (exit 1); exit 1; }; }
10936 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10937 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10938 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10942 case `$LD -v 2>&1 </dev/null` in
10943 *GNU* | *'with BFD'*)
10944 lt_cv_prog_gnu_ld=yes
10947 lt_cv_prog_gnu_ld=no
10949 esac
10951 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10952 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10953 with_gnu_ld=$lt_cv_prog_gnu_ld
10957 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10958 # archiving commands below assume that GNU ld is being used.
10959 if test "$with_gnu_ld" = yes; then
10960 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961 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'
10963 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10966 # If archive_cmds runs LD, not CC, wlarc should be empty
10967 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10968 # investigate it a little bit more. (MM)
10969 wlarc='${wl}'
10971 # ancient GNU ld didn't support --whole-archive et. al.
10972 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10973 grep 'no-whole-archive' > /dev/null; then
10974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10975 else
10976 whole_archive_flag_spec_CXX=
10978 else
10979 with_gnu_ld=no
10980 wlarc=
10982 # A generic and very simple default shared library creation
10983 # command for GNU C++ for the case where it uses the native
10984 # linker, instead of GNU ld. If possible, this setting should
10985 # overridden to take advantage of the native linker features on
10986 # the platform it is being used on.
10987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10990 # Commands to make compiler produce verbose output that lists
10991 # what "hidden" libraries, object files and flags are used when
10992 # linking a shared library.
10993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10995 else
10996 GXX=no
10997 with_gnu_ld=no
10998 wlarc=
11001 # PORTME: fill in a description of your system's C++ link characteristics
11002 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11003 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11004 ld_shlibs_CXX=yes
11005 case $host_os in
11006 aix3*)
11007 # FIXME: insert proper C++ library support
11008 ld_shlibs_CXX=no
11010 aix4* | aix5*)
11011 if test "$host_cpu" = ia64; then
11012 # On IA64, the linker does run time linking by default, so we don't
11013 # have to do anything special.
11014 aix_use_runtimelinking=no
11015 exp_sym_flag='-Bexport'
11016 no_entry_flag=""
11017 else
11018 aix_use_runtimelinking=no
11020 # Test if we are trying to use run time linking or normal
11021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11022 # need to do runtime linking.
11023 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11024 for ld_flag in $LDFLAGS; do
11025 case $ld_flag in
11026 *-brtl*)
11027 aix_use_runtimelinking=yes
11028 break
11030 esac
11031 done
11033 esac
11035 exp_sym_flag='-bexport'
11036 no_entry_flag='-bnoentry'
11039 # When large executables or shared objects are built, AIX ld can
11040 # have problems creating the table of contents. If linking a library
11041 # or program results in "error TOC overflow" add -mminimal-toc to
11042 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11043 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11045 archive_cmds_CXX=''
11046 hardcode_direct_CXX=yes
11047 hardcode_libdir_separator_CXX=':'
11048 link_all_deplibs_CXX=yes
11050 if test "$GXX" = yes; then
11051 case $host_os in aix4.[012]|aix4.[012].*)
11052 # We only want to do this on AIX 4.2 and lower, the check
11053 # below for broken collect2 doesn't work under 4.3+
11054 collect2name=`${CC} -print-prog-name=collect2`
11055 if test -f "$collect2name" && \
11056 strings "$collect2name" | grep resolve_lib_name >/dev/null
11057 then
11058 # We have reworked collect2
11060 else
11061 # We have old collect2
11062 hardcode_direct_CXX=unsupported
11063 # It fails to find uninstalled libraries when the uninstalled
11064 # path is not listed in the libpath. Setting hardcode_minus_L
11065 # to unsupported forces relinking
11066 hardcode_minus_L_CXX=yes
11067 hardcode_libdir_flag_spec_CXX='-L$libdir'
11068 hardcode_libdir_separator_CXX=
11071 esac
11072 shared_flag='-shared'
11073 if test "$aix_use_runtimelinking" = yes; then
11074 shared_flag="$shared_flag "'${wl}-G'
11076 else
11077 # not using gcc
11078 if test "$host_cpu" = ia64; then
11079 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11080 # chokes on -Wl,-G. The following line is correct:
11081 shared_flag='-G'
11082 else
11083 if test "$aix_use_runtimelinking" = yes; then
11084 shared_flag='${wl}-G'
11085 else
11086 shared_flag='${wl}-bM:SRE'
11091 # It seems that -bexpall does not export symbols beginning with
11092 # underscore (_), so it is better to generate a list of symbols to export.
11093 always_export_symbols_CXX=yes
11094 if test "$aix_use_runtimelinking" = yes; then
11095 # Warning - without using the other runtime loading flags (-brtl),
11096 # -berok will link without error, but may produce a broken library.
11097 allow_undefined_flag_CXX='-berok'
11098 # Determine the default libpath from the value encoded in an empty executable.
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11107 main ()
11111 return 0;
11113 _ACEOF
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (ac_try="$ac_link"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_link") 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && {
11128 test -z "$ac_cxx_werror_flag" ||
11129 test ! -s conftest.err
11130 } && test -s conftest$ac_exeext &&
11131 $as_test_x conftest$ac_exeext; then
11133 lt_aix_libpath_sed='
11134 /Import File Strings/,/^$/ {
11135 /^0/ {
11136 s/^0 *\(.*\)$/\1/
11140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141 # Check for a 64-bit object if we didn't find anything.
11142 if test -z "$aix_libpath"; then
11143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11153 conftest$ac_exeext conftest.$ac_ext
11154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11156 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11158 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"
11159 else
11160 if test "$host_cpu" = ia64; then
11161 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11162 allow_undefined_flag_CXX="-z nodefs"
11163 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"
11164 else
11165 # Determine the default libpath from the value encoded in an empty executable.
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h. */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11174 main ()
11178 return 0;
11180 _ACEOF
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_link") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_cxx_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest$ac_exeext &&
11198 $as_test_x conftest$ac_exeext; then
11200 lt_aix_libpath_sed='
11201 /Import File Strings/,/^$/ {
11202 /^0/ {
11203 s/^0 *\(.*\)$/\1/
11207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208 # Check for a 64-bit object if we didn't find anything.
11209 if test -z "$aix_libpath"; then
11210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11220 conftest$ac_exeext conftest.$ac_ext
11221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11223 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11224 # Warning - without using the other run time loading flags,
11225 # -berok will link without error, but may produce a broken library.
11226 no_undefined_flag_CXX=' ${wl}-bernotok'
11227 allow_undefined_flag_CXX=' ${wl}-berok'
11228 # Exported symbols can be pulled into shared objects from archives
11229 whole_archive_flag_spec_CXX='$convenience'
11230 archive_cmds_need_lc_CXX=yes
11231 # This is similar to how AIX traditionally builds its shared libraries.
11232 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'
11237 beos*)
11238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11239 allow_undefined_flag_CXX=unsupported
11240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11241 # support --undefined. This deserves some investigation. FIXME
11242 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11243 else
11244 ld_shlibs_CXX=no
11248 chorus*)
11249 case $cc_basename in
11251 # FIXME: insert proper C++ library support
11252 ld_shlibs_CXX=no
11254 esac
11257 cygwin* | mingw* | pw32*)
11258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11259 # as there is no search path for DLLs.
11260 hardcode_libdir_flag_spec_CXX='-L$libdir'
11261 allow_undefined_flag_CXX=unsupported
11262 always_export_symbols_CXX=no
11263 enable_shared_with_static_runtimes_CXX=yes
11265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11266 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'
11267 # If the export-symbols file already is a .def file (1st line
11268 # is EXPORTS), use it as is; otherwise, prepend...
11269 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11270 cp $export_symbols $output_objdir/$soname.def;
11271 else
11272 echo EXPORTS > $output_objdir/$soname.def;
11273 cat $export_symbols >> $output_objdir/$soname.def;
11275 $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'
11276 else
11277 ld_shlibs_CXX=no
11280 darwin* | rhapsody*)
11281 case $host_os in
11282 rhapsody* | darwin1.[012])
11283 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11285 *) # Darwin 1.3 on
11286 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11287 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11288 else
11289 case ${MACOSX_DEPLOYMENT_TARGET} in
11290 10.[012])
11291 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11293 10.*)
11294 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11296 esac
11299 esac
11300 archive_cmds_need_lc_CXX=no
11301 hardcode_direct_CXX=no
11302 hardcode_automatic_CXX=yes
11303 hardcode_shlibpath_var_CXX=unsupported
11304 whole_archive_flag_spec_CXX=''
11305 link_all_deplibs_CXX=yes
11307 if test "$GXX" = yes ; then
11308 lt_int_apple_cc_single_mod=no
11309 output_verbose_link_cmd='echo'
11310 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11311 lt_int_apple_cc_single_mod=yes
11313 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11314 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11315 else
11316 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'
11318 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11319 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11320 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11321 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}'
11322 else
11323 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}'
11325 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}'
11326 else
11327 case $cc_basename in
11328 xlc*)
11329 output_verbose_link_cmd='echo'
11330 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11331 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11333 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11334 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}'
11337 ld_shlibs_CXX=no
11339 esac
11343 dgux*)
11344 case $cc_basename in
11345 ec++*)
11346 # FIXME: insert proper C++ library support
11347 ld_shlibs_CXX=no
11349 ghcx*)
11350 # Green Hills C++ Compiler
11351 # FIXME: insert proper C++ library support
11352 ld_shlibs_CXX=no
11355 # FIXME: insert proper C++ library support
11356 ld_shlibs_CXX=no
11358 esac
11360 freebsd[12]*)
11361 # C++ shared libraries reported to be fairly broken before switch to ELF
11362 ld_shlibs_CXX=no
11364 freebsd-elf*)
11365 archive_cmds_need_lc_CXX=no
11367 freebsd* | dragonfly*)
11368 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11369 # conventions
11370 ld_shlibs_CXX=yes
11372 gnu*)
11374 hpux9*)
11375 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11376 hardcode_libdir_separator_CXX=:
11377 export_dynamic_flag_spec_CXX='${wl}-E'
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 case $cc_basename in
11384 CC*)
11385 # FIXME: insert proper C++ library support
11386 ld_shlibs_CXX=no
11388 aCC*)
11389 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'
11390 # Commands to make compiler produce verbose output that lists
11391 # what "hidden" libraries, object files and flags are used when
11392 # linking a shared library.
11394 # There doesn't appear to be a way to prevent this compiler from
11395 # explicitly linking system object files so we need to strip them
11396 # from the output so that they don't get included in the library
11397 # dependencies.
11398 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'
11401 if test "$GXX" = yes; then
11402 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'
11403 else
11404 # FIXME: insert proper C++ library support
11405 ld_shlibs_CXX=no
11408 esac
11410 hpux10*|hpux11*)
11411 if test $with_gnu_ld = no; then
11412 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11413 hardcode_libdir_separator_CXX=:
11415 case $host_cpu in
11416 hppa*64*|ia64*) ;;
11418 export_dynamic_flag_spec_CXX='${wl}-E'
11420 esac
11422 case $host_cpu in
11423 hppa*64*|ia64*)
11424 hardcode_direct_CXX=no
11425 hardcode_shlibpath_var_CXX=no
11428 hardcode_direct_CXX=yes
11429 hardcode_minus_L_CXX=yes # Not in the search PATH,
11430 # but as the default
11431 # location of the library.
11433 esac
11435 case $cc_basename in
11436 CC*)
11437 # FIXME: insert proper C++ library support
11438 ld_shlibs_CXX=no
11440 aCC*)
11441 case $host_cpu in
11442 hppa*64*)
11443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11445 ia64*)
11446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11449 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11451 esac
11452 # Commands to make compiler produce verbose output that lists
11453 # what "hidden" libraries, object files and flags are used when
11454 # linking a shared library.
11456 # There doesn't appear to be a way to prevent this compiler from
11457 # explicitly linking system object files so we need to strip them
11458 # from the output so that they don't get included in the library
11459 # dependencies.
11460 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'
11463 if test "$GXX" = yes; then
11464 if test $with_gnu_ld = no; then
11465 case $host_cpu in
11466 hppa*64*)
11467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11469 ia64*)
11470 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11473 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'
11475 esac
11477 else
11478 # FIXME: insert proper C++ library support
11479 ld_shlibs_CXX=no
11482 esac
11484 interix[3-9]*)
11485 hardcode_direct_CXX=no
11486 hardcode_shlibpath_var_CXX=no
11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11488 export_dynamic_flag_spec_CXX='${wl}-E'
11489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11490 # Instead, shared libraries are loaded at an image base (0x10000000 by
11491 # default) and relocated if they conflict, which is a slow very memory
11492 # consuming and fragmenting process. To avoid this, we pick a random,
11493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11495 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'
11496 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'
11498 irix5* | irix6*)
11499 case $cc_basename in
11500 CC*)
11501 # SGI C++
11502 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'
11504 # Archives containing C++ object files must be created using
11505 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11506 # necessary to make sure instantiated templates are included
11507 # in the archive.
11508 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11511 if test "$GXX" = yes; then
11512 if test "$with_gnu_ld" = no; then
11513 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'
11514 else
11515 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'
11518 link_all_deplibs_CXX=yes
11520 esac
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11522 hardcode_libdir_separator_CXX=:
11524 linux* | k*bsd*-gnu)
11525 case $cc_basename in
11526 KCC*)
11527 # Kuck and Associates, Inc. (KAI) C++ Compiler
11529 # KCC will only create a shared library if the output file
11530 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11531 # to its proper name (with version) after linking.
11532 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'
11533 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'
11534 # Commands to make compiler produce verbose output that lists
11535 # what "hidden" libraries, object files and flags are used when
11536 # linking a shared library.
11538 # There doesn't appear to be a way to prevent this compiler from
11539 # explicitly linking system object files so we need to strip them
11540 # from the output so that they don't get included in the library
11541 # dependencies.
11542 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'
11544 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11547 # Archives containing C++ object files must be created using
11548 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11549 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11551 icpc*)
11552 # Intel C++
11553 with_gnu_ld=yes
11554 # version 8.0 and above of icpc choke on multiply defined symbols
11555 # if we add $predep_objects and $postdep_objects, however 7.1 and
11556 # earlier do not add the objects themselves.
11557 case `$CC -V 2>&1` in
11558 *"Version 7."*)
11559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11560 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'
11562 *) # Version 8.0 or newer
11563 tmp_idyn=
11564 case $host_cpu in
11565 ia64*) tmp_idyn=' -i_dynamic';;
11566 esac
11567 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11568 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'
11570 esac
11571 archive_cmds_need_lc_CXX=no
11572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11574 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11576 pgCC*)
11577 # Portland Group C++ compiler
11578 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11579 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'
11581 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11583 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'
11585 cxx*)
11586 # Compaq C++
11587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11588 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'
11590 runpath_var=LD_RUN_PATH
11591 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11592 hardcode_libdir_separator_CXX=:
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11598 # There doesn't appear to be a way to prevent this compiler from
11599 # explicitly linking system object files so we need to strip them
11600 # from the output so that they don't get included in the library
11601 # dependencies.
11602 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'
11605 case `$CC -V 2>&1 | sed 5q` in
11606 *Sun\ C*)
11607 # Sun C++ 5.9
11608 no_undefined_flag_CXX=' -zdefs'
11609 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11610 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11611 hardcode_libdir_flag_spec_CXX='-R$libdir'
11612 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11614 # Not sure whether something based on
11615 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11616 # would be better.
11617 output_verbose_link_cmd='echo'
11619 # Archives containing C++ object files must be created using
11620 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11621 # necessary to make sure instantiated templates are included
11622 # in the archive.
11623 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11625 esac
11627 esac
11629 lynxos*)
11630 # FIXME: insert proper C++ library support
11631 ld_shlibs_CXX=no
11633 m88k*)
11634 # FIXME: insert proper C++ library support
11635 ld_shlibs_CXX=no
11637 mvs*)
11638 case $cc_basename in
11639 cxx*)
11640 # FIXME: insert proper C++ library support
11641 ld_shlibs_CXX=no
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11647 esac
11649 netbsd*)
11650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11651 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11652 wlarc=
11653 hardcode_libdir_flag_spec_CXX='-R$libdir'
11654 hardcode_direct_CXX=yes
11655 hardcode_shlibpath_var_CXX=no
11657 # Workaround some broken pre-1.5 toolchains
11658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11660 openbsd2*)
11661 # C++ shared libraries are fairly broken
11662 ld_shlibs_CXX=no
11664 openbsd*)
11665 if test -f /usr/libexec/ld.so; then
11666 hardcode_direct_CXX=yes
11667 hardcode_shlibpath_var_CXX=no
11668 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11671 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11672 export_dynamic_flag_spec_CXX='${wl}-E'
11673 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11675 output_verbose_link_cmd='echo'
11676 else
11677 ld_shlibs_CXX=no
11680 osf3*)
11681 case $cc_basename in
11682 KCC*)
11683 # Kuck and Associates, Inc. (KAI) C++ Compiler
11685 # KCC will only create a shared library if the output file
11686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11687 # to its proper name (with version) after linking.
11688 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'
11690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11691 hardcode_libdir_separator_CXX=:
11693 # Archives containing C++ object files must be created using
11694 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11698 RCC*)
11699 # Rational C++ 2.4.1
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11703 cxx*)
11704 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11705 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'
11707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708 hardcode_libdir_separator_CXX=:
11710 # Commands to make compiler produce verbose output that lists
11711 # what "hidden" libraries, object files and flags are used when
11712 # linking a shared library.
11714 # There doesn't appear to be a way to prevent this compiler from
11715 # explicitly linking system object files so we need to strip them
11716 # from the output so that they don't get included in the library
11717 # dependencies.
11718 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'
11721 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11722 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11723 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'
11725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11726 hardcode_libdir_separator_CXX=:
11728 # Commands to make compiler produce verbose output that lists
11729 # what "hidden" libraries, object files and flags are used when
11730 # linking a shared library.
11731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11733 else
11734 # FIXME: insert proper C++ library support
11735 ld_shlibs_CXX=no
11738 esac
11740 osf4* | osf5*)
11741 case $cc_basename in
11742 KCC*)
11743 # Kuck and Associates, Inc. (KAI) C++ Compiler
11745 # KCC will only create a shared library if the output file
11746 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11747 # to its proper name (with version) after linking.
11748 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'
11750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11751 hardcode_libdir_separator_CXX=:
11753 # Archives containing C++ object files must be created using
11754 # the KAI C++ compiler.
11755 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11757 RCC*)
11758 # Rational C++ 2.4.1
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11762 cxx*)
11763 allow_undefined_flag_CXX=' -expect_unresolved \*'
11764 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'
11765 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11766 echo "-hidden">> $lib.exp~
11767 $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~
11768 $rm $lib.exp'
11770 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11771 hardcode_libdir_separator_CXX=:
11773 # Commands to make compiler produce verbose output that lists
11774 # what "hidden" libraries, object files and flags are used when
11775 # linking a shared library.
11777 # There doesn't appear to be a way to prevent this compiler from
11778 # explicitly linking system object files so we need to strip them
11779 # from the output so that they don't get included in the library
11780 # dependencies.
11781 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'
11784 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11786 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'
11788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11789 hardcode_libdir_separator_CXX=:
11791 # Commands to make compiler produce verbose output that lists
11792 # what "hidden" libraries, object files and flags are used when
11793 # linking a shared library.
11794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11796 else
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11801 esac
11803 psos*)
11804 # FIXME: insert proper C++ library support
11805 ld_shlibs_CXX=no
11807 sunos4*)
11808 case $cc_basename in
11809 CC*)
11810 # Sun C++ 4.x
11811 # FIXME: insert proper C++ library support
11812 ld_shlibs_CXX=no
11814 lcc*)
11815 # Lucid
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11820 # FIXME: insert proper C++ library support
11821 ld_shlibs_CXX=no
11823 esac
11825 solaris*)
11826 case $cc_basename in
11827 CC*)
11828 # Sun C++ 4.2, 5.x and Centerline C++
11829 archive_cmds_need_lc_CXX=yes
11830 no_undefined_flag_CXX=' -zdefs'
11831 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11832 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11833 $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'
11835 hardcode_libdir_flag_spec_CXX='-R$libdir'
11836 hardcode_shlibpath_var_CXX=no
11837 case $host_os in
11838 solaris2.[0-5] | solaris2.[0-5].*) ;;
11840 # The compiler driver will combine and reorder linker options,
11841 # but understands `-z linker_flag'.
11842 # Supported since Solaris 2.6 (maybe 2.5.1?)
11843 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11845 esac
11846 link_all_deplibs_CXX=yes
11848 output_verbose_link_cmd='echo'
11850 # Archives containing C++ object files must be created using
11851 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11852 # necessary to make sure instantiated templates are included
11853 # in the archive.
11854 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11856 gcx*)
11857 # Green Hills C++ Compiler
11858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11860 # The C++ compiler must be used to create the archive.
11861 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11864 # GNU C++ compiler with Solaris linker
11865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11866 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11867 if $CC --version | grep -v '^2\.7' > /dev/null; then
11868 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11869 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11870 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11872 # Commands to make compiler produce verbose output that lists
11873 # what "hidden" libraries, object files and flags are used when
11874 # linking a shared library.
11875 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11876 else
11877 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11878 # platform.
11879 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11880 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11881 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11883 # Commands to make compiler produce verbose output that lists
11884 # what "hidden" libraries, object files and flags are used when
11885 # linking a shared library.
11886 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11889 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11890 case $host_os in
11891 solaris2.[0-5] | solaris2.[0-5].*) ;;
11893 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11895 esac
11898 esac
11900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11901 no_undefined_flag_CXX='${wl}-z,text'
11902 archive_cmds_need_lc_CXX=no
11903 hardcode_shlibpath_var_CXX=no
11904 runpath_var='LD_RUN_PATH'
11906 case $cc_basename in
11907 CC*)
11908 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11909 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11912 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915 esac
11917 sysv5* | sco3.2v5* | sco5v6*)
11918 # Note: We can NOT use -z defs as we might desire, because we do not
11919 # link with -lc, and that would cause any symbols used from libc to
11920 # always be unresolved, which means just about no library would
11921 # ever link correctly. If we're not using GNU ld we use -z text
11922 # though, which does catch some bad symbols but isn't as heavy-handed
11923 # as -z defs.
11924 # For security reasons, it is highly recommended that you always
11925 # use absolute paths for naming shared libraries, and exclude the
11926 # DT_RUNPATH tag from executables and libraries. But doing so
11927 # requires that you compile everything twice, which is a pain.
11928 # So that behaviour is only enabled if SCOABSPATH is set to a
11929 # non-empty value in the environment. Most likely only useful for
11930 # creating official distributions of packages.
11931 # This is a hack until libtool officially supports absolute path
11932 # names for shared libraries.
11933 no_undefined_flag_CXX='${wl}-z,text'
11934 allow_undefined_flag_CXX='${wl}-z,nodefs'
11935 archive_cmds_need_lc_CXX=no
11936 hardcode_shlibpath_var_CXX=no
11937 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11938 hardcode_libdir_separator_CXX=':'
11939 link_all_deplibs_CXX=yes
11940 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11941 runpath_var='LD_RUN_PATH'
11943 case $cc_basename in
11944 CC*)
11945 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11950 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11952 esac
11954 tandem*)
11955 case $cc_basename in
11956 NCC*)
11957 # NonStop-UX NCC 3.20
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11962 # FIXME: insert proper C++ library support
11963 ld_shlibs_CXX=no
11965 esac
11967 vxworks*)
11968 # FIXME: insert proper C++ library support
11969 ld_shlibs_CXX=no
11972 # FIXME: insert proper C++ library support
11973 ld_shlibs_CXX=no
11975 esac
11976 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11977 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11978 test "$ld_shlibs_CXX" = no && can_build_shared=no
11980 GCC_CXX="$GXX"
11981 LD_CXX="$LD"
11984 cat > conftest.$ac_ext <<EOF
11985 class Foo
11987 public:
11988 Foo (void) { a = 0; }
11989 private:
11990 int a;
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; then
11999 # Parse the compiler output and extract the necessary
12000 # objects, libraries and library flags.
12002 # Sentinel used to keep track of whether or not we are before
12003 # the conftest object file.
12004 pre_test_object_deps_done=no
12006 # The `*' in the case matches for architectures that use `case' in
12007 # $output_verbose_cmd can trigger glob expansion during the loop
12008 # eval without this substitution.
12009 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12011 for p in `eval $output_verbose_link_cmd`; do
12012 case $p in
12014 -L* | -R* | -l*)
12015 # Some compilers place space between "-{L,R}" and the path.
12016 # Remove the space.
12017 if test $p = "-L" \
12018 || test $p = "-R"; then
12019 prev=$p
12020 continue
12021 else
12022 prev=
12025 if test "$pre_test_object_deps_done" = no; then
12026 case $p in
12027 -L* | -R*)
12028 # Internal compiler library paths should come after those
12029 # provided the user. The postdeps already come after the
12030 # user supplied libs so there is no need to process them.
12031 if test -z "$compiler_lib_search_path_CXX"; then
12032 compiler_lib_search_path_CXX="${prev}${p}"
12033 else
12034 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12037 # The "-l" case would never come before the object being
12038 # linked, so don't bother handling this case.
12039 esac
12040 else
12041 if test -z "$postdeps_CXX"; then
12042 postdeps_CXX="${prev}${p}"
12043 else
12044 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12049 *.$objext)
12050 # This assumes that the test object file only shows up
12051 # once in the compiler output.
12052 if test "$p" = "conftest.$objext"; then
12053 pre_test_object_deps_done=yes
12054 continue
12057 if test "$pre_test_object_deps_done" = no; then
12058 if test -z "$predep_objects_CXX"; then
12059 predep_objects_CXX="$p"
12060 else
12061 predep_objects_CXX="$predep_objects_CXX $p"
12063 else
12064 if test -z "$postdep_objects_CXX"; then
12065 postdep_objects_CXX="$p"
12066 else
12067 postdep_objects_CXX="$postdep_objects_CXX $p"
12072 *) ;; # Ignore the rest.
12074 esac
12075 done
12077 # Clean up.
12078 rm -f a.out a.exe
12079 else
12080 echo "libtool.m4: error: problem compiling CXX test program"
12083 $rm -f confest.$objext
12085 # PORTME: override above test on systems where it is broken
12086 case $host_os in
12087 interix[3-9]*)
12088 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12089 # hack all around it, let's just trust "g++" to DTRT.
12090 predep_objects_CXX=
12091 postdep_objects_CXX=
12092 postdeps_CXX=
12095 linux*)
12096 case `$CC -V 2>&1 | sed 5q` in
12097 *Sun\ C*)
12098 # Sun C++ 5.9
12100 # The more standards-conforming stlport4 library is
12101 # incompatible with the Cstd library. Avoid specifying
12102 # it if it's in CXXFLAGS. Ignore libCrun as
12103 # -library=stlport4 depends on it.
12104 case " $CXX $CXXFLAGS " in
12105 *" -library=stlport4 "*)
12106 solaris_use_stlport4=yes
12108 esac
12109 if test "$solaris_use_stlport4" != yes; then
12110 postdeps_CXX='-library=Cstd -library=Crun'
12113 esac
12116 solaris*)
12117 case $cc_basename in
12118 CC*)
12119 # The more standards-conforming stlport4 library is
12120 # incompatible with the Cstd library. Avoid specifying
12121 # it if it's in CXXFLAGS. Ignore libCrun as
12122 # -library=stlport4 depends on it.
12123 case " $CXX $CXXFLAGS " in
12124 *" -library=stlport4 "*)
12125 solaris_use_stlport4=yes
12127 esac
12129 # Adding this requires a known-good setup of shared libraries for
12130 # Sun compiler versions before 5.6, else PIC objects from an old
12131 # archive will be linked into the output, leading to subtle bugs.
12132 if test "$solaris_use_stlport4" != yes; then
12133 postdeps_CXX='-library=Cstd -library=Crun'
12136 esac
12138 esac
12141 case " $postdeps_CXX " in
12142 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12143 esac
12145 lt_prog_compiler_wl_CXX=
12146 lt_prog_compiler_pic_CXX=
12147 lt_prog_compiler_static_CXX=
12149 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12150 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12152 # C++ specific cases for pic, static, wl, etc.
12153 if test "$GXX" = yes; then
12154 lt_prog_compiler_wl_CXX='-Wl,'
12155 lt_prog_compiler_static_CXX='-static'
12157 case $host_os in
12158 aix*)
12159 # All AIX code is PIC.
12160 if test "$host_cpu" = ia64; then
12161 # AIX 5 now supports IA64 processor
12162 lt_prog_compiler_static_CXX='-Bstatic'
12165 amigaos*)
12166 # FIXME: we need at least 68020 code to build shared libraries, but
12167 # adding the `-m68020' flag to GCC prevents building anything better,
12168 # like `-m68040'.
12169 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12172 # PIC is the default for these OSes.
12174 mingw* | cygwin* | os2* | pw32*)
12175 # This hack is so that the source file can tell whether it is being
12176 # built for inclusion in a dll (and should export symbols for example).
12177 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12178 # (--disable-auto-import) libraries
12179 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12181 darwin* | rhapsody*)
12182 # PIC is the default on this platform
12183 # Common symbols not allowed in MH_DYLIB files
12184 lt_prog_compiler_pic_CXX='-fno-common'
12186 *djgpp*)
12187 # DJGPP does not support shared libraries at all
12188 lt_prog_compiler_pic_CXX=
12190 interix[3-9]*)
12191 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12192 # Instead, we relocate shared libraries at runtime.
12194 sysv4*MP*)
12195 if test -d /usr/nec; then
12196 lt_prog_compiler_pic_CXX=-Kconform_pic
12199 hpux*)
12200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12201 # not for PA HP-UX.
12202 case $host_cpu in
12203 hppa*64*|ia64*)
12206 lt_prog_compiler_pic_CXX='-fPIC'
12208 esac
12211 lt_prog_compiler_pic_CXX='-fPIC'
12213 esac
12214 else
12215 case $host_os in
12216 aix4* | aix5*)
12217 # All AIX code is PIC.
12218 if test "$host_cpu" = ia64; then
12219 # AIX 5 now supports IA64 processor
12220 lt_prog_compiler_static_CXX='-Bstatic'
12221 else
12222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12225 chorus*)
12226 case $cc_basename in
12227 cxch68*)
12228 # Green Hills C++ Compiler
12229 # _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"
12231 esac
12233 darwin*)
12234 # PIC is the default on this platform
12235 # Common symbols not allowed in MH_DYLIB files
12236 case $cc_basename in
12237 xlc*)
12238 lt_prog_compiler_pic_CXX='-qnocommon'
12239 lt_prog_compiler_wl_CXX='-Wl,'
12241 esac
12243 dgux*)
12244 case $cc_basename in
12245 ec++*)
12246 lt_prog_compiler_pic_CXX='-KPIC'
12248 ghcx*)
12249 # Green Hills C++ Compiler
12250 lt_prog_compiler_pic_CXX='-pic'
12254 esac
12256 freebsd* | dragonfly*)
12257 # FreeBSD uses GNU C++
12259 hpux9* | hpux10* | hpux11*)
12260 case $cc_basename in
12261 CC*)
12262 lt_prog_compiler_wl_CXX='-Wl,'
12263 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12264 if test "$host_cpu" != ia64; then
12265 lt_prog_compiler_pic_CXX='+Z'
12268 aCC*)
12269 lt_prog_compiler_wl_CXX='-Wl,'
12270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12271 case $host_cpu in
12272 hppa*64*|ia64*)
12273 # +Z the default
12276 lt_prog_compiler_pic_CXX='+Z'
12278 esac
12282 esac
12284 interix*)
12285 # This is c89, which is MS Visual C++ (no shared libs)
12286 # Anyone wants to do a port?
12288 irix5* | irix6* | nonstopux*)
12289 case $cc_basename in
12290 CC*)
12291 lt_prog_compiler_wl_CXX='-Wl,'
12292 lt_prog_compiler_static_CXX='-non_shared'
12293 # CC pic flag -KPIC is the default.
12297 esac
12299 linux* | k*bsd*-gnu)
12300 case $cc_basename in
12301 KCC*)
12302 # KAI C++ Compiler
12303 lt_prog_compiler_wl_CXX='--backend -Wl,'
12304 lt_prog_compiler_pic_CXX='-fPIC'
12306 icpc* | ecpc*)
12307 # Intel C++
12308 lt_prog_compiler_wl_CXX='-Wl,'
12309 lt_prog_compiler_pic_CXX='-KPIC'
12310 lt_prog_compiler_static_CXX='-static'
12312 pgCC*)
12313 # Portland Group C++ compiler.
12314 lt_prog_compiler_wl_CXX='-Wl,'
12315 lt_prog_compiler_pic_CXX='-fpic'
12316 lt_prog_compiler_static_CXX='-Bstatic'
12318 cxx*)
12319 # Compaq C++
12320 # Make sure the PIC flag is empty. It appears that all Alpha
12321 # Linux and Compaq Tru64 Unix objects are PIC.
12322 lt_prog_compiler_pic_CXX=
12323 lt_prog_compiler_static_CXX='-non_shared'
12326 case `$CC -V 2>&1 | sed 5q` in
12327 *Sun\ C*)
12328 # Sun C++ 5.9
12329 lt_prog_compiler_pic_CXX='-KPIC'
12330 lt_prog_compiler_static_CXX='-Bstatic'
12331 lt_prog_compiler_wl_CXX='-Qoption ld '
12333 esac
12335 esac
12337 lynxos*)
12339 m88k*)
12341 mvs*)
12342 case $cc_basename in
12343 cxx*)
12344 lt_prog_compiler_pic_CXX='-W c,exportall'
12348 esac
12350 netbsd*)
12352 osf3* | osf4* | osf5*)
12353 case $cc_basename in
12354 KCC*)
12355 lt_prog_compiler_wl_CXX='--backend -Wl,'
12357 RCC*)
12358 # Rational C++ 2.4.1
12359 lt_prog_compiler_pic_CXX='-pic'
12361 cxx*)
12362 # Digital/Compaq C++
12363 lt_prog_compiler_wl_CXX='-Wl,'
12364 # Make sure the PIC flag is empty. It appears that all Alpha
12365 # Linux and Compaq Tru64 Unix objects are PIC.
12366 lt_prog_compiler_pic_CXX=
12367 lt_prog_compiler_static_CXX='-non_shared'
12371 esac
12373 psos*)
12375 solaris*)
12376 case $cc_basename in
12377 CC*)
12378 # Sun C++ 4.2, 5.x and Centerline C++
12379 lt_prog_compiler_pic_CXX='-KPIC'
12380 lt_prog_compiler_static_CXX='-Bstatic'
12381 lt_prog_compiler_wl_CXX='-Qoption ld '
12383 gcx*)
12384 # Green Hills C++ Compiler
12385 lt_prog_compiler_pic_CXX='-PIC'
12389 esac
12391 sunos4*)
12392 case $cc_basename in
12393 CC*)
12394 # Sun C++ 4.x
12395 lt_prog_compiler_pic_CXX='-pic'
12396 lt_prog_compiler_static_CXX='-Bstatic'
12398 lcc*)
12399 # Lucid
12400 lt_prog_compiler_pic_CXX='-pic'
12404 esac
12406 tandem*)
12407 case $cc_basename in
12408 NCC*)
12409 # NonStop-UX NCC 3.20
12410 lt_prog_compiler_pic_CXX='-KPIC'
12414 esac
12416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12417 case $cc_basename in
12418 CC*)
12419 lt_prog_compiler_wl_CXX='-Wl,'
12420 lt_prog_compiler_pic_CXX='-KPIC'
12421 lt_prog_compiler_static_CXX='-Bstatic'
12423 esac
12425 vxworks*)
12428 lt_prog_compiler_can_build_shared_CXX=no
12430 esac
12433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12434 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12437 # Check to make sure the PIC flag actually works.
12439 if test -n "$lt_prog_compiler_pic_CXX"; then
12441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12443 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446 lt_prog_compiler_pic_works_CXX=no
12447 ac_outfile=conftest.$ac_objext
12448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12449 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12450 # Insert the option either (1) after the last *FLAGS variable, or
12451 # (2) before a word containing "conftest.", or (3) at the end.
12452 # Note that $ac_compile itself does not contain backslashes and begins
12453 # with a dollar sign (not a hyphen), so the echo should work correctly.
12454 # The option is referenced via a variable to avoid confusing sed.
12455 lt_compile=`echo "$ac_compile" | $SED \
12456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458 -e 's:$: $lt_compiler_flag:'`
12459 (eval echo "\"\$as_me:12459: $lt_compile\"" >&5)
12460 (eval "$lt_compile" 2>conftest.err)
12461 ac_status=$?
12462 cat conftest.err >&5
12463 echo "$as_me:12463: \$? = $ac_status" >&5
12464 if (exit $ac_status) && test -s "$ac_outfile"; then
12465 # The compiler can only warn and ignore the option if not recognized
12466 # So say no if there are warnings other than the usual output.
12467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12470 lt_prog_compiler_pic_works_CXX=yes
12473 $rm conftest*
12476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12477 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12479 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12480 case $lt_prog_compiler_pic_CXX in
12481 "" | " "*) ;;
12482 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12483 esac
12484 else
12485 lt_prog_compiler_pic_CXX=
12486 lt_prog_compiler_can_build_shared_CXX=no
12490 case $host_os in
12491 # For platforms which do not support PIC, -DPIC is meaningless:
12492 *djgpp*)
12493 lt_prog_compiler_pic_CXX=
12496 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12498 esac
12501 # Check to make sure the static flag actually works.
12503 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12506 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509 lt_prog_compiler_static_works_CXX=no
12510 save_LDFLAGS="$LDFLAGS"
12511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12514 # The linker can only warn and ignore the option if not recognized
12515 # So say no if there are warnings
12516 if test -s conftest.err; then
12517 # Append any errors to the config.log.
12518 cat conftest.err 1>&5
12519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12521 if diff conftest.exp conftest.er2 >/dev/null; then
12522 lt_prog_compiler_static_works_CXX=yes
12524 else
12525 lt_prog_compiler_static_works_CXX=yes
12528 $rm conftest*
12529 LDFLAGS="$save_LDFLAGS"
12532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12533 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12535 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12537 else
12538 lt_prog_compiler_static_CXX=
12542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12544 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547 lt_cv_prog_compiler_c_o_CXX=no
12548 $rm -r conftest 2>/dev/null
12549 mkdir conftest
12550 cd conftest
12551 mkdir out
12552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12554 lt_compiler_flag="-o out/conftest2.$ac_objext"
12555 # Insert the option either (1) after the last *FLAGS variable, or
12556 # (2) before a word containing "conftest.", or (3) at the end.
12557 # Note that $ac_compile itself does not contain backslashes and begins
12558 # with a dollar sign (not a hyphen), so the echo should work correctly.
12559 lt_compile=`echo "$ac_compile" | $SED \
12560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12562 -e 's:$: $lt_compiler_flag:'`
12563 (eval echo "\"\$as_me:12563: $lt_compile\"" >&5)
12564 (eval "$lt_compile" 2>out/conftest.err)
12565 ac_status=$?
12566 cat out/conftest.err >&5
12567 echo "$as_me:12567: \$? = $ac_status" >&5
12568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12569 then
12570 # The compiler can only warn and ignore the option if not recognized
12571 # So say no if there are warnings
12572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12575 lt_cv_prog_compiler_c_o_CXX=yes
12578 chmod u+w . 2>&5
12579 $rm conftest*
12580 # SGI C++ compiler will create directory out/ii_files/ for
12581 # template instantiation
12582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12583 $rm out/* && rmdir out
12584 cd ..
12585 rmdir conftest
12586 $rm conftest*
12589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12593 hard_links="nottested"
12594 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12595 # do not overwrite the value of need_locks provided by the user
12596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12598 hard_links=yes
12599 $rm conftest*
12600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12601 touch conftest.a
12602 ln conftest.a conftest.b 2>&5 || hard_links=no
12603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12604 { echo "$as_me:$LINENO: result: $hard_links" >&5
12605 echo "${ECHO_T}$hard_links" >&6; }
12606 if test "$hard_links" = no; then
12607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12609 need_locks=warn
12611 else
12612 need_locks=no
12615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12619 case $host_os in
12620 aix4* | aix5*)
12621 # If we're using GNU nm, then we don't want the "-C" option.
12622 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12623 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12624 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'
12625 else
12626 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'
12629 pw32*)
12630 export_symbols_cmds_CXX="$ltdll_cmds"
12632 cygwin* | mingw*)
12633 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'
12636 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12638 esac
12640 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12641 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12642 test "$ld_shlibs_CXX" = no && can_build_shared=no
12645 # Do we need to explicitly link libc?
12647 case "x$archive_cmds_need_lc_CXX" in
12648 x|xyes)
12649 # Assume -lc should be added
12650 archive_cmds_need_lc_CXX=yes
12652 if test "$enable_shared" = yes && test "$GCC" = yes; then
12653 case $archive_cmds_CXX in
12654 *'~'*)
12655 # FIXME: we may have to deal with multi-command sequences.
12657 '$CC '*)
12658 # Test whether the compiler implicitly links with -lc since on some
12659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12660 # to ld, don't add -lc before -lgcc.
12661 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12663 $rm conftest*
12664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } 2>conftest.err; then
12671 soname=conftest
12672 lib=conftest
12673 libobjs=conftest.$ac_objext
12674 deplibs=
12675 wl=$lt_prog_compiler_wl_CXX
12676 pic_flag=$lt_prog_compiler_pic_CXX
12677 compiler_flags=-v
12678 linker_flags=-v
12679 verstring=
12680 output_objdir=.
12681 libname=conftest
12682 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12683 allow_undefined_flag_CXX=
12684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12685 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }
12689 then
12690 archive_cmds_need_lc_CXX=no
12691 else
12692 archive_cmds_need_lc_CXX=yes
12694 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12695 else
12696 cat conftest.err 1>&5
12698 $rm conftest*
12699 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12702 esac
12705 esac
12707 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12709 library_names_spec=
12710 libname_spec='lib$name'
12711 soname_spec=
12712 shrext_cmds=".so"
12713 postinstall_cmds=
12714 postuninstall_cmds=
12715 finish_cmds=
12716 finish_eval=
12717 shlibpath_var=
12718 shlibpath_overrides_runpath=unknown
12719 version_type=none
12720 dynamic_linker="$host_os ld.so"
12721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12723 need_lib_prefix=unknown
12724 hardcode_into_libs=no
12726 # when you set need_version to no, make sure it does not cause -set_version
12727 # flags to be left without arguments
12728 need_version=unknown
12730 case $host_os in
12731 aix3*)
12732 version_type=linux
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12734 shlibpath_var=LIBPATH
12736 # AIX 3 has no versioning support, so we append a major version to the name.
12737 soname_spec='${libname}${release}${shared_ext}$major'
12740 aix4* | aix5*)
12741 version_type=linux
12742 need_lib_prefix=no
12743 need_version=no
12744 hardcode_into_libs=yes
12745 if test "$host_cpu" = ia64; then
12746 # AIX 5 supports IA64
12747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 else
12750 # With GCC up to 2.95.x, collect2 would create an import file
12751 # for dependence libraries. The import file would start with
12752 # the line `#! .'. This would cause the generated library to
12753 # depend on `.', always an invalid library. This was fixed in
12754 # development snapshots of GCC prior to 3.0.
12755 case $host_os in
12756 aix4 | aix4.[01] | aix4.[01].*)
12757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12758 echo ' yes '
12759 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12761 else
12762 can_build_shared=no
12765 esac
12766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12767 # soname into executable. Probably we can add versioning support to
12768 # collect2, so additional links can be useful in future.
12769 if test "$aix_use_runtimelinking" = yes; then
12770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12771 # instead of lib<name>.a to let people know that these are not
12772 # typical AIX shared libraries.
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 else
12775 # We preserve .a as extension for shared libraries through AIX4.2
12776 # and later when we are not doing run time linking.
12777 library_names_spec='${libname}${release}.a $libname.a'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12780 shlibpath_var=LIBPATH
12784 amigaos*)
12785 library_names_spec='$libname.ixlibrary $libname.a'
12786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12787 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'
12790 beos*)
12791 library_names_spec='${libname}${shared_ext}'
12792 dynamic_linker="$host_os ld.so"
12793 shlibpath_var=LIBRARY_PATH
12796 bsdi[45]*)
12797 version_type=linux
12798 need_version=no
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12804 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12805 # the default ld.so.conf also contains /usr/contrib/lib and
12806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12807 # libtool to hard-code these into programs
12810 cygwin* | mingw* | pw32*)
12811 version_type=windows
12812 shrext_cmds=".dll"
12813 need_version=no
12814 need_lib_prefix=no
12816 case $GCC,$host_os in
12817 yes,cygwin* | yes,mingw* | yes,pw32*)
12818 library_names_spec='$libname.dll.a'
12819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12820 postinstall_cmds='base_file=`basename \${file}`~
12821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12822 dldir=$destdir/`dirname \$dlpath`~
12823 test -d \$dldir || mkdir -p \$dldir~
12824 $install_prog $dir/$dlname \$dldir/$dlname~
12825 chmod a+x \$dldir/$dlname'
12826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12827 dlpath=$dir/\$dldll~
12828 $rm \$dlpath'
12829 shlibpath_overrides_runpath=yes
12831 case $host_os in
12832 cygwin*)
12833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12837 mingw*)
12838 # MinGW DLLs use traditional 'lib' prefix
12839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12842 # It is most probably a Windows format PATH printed by
12843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12844 # path with ; separators, and with drive letters. We can handle the
12845 # drive letters (cygwin fileutils understands them), so leave them,
12846 # especially as we might pass files found there to a mingw objdump,
12847 # which wouldn't understand a cygwinified path. Ahh.
12848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12849 else
12850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12853 pw32*)
12854 # pw32 DLLs use 'pw' prefix rather than 'lib'
12855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12857 esac
12861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12863 esac
12864 dynamic_linker='Win32 ld.exe'
12865 # FIXME: first we should search . and the directory the executable is in
12866 shlibpath_var=PATH
12869 darwin* | rhapsody*)
12870 dynamic_linker="$host_os dyld"
12871 version_type=darwin
12872 need_lib_prefix=no
12873 need_version=no
12874 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12875 soname_spec='${libname}${release}${major}$shared_ext'
12876 shlibpath_overrides_runpath=yes
12877 shlibpath_var=DYLD_LIBRARY_PATH
12878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12883 dgux*)
12884 version_type=linux
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12892 freebsd1*)
12893 dynamic_linker=no
12896 freebsd* | dragonfly*)
12897 # DragonFly does not have aout. When/if they implement a new
12898 # versioning mechanism, adjust this.
12899 if test -x /usr/bin/objformat; then
12900 objformat=`/usr/bin/objformat`
12901 else
12902 case $host_os in
12903 freebsd[123]*) objformat=aout ;;
12904 *) objformat=elf ;;
12905 esac
12907 version_type=freebsd-$objformat
12908 case $version_type in
12909 freebsd-elf*)
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12911 need_version=no
12912 need_lib_prefix=no
12914 freebsd-*)
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12916 need_version=yes
12918 esac
12919 shlibpath_var=LD_LIBRARY_PATH
12920 case $host_os in
12921 freebsd2*)
12922 shlibpath_overrides_runpath=yes
12924 freebsd3.[01]* | freebsdelf3.[01]*)
12925 shlibpath_overrides_runpath=yes
12926 hardcode_into_libs=yes
12928 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12929 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12930 shlibpath_overrides_runpath=no
12931 hardcode_into_libs=yes
12933 *) # from 4.6 on, and DragonFly
12934 shlibpath_overrides_runpath=yes
12935 hardcode_into_libs=yes
12937 esac
12940 gnu*)
12941 version_type=linux
12942 need_lib_prefix=no
12943 need_version=no
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 hardcode_into_libs=yes
12950 hpux9* | hpux10* | hpux11*)
12951 # Give a soname corresponding to the major version so that dld.sl refuses to
12952 # link against other versions.
12953 version_type=sunos
12954 need_lib_prefix=no
12955 need_version=no
12956 case $host_cpu in
12957 ia64*)
12958 shrext_cmds='.so'
12959 hardcode_into_libs=yes
12960 dynamic_linker="$host_os dld.so"
12961 shlibpath_var=LD_LIBRARY_PATH
12962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 if test "X$HPUX_IA64_MODE" = X32; then
12966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12967 else
12968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12972 hppa*64*)
12973 shrext_cmds='.sl'
12974 hardcode_into_libs=yes
12975 dynamic_linker="$host_os dld.sl"
12976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12984 shrext_cmds='.sl'
12985 dynamic_linker="$host_os dld.sl"
12986 shlibpath_var=SHLIB_PATH
12987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12991 esac
12992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12993 postinstall_cmds='chmod 555 $lib'
12996 interix[3-9]*)
12997 version_type=linux
12998 need_lib_prefix=no
12999 need_version=no
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 shlibpath_overrides_runpath=no
13005 hardcode_into_libs=yes
13008 irix5* | irix6* | nonstopux*)
13009 case $host_os in
13010 nonstopux*) version_type=nonstopux ;;
13012 if test "$lt_cv_prog_gnu_ld" = yes; then
13013 version_type=linux
13014 else
13015 version_type=irix
13016 fi ;;
13017 esac
13018 need_lib_prefix=no
13019 need_version=no
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13022 case $host_os in
13023 irix5* | nonstopux*)
13024 libsuff= shlibsuff=
13027 case $LD in # libtool.m4 will add one of these switches to LD
13028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13029 libsuff= shlibsuff= libmagic=32-bit;;
13030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13031 libsuff=32 shlibsuff=N32 libmagic=N32;;
13032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13034 *) libsuff= shlibsuff= libmagic=never-match;;
13035 esac
13037 esac
13038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13039 shlibpath_overrides_runpath=no
13040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13042 hardcode_into_libs=yes
13045 # No shared lib support for Linux oldld, aout, or coff.
13046 linux*oldld* | linux*aout* | linux*coff*)
13047 dynamic_linker=no
13050 # This must be Linux ELF.
13051 linux* | k*bsd*-gnu)
13052 version_type=linux
13053 need_lib_prefix=no
13054 need_version=no
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 soname_spec='${libname}${release}${shared_ext}$major'
13057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 shlibpath_overrides_runpath=no
13060 # This implies no fast_install, which is unacceptable.
13061 # Some rework will be needed to allow for fast_install
13062 # before this can be enabled.
13063 hardcode_into_libs=yes
13065 # Append ld.so.conf contents to the search path
13066 if test -f /etc/ld.so.conf; then
13067 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13068 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13071 # We used to test for /lib/ld.so.1 and disable shared libraries on
13072 # powerpc, because MkLinux only supported shared libraries with the
13073 # GNU dynamic linker. Since this was broken with cross compilers,
13074 # most powerpc-linux boxes support dynamic linking these days and
13075 # people can always --disable-shared, the test was removed, and we
13076 # assume the GNU/Linux dynamic linker is in use.
13077 dynamic_linker='GNU/Linux ld.so'
13080 netbsd*)
13081 version_type=sunos
13082 need_lib_prefix=no
13083 need_version=no
13084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13087 dynamic_linker='NetBSD (a.out) ld.so'
13088 else
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 dynamic_linker='NetBSD ld.elf_so'
13093 shlibpath_var=LD_LIBRARY_PATH
13094 shlibpath_overrides_runpath=yes
13095 hardcode_into_libs=yes
13098 newsos6)
13099 version_type=linux
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 shlibpath_overrides_runpath=yes
13105 nto-qnx*)
13106 version_type=linux
13107 need_lib_prefix=no
13108 need_version=no
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13110 soname_spec='${libname}${release}${shared_ext}$major'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 shlibpath_overrides_runpath=yes
13115 openbsd*)
13116 version_type=sunos
13117 sys_lib_dlsearch_path_spec="/usr/lib"
13118 need_lib_prefix=no
13119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13120 case $host_os in
13121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13122 *) need_version=no ;;
13123 esac
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13128 case $host_os in
13129 openbsd2.[89] | openbsd2.[89].*)
13130 shlibpath_overrides_runpath=no
13133 shlibpath_overrides_runpath=yes
13135 esac
13136 else
13137 shlibpath_overrides_runpath=yes
13141 os2*)
13142 libname_spec='$name'
13143 shrext_cmds=".dll"
13144 need_lib_prefix=no
13145 library_names_spec='$libname${shared_ext} $libname.a'
13146 dynamic_linker='OS/2 ld.exe'
13147 shlibpath_var=LIBPATH
13150 osf3* | osf4* | osf5*)
13151 version_type=osf
13152 need_lib_prefix=no
13153 need_version=no
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13161 rdos*)
13162 dynamic_linker=no
13165 solaris*)
13166 version_type=linux
13167 need_lib_prefix=no
13168 need_version=no
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13170 soname_spec='${libname}${release}${shared_ext}$major'
13171 shlibpath_var=LD_LIBRARY_PATH
13172 shlibpath_overrides_runpath=yes
13173 hardcode_into_libs=yes
13174 # ldd complains unless libraries are executable
13175 postinstall_cmds='chmod +x $lib'
13178 sunos4*)
13179 version_type=sunos
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 shlibpath_overrides_runpath=yes
13184 if test "$with_gnu_ld" = yes; then
13185 need_lib_prefix=no
13187 need_version=yes
13190 sysv4 | sysv4.3*)
13191 version_type=linux
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 case $host_vendor in
13196 sni)
13197 shlibpath_overrides_runpath=no
13198 need_lib_prefix=no
13199 export_dynamic_flag_spec='${wl}-Blargedynsym'
13200 runpath_var=LD_RUN_PATH
13202 siemens)
13203 need_lib_prefix=no
13205 motorola)
13206 need_lib_prefix=no
13207 need_version=no
13208 shlibpath_overrides_runpath=no
13209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13211 esac
13214 sysv4*MP*)
13215 if test -d /usr/nec ;then
13216 version_type=linux
13217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13218 soname_spec='$libname${shared_ext}.$major'
13219 shlibpath_var=LD_LIBRARY_PATH
13223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13224 version_type=freebsd-elf
13225 need_lib_prefix=no
13226 need_version=no
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 hardcode_into_libs=yes
13231 if test "$with_gnu_ld" = yes; then
13232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13233 shlibpath_overrides_runpath=no
13234 else
13235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13236 shlibpath_overrides_runpath=yes
13237 case $host_os in
13238 sco3.2v5*)
13239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13241 esac
13243 sys_lib_dlsearch_path_spec='/usr/lib'
13246 uts4*)
13247 version_type=linux
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13254 dynamic_linker=no
13256 esac
13257 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13258 echo "${ECHO_T}$dynamic_linker" >&6; }
13259 test "$dynamic_linker" = no && can_build_shared=no
13261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13262 if test "$GCC" = yes; then
13263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13266 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13268 hardcode_action_CXX=
13269 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13270 test -n "$runpath_var_CXX" || \
13271 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13273 # We can hardcode non-existant directories.
13274 if test "$hardcode_direct_CXX" != no &&
13275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13276 # have to relink, otherwise we might link with an installed library
13277 # when we should be linking with a yet-to-be-installed one
13278 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13279 test "$hardcode_minus_L_CXX" != no; then
13280 # Linking always hardcodes the temporary library directory.
13281 hardcode_action_CXX=relink
13282 else
13283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13284 hardcode_action_CXX=immediate
13286 else
13287 # We cannot hardcode anything, or else we can only hardcode existing
13288 # directories.
13289 hardcode_action_CXX=unsupported
13291 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13292 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13294 if test "$hardcode_action_CXX" = relink; then
13295 # Fast installation is not supported
13296 enable_fast_install=no
13297 elif test "$shlibpath_overrides_runpath" = yes ||
13298 test "$enable_shared" = no; then
13299 # Fast installation is not necessary
13300 enable_fast_install=needless
13304 # The else clause should only fire when bootstrapping the
13305 # libtool distribution, otherwise you forgot to ship ltmain.sh
13306 # with your package, and you will get complaints that there are
13307 # no rules to generate ltmain.sh.
13308 if test -f "$ltmain"; then
13309 # See if we are running on zsh, and set the options which allow our commands through
13310 # without removal of \ escapes.
13311 if test -n "${ZSH_VERSION+set}" ; then
13312 setopt NO_GLOB_SUBST
13314 # Now quote all the things that may contain metacharacters while being
13315 # careful not to overquote the AC_SUBSTed values. We take copies of the
13316 # variables and quote the copies for generation of the libtool script.
13317 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13318 SED SHELL STRIP \
13319 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13320 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13321 deplibs_check_method reload_flag reload_cmds need_locks \
13322 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13323 lt_cv_sys_global_symbol_to_c_name_address \
13324 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13325 old_postinstall_cmds old_postuninstall_cmds \
13326 compiler_CXX \
13327 CC_CXX \
13328 LD_CXX \
13329 lt_prog_compiler_wl_CXX \
13330 lt_prog_compiler_pic_CXX \
13331 lt_prog_compiler_static_CXX \
13332 lt_prog_compiler_no_builtin_flag_CXX \
13333 export_dynamic_flag_spec_CXX \
13334 thread_safe_flag_spec_CXX \
13335 whole_archive_flag_spec_CXX \
13336 enable_shared_with_static_runtimes_CXX \
13337 old_archive_cmds_CXX \
13338 old_archive_from_new_cmds_CXX \
13339 predep_objects_CXX \
13340 postdep_objects_CXX \
13341 predeps_CXX \
13342 postdeps_CXX \
13343 compiler_lib_search_path_CXX \
13344 archive_cmds_CXX \
13345 archive_expsym_cmds_CXX \
13346 postinstall_cmds_CXX \
13347 postuninstall_cmds_CXX \
13348 old_archive_from_expsyms_cmds_CXX \
13349 allow_undefined_flag_CXX \
13350 no_undefined_flag_CXX \
13351 export_symbols_cmds_CXX \
13352 hardcode_libdir_flag_spec_CXX \
13353 hardcode_libdir_flag_spec_ld_CXX \
13354 hardcode_libdir_separator_CXX \
13355 hardcode_automatic_CXX \
13356 module_cmds_CXX \
13357 module_expsym_cmds_CXX \
13358 lt_cv_prog_compiler_c_o_CXX \
13359 fix_srcfile_path_CXX \
13360 exclude_expsyms_CXX \
13361 include_expsyms_CXX; do
13363 case $var in
13364 old_archive_cmds_CXX | \
13365 old_archive_from_new_cmds_CXX | \
13366 archive_cmds_CXX | \
13367 archive_expsym_cmds_CXX | \
13368 module_cmds_CXX | \
13369 module_expsym_cmds_CXX | \
13370 old_archive_from_expsyms_cmds_CXX | \
13371 export_symbols_cmds_CXX | \
13372 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13373 postinstall_cmds | postuninstall_cmds | \
13374 old_postinstall_cmds | old_postuninstall_cmds | \
13375 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13376 # Double-quote double-evaled strings.
13377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13382 esac
13383 done
13385 case $lt_echo in
13386 *'\$0 --fallback-echo"')
13387 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13389 esac
13391 cfgfile="$ofile"
13393 cat <<__EOF__ >> "$cfgfile"
13394 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13398 # Shell to use when invoking shell scripts.
13399 SHELL=$lt_SHELL
13401 # Whether or not to build shared libraries.
13402 build_libtool_libs=$enable_shared
13404 # Whether or not to build static libraries.
13405 build_old_libs=$enable_static
13407 # Whether or not to add -lc for building shared libraries.
13408 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13410 # Whether or not to disallow shared libs when runtime libs are static
13411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13413 # Whether or not to optimize for fast installation.
13414 fast_install=$enable_fast_install
13416 # The host system.
13417 host_alias=$host_alias
13418 host=$host
13419 host_os=$host_os
13421 # The build system.
13422 build_alias=$build_alias
13423 build=$build
13424 build_os=$build_os
13426 # An echo program that does not interpret backslashes.
13427 echo=$lt_echo
13429 # The archiver.
13430 AR=$lt_AR
13431 AR_FLAGS=$lt_AR_FLAGS
13433 # A C compiler.
13434 LTCC=$lt_LTCC
13436 # LTCC compiler flags.
13437 LTCFLAGS=$lt_LTCFLAGS
13439 # A language-specific compiler.
13440 CC=$lt_compiler_CXX
13442 # Is the compiler the GNU C compiler?
13443 with_gcc=$GCC_CXX
13445 # An ERE matcher.
13446 EGREP=$lt_EGREP
13448 # The linker used to build libraries.
13449 LD=$lt_LD_CXX
13451 # Whether we need hard or soft links.
13452 LN_S=$lt_LN_S
13454 # A BSD-compatible nm program.
13455 NM=$lt_NM
13457 # A symbol stripping program
13458 STRIP=$lt_STRIP
13460 # Used to examine libraries when file_magic_cmd begins "file"
13461 MAGIC_CMD=$MAGIC_CMD
13463 # Used on cygwin: DLL creation program.
13464 DLLTOOL="$DLLTOOL"
13466 # Used on cygwin: object dumper.
13467 OBJDUMP="$OBJDUMP"
13469 # Used on cygwin: assembler.
13470 AS="$AS"
13472 # The name of the directory that contains temporary libtool files.
13473 objdir=$objdir
13475 # How to create reloadable object files.
13476 reload_flag=$lt_reload_flag
13477 reload_cmds=$lt_reload_cmds
13479 # How to pass a linker flag through the compiler.
13480 wl=$lt_lt_prog_compiler_wl_CXX
13482 # Object file suffix (normally "o").
13483 objext="$ac_objext"
13485 # Old archive suffix (normally "a").
13486 libext="$libext"
13488 # Shared library suffix (normally ".so").
13489 shrext_cmds='$shrext_cmds'
13491 # Executable file suffix (normally "").
13492 exeext="$exeext"
13494 # Additional compiler flags for building library objects.
13495 pic_flag=$lt_lt_prog_compiler_pic_CXX
13496 pic_mode=$pic_mode
13498 # What is the maximum length of a command?
13499 max_cmd_len=$lt_cv_sys_max_cmd_len
13501 # Does compiler simultaneously support -c and -o options?
13502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13504 # Must we lock files when doing compilation?
13505 need_locks=$lt_need_locks
13507 # Do we need the lib prefix for modules?
13508 need_lib_prefix=$need_lib_prefix
13510 # Do we need a version for libraries?
13511 need_version=$need_version
13513 # Whether dlopen is supported.
13514 dlopen_support=$enable_dlopen
13516 # Whether dlopen of programs is supported.
13517 dlopen_self=$enable_dlopen_self
13519 # Whether dlopen of statically linked programs is supported.
13520 dlopen_self_static=$enable_dlopen_self_static
13522 # Compiler flag to prevent dynamic linking.
13523 link_static_flag=$lt_lt_prog_compiler_static_CXX
13525 # Compiler flag to turn off builtin functions.
13526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13528 # Compiler flag to allow reflexive dlopens.
13529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13531 # Compiler flag to generate shared objects directly from archives.
13532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13534 # Compiler flag to generate thread-safe objects.
13535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13537 # Library versioning type.
13538 version_type=$version_type
13540 # Format of library name prefix.
13541 libname_spec=$lt_libname_spec
13543 # List of archive names. First name is the real one, the rest are links.
13544 # The last name is the one that the linker finds with -lNAME.
13545 library_names_spec=$lt_library_names_spec
13547 # The coded name of the library, if different from the real name.
13548 soname_spec=$lt_soname_spec
13550 # Commands used to build and install an old-style archive.
13551 RANLIB=$lt_RANLIB
13552 old_archive_cmds=$lt_old_archive_cmds_CXX
13553 old_postinstall_cmds=$lt_old_postinstall_cmds
13554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13556 # Create an old-style archive from a shared archive.
13557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13559 # Create a temporary old-style archive to link instead of a shared archive.
13560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13562 # Commands used to build and install a shared archive.
13563 archive_cmds=$lt_archive_cmds_CXX
13564 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13565 postinstall_cmds=$lt_postinstall_cmds
13566 postuninstall_cmds=$lt_postuninstall_cmds
13568 # Commands used to build a loadable module (assumed same as above if empty)
13569 module_cmds=$lt_module_cmds_CXX
13570 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13572 # Commands to strip libraries.
13573 old_striplib=$lt_old_striplib
13574 striplib=$lt_striplib
13576 # Dependencies to place before the objects being linked to create a
13577 # shared library.
13578 predep_objects=$lt_predep_objects_CXX
13580 # Dependencies to place after the objects being linked to create a
13581 # shared library.
13582 postdep_objects=$lt_postdep_objects_CXX
13584 # Dependencies to place before the objects being linked to create a
13585 # shared library.
13586 predeps=$lt_predeps_CXX
13588 # Dependencies to place after the objects being linked to create a
13589 # shared library.
13590 postdeps=$lt_postdeps_CXX
13592 # The library search path used internally by the compiler when linking
13593 # a shared library.
13594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13596 # Method to check whether dependent libraries are shared objects.
13597 deplibs_check_method=$lt_deplibs_check_method
13599 # Command to use when deplibs_check_method == file_magic.
13600 file_magic_cmd=$lt_file_magic_cmd
13602 # Flag that allows shared libraries with undefined symbols to be built.
13603 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13605 # Flag that forces no undefined symbols.
13606 no_undefined_flag=$lt_no_undefined_flag_CXX
13608 # Commands used to finish a libtool library installation in a directory.
13609 finish_cmds=$lt_finish_cmds
13611 # Same as above, but a single script fragment to be evaled but not shown.
13612 finish_eval=$lt_finish_eval
13614 # Take the output of nm and produce a listing of raw symbols and C names.
13615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13617 # Transform the output of nm in a proper C declaration
13618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13620 # Transform the output of nm in a C name address pair
13621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13623 # This is the shared library runtime path variable.
13624 runpath_var=$runpath_var
13626 # This is the shared library path variable.
13627 shlibpath_var=$shlibpath_var
13629 # Is shlibpath searched before the hard-coded library search path?
13630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13632 # How to hardcode a shared library path into an executable.
13633 hardcode_action=$hardcode_action_CXX
13635 # Whether we should hardcode library paths into libraries.
13636 hardcode_into_libs=$hardcode_into_libs
13638 # Flag to hardcode \$libdir into a binary during linking.
13639 # This must work even if \$libdir does not exist.
13640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13642 # If ld is used when linking, flag to hardcode \$libdir into
13643 # a binary during linking. This must work even if \$libdir does
13644 # not exist.
13645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13647 # Whether we need a single -rpath flag with a separated argument.
13648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13651 # resulting binary.
13652 hardcode_direct=$hardcode_direct_CXX
13654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13655 # resulting binary.
13656 hardcode_minus_L=$hardcode_minus_L_CXX
13658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13659 # the resulting binary.
13660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13662 # Set to yes if building a shared library automatically hardcodes DIR into the library
13663 # and all subsequent libraries and executables linked against it.
13664 hardcode_automatic=$hardcode_automatic_CXX
13666 # Variables whose values should be saved in libtool wrapper scripts and
13667 # restored at relink time.
13668 variables_saved_for_relink="$variables_saved_for_relink"
13670 # Whether libtool must link a program against all its dependency libraries.
13671 link_all_deplibs=$link_all_deplibs_CXX
13673 # Compile-time system search path for libraries
13674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13676 # Run-time system search path for libraries
13677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13679 # Fix the shell variable \$srcfile for the compiler.
13680 fix_srcfile_path=$lt_fix_srcfile_path
13682 # Set to yes if exported symbols are required.
13683 always_export_symbols=$always_export_symbols_CXX
13685 # The commands to list exported symbols.
13686 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13688 # The commands to extract the exported symbol list from a shared archive.
13689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13691 # Symbols that should not be listed in the preloaded symbols.
13692 exclude_expsyms=$lt_exclude_expsyms_CXX
13694 # Symbols that must always be exported.
13695 include_expsyms=$lt_include_expsyms_CXX
13697 # ### END LIBTOOL TAG CONFIG: $tagname
13699 __EOF__
13702 else
13703 # If there is no Makefile yet, we rely on a make rule to execute
13704 # `config.status --recheck' to rerun these tests and create the
13705 # libtool script then.
13706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13707 if test -f "$ltmain_in"; then
13708 test -f Makefile && make "$ltmain"
13713 ac_ext=c
13714 ac_cpp='$CPP $CPPFLAGS'
13715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13719 CC=$lt_save_CC
13720 LDCXX=$LD
13721 LD=$lt_save_LD
13722 GCC=$lt_save_GCC
13723 with_gnu_ldcxx=$with_gnu_ld
13724 with_gnu_ld=$lt_save_with_gnu_ld
13725 lt_cv_path_LDCXX=$lt_cv_path_LD
13726 lt_cv_path_LD=$lt_save_path_LD
13727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13730 else
13731 tagname=""
13735 F77)
13736 if test -n "$F77" && test "X$F77" != "Xno"; then
13738 ac_ext=f
13739 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13740 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13741 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13744 archive_cmds_need_lc_F77=no
13745 allow_undefined_flag_F77=
13746 always_export_symbols_F77=no
13747 archive_expsym_cmds_F77=
13748 export_dynamic_flag_spec_F77=
13749 hardcode_direct_F77=no
13750 hardcode_libdir_flag_spec_F77=
13751 hardcode_libdir_flag_spec_ld_F77=
13752 hardcode_libdir_separator_F77=
13753 hardcode_minus_L_F77=no
13754 hardcode_automatic_F77=no
13755 module_cmds_F77=
13756 module_expsym_cmds_F77=
13757 link_all_deplibs_F77=unknown
13758 old_archive_cmds_F77=$old_archive_cmds
13759 no_undefined_flag_F77=
13760 whole_archive_flag_spec_F77=
13761 enable_shared_with_static_runtimes_F77=no
13763 # Source file extension for f77 test sources.
13764 ac_ext=f
13766 # Object file extension for compiled f77 test sources.
13767 objext=o
13768 objext_F77=$objext
13770 # Code to be used in simple compile tests
13771 lt_simple_compile_test_code="\
13772 subroutine t
13773 return
13777 # Code to be used in simple link tests
13778 lt_simple_link_test_code="\
13779 program t
13783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13785 # If no C compiler was specified, use CC.
13786 LTCC=${LTCC-"$CC"}
13788 # If no C compiler flags were specified, use CFLAGS.
13789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13791 # Allow CC to be a program name with arguments.
13792 compiler=$CC
13795 # save warnings/boilerplate of simple test code
13796 ac_outfile=conftest.$ac_objext
13797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13799 _lt_compiler_boilerplate=`cat conftest.err`
13800 $rm conftest*
13802 ac_outfile=conftest.$ac_objext
13803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13805 _lt_linker_boilerplate=`cat conftest.err`
13806 $rm conftest*
13809 # Allow CC to be a program name with arguments.
13810 lt_save_CC="$CC"
13811 CC=${F77-"f77"}
13812 compiler=$CC
13813 compiler_F77=$CC
13814 for cc_temp in $compiler""; do
13815 case $cc_temp in
13816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13818 \-*) ;;
13819 *) break;;
13820 esac
13821 done
13822 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13825 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13826 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13827 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13828 echo "${ECHO_T}$can_build_shared" >&6; }
13830 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13831 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13832 test "$can_build_shared" = "no" && enable_shared=no
13834 # On AIX, shared libraries and static libraries use the same namespace, and
13835 # are all built from PIC.
13836 case $host_os in
13837 aix3*)
13838 test "$enable_shared" = yes && enable_static=no
13839 if test -n "$RANLIB"; then
13840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13841 postinstall_cmds='$RANLIB $lib'
13844 aix4* | aix5*)
13845 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13846 test "$enable_shared" = yes && enable_static=no
13849 esac
13850 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13851 echo "${ECHO_T}$enable_shared" >&6; }
13853 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13854 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13855 # Make sure either enable_shared or enable_static is yes.
13856 test "$enable_shared" = yes || enable_static=yes
13857 { echo "$as_me:$LINENO: result: $enable_static" >&5
13858 echo "${ECHO_T}$enable_static" >&6; }
13860 GCC_F77="$G77"
13861 LD_F77="$LD"
13863 lt_prog_compiler_wl_F77=
13864 lt_prog_compiler_pic_F77=
13865 lt_prog_compiler_static_F77=
13867 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13870 if test "$GCC" = yes; then
13871 lt_prog_compiler_wl_F77='-Wl,'
13872 lt_prog_compiler_static_F77='-static'
13874 case $host_os in
13875 aix*)
13876 # All AIX code is PIC.
13877 if test "$host_cpu" = ia64; then
13878 # AIX 5 now supports IA64 processor
13879 lt_prog_compiler_static_F77='-Bstatic'
13883 amigaos*)
13884 # FIXME: we need at least 68020 code to build shared libraries, but
13885 # adding the `-m68020' flag to GCC prevents building anything better,
13886 # like `-m68040'.
13887 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13891 # PIC is the default for these OSes.
13894 mingw* | cygwin* | pw32* | os2*)
13895 # This hack is so that the source file can tell whether it is being
13896 # built for inclusion in a dll (and should export symbols for example).
13897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13898 # (--disable-auto-import) libraries
13899 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13902 darwin* | rhapsody*)
13903 # PIC is the default on this platform
13904 # Common symbols not allowed in MH_DYLIB files
13905 lt_prog_compiler_pic_F77='-fno-common'
13908 interix[3-9]*)
13909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13910 # Instead, we relocate shared libraries at runtime.
13913 msdosdjgpp*)
13914 # Just because we use GCC doesn't mean we suddenly get shared libraries
13915 # on systems that don't support them.
13916 lt_prog_compiler_can_build_shared_F77=no
13917 enable_shared=no
13920 sysv4*MP*)
13921 if test -d /usr/nec; then
13922 lt_prog_compiler_pic_F77=-Kconform_pic
13926 hpux*)
13927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13928 # not for PA HP-UX.
13929 case $host_cpu in
13930 hppa*64*|ia64*)
13931 # +Z the default
13934 lt_prog_compiler_pic_F77='-fPIC'
13936 esac
13940 lt_prog_compiler_pic_F77='-fPIC'
13942 esac
13943 else
13944 # PORTME Check for flag to pass linker flags through the system compiler.
13945 case $host_os in
13946 aix*)
13947 lt_prog_compiler_wl_F77='-Wl,'
13948 if test "$host_cpu" = ia64; then
13949 # AIX 5 now supports IA64 processor
13950 lt_prog_compiler_static_F77='-Bstatic'
13951 else
13952 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13955 darwin*)
13956 # PIC is the default on this platform
13957 # Common symbols not allowed in MH_DYLIB files
13958 case $cc_basename in
13959 xlc*)
13960 lt_prog_compiler_pic_F77='-qnocommon'
13961 lt_prog_compiler_wl_F77='-Wl,'
13963 esac
13966 mingw* | cygwin* | pw32* | os2*)
13967 # This hack is so that the source file can tell whether it is being
13968 # built for inclusion in a dll (and should export symbols for example).
13969 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13972 hpux9* | hpux10* | hpux11*)
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13975 # not for PA HP-UX.
13976 case $host_cpu in
13977 hppa*64*|ia64*)
13978 # +Z the default
13981 lt_prog_compiler_pic_F77='+Z'
13983 esac
13984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13985 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13988 irix5* | irix6* | nonstopux*)
13989 lt_prog_compiler_wl_F77='-Wl,'
13990 # PIC (with -KPIC) is the default.
13991 lt_prog_compiler_static_F77='-non_shared'
13994 newsos6)
13995 lt_prog_compiler_pic_F77='-KPIC'
13996 lt_prog_compiler_static_F77='-Bstatic'
13999 linux* | k*bsd*-gnu)
14000 case $cc_basename in
14001 icc* | ecc*)
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 lt_prog_compiler_pic_F77='-KPIC'
14004 lt_prog_compiler_static_F77='-static'
14006 pgcc* | pgf77* | pgf90* | pgf95*)
14007 # Portland Group compilers (*not* the Pentium gcc compiler,
14008 # which looks to be a dead project)
14009 lt_prog_compiler_wl_F77='-Wl,'
14010 lt_prog_compiler_pic_F77='-fpic'
14011 lt_prog_compiler_static_F77='-Bstatic'
14013 ccc*)
14014 lt_prog_compiler_wl_F77='-Wl,'
14015 # All Alpha code is PIC.
14016 lt_prog_compiler_static_F77='-non_shared'
14019 case `$CC -V 2>&1 | sed 5q` in
14020 *Sun\ C*)
14021 # Sun C 5.9
14022 lt_prog_compiler_pic_F77='-KPIC'
14023 lt_prog_compiler_static_F77='-Bstatic'
14024 lt_prog_compiler_wl_F77='-Wl,'
14026 *Sun\ F*)
14027 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14028 lt_prog_compiler_pic_F77='-KPIC'
14029 lt_prog_compiler_static_F77='-Bstatic'
14030 lt_prog_compiler_wl_F77=''
14032 esac
14034 esac
14037 osf3* | osf4* | osf5*)
14038 lt_prog_compiler_wl_F77='-Wl,'
14039 # All OSF/1 code is PIC.
14040 lt_prog_compiler_static_F77='-non_shared'
14043 rdos*)
14044 lt_prog_compiler_static_F77='-non_shared'
14047 solaris*)
14048 lt_prog_compiler_pic_F77='-KPIC'
14049 lt_prog_compiler_static_F77='-Bstatic'
14050 case $cc_basename in
14051 f77* | f90* | f95*)
14052 lt_prog_compiler_wl_F77='-Qoption ld ';;
14054 lt_prog_compiler_wl_F77='-Wl,';;
14055 esac
14058 sunos4*)
14059 lt_prog_compiler_wl_F77='-Qoption ld '
14060 lt_prog_compiler_pic_F77='-PIC'
14061 lt_prog_compiler_static_F77='-Bstatic'
14064 sysv4 | sysv4.2uw2* | sysv4.3*)
14065 lt_prog_compiler_wl_F77='-Wl,'
14066 lt_prog_compiler_pic_F77='-KPIC'
14067 lt_prog_compiler_static_F77='-Bstatic'
14070 sysv4*MP*)
14071 if test -d /usr/nec ;then
14072 lt_prog_compiler_pic_F77='-Kconform_pic'
14073 lt_prog_compiler_static_F77='-Bstatic'
14077 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 lt_prog_compiler_pic_F77='-KPIC'
14080 lt_prog_compiler_static_F77='-Bstatic'
14083 unicos*)
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 lt_prog_compiler_can_build_shared_F77=no
14088 uts4*)
14089 lt_prog_compiler_pic_F77='-pic'
14090 lt_prog_compiler_static_F77='-Bstatic'
14094 lt_prog_compiler_can_build_shared_F77=no
14096 esac
14099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14100 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14103 # Check to make sure the PIC flag actually works.
14105 if test -n "$lt_prog_compiler_pic_F77"; then
14107 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14109 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 lt_prog_compiler_pic_works_F77=no
14113 ac_outfile=conftest.$ac_objext
14114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14115 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14116 # Insert the option either (1) after the last *FLAGS variable, or
14117 # (2) before a word containing "conftest.", or (3) at the end.
14118 # Note that $ac_compile itself does not contain backslashes and begins
14119 # with a dollar sign (not a hyphen), so the echo should work correctly.
14120 # The option is referenced via a variable to avoid confusing sed.
14121 lt_compile=`echo "$ac_compile" | $SED \
14122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14124 -e 's:$: $lt_compiler_flag:'`
14125 (eval echo "\"\$as_me:14125: $lt_compile\"" >&5)
14126 (eval "$lt_compile" 2>conftest.err)
14127 ac_status=$?
14128 cat conftest.err >&5
14129 echo "$as_me:14129: \$? = $ac_status" >&5
14130 if (exit $ac_status) && test -s "$ac_outfile"; then
14131 # The compiler can only warn and ignore the option if not recognized
14132 # So say no if there are warnings other than the usual output.
14133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14136 lt_prog_compiler_pic_works_F77=yes
14139 $rm conftest*
14142 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14143 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14145 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14146 case $lt_prog_compiler_pic_F77 in
14147 "" | " "*) ;;
14148 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14149 esac
14150 else
14151 lt_prog_compiler_pic_F77=
14152 lt_prog_compiler_can_build_shared_F77=no
14156 case $host_os in
14157 # For platforms which do not support PIC, -DPIC is meaningless:
14158 *djgpp*)
14159 lt_prog_compiler_pic_F77=
14162 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14164 esac
14167 # Check to make sure the static flag actually works.
14169 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14170 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14171 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14172 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175 lt_prog_compiler_static_works_F77=no
14176 save_LDFLAGS="$LDFLAGS"
14177 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14178 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14180 # The linker can only warn and ignore the option if not recognized
14181 # So say no if there are warnings
14182 if test -s conftest.err; then
14183 # Append any errors to the config.log.
14184 cat conftest.err 1>&5
14185 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14187 if diff conftest.exp conftest.er2 >/dev/null; then
14188 lt_prog_compiler_static_works_F77=yes
14190 else
14191 lt_prog_compiler_static_works_F77=yes
14194 $rm conftest*
14195 LDFLAGS="$save_LDFLAGS"
14198 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14199 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14201 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14203 else
14204 lt_prog_compiler_static_F77=
14208 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14210 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 lt_cv_prog_compiler_c_o_F77=no
14214 $rm -r conftest 2>/dev/null
14215 mkdir conftest
14216 cd conftest
14217 mkdir out
14218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14220 lt_compiler_flag="-o out/conftest2.$ac_objext"
14221 # Insert the option either (1) after the last *FLAGS variable, or
14222 # (2) before a word containing "conftest.", or (3) at the end.
14223 # Note that $ac_compile itself does not contain backslashes and begins
14224 # with a dollar sign (not a hyphen), so the echo should work correctly.
14225 lt_compile=`echo "$ac_compile" | $SED \
14226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228 -e 's:$: $lt_compiler_flag:'`
14229 (eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
14230 (eval "$lt_compile" 2>out/conftest.err)
14231 ac_status=$?
14232 cat out/conftest.err >&5
14233 echo "$as_me:14233: \$? = $ac_status" >&5
14234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14235 then
14236 # The compiler can only warn and ignore the option if not recognized
14237 # So say no if there are warnings
14238 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14241 lt_cv_prog_compiler_c_o_F77=yes
14244 chmod u+w . 2>&5
14245 $rm conftest*
14246 # SGI C++ compiler will create directory out/ii_files/ for
14247 # template instantiation
14248 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14249 $rm out/* && rmdir out
14250 cd ..
14251 rmdir conftest
14252 $rm conftest*
14255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14259 hard_links="nottested"
14260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14261 # do not overwrite the value of need_locks provided by the user
14262 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14264 hard_links=yes
14265 $rm conftest*
14266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14267 touch conftest.a
14268 ln conftest.a conftest.b 2>&5 || hard_links=no
14269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14270 { echo "$as_me:$LINENO: result: $hard_links" >&5
14271 echo "${ECHO_T}$hard_links" >&6; }
14272 if test "$hard_links" = no; then
14273 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14275 need_locks=warn
14277 else
14278 need_locks=no
14281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14284 runpath_var=
14285 allow_undefined_flag_F77=
14286 enable_shared_with_static_runtimes_F77=no
14287 archive_cmds_F77=
14288 archive_expsym_cmds_F77=
14289 old_archive_From_new_cmds_F77=
14290 old_archive_from_expsyms_cmds_F77=
14291 export_dynamic_flag_spec_F77=
14292 whole_archive_flag_spec_F77=
14293 thread_safe_flag_spec_F77=
14294 hardcode_libdir_flag_spec_F77=
14295 hardcode_libdir_flag_spec_ld_F77=
14296 hardcode_libdir_separator_F77=
14297 hardcode_direct_F77=no
14298 hardcode_minus_L_F77=no
14299 hardcode_shlibpath_var_F77=unsupported
14300 link_all_deplibs_F77=unknown
14301 hardcode_automatic_F77=no
14302 module_cmds_F77=
14303 module_expsym_cmds_F77=
14304 always_export_symbols_F77=no
14305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14306 # include_expsyms should be a list of space-separated symbols to be *always*
14307 # included in the symbol list
14308 include_expsyms_F77=
14309 # exclude_expsyms can be an extended regexp of symbols to exclude
14310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14312 # as well as any symbol that contains `d'.
14313 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14315 # platforms (ab)use it in PIC code, but their linkers get confused if
14316 # the symbol is explicitly referenced. Since portable code cannot
14317 # rely on this symbol name, it's probably fine to never include it in
14318 # preloaded symbol tables.
14319 extract_expsyms_cmds=
14320 # Just being paranoid about ensuring that cc_basename is set.
14321 for cc_temp in $compiler""; do
14322 case $cc_temp in
14323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14325 \-*) ;;
14326 *) break;;
14327 esac
14328 done
14329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14331 case $host_os in
14332 cygwin* | mingw* | pw32*)
14333 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14334 # When not using gcc, we currently assume that we are using
14335 # Microsoft Visual C++.
14336 if test "$GCC" != yes; then
14337 with_gnu_ld=no
14340 interix*)
14341 # we just hope/assume this is gcc and not c89 (= MSVC++)
14342 with_gnu_ld=yes
14344 openbsd*)
14345 with_gnu_ld=no
14347 esac
14349 ld_shlibs_F77=yes
14350 if test "$with_gnu_ld" = yes; then
14351 # If archive_cmds runs LD, not CC, wlarc should be empty
14352 wlarc='${wl}'
14354 # Set some defaults for GNU ld with shared library support. These
14355 # are reset later if shared libraries are not supported. Putting them
14356 # here allows them to be overridden if necessary.
14357 runpath_var=LD_RUN_PATH
14358 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14359 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14360 # ancient GNU ld didn't support --whole-archive et. al.
14361 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14362 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14363 else
14364 whole_archive_flag_spec_F77=
14366 supports_anon_versioning=no
14367 case `$LD -v 2>/dev/null` in
14368 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14369 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14370 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14371 *\ 2.11.*) ;; # other 2.11 versions
14372 *) supports_anon_versioning=yes ;;
14373 esac
14375 # See if GNU ld supports shared libraries.
14376 case $host_os in
14377 aix3* | aix4* | aix5*)
14378 # On AIX/PPC, the GNU linker is very broken
14379 if test "$host_cpu" != ia64; then
14380 ld_shlibs_F77=no
14381 cat <<EOF 1>&2
14383 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14384 *** to be unable to reliably create shared libraries on AIX.
14385 *** Therefore, libtool is disabling shared libraries support. If you
14386 *** really care for shared libraries, you may want to modify your PATH
14387 *** so that a non-GNU linker is found, and then restart.
14393 amigaos*)
14394 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)'
14395 hardcode_libdir_flag_spec_F77='-L$libdir'
14396 hardcode_minus_L_F77=yes
14398 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14399 # that the semantics of dynamic libraries on AmigaOS, at least up
14400 # to version 4, is to share data among multiple programs linked
14401 # with the same dynamic library. Since this doesn't match the
14402 # behavior of shared libraries on other platforms, we can't use
14403 # them.
14404 ld_shlibs_F77=no
14407 beos*)
14408 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14409 allow_undefined_flag_F77=unsupported
14410 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14411 # support --undefined. This deserves some investigation. FIXME
14412 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14413 else
14414 ld_shlibs_F77=no
14418 cygwin* | mingw* | pw32*)
14419 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14420 # as there is no search path for DLLs.
14421 hardcode_libdir_flag_spec_F77='-L$libdir'
14422 allow_undefined_flag_F77=unsupported
14423 always_export_symbols_F77=no
14424 enable_shared_with_static_runtimes_F77=yes
14425 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14427 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14428 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14429 # If the export-symbols file already is a .def file (1st line
14430 # is EXPORTS), use it as is; otherwise, prepend...
14431 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14432 cp $export_symbols $output_objdir/$soname.def;
14433 else
14434 echo EXPORTS > $output_objdir/$soname.def;
14435 cat $export_symbols >> $output_objdir/$soname.def;
14437 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14438 else
14439 ld_shlibs_F77=no
14443 interix[3-9]*)
14444 hardcode_direct_F77=no
14445 hardcode_shlibpath_var_F77=no
14446 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14447 export_dynamic_flag_spec_F77='${wl}-E'
14448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14449 # Instead, shared libraries are loaded at an image base (0x10000000 by
14450 # default) and relocated if they conflict, which is a slow very memory
14451 # consuming and fragmenting process. To avoid this, we pick a random,
14452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14453 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14454 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'
14455 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'
14458 gnu* | linux* | k*bsd*-gnu)
14459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14460 tmp_addflag=
14461 case $cc_basename,$host_cpu in
14462 pgcc*) # Portland Group C compiler
14463 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'
14464 tmp_addflag=' $pic_flag'
14466 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14467 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'
14468 tmp_addflag=' $pic_flag -Mnomain' ;;
14469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14470 tmp_addflag=' -i_dynamic' ;;
14471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14472 tmp_addflag=' -i_dynamic -nofor_main' ;;
14473 ifc* | ifort*) # Intel Fortran compiler
14474 tmp_addflag=' -nofor_main' ;;
14475 esac
14476 case `$CC -V 2>&1 | sed 5q` in
14477 *Sun\ C*) # Sun C 5.9
14478 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14479 tmp_sharedflag='-G' ;;
14480 *Sun\ F*) # Sun Fortran 8.3
14481 tmp_sharedflag='-G' ;;
14483 tmp_sharedflag='-shared' ;;
14484 esac
14485 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14487 if test $supports_anon_versioning = yes; then
14488 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14490 $echo "local: *; };" >> $output_objdir/$libname.ver~
14491 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14493 else
14494 ld_shlibs_F77=no
14498 netbsd*)
14499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14500 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14501 wlarc=
14502 else
14503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14508 solaris*)
14509 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14510 ld_shlibs_F77=no
14511 cat <<EOF 1>&2
14513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14514 *** create shared libraries on Solaris systems. Therefore, libtool
14515 *** is disabling shared libraries support. We urge you to upgrade GNU
14516 *** binutils to release 2.9.1 or newer. Another option is to modify
14517 *** your PATH or compiler configuration so that the native linker is
14518 *** used, and then restart.
14521 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14522 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14523 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14524 else
14525 ld_shlibs_F77=no
14529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14530 case `$LD -v 2>&1` in
14531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14532 ld_shlibs_F77=no
14533 cat <<_LT_EOF 1>&2
14535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14536 *** reliably create shared libraries on SCO systems. Therefore, libtool
14537 *** is disabling shared libraries support. We urge you to upgrade GNU
14538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14539 *** your PATH or compiler configuration so that the native linker is
14540 *** used, and then restart.
14542 _LT_EOF
14545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14546 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14547 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14548 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14549 else
14550 ld_shlibs_F77=no
14553 esac
14556 sunos4*)
14557 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14558 wlarc=
14559 hardcode_direct_F77=yes
14560 hardcode_shlibpath_var_F77=no
14564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14565 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14566 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14567 else
14568 ld_shlibs_F77=no
14571 esac
14573 if test "$ld_shlibs_F77" = no; then
14574 runpath_var=
14575 hardcode_libdir_flag_spec_F77=
14576 export_dynamic_flag_spec_F77=
14577 whole_archive_flag_spec_F77=
14579 else
14580 # PORTME fill in a description of your system's linker (not GNU ld)
14581 case $host_os in
14582 aix3*)
14583 allow_undefined_flag_F77=unsupported
14584 always_export_symbols_F77=yes
14585 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'
14586 # Note: this linker hardcodes the directories in LIBPATH if there
14587 # are no directories specified by -L.
14588 hardcode_minus_L_F77=yes
14589 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14590 # Neither direct hardcoding nor static linking is supported with a
14591 # broken collect2.
14592 hardcode_direct_F77=unsupported
14596 aix4* | aix5*)
14597 if test "$host_cpu" = ia64; then
14598 # On IA64, the linker does run time linking by default, so we don't
14599 # have to do anything special.
14600 aix_use_runtimelinking=no
14601 exp_sym_flag='-Bexport'
14602 no_entry_flag=""
14603 else
14604 # If we're using GNU nm, then we don't want the "-C" option.
14605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14607 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'
14608 else
14609 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'
14611 aix_use_runtimelinking=no
14613 # Test if we are trying to use run time linking or normal
14614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14615 # need to do runtime linking.
14616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14617 for ld_flag in $LDFLAGS; do
14618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14619 aix_use_runtimelinking=yes
14620 break
14622 done
14624 esac
14626 exp_sym_flag='-bexport'
14627 no_entry_flag='-bnoentry'
14630 # When large executables or shared objects are built, AIX ld can
14631 # have problems creating the table of contents. If linking a library
14632 # or program results in "error TOC overflow" add -mminimal-toc to
14633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14636 archive_cmds_F77=''
14637 hardcode_direct_F77=yes
14638 hardcode_libdir_separator_F77=':'
14639 link_all_deplibs_F77=yes
14641 if test "$GCC" = yes; then
14642 case $host_os in aix4.[012]|aix4.[012].*)
14643 # We only want to do this on AIX 4.2 and lower, the check
14644 # below for broken collect2 doesn't work under 4.3+
14645 collect2name=`${CC} -print-prog-name=collect2`
14646 if test -f "$collect2name" && \
14647 strings "$collect2name" | grep resolve_lib_name >/dev/null
14648 then
14649 # We have reworked collect2
14651 else
14652 # We have old collect2
14653 hardcode_direct_F77=unsupported
14654 # It fails to find uninstalled libraries when the uninstalled
14655 # path is not listed in the libpath. Setting hardcode_minus_L
14656 # to unsupported forces relinking
14657 hardcode_minus_L_F77=yes
14658 hardcode_libdir_flag_spec_F77='-L$libdir'
14659 hardcode_libdir_separator_F77=
14662 esac
14663 shared_flag='-shared'
14664 if test "$aix_use_runtimelinking" = yes; then
14665 shared_flag="$shared_flag "'${wl}-G'
14667 else
14668 # not using gcc
14669 if test "$host_cpu" = ia64; then
14670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14671 # chokes on -Wl,-G. The following line is correct:
14672 shared_flag='-G'
14673 else
14674 if test "$aix_use_runtimelinking" = yes; then
14675 shared_flag='${wl}-G'
14676 else
14677 shared_flag='${wl}-bM:SRE'
14682 # It seems that -bexpall does not export symbols beginning with
14683 # underscore (_), so it is better to generate a list of symbols to export.
14684 always_export_symbols_F77=yes
14685 if test "$aix_use_runtimelinking" = yes; then
14686 # Warning - without using the other runtime loading flags (-brtl),
14687 # -berok will link without error, but may produce a broken library.
14688 allow_undefined_flag_F77='-berok'
14689 # Determine the default libpath from the value encoded in an empty executable.
14690 cat >conftest.$ac_ext <<_ACEOF
14691 program main
14694 _ACEOF
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_f77_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest$ac_exeext &&
14712 $as_test_x conftest$ac_exeext; then
14714 lt_aix_libpath_sed='
14715 /Import File Strings/,/^$/ {
14716 /^0/ {
14717 s/^0 *\(.*\)$/\1/
14721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14722 # Check for a 64-bit object if we didn't find anything.
14723 if test -z "$aix_libpath"; then
14724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14726 else
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14734 conftest$ac_exeext conftest.$ac_ext
14735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14737 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14738 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"
14739 else
14740 if test "$host_cpu" = ia64; then
14741 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14742 allow_undefined_flag_F77="-z nodefs"
14743 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"
14744 else
14745 # Determine the default libpath from the value encoded in an empty executable.
14746 cat >conftest.$ac_ext <<_ACEOF
14747 program main
14750 _ACEOF
14751 rm -f conftest.$ac_objext conftest$ac_exeext
14752 if { (ac_try="$ac_link"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_link") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_f77_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest$ac_exeext &&
14768 $as_test_x conftest$ac_exeext; then
14770 lt_aix_libpath_sed='
14771 /Import File Strings/,/^$/ {
14772 /^0/ {
14773 s/^0 *\(.*\)$/\1/
14777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14778 # Check for a 64-bit object if we didn't find anything.
14779 if test -z "$aix_libpath"; then
14780 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14782 else
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14790 conftest$ac_exeext conftest.$ac_ext
14791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14793 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14794 # Warning - without using the other run time loading flags,
14795 # -berok will link without error, but may produce a broken library.
14796 no_undefined_flag_F77=' ${wl}-bernotok'
14797 allow_undefined_flag_F77=' ${wl}-berok'
14798 # Exported symbols can be pulled into shared objects from archives
14799 whole_archive_flag_spec_F77='$convenience'
14800 archive_cmds_need_lc_F77=yes
14801 # This is similar to how AIX traditionally builds its shared libraries.
14802 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'
14807 amigaos*)
14808 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)'
14809 hardcode_libdir_flag_spec_F77='-L$libdir'
14810 hardcode_minus_L_F77=yes
14811 # see comment about different semantics on the GNU ld section
14812 ld_shlibs_F77=no
14815 bsdi[45]*)
14816 export_dynamic_flag_spec_F77=-rdynamic
14819 cygwin* | mingw* | pw32*)
14820 # When not using gcc, we currently assume that we are using
14821 # Microsoft Visual C++.
14822 # hardcode_libdir_flag_spec is actually meaningless, as there is
14823 # no search path for DLLs.
14824 hardcode_libdir_flag_spec_F77=' '
14825 allow_undefined_flag_F77=unsupported
14826 # Tell ltmain to make .lib files, not .a files.
14827 libext=lib
14828 # Tell ltmain to make .dll files, not .so files.
14829 shrext_cmds=".dll"
14830 # FIXME: Setting linknames here is a bad hack.
14831 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14832 # The linker will automatically build a .lib file if we build a DLL.
14833 old_archive_From_new_cmds_F77='true'
14834 # FIXME: Should let the user specify the lib program.
14835 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14836 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14837 enable_shared_with_static_runtimes_F77=yes
14840 darwin* | rhapsody*)
14841 case $host_os in
14842 rhapsody* | darwin1.[012])
14843 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14845 *) # Darwin 1.3 on
14846 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14847 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14848 else
14849 case ${MACOSX_DEPLOYMENT_TARGET} in
14850 10.[012])
14851 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14853 10.*)
14854 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14856 esac
14859 esac
14860 archive_cmds_need_lc_F77=no
14861 hardcode_direct_F77=no
14862 hardcode_automatic_F77=yes
14863 hardcode_shlibpath_var_F77=unsupported
14864 whole_archive_flag_spec_F77=''
14865 link_all_deplibs_F77=yes
14866 if test "$GCC" = yes ; then
14867 output_verbose_link_cmd='echo'
14868 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14869 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14871 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}'
14872 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}'
14873 else
14874 case $cc_basename in
14875 xlc*)
14876 output_verbose_link_cmd='echo'
14877 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14878 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14880 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14881 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}'
14884 ld_shlibs_F77=no
14886 esac
14890 dgux*)
14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_libdir_flag_spec_F77='-L$libdir'
14893 hardcode_shlibpath_var_F77=no
14896 freebsd1*)
14897 ld_shlibs_F77=no
14900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14901 # support. Future versions do this automatically, but an explicit c++rt0.o
14902 # does not break anything, and helps significantly (at the cost of a little
14903 # extra space).
14904 freebsd2.2*)
14905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14906 hardcode_libdir_flag_spec_F77='-R$libdir'
14907 hardcode_direct_F77=yes
14908 hardcode_shlibpath_var_F77=no
14911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14912 freebsd2*)
14913 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_direct_F77=yes
14915 hardcode_minus_L_F77=yes
14916 hardcode_shlibpath_var_F77=no
14919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14920 freebsd* | dragonfly*)
14921 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14922 hardcode_libdir_flag_spec_F77='-R$libdir'
14923 hardcode_direct_F77=yes
14924 hardcode_shlibpath_var_F77=no
14927 hpux9*)
14928 if test "$GCC" = yes; then
14929 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'
14930 else
14931 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'
14933 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14934 hardcode_libdir_separator_F77=:
14935 hardcode_direct_F77=yes
14937 # hardcode_minus_L: Not really in the search PATH,
14938 # but as the default location of the library.
14939 hardcode_minus_L_F77=yes
14940 export_dynamic_flag_spec_F77='${wl}-E'
14943 hpux10*)
14944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14945 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14946 else
14947 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14949 if test "$with_gnu_ld" = no; then
14950 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14951 hardcode_libdir_separator_F77=:
14953 hardcode_direct_F77=yes
14954 export_dynamic_flag_spec_F77='${wl}-E'
14956 # hardcode_minus_L: Not really in the search PATH,
14957 # but as the default location of the library.
14958 hardcode_minus_L_F77=yes
14962 hpux11*)
14963 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14964 case $host_cpu in
14965 hppa*64*)
14966 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 ia64*)
14969 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14972 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14974 esac
14975 else
14976 case $host_cpu in
14977 hppa*64*)
14978 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 ia64*)
14981 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14986 esac
14988 if test "$with_gnu_ld" = no; then
14989 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14990 hardcode_libdir_separator_F77=:
14992 case $host_cpu in
14993 hppa*64*|ia64*)
14994 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14995 hardcode_direct_F77=no
14996 hardcode_shlibpath_var_F77=no
14999 hardcode_direct_F77=yes
15000 export_dynamic_flag_spec_F77='${wl}-E'
15002 # hardcode_minus_L: Not really in the search PATH,
15003 # but as the default location of the library.
15004 hardcode_minus_L_F77=yes
15006 esac
15010 irix5* | irix6* | nonstopux*)
15011 if test "$GCC" = yes; then
15012 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'
15013 else
15014 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'
15015 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15018 hardcode_libdir_separator_F77=:
15019 link_all_deplibs_F77=yes
15022 netbsd*)
15023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15025 else
15026 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15028 hardcode_libdir_flag_spec_F77='-R$libdir'
15029 hardcode_direct_F77=yes
15030 hardcode_shlibpath_var_F77=no
15033 newsos6)
15034 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15035 hardcode_direct_F77=yes
15036 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15037 hardcode_libdir_separator_F77=:
15038 hardcode_shlibpath_var_F77=no
15041 openbsd*)
15042 if test -f /usr/libexec/ld.so; then
15043 hardcode_direct_F77=yes
15044 hardcode_shlibpath_var_F77=no
15045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15046 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15048 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15049 export_dynamic_flag_spec_F77='${wl}-E'
15050 else
15051 case $host_os in
15052 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15053 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15054 hardcode_libdir_flag_spec_F77='-R$libdir'
15057 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15058 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15060 esac
15062 else
15063 ld_shlibs_F77=no
15067 os2*)
15068 hardcode_libdir_flag_spec_F77='-L$libdir'
15069 hardcode_minus_L_F77=yes
15070 allow_undefined_flag_F77=unsupported
15071 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'
15072 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15075 osf3*)
15076 if test "$GCC" = yes; then
15077 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15078 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'
15079 else
15080 allow_undefined_flag_F77=' -expect_unresolved \*'
15081 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'
15083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15084 hardcode_libdir_separator_F77=:
15087 osf4* | osf5*) # as osf3* with the addition of -msym flag
15088 if test "$GCC" = yes; then
15089 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15090 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'
15091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15092 else
15093 allow_undefined_flag_F77=' -expect_unresolved \*'
15094 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'
15095 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~
15096 $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'
15098 # Both c and cxx compiler support -rpath directly
15099 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15101 hardcode_libdir_separator_F77=:
15104 solaris*)
15105 no_undefined_flag_F77=' -z text'
15106 if test "$GCC" = yes; then
15107 wlarc='${wl}'
15108 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15109 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15110 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15111 else
15112 wlarc=''
15113 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15117 hardcode_libdir_flag_spec_F77='-R$libdir'
15118 hardcode_shlibpath_var_F77=no
15119 case $host_os in
15120 solaris2.[0-5] | solaris2.[0-5].*) ;;
15122 # The compiler driver will combine and reorder linker options,
15123 # but understands `-z linker_flag'. GCC discards it without `$wl',
15124 # but is careful enough not to reorder.
15125 # Supported since Solaris 2.6 (maybe 2.5.1?)
15126 if test "$GCC" = yes; then
15127 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15128 else
15129 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15132 esac
15133 link_all_deplibs_F77=yes
15136 sunos4*)
15137 if test "x$host_vendor" = xsequent; then
15138 # Use $CC to link under sequent, because it throws in some extra .o
15139 # files that make .init and .fini sections work.
15140 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15141 else
15142 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15144 hardcode_libdir_flag_spec_F77='-L$libdir'
15145 hardcode_direct_F77=yes
15146 hardcode_minus_L_F77=yes
15147 hardcode_shlibpath_var_F77=no
15150 sysv4)
15151 case $host_vendor in
15152 sni)
15153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154 hardcode_direct_F77=yes # is this really true???
15156 siemens)
15157 ## LD is ld it makes a PLAMLIB
15158 ## CC just makes a GrossModule.
15159 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15160 reload_cmds_F77='$CC -r -o $output$reload_objs'
15161 hardcode_direct_F77=no
15163 motorola)
15164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15167 esac
15168 runpath_var='LD_RUN_PATH'
15169 hardcode_shlibpath_var_F77=no
15172 sysv4.3*)
15173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_shlibpath_var_F77=no
15175 export_dynamic_flag_spec_F77='-Bexport'
15178 sysv4*MP*)
15179 if test -d /usr/nec; then
15180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181 hardcode_shlibpath_var_F77=no
15182 runpath_var=LD_RUN_PATH
15183 hardcode_runpath_var=yes
15184 ld_shlibs_F77=yes
15188 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15189 no_undefined_flag_F77='${wl}-z,text'
15190 archive_cmds_need_lc_F77=no
15191 hardcode_shlibpath_var_F77=no
15192 runpath_var='LD_RUN_PATH'
15194 if test "$GCC" = yes; then
15195 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 else
15198 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 sysv5* | sco3.2v5* | sco5v6*)
15204 # Note: We can NOT use -z defs as we might desire, because we do not
15205 # link with -lc, and that would cause any symbols used from libc to
15206 # always be unresolved, which means just about no library would
15207 # ever link correctly. If we're not using GNU ld we use -z text
15208 # though, which does catch some bad symbols but isn't as heavy-handed
15209 # as -z defs.
15210 no_undefined_flag_F77='${wl}-z,text'
15211 allow_undefined_flag_F77='${wl}-z,nodefs'
15212 archive_cmds_need_lc_F77=no
15213 hardcode_shlibpath_var_F77=no
15214 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15215 hardcode_libdir_separator_F77=':'
15216 link_all_deplibs_F77=yes
15217 export_dynamic_flag_spec_F77='${wl}-Bexport'
15218 runpath_var='LD_RUN_PATH'
15220 if test "$GCC" = yes; then
15221 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15223 else
15224 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15229 uts4*)
15230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15231 hardcode_libdir_flag_spec_F77='-L$libdir'
15232 hardcode_shlibpath_var_F77=no
15236 ld_shlibs_F77=no
15238 esac
15241 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15242 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15243 test "$ld_shlibs_F77" = no && can_build_shared=no
15246 # Do we need to explicitly link libc?
15248 case "x$archive_cmds_need_lc_F77" in
15249 x|xyes)
15250 # Assume -lc should be added
15251 archive_cmds_need_lc_F77=yes
15253 if test "$enable_shared" = yes && test "$GCC" = yes; then
15254 case $archive_cmds_F77 in
15255 *'~'*)
15256 # FIXME: we may have to deal with multi-command sequences.
15258 '$CC '*)
15259 # Test whether the compiler implicitly links with -lc since on some
15260 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15261 # to ld, don't add -lc before -lgcc.
15262 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15263 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15264 $rm conftest*
15265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15268 (eval $ac_compile) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } 2>conftest.err; then
15272 soname=conftest
15273 lib=conftest
15274 libobjs=conftest.$ac_objext
15275 deplibs=
15276 wl=$lt_prog_compiler_wl_F77
15277 pic_flag=$lt_prog_compiler_pic_F77
15278 compiler_flags=-v
15279 linker_flags=-v
15280 verstring=
15281 output_objdir=.
15282 libname=conftest
15283 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15284 allow_undefined_flag_F77=
15285 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15286 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }
15290 then
15291 archive_cmds_need_lc_F77=no
15292 else
15293 archive_cmds_need_lc_F77=yes
15295 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15296 else
15297 cat conftest.err 1>&5
15299 $rm conftest*
15300 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15301 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15303 esac
15306 esac
15308 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15309 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15310 library_names_spec=
15311 libname_spec='lib$name'
15312 soname_spec=
15313 shrext_cmds=".so"
15314 postinstall_cmds=
15315 postuninstall_cmds=
15316 finish_cmds=
15317 finish_eval=
15318 shlibpath_var=
15319 shlibpath_overrides_runpath=unknown
15320 version_type=none
15321 dynamic_linker="$host_os ld.so"
15322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15324 need_lib_prefix=unknown
15325 hardcode_into_libs=no
15327 # when you set need_version to no, make sure it does not cause -set_version
15328 # flags to be left without arguments
15329 need_version=unknown
15331 case $host_os in
15332 aix3*)
15333 version_type=linux
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15335 shlibpath_var=LIBPATH
15337 # AIX 3 has no versioning support, so we append a major version to the name.
15338 soname_spec='${libname}${release}${shared_ext}$major'
15341 aix4* | aix5*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 hardcode_into_libs=yes
15346 if test "$host_cpu" = ia64; then
15347 # AIX 5 supports IA64
15348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 else
15351 # With GCC up to 2.95.x, collect2 would create an import file
15352 # for dependence libraries. The import file would start with
15353 # the line `#! .'. This would cause the generated library to
15354 # depend on `.', always an invalid library. This was fixed in
15355 # development snapshots of GCC prior to 3.0.
15356 case $host_os in
15357 aix4 | aix4.[01] | aix4.[01].*)
15358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15359 echo ' yes '
15360 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15362 else
15363 can_build_shared=no
15366 esac
15367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15368 # soname into executable. Probably we can add versioning support to
15369 # collect2, so additional links can be useful in future.
15370 if test "$aix_use_runtimelinking" = yes; then
15371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15372 # instead of lib<name>.a to let people know that these are not
15373 # typical AIX shared libraries.
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 else
15376 # We preserve .a as extension for shared libraries through AIX4.2
15377 # and later when we are not doing run time linking.
15378 library_names_spec='${libname}${release}.a $libname.a'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LIBPATH
15385 amigaos*)
15386 library_names_spec='$libname.ixlibrary $libname.a'
15387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15388 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'
15391 beos*)
15392 library_names_spec='${libname}${shared_ext}'
15393 dynamic_linker="$host_os ld.so"
15394 shlibpath_var=LIBRARY_PATH
15397 bsdi[45]*)
15398 version_type=linux
15399 need_version=no
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15406 # the default ld.so.conf also contains /usr/contrib/lib and
15407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15408 # libtool to hard-code these into programs
15411 cygwin* | mingw* | pw32*)
15412 version_type=windows
15413 shrext_cmds=".dll"
15414 need_version=no
15415 need_lib_prefix=no
15417 case $GCC,$host_os in
15418 yes,cygwin* | yes,mingw* | yes,pw32*)
15419 library_names_spec='$libname.dll.a'
15420 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15421 postinstall_cmds='base_file=`basename \${file}`~
15422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15423 dldir=$destdir/`dirname \$dlpath`~
15424 test -d \$dldir || mkdir -p \$dldir~
15425 $install_prog $dir/$dlname \$dldir/$dlname~
15426 chmod a+x \$dldir/$dlname'
15427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15428 dlpath=$dir/\$dldll~
15429 $rm \$dlpath'
15430 shlibpath_overrides_runpath=yes
15432 case $host_os in
15433 cygwin*)
15434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15436 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15438 mingw*)
15439 # MinGW DLLs use traditional 'lib' prefix
15440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15442 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15443 # It is most probably a Windows format PATH printed by
15444 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15445 # path with ; separators, and with drive letters. We can handle the
15446 # drive letters (cygwin fileutils understands them), so leave them,
15447 # especially as we might pass files found there to a mingw objdump,
15448 # which wouldn't understand a cygwinified path. Ahh.
15449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15450 else
15451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15454 pw32*)
15455 # pw32 DLLs use 'pw' prefix rather than 'lib'
15456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15458 esac
15462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15464 esac
15465 dynamic_linker='Win32 ld.exe'
15466 # FIXME: first we should search . and the directory the executable is in
15467 shlibpath_var=PATH
15470 darwin* | rhapsody*)
15471 dynamic_linker="$host_os dyld"
15472 version_type=darwin
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15476 soname_spec='${libname}${release}${major}$shared_ext'
15477 shlibpath_overrides_runpath=yes
15478 shlibpath_var=DYLD_LIBRARY_PATH
15479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15484 dgux*)
15485 version_type=linux
15486 need_lib_prefix=no
15487 need_version=no
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15493 freebsd1*)
15494 dynamic_linker=no
15497 freebsd* | dragonfly*)
15498 # DragonFly does not have aout. When/if they implement a new
15499 # versioning mechanism, adjust this.
15500 if test -x /usr/bin/objformat; then
15501 objformat=`/usr/bin/objformat`
15502 else
15503 case $host_os in
15504 freebsd[123]*) objformat=aout ;;
15505 *) objformat=elf ;;
15506 esac
15508 version_type=freebsd-$objformat
15509 case $version_type in
15510 freebsd-elf*)
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15512 need_version=no
15513 need_lib_prefix=no
15515 freebsd-*)
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15517 need_version=yes
15519 esac
15520 shlibpath_var=LD_LIBRARY_PATH
15521 case $host_os in
15522 freebsd2*)
15523 shlibpath_overrides_runpath=yes
15525 freebsd3.[01]* | freebsdelf3.[01]*)
15526 shlibpath_overrides_runpath=yes
15527 hardcode_into_libs=yes
15529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15531 shlibpath_overrides_runpath=no
15532 hardcode_into_libs=yes
15534 *) # from 4.6 on, and DragonFly
15535 shlibpath_overrides_runpath=yes
15536 hardcode_into_libs=yes
15538 esac
15541 gnu*)
15542 version_type=linux
15543 need_lib_prefix=no
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 hardcode_into_libs=yes
15551 hpux9* | hpux10* | hpux11*)
15552 # Give a soname corresponding to the major version so that dld.sl refuses to
15553 # link against other versions.
15554 version_type=sunos
15555 need_lib_prefix=no
15556 need_version=no
15557 case $host_cpu in
15558 ia64*)
15559 shrext_cmds='.so'
15560 hardcode_into_libs=yes
15561 dynamic_linker="$host_os dld.so"
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 if test "X$HPUX_IA64_MODE" = X32; then
15567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15568 else
15569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573 hppa*64*)
15574 shrext_cmds='.sl'
15575 hardcode_into_libs=yes
15576 dynamic_linker="$host_os dld.sl"
15577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15585 shrext_cmds='.sl'
15586 dynamic_linker="$host_os dld.sl"
15587 shlibpath_var=SHLIB_PATH
15588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15592 esac
15593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15594 postinstall_cmds='chmod 555 $lib'
15597 interix[3-9]*)
15598 version_type=linux
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=no
15606 hardcode_into_libs=yes
15609 irix5* | irix6* | nonstopux*)
15610 case $host_os in
15611 nonstopux*) version_type=nonstopux ;;
15613 if test "$lt_cv_prog_gnu_ld" = yes; then
15614 version_type=linux
15615 else
15616 version_type=irix
15617 fi ;;
15618 esac
15619 need_lib_prefix=no
15620 need_version=no
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15623 case $host_os in
15624 irix5* | nonstopux*)
15625 libsuff= shlibsuff=
15628 case $LD in # libtool.m4 will add one of these switches to LD
15629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15630 libsuff= shlibsuff= libmagic=32-bit;;
15631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15632 libsuff=32 shlibsuff=N32 libmagic=N32;;
15633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15635 *) libsuff= shlibsuff= libmagic=never-match;;
15636 esac
15638 esac
15639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15640 shlibpath_overrides_runpath=no
15641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15643 hardcode_into_libs=yes
15646 # No shared lib support for Linux oldld, aout, or coff.
15647 linux*oldld* | linux*aout* | linux*coff*)
15648 dynamic_linker=no
15651 # This must be Linux ELF.
15652 linux* | k*bsd*-gnu)
15653 version_type=linux
15654 need_lib_prefix=no
15655 need_version=no
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 # This implies no fast_install, which is unacceptable.
15662 # Some rework will be needed to allow for fast_install
15663 # before this can be enabled.
15664 hardcode_into_libs=yes
15666 # Append ld.so.conf contents to the search path
15667 if test -f /etc/ld.so.conf; then
15668 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15672 # We used to test for /lib/ld.so.1 and disable shared libraries on
15673 # powerpc, because MkLinux only supported shared libraries with the
15674 # GNU dynamic linker. Since this was broken with cross compilers,
15675 # most powerpc-linux boxes support dynamic linking these days and
15676 # people can always --disable-shared, the test was removed, and we
15677 # assume the GNU/Linux dynamic linker is in use.
15678 dynamic_linker='GNU/Linux ld.so'
15681 netbsd*)
15682 version_type=sunos
15683 need_lib_prefix=no
15684 need_version=no
15685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15688 dynamic_linker='NetBSD (a.out) ld.so'
15689 else
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 dynamic_linker='NetBSD ld.elf_so'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 shlibpath_overrides_runpath=yes
15696 hardcode_into_libs=yes
15699 newsos6)
15700 version_type=linux
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15706 nto-qnx*)
15707 version_type=linux
15708 need_lib_prefix=no
15709 need_version=no
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 soname_spec='${libname}${release}${shared_ext}$major'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15716 openbsd*)
15717 version_type=sunos
15718 sys_lib_dlsearch_path_spec="/usr/lib"
15719 need_lib_prefix=no
15720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15721 case $host_os in
15722 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15723 *) need_version=no ;;
15724 esac
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15729 case $host_os in
15730 openbsd2.[89] | openbsd2.[89].*)
15731 shlibpath_overrides_runpath=no
15734 shlibpath_overrides_runpath=yes
15736 esac
15737 else
15738 shlibpath_overrides_runpath=yes
15742 os2*)
15743 libname_spec='$name'
15744 shrext_cmds=".dll"
15745 need_lib_prefix=no
15746 library_names_spec='$libname${shared_ext} $libname.a'
15747 dynamic_linker='OS/2 ld.exe'
15748 shlibpath_var=LIBPATH
15751 osf3* | osf4* | osf5*)
15752 version_type=osf
15753 need_lib_prefix=no
15754 need_version=no
15755 soname_spec='${libname}${release}${shared_ext}$major'
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 shlibpath_var=LD_LIBRARY_PATH
15758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15759 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15762 rdos*)
15763 dynamic_linker=no
15766 solaris*)
15767 version_type=linux
15768 need_lib_prefix=no
15769 need_version=no
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=yes
15774 hardcode_into_libs=yes
15775 # ldd complains unless libraries are executable
15776 postinstall_cmds='chmod +x $lib'
15779 sunos4*)
15780 version_type=sunos
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=yes
15785 if test "$with_gnu_ld" = yes; then
15786 need_lib_prefix=no
15788 need_version=yes
15791 sysv4 | sysv4.3*)
15792 version_type=linux
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15794 soname_spec='${libname}${release}${shared_ext}$major'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 case $host_vendor in
15797 sni)
15798 shlibpath_overrides_runpath=no
15799 need_lib_prefix=no
15800 export_dynamic_flag_spec='${wl}-Blargedynsym'
15801 runpath_var=LD_RUN_PATH
15803 siemens)
15804 need_lib_prefix=no
15806 motorola)
15807 need_lib_prefix=no
15808 need_version=no
15809 shlibpath_overrides_runpath=no
15810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15812 esac
15815 sysv4*MP*)
15816 if test -d /usr/nec ;then
15817 version_type=linux
15818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15819 soname_spec='$libname${shared_ext}.$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15825 version_type=freebsd-elf
15826 need_lib_prefix=no
15827 need_version=no
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15829 soname_spec='${libname}${release}${shared_ext}$major'
15830 shlibpath_var=LD_LIBRARY_PATH
15831 hardcode_into_libs=yes
15832 if test "$with_gnu_ld" = yes; then
15833 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15834 shlibpath_overrides_runpath=no
15835 else
15836 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15837 shlibpath_overrides_runpath=yes
15838 case $host_os in
15839 sco3.2v5*)
15840 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15842 esac
15844 sys_lib_dlsearch_path_spec='/usr/lib'
15847 uts4*)
15848 version_type=linux
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850 soname_spec='${libname}${release}${shared_ext}$major'
15851 shlibpath_var=LD_LIBRARY_PATH
15855 dynamic_linker=no
15857 esac
15858 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15859 echo "${ECHO_T}$dynamic_linker" >&6; }
15860 test "$dynamic_linker" = no && can_build_shared=no
15862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15863 if test "$GCC" = yes; then
15864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15867 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15868 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15869 hardcode_action_F77=
15870 if test -n "$hardcode_libdir_flag_spec_F77" || \
15871 test -n "$runpath_var_F77" || \
15872 test "X$hardcode_automatic_F77" = "Xyes" ; then
15874 # We can hardcode non-existant directories.
15875 if test "$hardcode_direct_F77" != no &&
15876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15877 # have to relink, otherwise we might link with an installed library
15878 # when we should be linking with a yet-to-be-installed one
15879 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15880 test "$hardcode_minus_L_F77" != no; then
15881 # Linking always hardcodes the temporary library directory.
15882 hardcode_action_F77=relink
15883 else
15884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15885 hardcode_action_F77=immediate
15887 else
15888 # We cannot hardcode anything, or else we can only hardcode existing
15889 # directories.
15890 hardcode_action_F77=unsupported
15892 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15893 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15895 if test "$hardcode_action_F77" = relink; then
15896 # Fast installation is not supported
15897 enable_fast_install=no
15898 elif test "$shlibpath_overrides_runpath" = yes ||
15899 test "$enable_shared" = no; then
15900 # Fast installation is not necessary
15901 enable_fast_install=needless
15905 # The else clause should only fire when bootstrapping the
15906 # libtool distribution, otherwise you forgot to ship ltmain.sh
15907 # with your package, and you will get complaints that there are
15908 # no rules to generate ltmain.sh.
15909 if test -f "$ltmain"; then
15910 # See if we are running on zsh, and set the options which allow our commands through
15911 # without removal of \ escapes.
15912 if test -n "${ZSH_VERSION+set}" ; then
15913 setopt NO_GLOB_SUBST
15915 # Now quote all the things that may contain metacharacters while being
15916 # careful not to overquote the AC_SUBSTed values. We take copies of the
15917 # variables and quote the copies for generation of the libtool script.
15918 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15919 SED SHELL STRIP \
15920 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15921 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15922 deplibs_check_method reload_flag reload_cmds need_locks \
15923 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15924 lt_cv_sys_global_symbol_to_c_name_address \
15925 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15926 old_postinstall_cmds old_postuninstall_cmds \
15927 compiler_F77 \
15928 CC_F77 \
15929 LD_F77 \
15930 lt_prog_compiler_wl_F77 \
15931 lt_prog_compiler_pic_F77 \
15932 lt_prog_compiler_static_F77 \
15933 lt_prog_compiler_no_builtin_flag_F77 \
15934 export_dynamic_flag_spec_F77 \
15935 thread_safe_flag_spec_F77 \
15936 whole_archive_flag_spec_F77 \
15937 enable_shared_with_static_runtimes_F77 \
15938 old_archive_cmds_F77 \
15939 old_archive_from_new_cmds_F77 \
15940 predep_objects_F77 \
15941 postdep_objects_F77 \
15942 predeps_F77 \
15943 postdeps_F77 \
15944 compiler_lib_search_path_F77 \
15945 archive_cmds_F77 \
15946 archive_expsym_cmds_F77 \
15947 postinstall_cmds_F77 \
15948 postuninstall_cmds_F77 \
15949 old_archive_from_expsyms_cmds_F77 \
15950 allow_undefined_flag_F77 \
15951 no_undefined_flag_F77 \
15952 export_symbols_cmds_F77 \
15953 hardcode_libdir_flag_spec_F77 \
15954 hardcode_libdir_flag_spec_ld_F77 \
15955 hardcode_libdir_separator_F77 \
15956 hardcode_automatic_F77 \
15957 module_cmds_F77 \
15958 module_expsym_cmds_F77 \
15959 lt_cv_prog_compiler_c_o_F77 \
15960 fix_srcfile_path_F77 \
15961 exclude_expsyms_F77 \
15962 include_expsyms_F77; do
15964 case $var in
15965 old_archive_cmds_F77 | \
15966 old_archive_from_new_cmds_F77 | \
15967 archive_cmds_F77 | \
15968 archive_expsym_cmds_F77 | \
15969 module_cmds_F77 | \
15970 module_expsym_cmds_F77 | \
15971 old_archive_from_expsyms_cmds_F77 | \
15972 export_symbols_cmds_F77 | \
15973 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15974 postinstall_cmds | postuninstall_cmds | \
15975 old_postinstall_cmds | old_postuninstall_cmds | \
15976 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15977 # Double-quote double-evaled strings.
15978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15983 esac
15984 done
15986 case $lt_echo in
15987 *'\$0 --fallback-echo"')
15988 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15990 esac
15992 cfgfile="$ofile"
15994 cat <<__EOF__ >> "$cfgfile"
15995 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15999 # Shell to use when invoking shell scripts.
16000 SHELL=$lt_SHELL
16002 # Whether or not to build shared libraries.
16003 build_libtool_libs=$enable_shared
16005 # Whether or not to build static libraries.
16006 build_old_libs=$enable_static
16008 # Whether or not to add -lc for building shared libraries.
16009 build_libtool_need_lc=$archive_cmds_need_lc_F77
16011 # Whether or not to disallow shared libs when runtime libs are static
16012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16014 # Whether or not to optimize for fast installation.
16015 fast_install=$enable_fast_install
16017 # The host system.
16018 host_alias=$host_alias
16019 host=$host
16020 host_os=$host_os
16022 # The build system.
16023 build_alias=$build_alias
16024 build=$build
16025 build_os=$build_os
16027 # An echo program that does not interpret backslashes.
16028 echo=$lt_echo
16030 # The archiver.
16031 AR=$lt_AR
16032 AR_FLAGS=$lt_AR_FLAGS
16034 # A C compiler.
16035 LTCC=$lt_LTCC
16037 # LTCC compiler flags.
16038 LTCFLAGS=$lt_LTCFLAGS
16040 # A language-specific compiler.
16041 CC=$lt_compiler_F77
16043 # Is the compiler the GNU C compiler?
16044 with_gcc=$GCC_F77
16046 # An ERE matcher.
16047 EGREP=$lt_EGREP
16049 # The linker used to build libraries.
16050 LD=$lt_LD_F77
16052 # Whether we need hard or soft links.
16053 LN_S=$lt_LN_S
16055 # A BSD-compatible nm program.
16056 NM=$lt_NM
16058 # A symbol stripping program
16059 STRIP=$lt_STRIP
16061 # Used to examine libraries when file_magic_cmd begins "file"
16062 MAGIC_CMD=$MAGIC_CMD
16064 # Used on cygwin: DLL creation program.
16065 DLLTOOL="$DLLTOOL"
16067 # Used on cygwin: object dumper.
16068 OBJDUMP="$OBJDUMP"
16070 # Used on cygwin: assembler.
16071 AS="$AS"
16073 # The name of the directory that contains temporary libtool files.
16074 objdir=$objdir
16076 # How to create reloadable object files.
16077 reload_flag=$lt_reload_flag
16078 reload_cmds=$lt_reload_cmds
16080 # How to pass a linker flag through the compiler.
16081 wl=$lt_lt_prog_compiler_wl_F77
16083 # Object file suffix (normally "o").
16084 objext="$ac_objext"
16086 # Old archive suffix (normally "a").
16087 libext="$libext"
16089 # Shared library suffix (normally ".so").
16090 shrext_cmds='$shrext_cmds'
16092 # Executable file suffix (normally "").
16093 exeext="$exeext"
16095 # Additional compiler flags for building library objects.
16096 pic_flag=$lt_lt_prog_compiler_pic_F77
16097 pic_mode=$pic_mode
16099 # What is the maximum length of a command?
16100 max_cmd_len=$lt_cv_sys_max_cmd_len
16102 # Does compiler simultaneously support -c and -o options?
16103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16105 # Must we lock files when doing compilation?
16106 need_locks=$lt_need_locks
16108 # Do we need the lib prefix for modules?
16109 need_lib_prefix=$need_lib_prefix
16111 # Do we need a version for libraries?
16112 need_version=$need_version
16114 # Whether dlopen is supported.
16115 dlopen_support=$enable_dlopen
16117 # Whether dlopen of programs is supported.
16118 dlopen_self=$enable_dlopen_self
16120 # Whether dlopen of statically linked programs is supported.
16121 dlopen_self_static=$enable_dlopen_self_static
16123 # Compiler flag to prevent dynamic linking.
16124 link_static_flag=$lt_lt_prog_compiler_static_F77
16126 # Compiler flag to turn off builtin functions.
16127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16129 # Compiler flag to allow reflexive dlopens.
16130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16132 # Compiler flag to generate shared objects directly from archives.
16133 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16135 # Compiler flag to generate thread-safe objects.
16136 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16138 # Library versioning type.
16139 version_type=$version_type
16141 # Format of library name prefix.
16142 libname_spec=$lt_libname_spec
16144 # List of archive names. First name is the real one, the rest are links.
16145 # The last name is the one that the linker finds with -lNAME.
16146 library_names_spec=$lt_library_names_spec
16148 # The coded name of the library, if different from the real name.
16149 soname_spec=$lt_soname_spec
16151 # Commands used to build and install an old-style archive.
16152 RANLIB=$lt_RANLIB
16153 old_archive_cmds=$lt_old_archive_cmds_F77
16154 old_postinstall_cmds=$lt_old_postinstall_cmds
16155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16157 # Create an old-style archive from a shared archive.
16158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16160 # Create a temporary old-style archive to link instead of a shared archive.
16161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16163 # Commands used to build and install a shared archive.
16164 archive_cmds=$lt_archive_cmds_F77
16165 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16166 postinstall_cmds=$lt_postinstall_cmds
16167 postuninstall_cmds=$lt_postuninstall_cmds
16169 # Commands used to build a loadable module (assumed same as above if empty)
16170 module_cmds=$lt_module_cmds_F77
16171 module_expsym_cmds=$lt_module_expsym_cmds_F77
16173 # Commands to strip libraries.
16174 old_striplib=$lt_old_striplib
16175 striplib=$lt_striplib
16177 # Dependencies to place before the objects being linked to create a
16178 # shared library.
16179 predep_objects=$lt_predep_objects_F77
16181 # Dependencies to place after the objects being linked to create a
16182 # shared library.
16183 postdep_objects=$lt_postdep_objects_F77
16185 # Dependencies to place before the objects being linked to create a
16186 # shared library.
16187 predeps=$lt_predeps_F77
16189 # Dependencies to place after the objects being linked to create a
16190 # shared library.
16191 postdeps=$lt_postdeps_F77
16193 # The library search path used internally by the compiler when linking
16194 # a shared library.
16195 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16197 # Method to check whether dependent libraries are shared objects.
16198 deplibs_check_method=$lt_deplibs_check_method
16200 # Command to use when deplibs_check_method == file_magic.
16201 file_magic_cmd=$lt_file_magic_cmd
16203 # Flag that allows shared libraries with undefined symbols to be built.
16204 allow_undefined_flag=$lt_allow_undefined_flag_F77
16206 # Flag that forces no undefined symbols.
16207 no_undefined_flag=$lt_no_undefined_flag_F77
16209 # Commands used to finish a libtool library installation in a directory.
16210 finish_cmds=$lt_finish_cmds
16212 # Same as above, but a single script fragment to be evaled but not shown.
16213 finish_eval=$lt_finish_eval
16215 # Take the output of nm and produce a listing of raw symbols and C names.
16216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16218 # Transform the output of nm in a proper C declaration
16219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16221 # Transform the output of nm in a C name address pair
16222 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16224 # This is the shared library runtime path variable.
16225 runpath_var=$runpath_var
16227 # This is the shared library path variable.
16228 shlibpath_var=$shlibpath_var
16230 # Is shlibpath searched before the hard-coded library search path?
16231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16233 # How to hardcode a shared library path into an executable.
16234 hardcode_action=$hardcode_action_F77
16236 # Whether we should hardcode library paths into libraries.
16237 hardcode_into_libs=$hardcode_into_libs
16239 # Flag to hardcode \$libdir into a binary during linking.
16240 # This must work even if \$libdir does not exist.
16241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16243 # If ld is used when linking, flag to hardcode \$libdir into
16244 # a binary during linking. This must work even if \$libdir does
16245 # not exist.
16246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16248 # Whether we need a single -rpath flag with a separated argument.
16249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16251 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16252 # resulting binary.
16253 hardcode_direct=$hardcode_direct_F77
16255 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_minus_L=$hardcode_minus_L_F77
16259 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16260 # the resulting binary.
16261 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16263 # Set to yes if building a shared library automatically hardcodes DIR into the library
16264 # and all subsequent libraries and executables linked against it.
16265 hardcode_automatic=$hardcode_automatic_F77
16267 # Variables whose values should be saved in libtool wrapper scripts and
16268 # restored at relink time.
16269 variables_saved_for_relink="$variables_saved_for_relink"
16271 # Whether libtool must link a program against all its dependency libraries.
16272 link_all_deplibs=$link_all_deplibs_F77
16274 # Compile-time system search path for libraries
16275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16277 # Run-time system search path for libraries
16278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16280 # Fix the shell variable \$srcfile for the compiler.
16281 fix_srcfile_path=$lt_fix_srcfile_path
16283 # Set to yes if exported symbols are required.
16284 always_export_symbols=$always_export_symbols_F77
16286 # The commands to list exported symbols.
16287 export_symbols_cmds=$lt_export_symbols_cmds_F77
16289 # The commands to extract the exported symbol list from a shared archive.
16290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16292 # Symbols that should not be listed in the preloaded symbols.
16293 exclude_expsyms=$lt_exclude_expsyms_F77
16295 # Symbols that must always be exported.
16296 include_expsyms=$lt_include_expsyms_F77
16298 # ### END LIBTOOL TAG CONFIG: $tagname
16300 __EOF__
16303 else
16304 # If there is no Makefile yet, we rely on a make rule to execute
16305 # `config.status --recheck' to rerun these tests and create the
16306 # libtool script then.
16307 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16308 if test -f "$ltmain_in"; then
16309 test -f Makefile && make "$ltmain"
16314 ac_ext=c
16315 ac_cpp='$CPP $CPPFLAGS'
16316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320 CC="$lt_save_CC"
16322 else
16323 tagname=""
16327 GCJ)
16328 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16331 # Source file extension for Java test sources.
16332 ac_ext=java
16334 # Object file extension for compiled Java test sources.
16335 objext=o
16336 objext_GCJ=$objext
16338 # Code to be used in simple compile tests
16339 lt_simple_compile_test_code="class foo {}"
16341 # Code to be used in simple link tests
16342 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16346 # If no C compiler was specified, use CC.
16347 LTCC=${LTCC-"$CC"}
16349 # If no C compiler flags were specified, use CFLAGS.
16350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16352 # Allow CC to be a program name with arguments.
16353 compiler=$CC
16356 # save warnings/boilerplate of simple test code
16357 ac_outfile=conftest.$ac_objext
16358 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16360 _lt_compiler_boilerplate=`cat conftest.err`
16361 $rm conftest*
16363 ac_outfile=conftest.$ac_objext
16364 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_linker_boilerplate=`cat conftest.err`
16367 $rm conftest*
16370 # Allow CC to be a program name with arguments.
16371 lt_save_CC="$CC"
16372 CC=${GCJ-"gcj"}
16373 compiler=$CC
16374 compiler_GCJ=$CC
16375 for cc_temp in $compiler""; do
16376 case $cc_temp in
16377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16379 \-*) ;;
16380 *) break;;
16381 esac
16382 done
16383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16386 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16387 archive_cmds_need_lc_GCJ=no
16389 old_archive_cmds_GCJ=$old_archive_cmds
16392 lt_prog_compiler_no_builtin_flag_GCJ=
16394 if test "$GCC" = yes; then
16395 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16398 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16399 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16400 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403 lt_cv_prog_compiler_rtti_exceptions=no
16404 ac_outfile=conftest.$ac_objext
16405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16406 lt_compiler_flag="-fno-rtti -fno-exceptions"
16407 # Insert the option either (1) after the last *FLAGS variable, or
16408 # (2) before a word containing "conftest.", or (3) at the end.
16409 # Note that $ac_compile itself does not contain backslashes and begins
16410 # with a dollar sign (not a hyphen), so the echo should work correctly.
16411 # The option is referenced via a variable to avoid confusing sed.
16412 lt_compile=`echo "$ac_compile" | $SED \
16413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16415 -e 's:$: $lt_compiler_flag:'`
16416 (eval echo "\"\$as_me:16416: $lt_compile\"" >&5)
16417 (eval "$lt_compile" 2>conftest.err)
16418 ac_status=$?
16419 cat conftest.err >&5
16420 echo "$as_me:16420: \$? = $ac_status" >&5
16421 if (exit $ac_status) && test -s "$ac_outfile"; then
16422 # The compiler can only warn and ignore the option if not recognized
16423 # So say no if there are warnings other than the usual output.
16424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16427 lt_cv_prog_compiler_rtti_exceptions=yes
16430 $rm conftest*
16433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16434 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16436 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16437 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16438 else
16444 lt_prog_compiler_wl_GCJ=
16445 lt_prog_compiler_pic_GCJ=
16446 lt_prog_compiler_static_GCJ=
16448 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16449 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16451 if test "$GCC" = yes; then
16452 lt_prog_compiler_wl_GCJ='-Wl,'
16453 lt_prog_compiler_static_GCJ='-static'
16455 case $host_os in
16456 aix*)
16457 # All AIX code is PIC.
16458 if test "$host_cpu" = ia64; then
16459 # AIX 5 now supports IA64 processor
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16464 amigaos*)
16465 # FIXME: we need at least 68020 code to build shared libraries, but
16466 # adding the `-m68020' flag to GCC prevents building anything better,
16467 # like `-m68040'.
16468 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16472 # PIC is the default for these OSes.
16475 mingw* | cygwin* | pw32* | os2*)
16476 # This hack is so that the source file can tell whether it is being
16477 # built for inclusion in a dll (and should export symbols for example).
16478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16479 # (--disable-auto-import) libraries
16480 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16483 darwin* | rhapsody*)
16484 # PIC is the default on this platform
16485 # Common symbols not allowed in MH_DYLIB files
16486 lt_prog_compiler_pic_GCJ='-fno-common'
16489 interix[3-9]*)
16490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16491 # Instead, we relocate shared libraries at runtime.
16494 msdosdjgpp*)
16495 # Just because we use GCC doesn't mean we suddenly get shared libraries
16496 # on systems that don't support them.
16497 lt_prog_compiler_can_build_shared_GCJ=no
16498 enable_shared=no
16501 sysv4*MP*)
16502 if test -d /usr/nec; then
16503 lt_prog_compiler_pic_GCJ=-Kconform_pic
16507 hpux*)
16508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16509 # not for PA HP-UX.
16510 case $host_cpu in
16511 hppa*64*|ia64*)
16512 # +Z the default
16515 lt_prog_compiler_pic_GCJ='-fPIC'
16517 esac
16521 lt_prog_compiler_pic_GCJ='-fPIC'
16523 esac
16524 else
16525 # PORTME Check for flag to pass linker flags through the system compiler.
16526 case $host_os in
16527 aix*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 if test "$host_cpu" = ia64; then
16530 # AIX 5 now supports IA64 processor
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16532 else
16533 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16536 darwin*)
16537 # PIC is the default on this platform
16538 # Common symbols not allowed in MH_DYLIB files
16539 case $cc_basename in
16540 xlc*)
16541 lt_prog_compiler_pic_GCJ='-qnocommon'
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16544 esac
16547 mingw* | cygwin* | pw32* | os2*)
16548 # This hack is so that the source file can tell whether it is being
16549 # built for inclusion in a dll (and should export symbols for example).
16550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16553 hpux9* | hpux10* | hpux11*)
16554 lt_prog_compiler_wl_GCJ='-Wl,'
16555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16556 # not for PA HP-UX.
16557 case $host_cpu in
16558 hppa*64*|ia64*)
16559 # +Z the default
16562 lt_prog_compiler_pic_GCJ='+Z'
16564 esac
16565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16566 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16569 irix5* | irix6* | nonstopux*)
16570 lt_prog_compiler_wl_GCJ='-Wl,'
16571 # PIC (with -KPIC) is the default.
16572 lt_prog_compiler_static_GCJ='-non_shared'
16575 newsos6)
16576 lt_prog_compiler_pic_GCJ='-KPIC'
16577 lt_prog_compiler_static_GCJ='-Bstatic'
16580 linux* | k*bsd*-gnu)
16581 case $cc_basename in
16582 icc* | ecc*)
16583 lt_prog_compiler_wl_GCJ='-Wl,'
16584 lt_prog_compiler_pic_GCJ='-KPIC'
16585 lt_prog_compiler_static_GCJ='-static'
16587 pgcc* | pgf77* | pgf90* | pgf95*)
16588 # Portland Group compilers (*not* the Pentium gcc compiler,
16589 # which looks to be a dead project)
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 lt_prog_compiler_pic_GCJ='-fpic'
16592 lt_prog_compiler_static_GCJ='-Bstatic'
16594 ccc*)
16595 lt_prog_compiler_wl_GCJ='-Wl,'
16596 # All Alpha code is PIC.
16597 lt_prog_compiler_static_GCJ='-non_shared'
16600 case `$CC -V 2>&1 | sed 5q` in
16601 *Sun\ C*)
16602 # Sun C 5.9
16603 lt_prog_compiler_pic_GCJ='-KPIC'
16604 lt_prog_compiler_static_GCJ='-Bstatic'
16605 lt_prog_compiler_wl_GCJ='-Wl,'
16607 *Sun\ F*)
16608 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16609 lt_prog_compiler_pic_GCJ='-KPIC'
16610 lt_prog_compiler_static_GCJ='-Bstatic'
16611 lt_prog_compiler_wl_GCJ=''
16613 esac
16615 esac
16618 osf3* | osf4* | osf5*)
16619 lt_prog_compiler_wl_GCJ='-Wl,'
16620 # All OSF/1 code is PIC.
16621 lt_prog_compiler_static_GCJ='-non_shared'
16624 rdos*)
16625 lt_prog_compiler_static_GCJ='-non_shared'
16628 solaris*)
16629 lt_prog_compiler_pic_GCJ='-KPIC'
16630 lt_prog_compiler_static_GCJ='-Bstatic'
16631 case $cc_basename in
16632 f77* | f90* | f95*)
16633 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16635 lt_prog_compiler_wl_GCJ='-Wl,';;
16636 esac
16639 sunos4*)
16640 lt_prog_compiler_wl_GCJ='-Qoption ld '
16641 lt_prog_compiler_pic_GCJ='-PIC'
16642 lt_prog_compiler_static_GCJ='-Bstatic'
16645 sysv4 | sysv4.2uw2* | sysv4.3*)
16646 lt_prog_compiler_wl_GCJ='-Wl,'
16647 lt_prog_compiler_pic_GCJ='-KPIC'
16648 lt_prog_compiler_static_GCJ='-Bstatic'
16651 sysv4*MP*)
16652 if test -d /usr/nec ;then
16653 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16654 lt_prog_compiler_static_GCJ='-Bstatic'
16658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16659 lt_prog_compiler_wl_GCJ='-Wl,'
16660 lt_prog_compiler_pic_GCJ='-KPIC'
16661 lt_prog_compiler_static_GCJ='-Bstatic'
16664 unicos*)
16665 lt_prog_compiler_wl_GCJ='-Wl,'
16666 lt_prog_compiler_can_build_shared_GCJ=no
16669 uts4*)
16670 lt_prog_compiler_pic_GCJ='-pic'
16671 lt_prog_compiler_static_GCJ='-Bstatic'
16675 lt_prog_compiler_can_build_shared_GCJ=no
16677 esac
16680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16681 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16684 # Check to make sure the PIC flag actually works.
16686 if test -n "$lt_prog_compiler_pic_GCJ"; then
16688 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16690 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693 lt_prog_compiler_pic_works_GCJ=no
16694 ac_outfile=conftest.$ac_objext
16695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16696 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16697 # Insert the option either (1) after the last *FLAGS variable, or
16698 # (2) before a word containing "conftest.", or (3) at the end.
16699 # Note that $ac_compile itself does not contain backslashes and begins
16700 # with a dollar sign (not a hyphen), so the echo should work correctly.
16701 # The option is referenced via a variable to avoid confusing sed.
16702 lt_compile=`echo "$ac_compile" | $SED \
16703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16705 -e 's:$: $lt_compiler_flag:'`
16706 (eval echo "\"\$as_me:16706: $lt_compile\"" >&5)
16707 (eval "$lt_compile" 2>conftest.err)
16708 ac_status=$?
16709 cat conftest.err >&5
16710 echo "$as_me:16710: \$? = $ac_status" >&5
16711 if (exit $ac_status) && test -s "$ac_outfile"; then
16712 # The compiler can only warn and ignore the option if not recognized
16713 # So say no if there are warnings other than the usual output.
16714 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16717 lt_prog_compiler_pic_works_GCJ=yes
16720 $rm conftest*
16723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16724 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16726 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16727 case $lt_prog_compiler_pic_GCJ in
16728 "" | " "*) ;;
16729 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16730 esac
16731 else
16732 lt_prog_compiler_pic_GCJ=
16733 lt_prog_compiler_can_build_shared_GCJ=no
16737 case $host_os in
16738 # For platforms which do not support PIC, -DPIC is meaningless:
16739 *djgpp*)
16740 lt_prog_compiler_pic_GCJ=
16743 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16745 esac
16748 # Check to make sure the static flag actually works.
16750 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16751 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16752 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16753 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 lt_prog_compiler_static_works_GCJ=no
16757 save_LDFLAGS="$LDFLAGS"
16758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16761 # The linker can only warn and ignore the option if not recognized
16762 # So say no if there are warnings
16763 if test -s conftest.err; then
16764 # Append any errors to the config.log.
16765 cat conftest.err 1>&5
16766 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16768 if diff conftest.exp conftest.er2 >/dev/null; then
16769 lt_prog_compiler_static_works_GCJ=yes
16771 else
16772 lt_prog_compiler_static_works_GCJ=yes
16775 $rm conftest*
16776 LDFLAGS="$save_LDFLAGS"
16779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16780 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16782 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16784 else
16785 lt_prog_compiler_static_GCJ=
16789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16791 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 lt_cv_prog_compiler_c_o_GCJ=no
16795 $rm -r conftest 2>/dev/null
16796 mkdir conftest
16797 cd conftest
16798 mkdir out
16799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16801 lt_compiler_flag="-o out/conftest2.$ac_objext"
16802 # Insert the option either (1) after the last *FLAGS variable, or
16803 # (2) before a word containing "conftest.", or (3) at the end.
16804 # Note that $ac_compile itself does not contain backslashes and begins
16805 # with a dollar sign (not a hyphen), so the echo should work correctly.
16806 lt_compile=`echo "$ac_compile" | $SED \
16807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16809 -e 's:$: $lt_compiler_flag:'`
16810 (eval echo "\"\$as_me:16810: $lt_compile\"" >&5)
16811 (eval "$lt_compile" 2>out/conftest.err)
16812 ac_status=$?
16813 cat out/conftest.err >&5
16814 echo "$as_me:16814: \$? = $ac_status" >&5
16815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16816 then
16817 # The compiler can only warn and ignore the option if not recognized
16818 # So say no if there are warnings
16819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16822 lt_cv_prog_compiler_c_o_GCJ=yes
16825 chmod u+w . 2>&5
16826 $rm conftest*
16827 # SGI C++ compiler will create directory out/ii_files/ for
16828 # template instantiation
16829 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16830 $rm out/* && rmdir out
16831 cd ..
16832 rmdir conftest
16833 $rm conftest*
16836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16840 hard_links="nottested"
16841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16842 # do not overwrite the value of need_locks provided by the user
16843 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16845 hard_links=yes
16846 $rm conftest*
16847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16848 touch conftest.a
16849 ln conftest.a conftest.b 2>&5 || hard_links=no
16850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16851 { echo "$as_me:$LINENO: result: $hard_links" >&5
16852 echo "${ECHO_T}$hard_links" >&6; }
16853 if test "$hard_links" = no; then
16854 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16856 need_locks=warn
16858 else
16859 need_locks=no
16862 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16865 runpath_var=
16866 allow_undefined_flag_GCJ=
16867 enable_shared_with_static_runtimes_GCJ=no
16868 archive_cmds_GCJ=
16869 archive_expsym_cmds_GCJ=
16870 old_archive_From_new_cmds_GCJ=
16871 old_archive_from_expsyms_cmds_GCJ=
16872 export_dynamic_flag_spec_GCJ=
16873 whole_archive_flag_spec_GCJ=
16874 thread_safe_flag_spec_GCJ=
16875 hardcode_libdir_flag_spec_GCJ=
16876 hardcode_libdir_flag_spec_ld_GCJ=
16877 hardcode_libdir_separator_GCJ=
16878 hardcode_direct_GCJ=no
16879 hardcode_minus_L_GCJ=no
16880 hardcode_shlibpath_var_GCJ=unsupported
16881 link_all_deplibs_GCJ=unknown
16882 hardcode_automatic_GCJ=no
16883 module_cmds_GCJ=
16884 module_expsym_cmds_GCJ=
16885 always_export_symbols_GCJ=no
16886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16887 # include_expsyms should be a list of space-separated symbols to be *always*
16888 # included in the symbol list
16889 include_expsyms_GCJ=
16890 # exclude_expsyms can be an extended regexp of symbols to exclude
16891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16893 # as well as any symbol that contains `d'.
16894 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16896 # platforms (ab)use it in PIC code, but their linkers get confused if
16897 # the symbol is explicitly referenced. Since portable code cannot
16898 # rely on this symbol name, it's probably fine to never include it in
16899 # preloaded symbol tables.
16900 extract_expsyms_cmds=
16901 # Just being paranoid about ensuring that cc_basename is set.
16902 for cc_temp in $compiler""; do
16903 case $cc_temp in
16904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16906 \-*) ;;
16907 *) break;;
16908 esac
16909 done
16910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16912 case $host_os in
16913 cygwin* | mingw* | pw32*)
16914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16915 # When not using gcc, we currently assume that we are using
16916 # Microsoft Visual C++.
16917 if test "$GCC" != yes; then
16918 with_gnu_ld=no
16921 interix*)
16922 # we just hope/assume this is gcc and not c89 (= MSVC++)
16923 with_gnu_ld=yes
16925 openbsd*)
16926 with_gnu_ld=no
16928 esac
16930 ld_shlibs_GCJ=yes
16931 if test "$with_gnu_ld" = yes; then
16932 # If archive_cmds runs LD, not CC, wlarc should be empty
16933 wlarc='${wl}'
16935 # Set some defaults for GNU ld with shared library support. These
16936 # are reset later if shared libraries are not supported. Putting them
16937 # here allows them to be overridden if necessary.
16938 runpath_var=LD_RUN_PATH
16939 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16940 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16941 # ancient GNU ld didn't support --whole-archive et. al.
16942 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16943 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16944 else
16945 whole_archive_flag_spec_GCJ=
16947 supports_anon_versioning=no
16948 case `$LD -v 2>/dev/null` in
16949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16952 *\ 2.11.*) ;; # other 2.11 versions
16953 *) supports_anon_versioning=yes ;;
16954 esac
16956 # See if GNU ld supports shared libraries.
16957 case $host_os in
16958 aix3* | aix4* | aix5*)
16959 # On AIX/PPC, the GNU linker is very broken
16960 if test "$host_cpu" != ia64; then
16961 ld_shlibs_GCJ=no
16962 cat <<EOF 1>&2
16964 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16965 *** to be unable to reliably create shared libraries on AIX.
16966 *** Therefore, libtool is disabling shared libraries support. If you
16967 *** really care for shared libraries, you may want to modify your PATH
16968 *** so that a non-GNU linker is found, and then restart.
16974 amigaos*)
16975 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)'
16976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977 hardcode_minus_L_GCJ=yes
16979 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16980 # that the semantics of dynamic libraries on AmigaOS, at least up
16981 # to version 4, is to share data among multiple programs linked
16982 # with the same dynamic library. Since this doesn't match the
16983 # behavior of shared libraries on other platforms, we can't use
16984 # them.
16985 ld_shlibs_GCJ=no
16988 beos*)
16989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16990 allow_undefined_flag_GCJ=unsupported
16991 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16992 # support --undefined. This deserves some investigation. FIXME
16993 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16994 else
16995 ld_shlibs_GCJ=no
16999 cygwin* | mingw* | pw32*)
17000 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17001 # as there is no search path for DLLs.
17002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17003 allow_undefined_flag_GCJ=unsupported
17004 always_export_symbols_GCJ=no
17005 enable_shared_with_static_runtimes_GCJ=yes
17006 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17010 # If the export-symbols file already is a .def file (1st line
17011 # is EXPORTS), use it as is; otherwise, prepend...
17012 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17013 cp $export_symbols $output_objdir/$soname.def;
17014 else
17015 echo EXPORTS > $output_objdir/$soname.def;
17016 cat $export_symbols >> $output_objdir/$soname.def;
17018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17019 else
17020 ld_shlibs_GCJ=no
17024 interix[3-9]*)
17025 hardcode_direct_GCJ=no
17026 hardcode_shlibpath_var_GCJ=no
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17028 export_dynamic_flag_spec_GCJ='${wl}-E'
17029 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17030 # Instead, shared libraries are loaded at an image base (0x10000000 by
17031 # default) and relocated if they conflict, which is a slow very memory
17032 # consuming and fragmenting process. To avoid this, we pick a random,
17033 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17034 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17035 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'
17036 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'
17039 gnu* | linux* | k*bsd*-gnu)
17040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17041 tmp_addflag=
17042 case $cc_basename,$host_cpu in
17043 pgcc*) # Portland Group C compiler
17044 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'
17045 tmp_addflag=' $pic_flag'
17047 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17048 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'
17049 tmp_addflag=' $pic_flag -Mnomain' ;;
17050 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17051 tmp_addflag=' -i_dynamic' ;;
17052 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17053 tmp_addflag=' -i_dynamic -nofor_main' ;;
17054 ifc* | ifort*) # Intel Fortran compiler
17055 tmp_addflag=' -nofor_main' ;;
17056 esac
17057 case `$CC -V 2>&1 | sed 5q` in
17058 *Sun\ C*) # Sun C 5.9
17059 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17060 tmp_sharedflag='-G' ;;
17061 *Sun\ F*) # Sun Fortran 8.3
17062 tmp_sharedflag='-G' ;;
17064 tmp_sharedflag='-shared' ;;
17065 esac
17066 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068 if test $supports_anon_versioning = yes; then
17069 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17071 $echo "local: *; };" >> $output_objdir/$libname.ver~
17072 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17074 else
17075 ld_shlibs_GCJ=no
17079 netbsd*)
17080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17081 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17082 wlarc=
17083 else
17084 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17085 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17089 solaris*)
17090 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17091 ld_shlibs_GCJ=no
17092 cat <<EOF 1>&2
17094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17095 *** create shared libraries on Solaris systems. Therefore, libtool
17096 *** is disabling shared libraries support. We urge you to upgrade GNU
17097 *** binutils to release 2.9.1 or newer. Another option is to modify
17098 *** your PATH or compiler configuration so that the native linker is
17099 *** used, and then restart.
17102 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17103 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17104 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17105 else
17106 ld_shlibs_GCJ=no
17110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17111 case `$LD -v 2>&1` in
17112 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17113 ld_shlibs_GCJ=no
17114 cat <<_LT_EOF 1>&2
17116 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17117 *** reliably create shared libraries on SCO systems. Therefore, libtool
17118 *** is disabling shared libraries support. We urge you to upgrade GNU
17119 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17120 *** your PATH or compiler configuration so that the native linker is
17121 *** used, and then restart.
17123 _LT_EOF
17126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17127 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17128 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17129 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17130 else
17131 ld_shlibs_GCJ=no
17134 esac
17137 sunos4*)
17138 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17139 wlarc=
17140 hardcode_direct_GCJ=yes
17141 hardcode_shlibpath_var_GCJ=no
17145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17148 else
17149 ld_shlibs_GCJ=no
17152 esac
17154 if test "$ld_shlibs_GCJ" = no; then
17155 runpath_var=
17156 hardcode_libdir_flag_spec_GCJ=
17157 export_dynamic_flag_spec_GCJ=
17158 whole_archive_flag_spec_GCJ=
17160 else
17161 # PORTME fill in a description of your system's linker (not GNU ld)
17162 case $host_os in
17163 aix3*)
17164 allow_undefined_flag_GCJ=unsupported
17165 always_export_symbols_GCJ=yes
17166 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'
17167 # Note: this linker hardcodes the directories in LIBPATH if there
17168 # are no directories specified by -L.
17169 hardcode_minus_L_GCJ=yes
17170 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17171 # Neither direct hardcoding nor static linking is supported with a
17172 # broken collect2.
17173 hardcode_direct_GCJ=unsupported
17177 aix4* | aix5*)
17178 if test "$host_cpu" = ia64; then
17179 # On IA64, the linker does run time linking by default, so we don't
17180 # have to do anything special.
17181 aix_use_runtimelinking=no
17182 exp_sym_flag='-Bexport'
17183 no_entry_flag=""
17184 else
17185 # If we're using GNU nm, then we don't want the "-C" option.
17186 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17187 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17188 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'
17189 else
17190 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'
17192 aix_use_runtimelinking=no
17194 # Test if we are trying to use run time linking or normal
17195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17196 # need to do runtime linking.
17197 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17198 for ld_flag in $LDFLAGS; do
17199 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17200 aix_use_runtimelinking=yes
17201 break
17203 done
17205 esac
17207 exp_sym_flag='-bexport'
17208 no_entry_flag='-bnoentry'
17211 # When large executables or shared objects are built, AIX ld can
17212 # have problems creating the table of contents. If linking a library
17213 # or program results in "error TOC overflow" add -mminimal-toc to
17214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17217 archive_cmds_GCJ=''
17218 hardcode_direct_GCJ=yes
17219 hardcode_libdir_separator_GCJ=':'
17220 link_all_deplibs_GCJ=yes
17222 if test "$GCC" = yes; then
17223 case $host_os in aix4.[012]|aix4.[012].*)
17224 # We only want to do this on AIX 4.2 and lower, the check
17225 # below for broken collect2 doesn't work under 4.3+
17226 collect2name=`${CC} -print-prog-name=collect2`
17227 if test -f "$collect2name" && \
17228 strings "$collect2name" | grep resolve_lib_name >/dev/null
17229 then
17230 # We have reworked collect2
17232 else
17233 # We have old collect2
17234 hardcode_direct_GCJ=unsupported
17235 # It fails to find uninstalled libraries when the uninstalled
17236 # path is not listed in the libpath. Setting hardcode_minus_L
17237 # to unsupported forces relinking
17238 hardcode_minus_L_GCJ=yes
17239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17240 hardcode_libdir_separator_GCJ=
17243 esac
17244 shared_flag='-shared'
17245 if test "$aix_use_runtimelinking" = yes; then
17246 shared_flag="$shared_flag "'${wl}-G'
17248 else
17249 # not using gcc
17250 if test "$host_cpu" = ia64; then
17251 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17252 # chokes on -Wl,-G. The following line is correct:
17253 shared_flag='-G'
17254 else
17255 if test "$aix_use_runtimelinking" = yes; then
17256 shared_flag='${wl}-G'
17257 else
17258 shared_flag='${wl}-bM:SRE'
17263 # It seems that -bexpall does not export symbols beginning with
17264 # underscore (_), so it is better to generate a list of symbols to export.
17265 always_export_symbols_GCJ=yes
17266 if test "$aix_use_runtimelinking" = yes; then
17267 # Warning - without using the other runtime loading flags (-brtl),
17268 # -berok will link without error, but may produce a broken library.
17269 allow_undefined_flag_GCJ='-berok'
17270 # Determine the default libpath from the value encoded in an empty executable.
17271 cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17279 main ()
17283 return 0;
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (ac_try="$ac_link"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_link") 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } && {
17300 test -z "$ac_c_werror_flag" ||
17301 test ! -s conftest.err
17302 } && test -s conftest$ac_exeext &&
17303 $as_test_x conftest$ac_exeext; then
17305 lt_aix_libpath_sed='
17306 /Import File Strings/,/^$/ {
17307 /^0/ {
17308 s/^0 *\(.*\)$/\1/
17312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17313 # Check for a 64-bit object if we didn't find anything.
17314 if test -z "$aix_libpath"; then
17315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17317 else
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17328 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17329 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"
17330 else
17331 if test "$host_cpu" = ia64; then
17332 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17333 allow_undefined_flag_GCJ="-z nodefs"
17334 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"
17335 else
17336 # Determine the default libpath from the value encoded in an empty executable.
17337 cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h. */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17345 main ()
17349 return 0;
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext &&
17369 $as_test_x conftest$ac_exeext; then
17371 lt_aix_libpath_sed='
17372 /Import File Strings/,/^$/ {
17373 /^0/ {
17374 s/^0 *\(.*\)$/\1/
17378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17379 # Check for a 64-bit object if we didn't find anything.
17380 if test -z "$aix_libpath"; then
17381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17383 else
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17395 # Warning - without using the other run time loading flags,
17396 # -berok will link without error, but may produce a broken library.
17397 no_undefined_flag_GCJ=' ${wl}-bernotok'
17398 allow_undefined_flag_GCJ=' ${wl}-berok'
17399 # Exported symbols can be pulled into shared objects from archives
17400 whole_archive_flag_spec_GCJ='$convenience'
17401 archive_cmds_need_lc_GCJ=yes
17402 # This is similar to how AIX traditionally builds its shared libraries.
17403 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'
17408 amigaos*)
17409 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)'
17410 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411 hardcode_minus_L_GCJ=yes
17412 # see comment about different semantics on the GNU ld section
17413 ld_shlibs_GCJ=no
17416 bsdi[45]*)
17417 export_dynamic_flag_spec_GCJ=-rdynamic
17420 cygwin* | mingw* | pw32*)
17421 # When not using gcc, we currently assume that we are using
17422 # Microsoft Visual C++.
17423 # hardcode_libdir_flag_spec is actually meaningless, as there is
17424 # no search path for DLLs.
17425 hardcode_libdir_flag_spec_GCJ=' '
17426 allow_undefined_flag_GCJ=unsupported
17427 # Tell ltmain to make .lib files, not .a files.
17428 libext=lib
17429 # Tell ltmain to make .dll files, not .so files.
17430 shrext_cmds=".dll"
17431 # FIXME: Setting linknames here is a bad hack.
17432 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17433 # The linker will automatically build a .lib file if we build a DLL.
17434 old_archive_From_new_cmds_GCJ='true'
17435 # FIXME: Should let the user specify the lib program.
17436 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17437 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17438 enable_shared_with_static_runtimes_GCJ=yes
17441 darwin* | rhapsody*)
17442 case $host_os in
17443 rhapsody* | darwin1.[012])
17444 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17446 *) # Darwin 1.3 on
17447 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17448 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17449 else
17450 case ${MACOSX_DEPLOYMENT_TARGET} in
17451 10.[012])
17452 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17454 10.*)
17455 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17457 esac
17460 esac
17461 archive_cmds_need_lc_GCJ=no
17462 hardcode_direct_GCJ=no
17463 hardcode_automatic_GCJ=yes
17464 hardcode_shlibpath_var_GCJ=unsupported
17465 whole_archive_flag_spec_GCJ=''
17466 link_all_deplibs_GCJ=yes
17467 if test "$GCC" = yes ; then
17468 output_verbose_link_cmd='echo'
17469 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17470 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17471 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17472 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}'
17473 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}'
17474 else
17475 case $cc_basename in
17476 xlc*)
17477 output_verbose_link_cmd='echo'
17478 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17479 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17480 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17481 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17482 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}'
17485 ld_shlibs_GCJ=no
17487 esac
17491 dgux*)
17492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494 hardcode_shlibpath_var_GCJ=no
17497 freebsd1*)
17498 ld_shlibs_GCJ=no
17501 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17502 # support. Future versions do this automatically, but an explicit c++rt0.o
17503 # does not break anything, and helps significantly (at the cost of a little
17504 # extra space).
17505 freebsd2.2*)
17506 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17508 hardcode_direct_GCJ=yes
17509 hardcode_shlibpath_var_GCJ=no
17512 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17513 freebsd2*)
17514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17515 hardcode_direct_GCJ=yes
17516 hardcode_minus_L_GCJ=yes
17517 hardcode_shlibpath_var_GCJ=no
17520 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17521 freebsd* | dragonfly*)
17522 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17524 hardcode_direct_GCJ=yes
17525 hardcode_shlibpath_var_GCJ=no
17528 hpux9*)
17529 if test "$GCC" = yes; then
17530 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'
17531 else
17532 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'
17534 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17535 hardcode_libdir_separator_GCJ=:
17536 hardcode_direct_GCJ=yes
17538 # hardcode_minus_L: Not really in the search PATH,
17539 # but as the default location of the library.
17540 hardcode_minus_L_GCJ=yes
17541 export_dynamic_flag_spec_GCJ='${wl}-E'
17544 hpux10*)
17545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17546 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17547 else
17548 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17550 if test "$with_gnu_ld" = no; then
17551 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17552 hardcode_libdir_separator_GCJ=:
17554 hardcode_direct_GCJ=yes
17555 export_dynamic_flag_spec_GCJ='${wl}-E'
17557 # hardcode_minus_L: Not really in the search PATH,
17558 # but as the default location of the library.
17559 hardcode_minus_L_GCJ=yes
17563 hpux11*)
17564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17565 case $host_cpu in
17566 hppa*64*)
17567 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569 ia64*)
17570 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17573 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17575 esac
17576 else
17577 case $host_cpu in
17578 hppa*64*)
17579 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 ia64*)
17582 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587 esac
17589 if test "$with_gnu_ld" = no; then
17590 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17591 hardcode_libdir_separator_GCJ=:
17593 case $host_cpu in
17594 hppa*64*|ia64*)
17595 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17596 hardcode_direct_GCJ=no
17597 hardcode_shlibpath_var_GCJ=no
17600 hardcode_direct_GCJ=yes
17601 export_dynamic_flag_spec_GCJ='${wl}-E'
17603 # hardcode_minus_L: Not really in the search PATH,
17604 # but as the default location of the library.
17605 hardcode_minus_L_GCJ=yes
17607 esac
17611 irix5* | irix6* | nonstopux*)
17612 if test "$GCC" = yes; then
17613 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'
17614 else
17615 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'
17616 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17618 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17619 hardcode_libdir_separator_GCJ=:
17620 link_all_deplibs_GCJ=yes
17623 netbsd*)
17624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17625 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17626 else
17627 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17630 hardcode_direct_GCJ=yes
17631 hardcode_shlibpath_var_GCJ=no
17634 newsos6)
17635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17636 hardcode_direct_GCJ=yes
17637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17638 hardcode_libdir_separator_GCJ=:
17639 hardcode_shlibpath_var_GCJ=no
17642 openbsd*)
17643 if test -f /usr/libexec/ld.so; then
17644 hardcode_direct_GCJ=yes
17645 hardcode_shlibpath_var_GCJ=no
17646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17647 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17648 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17650 export_dynamic_flag_spec_GCJ='${wl}-E'
17651 else
17652 case $host_os in
17653 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17654 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17658 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17659 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661 esac
17663 else
17664 ld_shlibs_GCJ=no
17668 os2*)
17669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17670 hardcode_minus_L_GCJ=yes
17671 allow_undefined_flag_GCJ=unsupported
17672 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'
17673 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17676 osf3*)
17677 if test "$GCC" = yes; then
17678 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17679 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'
17680 else
17681 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17682 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'
17684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17685 hardcode_libdir_separator_GCJ=:
17688 osf4* | osf5*) # as osf3* with the addition of -msym flag
17689 if test "$GCC" = yes; then
17690 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17691 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'
17692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17693 else
17694 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17695 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'
17696 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~
17697 $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'
17699 # Both c and cxx compiler support -rpath directly
17700 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17702 hardcode_libdir_separator_GCJ=:
17705 solaris*)
17706 no_undefined_flag_GCJ=' -z text'
17707 if test "$GCC" = yes; then
17708 wlarc='${wl}'
17709 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17712 else
17713 wlarc=''
17714 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17718 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17719 hardcode_shlibpath_var_GCJ=no
17720 case $host_os in
17721 solaris2.[0-5] | solaris2.[0-5].*) ;;
17723 # The compiler driver will combine and reorder linker options,
17724 # but understands `-z linker_flag'. GCC discards it without `$wl',
17725 # but is careful enough not to reorder.
17726 # Supported since Solaris 2.6 (maybe 2.5.1?)
17727 if test "$GCC" = yes; then
17728 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17729 else
17730 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17733 esac
17734 link_all_deplibs_GCJ=yes
17737 sunos4*)
17738 if test "x$host_vendor" = xsequent; then
17739 # Use $CC to link under sequent, because it throws in some extra .o
17740 # files that make .init and .fini sections work.
17741 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17742 else
17743 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17746 hardcode_direct_GCJ=yes
17747 hardcode_minus_L_GCJ=yes
17748 hardcode_shlibpath_var_GCJ=no
17751 sysv4)
17752 case $host_vendor in
17753 sni)
17754 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17755 hardcode_direct_GCJ=yes # is this really true???
17757 siemens)
17758 ## LD is ld it makes a PLAMLIB
17759 ## CC just makes a GrossModule.
17760 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17761 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17762 hardcode_direct_GCJ=no
17764 motorola)
17765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17766 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17768 esac
17769 runpath_var='LD_RUN_PATH'
17770 hardcode_shlibpath_var_GCJ=no
17773 sysv4.3*)
17774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17775 hardcode_shlibpath_var_GCJ=no
17776 export_dynamic_flag_spec_GCJ='-Bexport'
17779 sysv4*MP*)
17780 if test -d /usr/nec; then
17781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17782 hardcode_shlibpath_var_GCJ=no
17783 runpath_var=LD_RUN_PATH
17784 hardcode_runpath_var=yes
17785 ld_shlibs_GCJ=yes
17789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17790 no_undefined_flag_GCJ='${wl}-z,text'
17791 archive_cmds_need_lc_GCJ=no
17792 hardcode_shlibpath_var_GCJ=no
17793 runpath_var='LD_RUN_PATH'
17795 if test "$GCC" = yes; then
17796 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17797 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17798 else
17799 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17800 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17804 sysv5* | sco3.2v5* | sco5v6*)
17805 # Note: We can NOT use -z defs as we might desire, because we do not
17806 # link with -lc, and that would cause any symbols used from libc to
17807 # always be unresolved, which means just about no library would
17808 # ever link correctly. If we're not using GNU ld we use -z text
17809 # though, which does catch some bad symbols but isn't as heavy-handed
17810 # as -z defs.
17811 no_undefined_flag_GCJ='${wl}-z,text'
17812 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17813 archive_cmds_need_lc_GCJ=no
17814 hardcode_shlibpath_var_GCJ=no
17815 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17816 hardcode_libdir_separator_GCJ=':'
17817 link_all_deplibs_GCJ=yes
17818 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17819 runpath_var='LD_RUN_PATH'
17821 if test "$GCC" = yes; then
17822 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17823 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17824 else
17825 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17826 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830 uts4*)
17831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17833 hardcode_shlibpath_var_GCJ=no
17837 ld_shlibs_GCJ=no
17839 esac
17842 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17843 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17844 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17847 # Do we need to explicitly link libc?
17849 case "x$archive_cmds_need_lc_GCJ" in
17850 x|xyes)
17851 # Assume -lc should be added
17852 archive_cmds_need_lc_GCJ=yes
17854 if test "$enable_shared" = yes && test "$GCC" = yes; then
17855 case $archive_cmds_GCJ in
17856 *'~'*)
17857 # FIXME: we may have to deal with multi-command sequences.
17859 '$CC '*)
17860 # Test whether the compiler implicitly links with -lc since on some
17861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17862 # to ld, don't add -lc before -lgcc.
17863 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17864 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17865 $rm conftest*
17866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17869 (eval $ac_compile) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } 2>conftest.err; then
17873 soname=conftest
17874 lib=conftest
17875 libobjs=conftest.$ac_objext
17876 deplibs=
17877 wl=$lt_prog_compiler_wl_GCJ
17878 pic_flag=$lt_prog_compiler_pic_GCJ
17879 compiler_flags=-v
17880 linker_flags=-v
17881 verstring=
17882 output_objdir=.
17883 libname=conftest
17884 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17885 allow_undefined_flag_GCJ=
17886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17887 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }
17891 then
17892 archive_cmds_need_lc_GCJ=no
17893 else
17894 archive_cmds_need_lc_GCJ=yes
17896 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17897 else
17898 cat conftest.err 1>&5
17900 $rm conftest*
17901 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17902 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17904 esac
17907 esac
17909 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17911 library_names_spec=
17912 libname_spec='lib$name'
17913 soname_spec=
17914 shrext_cmds=".so"
17915 postinstall_cmds=
17916 postuninstall_cmds=
17917 finish_cmds=
17918 finish_eval=
17919 shlibpath_var=
17920 shlibpath_overrides_runpath=unknown
17921 version_type=none
17922 dynamic_linker="$host_os ld.so"
17923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17925 need_lib_prefix=unknown
17926 hardcode_into_libs=no
17928 # when you set need_version to no, make sure it does not cause -set_version
17929 # flags to be left without arguments
17930 need_version=unknown
17932 case $host_os in
17933 aix3*)
17934 version_type=linux
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17936 shlibpath_var=LIBPATH
17938 # AIX 3 has no versioning support, so we append a major version to the name.
17939 soname_spec='${libname}${release}${shared_ext}$major'
17942 aix4* | aix5*)
17943 version_type=linux
17944 need_lib_prefix=no
17945 need_version=no
17946 hardcode_into_libs=yes
17947 if test "$host_cpu" = ia64; then
17948 # AIX 5 supports IA64
17949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 else
17952 # With GCC up to 2.95.x, collect2 would create an import file
17953 # for dependence libraries. The import file would start with
17954 # the line `#! .'. This would cause the generated library to
17955 # depend on `.', always an invalid library. This was fixed in
17956 # development snapshots of GCC prior to 3.0.
17957 case $host_os in
17958 aix4 | aix4.[01] | aix4.[01].*)
17959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17960 echo ' yes '
17961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17963 else
17964 can_build_shared=no
17967 esac
17968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17969 # soname into executable. Probably we can add versioning support to
17970 # collect2, so additional links can be useful in future.
17971 if test "$aix_use_runtimelinking" = yes; then
17972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17973 # instead of lib<name>.a to let people know that these are not
17974 # typical AIX shared libraries.
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976 else
17977 # We preserve .a as extension for shared libraries through AIX4.2
17978 # and later when we are not doing run time linking.
17979 library_names_spec='${libname}${release}.a $libname.a'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LIBPATH
17986 amigaos*)
17987 library_names_spec='$libname.ixlibrary $libname.a'
17988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17989 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'
17992 beos*)
17993 library_names_spec='${libname}${shared_ext}'
17994 dynamic_linker="$host_os ld.so"
17995 shlibpath_var=LIBRARY_PATH
17998 bsdi[45]*)
17999 version_type=linux
18000 need_version=no
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18004 shlibpath_var=LD_LIBRARY_PATH
18005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18007 # the default ld.so.conf also contains /usr/contrib/lib and
18008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18009 # libtool to hard-code these into programs
18012 cygwin* | mingw* | pw32*)
18013 version_type=windows
18014 shrext_cmds=".dll"
18015 need_version=no
18016 need_lib_prefix=no
18018 case $GCC,$host_os in
18019 yes,cygwin* | yes,mingw* | yes,pw32*)
18020 library_names_spec='$libname.dll.a'
18021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18022 postinstall_cmds='base_file=`basename \${file}`~
18023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18024 dldir=$destdir/`dirname \$dlpath`~
18025 test -d \$dldir || mkdir -p \$dldir~
18026 $install_prog $dir/$dlname \$dldir/$dlname~
18027 chmod a+x \$dldir/$dlname'
18028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18029 dlpath=$dir/\$dldll~
18030 $rm \$dlpath'
18031 shlibpath_overrides_runpath=yes
18033 case $host_os in
18034 cygwin*)
18035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18039 mingw*)
18040 # MinGW DLLs use traditional 'lib' prefix
18041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18044 # It is most probably a Windows format PATH printed by
18045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18046 # path with ; separators, and with drive letters. We can handle the
18047 # drive letters (cygwin fileutils understands them), so leave them,
18048 # especially as we might pass files found there to a mingw objdump,
18049 # which wouldn't understand a cygwinified path. Ahh.
18050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18051 else
18052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18055 pw32*)
18056 # pw32 DLLs use 'pw' prefix rather than 'lib'
18057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18059 esac
18063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18065 esac
18066 dynamic_linker='Win32 ld.exe'
18067 # FIXME: first we should search . and the directory the executable is in
18068 shlibpath_var=PATH
18071 darwin* | rhapsody*)
18072 dynamic_linker="$host_os dyld"
18073 version_type=darwin
18074 need_lib_prefix=no
18075 need_version=no
18076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18077 soname_spec='${libname}${release}${major}$shared_ext'
18078 shlibpath_overrides_runpath=yes
18079 shlibpath_var=DYLD_LIBRARY_PATH
18080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18085 dgux*)
18086 version_type=linux
18087 need_lib_prefix=no
18088 need_version=no
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 shlibpath_var=LD_LIBRARY_PATH
18094 freebsd1*)
18095 dynamic_linker=no
18098 freebsd* | dragonfly*)
18099 # DragonFly does not have aout. When/if they implement a new
18100 # versioning mechanism, adjust this.
18101 if test -x /usr/bin/objformat; then
18102 objformat=`/usr/bin/objformat`
18103 else
18104 case $host_os in
18105 freebsd[123]*) objformat=aout ;;
18106 *) objformat=elf ;;
18107 esac
18109 version_type=freebsd-$objformat
18110 case $version_type in
18111 freebsd-elf*)
18112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18113 need_version=no
18114 need_lib_prefix=no
18116 freebsd-*)
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18118 need_version=yes
18120 esac
18121 shlibpath_var=LD_LIBRARY_PATH
18122 case $host_os in
18123 freebsd2*)
18124 shlibpath_overrides_runpath=yes
18126 freebsd3.[01]* | freebsdelf3.[01]*)
18127 shlibpath_overrides_runpath=yes
18128 hardcode_into_libs=yes
18130 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18131 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18132 shlibpath_overrides_runpath=no
18133 hardcode_into_libs=yes
18135 *) # from 4.6 on, and DragonFly
18136 shlibpath_overrides_runpath=yes
18137 hardcode_into_libs=yes
18139 esac
18142 gnu*)
18143 version_type=linux
18144 need_lib_prefix=no
18145 need_version=no
18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18147 soname_spec='${libname}${release}${shared_ext}$major'
18148 shlibpath_var=LD_LIBRARY_PATH
18149 hardcode_into_libs=yes
18152 hpux9* | hpux10* | hpux11*)
18153 # Give a soname corresponding to the major version so that dld.sl refuses to
18154 # link against other versions.
18155 version_type=sunos
18156 need_lib_prefix=no
18157 need_version=no
18158 case $host_cpu in
18159 ia64*)
18160 shrext_cmds='.so'
18161 hardcode_into_libs=yes
18162 dynamic_linker="$host_os dld.so"
18163 shlibpath_var=LD_LIBRARY_PATH
18164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166 soname_spec='${libname}${release}${shared_ext}$major'
18167 if test "X$HPUX_IA64_MODE" = X32; then
18168 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18169 else
18170 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174 hppa*64*)
18175 shrext_cmds='.sl'
18176 hardcode_into_libs=yes
18177 dynamic_linker="$host_os dld.sl"
18178 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18186 shrext_cmds='.sl'
18187 dynamic_linker="$host_os dld.sl"
18188 shlibpath_var=SHLIB_PATH
18189 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18193 esac
18194 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18195 postinstall_cmds='chmod 555 $lib'
18198 interix[3-9]*)
18199 version_type=linux
18200 need_lib_prefix=no
18201 need_version=no
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18203 soname_spec='${libname}${release}${shared_ext}$major'
18204 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath=no
18207 hardcode_into_libs=yes
18210 irix5* | irix6* | nonstopux*)
18211 case $host_os in
18212 nonstopux*) version_type=nonstopux ;;
18214 if test "$lt_cv_prog_gnu_ld" = yes; then
18215 version_type=linux
18216 else
18217 version_type=irix
18218 fi ;;
18219 esac
18220 need_lib_prefix=no
18221 need_version=no
18222 soname_spec='${libname}${release}${shared_ext}$major'
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18224 case $host_os in
18225 irix5* | nonstopux*)
18226 libsuff= shlibsuff=
18229 case $LD in # libtool.m4 will add one of these switches to LD
18230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18231 libsuff= shlibsuff= libmagic=32-bit;;
18232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18233 libsuff=32 shlibsuff=N32 libmagic=N32;;
18234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18235 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18236 *) libsuff= shlibsuff= libmagic=never-match;;
18237 esac
18239 esac
18240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18241 shlibpath_overrides_runpath=no
18242 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18243 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18244 hardcode_into_libs=yes
18247 # No shared lib support for Linux oldld, aout, or coff.
18248 linux*oldld* | linux*aout* | linux*coff*)
18249 dynamic_linker=no
18252 # This must be Linux ELF.
18253 linux* | k*bsd*-gnu)
18254 version_type=linux
18255 need_lib_prefix=no
18256 need_version=no
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18260 shlibpath_var=LD_LIBRARY_PATH
18261 shlibpath_overrides_runpath=no
18262 # This implies no fast_install, which is unacceptable.
18263 # Some rework will be needed to allow for fast_install
18264 # before this can be enabled.
18265 hardcode_into_libs=yes
18267 # Append ld.so.conf contents to the search path
18268 if test -f /etc/ld.so.conf; then
18269 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18273 # We used to test for /lib/ld.so.1 and disable shared libraries on
18274 # powerpc, because MkLinux only supported shared libraries with the
18275 # GNU dynamic linker. Since this was broken with cross compilers,
18276 # most powerpc-linux boxes support dynamic linking these days and
18277 # people can always --disable-shared, the test was removed, and we
18278 # assume the GNU/Linux dynamic linker is in use.
18279 dynamic_linker='GNU/Linux ld.so'
18282 netbsd*)
18283 version_type=sunos
18284 need_lib_prefix=no
18285 need_version=no
18286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18289 dynamic_linker='NetBSD (a.out) ld.so'
18290 else
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18292 soname_spec='${libname}${release}${shared_ext}$major'
18293 dynamic_linker='NetBSD ld.elf_so'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=yes
18297 hardcode_into_libs=yes
18300 newsos6)
18301 version_type=linux
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18303 shlibpath_var=LD_LIBRARY_PATH
18304 shlibpath_overrides_runpath=yes
18307 nto-qnx*)
18308 version_type=linux
18309 need_lib_prefix=no
18310 need_version=no
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18314 shlibpath_overrides_runpath=yes
18317 openbsd*)
18318 version_type=sunos
18319 sys_lib_dlsearch_path_spec="/usr/lib"
18320 need_lib_prefix=no
18321 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18322 case $host_os in
18323 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18324 *) need_version=no ;;
18325 esac
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18328 shlibpath_var=LD_LIBRARY_PATH
18329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18330 case $host_os in
18331 openbsd2.[89] | openbsd2.[89].*)
18332 shlibpath_overrides_runpath=no
18335 shlibpath_overrides_runpath=yes
18337 esac
18338 else
18339 shlibpath_overrides_runpath=yes
18343 os2*)
18344 libname_spec='$name'
18345 shrext_cmds=".dll"
18346 need_lib_prefix=no
18347 library_names_spec='$libname${shared_ext} $libname.a'
18348 dynamic_linker='OS/2 ld.exe'
18349 shlibpath_var=LIBPATH
18352 osf3* | osf4* | osf5*)
18353 version_type=osf
18354 need_lib_prefix=no
18355 need_version=no
18356 soname_spec='${libname}${release}${shared_ext}$major'
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358 shlibpath_var=LD_LIBRARY_PATH
18359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18363 rdos*)
18364 dynamic_linker=no
18367 solaris*)
18368 version_type=linux
18369 need_lib_prefix=no
18370 need_version=no
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 shlibpath_overrides_runpath=yes
18375 hardcode_into_libs=yes
18376 # ldd complains unless libraries are executable
18377 postinstall_cmds='chmod +x $lib'
18380 sunos4*)
18381 version_type=sunos
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=yes
18386 if test "$with_gnu_ld" = yes; then
18387 need_lib_prefix=no
18389 need_version=yes
18392 sysv4 | sysv4.3*)
18393 version_type=linux
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 case $host_vendor in
18398 sni)
18399 shlibpath_overrides_runpath=no
18400 need_lib_prefix=no
18401 export_dynamic_flag_spec='${wl}-Blargedynsym'
18402 runpath_var=LD_RUN_PATH
18404 siemens)
18405 need_lib_prefix=no
18407 motorola)
18408 need_lib_prefix=no
18409 need_version=no
18410 shlibpath_overrides_runpath=no
18411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18413 esac
18416 sysv4*MP*)
18417 if test -d /usr/nec ;then
18418 version_type=linux
18419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18420 soname_spec='$libname${shared_ext}.$major'
18421 shlibpath_var=LD_LIBRARY_PATH
18425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18426 version_type=freebsd-elf
18427 need_lib_prefix=no
18428 need_version=no
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 hardcode_into_libs=yes
18433 if test "$with_gnu_ld" = yes; then
18434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18435 shlibpath_overrides_runpath=no
18436 else
18437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18438 shlibpath_overrides_runpath=yes
18439 case $host_os in
18440 sco3.2v5*)
18441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18443 esac
18445 sys_lib_dlsearch_path_spec='/usr/lib'
18448 uts4*)
18449 version_type=linux
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18456 dynamic_linker=no
18458 esac
18459 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18460 echo "${ECHO_T}$dynamic_linker" >&6; }
18461 test "$dynamic_linker" = no && can_build_shared=no
18463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18464 if test "$GCC" = yes; then
18465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18468 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18470 hardcode_action_GCJ=
18471 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18472 test -n "$runpath_var_GCJ" || \
18473 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18475 # We can hardcode non-existant directories.
18476 if test "$hardcode_direct_GCJ" != no &&
18477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18478 # have to relink, otherwise we might link with an installed library
18479 # when we should be linking with a yet-to-be-installed one
18480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18481 test "$hardcode_minus_L_GCJ" != no; then
18482 # Linking always hardcodes the temporary library directory.
18483 hardcode_action_GCJ=relink
18484 else
18485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18486 hardcode_action_GCJ=immediate
18488 else
18489 # We cannot hardcode anything, or else we can only hardcode existing
18490 # directories.
18491 hardcode_action_GCJ=unsupported
18493 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18494 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18496 if test "$hardcode_action_GCJ" = relink; then
18497 # Fast installation is not supported
18498 enable_fast_install=no
18499 elif test "$shlibpath_overrides_runpath" = yes ||
18500 test "$enable_shared" = no; then
18501 # Fast installation is not necessary
18502 enable_fast_install=needless
18506 # The else clause should only fire when bootstrapping the
18507 # libtool distribution, otherwise you forgot to ship ltmain.sh
18508 # with your package, and you will get complaints that there are
18509 # no rules to generate ltmain.sh.
18510 if test -f "$ltmain"; then
18511 # See if we are running on zsh, and set the options which allow our commands through
18512 # without removal of \ escapes.
18513 if test -n "${ZSH_VERSION+set}" ; then
18514 setopt NO_GLOB_SUBST
18516 # Now quote all the things that may contain metacharacters while being
18517 # careful not to overquote the AC_SUBSTed values. We take copies of the
18518 # variables and quote the copies for generation of the libtool script.
18519 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18520 SED SHELL STRIP \
18521 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18522 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18523 deplibs_check_method reload_flag reload_cmds need_locks \
18524 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18525 lt_cv_sys_global_symbol_to_c_name_address \
18526 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18527 old_postinstall_cmds old_postuninstall_cmds \
18528 compiler_GCJ \
18529 CC_GCJ \
18530 LD_GCJ \
18531 lt_prog_compiler_wl_GCJ \
18532 lt_prog_compiler_pic_GCJ \
18533 lt_prog_compiler_static_GCJ \
18534 lt_prog_compiler_no_builtin_flag_GCJ \
18535 export_dynamic_flag_spec_GCJ \
18536 thread_safe_flag_spec_GCJ \
18537 whole_archive_flag_spec_GCJ \
18538 enable_shared_with_static_runtimes_GCJ \
18539 old_archive_cmds_GCJ \
18540 old_archive_from_new_cmds_GCJ \
18541 predep_objects_GCJ \
18542 postdep_objects_GCJ \
18543 predeps_GCJ \
18544 postdeps_GCJ \
18545 compiler_lib_search_path_GCJ \
18546 archive_cmds_GCJ \
18547 archive_expsym_cmds_GCJ \
18548 postinstall_cmds_GCJ \
18549 postuninstall_cmds_GCJ \
18550 old_archive_from_expsyms_cmds_GCJ \
18551 allow_undefined_flag_GCJ \
18552 no_undefined_flag_GCJ \
18553 export_symbols_cmds_GCJ \
18554 hardcode_libdir_flag_spec_GCJ \
18555 hardcode_libdir_flag_spec_ld_GCJ \
18556 hardcode_libdir_separator_GCJ \
18557 hardcode_automatic_GCJ \
18558 module_cmds_GCJ \
18559 module_expsym_cmds_GCJ \
18560 lt_cv_prog_compiler_c_o_GCJ \
18561 fix_srcfile_path_GCJ \
18562 exclude_expsyms_GCJ \
18563 include_expsyms_GCJ; do
18565 case $var in
18566 old_archive_cmds_GCJ | \
18567 old_archive_from_new_cmds_GCJ | \
18568 archive_cmds_GCJ | \
18569 archive_expsym_cmds_GCJ | \
18570 module_cmds_GCJ | \
18571 module_expsym_cmds_GCJ | \
18572 old_archive_from_expsyms_cmds_GCJ | \
18573 export_symbols_cmds_GCJ | \
18574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18575 postinstall_cmds | postuninstall_cmds | \
18576 old_postinstall_cmds | old_postuninstall_cmds | \
18577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18578 # Double-quote double-evaled strings.
18579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18584 esac
18585 done
18587 case $lt_echo in
18588 *'\$0 --fallback-echo"')
18589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18591 esac
18593 cfgfile="$ofile"
18595 cat <<__EOF__ >> "$cfgfile"
18596 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18600 # Shell to use when invoking shell scripts.
18601 SHELL=$lt_SHELL
18603 # Whether or not to build shared libraries.
18604 build_libtool_libs=$enable_shared
18606 # Whether or not to build static libraries.
18607 build_old_libs=$enable_static
18609 # Whether or not to add -lc for building shared libraries.
18610 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18612 # Whether or not to disallow shared libs when runtime libs are static
18613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18615 # Whether or not to optimize for fast installation.
18616 fast_install=$enable_fast_install
18618 # The host system.
18619 host_alias=$host_alias
18620 host=$host
18621 host_os=$host_os
18623 # The build system.
18624 build_alias=$build_alias
18625 build=$build
18626 build_os=$build_os
18628 # An echo program that does not interpret backslashes.
18629 echo=$lt_echo
18631 # The archiver.
18632 AR=$lt_AR
18633 AR_FLAGS=$lt_AR_FLAGS
18635 # A C compiler.
18636 LTCC=$lt_LTCC
18638 # LTCC compiler flags.
18639 LTCFLAGS=$lt_LTCFLAGS
18641 # A language-specific compiler.
18642 CC=$lt_compiler_GCJ
18644 # Is the compiler the GNU C compiler?
18645 with_gcc=$GCC_GCJ
18647 # An ERE matcher.
18648 EGREP=$lt_EGREP
18650 # The linker used to build libraries.
18651 LD=$lt_LD_GCJ
18653 # Whether we need hard or soft links.
18654 LN_S=$lt_LN_S
18656 # A BSD-compatible nm program.
18657 NM=$lt_NM
18659 # A symbol stripping program
18660 STRIP=$lt_STRIP
18662 # Used to examine libraries when file_magic_cmd begins "file"
18663 MAGIC_CMD=$MAGIC_CMD
18665 # Used on cygwin: DLL creation program.
18666 DLLTOOL="$DLLTOOL"
18668 # Used on cygwin: object dumper.
18669 OBJDUMP="$OBJDUMP"
18671 # Used on cygwin: assembler.
18672 AS="$AS"
18674 # The name of the directory that contains temporary libtool files.
18675 objdir=$objdir
18677 # How to create reloadable object files.
18678 reload_flag=$lt_reload_flag
18679 reload_cmds=$lt_reload_cmds
18681 # How to pass a linker flag through the compiler.
18682 wl=$lt_lt_prog_compiler_wl_GCJ
18684 # Object file suffix (normally "o").
18685 objext="$ac_objext"
18687 # Old archive suffix (normally "a").
18688 libext="$libext"
18690 # Shared library suffix (normally ".so").
18691 shrext_cmds='$shrext_cmds'
18693 # Executable file suffix (normally "").
18694 exeext="$exeext"
18696 # Additional compiler flags for building library objects.
18697 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18698 pic_mode=$pic_mode
18700 # What is the maximum length of a command?
18701 max_cmd_len=$lt_cv_sys_max_cmd_len
18703 # Does compiler simultaneously support -c and -o options?
18704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18706 # Must we lock files when doing compilation?
18707 need_locks=$lt_need_locks
18709 # Do we need the lib prefix for modules?
18710 need_lib_prefix=$need_lib_prefix
18712 # Do we need a version for libraries?
18713 need_version=$need_version
18715 # Whether dlopen is supported.
18716 dlopen_support=$enable_dlopen
18718 # Whether dlopen of programs is supported.
18719 dlopen_self=$enable_dlopen_self
18721 # Whether dlopen of statically linked programs is supported.
18722 dlopen_self_static=$enable_dlopen_self_static
18724 # Compiler flag to prevent dynamic linking.
18725 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18727 # Compiler flag to turn off builtin functions.
18728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18730 # Compiler flag to allow reflexive dlopens.
18731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18733 # Compiler flag to generate shared objects directly from archives.
18734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18736 # Compiler flag to generate thread-safe objects.
18737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18739 # Library versioning type.
18740 version_type=$version_type
18742 # Format of library name prefix.
18743 libname_spec=$lt_libname_spec
18745 # List of archive names. First name is the real one, the rest are links.
18746 # The last name is the one that the linker finds with -lNAME.
18747 library_names_spec=$lt_library_names_spec
18749 # The coded name of the library, if different from the real name.
18750 soname_spec=$lt_soname_spec
18752 # Commands used to build and install an old-style archive.
18753 RANLIB=$lt_RANLIB
18754 old_archive_cmds=$lt_old_archive_cmds_GCJ
18755 old_postinstall_cmds=$lt_old_postinstall_cmds
18756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18758 # Create an old-style archive from a shared archive.
18759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18761 # Create a temporary old-style archive to link instead of a shared archive.
18762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18764 # Commands used to build and install a shared archive.
18765 archive_cmds=$lt_archive_cmds_GCJ
18766 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18767 postinstall_cmds=$lt_postinstall_cmds
18768 postuninstall_cmds=$lt_postuninstall_cmds
18770 # Commands used to build a loadable module (assumed same as above if empty)
18771 module_cmds=$lt_module_cmds_GCJ
18772 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18774 # Commands to strip libraries.
18775 old_striplib=$lt_old_striplib
18776 striplib=$lt_striplib
18778 # Dependencies to place before the objects being linked to create a
18779 # shared library.
18780 predep_objects=$lt_predep_objects_GCJ
18782 # Dependencies to place after the objects being linked to create a
18783 # shared library.
18784 postdep_objects=$lt_postdep_objects_GCJ
18786 # Dependencies to place before the objects being linked to create a
18787 # shared library.
18788 predeps=$lt_predeps_GCJ
18790 # Dependencies to place after the objects being linked to create a
18791 # shared library.
18792 postdeps=$lt_postdeps_GCJ
18794 # The library search path used internally by the compiler when linking
18795 # a shared library.
18796 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18798 # Method to check whether dependent libraries are shared objects.
18799 deplibs_check_method=$lt_deplibs_check_method
18801 # Command to use when deplibs_check_method == file_magic.
18802 file_magic_cmd=$lt_file_magic_cmd
18804 # Flag that allows shared libraries with undefined symbols to be built.
18805 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18807 # Flag that forces no undefined symbols.
18808 no_undefined_flag=$lt_no_undefined_flag_GCJ
18810 # Commands used to finish a libtool library installation in a directory.
18811 finish_cmds=$lt_finish_cmds
18813 # Same as above, but a single script fragment to be evaled but not shown.
18814 finish_eval=$lt_finish_eval
18816 # Take the output of nm and produce a listing of raw symbols and C names.
18817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18819 # Transform the output of nm in a proper C declaration
18820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18822 # Transform the output of nm in a C name address pair
18823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18825 # This is the shared library runtime path variable.
18826 runpath_var=$runpath_var
18828 # This is the shared library path variable.
18829 shlibpath_var=$shlibpath_var
18831 # Is shlibpath searched before the hard-coded library search path?
18832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18834 # How to hardcode a shared library path into an executable.
18835 hardcode_action=$hardcode_action_GCJ
18837 # Whether we should hardcode library paths into libraries.
18838 hardcode_into_libs=$hardcode_into_libs
18840 # Flag to hardcode \$libdir into a binary during linking.
18841 # This must work even if \$libdir does not exist.
18842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18844 # If ld is used when linking, flag to hardcode \$libdir into
18845 # a binary during linking. This must work even if \$libdir does
18846 # not exist.
18847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18849 # Whether we need a single -rpath flag with a separated argument.
18850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18853 # resulting binary.
18854 hardcode_direct=$hardcode_direct_GCJ
18856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18857 # resulting binary.
18858 hardcode_minus_L=$hardcode_minus_L_GCJ
18860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18861 # the resulting binary.
18862 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18864 # Set to yes if building a shared library automatically hardcodes DIR into the library
18865 # and all subsequent libraries and executables linked against it.
18866 hardcode_automatic=$hardcode_automatic_GCJ
18868 # Variables whose values should be saved in libtool wrapper scripts and
18869 # restored at relink time.
18870 variables_saved_for_relink="$variables_saved_for_relink"
18872 # Whether libtool must link a program against all its dependency libraries.
18873 link_all_deplibs=$link_all_deplibs_GCJ
18875 # Compile-time system search path for libraries
18876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18878 # Run-time system search path for libraries
18879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18881 # Fix the shell variable \$srcfile for the compiler.
18882 fix_srcfile_path=$lt_fix_srcfile_path
18884 # Set to yes if exported symbols are required.
18885 always_export_symbols=$always_export_symbols_GCJ
18887 # The commands to list exported symbols.
18888 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18890 # The commands to extract the exported symbol list from a shared archive.
18891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18893 # Symbols that should not be listed in the preloaded symbols.
18894 exclude_expsyms=$lt_exclude_expsyms_GCJ
18896 # Symbols that must always be exported.
18897 include_expsyms=$lt_include_expsyms_GCJ
18899 # ### END LIBTOOL TAG CONFIG: $tagname
18901 __EOF__
18904 else
18905 # If there is no Makefile yet, we rely on a make rule to execute
18906 # `config.status --recheck' to rerun these tests and create the
18907 # libtool script then.
18908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18909 if test -f "$ltmain_in"; then
18910 test -f Makefile && make "$ltmain"
18915 ac_ext=c
18916 ac_cpp='$CPP $CPPFLAGS'
18917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18921 CC="$lt_save_CC"
18923 else
18924 tagname=""
18931 # Source file extension for RC test sources.
18932 ac_ext=rc
18934 # Object file extension for compiled RC test sources.
18935 objext=o
18936 objext_RC=$objext
18938 # Code to be used in simple compile tests
18939 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18941 # Code to be used in simple link tests
18942 lt_simple_link_test_code="$lt_simple_compile_test_code"
18944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18946 # If no C compiler was specified, use CC.
18947 LTCC=${LTCC-"$CC"}
18949 # If no C compiler flags were specified, use CFLAGS.
18950 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18952 # Allow CC to be a program name with arguments.
18953 compiler=$CC
18956 # save warnings/boilerplate of simple test code
18957 ac_outfile=conftest.$ac_objext
18958 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18959 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18960 _lt_compiler_boilerplate=`cat conftest.err`
18961 $rm conftest*
18963 ac_outfile=conftest.$ac_objext
18964 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18965 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_linker_boilerplate=`cat conftest.err`
18967 $rm conftest*
18970 # Allow CC to be a program name with arguments.
18971 lt_save_CC="$CC"
18972 CC=${RC-"windres"}
18973 compiler=$CC
18974 compiler_RC=$CC
18975 for cc_temp in $compiler""; do
18976 case $cc_temp in
18977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18979 \-*) ;;
18980 *) break;;
18981 esac
18982 done
18983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18985 lt_cv_prog_compiler_c_o_RC=yes
18987 # The else clause should only fire when bootstrapping the
18988 # libtool distribution, otherwise you forgot to ship ltmain.sh
18989 # with your package, and you will get complaints that there are
18990 # no rules to generate ltmain.sh.
18991 if test -f "$ltmain"; then
18992 # See if we are running on zsh, and set the options which allow our commands through
18993 # without removal of \ escapes.
18994 if test -n "${ZSH_VERSION+set}" ; then
18995 setopt NO_GLOB_SUBST
18997 # Now quote all the things that may contain metacharacters while being
18998 # careful not to overquote the AC_SUBSTed values. We take copies of the
18999 # variables and quote the copies for generation of the libtool script.
19000 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19001 SED SHELL STRIP \
19002 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19003 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19004 deplibs_check_method reload_flag reload_cmds need_locks \
19005 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19006 lt_cv_sys_global_symbol_to_c_name_address \
19007 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19008 old_postinstall_cmds old_postuninstall_cmds \
19009 compiler_RC \
19010 CC_RC \
19011 LD_RC \
19012 lt_prog_compiler_wl_RC \
19013 lt_prog_compiler_pic_RC \
19014 lt_prog_compiler_static_RC \
19015 lt_prog_compiler_no_builtin_flag_RC \
19016 export_dynamic_flag_spec_RC \
19017 thread_safe_flag_spec_RC \
19018 whole_archive_flag_spec_RC \
19019 enable_shared_with_static_runtimes_RC \
19020 old_archive_cmds_RC \
19021 old_archive_from_new_cmds_RC \
19022 predep_objects_RC \
19023 postdep_objects_RC \
19024 predeps_RC \
19025 postdeps_RC \
19026 compiler_lib_search_path_RC \
19027 archive_cmds_RC \
19028 archive_expsym_cmds_RC \
19029 postinstall_cmds_RC \
19030 postuninstall_cmds_RC \
19031 old_archive_from_expsyms_cmds_RC \
19032 allow_undefined_flag_RC \
19033 no_undefined_flag_RC \
19034 export_symbols_cmds_RC \
19035 hardcode_libdir_flag_spec_RC \
19036 hardcode_libdir_flag_spec_ld_RC \
19037 hardcode_libdir_separator_RC \
19038 hardcode_automatic_RC \
19039 module_cmds_RC \
19040 module_expsym_cmds_RC \
19041 lt_cv_prog_compiler_c_o_RC \
19042 fix_srcfile_path_RC \
19043 exclude_expsyms_RC \
19044 include_expsyms_RC; do
19046 case $var in
19047 old_archive_cmds_RC | \
19048 old_archive_from_new_cmds_RC | \
19049 archive_cmds_RC | \
19050 archive_expsym_cmds_RC | \
19051 module_cmds_RC | \
19052 module_expsym_cmds_RC | \
19053 old_archive_from_expsyms_cmds_RC | \
19054 export_symbols_cmds_RC | \
19055 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19056 postinstall_cmds | postuninstall_cmds | \
19057 old_postinstall_cmds | old_postuninstall_cmds | \
19058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19059 # Double-quote double-evaled strings.
19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19065 esac
19066 done
19068 case $lt_echo in
19069 *'\$0 --fallback-echo"')
19070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19072 esac
19074 cfgfile="$ofile"
19076 cat <<__EOF__ >> "$cfgfile"
19077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19081 # Shell to use when invoking shell scripts.
19082 SHELL=$lt_SHELL
19084 # Whether or not to build shared libraries.
19085 build_libtool_libs=$enable_shared
19087 # Whether or not to build static libraries.
19088 build_old_libs=$enable_static
19090 # Whether or not to add -lc for building shared libraries.
19091 build_libtool_need_lc=$archive_cmds_need_lc_RC
19093 # Whether or not to disallow shared libs when runtime libs are static
19094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19096 # Whether or not to optimize for fast installation.
19097 fast_install=$enable_fast_install
19099 # The host system.
19100 host_alias=$host_alias
19101 host=$host
19102 host_os=$host_os
19104 # The build system.
19105 build_alias=$build_alias
19106 build=$build
19107 build_os=$build_os
19109 # An echo program that does not interpret backslashes.
19110 echo=$lt_echo
19112 # The archiver.
19113 AR=$lt_AR
19114 AR_FLAGS=$lt_AR_FLAGS
19116 # A C compiler.
19117 LTCC=$lt_LTCC
19119 # LTCC compiler flags.
19120 LTCFLAGS=$lt_LTCFLAGS
19122 # A language-specific compiler.
19123 CC=$lt_compiler_RC
19125 # Is the compiler the GNU C compiler?
19126 with_gcc=$GCC_RC
19128 # An ERE matcher.
19129 EGREP=$lt_EGREP
19131 # The linker used to build libraries.
19132 LD=$lt_LD_RC
19134 # Whether we need hard or soft links.
19135 LN_S=$lt_LN_S
19137 # A BSD-compatible nm program.
19138 NM=$lt_NM
19140 # A symbol stripping program
19141 STRIP=$lt_STRIP
19143 # Used to examine libraries when file_magic_cmd begins "file"
19144 MAGIC_CMD=$MAGIC_CMD
19146 # Used on cygwin: DLL creation program.
19147 DLLTOOL="$DLLTOOL"
19149 # Used on cygwin: object dumper.
19150 OBJDUMP="$OBJDUMP"
19152 # Used on cygwin: assembler.
19153 AS="$AS"
19155 # The name of the directory that contains temporary libtool files.
19156 objdir=$objdir
19158 # How to create reloadable object files.
19159 reload_flag=$lt_reload_flag
19160 reload_cmds=$lt_reload_cmds
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl_RC
19165 # Object file suffix (normally "o").
19166 objext="$ac_objext"
19168 # Old archive suffix (normally "a").
19169 libext="$libext"
19171 # Shared library suffix (normally ".so").
19172 shrext_cmds='$shrext_cmds'
19174 # Executable file suffix (normally "").
19175 exeext="$exeext"
19177 # Additional compiler flags for building library objects.
19178 pic_flag=$lt_lt_prog_compiler_pic_RC
19179 pic_mode=$pic_mode
19181 # What is the maximum length of a command?
19182 max_cmd_len=$lt_cv_sys_max_cmd_len
19184 # Does compiler simultaneously support -c and -o options?
19185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19187 # Must we lock files when doing compilation?
19188 need_locks=$lt_need_locks
19190 # Do we need the lib prefix for modules?
19191 need_lib_prefix=$need_lib_prefix
19193 # Do we need a version for libraries?
19194 need_version=$need_version
19196 # Whether dlopen is supported.
19197 dlopen_support=$enable_dlopen
19199 # Whether dlopen of programs is supported.
19200 dlopen_self=$enable_dlopen_self
19202 # Whether dlopen of statically linked programs is supported.
19203 dlopen_self_static=$enable_dlopen_self_static
19205 # Compiler flag to prevent dynamic linking.
19206 link_static_flag=$lt_lt_prog_compiler_static_RC
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19211 # Compiler flag to allow reflexive dlopens.
19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19214 # Compiler flag to generate shared objects directly from archives.
19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19217 # Compiler flag to generate thread-safe objects.
19218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19220 # Library versioning type.
19221 version_type=$version_type
19223 # Format of library name prefix.
19224 libname_spec=$lt_libname_spec
19226 # List of archive names. First name is the real one, the rest are links.
19227 # The last name is the one that the linker finds with -lNAME.
19228 library_names_spec=$lt_library_names_spec
19230 # The coded name of the library, if different from the real name.
19231 soname_spec=$lt_soname_spec
19233 # Commands used to build and install an old-style archive.
19234 RANLIB=$lt_RANLIB
19235 old_archive_cmds=$lt_old_archive_cmds_RC
19236 old_postinstall_cmds=$lt_old_postinstall_cmds
19237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19245 # Commands used to build and install a shared archive.
19246 archive_cmds=$lt_archive_cmds_RC
19247 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19248 postinstall_cmds=$lt_postinstall_cmds
19249 postuninstall_cmds=$lt_postuninstall_cmds
19251 # Commands used to build a loadable module (assumed same as above if empty)
19252 module_cmds=$lt_module_cmds_RC
19253 module_expsym_cmds=$lt_module_expsym_cmds_RC
19255 # Commands to strip libraries.
19256 old_striplib=$lt_old_striplib
19257 striplib=$lt_striplib
19259 # Dependencies to place before the objects being linked to create a
19260 # shared library.
19261 predep_objects=$lt_predep_objects_RC
19263 # Dependencies to place after the objects being linked to create a
19264 # shared library.
19265 postdep_objects=$lt_postdep_objects_RC
19267 # Dependencies to place before the objects being linked to create a
19268 # shared library.
19269 predeps=$lt_predeps_RC
19271 # Dependencies to place after the objects being linked to create a
19272 # shared library.
19273 postdeps=$lt_postdeps_RC
19275 # The library search path used internally by the compiler when linking
19276 # a shared library.
19277 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19279 # Method to check whether dependent libraries are shared objects.
19280 deplibs_check_method=$lt_deplibs_check_method
19282 # Command to use when deplibs_check_method == file_magic.
19283 file_magic_cmd=$lt_file_magic_cmd
19285 # Flag that allows shared libraries with undefined symbols to be built.
19286 allow_undefined_flag=$lt_allow_undefined_flag_RC
19288 # Flag that forces no undefined symbols.
19289 no_undefined_flag=$lt_no_undefined_flag_RC
19291 # Commands used to finish a libtool library installation in a directory.
19292 finish_cmds=$lt_finish_cmds
19294 # Same as above, but a single script fragment to be evaled but not shown.
19295 finish_eval=$lt_finish_eval
19297 # Take the output of nm and produce a listing of raw symbols and C names.
19298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19300 # Transform the output of nm in a proper C declaration
19301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19303 # Transform the output of nm in a C name address pair
19304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19306 # This is the shared library runtime path variable.
19307 runpath_var=$runpath_var
19309 # This is the shared library path variable.
19310 shlibpath_var=$shlibpath_var
19312 # Is shlibpath searched before the hard-coded library search path?
19313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19315 # How to hardcode a shared library path into an executable.
19316 hardcode_action=$hardcode_action_RC
19318 # Whether we should hardcode library paths into libraries.
19319 hardcode_into_libs=$hardcode_into_libs
19321 # Flag to hardcode \$libdir into a binary during linking.
19322 # This must work even if \$libdir does not exist.
19323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19325 # If ld is used when linking, flag to hardcode \$libdir into
19326 # a binary during linking. This must work even if \$libdir does
19327 # not exist.
19328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19330 # Whether we need a single -rpath flag with a separated argument.
19331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_direct=$hardcode_direct_RC
19337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19338 # resulting binary.
19339 hardcode_minus_L=$hardcode_minus_L_RC
19341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19342 # the resulting binary.
19343 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19345 # Set to yes if building a shared library automatically hardcodes DIR into the library
19346 # and all subsequent libraries and executables linked against it.
19347 hardcode_automatic=$hardcode_automatic_RC
19349 # Variables whose values should be saved in libtool wrapper scripts and
19350 # restored at relink time.
19351 variables_saved_for_relink="$variables_saved_for_relink"
19353 # Whether libtool must link a program against all its dependency libraries.
19354 link_all_deplibs=$link_all_deplibs_RC
19356 # Compile-time system search path for libraries
19357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19359 # Run-time system search path for libraries
19360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19362 # Fix the shell variable \$srcfile for the compiler.
19363 fix_srcfile_path=$lt_fix_srcfile_path
19365 # Set to yes if exported symbols are required.
19366 always_export_symbols=$always_export_symbols_RC
19368 # The commands to list exported symbols.
19369 export_symbols_cmds=$lt_export_symbols_cmds_RC
19371 # The commands to extract the exported symbol list from a shared archive.
19372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19374 # Symbols that should not be listed in the preloaded symbols.
19375 exclude_expsyms=$lt_exclude_expsyms_RC
19377 # Symbols that must always be exported.
19378 include_expsyms=$lt_include_expsyms_RC
19380 # ### END LIBTOOL TAG CONFIG: $tagname
19382 __EOF__
19385 else
19386 # If there is no Makefile yet, we rely on a make rule to execute
19387 # `config.status --recheck' to rerun these tests and create the
19388 # libtool script then.
19389 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19390 if test -f "$ltmain_in"; then
19391 test -f Makefile && make "$ltmain"
19396 ac_ext=c
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19402 CC="$lt_save_CC"
19407 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19408 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19409 { (exit 1); exit 1; }; }
19411 esac
19413 # Append the new tag name to the list of available tags.
19414 if test -n "$tagname" ; then
19415 available_tags="$available_tags $tagname"
19418 done
19419 IFS="$lt_save_ifs"
19421 # Now substitute the updated list of available tags.
19422 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19423 mv "${ofile}T" "$ofile"
19424 chmod +x "$ofile"
19425 else
19426 rm -f "${ofile}T"
19427 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19428 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19429 { (exit 1); exit 1; }; }
19435 # This can be used to rebuild libtool when needed
19436 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19438 # Always use our own libtool.
19439 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19441 # Prevent multiple expansion
19463 { echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
19464 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
19465 # Check whether --enable-debug was given.
19466 if test "${enable_debug+set}" = set; then
19467 enableval=$enable_debug; vi_cv_debug=$enableval
19468 else
19469 vi_cv_debug="no"
19472 { echo "$as_me:$LINENO: result: $vi_cv_debug" >&5
19473 echo "${ECHO_T}$vi_cv_debug" >&6; }
19474 if test "$vi_cv_debug" = yes; then
19475 cat >>confdefs.h <<\_ACEOF
19476 #define DEBUG 1
19477 _ACEOF
19479 OPTFLAG=${OPTFLAG-"-g"}
19480 no_op_OPTFLAG=${no_op_OPTFLAG-"-g"}
19485 case "$host_os" in
19486 aix3.2.5) OPTFLAG=${OPTFLAG-"-O"};;
19487 aix4.1*) CFLAGS=${CFLAGS-"-qstrict"}
19488 OPTFLAG=${OPTFLAG-"-O3"};;
19489 aux*) CPPFLAGS=${CPPFLAGS-"-ZP -D_BSD_SOURCE -D_SYSV_SOURCE -D_AUX_SOURCE"}
19490 LDFLAGS=${LDFLAGS-"-ZP"}
19491 OPTFLAG=${OPTFLAG-"-O"};;
19492 bsd4.4) OPTFLAG=${OPTFLAG-"-O2"};;
19493 bsdi*) CC=${CC-"shlicc"}
19494 OPTFLAG=${OPTFLAG-"-O2"};;
19495 irix6*) OPTFLAG=${OPTFLAG-"-O2"};;
19496 irix*) OPTFLAG=${OPTFLAG-"-O2"};;
19497 lynxos*) ac_ext=c
19498 ac_cpp='$CPP $CPPFLAGS'
19499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19502 if test -n "$ac_tool_prefix"; then
19503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19507 if test "${ac_cv_prog_CC+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510 if test -n "$CC"; then
19511 ac_cv_prog_CC="$CC" # Let the user override the test.
19512 else
19513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19514 for as_dir in $PATH
19516 IFS=$as_save_IFS
19517 test -z "$as_dir" && as_dir=.
19518 for ac_exec_ext in '' $ac_executable_extensions; do
19519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19522 break 2
19524 done
19525 done
19526 IFS=$as_save_IFS
19530 CC=$ac_cv_prog_CC
19531 if test -n "$CC"; then
19532 { echo "$as_me:$LINENO: result: $CC" >&5
19533 echo "${ECHO_T}$CC" >&6; }
19534 else
19535 { echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6; }
19541 if test -z "$ac_cv_prog_CC"; then
19542 ac_ct_CC=$CC
19543 # Extract the first word of "gcc", so it can be a program name with args.
19544 set dummy gcc; ac_word=$2
19545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 if test -n "$ac_ct_CC"; then
19551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19552 else
19553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19554 for as_dir in $PATH
19556 IFS=$as_save_IFS
19557 test -z "$as_dir" && as_dir=.
19558 for ac_exec_ext in '' $ac_executable_extensions; do
19559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19560 ac_cv_prog_ac_ct_CC="gcc"
19561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19562 break 2
19564 done
19565 done
19566 IFS=$as_save_IFS
19570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19571 if test -n "$ac_ct_CC"; then
19572 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19573 echo "${ECHO_T}$ac_ct_CC" >&6; }
19574 else
19575 { echo "$as_me:$LINENO: result: no" >&5
19576 echo "${ECHO_T}no" >&6; }
19579 if test "x$ac_ct_CC" = x; then
19580 CC=""
19581 else
19582 case $cross_compiling:$ac_tool_warned in
19583 yes:)
19584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19585 whose name does not start with the host triplet. If you think this
19586 configuration is useful to you, please write to autoconf@gnu.org." >&5
19587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19588 whose name does not start with the host triplet. If you think this
19589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19590 ac_tool_warned=yes ;;
19591 esac
19592 CC=$ac_ct_CC
19594 else
19595 CC="$ac_cv_prog_CC"
19598 if test -z "$CC"; then
19599 if test -n "$ac_tool_prefix"; then
19600 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19601 set dummy ${ac_tool_prefix}cc; ac_word=$2
19602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19604 if test "${ac_cv_prog_CC+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607 if test -n "$CC"; then
19608 ac_cv_prog_CC="$CC" # Let the user override the test.
19609 else
19610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19611 for as_dir in $PATH
19613 IFS=$as_save_IFS
19614 test -z "$as_dir" && as_dir=.
19615 for ac_exec_ext in '' $ac_executable_extensions; do
19616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19617 ac_cv_prog_CC="${ac_tool_prefix}cc"
19618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19619 break 2
19621 done
19622 done
19623 IFS=$as_save_IFS
19627 CC=$ac_cv_prog_CC
19628 if test -n "$CC"; then
19629 { echo "$as_me:$LINENO: result: $CC" >&5
19630 echo "${ECHO_T}$CC" >&6; }
19631 else
19632 { echo "$as_me:$LINENO: result: no" >&5
19633 echo "${ECHO_T}no" >&6; }
19639 if test -z "$CC"; then
19640 # Extract the first word of "cc", so it can be a program name with args.
19641 set dummy cc; ac_word=$2
19642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19644 if test "${ac_cv_prog_CC+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647 if test -n "$CC"; then
19648 ac_cv_prog_CC="$CC" # Let the user override the test.
19649 else
19650 ac_prog_rejected=no
19651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19652 for as_dir in $PATH
19654 IFS=$as_save_IFS
19655 test -z "$as_dir" && as_dir=.
19656 for ac_exec_ext in '' $ac_executable_extensions; do
19657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19659 ac_prog_rejected=yes
19660 continue
19662 ac_cv_prog_CC="cc"
19663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19664 break 2
19666 done
19667 done
19668 IFS=$as_save_IFS
19670 if test $ac_prog_rejected = yes; then
19671 # We found a bogon in the path, so make sure we never use it.
19672 set dummy $ac_cv_prog_CC
19673 shift
19674 if test $# != 0; then
19675 # We chose a different compiler from the bogus one.
19676 # However, it has the same basename, so the bogon will be chosen
19677 # first if we set CC to just the basename; use the full file name.
19678 shift
19679 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19684 CC=$ac_cv_prog_CC
19685 if test -n "$CC"; then
19686 { echo "$as_me:$LINENO: result: $CC" >&5
19687 echo "${ECHO_T}$CC" >&6; }
19688 else
19689 { echo "$as_me:$LINENO: result: no" >&5
19690 echo "${ECHO_T}no" >&6; }
19695 if test -z "$CC"; then
19696 if test -n "$ac_tool_prefix"; then
19697 for ac_prog in cl.exe
19699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19703 if test "${ac_cv_prog_CC+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706 if test -n "$CC"; then
19707 ac_cv_prog_CC="$CC" # Let the user override the test.
19708 else
19709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710 for as_dir in $PATH
19712 IFS=$as_save_IFS
19713 test -z "$as_dir" && as_dir=.
19714 for ac_exec_ext in '' $ac_executable_extensions; do
19715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19718 break 2
19720 done
19721 done
19722 IFS=$as_save_IFS
19726 CC=$ac_cv_prog_CC
19727 if test -n "$CC"; then
19728 { echo "$as_me:$LINENO: result: $CC" >&5
19729 echo "${ECHO_T}$CC" >&6; }
19730 else
19731 { echo "$as_me:$LINENO: result: no" >&5
19732 echo "${ECHO_T}no" >&6; }
19736 test -n "$CC" && break
19737 done
19739 if test -z "$CC"; then
19740 ac_ct_CC=$CC
19741 for ac_prog in cl.exe
19743 # Extract the first word of "$ac_prog", so it can be a program name with args.
19744 set dummy $ac_prog; ac_word=$2
19745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750 if test -n "$ac_ct_CC"; then
19751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19752 else
19753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19754 for as_dir in $PATH
19756 IFS=$as_save_IFS
19757 test -z "$as_dir" && as_dir=.
19758 for ac_exec_ext in '' $ac_executable_extensions; do
19759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19760 ac_cv_prog_ac_ct_CC="$ac_prog"
19761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19762 break 2
19764 done
19765 done
19766 IFS=$as_save_IFS
19770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19771 if test -n "$ac_ct_CC"; then
19772 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19773 echo "${ECHO_T}$ac_ct_CC" >&6; }
19774 else
19775 { echo "$as_me:$LINENO: result: no" >&5
19776 echo "${ECHO_T}no" >&6; }
19780 test -n "$ac_ct_CC" && break
19781 done
19783 if test "x$ac_ct_CC" = x; then
19784 CC=""
19785 else
19786 case $cross_compiling:$ac_tool_warned in
19787 yes:)
19788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19789 whose name does not start with the host triplet. If you think this
19790 configuration is useful to you, please write to autoconf@gnu.org." >&5
19791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19792 whose name does not start with the host triplet. If you think this
19793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19794 ac_tool_warned=yes ;;
19795 esac
19796 CC=$ac_ct_CC
19803 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19804 See \`config.log' for more details." >&5
19805 echo "$as_me: error: no acceptable C compiler found in \$PATH
19806 See \`config.log' for more details." >&2;}
19807 { (exit 1); exit 1; }; }
19809 # Provide some information about the compiler.
19810 echo "$as_me:$LINENO: checking for C compiler version" >&5
19811 ac_compiler=`set X $ac_compile; echo $2`
19812 { (ac_try="$ac_compiler --version >&5"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_compiler --version >&5") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }
19822 { (ac_try="$ac_compiler -v >&5"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_compiler -v >&5") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }
19832 { (ac_try="$ac_compiler -V >&5"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_compiler -V >&5") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }
19843 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19844 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19845 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19856 main ()
19858 #ifndef __GNUC__
19859 choke me
19860 #endif
19863 return 0;
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && {
19880 test -z "$ac_c_werror_flag" ||
19881 test ! -s conftest.err
19882 } && test -s conftest.$ac_objext; then
19883 ac_compiler_gnu=yes
19884 else
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_compiler_gnu=no
19891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19895 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19896 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19897 GCC=`test $ac_compiler_gnu = yes && echo yes`
19898 ac_test_CFLAGS=${CFLAGS+set}
19899 ac_save_CFLAGS=$CFLAGS
19900 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19902 if test "${ac_cv_prog_cc_g+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905 ac_save_c_werror_flag=$ac_c_werror_flag
19906 ac_c_werror_flag=yes
19907 ac_cv_prog_cc_g=no
19908 CFLAGS="-g"
19909 cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h. */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19917 main ()
19921 return 0;
19923 _ACEOF
19924 rm -f conftest.$ac_objext
19925 if { (ac_try="$ac_compile"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_compile") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest.$ac_objext; then
19941 ac_cv_prog_cc_g=yes
19942 else
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 CFLAGS=""
19947 cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19955 main ()
19959 return 0;
19961 _ACEOF
19962 rm -f conftest.$ac_objext
19963 if { (ac_try="$ac_compile"
19964 case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest.$ac_objext; then
19980 else
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_c_werror_flag=$ac_save_c_werror_flag
19985 CFLAGS="-g"
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19994 main ()
19998 return 0;
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006 esac
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_compile") 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && {
20015 test -z "$ac_c_werror_flag" ||
20016 test ! -s conftest.err
20017 } && test -s conftest.$ac_objext; then
20018 ac_cv_prog_cc_g=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033 ac_c_werror_flag=$ac_save_c_werror_flag
20035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20036 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20037 if test "$ac_test_CFLAGS" = set; then
20038 CFLAGS=$ac_save_CFLAGS
20039 elif test $ac_cv_prog_cc_g = yes; then
20040 if test "$GCC" = yes; then
20041 CFLAGS="-g -O2"
20042 else
20043 CFLAGS="-g"
20045 else
20046 if test "$GCC" = yes; then
20047 CFLAGS="-O2"
20048 else
20049 CFLAGS=
20052 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20053 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20054 if test "${ac_cv_prog_cc_c89+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057 ac_cv_prog_cc_c89=no
20058 ac_save_CC=$CC
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <stdarg.h>
20066 #include <stdio.h>
20067 #include <sys/types.h>
20068 #include <sys/stat.h>
20069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20070 struct buf { int x; };
20071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20072 static char *e (p, i)
20073 char **p;
20074 int i;
20076 return p[i];
20078 static char *f (char * (*g) (char **, int), char **p, ...)
20080 char *s;
20081 va_list v;
20082 va_start (v,p);
20083 s = g (p, va_arg (v,int));
20084 va_end (v);
20085 return s;
20088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20089 function prototypes and stuff, but not '\xHH' hex character constants.
20090 These don't provoke an error unfortunately, instead are silently treated
20091 as 'x'. The following induces an error, until -std is added to get
20092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20093 array size at least. It's necessary to write '\x00'==0 to get something
20094 that's true only with -std. */
20095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20098 inside strings and character constants. */
20099 #define FOO(x) 'x'
20100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20102 int test (int i, double x);
20103 struct s1 {int (*f) (int a);};
20104 struct s2 {int (*f) (double a);};
20105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20106 int argc;
20107 char **argv;
20109 main ()
20111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20113 return 0;
20115 _ACEOF
20116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20119 CC="$ac_save_CC $ac_arg"
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_compile") 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest.$ac_objext; then
20137 ac_cv_prog_cc_c89=$ac_arg
20138 else
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20145 rm -f core conftest.err conftest.$ac_objext
20146 test "x$ac_cv_prog_cc_c89" != "xno" && break
20147 done
20148 rm -f conftest.$ac_ext
20149 CC=$ac_save_CC
20152 # AC_CACHE_VAL
20153 case "x$ac_cv_prog_cc_c89" in
20155 { echo "$as_me:$LINENO: result: none needed" >&5
20156 echo "${ECHO_T}none needed" >&6; } ;;
20157 xno)
20158 { echo "$as_me:$LINENO: result: unsupported" >&5
20159 echo "${ECHO_T}unsupported" >&6; } ;;
20161 CC="$CC $ac_cv_prog_cc_c89"
20162 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20163 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20164 esac
20167 ac_ext=c
20168 ac_cpp='$CPP $CPPFLAGS'
20169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173 depcc="$CC" am_compiler_list=
20175 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20176 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20177 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20181 # We make a subdir and do the tests there. Otherwise we can end up
20182 # making bogus files that we don't know about and never remove. For
20183 # instance it was reported that on HP-UX the gcc test will end up
20184 # making a dummy file named `D' -- because `-MD' means `put the output
20185 # in D'.
20186 mkdir conftest.dir
20187 # Copy depcomp to subdir because otherwise we won't find it if we're
20188 # using a relative directory.
20189 cp "$am_depcomp" conftest.dir
20190 cd conftest.dir
20191 # We will build objects and dependencies in a subdirectory because
20192 # it helps to detect inapplicable dependency modes. For instance
20193 # both Tru64's cc and ICC support -MD to output dependencies as a
20194 # side effect of compilation, but ICC will put the dependencies in
20195 # the current directory while Tru64 will put them in the object
20196 # directory.
20197 mkdir sub
20199 am_cv_CC_dependencies_compiler_type=none
20200 if test "$am_compiler_list" = ""; then
20201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20203 for depmode in $am_compiler_list; do
20204 # Setup a source with many dependencies, because some compilers
20205 # like to wrap large dependency lists on column 80 (with \), and
20206 # we should not choose a depcomp mode which is confused by this.
20208 # We need to recreate these files for each test, as the compiler may
20209 # overwrite some of them when testing with obscure command lines.
20210 # This happens at least with the AIX C compiler.
20211 : > sub/conftest.c
20212 for i in 1 2 3 4 5 6; do
20213 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20214 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20215 # Solaris 8's {/usr,}/bin/sh.
20216 touch sub/conftst$i.h
20217 done
20218 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20220 case $depmode in
20221 nosideeffect)
20222 # after this tag, mechanisms are not by side-effect, so they'll
20223 # only be used when explicitly requested
20224 if test "x$enable_dependency_tracking" = xyes; then
20225 continue
20226 else
20227 break
20230 none) break ;;
20231 esac
20232 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20233 # mode. It turns out that the SunPro C++ compiler does not properly
20234 # handle `-M -o', and we need to detect this.
20235 if depmode=$depmode \
20236 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20238 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20239 >/dev/null 2>conftest.err &&
20240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20242 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20244 # icc doesn't choke on unknown options, it will just issue warnings
20245 # or remarks (even with -Werror). So we grep stderr for any message
20246 # that says an option was ignored or not supported.
20247 # When given -MP, icc 7.0 and 7.1 complain thusly:
20248 # icc: Command line warning: ignoring option '-M'; no argument required
20249 # The diagnosis changed in icc 8.0:
20250 # icc: Command line remark: option '-MP' not supported
20251 if (grep 'ignoring option' conftest.err ||
20252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20253 am_cv_CC_dependencies_compiler_type=$depmode
20254 break
20257 done
20259 cd ..
20260 rm -rf conftest.dir
20261 else
20262 am_cv_CC_dependencies_compiler_type=none
20266 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20267 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20268 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20271 test "x$enable_dependency_tracking" != xno \
20272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20273 am__fastdepCC_TRUE=
20274 am__fastdepCC_FALSE='#'
20275 else
20276 am__fastdepCC_TRUE='#'
20277 am__fastdepCC_FALSE=
20281 { echo "$as_me:$LINENO: checking for GNU C (gcc) version 2.x" >&5
20282 echo $ECHO_N "checking for GNU C (gcc) version 2.x... $ECHO_C" >&6; }
20283 ac_cv_gcc_vers=`${CC-cc} -v 2>&1 | \
20284 grep "gcc version " | sed 's/.*version //'`
20285 ac_cv_gcc_major=`echo "$ac_cv_gcc_vers" | sed 's/\..*//'`
20286 if test "$ac_cv_gcc_major" = "2" ; then
20287 { echo "$as_me:$LINENO: result: yes" >&5
20288 echo "${ECHO_T}yes" >&6; }
20289 else
20290 { echo "$as_me:$LINENO: result: no" >&5
20291 echo "${ECHO_T}no" >&6; }
20292 { echo "$as_me:$LINENO: WARNING: Nvi requires gcc 2.x to build on LynxOS." >&5
20293 echo "$as_me: WARNING: Nvi requires gcc 2.x to build on LynxOS." >&2;}
20294 { { echo "$as_me:$LINENO: error: See build/README.LynxOS for more information." >&5
20295 echo "$as_me: error: See build/README.LynxOS for more information." >&2;}
20296 { (exit 1); exit 1; }; }
20297 fi;;
20298 nextstep3) CPPFLAGS=${CPPFLAGS-"-w -pipe -posix"}
20299 LDFLAGS=${LDFLAGS-"-posix"}
20300 OPTFLAG=${OPTFLAG-"-O2"};;
20301 osf*) CFLAGS=${CFLAGS-"-Olimit 1000"};;
20302 solaris*) no_op_OPTFLAG=${no_op_OPTFLAG-""};;
20303 sunos*) no_op_OPTFLAG=${no_op_OPTFLAG-""};;
20304 esac
20307 OPTFLAG=${OPTFLAG-"-O"}
20310 CC=${CC-cc}
20311 CFLAGS=${CFLAGS-""}
20312 ac_ext=c
20313 ac_cpp='$CPP $CPPFLAGS'
20314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20317 if test -n "$ac_tool_prefix"; then
20318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20322 if test "${ac_cv_prog_CC+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325 if test -n "$CC"; then
20326 ac_cv_prog_CC="$CC" # Let the user override the test.
20327 else
20328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20329 for as_dir in $PATH
20331 IFS=$as_save_IFS
20332 test -z "$as_dir" && as_dir=.
20333 for ac_exec_ext in '' $ac_executable_extensions; do
20334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20337 break 2
20339 done
20340 done
20341 IFS=$as_save_IFS
20345 CC=$ac_cv_prog_CC
20346 if test -n "$CC"; then
20347 { echo "$as_me:$LINENO: result: $CC" >&5
20348 echo "${ECHO_T}$CC" >&6; }
20349 else
20350 { echo "$as_me:$LINENO: result: no" >&5
20351 echo "${ECHO_T}no" >&6; }
20356 if test -z "$ac_cv_prog_CC"; then
20357 ac_ct_CC=$CC
20358 # Extract the first word of "gcc", so it can be a program name with args.
20359 set dummy gcc; ac_word=$2
20360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365 if test -n "$ac_ct_CC"; then
20366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20367 else
20368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20369 for as_dir in $PATH
20371 IFS=$as_save_IFS
20372 test -z "$as_dir" && as_dir=.
20373 for ac_exec_ext in '' $ac_executable_extensions; do
20374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20375 ac_cv_prog_ac_ct_CC="gcc"
20376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20377 break 2
20379 done
20380 done
20381 IFS=$as_save_IFS
20385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20386 if test -n "$ac_ct_CC"; then
20387 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20388 echo "${ECHO_T}$ac_ct_CC" >&6; }
20389 else
20390 { echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6; }
20394 if test "x$ac_ct_CC" = x; then
20395 CC=""
20396 else
20397 case $cross_compiling:$ac_tool_warned in
20398 yes:)
20399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20400 whose name does not start with the host triplet. If you think this
20401 configuration is useful to you, please write to autoconf@gnu.org." >&5
20402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20403 whose name does not start with the host triplet. If you think this
20404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20405 ac_tool_warned=yes ;;
20406 esac
20407 CC=$ac_ct_CC
20409 else
20410 CC="$ac_cv_prog_CC"
20413 if test -z "$CC"; then
20414 if test -n "$ac_tool_prefix"; then
20415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20416 set dummy ${ac_tool_prefix}cc; ac_word=$2
20417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20419 if test "${ac_cv_prog_CC+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422 if test -n "$CC"; then
20423 ac_cv_prog_CC="$CC" # Let the user override the test.
20424 else
20425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20426 for as_dir in $PATH
20428 IFS=$as_save_IFS
20429 test -z "$as_dir" && as_dir=.
20430 for ac_exec_ext in '' $ac_executable_extensions; do
20431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20432 ac_cv_prog_CC="${ac_tool_prefix}cc"
20433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20434 break 2
20436 done
20437 done
20438 IFS=$as_save_IFS
20442 CC=$ac_cv_prog_CC
20443 if test -n "$CC"; then
20444 { echo "$as_me:$LINENO: result: $CC" >&5
20445 echo "${ECHO_T}$CC" >&6; }
20446 else
20447 { echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6; }
20454 if test -z "$CC"; then
20455 # Extract the first word of "cc", so it can be a program name with args.
20456 set dummy cc; ac_word=$2
20457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20459 if test "${ac_cv_prog_CC+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462 if test -n "$CC"; then
20463 ac_cv_prog_CC="$CC" # Let the user override the test.
20464 else
20465 ac_prog_rejected=no
20466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20467 for as_dir in $PATH
20469 IFS=$as_save_IFS
20470 test -z "$as_dir" && as_dir=.
20471 for ac_exec_ext in '' $ac_executable_extensions; do
20472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20474 ac_prog_rejected=yes
20475 continue
20477 ac_cv_prog_CC="cc"
20478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20479 break 2
20481 done
20482 done
20483 IFS=$as_save_IFS
20485 if test $ac_prog_rejected = yes; then
20486 # We found a bogon in the path, so make sure we never use it.
20487 set dummy $ac_cv_prog_CC
20488 shift
20489 if test $# != 0; then
20490 # We chose a different compiler from the bogus one.
20491 # However, it has the same basename, so the bogon will be chosen
20492 # first if we set CC to just the basename; use the full file name.
20493 shift
20494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20499 CC=$ac_cv_prog_CC
20500 if test -n "$CC"; then
20501 { echo "$as_me:$LINENO: result: $CC" >&5
20502 echo "${ECHO_T}$CC" >&6; }
20503 else
20504 { echo "$as_me:$LINENO: result: no" >&5
20505 echo "${ECHO_T}no" >&6; }
20510 if test -z "$CC"; then
20511 if test -n "$ac_tool_prefix"; then
20512 for ac_prog in cl.exe
20514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20518 if test "${ac_cv_prog_CC+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521 if test -n "$CC"; then
20522 ac_cv_prog_CC="$CC" # Let the user override the test.
20523 else
20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $PATH
20527 IFS=$as_save_IFS
20528 test -z "$as_dir" && as_dir=.
20529 for ac_exec_ext in '' $ac_executable_extensions; do
20530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20533 break 2
20535 done
20536 done
20537 IFS=$as_save_IFS
20541 CC=$ac_cv_prog_CC
20542 if test -n "$CC"; then
20543 { echo "$as_me:$LINENO: result: $CC" >&5
20544 echo "${ECHO_T}$CC" >&6; }
20545 else
20546 { echo "$as_me:$LINENO: result: no" >&5
20547 echo "${ECHO_T}no" >&6; }
20551 test -n "$CC" && break
20552 done
20554 if test -z "$CC"; then
20555 ac_ct_CC=$CC
20556 for ac_prog in cl.exe
20558 # Extract the first word of "$ac_prog", so it can be a program name with args.
20559 set dummy $ac_prog; ac_word=$2
20560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565 if test -n "$ac_ct_CC"; then
20566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20567 else
20568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569 for as_dir in $PATH
20571 IFS=$as_save_IFS
20572 test -z "$as_dir" && as_dir=.
20573 for ac_exec_ext in '' $ac_executable_extensions; do
20574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20575 ac_cv_prog_ac_ct_CC="$ac_prog"
20576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20577 break 2
20579 done
20580 done
20581 IFS=$as_save_IFS
20585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20586 if test -n "$ac_ct_CC"; then
20587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20588 echo "${ECHO_T}$ac_ct_CC" >&6; }
20589 else
20590 { echo "$as_me:$LINENO: result: no" >&5
20591 echo "${ECHO_T}no" >&6; }
20595 test -n "$ac_ct_CC" && break
20596 done
20598 if test "x$ac_ct_CC" = x; then
20599 CC=""
20600 else
20601 case $cross_compiling:$ac_tool_warned in
20602 yes:)
20603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20604 whose name does not start with the host triplet. If you think this
20605 configuration is useful to you, please write to autoconf@gnu.org." >&5
20606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20607 whose name does not start with the host triplet. If you think this
20608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20609 ac_tool_warned=yes ;;
20610 esac
20611 CC=$ac_ct_CC
20618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20619 See \`config.log' for more details." >&5
20620 echo "$as_me: error: no acceptable C compiler found in \$PATH
20621 See \`config.log' for more details." >&2;}
20622 { (exit 1); exit 1; }; }
20624 # Provide some information about the compiler.
20625 echo "$as_me:$LINENO: checking for C compiler version" >&5
20626 ac_compiler=`set X $ac_compile; echo $2`
20627 { (ac_try="$ac_compiler --version >&5"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compiler --version >&5") 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }
20637 { (ac_try="$ac_compiler -v >&5"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_compiler -v >&5") 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }
20647 { (ac_try="$ac_compiler -V >&5"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compiler -V >&5") 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }
20658 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20659 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20660 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20671 main ()
20673 #ifndef __GNUC__
20674 choke me
20675 #endif
20678 return 0;
20680 _ACEOF
20681 rm -f conftest.$ac_objext
20682 if { (ac_try="$ac_compile"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_compile") 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest.$ac_objext; then
20698 ac_compiler_gnu=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_compiler_gnu=no
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20710 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20712 GCC=`test $ac_compiler_gnu = yes && echo yes`
20713 ac_test_CFLAGS=${CFLAGS+set}
20714 ac_save_CFLAGS=$CFLAGS
20715 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20716 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20717 if test "${ac_cv_prog_cc_g+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720 ac_save_c_werror_flag=$ac_c_werror_flag
20721 ac_c_werror_flag=yes
20722 ac_cv_prog_cc_g=no
20723 CFLAGS="-g"
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20732 main ()
20736 return 0;
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_compile") 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest.$ac_objext; then
20756 ac_cv_prog_cc_g=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 CFLAGS=""
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h. */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20770 main ()
20774 return 0;
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_compile") 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && {
20791 test -z "$ac_c_werror_flag" ||
20792 test ! -s conftest.err
20793 } && test -s conftest.$ac_objext; then
20795 else
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 ac_c_werror_flag=$ac_save_c_werror_flag
20800 CFLAGS="-g"
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20809 main ()
20813 return 0;
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_cv_prog_cc_g=yes
20834 else
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 ac_c_werror_flag=$ac_save_c_werror_flag
20850 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20851 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20852 if test "$ac_test_CFLAGS" = set; then
20853 CFLAGS=$ac_save_CFLAGS
20854 elif test $ac_cv_prog_cc_g = yes; then
20855 if test "$GCC" = yes; then
20856 CFLAGS="-g -O2"
20857 else
20858 CFLAGS="-g"
20860 else
20861 if test "$GCC" = yes; then
20862 CFLAGS="-O2"
20863 else
20864 CFLAGS=
20867 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20868 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20869 if test "${ac_cv_prog_cc_c89+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872 ac_cv_prog_cc_c89=no
20873 ac_save_CC=$CC
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 #include <stdarg.h>
20881 #include <stdio.h>
20882 #include <sys/types.h>
20883 #include <sys/stat.h>
20884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20885 struct buf { int x; };
20886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20887 static char *e (p, i)
20888 char **p;
20889 int i;
20891 return p[i];
20893 static char *f (char * (*g) (char **, int), char **p, ...)
20895 char *s;
20896 va_list v;
20897 va_start (v,p);
20898 s = g (p, va_arg (v,int));
20899 va_end (v);
20900 return s;
20903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20904 function prototypes and stuff, but not '\xHH' hex character constants.
20905 These don't provoke an error unfortunately, instead are silently treated
20906 as 'x'. The following induces an error, until -std is added to get
20907 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20908 array size at least. It's necessary to write '\x00'==0 to get something
20909 that's true only with -std. */
20910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20913 inside strings and character constants. */
20914 #define FOO(x) 'x'
20915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20917 int test (int i, double x);
20918 struct s1 {int (*f) (int a);};
20919 struct s2 {int (*f) (double a);};
20920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20921 int argc;
20922 char **argv;
20924 main ()
20926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20928 return 0;
20930 _ACEOF
20931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20932 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20934 CC="$ac_save_CC $ac_arg"
20935 rm -f conftest.$ac_objext
20936 if { (ac_try="$ac_compile"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest.$ac_objext; then
20952 ac_cv_prog_cc_c89=$ac_arg
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20960 rm -f core conftest.err conftest.$ac_objext
20961 test "x$ac_cv_prog_cc_c89" != "xno" && break
20962 done
20963 rm -f conftest.$ac_ext
20964 CC=$ac_save_CC
20967 # AC_CACHE_VAL
20968 case "x$ac_cv_prog_cc_c89" in
20970 { echo "$as_me:$LINENO: result: none needed" >&5
20971 echo "${ECHO_T}none needed" >&6; } ;;
20972 xno)
20973 { echo "$as_me:$LINENO: result: unsupported" >&5
20974 echo "${ECHO_T}unsupported" >&6; } ;;
20976 CC="$CC $ac_cv_prog_cc_c89"
20977 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20978 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20979 esac
20982 ac_ext=c
20983 ac_cpp='$CPP $CPPFLAGS'
20984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988 depcc="$CC" am_compiler_list=
20990 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20991 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20996 # We make a subdir and do the tests there. Otherwise we can end up
20997 # making bogus files that we don't know about and never remove. For
20998 # instance it was reported that on HP-UX the gcc test will end up
20999 # making a dummy file named `D' -- because `-MD' means `put the output
21000 # in D'.
21001 mkdir conftest.dir
21002 # Copy depcomp to subdir because otherwise we won't find it if we're
21003 # using a relative directory.
21004 cp "$am_depcomp" conftest.dir
21005 cd conftest.dir
21006 # We will build objects and dependencies in a subdirectory because
21007 # it helps to detect inapplicable dependency modes. For instance
21008 # both Tru64's cc and ICC support -MD to output dependencies as a
21009 # side effect of compilation, but ICC will put the dependencies in
21010 # the current directory while Tru64 will put them in the object
21011 # directory.
21012 mkdir sub
21014 am_cv_CC_dependencies_compiler_type=none
21015 if test "$am_compiler_list" = ""; then
21016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21018 for depmode in $am_compiler_list; do
21019 # Setup a source with many dependencies, because some compilers
21020 # like to wrap large dependency lists on column 80 (with \), and
21021 # we should not choose a depcomp mode which is confused by this.
21023 # We need to recreate these files for each test, as the compiler may
21024 # overwrite some of them when testing with obscure command lines.
21025 # This happens at least with the AIX C compiler.
21026 : > sub/conftest.c
21027 for i in 1 2 3 4 5 6; do
21028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21029 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21030 # Solaris 8's {/usr,}/bin/sh.
21031 touch sub/conftst$i.h
21032 done
21033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21035 case $depmode in
21036 nosideeffect)
21037 # after this tag, mechanisms are not by side-effect, so they'll
21038 # only be used when explicitly requested
21039 if test "x$enable_dependency_tracking" = xyes; then
21040 continue
21041 else
21042 break
21045 none) break ;;
21046 esac
21047 # We check with `-c' and `-o' for the sake of the "dashmstdout"
21048 # mode. It turns out that the SunPro C++ compiler does not properly
21049 # handle `-M -o', and we need to detect this.
21050 if depmode=$depmode \
21051 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21053 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21054 >/dev/null 2>conftest.err &&
21055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21057 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21059 # icc doesn't choke on unknown options, it will just issue warnings
21060 # or remarks (even with -Werror). So we grep stderr for any message
21061 # that says an option was ignored or not supported.
21062 # When given -MP, icc 7.0 and 7.1 complain thusly:
21063 # icc: Command line warning: ignoring option '-M'; no argument required
21064 # The diagnosis changed in icc 8.0:
21065 # icc: Command line remark: option '-MP' not supported
21066 if (grep 'ignoring option' conftest.err ||
21067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21068 am_cv_CC_dependencies_compiler_type=$depmode
21069 break
21072 done
21074 cd ..
21075 rm -rf conftest.dir
21076 else
21077 am_cv_CC_dependencies_compiler_type=none
21081 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
21082 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
21083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21086 test "x$enable_dependency_tracking" != xno \
21087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21088 am__fastdepCC_TRUE=
21089 am__fastdepCC_FALSE='#'
21090 else
21091 am__fastdepCC_TRUE='#'
21092 am__fastdepCC_FALSE=
21097 if test "$GCC" = yes; then
21098 cat >>confdefs.h <<\_ACEOF
21099 #define HAVE_GCC 1
21100 _ACEOF
21105 no_op_OPTFLAG=${no_op_OPTFLAG-"$OPTFLAG"}
21107 case "$host_os" in
21108 bsdi2.1) LIBS=${LIBS-"-lipc"};;
21109 dgux*) LIBS=${LIBS-"-ldgc"};;
21110 irix6*) LIBS=${LIBS-"-lbsd"};;
21111 irix*) LIBS=${LIBS-"-lc_s -lbsd"};;
21112 isc*) LIBS=${LIBS-"-lcposix -linet"};;
21113 netbsd1*) LIBS=${LIBS-"-lcrypt"};;
21114 ptx*) LIBS=${LIBS-"-lseq -linet -lsocket"};;
21115 sco3.2*) LIBS=${LIBS-"-lsocket"};;
21116 sinix*) LIBS=${LIBS-"-lelf -lc"};;
21117 solaris*) LIBS=${LIBS-"-lsocket -lnsl -ldl"};;
21118 wgs*) LIBS=${LIBS-"-lnsl"};;
21119 esac
21121 case "$host_os" in
21122 aux*) LIBOBJS="getopt.o strpbrk.o $LIBOBJS";;
21123 esac
21125 case "$host_os" in
21126 ultrix*) cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_BROKEN_VDISABLE 1
21128 _ACEOF
21130 esac
21132 { echo "$as_me:$LINENO: checking whether recording of pathnames of libraries is enabled" >&5
21133 echo $ECHO_N "checking whether recording of pathnames of libraries is enabled... $ECHO_C" >&6; }
21134 # Check whether --enable-runpath was given.
21135 if test "${enable_runpath+set}" = set; then
21136 enableval=$enable_runpath; vi_cv_runpath="$enableval"
21137 else
21138 vi_cv_runpath="yes"
21141 { echo "$as_me:$LINENO: result: $vi_cv_runpath" >&5
21142 echo "${ECHO_T}$vi_cv_runpath" >&6; }
21144 if test "X$vi_cv_runpath" = "Xyes"; then
21145 LRscript='s/^\(.*\)/-R\1 -L\1 /'
21146 else
21147 LRscript='s/^\(.*\)/-L\1 /'
21150 { echo "$as_me:$LINENO: checking if --enable-trace option specified" >&5
21151 echo $ECHO_N "checking if --enable-trace option specified... $ECHO_C" >&6; }
21152 # Check whether --enable-trace was given.
21153 if test "${enable_trace+set}" = set; then
21154 enableval=$enable_trace; vi_cv_trace="yes"
21155 else
21156 vi_cv_trace="no"
21159 if test "$vi_cv_trace" = yes; then
21160 CPPFLAGS="-DTRACE $CPPFLAGS"
21162 { echo "$as_me:$LINENO: result: $vi_cv_trace" >&5
21163 echo "${ECHO_T}$vi_cv_trace" >&6; }
21165 CPPFLAGS="$ADDCPPFLAGS $CPPFLAGS"
21167 LDFLAGS="$ADDLDFLAGS $LDFLAGS"
21169 LIBS="$ADDLIBS $LIBS"
21171 PATH="$PATH:/usr/bin:/usr/sbin:/sbin:/etc:/usr/etc:/usr/lib:/usr/ucblib"
21173 # Extract the first word of "sh", so it can be a program name with args.
21174 set dummy sh; ac_word=$2
21175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21177 if test "${ac_cv_path_vi_cv_path_shell+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180 case $vi_cv_path_shell in
21181 [\\/]* | ?:[\\/]*)
21182 ac_cv_path_vi_cv_path_shell="$vi_cv_path_shell" # Let the user override the test with a path.
21185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186 for as_dir in $PATH
21188 IFS=$as_save_IFS
21189 test -z "$as_dir" && as_dir=.
21190 for ac_exec_ext in '' $ac_executable_extensions; do
21191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21192 ac_cv_path_vi_cv_path_shell="$as_dir/$ac_word$ac_exec_ext"
21193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21194 break 2
21196 done
21197 done
21198 IFS=$as_save_IFS
21200 test -z "$ac_cv_path_vi_cv_path_shell" && ac_cv_path_vi_cv_path_shell="no"
21202 esac
21204 vi_cv_path_shell=$ac_cv_path_vi_cv_path_shell
21205 if test -n "$vi_cv_path_shell"; then
21206 { echo "$as_me:$LINENO: result: $vi_cv_path_shell" >&5
21207 echo "${ECHO_T}$vi_cv_path_shell" >&6; }
21208 else
21209 { echo "$as_me:$LINENO: result: no" >&5
21210 echo "${ECHO_T}no" >&6; }
21214 if test "$vi_cv_path_shell" = no; then
21215 { { echo "$as_me:$LINENO: error: No shell utility found." >&5
21216 echo "$as_me: error: No shell utility found." >&2;}
21217 { (exit 1); exit 1; }; }
21220 # Extract the first word of "sendmail", so it can be a program name with args.
21221 set dummy sendmail; ac_word=$2
21222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21224 if test "${ac_cv_path_vi_cv_path_sendmail+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227 case $vi_cv_path_sendmail in
21228 [\\/]* | ?:[\\/]*)
21229 ac_cv_path_vi_cv_path_sendmail="$vi_cv_path_sendmail" # Let the user override the test with a path.
21232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21233 for as_dir in $PATH
21235 IFS=$as_save_IFS
21236 test -z "$as_dir" && as_dir=.
21237 for ac_exec_ext in '' $ac_executable_extensions; do
21238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21239 ac_cv_path_vi_cv_path_sendmail="$as_dir/$ac_word$ac_exec_ext"
21240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21241 break 2
21243 done
21244 done
21245 IFS=$as_save_IFS
21247 test -z "$ac_cv_path_vi_cv_path_sendmail" && ac_cv_path_vi_cv_path_sendmail="no"
21249 esac
21251 vi_cv_path_sendmail=$ac_cv_path_vi_cv_path_sendmail
21252 if test -n "$vi_cv_path_sendmail"; then
21253 { echo "$as_me:$LINENO: result: $vi_cv_path_sendmail" >&5
21254 echo "${ECHO_T}$vi_cv_path_sendmail" >&6; }
21255 else
21256 { echo "$as_me:$LINENO: result: no" >&5
21257 echo "${ECHO_T}no" >&6; }
21261 if test "$vi_cv_path_sendmail" = no; then
21262 { echo "$as_me:$LINENO: WARNING: No sendmail utility found;" >&5
21263 echo "$as_me: WARNING: No sendmail utility found;" >&2;}
21264 { echo "$as_me:$LINENO: WARNING: users will not be told of saved files." >&5
21265 echo "$as_me: WARNING: users will not be told of saved files." >&2;}
21269 for ac_prog in perl5 perl
21271 # Extract the first word of "$ac_prog", so it can be a program name with args.
21272 set dummy $ac_prog; ac_word=$2
21273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21275 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278 case $vi_cv_path_perl in
21279 [\\/]* | ?:[\\/]*)
21280 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
21283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21284 for as_dir in $PATH
21286 IFS=$as_save_IFS
21287 test -z "$as_dir" && as_dir=.
21288 for ac_exec_ext in '' $ac_executable_extensions; do
21289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21290 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
21291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21292 break 2
21294 done
21295 done
21296 IFS=$as_save_IFS
21299 esac
21301 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
21302 if test -n "$vi_cv_path_perl"; then
21303 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
21304 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
21305 else
21306 { echo "$as_me:$LINENO: result: no" >&5
21307 echo "${ECHO_T}no" >&6; }
21311 test -n "$vi_cv_path_perl" && break
21312 done
21313 test -n "$vi_cv_path_perl" || vi_cv_path_perl="no"
21317 { echo "$as_me:$LINENO: checking for preserve directory" >&5
21318 echo $ECHO_N "checking for preserve directory... $ECHO_C" >&6; }
21319 if test "${vi_cv_path_preserve+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322 dirlist="/var/preserve /var/tmp /usr/tmp"
21323 vi_cv_path_preserve=no
21324 for i in $dirlist; do
21325 if test -d $i/vi.recover; then
21326 vi_cv_path_preserve=$i/vi.recover
21327 break;
21329 done
21330 if test "$vi_cv_path_preserve" = no; then
21331 for i in $dirlist; do
21332 if test -d $i -a -w $i; then
21333 vi_cv_path_preserve=$i/vi.recover
21334 break;
21336 done
21341 if test "$vi_cv_path_preserve" = no; then
21342 { { echo "$as_me:$LINENO: error: No writeable preserve directory found." >&5
21343 echo "$as_me: error: No writeable preserve directory found." >&2;}
21344 { (exit 1); exit 1; }; }
21346 { echo "$as_me:$LINENO: result: $vi_cv_path_preserve" >&5
21347 echo "${ECHO_T}$vi_cv_path_preserve" >&6; }
21348 # Extract the first word of "fuser", so it can be a program name with args.
21349 set dummy fuser; ac_word=$2
21350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21352 if test "${ac_cv_path_vi_cv_path_fuser+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355 case $vi_cv_path_fuser in
21356 [\\/]* | ?:[\\/]*)
21357 ac_cv_path_vi_cv_path_fuser="$vi_cv_path_fuser" # Let the user override the test with a path.
21360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21361 for as_dir in $PATH
21363 IFS=$as_save_IFS
21364 test -z "$as_dir" && as_dir=.
21365 for ac_exec_ext in '' $ac_executable_extensions; do
21366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21367 ac_cv_path_vi_cv_path_fuser="$as_dir/$ac_word$ac_exec_ext"
21368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21369 break 2
21371 done
21372 done
21373 IFS=$as_save_IFS
21375 test -z "$ac_cv_path_vi_cv_path_fuser" && ac_cv_path_vi_cv_path_fuser="no"
21377 esac
21379 vi_cv_path_fuser=$ac_cv_path_vi_cv_path_fuser
21380 if test -n "$vi_cv_path_fuser"; then
21381 { echo "$as_me:$LINENO: result: $vi_cv_path_fuser" >&5
21382 echo "${ECHO_T}$vi_cv_path_fuser" >&6; }
21383 else
21384 { echo "$as_me:$LINENO: result: no" >&5
21385 echo "${ECHO_T}no" >&6; }
21389 # Extract the first word of "lsof", so it can be a program name with args.
21390 set dummy lsof; ac_word=$2
21391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21393 if test "${ac_cv_path_vi_cv_path_lsof+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396 case $vi_cv_path_lsof in
21397 [\\/]* | ?:[\\/]*)
21398 ac_cv_path_vi_cv_path_lsof="$vi_cv_path_lsof" # Let the user override the test with a path.
21401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21402 for as_dir in $PATH
21404 IFS=$as_save_IFS
21405 test -z "$as_dir" && as_dir=.
21406 for ac_exec_ext in '' $ac_executable_extensions; do
21407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21408 ac_cv_path_vi_cv_path_lsof="$as_dir/$ac_word$ac_exec_ext"
21409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21410 break 2
21412 done
21413 done
21414 IFS=$as_save_IFS
21416 test -z "$ac_cv_path_vi_cv_path_lsof" && ac_cv_path_vi_cv_path_lsof="no"
21418 esac
21420 vi_cv_path_lsof=$ac_cv_path_vi_cv_path_lsof
21421 if test -n "$vi_cv_path_lsof"; then
21422 { echo "$as_me:$LINENO: result: $vi_cv_path_lsof" >&5
21423 echo "${ECHO_T}$vi_cv_path_lsof" >&6; }
21424 else
21425 { echo "$as_me:$LINENO: result: no" >&5
21426 echo "${ECHO_T}no" >&6; }
21431 INUSE=""
21432 if test "$vi_cv_path_lsof" != no; then
21433 INUSE='test `lsof -t $i`'
21435 if test "$vi_cv_path_fuser" != no; then
21436 INUSE='fuser -s $i'
21439 for ac_prog in gawk mawk nawk awk
21441 # Extract the first word of "$ac_prog", so it can be a program name with args.
21442 set dummy $ac_prog; ac_word=$2
21443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21445 if test "${ac_cv_prog_AWK+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448 if test -n "$AWK"; then
21449 ac_cv_prog_AWK="$AWK" # Let the user override the test.
21450 else
21451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 for as_dir in $PATH
21454 IFS=$as_save_IFS
21455 test -z "$as_dir" && as_dir=.
21456 for ac_exec_ext in '' $ac_executable_extensions; do
21457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21458 ac_cv_prog_AWK="$ac_prog"
21459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21460 break 2
21462 done
21463 done
21464 IFS=$as_save_IFS
21468 AWK=$ac_cv_prog_AWK
21469 if test -n "$AWK"; then
21470 { echo "$as_me:$LINENO: result: $AWK" >&5
21471 echo "${ECHO_T}$AWK" >&6; }
21472 else
21473 { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21478 test -n "$AWK" && break
21479 done
21481 # Extract the first word of "ar", so it can be a program name with args.
21482 set dummy ar; ac_word=$2
21483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21485 if test "${ac_cv_path_vi_cv_path_ar+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488 case $vi_cv_path_ar in
21489 [\\/]* | ?:[\\/]*)
21490 ac_cv_path_vi_cv_path_ar="$vi_cv_path_ar" # Let the user override the test with a path.
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21500 ac_cv_path_vi_cv_path_ar="$as_dir/$ac_word$ac_exec_ext"
21501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21504 done
21505 done
21506 IFS=$as_save_IFS
21508 test -z "$ac_cv_path_vi_cv_path_ar" && ac_cv_path_vi_cv_path_ar="missing_ar"
21510 esac
21512 vi_cv_path_ar=$ac_cv_path_vi_cv_path_ar
21513 if test -n "$vi_cv_path_ar"; then
21514 { echo "$as_me:$LINENO: result: $vi_cv_path_ar" >&5
21515 echo "${ECHO_T}$vi_cv_path_ar" >&6; }
21516 else
21517 { echo "$as_me:$LINENO: result: no" >&5
21518 echo "${ECHO_T}no" >&6; }
21522 # Extract the first word of "chmod", so it can be a program name with args.
21523 set dummy chmod; ac_word=$2
21524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21526 if test "${ac_cv_path_vi_cv_path_chmod+set}" = set; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529 case $vi_cv_path_chmod in
21530 [\\/]* | ?:[\\/]*)
21531 ac_cv_path_vi_cv_path_chmod="$vi_cv_path_chmod" # Let the user override the test with a path.
21534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21535 for as_dir in $PATH
21537 IFS=$as_save_IFS
21538 test -z "$as_dir" && as_dir=.
21539 for ac_exec_ext in '' $ac_executable_extensions; do
21540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21541 ac_cv_path_vi_cv_path_chmod="$as_dir/$ac_word$ac_exec_ext"
21542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21543 break 2
21545 done
21546 done
21547 IFS=$as_save_IFS
21549 test -z "$ac_cv_path_vi_cv_path_chmod" && ac_cv_path_vi_cv_path_chmod="missing_chmod"
21551 esac
21553 vi_cv_path_chmod=$ac_cv_path_vi_cv_path_chmod
21554 if test -n "$vi_cv_path_chmod"; then
21555 { echo "$as_me:$LINENO: result: $vi_cv_path_chmod" >&5
21556 echo "${ECHO_T}$vi_cv_path_chmod" >&6; }
21557 else
21558 { echo "$as_me:$LINENO: result: no" >&5
21559 echo "${ECHO_T}no" >&6; }
21563 # Extract the first word of "cp", so it can be a program name with args.
21564 set dummy cp; ac_word=$2
21565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21567 if test "${ac_cv_path_vi_cv_path_cp+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 else
21570 case $vi_cv_path_cp in
21571 [\\/]* | ?:[\\/]*)
21572 ac_cv_path_vi_cv_path_cp="$vi_cv_path_cp" # Let the user override the test with a path.
21575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21576 for as_dir in $PATH
21578 IFS=$as_save_IFS
21579 test -z "$as_dir" && as_dir=.
21580 for ac_exec_ext in '' $ac_executable_extensions; do
21581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21582 ac_cv_path_vi_cv_path_cp="$as_dir/$ac_word$ac_exec_ext"
21583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21584 break 2
21586 done
21587 done
21588 IFS=$as_save_IFS
21590 test -z "$ac_cv_path_vi_cv_path_cp" && ac_cv_path_vi_cv_path_cp="missing_cp"
21592 esac
21594 vi_cv_path_cp=$ac_cv_path_vi_cv_path_cp
21595 if test -n "$vi_cv_path_cp"; then
21596 { echo "$as_me:$LINENO: result: $vi_cv_path_cp" >&5
21597 echo "${ECHO_T}$vi_cv_path_cp" >&6; }
21598 else
21599 { echo "$as_me:$LINENO: result: no" >&5
21600 echo "${ECHO_T}no" >&6; }
21604 # Extract the first word of "ln", so it can be a program name with args.
21605 set dummy ln; ac_word=$2
21606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21608 if test "${ac_cv_path_vi_cv_path_ln+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611 case $vi_cv_path_ln in
21612 [\\/]* | ?:[\\/]*)
21613 ac_cv_path_vi_cv_path_ln="$vi_cv_path_ln" # Let the user override the test with a path.
21616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21617 for as_dir in $PATH
21619 IFS=$as_save_IFS
21620 test -z "$as_dir" && as_dir=.
21621 for ac_exec_ext in '' $ac_executable_extensions; do
21622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21623 ac_cv_path_vi_cv_path_ln="$as_dir/$ac_word$ac_exec_ext"
21624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21625 break 2
21627 done
21628 done
21629 IFS=$as_save_IFS
21631 test -z "$ac_cv_path_vi_cv_path_ln" && ac_cv_path_vi_cv_path_ln="missing_ln"
21633 esac
21635 vi_cv_path_ln=$ac_cv_path_vi_cv_path_ln
21636 if test -n "$vi_cv_path_ln"; then
21637 { echo "$as_me:$LINENO: result: $vi_cv_path_ln" >&5
21638 echo "${ECHO_T}$vi_cv_path_ln" >&6; }
21639 else
21640 { echo "$as_me:$LINENO: result: no" >&5
21641 echo "${ECHO_T}no" >&6; }
21645 # Extract the first word of "mkdir", so it can be a program name with args.
21646 set dummy mkdir; ac_word=$2
21647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21649 if test "${ac_cv_path_vi_cv_path_mkdir+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652 case $vi_cv_path_mkdir in
21653 [\\/]* | ?:[\\/]*)
21654 ac_cv_path_vi_cv_path_mkdir="$vi_cv_path_mkdir" # Let the user override the test with a path.
21657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21658 for as_dir in $PATH
21660 IFS=$as_save_IFS
21661 test -z "$as_dir" && as_dir=.
21662 for ac_exec_ext in '' $ac_executable_extensions; do
21663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21664 ac_cv_path_vi_cv_path_mkdir="$as_dir/$ac_word$ac_exec_ext"
21665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21666 break 2
21668 done
21669 done
21670 IFS=$as_save_IFS
21672 test -z "$ac_cv_path_vi_cv_path_mkdir" && ac_cv_path_vi_cv_path_mkdir="missing_mkdir"
21674 esac
21676 vi_cv_path_mkdir=$ac_cv_path_vi_cv_path_mkdir
21677 if test -n "$vi_cv_path_mkdir"; then
21678 { echo "$as_me:$LINENO: result: $vi_cv_path_mkdir" >&5
21679 echo "${ECHO_T}$vi_cv_path_mkdir" >&6; }
21680 else
21681 { echo "$as_me:$LINENO: result: no" >&5
21682 echo "${ECHO_T}no" >&6; }
21686 # Extract the first word of "rm", so it can be a program name with args.
21687 set dummy rm; ac_word=$2
21688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21690 if test "${ac_cv_path_vi_cv_path_rm+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693 case $vi_cv_path_rm in
21694 [\\/]* | ?:[\\/]*)
21695 ac_cv_path_vi_cv_path_rm="$vi_cv_path_rm" # Let the user override the test with a path.
21698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21699 for as_dir in $PATH
21701 IFS=$as_save_IFS
21702 test -z "$as_dir" && as_dir=.
21703 for ac_exec_ext in '' $ac_executable_extensions; do
21704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21705 ac_cv_path_vi_cv_path_rm="$as_dir/$ac_word$ac_exec_ext"
21706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21707 break 2
21709 done
21710 done
21711 IFS=$as_save_IFS
21713 test -z "$ac_cv_path_vi_cv_path_rm" && ac_cv_path_vi_cv_path_rm="missing_rm"
21715 esac
21717 vi_cv_path_rm=$ac_cv_path_vi_cv_path_rm
21718 if test -n "$vi_cv_path_rm"; then
21719 { echo "$as_me:$LINENO: result: $vi_cv_path_rm" >&5
21720 echo "${ECHO_T}$vi_cv_path_rm" >&6; }
21721 else
21722 { echo "$as_me:$LINENO: result: no" >&5
21723 echo "${ECHO_T}no" >&6; }
21727 # Extract the first word of "ranlib", so it can be a program name with args.
21728 set dummy ranlib; ac_word=$2
21729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21731 if test "${ac_cv_path_vi_cv_path_ranlib+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734 case $vi_cv_path_ranlib in
21735 [\\/]* | ?:[\\/]*)
21736 ac_cv_path_vi_cv_path_ranlib="$vi_cv_path_ranlib" # Let the user override the test with a path.
21739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21740 for as_dir in $PATH
21742 IFS=$as_save_IFS
21743 test -z "$as_dir" && as_dir=.
21744 for ac_exec_ext in '' $ac_executable_extensions; do
21745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21746 ac_cv_path_vi_cv_path_ranlib="$as_dir/$ac_word$ac_exec_ext"
21747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21748 break 2
21750 done
21751 done
21752 IFS=$as_save_IFS
21754 test -z "$ac_cv_path_vi_cv_path_ranlib" && ac_cv_path_vi_cv_path_ranlib="missing_ranlib"
21756 esac
21758 vi_cv_path_ranlib=$ac_cv_path_vi_cv_path_ranlib
21759 if test -n "$vi_cv_path_ranlib"; then
21760 { echo "$as_me:$LINENO: result: $vi_cv_path_ranlib" >&5
21761 echo "${ECHO_T}$vi_cv_path_ranlib" >&6; }
21762 else
21763 { echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6; }
21768 # Extract the first word of "strip", so it can be a program name with args.
21769 set dummy strip; ac_word=$2
21770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21772 if test "${ac_cv_path_vi_cv_path_strip+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775 case $vi_cv_path_strip in
21776 [\\/]* | ?:[\\/]*)
21777 ac_cv_path_vi_cv_path_strip="$vi_cv_path_strip" # Let the user override the test with a path.
21780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21781 for as_dir in $PATH
21783 IFS=$as_save_IFS
21784 test -z "$as_dir" && as_dir=.
21785 for ac_exec_ext in '' $ac_executable_extensions; do
21786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21787 ac_cv_path_vi_cv_path_strip="$as_dir/$ac_word$ac_exec_ext"
21788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21789 break 2
21791 done
21792 done
21793 IFS=$as_save_IFS
21795 test -z "$ac_cv_path_vi_cv_path_strip" && ac_cv_path_vi_cv_path_strip="missing_strip"
21797 esac
21799 vi_cv_path_strip=$ac_cv_path_vi_cv_path_strip
21800 if test -n "$vi_cv_path_strip"; then
21801 { echo "$as_me:$LINENO: result: $vi_cv_path_strip" >&5
21802 echo "${ECHO_T}$vi_cv_path_strip" >&6; }
21803 else
21804 { echo "$as_me:$LINENO: result: no" >&5
21805 echo "${ECHO_T}no" >&6; }
21810 { echo "$as_me:$LINENO: checking for X" >&5
21811 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21814 # Check whether --with-x was given.
21815 if test "${with_x+set}" = set; then
21816 withval=$with_x;
21819 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21820 if test "x$with_x" = xno; then
21821 # The user explicitly disabled X.
21822 have_x=disabled
21823 else
21824 case $x_includes,$x_libraries in #(
21825 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21826 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21827 { (exit 1); exit 1; }; };; #(
21828 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831 # One or both of the vars are not set, and there is no cached value.
21832 ac_x_includes=no ac_x_libraries=no
21833 rm -f -r conftest.dir
21834 if mkdir conftest.dir; then
21835 cd conftest.dir
21836 cat >Imakefile <<'_ACEOF'
21837 incroot:
21838 @echo incroot='${INCROOT}'
21839 usrlibdir:
21840 @echo usrlibdir='${USRLIBDIR}'
21841 libdir:
21842 @echo libdir='${LIBDIR}'
21843 _ACEOF
21844 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21846 for ac_var in incroot usrlibdir libdir; do
21847 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21848 done
21849 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21850 for ac_extension in a so sl; do
21851 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21852 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21853 ac_im_usrlibdir=$ac_im_libdir; break
21855 done
21856 # Screen out bogus values from the imake configuration. They are
21857 # bogus both because they are the default anyway, and because
21858 # using them would break gcc on systems where it needs fixed includes.
21859 case $ac_im_incroot in
21860 /usr/include) ac_x_includes= ;;
21861 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21862 esac
21863 case $ac_im_usrlibdir in
21864 /usr/lib | /lib) ;;
21865 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21866 esac
21868 cd ..
21869 rm -f -r conftest.dir
21872 # Standard set of common directories for X headers.
21873 # Check X11 before X11Rn because it is often a symlink to the current release.
21874 ac_x_header_dirs='
21875 /usr/X11/include
21876 /usr/X11R6/include
21877 /usr/X11R5/include
21878 /usr/X11R4/include
21880 /usr/include/X11
21881 /usr/include/X11R6
21882 /usr/include/X11R5
21883 /usr/include/X11R4
21885 /usr/local/X11/include
21886 /usr/local/X11R6/include
21887 /usr/local/X11R5/include
21888 /usr/local/X11R4/include
21890 /usr/local/include/X11
21891 /usr/local/include/X11R6
21892 /usr/local/include/X11R5
21893 /usr/local/include/X11R4
21895 /usr/X386/include
21896 /usr/x386/include
21897 /usr/XFree86/include/X11
21899 /usr/include
21900 /usr/local/include
21901 /usr/unsupported/include
21902 /usr/athena/include
21903 /usr/local/x11r5/include
21904 /usr/lpp/Xamples/include
21906 /usr/openwin/include
21907 /usr/openwin/share/include'
21909 if test "$ac_x_includes" = no; then
21910 # Guess where to find include files, by looking for Xlib.h.
21911 # First, try using that file with no special directory specified.
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h. */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 #include <X11/Xlib.h>
21919 _ACEOF
21920 if { (ac_try="$ac_cpp conftest.$ac_ext"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } >/dev/null && {
21933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21935 }; then
21936 # We can compile using X headers with no special include directory.
21937 ac_x_includes=
21938 else
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 for ac_dir in $ac_x_header_dirs; do
21943 if test -r "$ac_dir/X11/Xlib.h"; then
21944 ac_x_includes=$ac_dir
21945 break
21947 done
21950 rm -f conftest.err conftest.$ac_ext
21951 fi # $ac_x_includes = no
21953 if test "$ac_x_libraries" = no; then
21954 # Check for the libraries.
21955 # See if we find them without any special options.
21956 # Don't add to $LIBS permanently.
21957 ac_save_LIBS=$LIBS
21958 LIBS="-lX11 $LIBS"
21959 cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h. */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 #include <X11/Xlib.h>
21967 main ()
21969 XrmInitialize ()
21971 return 0;
21973 _ACEOF
21974 rm -f conftest.$ac_objext conftest$ac_exeext
21975 if { (ac_try="$ac_link"
21976 case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21979 esac
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_link") 2>conftest.er1
21982 ac_status=$?
21983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && {
21988 test -z "$ac_c_werror_flag" ||
21989 test ! -s conftest.err
21990 } && test -s conftest$ac_exeext &&
21991 $as_test_x conftest$ac_exeext; then
21992 LIBS=$ac_save_LIBS
21993 # We can link X programs with no special library path.
21994 ac_x_libraries=
21995 else
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 LIBS=$ac_save_LIBS
22000 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22002 # Don't even attempt the hair of trying to link an X program!
22003 for ac_extension in a so sl; do
22004 if test -r "$ac_dir/libX11.$ac_extension"; then
22005 ac_x_libraries=$ac_dir
22006 break 2
22008 done
22009 done
22012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22013 conftest$ac_exeext conftest.$ac_ext
22014 fi # $ac_x_libraries = no
22016 case $ac_x_includes,$ac_x_libraries in #(
22017 no,* | *,no | *\'*)
22018 # Didn't find X, or a directory has "'" in its name.
22019 ac_cv_have_x="have_x=no";; #(
22021 # Record where we found X for the cache.
22022 ac_cv_have_x="have_x=yes\
22023 ac_x_includes='$ac_x_includes'\
22024 ac_x_libraries='$ac_x_libraries'"
22025 esac
22027 ;; #(
22028 *) have_x=yes;;
22029 esac
22030 eval "$ac_cv_have_x"
22031 fi # $with_x != no
22033 if test "$have_x" != yes; then
22034 { echo "$as_me:$LINENO: result: $have_x" >&5
22035 echo "${ECHO_T}$have_x" >&6; }
22036 no_x=yes
22037 else
22038 # If each of the values was on the command line, it overrides each guess.
22039 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22040 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22041 # Update the cache value to reflect the command line values.
22042 ac_cv_have_x="have_x=yes\
22043 ac_x_includes='$x_includes'\
22044 ac_x_libraries='$x_libraries'"
22045 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22046 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22050 if test "$no_x" != yes; then
22051 if test "X$x_libraries" != "X"; then
22052 XLIBS="`echo $x_libraries | sed "$LRscript"` $XLIBS"
22054 XLIBS="$XLIBS -lX11"
22055 if test "X$x_includes" != "X"; then
22056 XINCS="-I$x_includes"
22062 { echo "$as_me:$LINENO: checking if --enable-widechar option specified" >&5
22063 echo $ECHO_N "checking if --enable-widechar option specified... $ECHO_C" >&6; }
22064 # Check whether --enable-widechar was given.
22065 if test "${enable_widechar+set}" = set; then
22066 enableval=$enable_widechar; vi_cv_widechar=$enableval
22067 else
22068 vi_cv_widechar="no"
22071 if test "$vi_cv_widechar" = "yes"; then
22072 cat >>confdefs.h <<\_ACEOF
22073 #define USE_WIDECHAR 1
22074 _ACEOF
22077 { echo "$as_me:$LINENO: result: $vi_cv_widechar" >&5
22078 echo "${ECHO_T}$vi_cv_widechar" >&6; }
22080 if test "${ac_cv_header_langinfo_h+set}" = set; then
22081 { echo "$as_me:$LINENO: checking for langinfo.h" >&5
22082 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
22083 if test "${ac_cv_header_langinfo_h+set}" = set; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 { echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
22087 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
22088 else
22089 # Is the header compilable?
22090 { echo "$as_me:$LINENO: checking langinfo.h usability" >&5
22091 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6; }
22092 cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h. */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22098 $ac_includes_default
22099 #include <langinfo.h>
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22118 ac_header_compiler=yes
22119 else
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_header_compiler=no
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22128 echo "${ECHO_T}$ac_header_compiler" >&6; }
22130 # Is the header present?
22131 { echo "$as_me:$LINENO: checking langinfo.h presence" >&5
22132 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6; }
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h. */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 #include <langinfo.h>
22140 _ACEOF
22141 if { (ac_try="$ac_cpp conftest.$ac_ext"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22148 ac_status=$?
22149 grep -v '^ *+' conftest.er1 >conftest.err
22150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } >/dev/null && {
22154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 }; then
22157 ac_header_preproc=yes
22158 else
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ac_header_preproc=no
22165 rm -f conftest.err conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167 echo "${ECHO_T}$ac_header_preproc" >&6; }
22169 # So? What about this header?
22170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22171 yes:no: )
22172 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
22173 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
22175 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
22176 ac_header_preproc=yes
22178 no:yes:* )
22179 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
22180 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
22182 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
22184 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
22186 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
22188 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
22190 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
22193 esac
22194 { echo "$as_me:$LINENO: checking for langinfo.h" >&5
22195 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
22196 if test "${ac_cv_header_langinfo_h+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199 ac_cv_header_langinfo_h=$ac_header_preproc
22201 { echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
22202 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
22205 if test $ac_cv_header_langinfo_h = yes; then
22207 if test "${ac_cv_header_iconv_h+set}" = set; then
22208 { echo "$as_me:$LINENO: checking for iconv.h" >&5
22209 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22210 if test "${ac_cv_header_iconv_h+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22214 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22215 else
22216 # Is the header compilable?
22217 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
22218 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h. */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225 $ac_includes_default
22226 #include <iconv.h>
22227 _ACEOF
22228 rm -f conftest.$ac_objext
22229 if { (ac_try="$ac_compile"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_compile") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest.$ac_objext; then
22245 ac_header_compiler=yes
22246 else
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_header_compiler=no
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22255 echo "${ECHO_T}$ac_header_compiler" >&6; }
22257 # Is the header present?
22258 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
22259 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
22260 cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h. */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266 #include <iconv.h>
22267 _ACEOF
22268 if { (ac_try="$ac_cpp conftest.$ac_ext"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22275 ac_status=$?
22276 grep -v '^ *+' conftest.er1 >conftest.err
22277 rm -f conftest.er1
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } >/dev/null && {
22281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 }; then
22284 ac_header_preproc=yes
22285 else
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 ac_header_preproc=no
22292 rm -f conftest.err conftest.$ac_ext
22293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22294 echo "${ECHO_T}$ac_header_preproc" >&6; }
22296 # So? What about this header?
22297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22298 yes:no: )
22299 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22300 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
22302 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
22303 ac_header_preproc=yes
22305 no:yes:* )
22306 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
22307 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
22309 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
22311 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
22313 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
22315 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
22317 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
22320 esac
22321 { echo "$as_me:$LINENO: checking for iconv.h" >&5
22322 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22323 if test "${ac_cv_header_iconv_h+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 ac_cv_header_iconv_h=$ac_header_preproc
22328 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22329 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22332 if test $ac_cv_header_iconv_h = yes; then
22334 cat >>confdefs.h <<\_ACEOF
22335 #define USE_ICONV 1
22336 _ACEOF
22339 for ac_func in iswblank
22341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h. */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22355 #define $ac_func innocuous_$ac_func
22357 /* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char $ac_func (); below.
22359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22360 <limits.h> exists even on freestanding compilers. */
22362 #ifdef __STDC__
22363 # include <limits.h>
22364 #else
22365 # include <assert.h>
22366 #endif
22368 #undef $ac_func
22370 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */
22373 #ifdef __cplusplus
22374 extern "C"
22375 #endif
22376 char $ac_func ();
22377 /* The GNU C library defines this for functions which it implements
22378 to always fail with ENOSYS. Some functions are actually named
22379 something starting with __ and the normal name is an alias. */
22380 #if defined __stub_$ac_func || defined __stub___$ac_func
22381 choke me
22382 #endif
22385 main ()
22387 return $ac_func ();
22389 return 0;
22391 _ACEOF
22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (ac_try="$ac_link"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_link") 2>conftest.er1
22400 ac_status=$?
22401 grep -v '^ *+' conftest.er1 >conftest.err
22402 rm -f conftest.er1
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } && {
22406 test -z "$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 } && test -s conftest$ac_exeext &&
22409 $as_test_x conftest$ac_exeext; then
22410 eval "$as_ac_var=yes"
22411 else
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 eval "$as_ac_var=no"
22418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22419 conftest$ac_exeext conftest.$ac_ext
22421 ac_res=`eval echo '${'$as_ac_var'}'`
22422 { echo "$as_me:$LINENO: result: $ac_res" >&5
22423 echo "${ECHO_T}$ac_res" >&6; }
22424 if test `eval echo '${'$as_ac_var'}'` = yes; then
22425 cat >>confdefs.h <<_ACEOF
22426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22427 _ACEOF
22429 else
22430 case " $LIBOBJS " in
22431 *" $ac_func.$ac_objext "* ) ;;
22432 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22434 esac
22437 done
22453 { echo "$as_me:$LINENO: checking if --enable-gtk option specified" >&5
22454 echo $ECHO_N "checking if --enable-gtk option specified... $ECHO_C" >&6; }
22455 # Check whether --enable-gtk was given.
22456 if test "${enable_gtk+set}" = set; then
22457 enableval=$enable_gtk; vi_cv_gtk=$enableval
22458 else
22459 vi_cv_gtk="no"
22462 { echo "$as_me:$LINENO: result: $vi_cv_gtk" >&5
22463 echo "${ECHO_T}$vi_cv_gtk" >&6; }
22464 if test "$vi_cv_gtk" = "yes"; then
22466 # Find pkg-config
22468 # Extract the first word of "pkg-config", so it can be a program name with args.
22469 set dummy pkg-config; ac_word=$2
22470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475 case $PKG_CONFIG in
22476 [\\/]* | ?:[\\/]*)
22477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22481 for as_dir in $PATH
22483 IFS=$as_save_IFS
22484 test -z "$as_dir" && as_dir=.
22485 for ac_exec_ext in '' $ac_executable_extensions; do
22486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22489 break 2
22491 done
22492 done
22493 IFS=$as_save_IFS
22495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22497 esac
22499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22500 if test -n "$PKG_CONFIG"; then
22501 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22502 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22503 else
22504 { echo "$as_me:$LINENO: result: no" >&5
22505 echo "${ECHO_T}no" >&6; }
22509 if test x$PKG_CONFIG = xno ; then
22510 if test "$vi_cv_widechar" = "yes"; then
22511 { { echo "$as_me:$LINENO: error: *** pkg-config not found. See http://pkgconfig.sourceforge.net" >&5
22512 echo "$as_me: error: *** pkg-config not found. See http://pkgconfig.sourceforge.net" >&2;}
22513 { (exit 1); exit 1; }; }
22516 else
22517 if ! $PKG_CONFIG --atleast-pkgconfig-version 0.5 ; then
22518 if test "$vi_cv_widechar" = "yes"; then
22519 { { echo "$as_me:$LINENO: error: *** pkg-config too old; version 0.5 or better required." >&5
22520 echo "$as_me: error: *** pkg-config too old; version 0.5 or better required." >&2;}
22521 { (exit 1); exit 1; }; }
22523 PKG_CONFIG=no
22527 if test x$PKG_CONFIG = xno ; then
22528 PKG_CONFIG=/bin/false
22531 vi_programs="$vi_programs vi-gtk"
22532 vi_ipc=vi-ipc
22533 { echo "$as_me:$LINENO: checking for gtk+" >&5
22534 echo $ECHO_N "checking for gtk+... $ECHO_C" >&6; }
22535 if $PKG_CONFIG gtk+-2.0 ; then
22536 GTKINCS=`$PKG_CONFIG --cflags gtk+-2.0`
22537 GTKLIBS=`$PKG_CONFIG --libs gtk+-2.0`
22539 { echo "$as_me:$LINENO: result: ok" >&5
22540 echo "${ECHO_T}ok" >&6; }
22541 cat >>confdefs.h <<\_ACEOF
22542 #define HAVE_PANGO 1
22543 _ACEOF
22545 else
22546 if test "$vi_cv_widechar" = "yes"; then
22547 { { echo "$as_me:$LINENO: error:
22548 *** gtk+-2.0 is required. The latest version of gtk
22549 *** is always available from ftp://ftp.gtk.org/.
22550 " >&5
22551 echo "$as_me: error:
22552 *** gtk+-2.0 is required. The latest version of gtk
22553 *** is always available from ftp://ftp.gtk.org/.
22554 " >&2;}
22555 { (exit 1); exit 1; }; }
22556 else
22558 # Check whether --with-gtk-prefix was given.
22559 if test "${with_gtk_prefix+set}" = set; then
22560 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
22561 else
22562 gtk_config_prefix=""
22566 # Check whether --with-gtk-exec-prefix was given.
22567 if test "${with_gtk_exec_prefix+set}" = set; then
22568 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
22569 else
22570 gtk_config_exec_prefix=""
22573 # Check whether --enable-gtktest was given.
22574 if test "${enable_gtktest+set}" = set; then
22575 enableval=$enable_gtktest;
22576 else
22577 enable_gtktest=yes
22581 for module in .
22583 case "$module" in
22584 gthread)
22585 gtk_config_args="$gtk_config_args gthread"
22587 esac
22588 done
22590 if test x$gtk_config_exec_prefix != x ; then
22591 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22592 if test x${GTK_CONFIG+set} != xset ; then
22593 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22596 if test x$gtk_config_prefix != x ; then
22597 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22598 if test x${GTK_CONFIG+set} != xset ; then
22599 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22603 # Extract the first word of "gtk-config", so it can be a program name with args.
22604 set dummy gtk-config; ac_word=$2
22605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22607 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 else
22610 case $GTK_CONFIG in
22611 [\\/]* | ?:[\\/]*)
22612 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in $PATH
22618 IFS=$as_save_IFS
22619 test -z "$as_dir" && as_dir=.
22620 for ac_exec_ext in '' $ac_executable_extensions; do
22621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22622 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22624 break 2
22626 done
22627 done
22628 IFS=$as_save_IFS
22630 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22632 esac
22634 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22635 if test -n "$GTK_CONFIG"; then
22636 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22637 echo "${ECHO_T}$GTK_CONFIG" >&6; }
22638 else
22639 { echo "$as_me:$LINENO: result: no" >&5
22640 echo "${ECHO_T}no" >&6; }
22644 min_gtk_version=1.2.0
22645 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22646 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
22647 no_gtk=""
22648 if test "$GTK_CONFIG" = "no" ; then
22649 no_gtk=yes
22650 else
22651 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22652 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22653 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22654 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22655 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22656 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22657 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22658 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22659 if test "x$enable_gtktest" = "xyes" ; then
22660 ac_save_CFLAGS="$CFLAGS"
22661 ac_save_LIBS="$LIBS"
22662 CFLAGS="$CFLAGS $GTK_CFLAGS"
22663 LIBS="$GTK_LIBS $LIBS"
22664 rm -f conf.gtktest
22665 if test "$cross_compiling" = yes; then
22666 echo $ac_n "cross compiling; assumed OK... $ac_c"
22667 else
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 #include <gtk/gtk.h>
22676 #include <stdio.h>
22677 #include <stdlib.h>
22680 main ()
22682 int major, minor, micro;
22683 char *tmp_version;
22685 system ("touch conf.gtktest");
22687 /* HP/UX 9 (%@#!) writes to sscanf strings */
22688 tmp_version = g_strdup("$min_gtk_version");
22689 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22690 printf("%s, bad version string\n", "$min_gtk_version");
22691 exit(1);
22694 if ((gtk_major_version != $gtk_config_major_version) ||
22695 (gtk_minor_version != $gtk_config_minor_version) ||
22696 (gtk_micro_version != $gtk_config_micro_version))
22698 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22699 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22700 gtk_major_version, gtk_minor_version, gtk_micro_version);
22701 printf ("*** was found! If gtk-config was correct, then it is best\n");
22702 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22703 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22704 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22705 printf("*** required on your system.\n");
22706 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22707 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22708 printf("*** before re-running configure\n");
22710 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22711 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22712 (gtk_minor_version != GTK_MINOR_VERSION) ||
22713 (gtk_micro_version != GTK_MICRO_VERSION))
22715 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22716 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22717 printf("*** library (version %d.%d.%d)\n",
22718 gtk_major_version, gtk_minor_version, gtk_micro_version);
22720 #endif /* defined (GTK_MAJOR_VERSION) ... */
22721 else
22723 if ((gtk_major_version > major) ||
22724 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22725 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22727 return 0;
22729 else
22731 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22732 gtk_major_version, gtk_minor_version, gtk_micro_version);
22733 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22734 major, minor, micro);
22735 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22736 printf("***\n");
22737 printf("*** If you have already installed a sufficiently new version, this error\n");
22738 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22739 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22740 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22741 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22742 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22743 printf("*** so that the correct libraries are found at run-time))\n");
22746 return 1;
22749 _ACEOF
22750 rm -f conftest$ac_exeext
22751 if { (ac_try="$ac_link"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_link") 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22761 { (case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_try") 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22771 else
22772 echo "$as_me: program exited with status $ac_status" >&5
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22776 ( exit $ac_status )
22777 no_gtk=yes
22779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22783 CFLAGS="$ac_save_CFLAGS"
22784 LIBS="$ac_save_LIBS"
22787 if test "x$no_gtk" = x ; then
22788 { echo "$as_me:$LINENO: result: yes" >&5
22789 echo "${ECHO_T}yes" >&6; }
22791 else
22792 { echo "$as_me:$LINENO: result: no" >&5
22793 echo "${ECHO_T}no" >&6; }
22794 if test "$GTK_CONFIG" = "no" ; then
22795 echo "*** The gtk-config script installed by GTK could not be found"
22796 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22797 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22798 echo "*** full path to gtk-config."
22799 else
22800 if test -f conf.gtktest ; then
22802 else
22803 echo "*** Could not run GTK test program, checking why..."
22804 CFLAGS="$CFLAGS $GTK_CFLAGS"
22805 LIBS="$LIBS $GTK_LIBS"
22806 cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h. */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22813 #include <gtk/gtk.h>
22814 #include <stdio.h>
22817 main ()
22819 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22821 return 0;
22823 _ACEOF
22824 rm -f conftest.$ac_objext conftest$ac_exeext
22825 if { (ac_try="$ac_link"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_link") 2>conftest.er1
22832 ac_status=$?
22833 grep -v '^ *+' conftest.er1 >conftest.err
22834 rm -f conftest.er1
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest$ac_exeext &&
22841 $as_test_x conftest$ac_exeext; then
22842 echo "*** The test program compiled, but did not run. This usually means"
22843 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22844 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22845 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22846 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22847 echo "*** is required on your system"
22848 echo "***"
22849 echo "*** If you have an old version installed, it is best to remove it, although"
22850 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22851 echo "***"
22852 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22853 echo "*** came with the system with the command"
22854 echo "***"
22855 echo "*** rpm --erase --nodeps gtk gtk-devel"
22856 else
22857 echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 echo "*** The test program failed to compile or link. See the file config.log for the"
22861 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22862 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22863 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867 conftest$ac_exeext conftest.$ac_ext
22868 CFLAGS="$ac_save_CFLAGS"
22869 LIBS="$ac_save_LIBS"
22872 GTK_CFLAGS=""
22873 GTK_LIBS=""
22878 rm -f conf.gtktest
22880 GTKINCS="$GTK_CFLAGS"
22881 GTKLIBS="$GTK_LIBS $LIBS"
22885 SAVELIBS="$LIBS"
22886 LIBS="-lutil $GTKLIBS"
22887 { echo "$as_me:$LINENO: checking for zvt_get_ptys in -lnvizvt" >&5
22888 echo $ECHO_N "checking for zvt_get_ptys in -lnvizvt... $ECHO_C" >&6; }
22889 if test "${ac_cv_lib_nvizvt_zvt_get_ptys+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 ac_check_lib_save_LIBS=$LIBS
22893 LIBS="-lnvizvt $LIBS"
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h. */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22901 /* Override any GCC internal prototype to avoid an error.
22902 Use char because int might match the return type of a GCC
22903 builtin and then its argument prototype would still apply. */
22904 #ifdef __cplusplus
22905 extern "C"
22906 #endif
22907 char zvt_get_ptys ();
22909 main ()
22911 return zvt_get_ptys ();
22913 return 0;
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_link") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest$ac_exeext &&
22933 $as_test_x conftest$ac_exeext; then
22934 ac_cv_lib_nvizvt_zvt_get_ptys=yes
22935 else
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_cv_lib_nvizvt_zvt_get_ptys=no
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22946 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvizvt_zvt_get_ptys" >&5
22947 echo "${ECHO_T}$ac_cv_lib_nvizvt_zvt_get_ptys" >&6; }
22948 if test $ac_cv_lib_nvizvt_zvt_get_ptys = yes; then
22949 vi_cv_zvt="yes"
22950 else
22951 vi_cv_zvt="no"
22954 if test "$vi_cv_zvt" = "yes"; then
22955 GTKLIBS="-lnvizvt $LIBS"
22956 cat >>confdefs.h <<\_ACEOF
22957 #define HAVE_ZVT 1
22958 _ACEOF
22961 LIBS="$SAVELIBS"
22962 # AC_PATH_PROG(vi_cv_gnome_config, gnome-config, no)
22963 # if test "$vi_cv_gnome_config" != "no"; then
22964 # ZVTLIBS=`$vi_cv_gnome_config zvt --libs`
22965 # GTKLIBS="$ZVTLIBS $GTKLIBS"
22966 # fi
22970 { echo "$as_me:$LINENO: checking if --enable-motif option specified" >&5
22971 echo $ECHO_N "checking if --enable-motif option specified... $ECHO_C" >&6; }
22972 # Check whether --enable-motif was given.
22973 if test "${enable_motif+set}" = set; then
22974 enableval=$enable_motif; vi_cv_motif=$enableval
22975 else
22976 vi_cv_motif="no"
22979 { echo "$as_me:$LINENO: result: $vi_cv_motif" >&5
22980 echo "${ECHO_T}$vi_cv_motif" >&6; }
22981 if test "$vi_cv_motif" = "yes"; then
22982 vi_programs="$vi_programs vi-motif"
22983 vi_ipc=vi-ipc
22986 case "$host_os" in
22987 bsdi*) CC=cc;;
22988 esac
22991 MOTIFLIBS="-lXm -lXt"
22992 { echo "$as_me:$LINENO: checking for main in -lSM" >&5
22993 echo $ECHO_N "checking for main in -lSM... $ECHO_C" >&6; }
22994 if test "${ac_cv_lib_SM_main+set}" = set; then
22995 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 else
22997 ac_check_lib_save_LIBS=$LIBS
22998 LIBS="-lSM "$XLIBS" $LIBS"
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h. */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23008 main ()
23010 return main ();
23012 return 0;
23014 _ACEOF
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_link") 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && {
23029 test -z "$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 } && test -s conftest$ac_exeext &&
23032 $as_test_x conftest$ac_exeext; then
23033 ac_cv_lib_SM_main=yes
23034 else
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 ac_cv_lib_SM_main=no
23041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23042 conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23045 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_main" >&5
23046 echo "${ECHO_T}$ac_cv_lib_SM_main" >&6; }
23047 if test $ac_cv_lib_SM_main = yes; then
23048 vi_cv_smlib="yes"
23049 else
23050 vi_cv_smlib="no"
23053 if test "$vi_cv_smlib" = "yes"; then
23054 MOTIFLIBS="$MOTIFLIBS -lSM"
23056 { echo "$as_me:$LINENO: checking for main in -lICE" >&5
23057 echo $ECHO_N "checking for main in -lICE... $ECHO_C" >&6; }
23058 if test "${ac_cv_lib_ICE_main+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061 ac_check_lib_save_LIBS=$LIBS
23062 LIBS="-lICE "$XLIBS" $LIBS"
23063 cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h. */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23072 main ()
23074 return main ();
23076 return 0;
23078 _ACEOF
23079 rm -f conftest.$ac_objext conftest$ac_exeext
23080 if { (ac_try="$ac_link"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_link") 2>conftest.er1
23087 ac_status=$?
23088 grep -v '^ *+' conftest.er1 >conftest.err
23089 rm -f conftest.er1
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest$ac_exeext &&
23096 $as_test_x conftest$ac_exeext; then
23097 ac_cv_lib_ICE_main=yes
23098 else
23099 echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23102 ac_cv_lib_ICE_main=no
23105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23106 conftest$ac_exeext conftest.$ac_ext
23107 LIBS=$ac_check_lib_save_LIBS
23109 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_main" >&5
23110 echo "${ECHO_T}$ac_cv_lib_ICE_main" >&6; }
23111 if test $ac_cv_lib_ICE_main = yes; then
23112 vi_cv_icelib="yes"
23113 else
23114 vi_cv_icelib="no"
23117 if test "$vi_cv_icelib" = "yes"; then
23118 MOTIFLIBS="$MOTIFLIBS -lICE"
23120 { echo "$as_me:$LINENO: checking for main in -lXext" >&5
23121 echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6; }
23122 if test "${ac_cv_lib_Xext_main+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125 ac_check_lib_save_LIBS=$LIBS
23126 LIBS="-lXext "$XLIBS" $LIBS"
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h. */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23136 main ()
23138 return main ();
23140 return 0;
23142 _ACEOF
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_link") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest$ac_exeext &&
23160 $as_test_x conftest$ac_exeext; then
23161 ac_cv_lib_Xext_main=yes
23162 else
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 ac_cv_lib_Xext_main=no
23169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23170 conftest$ac_exeext conftest.$ac_ext
23171 LIBS=$ac_check_lib_save_LIBS
23173 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
23174 echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6; }
23175 if test $ac_cv_lib_Xext_main = yes; then
23176 vi_cv_xextlib="yes"
23177 else
23178 vi_cv_xextlib="no"
23181 if test "$vi_cv_xextlib" = "yes"; then
23182 MOTIFLIBS="$MOTIFLIBS -lXext"
23184 { echo "$as_me:$LINENO: checking for main in -lXpm" >&5
23185 echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6; }
23186 if test "${ac_cv_lib_Xpm_main+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189 ac_check_lib_save_LIBS=$LIBS
23190 LIBS="-lXpm "$XLIBS" $LIBS"
23191 cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h. */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23200 main ()
23202 return main ();
23204 return 0;
23206 _ACEOF
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_link") 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest$ac_exeext &&
23224 $as_test_x conftest$ac_exeext; then
23225 ac_cv_lib_Xpm_main=yes
23226 else
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ac_cv_lib_Xpm_main=no
23233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23234 conftest$ac_exeext conftest.$ac_ext
23235 LIBS=$ac_check_lib_save_LIBS
23237 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5
23238 echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6; }
23239 if test $ac_cv_lib_Xpm_main = yes; then
23240 vi_cv_xpmlib="yes"
23241 else
23242 vi_cv_xpmlib="no"
23245 if test "$vi_cv_xpmlib" = "yes"; then
23246 MOTIFLIBS="$MOTIFLIBS -lXpm"
23248 MOTIFLIBS="$MOTIFLIBS $XLIBS -lm $LIBS"
23252 { echo "$as_me:$LINENO: checking if --enable-threads option specified" >&5
23253 echo $ECHO_N "checking if --enable-threads option specified... $ECHO_C" >&6; }
23254 # Check whether --enable-threads was given.
23255 if test "${enable_threads+set}" = set; then
23256 enableval=$enable_threads; vi_cv_threads=$enableval
23257 else
23258 vi_cv_threads="no"
23261 { echo "$as_me:$LINENO: result: $vi_cv_threads" >&5
23262 echo "${ECHO_T}$vi_cv_threads" >&6; }
23263 if test "$vi_cv_threads" = "yes"; then
23264 LIBS="$LIBS -lpthread"
23265 if test "${vi_cv_have_pthreads+set}" = set; then
23266 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 else
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <pthread.h>
23276 main ()
23278 pthread_self()
23280 return 0;
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_link") 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest$ac_exeext &&
23300 $as_test_x conftest$ac_exeext; then
23301 vi_cv_have_pthreads=yes
23302 else
23303 echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23306 vi_cv_have_pthreads=no
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310 conftest$ac_exeext conftest.$ac_ext
23313 if test "$vi_cv_have_pthreads" = "no"; then
23314 { { echo "$as_me:$LINENO: error: No threading library found" >&5
23315 echo "$as_me: error: No threading library found" >&2;}
23316 { (exit 1); exit 1; }; }
23318 IPCOBJS="pthread.o $IPCOBJS"
23319 cat >>confdefs.h <<\_ACEOF
23320 #define HAVE_PTHREAD 1
23321 _ACEOF
23323 else
23324 IPCOBJS="nothread.o $IPCOBJS"
23331 { echo "$as_me:$LINENO: checking if --enable-perlinterp option specified" >&5
23332 echo $ECHO_N "checking if --enable-perlinterp option specified... $ECHO_C" >&6; }
23333 # Check whether --enable-perlinterp was given.
23334 if test "${enable_perlinterp+set}" = set; then
23335 enableval=$enable_perlinterp; vi_cv_perlinterp=$enableval
23336 else
23337 vi_cv_perlinterp="no"
23340 { echo "$as_me:$LINENO: result: $vi_cv_perlinterp" >&5
23341 echo "${ECHO_T}$vi_cv_perlinterp" >&6; }
23342 if test "$vi_cv_perlinterp" = "yes"; then
23343 if test "$vi_cv_path_perl" = no; then
23344 { { echo "$as_me:$LINENO: error: No perl5 utility found." >&5
23345 echo "$as_me: error: No perl5 utility found." >&2;}
23346 { (exit 1); exit 1; }; }
23348 $vi_cv_path_perl -e 'require 5.004' || {
23349 { { echo "$as_me:$LINENO: error: perl5 must be version 5.004 or later." >&5
23350 echo "$as_me: error: perl5 must be version 5.004 or later." >&2;}
23351 { (exit 1); exit 1; }; }
23353 if test "$vi_cv_threads" = "yes"; then
23354 useithreads=`$vi_cv_path_perl -MConfig -e 'print $Config{useithreads}'`
23355 if test "X$useithreads" != "Xdefine"; then
23356 { { echo "$as_me:$LINENO: error: vi threading only compatible with perl's ithreads." >&5
23357 echo "$as_me: error: vi threading only compatible with perl's ithreads." >&2;}
23358 { (exit 1); exit 1; }; }
23362 eval `$vi_cv_path_perl -V:shrpenv`
23363 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlib}'`
23364 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
23365 -e 'ccflags;perl_inc'`
23366 if test "X$perlcppflags" != "X"; then
23367 CPPFLAGS="$perlcppflags $CPPFLAGS"
23369 perllibs=`cd $srcdir;$vi_cv_path_perl -MExtUtils::Embed \
23370 -e 'ldopts'`
23371 perlldflags=`cd $srcdir;$vi_cv_path_perl -MExtUtils::Embed \
23372 -e 'ccdlflags'`
23373 LIBOBJS="perl.o perlxsi.o perlsfio.o $LIBOBJS"
23374 cat >>confdefs.h <<\_ACEOF
23375 #define HAVE_PERL_INTERP 1
23376 _ACEOF
23378 { echo "$as_me:$LINENO: checking whether we need to use perl's setenv" >&5
23379 echo $ECHO_N "checking whether we need to use perl's setenv... $ECHO_C" >&6; }
23380 if test "${vi_cv_perl_setenv+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23384 if test "$cross_compiling" = yes; then
23385 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23386 See \`config.log' for more details." >&5
23387 echo "$as_me: error: cannot run test program while cross compiling
23388 See \`config.log' for more details." >&2;}
23389 { (exit 1); exit 1; }; }
23390 else
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h. */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23398 #include <EXTERN.h>
23399 #include <perl.h>
23400 #include <XSUB.h>
23401 int main(){
23402 #if defined(USE_ENVIRON_ARRAY) && !defined(PERL_USE_SAFE_PUTENV)
23403 exit(0);
23404 #else
23405 exit(1);
23406 #endif
23409 _ACEOF
23410 rm -f conftest$ac_exeext
23411 if { (ac_try="$ac_link"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_link") 2>&5
23418 ac_status=$?
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23421 { (case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23424 esac
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426 (eval "$ac_try") 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 vi_cv_perl_setenv=yes
23431 else
23432 echo "$as_me: program exited with status $ac_status" >&5
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ( exit $ac_status )
23437 vi_cv_perl_setenv=no
23439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23444 { echo "$as_me:$LINENO: result: $vi_cv_perl_setenv" >&5
23445 echo "${ECHO_T}$vi_cv_perl_setenv" >&6; }
23446 if test "$vi_cv_perl_setenv" = yes; then
23447 cat >>confdefs.h <<\_ACEOF
23448 #define USE_PERL_SETENV 1
23449 _ACEOF
23454 { echo "$as_me:$LINENO: checking if --enable-tclinterp option specified" >&5
23455 echo $ECHO_N "checking if --enable-tclinterp option specified... $ECHO_C" >&6; }
23456 # Check whether --enable-tclinterp was given.
23457 if test "${enable_tclinterp+set}" = set; then
23458 enableval=$enable_tclinterp; vi_cv_tclinterp=$enableval
23459 else
23460 vi_cv_tclinterp="no"
23463 { echo "$as_me:$LINENO: result: $vi_cv_tclinterp" >&5
23464 echo "${ECHO_T}$vi_cv_tclinterp" >&6; }
23465 if test "$vi_cv_tclinterp" = "yes"; then
23466 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
23467 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
23468 if test "${vi_cv_tclconfig+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 else
23472 vi_cv_tclconfig=`$srcdir/findconfig`
23475 { echo "$as_me:$LINENO: result: $vi_cv_tclconfig" >&5
23476 echo "${ECHO_T}$vi_cv_tclconfig" >&6; }
23477 if test "x$vi_cv_tclconfig" = x; then
23478 { { echo "$as_me:$LINENO: error: No Tcl library found;" >&5
23479 echo "$as_me: error: No Tcl library found;" >&2;}
23480 { (exit 1); exit 1; }; }
23482 . $vi_cv_tclconfig
23483 LIBOBJS="tcl.o $LIBOBJS"
23484 LIBS="$TCL_LIB_SPEC $TCL_LIBS $LIBS"
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_TCL_INTERP 1
23487 _ACEOF
23496 SAVELIBS="$LIBS"
23497 SAVELDFLAGS="$LDFLAGS"
23498 SAVECPPFLAGS="$CPPFLAGS"
23500 # Check whether --with-curses was given.
23501 if test "${with_curses+set}" = set; then
23502 withval=$with_curses;
23505 if test "x$with_curses" != "x"; then
23506 CURSLDFLAGS="`echo $with_curses/lib | sed "$LRscript"` $CURSLDFLAGS"
23507 CURSCPPFLAGS="-I$with_curses/include $CURSCPPFLAGS"
23509 LDFLAGS="$CURSLDFLAGS $LDFLAGS"
23510 CPPFLAGS="$CURSCPPFLAGS $CPPFLAGS"
23512 if test "$vi_cv_widechar" = "yes"; then
23513 for vi_cv_curses in ncurses ncursesw curses; do
23514 as_ac_Lib=`echo "ac_cv_lib_$vi_cv_curses''_waddnwstr" | $as_tr_sh`
23515 { echo "$as_me:$LINENO: checking for waddnwstr in -l$vi_cv_curses" >&5
23516 echo $ECHO_N "checking for waddnwstr in -l$vi_cv_curses... $ECHO_C" >&6; }
23517 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520 ac_check_lib_save_LIBS=$LIBS
23521 LIBS="-l$vi_cv_curses $LIBS"
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23529 /* Override any GCC internal prototype to avoid an error.
23530 Use char because int might match the return type of a GCC
23531 builtin and then its argument prototype would still apply. */
23532 #ifdef __cplusplus
23533 extern "C"
23534 #endif
23535 char waddnwstr ();
23537 main ()
23539 return waddnwstr ();
23541 return 0;
23543 _ACEOF
23544 rm -f conftest.$ac_objext conftest$ac_exeext
23545 if { (ac_try="$ac_link"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23549 esac
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_link") 2>conftest.er1
23552 ac_status=$?
23553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && {
23558 test -z "$ac_c_werror_flag" ||
23559 test ! -s conftest.err
23560 } && test -s conftest$ac_exeext &&
23561 $as_test_x conftest$ac_exeext; then
23562 eval "$as_ac_Lib=yes"
23563 else
23564 echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 eval "$as_ac_Lib=no"
23570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23571 conftest$ac_exeext conftest.$ac_ext
23572 LIBS=$ac_check_lib_save_LIBS
23574 ac_res=`eval echo '${'$as_ac_Lib'}'`
23575 { echo "$as_me:$LINENO: result: $ac_res" >&5
23576 echo "${ECHO_T}$ac_res" >&6; }
23577 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23578 break
23581 vi_cv_curses=unknown
23582 done
23583 else
23584 for vi_cv_curses in ncurses ncursesw curses; do
23585 as_ac_Lib=`echo "ac_cv_lib_$vi_cv_curses''_initscr" | $as_tr_sh`
23586 { echo "$as_me:$LINENO: checking for initscr in -l$vi_cv_curses" >&5
23587 echo $ECHO_N "checking for initscr in -l$vi_cv_curses... $ECHO_C" >&6; }
23588 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590 else
23591 ac_check_lib_save_LIBS=$LIBS
23592 LIBS="-l$vi_cv_curses $LIBS"
23593 cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h. */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23600 /* Override any GCC internal prototype to avoid an error.
23601 Use char because int might match the return type of a GCC
23602 builtin and then its argument prototype would still apply. */
23603 #ifdef __cplusplus
23604 extern "C"
23605 #endif
23606 char initscr ();
23608 main ()
23610 return initscr ();
23612 return 0;
23614 _ACEOF
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (ac_try="$ac_link"
23617 case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23620 esac
23621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23622 (eval "$ac_link") 2>conftest.er1
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest$ac_exeext &&
23632 $as_test_x conftest$ac_exeext; then
23633 eval "$as_ac_Lib=yes"
23634 else
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 eval "$as_ac_Lib=no"
23641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23642 conftest$ac_exeext conftest.$ac_ext
23643 LIBS=$ac_check_lib_save_LIBS
23645 ac_res=`eval echo '${'$as_ac_Lib'}'`
23646 { echo "$as_me:$LINENO: result: $ac_res" >&5
23647 echo "${ECHO_T}$ac_res" >&6; }
23648 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23649 break
23652 vi_cv_curses=unknown
23653 done
23656 if test "$vi_cv_curses" != "unknown"; then
23657 CURSHEADER=curses.h
23658 if test "$vi_cv_curses" = "ncurses"; then
23660 for ac_header in ncurses.h
23662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 ac_res=`eval echo '${'$as_ac_Header'}'`
23670 { echo "$as_me:$LINENO: result: $ac_res" >&5
23671 echo "${ECHO_T}$ac_res" >&6; }
23672 else
23673 # Is the header compilable?
23674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23676 cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h. */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 #include <$ac_header>
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23703 else
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_header_compiler=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23712 echo "${ECHO_T}$ac_header_compiler" >&6; }
23714 # Is the header present?
23715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23717 cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h. */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
23724 _ACEOF
23725 if { (ac_try="$ac_cpp conftest.$ac_ext"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729 esac
23730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23732 ac_status=$?
23733 grep -v '^ *+' conftest.er1 >conftest.err
23734 rm -f conftest.er1
23735 cat conftest.err >&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); } >/dev/null && {
23738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23739 test ! -s conftest.err
23740 }; then
23741 ac_header_preproc=yes
23742 else
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 ac_header_preproc=no
23749 rm -f conftest.err conftest.$ac_ext
23750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23751 echo "${ECHO_T}$ac_header_preproc" >&6; }
23753 # So? What about this header?
23754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23755 yes:no: )
23756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23760 ac_header_preproc=yes
23762 no:yes:* )
23763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23777 esac
23778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783 eval "$as_ac_Header=\$ac_header_preproc"
23785 ac_res=`eval echo '${'$as_ac_Header'}'`
23786 { echo "$as_me:$LINENO: result: $ac_res" >&5
23787 echo "${ECHO_T}$ac_res" >&6; }
23790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23793 _ACEOF
23794 CURSHEADER=ncurses.h
23797 done
23800 if test "$vi_cv_curses" = "ncursesw"; then
23802 for ac_header in ncursesw/ncurses.h
23804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 ac_res=`eval echo '${'$as_ac_Header'}'`
23812 { echo "$as_me:$LINENO: result: $ac_res" >&5
23813 echo "${ECHO_T}$ac_res" >&6; }
23814 else
23815 # Is the header compilable?
23816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23818 cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h. */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h. */
23824 $ac_includes_default
23825 #include <$ac_header>
23826 _ACEOF
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831 *) ac_try_echo=$ac_try;;
23832 esac
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834 (eval "$ac_compile") 2>conftest.er1
23835 ac_status=$?
23836 grep -v '^ *+' conftest.er1 >conftest.err
23837 rm -f conftest.er1
23838 cat conftest.err >&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); } && {
23841 test -z "$ac_c_werror_flag" ||
23842 test ! -s conftest.err
23843 } && test -s conftest.$ac_objext; then
23844 ac_header_compiler=yes
23845 else
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 ac_header_compiler=no
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23854 echo "${ECHO_T}$ac_header_compiler" >&6; }
23856 # Is the header present?
23857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23859 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h. */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23865 #include <$ac_header>
23866 _ACEOF
23867 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
23874 ac_status=$?
23875 grep -v '^ *+' conftest.er1 >conftest.err
23876 rm -f conftest.er1
23877 cat conftest.err >&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } >/dev/null && {
23880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23881 test ! -s conftest.err
23882 }; then
23883 ac_header_preproc=yes
23884 else
23885 echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23888 ac_header_preproc=no
23891 rm -f conftest.err conftest.$ac_ext
23892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23893 echo "${ECHO_T}$ac_header_preproc" >&6; }
23895 # So? What about this header?
23896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23897 yes:no: )
23898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23902 ac_header_preproc=yes
23904 no:yes:* )
23905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23919 esac
23920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925 eval "$as_ac_Header=\$ac_header_preproc"
23927 ac_res=`eval echo '${'$as_ac_Header'}'`
23928 { echo "$as_me:$LINENO: result: $ac_res" >&5
23929 echo "${ECHO_T}$ac_res" >&6; }
23932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23933 cat >>confdefs.h <<_ACEOF
23934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23935 _ACEOF
23936 CURSHEADER=ncursesw/ncurses.h
23939 done
23942 vi_programs="vi $vi_programs"
23943 CURSLIBS="-l$vi_cv_curses"
23944 else
23945 { echo "$as_me:$LINENO: WARNING: *** No suitable curses library found." >&5
23946 echo "$as_me: WARNING: *** No suitable curses library found." >&2;}
23947 if test "$vi_programs"X = X; then
23948 { { echo "$as_me:$LINENO: error: No executable to build." >&5
23949 echo "$as_me: error: No executable to build." >&2;}
23950 { (exit 1); exit 1; }; }
23954 as_ac_Lib=`echo "ac_cv_lib_$vi_cv_curses''_tgetent" | $as_tr_sh`
23955 { echo "$as_me:$LINENO: checking for tgetent in -l$vi_cv_curses" >&5
23956 echo $ECHO_N "checking for tgetent in -l$vi_cv_curses... $ECHO_C" >&6; }
23957 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23958 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 else
23960 ac_check_lib_save_LIBS=$LIBS
23961 LIBS="-l$vi_cv_curses $LIBS"
23962 cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h. */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23969 /* Override any GCC internal prototype to avoid an error.
23970 Use char because int might match the return type of a GCC
23971 builtin and then its argument prototype would still apply. */
23972 #ifdef __cplusplus
23973 extern "C"
23974 #endif
23975 char tgetent ();
23977 main ()
23979 return tgetent ();
23981 return 0;
23983 _ACEOF
23984 rm -f conftest.$ac_objext conftest$ac_exeext
23985 if { (ac_try="$ac_link"
23986 case "(($ac_try" in
23987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988 *) ac_try_echo=$ac_try;;
23989 esac
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991 (eval "$ac_link") 2>conftest.er1
23992 ac_status=$?
23993 grep -v '^ *+' conftest.er1 >conftest.err
23994 rm -f conftest.er1
23995 cat conftest.err >&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } && {
23998 test -z "$ac_c_werror_flag" ||
23999 test ! -s conftest.err
24000 } && test -s conftest$ac_exeext &&
24001 $as_test_x conftest$ac_exeext; then
24002 eval "$as_ac_Lib=yes"
24003 else
24004 echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24007 eval "$as_ac_Lib=no"
24010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24011 conftest$ac_exeext conftest.$ac_ext
24012 LIBS=$ac_check_lib_save_LIBS
24014 ac_res=`eval echo '${'$as_ac_Lib'}'`
24015 { echo "$as_me:$LINENO: result: $ac_res" >&5
24016 echo "${ECHO_T}$ac_res" >&6; }
24017 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24018 vi_cv_curses_tgetent=yes
24019 else
24020 vi_cv_curses_tgetent=no
24023 if test "$vi_cv_curses_tgetent" = no; then
24024 { echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
24025 echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6; }
24026 if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24028 else
24029 ac_check_lib_save_LIBS=$LIBS
24030 LIBS="-ltermlib $LIBS"
24031 cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h. */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24038 /* Override any GCC internal prototype to avoid an error.
24039 Use char because int might match the return type of a GCC
24040 builtin and then its argument prototype would still apply. */
24041 #ifdef __cplusplus
24042 extern "C"
24043 #endif
24044 char tgetent ();
24046 main ()
24048 return tgetent ();
24050 return 0;
24052 _ACEOF
24053 rm -f conftest.$ac_objext conftest$ac_exeext
24054 if { (ac_try="$ac_link"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_link") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest$ac_exeext &&
24070 $as_test_x conftest$ac_exeext; then
24071 ac_cv_lib_termlib_tgetent=yes
24072 else
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_cv_lib_termlib_tgetent=no
24079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24080 conftest$ac_exeext conftest.$ac_ext
24081 LIBS=$ac_check_lib_save_LIBS
24083 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
24084 echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6; }
24085 if test $ac_cv_lib_termlib_tgetent = yes; then
24086 vi_cv_termlib=-ltermlib
24087 else
24088 vi_cv_termlib=no
24091 if test "$vi_cv_termlib" = no; then
24092 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24093 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24094 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24097 ac_check_lib_save_LIBS=$LIBS
24098 LIBS="-ltermcap $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
24107 Use char because int might match the return type of a GCC
24108 builtin and then its argument prototype would still apply. */
24109 #ifdef __cplusplus
24110 extern "C"
24111 #endif
24112 char tgetent ();
24114 main ()
24116 return tgetent ();
24118 return 0;
24120 _ACEOF
24121 rm -f conftest.$ac_objext conftest$ac_exeext
24122 if { (ac_try="$ac_link"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24126 esac
24127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24128 (eval "$ac_link") 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && {
24135 test -z "$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 } && test -s conftest$ac_exeext &&
24138 $as_test_x conftest$ac_exeext; then
24139 ac_cv_lib_termcap_tgetent=yes
24140 else
24141 echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 ac_cv_lib_termcap_tgetent=no
24147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24148 conftest$ac_exeext conftest.$ac_ext
24149 LIBS=$ac_check_lib_save_LIBS
24151 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24152 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24153 if test $ac_cv_lib_termcap_tgetent = yes; then
24154 vi_cv_termlib=-ltermcap
24155 else
24156 vi_cv_termlib=no
24161 if test "$vi_cv_termlib" != no; then
24162 CURSLIBS="$CURSLIBS $vi_cv_termlib"
24165 LIBS="$SAVELIBS"
24166 LDFLAGS="$SAVELDFLAGS"
24167 CPPFLAGS="$SAVECPPFLAGS"
24169 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
24170 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
24171 if test "${vi_cv_include_sys_mman+set}" = set; then
24172 echo $ECHO_N "(cached) $ECHO_C" >&6
24173 else
24174 cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h. */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 #include <sys/mman.h>
24181 _ACEOF
24182 if { (ac_try="$ac_cpp conftest.$ac_ext"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } >/dev/null && {
24195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24197 }; then
24198 vi_cv_include_sys_mman=yes
24199 else
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 vi_cv_include_sys_mman=no
24206 rm -f conftest.err conftest.$ac_ext
24209 if test "$vi_cv_include_sys_mman" = yes; then
24210 cat >>confdefs.h <<\_ACEOF
24211 #define HAVE_SYS_MMAN_H 1
24212 _ACEOF
24215 { echo "$as_me:$LINENO: result: $vi_cv_include_sys_mman" >&5
24216 echo "${ECHO_T}$vi_cv_include_sys_mman" >&6; }
24218 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
24219 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
24220 if test "${vi_cv_include_sys_select+set}" = set; then
24221 echo $ECHO_N "(cached) $ECHO_C" >&6
24222 else
24223 cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h. */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h. */
24229 #include <sys/select.h>
24230 _ACEOF
24231 if { (ac_try="$ac_cpp conftest.$ac_ext"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24235 esac
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24238 ac_status=$?
24239 grep -v '^ *+' conftest.er1 >conftest.err
24240 rm -f conftest.er1
24241 cat conftest.err >&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } >/dev/null && {
24244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24245 test ! -s conftest.err
24246 }; then
24247 vi_cv_include_sys_select=yes
24248 else
24249 echo "$as_me: failed program was:" >&5
24250 sed 's/^/| /' conftest.$ac_ext >&5
24252 vi_cv_include_sys_select=no
24255 rm -f conftest.err conftest.$ac_ext
24258 if test "$vi_cv_include_sys_select" = yes; then
24259 cat >>confdefs.h <<\_ACEOF
24260 #define HAVE_SYS_SELECT_H 1
24261 _ACEOF
24264 { echo "$as_me:$LINENO: result: $vi_cv_include_sys_select" >&5
24265 echo "${ECHO_T}$vi_cv_include_sys_select" >&6; }
24267 { echo "$as_me:$LINENO: checking for ssize_t" >&5
24268 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24269 if test "${ac_cv_type_ssize_t+set}" = set; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 else
24272 cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h. */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 typedef ssize_t ac__type_new_;
24281 main ()
24283 if ((ac__type_new_ *) 0)
24284 return 0;
24285 if (sizeof (ac__type_new_))
24286 return 0;
24288 return 0;
24290 _ACEOF
24291 rm -f conftest.$ac_objext
24292 if { (ac_try="$ac_compile"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24296 esac
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest.$ac_objext; then
24308 ac_cv_type_ssize_t=yes
24309 else
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24313 ac_cv_type_ssize_t=no
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24319 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
24320 if test $ac_cv_type_ssize_t = yes; then
24322 else
24324 cat >>confdefs.h <<_ACEOF
24325 #define ssize_t int
24326 _ACEOF
24330 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24331 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24332 if test "${ac_cv_c_bigendian+set}" = set; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24334 else
24335 # See if sys/param.h defines the BYTE_ORDER macro.
24336 cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h. */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342 #include <sys/types.h>
24343 #include <sys/param.h>
24346 main ()
24348 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24349 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24350 bogus endian macros
24351 #endif
24354 return 0;
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364 (eval "$ac_compile") 2>conftest.er1
24365 ac_status=$?
24366 grep -v '^ *+' conftest.er1 >conftest.err
24367 rm -f conftest.er1
24368 cat conftest.err >&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } && {
24371 test -z "$ac_c_werror_flag" ||
24372 test ! -s conftest.err
24373 } && test -s conftest.$ac_objext; then
24374 # It does; now see whether it defined to BIG_ENDIAN or not.
24375 cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h. */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <sys/types.h>
24382 #include <sys/param.h>
24385 main ()
24387 #if BYTE_ORDER != BIG_ENDIAN
24388 not big endian
24389 #endif
24392 return 0;
24394 _ACEOF
24395 rm -f conftest.$ac_objext
24396 if { (ac_try="$ac_compile"
24397 case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_compile") 2>conftest.er1
24403 ac_status=$?
24404 grep -v '^ *+' conftest.er1 >conftest.err
24405 rm -f conftest.er1
24406 cat conftest.err >&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } && {
24409 test -z "$ac_c_werror_flag" ||
24410 test ! -s conftest.err
24411 } && test -s conftest.$ac_objext; then
24412 ac_cv_c_bigendian=yes
24413 else
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ac_cv_c_bigendian=no
24420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24421 else
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 # It does not; compile a test program.
24426 if test "$cross_compiling" = yes; then
24427 # try to guess the endianness by grepping values into an object file
24428 ac_cv_c_bigendian=unknown
24429 cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h. */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24436 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24437 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24438 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24439 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24440 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24442 main ()
24444 _ascii (); _ebcdic ();
24446 return 0;
24448 _ACEOF
24449 rm -f conftest.$ac_objext
24450 if { (ac_try="$ac_compile"
24451 case "(($ac_try" in
24452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453 *) ac_try_echo=$ac_try;;
24454 esac
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456 (eval "$ac_compile") 2>conftest.er1
24457 ac_status=$?
24458 grep -v '^ *+' conftest.er1 >conftest.err
24459 rm -f conftest.er1
24460 cat conftest.err >&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } && {
24463 test -z "$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24465 } && test -s conftest.$ac_objext; then
24466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24467 ac_cv_c_bigendian=yes
24469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24470 if test "$ac_cv_c_bigendian" = unknown; then
24471 ac_cv_c_bigendian=no
24472 else
24473 # finding both strings is unlikely to happen, but who knows?
24474 ac_cv_c_bigendian=unknown
24477 else
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24485 else
24486 cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h. */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24494 main ()
24497 /* Are we little or big endian? From Harbison&Steele. */
24498 union
24500 long int l;
24501 char c[sizeof (long int)];
24502 } u;
24503 u.l = 1;
24504 return u.c[sizeof (long int) - 1] == 1;
24507 return 0;
24509 _ACEOF
24510 rm -f conftest$ac_exeext
24511 if { (ac_try="$ac_link"
24512 case "(($ac_try" in
24513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514 *) ac_try_echo=$ac_try;;
24515 esac
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517 (eval "$ac_link") 2>&5
24518 ac_status=$?
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24521 { (case "(($ac_try" in
24522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523 *) ac_try_echo=$ac_try;;
24524 esac
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526 (eval "$ac_try") 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 ac_cv_c_bigendian=no
24531 else
24532 echo "$as_me: program exited with status $ac_status" >&5
24533 echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24536 ( exit $ac_status )
24537 ac_cv_c_bigendian=yes
24539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24547 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24548 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24549 case $ac_cv_c_bigendian in
24550 yes)
24552 cat >>confdefs.h <<\_ACEOF
24553 #define WORDS_BIGENDIAN 1
24554 _ACEOF
24559 { { echo "$as_me:$LINENO: error: unknown endianness
24560 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24561 echo "$as_me: error: unknown endianness
24562 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24563 { (exit 1); exit 1; }; } ;;
24564 esac
24566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24568 if test "${ac_cv_c_const+set}" = set; then
24569 echo $ECHO_N "(cached) $ECHO_C" >&6
24570 else
24571 cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h. */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24579 main ()
24581 /* FIXME: Include the comments suggested by Paul. */
24582 #ifndef __cplusplus
24583 /* Ultrix mips cc rejects this. */
24584 typedef int charset[2];
24585 const charset cs;
24586 /* SunOS 4.1.1 cc rejects this. */
24587 char const *const *pcpcc;
24588 char **ppc;
24589 /* NEC SVR4.0.2 mips cc rejects this. */
24590 struct point {int x, y;};
24591 static struct point const zero = {0,0};
24592 /* AIX XL C 1.02.0.0 rejects this.
24593 It does not let you subtract one const X* pointer from another in
24594 an arm of an if-expression whose if-part is not a constant
24595 expression */
24596 const char *g = "string";
24597 pcpcc = &g + (g ? g-g : 0);
24598 /* HPUX 7.0 cc rejects these. */
24599 ++pcpcc;
24600 ppc = (char**) pcpcc;
24601 pcpcc = (char const *const *) ppc;
24602 { /* SCO 3.2v4 cc rejects this. */
24603 char *t;
24604 char const *s = 0 ? (char *) 0 : (char const *) 0;
24606 *t++ = 0;
24607 if (s) return 0;
24609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24610 int x[] = {25, 17};
24611 const int *foo = &x[0];
24612 ++foo;
24614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24615 typedef const int *iptr;
24616 iptr p = 0;
24617 ++p;
24619 { /* AIX XL C 1.02.0.0 rejects this saying
24620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24621 struct s { int j; const int *ap[3]; };
24622 struct s *b; b->j = 5;
24624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24625 const int foo = 10;
24626 if (!foo) return 0;
24628 return !cs[0] && !zero.x;
24629 #endif
24632 return 0;
24634 _ACEOF
24635 rm -f conftest.$ac_objext
24636 if { (ac_try="$ac_compile"
24637 case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24640 esac
24641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642 (eval "$ac_compile") 2>conftest.er1
24643 ac_status=$?
24644 grep -v '^ *+' conftest.er1 >conftest.err
24645 rm -f conftest.er1
24646 cat conftest.err >&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } && {
24649 test -z "$ac_c_werror_flag" ||
24650 test ! -s conftest.err
24651 } && test -s conftest.$ac_objext; then
24652 ac_cv_c_const=yes
24653 else
24654 echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24657 ac_cv_c_const=no
24660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24662 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24663 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24664 if test $ac_cv_c_const = no; then
24666 cat >>confdefs.h <<\_ACEOF
24667 #define const
24668 _ACEOF
24672 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
24673 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
24674 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
24685 main ()
24687 static struct stat ac_aggr;
24688 if (ac_aggr.st_blksize)
24689 return 0;
24691 return 0;
24693 _ACEOF
24694 rm -f conftest.$ac_objext
24695 if { (ac_try="$ac_compile"
24696 case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_compile") 2>conftest.er1
24702 ac_status=$?
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest.$ac_objext; then
24711 ac_cv_member_struct_stat_st_blksize=yes
24712 else
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h. */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 $ac_includes_default
24724 main ()
24726 static struct stat ac_aggr;
24727 if (sizeof ac_aggr.st_blksize)
24728 return 0;
24730 return 0;
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24741 ac_status=$?
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.$ac_objext; then
24750 ac_cv_member_struct_stat_st_blksize=yes
24751 else
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24755 ac_cv_member_struct_stat_st_blksize=no
24758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
24764 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
24765 if test $ac_cv_member_struct_stat_st_blksize = yes; then
24767 cat >>confdefs.h <<_ACEOF
24768 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24769 _ACEOF
24772 cat >>confdefs.h <<\_ACEOF
24773 #define HAVE_ST_BLKSIZE 1
24774 _ACEOF
24779 { echo "$as_me:$LINENO: checking for mode_t" >&5
24780 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24781 if test "${ac_cv_type_mode_t+set}" = set; then
24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24783 else
24784 cat >conftest.$ac_ext <<_ACEOF
24785 /* confdefs.h. */
24786 _ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24790 $ac_includes_default
24791 typedef mode_t ac__type_new_;
24793 main ()
24795 if ((ac__type_new_ *) 0)
24796 return 0;
24797 if (sizeof (ac__type_new_))
24798 return 0;
24800 return 0;
24802 _ACEOF
24803 rm -f conftest.$ac_objext
24804 if { (ac_try="$ac_compile"
24805 case "(($ac_try" in
24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807 *) ac_try_echo=$ac_try;;
24808 esac
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_compile") 2>conftest.er1
24811 ac_status=$?
24812 grep -v '^ *+' conftest.er1 >conftest.err
24813 rm -f conftest.er1
24814 cat conftest.err >&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); } && {
24817 test -z "$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24819 } && test -s conftest.$ac_objext; then
24820 ac_cv_type_mode_t=yes
24821 else
24822 echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 ac_cv_type_mode_t=no
24828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24830 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24831 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24832 if test $ac_cv_type_mode_t = yes; then
24834 else
24836 cat >>confdefs.h <<_ACEOF
24837 #define mode_t int
24838 _ACEOF
24842 { echo "$as_me:$LINENO: checking for off_t" >&5
24843 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24844 if test "${ac_cv_type_off_t+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847 cat >conftest.$ac_ext <<_ACEOF
24848 /* confdefs.h. */
24849 _ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24853 $ac_includes_default
24854 typedef off_t ac__type_new_;
24856 main ()
24858 if ((ac__type_new_ *) 0)
24859 return 0;
24860 if (sizeof (ac__type_new_))
24861 return 0;
24863 return 0;
24865 _ACEOF
24866 rm -f conftest.$ac_objext
24867 if { (ac_try="$ac_compile"
24868 case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24871 esac
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24874 ac_status=$?
24875 grep -v '^ *+' conftest.er1 >conftest.err
24876 rm -f conftest.er1
24877 cat conftest.err >&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24883 ac_cv_type_off_t=yes
24884 else
24885 echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24888 ac_cv_type_off_t=no
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24894 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24895 if test $ac_cv_type_off_t = yes; then
24897 else
24899 cat >>confdefs.h <<_ACEOF
24900 #define off_t long int
24901 _ACEOF
24905 { echo "$as_me:$LINENO: checking for pid_t" >&5
24906 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24907 if test "${ac_cv_type_pid_t+set}" = set; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 else
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h. */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916 $ac_includes_default
24917 typedef pid_t ac__type_new_;
24919 main ()
24921 if ((ac__type_new_ *) 0)
24922 return 0;
24923 if (sizeof (ac__type_new_))
24924 return 0;
24926 return 0;
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_compile") 2>conftest.er1
24937 ac_status=$?
24938 grep -v '^ *+' conftest.er1 >conftest.err
24939 rm -f conftest.er1
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } && {
24943 test -z "$ac_c_werror_flag" ||
24944 test ! -s conftest.err
24945 } && test -s conftest.$ac_objext; then
24946 ac_cv_type_pid_t=yes
24947 else
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_cv_type_pid_t=no
24954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24956 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24958 if test $ac_cv_type_pid_t = yes; then
24960 else
24962 cat >>confdefs.h <<_ACEOF
24963 #define pid_t int
24964 _ACEOF
24968 { echo "$as_me:$LINENO: checking for size_t" >&5
24969 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24970 if test "${ac_cv_type_size_t+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973 cat >conftest.$ac_ext <<_ACEOF
24974 /* confdefs.h. */
24975 _ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 $ac_includes_default
24980 typedef size_t ac__type_new_;
24982 main ()
24984 if ((ac__type_new_ *) 0)
24985 return 0;
24986 if (sizeof (ac__type_new_))
24987 return 0;
24989 return 0;
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest.$ac_objext; then
25009 ac_cv_type_size_t=yes
25010 else
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_cv_type_size_t=no
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25020 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25021 if test $ac_cv_type_size_t = yes; then
25023 else
25025 cat >>confdefs.h <<_ACEOF
25026 #define size_t unsigned int
25027 _ACEOF
25031 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25033 if test "${ac_cv_struct_tm+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035 else
25036 cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h. */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042 #include <sys/types.h>
25043 #include <time.h>
25046 main ()
25048 struct tm tm;
25049 int *p = &tm.tm_sec;
25050 return !p;
25052 return 0;
25054 _ACEOF
25055 rm -f conftest.$ac_objext
25056 if { (ac_try="$ac_compile"
25057 case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25060 esac
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_compile") 2>conftest.er1
25063 ac_status=$?
25064 grep -v '^ *+' conftest.er1 >conftest.err
25065 rm -f conftest.er1
25066 cat conftest.err >&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } && {
25069 test -z "$ac_c_werror_flag" ||
25070 test ! -s conftest.err
25071 } && test -s conftest.$ac_objext; then
25072 ac_cv_struct_tm=time.h
25073 else
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25077 ac_cv_struct_tm=sys/time.h
25080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25082 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25083 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25084 if test $ac_cv_struct_tm = sys/time.h; then
25086 cat >>confdefs.h <<\_ACEOF
25087 #define TM_IN_SYS_TIME 1
25088 _ACEOF
25097 for ac_func in bsearch gethostname memchr memset
25099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25103 echo $ECHO_N "(cached) $ECHO_C" >&6
25104 else
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h. */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25113 #define $ac_func innocuous_$ac_func
25115 /* System header to define __stub macros and hopefully few prototypes,
25116 which can conflict with char $ac_func (); below.
25117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25118 <limits.h> exists even on freestanding compilers. */
25120 #ifdef __STDC__
25121 # include <limits.h>
25122 #else
25123 # include <assert.h>
25124 #endif
25126 #undef $ac_func
25128 /* Override any GCC internal prototype to avoid an error.
25129 Use char because int might match the return type of a GCC
25130 builtin and then its argument prototype would still apply. */
25131 #ifdef __cplusplus
25132 extern "C"
25133 #endif
25134 char $ac_func ();
25135 /* The GNU C library defines this for functions which it implements
25136 to always fail with ENOSYS. Some functions are actually named
25137 something starting with __ and the normal name is an alias. */
25138 #if defined __stub_$ac_func || defined __stub___$ac_func
25139 choke me
25140 #endif
25143 main ()
25145 return $ac_func ();
25147 return 0;
25149 _ACEOF
25150 rm -f conftest.$ac_objext conftest$ac_exeext
25151 if { (ac_try="$ac_link"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157 (eval "$ac_link") 2>conftest.er1
25158 ac_status=$?
25159 grep -v '^ *+' conftest.er1 >conftest.err
25160 rm -f conftest.er1
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest$ac_exeext &&
25167 $as_test_x conftest$ac_exeext; then
25168 eval "$as_ac_var=yes"
25169 else
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 eval "$as_ac_var=no"
25176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25177 conftest$ac_exeext conftest.$ac_ext
25179 ac_res=`eval echo '${'$as_ac_var'}'`
25180 { echo "$as_me:$LINENO: result: $ac_res" >&5
25181 echo "${ECHO_T}$ac_res" >&6; }
25182 if test `eval echo '${'$as_ac_var'}'` = yes; then
25183 cat >>confdefs.h <<_ACEOF
25184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25185 _ACEOF
25187 else
25188 case " $LIBOBJS " in
25189 *" $ac_func.$ac_objext "* ) ;;
25190 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25192 esac
25195 done
25202 for ac_func in mkstemp mmap strdup strpbrk
25204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25208 echo $ECHO_N "(cached) $ECHO_C" >&6
25209 else
25210 cat >conftest.$ac_ext <<_ACEOF
25211 /* confdefs.h. */
25212 _ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25218 #define $ac_func innocuous_$ac_func
25220 /* System header to define __stub macros and hopefully few prototypes,
25221 which can conflict with char $ac_func (); below.
25222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25223 <limits.h> exists even on freestanding compilers. */
25225 #ifdef __STDC__
25226 # include <limits.h>
25227 #else
25228 # include <assert.h>
25229 #endif
25231 #undef $ac_func
25233 /* Override any GCC internal prototype to avoid an error.
25234 Use char because int might match the return type of a GCC
25235 builtin and then its argument prototype would still apply. */
25236 #ifdef __cplusplus
25237 extern "C"
25238 #endif
25239 char $ac_func ();
25240 /* The GNU C library defines this for functions which it implements
25241 to always fail with ENOSYS. Some functions are actually named
25242 something starting with __ and the normal name is an alias. */
25243 #if defined __stub_$ac_func || defined __stub___$ac_func
25244 choke me
25245 #endif
25248 main ()
25250 return $ac_func ();
25252 return 0;
25254 _ACEOF
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (ac_try="$ac_link"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25260 esac
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262 (eval "$ac_link") 2>conftest.er1
25263 ac_status=$?
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } && {
25269 test -z "$ac_c_werror_flag" ||
25270 test ! -s conftest.err
25271 } && test -s conftest$ac_exeext &&
25272 $as_test_x conftest$ac_exeext; then
25273 eval "$as_ac_var=yes"
25274 else
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 eval "$as_ac_var=no"
25281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25282 conftest$ac_exeext conftest.$ac_ext
25284 ac_res=`eval echo '${'$as_ac_var'}'`
25285 { echo "$as_me:$LINENO: result: $ac_res" >&5
25286 echo "${ECHO_T}$ac_res" >&6; }
25287 if test `eval echo '${'$as_ac_var'}'` = yes; then
25288 cat >>confdefs.h <<_ACEOF
25289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25290 _ACEOF
25292 else
25293 case " $LIBOBJS " in
25294 *" $ac_func.$ac_objext "* ) ;;
25295 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25297 esac
25300 done
25305 for ac_func in snprintf vsnprintf
25307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25312 else
25313 cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h. */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25321 #define $ac_func innocuous_$ac_func
25323 /* System header to define __stub macros and hopefully few prototypes,
25324 which can conflict with char $ac_func (); below.
25325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25326 <limits.h> exists even on freestanding compilers. */
25328 #ifdef __STDC__
25329 # include <limits.h>
25330 #else
25331 # include <assert.h>
25332 #endif
25334 #undef $ac_func
25336 /* Override any GCC internal prototype to avoid an error.
25337 Use char because int might match the return type of a GCC
25338 builtin and then its argument prototype would still apply. */
25339 #ifdef __cplusplus
25340 extern "C"
25341 #endif
25342 char $ac_func ();
25343 /* The GNU C library defines this for functions which it implements
25344 to always fail with ENOSYS. Some functions are actually named
25345 something starting with __ and the normal name is an alias. */
25346 #if defined __stub_$ac_func || defined __stub___$ac_func
25347 choke me
25348 #endif
25351 main ()
25353 return $ac_func ();
25355 return 0;
25357 _ACEOF
25358 rm -f conftest.$ac_objext conftest$ac_exeext
25359 if { (ac_try="$ac_link"
25360 case "(($ac_try" in
25361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25363 esac
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365 (eval "$ac_link") 2>conftest.er1
25366 ac_status=$?
25367 grep -v '^ *+' conftest.er1 >conftest.err
25368 rm -f conftest.er1
25369 cat conftest.err >&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); } && {
25372 test -z "$ac_c_werror_flag" ||
25373 test ! -s conftest.err
25374 } && test -s conftest$ac_exeext &&
25375 $as_test_x conftest$ac_exeext; then
25376 eval "$as_ac_var=yes"
25377 else
25378 echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25381 eval "$as_ac_var=no"
25384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25385 conftest$ac_exeext conftest.$ac_ext
25387 ac_res=`eval echo '${'$as_ac_var'}'`
25388 { echo "$as_me:$LINENO: result: $ac_res" >&5
25389 echo "${ECHO_T}$ac_res" >&6; }
25390 if test `eval echo '${'$as_ac_var'}'` = yes; then
25391 cat >>confdefs.h <<_ACEOF
25392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25393 _ACEOF
25395 else
25396 case " $LIBOBJS " in
25397 *" $ac_func.$ac_objext "* ) ;;
25398 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25400 esac
25403 done
25408 for ac_func in select
25410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416 cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h. */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25424 #define $ac_func innocuous_$ac_func
25426 /* System header to define __stub macros and hopefully few prototypes,
25427 which can conflict with char $ac_func (); below.
25428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25429 <limits.h> exists even on freestanding compilers. */
25431 #ifdef __STDC__
25432 # include <limits.h>
25433 #else
25434 # include <assert.h>
25435 #endif
25437 #undef $ac_func
25439 /* Override any GCC internal prototype to avoid an error.
25440 Use char because int might match the return type of a GCC
25441 builtin and then its argument prototype would still apply. */
25442 #ifdef __cplusplus
25443 extern "C"
25444 #endif
25445 char $ac_func ();
25446 /* The GNU C library defines this for functions which it implements
25447 to always fail with ENOSYS. Some functions are actually named
25448 something starting with __ and the normal name is an alias. */
25449 #if defined __stub_$ac_func || defined __stub___$ac_func
25450 choke me
25451 #endif
25454 main ()
25456 return $ac_func ();
25458 return 0;
25460 _ACEOF
25461 rm -f conftest.$ac_objext conftest$ac_exeext
25462 if { (ac_try="$ac_link"
25463 case "(($ac_try" in
25464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465 *) ac_try_echo=$ac_try;;
25466 esac
25467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25468 (eval "$ac_link") 2>conftest.er1
25469 ac_status=$?
25470 grep -v '^ *+' conftest.er1 >conftest.err
25471 rm -f conftest.er1
25472 cat conftest.err >&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } && {
25475 test -z "$ac_c_werror_flag" ||
25476 test ! -s conftest.err
25477 } && test -s conftest$ac_exeext &&
25478 $as_test_x conftest$ac_exeext; then
25479 eval "$as_ac_var=yes"
25480 else
25481 echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25484 eval "$as_ac_var=no"
25487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25488 conftest$ac_exeext conftest.$ac_ext
25490 ac_res=`eval echo '${'$as_ac_var'}'`
25491 { echo "$as_me:$LINENO: result: $ac_res" >&5
25492 echo "${ECHO_T}$ac_res" >&6; }
25493 if test `eval echo '${'$as_ac_var'}'` = yes; then
25494 cat >>confdefs.h <<_ACEOF
25495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25496 _ACEOF
25499 done
25502 for ac_func in setenv
25504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510 cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h. */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25518 #define $ac_func innocuous_$ac_func
25520 /* System header to define __stub macros and hopefully few prototypes,
25521 which can conflict with char $ac_func (); below.
25522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25523 <limits.h> exists even on freestanding compilers. */
25525 #ifdef __STDC__
25526 # include <limits.h>
25527 #else
25528 # include <assert.h>
25529 #endif
25531 #undef $ac_func
25533 /* Override any GCC internal prototype to avoid an error.
25534 Use char because int might match the return type of a GCC
25535 builtin and then its argument prototype would still apply. */
25536 #ifdef __cplusplus
25537 extern "C"
25538 #endif
25539 char $ac_func ();
25540 /* The GNU C library defines this for functions which it implements
25541 to always fail with ENOSYS. Some functions are actually named
25542 something starting with __ and the normal name is an alias. */
25543 #if defined __stub_$ac_func || defined __stub___$ac_func
25544 choke me
25545 #endif
25548 main ()
25550 return $ac_func ();
25552 return 0;
25554 _ACEOF
25555 rm -f conftest.$ac_objext conftest$ac_exeext
25556 if { (ac_try="$ac_link"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25560 esac
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_link") 2>conftest.er1
25563 ac_status=$?
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest$ac_exeext &&
25572 $as_test_x conftest$ac_exeext; then
25573 eval "$as_ac_var=yes"
25574 else
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 eval "$as_ac_var=no"
25581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25582 conftest$ac_exeext conftest.$ac_ext
25584 ac_res=`eval echo '${'$as_ac_var'}'`
25585 { echo "$as_me:$LINENO: result: $ac_res" >&5
25586 echo "${ECHO_T}$ac_res" >&6; }
25587 if test `eval echo '${'$as_ac_var'}'` = yes; then
25588 cat >>confdefs.h <<_ACEOF
25589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25590 _ACEOF
25591 need_env=no
25592 else
25593 need_env=yes
25595 done
25598 for ac_func in strsep
25600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606 cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h. */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h. */
25612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25614 #define $ac_func innocuous_$ac_func
25616 /* System header to define __stub macros and hopefully few prototypes,
25617 which can conflict with char $ac_func (); below.
25618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25619 <limits.h> exists even on freestanding compilers. */
25621 #ifdef __STDC__
25622 # include <limits.h>
25623 #else
25624 # include <assert.h>
25625 #endif
25627 #undef $ac_func
25629 /* Override any GCC internal prototype to avoid an error.
25630 Use char because int might match the return type of a GCC
25631 builtin and then its argument prototype would still apply. */
25632 #ifdef __cplusplus
25633 extern "C"
25634 #endif
25635 char $ac_func ();
25636 /* The GNU C library defines this for functions which it implements
25637 to always fail with ENOSYS. Some functions are actually named
25638 something starting with __ and the normal name is an alias. */
25639 #if defined __stub_$ac_func || defined __stub___$ac_func
25640 choke me
25641 #endif
25644 main ()
25646 return $ac_func ();
25648 return 0;
25650 _ACEOF
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (ac_try="$ac_link"
25653 case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25656 esac
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_link") 2>conftest.er1
25659 ac_status=$?
25660 grep -v '^ *+' conftest.er1 >conftest.err
25661 rm -f conftest.er1
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } && {
25665 test -z "$ac_c_werror_flag" ||
25666 test ! -s conftest.err
25667 } && test -s conftest$ac_exeext &&
25668 $as_test_x conftest$ac_exeext; then
25669 eval "$as_ac_var=yes"
25670 else
25671 echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25674 eval "$as_ac_var=no"
25677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25678 conftest$ac_exeext conftest.$ac_ext
25680 ac_res=`eval echo '${'$as_ac_var'}'`
25681 { echo "$as_me:$LINENO: result: $ac_res" >&5
25682 echo "${ECHO_T}$ac_res" >&6; }
25683 if test `eval echo '${'$as_ac_var'}'` = yes; then
25684 cat >>confdefs.h <<_ACEOF
25685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25686 _ACEOF
25687 need_strsep=no
25688 else
25689 need_strsep=yes
25691 done
25694 for ac_func in unsetenv
25696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702 cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h. */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25710 #define $ac_func innocuous_$ac_func
25712 /* System header to define __stub macros and hopefully few prototypes,
25713 which can conflict with char $ac_func (); below.
25714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25715 <limits.h> exists even on freestanding compilers. */
25717 #ifdef __STDC__
25718 # include <limits.h>
25719 #else
25720 # include <assert.h>
25721 #endif
25723 #undef $ac_func
25725 /* Override any GCC internal prototype to avoid an error.
25726 Use char because int might match the return type of a GCC
25727 builtin and then its argument prototype would still apply. */
25728 #ifdef __cplusplus
25729 extern "C"
25730 #endif
25731 char $ac_func ();
25732 /* The GNU C library defines this for functions which it implements
25733 to always fail with ENOSYS. Some functions are actually named
25734 something starting with __ and the normal name is an alias. */
25735 #if defined __stub_$ac_func || defined __stub___$ac_func
25736 choke me
25737 #endif
25740 main ()
25742 return $ac_func ();
25744 return 0;
25746 _ACEOF
25747 rm -f conftest.$ac_objext conftest$ac_exeext
25748 if { (ac_try="$ac_link"
25749 case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25752 esac
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_link") 2>conftest.er1
25755 ac_status=$?
25756 grep -v '^ *+' conftest.er1 >conftest.err
25757 rm -f conftest.er1
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } && {
25761 test -z "$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 } && test -s conftest$ac_exeext &&
25764 $as_test_x conftest$ac_exeext; then
25765 eval "$as_ac_var=yes"
25766 else
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 eval "$as_ac_var=no"
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774 conftest$ac_exeext conftest.$ac_ext
25776 ac_res=`eval echo '${'$as_ac_var'}'`
25777 { echo "$as_me:$LINENO: result: $ac_res" >&5
25778 echo "${ECHO_T}$ac_res" >&6; }
25779 if test `eval echo '${'$as_ac_var'}'` = yes; then
25780 cat >>confdefs.h <<_ACEOF
25781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25782 _ACEOF
25784 else
25785 need_env=yes
25787 done
25792 for ac_header in stdlib.h unistd.h
25794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 ac_res=`eval echo '${'$as_ac_Header'}'`
25802 { echo "$as_me:$LINENO: result: $ac_res" >&5
25803 echo "${ECHO_T}$ac_res" >&6; }
25804 else
25805 # Is the header compilable?
25806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25808 cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h. */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h. */
25814 $ac_includes_default
25815 #include <$ac_header>
25816 _ACEOF
25817 rm -f conftest.$ac_objext
25818 if { (ac_try="$ac_compile"
25819 case "(($ac_try" in
25820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821 *) ac_try_echo=$ac_try;;
25822 esac
25823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824 (eval "$ac_compile") 2>conftest.er1
25825 ac_status=$?
25826 grep -v '^ *+' conftest.er1 >conftest.err
25827 rm -f conftest.er1
25828 cat conftest.err >&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } && {
25831 test -z "$ac_c_werror_flag" ||
25832 test ! -s conftest.err
25833 } && test -s conftest.$ac_objext; then
25834 ac_header_compiler=yes
25835 else
25836 echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.$ac_ext >&5
25839 ac_header_compiler=no
25842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25844 echo "${ECHO_T}$ac_header_compiler" >&6; }
25846 # Is the header present?
25847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
25856 _ACEOF
25857 if { (ac_try="$ac_cpp conftest.$ac_ext"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25864 ac_status=$?
25865 grep -v '^ *+' conftest.er1 >conftest.err
25866 rm -f conftest.er1
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } >/dev/null && {
25870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 }; then
25873 ac_header_preproc=yes
25874 else
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_header_preproc=no
25881 rm -f conftest.err conftest.$ac_ext
25882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25883 echo "${ECHO_T}$ac_header_preproc" >&6; }
25885 # So? What about this header?
25886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25887 yes:no: )
25888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25892 ac_header_preproc=yes
25894 no:yes:* )
25895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25909 esac
25910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 else
25915 eval "$as_ac_Header=\$ac_header_preproc"
25917 ac_res=`eval echo '${'$as_ac_Header'}'`
25918 { echo "$as_me:$LINENO: result: $ac_res" >&5
25919 echo "${ECHO_T}$ac_res" >&6; }
25922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25923 cat >>confdefs.h <<_ACEOF
25924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25925 _ACEOF
25929 done
25932 for ac_func in getpagesize
25934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25938 echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940 cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h. */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h. */
25946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25948 #define $ac_func innocuous_$ac_func
25950 /* System header to define __stub macros and hopefully few prototypes,
25951 which can conflict with char $ac_func (); below.
25952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25953 <limits.h> exists even on freestanding compilers. */
25955 #ifdef __STDC__
25956 # include <limits.h>
25957 #else
25958 # include <assert.h>
25959 #endif
25961 #undef $ac_func
25963 /* Override any GCC internal prototype to avoid an error.
25964 Use char because int might match the return type of a GCC
25965 builtin and then its argument prototype would still apply. */
25966 #ifdef __cplusplus
25967 extern "C"
25968 #endif
25969 char $ac_func ();
25970 /* The GNU C library defines this for functions which it implements
25971 to always fail with ENOSYS. Some functions are actually named
25972 something starting with __ and the normal name is an alias. */
25973 #if defined __stub_$ac_func || defined __stub___$ac_func
25974 choke me
25975 #endif
25978 main ()
25980 return $ac_func ();
25982 return 0;
25984 _ACEOF
25985 rm -f conftest.$ac_objext conftest$ac_exeext
25986 if { (ac_try="$ac_link"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_link") 2>conftest.er1
25993 ac_status=$?
25994 grep -v '^ *+' conftest.er1 >conftest.err
25995 rm -f conftest.er1
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } && {
25999 test -z "$ac_c_werror_flag" ||
26000 test ! -s conftest.err
26001 } && test -s conftest$ac_exeext &&
26002 $as_test_x conftest$ac_exeext; then
26003 eval "$as_ac_var=yes"
26004 else
26005 echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.$ac_ext >&5
26008 eval "$as_ac_var=no"
26011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26012 conftest$ac_exeext conftest.$ac_ext
26014 ac_res=`eval echo '${'$as_ac_var'}'`
26015 { echo "$as_me:$LINENO: result: $ac_res" >&5
26016 echo "${ECHO_T}$ac_res" >&6; }
26017 if test `eval echo '${'$as_ac_var'}'` = yes; then
26018 cat >>confdefs.h <<_ACEOF
26019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26020 _ACEOF
26023 done
26025 { echo "$as_me:$LINENO: checking for working mmap" >&5
26026 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
26027 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26029 else
26030 if test "$cross_compiling" = yes; then
26031 ac_cv_func_mmap_fixed_mapped=no
26032 else
26033 cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h. */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 $ac_includes_default
26040 /* malloc might have been renamed as rpl_malloc. */
26041 #undef malloc
26043 /* Thanks to Mike Haertel and Jim Avera for this test.
26044 Here is a matrix of mmap possibilities:
26045 mmap private not fixed
26046 mmap private fixed at somewhere currently unmapped
26047 mmap private fixed at somewhere already mapped
26048 mmap shared not fixed
26049 mmap shared fixed at somewhere currently unmapped
26050 mmap shared fixed at somewhere already mapped
26051 For private mappings, we should verify that changes cannot be read()
26052 back from the file, nor mmap's back from the file at a different
26053 address. (There have been systems where private was not correctly
26054 implemented like the infamous i386 svr4.0, and systems where the
26055 VM page cache was not coherent with the file system buffer cache
26056 like early versions of FreeBSD and possibly contemporary NetBSD.)
26057 For shared mappings, we should conversely verify that changes get
26058 propagated back to all the places they're supposed to be.
26060 Grep wants private fixed already mapped.
26061 The main things grep needs to know about mmap are:
26062 * does it exist and is it safe to write into the mmap'd area
26063 * how to use it (BSD variants) */
26065 #include <fcntl.h>
26066 #include <sys/mman.h>
26068 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
26069 char *malloc ();
26070 #endif
26072 /* This mess was copied from the GNU getpagesize.h. */
26073 #ifndef HAVE_GETPAGESIZE
26074 /* Assume that all systems that can run configure have sys/param.h. */
26075 # ifndef HAVE_SYS_PARAM_H
26076 # define HAVE_SYS_PARAM_H 1
26077 # endif
26079 # ifdef _SC_PAGESIZE
26080 # define getpagesize() sysconf(_SC_PAGESIZE)
26081 # else /* no _SC_PAGESIZE */
26082 # ifdef HAVE_SYS_PARAM_H
26083 # include <sys/param.h>
26084 # ifdef EXEC_PAGESIZE
26085 # define getpagesize() EXEC_PAGESIZE
26086 # else /* no EXEC_PAGESIZE */
26087 # ifdef NBPG
26088 # define getpagesize() NBPG * CLSIZE
26089 # ifndef CLSIZE
26090 # define CLSIZE 1
26091 # endif /* no CLSIZE */
26092 # else /* no NBPG */
26093 # ifdef NBPC
26094 # define getpagesize() NBPC
26095 # else /* no NBPC */
26096 # ifdef PAGESIZE
26097 # define getpagesize() PAGESIZE
26098 # endif /* PAGESIZE */
26099 # endif /* no NBPC */
26100 # endif /* no NBPG */
26101 # endif /* no EXEC_PAGESIZE */
26102 # else /* no HAVE_SYS_PARAM_H */
26103 # define getpagesize() 8192 /* punt totally */
26104 # endif /* no HAVE_SYS_PARAM_H */
26105 # endif /* no _SC_PAGESIZE */
26107 #endif /* no HAVE_GETPAGESIZE */
26110 main ()
26112 char *data, *data2, *data3;
26113 int i, pagesize;
26114 int fd;
26116 pagesize = getpagesize ();
26118 /* First, make a file with some known garbage in it. */
26119 data = (char *) malloc (pagesize);
26120 if (!data)
26121 return 1;
26122 for (i = 0; i < pagesize; ++i)
26123 *(data + i) = rand ();
26124 umask (0);
26125 fd = creat ("conftest.mmap", 0600);
26126 if (fd < 0)
26127 return 1;
26128 if (write (fd, data, pagesize) != pagesize)
26129 return 1;
26130 close (fd);
26132 /* Next, try to mmap the file at a fixed address which already has
26133 something else allocated at it. If we can, also make sure that
26134 we see the same garbage. */
26135 fd = open ("conftest.mmap", O_RDWR);
26136 if (fd < 0)
26137 return 1;
26138 data2 = (char *) malloc (2 * pagesize);
26139 if (!data2)
26140 return 1;
26141 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
26142 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26143 MAP_PRIVATE | MAP_FIXED, fd, 0L))
26144 return 1;
26145 for (i = 0; i < pagesize; ++i)
26146 if (*(data + i) != *(data2 + i))
26147 return 1;
26149 /* Finally, make sure that changes to the mapped area do not
26150 percolate back to the file as seen by read(). (This is a bug on
26151 some variants of i386 svr4.0.) */
26152 for (i = 0; i < pagesize; ++i)
26153 *(data2 + i) = *(data2 + i) + 1;
26154 data3 = (char *) malloc (pagesize);
26155 if (!data3)
26156 return 1;
26157 if (read (fd, data3, pagesize) != pagesize)
26158 return 1;
26159 for (i = 0; i < pagesize; ++i)
26160 if (*(data + i) != *(data3 + i))
26161 return 1;
26162 close (fd);
26163 return 0;
26165 _ACEOF
26166 rm -f conftest$ac_exeext
26167 if { (ac_try="$ac_link"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_link") 2>&5
26174 ac_status=$?
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26177 { (case "(($ac_try" in
26178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179 *) ac_try_echo=$ac_try;;
26180 esac
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182 (eval "$ac_try") 2>&5
26183 ac_status=$?
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; }; then
26186 ac_cv_func_mmap_fixed_mapped=yes
26187 else
26188 echo "$as_me: program exited with status $ac_status" >&5
26189 echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26192 ( exit $ac_status )
26193 ac_cv_func_mmap_fixed_mapped=no
26195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
26201 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
26202 if test $ac_cv_func_mmap_fixed_mapped = yes; then
26204 cat >>confdefs.h <<\_ACEOF
26205 #define HAVE_MMAP 1
26206 _ACEOF
26209 rm -f conftest.mmap
26212 for ac_header in vfork.h
26214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 ac_res=`eval echo '${'$as_ac_Header'}'`
26222 { echo "$as_me:$LINENO: result: $ac_res" >&5
26223 echo "${ECHO_T}$ac_res" >&6; }
26224 else
26225 # Is the header compilable?
26226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26228 cat >conftest.$ac_ext <<_ACEOF
26229 /* confdefs.h. */
26230 _ACEOF
26231 cat confdefs.h >>conftest.$ac_ext
26232 cat >>conftest.$ac_ext <<_ACEOF
26233 /* end confdefs.h. */
26234 $ac_includes_default
26235 #include <$ac_header>
26236 _ACEOF
26237 rm -f conftest.$ac_objext
26238 if { (ac_try="$ac_compile"
26239 case "(($ac_try" in
26240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241 *) ac_try_echo=$ac_try;;
26242 esac
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244 (eval "$ac_compile") 2>conftest.er1
26245 ac_status=$?
26246 grep -v '^ *+' conftest.er1 >conftest.err
26247 rm -f conftest.er1
26248 cat conftest.err >&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); } && {
26251 test -z "$ac_c_werror_flag" ||
26252 test ! -s conftest.err
26253 } && test -s conftest.$ac_objext; then
26254 ac_header_compiler=yes
26255 else
26256 echo "$as_me: failed program was:" >&5
26257 sed 's/^/| /' conftest.$ac_ext >&5
26259 ac_header_compiler=no
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26264 echo "${ECHO_T}$ac_header_compiler" >&6; }
26266 # Is the header present?
26267 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26269 cat >conftest.$ac_ext <<_ACEOF
26270 /* confdefs.h. */
26271 _ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h. */
26275 #include <$ac_header>
26276 _ACEOF
26277 if { (ac_try="$ac_cpp conftest.$ac_ext"
26278 case "(($ac_try" in
26279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26280 *) ac_try_echo=$ac_try;;
26281 esac
26282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26284 ac_status=$?
26285 grep -v '^ *+' conftest.er1 >conftest.err
26286 rm -f conftest.er1
26287 cat conftest.err >&5
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } >/dev/null && {
26290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26291 test ! -s conftest.err
26292 }; then
26293 ac_header_preproc=yes
26294 else
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_header_preproc=no
26301 rm -f conftest.err conftest.$ac_ext
26302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26303 echo "${ECHO_T}$ac_header_preproc" >&6; }
26305 # So? What about this header?
26306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26307 yes:no: )
26308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26312 ac_header_preproc=yes
26314 no:yes:* )
26315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26329 esac
26330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26333 echo $ECHO_N "(cached) $ECHO_C" >&6
26334 else
26335 eval "$as_ac_Header=\$ac_header_preproc"
26337 ac_res=`eval echo '${'$as_ac_Header'}'`
26338 { echo "$as_me:$LINENO: result: $ac_res" >&5
26339 echo "${ECHO_T}$ac_res" >&6; }
26342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26343 cat >>confdefs.h <<_ACEOF
26344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26345 _ACEOF
26349 done
26353 for ac_func in fork vfork
26355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h. */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26369 #define $ac_func innocuous_$ac_func
26371 /* System header to define __stub macros and hopefully few prototypes,
26372 which can conflict with char $ac_func (); below.
26373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26374 <limits.h> exists even on freestanding compilers. */
26376 #ifdef __STDC__
26377 # include <limits.h>
26378 #else
26379 # include <assert.h>
26380 #endif
26382 #undef $ac_func
26384 /* Override any GCC internal prototype to avoid an error.
26385 Use char because int might match the return type of a GCC
26386 builtin and then its argument prototype would still apply. */
26387 #ifdef __cplusplus
26388 extern "C"
26389 #endif
26390 char $ac_func ();
26391 /* The GNU C library defines this for functions which it implements
26392 to always fail with ENOSYS. Some functions are actually named
26393 something starting with __ and the normal name is an alias. */
26394 #if defined __stub_$ac_func || defined __stub___$ac_func
26395 choke me
26396 #endif
26399 main ()
26401 return $ac_func ();
26403 return 0;
26405 _ACEOF
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (ac_try="$ac_link"
26408 case "(($ac_try" in
26409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410 *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413 (eval "$ac_link") 2>conftest.er1
26414 ac_status=$?
26415 grep -v '^ *+' conftest.er1 >conftest.err
26416 rm -f conftest.er1
26417 cat conftest.err >&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && {
26420 test -z "$ac_c_werror_flag" ||
26421 test ! -s conftest.err
26422 } && test -s conftest$ac_exeext &&
26423 $as_test_x conftest$ac_exeext; then
26424 eval "$as_ac_var=yes"
26425 else
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 eval "$as_ac_var=no"
26432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26433 conftest$ac_exeext conftest.$ac_ext
26435 ac_res=`eval echo '${'$as_ac_var'}'`
26436 { echo "$as_me:$LINENO: result: $ac_res" >&5
26437 echo "${ECHO_T}$ac_res" >&6; }
26438 if test `eval echo '${'$as_ac_var'}'` = yes; then
26439 cat >>confdefs.h <<_ACEOF
26440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26441 _ACEOF
26444 done
26446 if test "x$ac_cv_func_fork" = xyes; then
26447 { echo "$as_me:$LINENO: checking for working fork" >&5
26448 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
26449 if test "${ac_cv_func_fork_works+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 else
26452 if test "$cross_compiling" = yes; then
26453 ac_cv_func_fork_works=cross
26454 else
26455 cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h. */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461 $ac_includes_default
26463 main ()
26466 /* By Ruediger Kuhlmann. */
26467 return fork () < 0;
26470 return 0;
26472 _ACEOF
26473 rm -f conftest$ac_exeext
26474 if { (ac_try="$ac_link"
26475 case "(($ac_try" in
26476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26477 *) ac_try_echo=$ac_try;;
26478 esac
26479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26480 (eval "$ac_link") 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26484 { (case "(($ac_try" in
26485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26487 esac
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489 (eval "$ac_try") 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_func_fork_works=yes
26494 else
26495 echo "$as_me: program exited with status $ac_status" >&5
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ( exit $ac_status )
26500 ac_cv_func_fork_works=no
26502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26507 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
26508 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
26510 else
26511 ac_cv_func_fork_works=$ac_cv_func_fork
26513 if test "x$ac_cv_func_fork_works" = xcross; then
26514 case $host in
26515 *-*-amigaos* | *-*-msdosdjgpp*)
26516 # Override, as these systems have only a dummy fork() stub
26517 ac_cv_func_fork_works=no
26520 ac_cv_func_fork_works=yes
26522 esac
26523 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26524 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26526 ac_cv_func_vfork_works=$ac_cv_func_vfork
26527 if test "x$ac_cv_func_vfork" = xyes; then
26528 { echo "$as_me:$LINENO: checking for working vfork" >&5
26529 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
26530 if test "${ac_cv_func_vfork_works+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533 if test "$cross_compiling" = yes; then
26534 ac_cv_func_vfork_works=cross
26535 else
26536 cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h. */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26542 /* Thanks to Paul Eggert for this test. */
26543 $ac_includes_default
26544 #include <sys/wait.h>
26545 #ifdef HAVE_VFORK_H
26546 # include <vfork.h>
26547 #endif
26548 /* On some sparc systems, changes by the child to local and incoming
26549 argument registers are propagated back to the parent. The compiler
26550 is told about this with #include <vfork.h>, but some compilers
26551 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
26552 static variable whose address is put into a register that is
26553 clobbered by the vfork. */
26554 static void
26555 #ifdef __cplusplus
26556 sparc_address_test (int arg)
26557 # else
26558 sparc_address_test (arg) int arg;
26559 #endif
26561 static pid_t child;
26562 if (!child) {
26563 child = vfork ();
26564 if (child < 0) {
26565 perror ("vfork");
26566 _exit(2);
26568 if (!child) {
26569 arg = getpid();
26570 write(-1, "", 0);
26571 _exit (arg);
26577 main ()
26579 pid_t parent = getpid ();
26580 pid_t child;
26582 sparc_address_test (0);
26584 child = vfork ();
26586 if (child == 0) {
26587 /* Here is another test for sparc vfork register problems. This
26588 test uses lots of local variables, at least as many local
26589 variables as main has allocated so far including compiler
26590 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
26591 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
26592 reuse the register of parent for one of the local variables,
26593 since it will think that parent can't possibly be used any more
26594 in this routine. Assigning to the local variable will thus
26595 munge parent in the parent process. */
26596 pid_t
26597 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26598 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26599 /* Convince the compiler that p..p7 are live; otherwise, it might
26600 use the same hardware register for all 8 local variables. */
26601 if (p != p1 || p != p2 || p != p3 || p != p4
26602 || p != p5 || p != p6 || p != p7)
26603 _exit(1);
26605 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26606 from child file descriptors. If the child closes a descriptor
26607 before it execs or exits, this munges the parent's descriptor
26608 as well. Test for this by closing stdout in the child. */
26609 _exit(close(fileno(stdout)) != 0);
26610 } else {
26611 int status;
26612 struct stat st;
26614 while (wait(&status) != child)
26616 return (
26617 /* Was there some problem with vforking? */
26618 child < 0
26620 /* Did the child fail? (This shouldn't happen.) */
26621 || status
26623 /* Did the vfork/compiler bug occur? */
26624 || parent != getpid()
26626 /* Did the file descriptor bug occur? */
26627 || fstat(fileno(stdout), &st) != 0
26631 _ACEOF
26632 rm -f conftest$ac_exeext
26633 if { (ac_try="$ac_link"
26634 case "(($ac_try" in
26635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636 *) ac_try_echo=$ac_try;;
26637 esac
26638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26639 (eval "$ac_link") 2>&5
26640 ac_status=$?
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26643 { (case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26646 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_try") 2>&5
26649 ac_status=$?
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_cv_func_vfork_works=yes
26653 else
26654 echo "$as_me: program exited with status $ac_status" >&5
26655 echo "$as_me: failed program was:" >&5
26656 sed 's/^/| /' conftest.$ac_ext >&5
26658 ( exit $ac_status )
26659 ac_cv_func_vfork_works=no
26661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26666 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26667 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26670 if test "x$ac_cv_func_fork_works" = xcross; then
26671 ac_cv_func_vfork_works=$ac_cv_func_vfork
26672 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26673 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26676 if test "x$ac_cv_func_vfork_works" = xyes; then
26678 cat >>confdefs.h <<\_ACEOF
26679 #define HAVE_WORKING_VFORK 1
26680 _ACEOF
26682 else
26684 cat >>confdefs.h <<\_ACEOF
26685 #define vfork fork
26686 _ACEOF
26689 if test "x$ac_cv_func_fork_works" = xyes; then
26691 cat >>confdefs.h <<\_ACEOF
26692 #define HAVE_WORKING_FORK 1
26693 _ACEOF
26698 if test "$need_env" = yes; then
26699 LIBOBJS="env.o $LIBOBJS"
26702 if test "$need_strsep" = yes; then
26703 LIBOBJS="strsep.o $LIBOBJS"
26706 { echo "$as_me:$LINENO: checking for fcntl/flock" >&5
26707 echo $ECHO_N "checking for fcntl/flock... $ECHO_C" >&6; }
26708 if test "${vi_cv_lock+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26711 vi_cv_lock=none
26712 case "$host_os" in
26713 dgux*);;
26714 irix*);;
26716 cat >conftest.$ac_ext <<_ACEOF
26717 /* confdefs.h. */
26718 _ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722 #include <fcntl.h>
26724 main ()
26726 flock(0, 0);
26728 return 0;
26730 _ACEOF
26731 rm -f conftest.$ac_objext conftest$ac_exeext
26732 if { (ac_try="$ac_link"
26733 case "(($ac_try" in
26734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735 *) ac_try_echo=$ac_try;;
26736 esac
26737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26738 (eval "$ac_link") 2>conftest.er1
26739 ac_status=$?
26740 grep -v '^ *+' conftest.er1 >conftest.err
26741 rm -f conftest.er1
26742 cat conftest.err >&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } && {
26745 test -z "$ac_c_werror_flag" ||
26746 test ! -s conftest.err
26747 } && test -s conftest$ac_exeext &&
26748 $as_test_x conftest$ac_exeext; then
26749 vi_cv_lock=flock
26750 else
26751 echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26758 conftest$ac_exeext conftest.$ac_ext;;
26759 esac
26760 if test "$vi_cv_lock" = none; then
26761 cat >conftest.$ac_ext <<_ACEOF
26762 /* confdefs.h. */
26763 _ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26767 #include <fcntl.h>
26769 main ()
26771 fcntl(0, F_SETLK, 0);
26773 return 0;
26775 _ACEOF
26776 rm -f conftest.$ac_objext conftest$ac_exeext
26777 if { (ac_try="$ac_link"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781 esac
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_link") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest$ac_exeext &&
26793 $as_test_x conftest$ac_exeext; then
26794 vi_cv_lock=fcntl
26795 else
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26803 conftest$ac_exeext conftest.$ac_ext
26808 if test "$vi_cv_lock" = flock; then
26809 cat >>confdefs.h <<\_ACEOF
26810 #define HAVE_LOCK_FLOCK 1
26811 _ACEOF
26814 if test "$vi_cv_lock" = fcntl; then
26815 cat >>confdefs.h <<\_ACEOF
26816 #define HAVE_LOCK_FCNTL 1
26817 _ACEOF
26820 { echo "$as_me:$LINENO: result: $vi_cv_lock" >&5
26821 echo "${ECHO_T}$vi_cv_lock" >&6; }
26823 { echo "$as_me:$LINENO: checking for ftruncate/chsize" >&5
26824 echo $ECHO_N "checking for ftruncate/chsize... $ECHO_C" >&6; }
26825 if test "${vi_cv_ftruncate+set}" = set; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26827 else
26828 cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h. */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 #include <unistd.h>
26836 main ()
26838 ftruncate(0, 0);
26840 return 0;
26842 _ACEOF
26843 rm -f conftest.$ac_objext conftest$ac_exeext
26844 if { (ac_try="$ac_link"
26845 case "(($ac_try" in
26846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847 *) ac_try_echo=$ac_try;;
26848 esac
26849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850 (eval "$ac_link") 2>conftest.er1
26851 ac_status=$?
26852 grep -v '^ *+' conftest.er1 >conftest.err
26853 rm -f conftest.er1
26854 cat conftest.err >&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } && {
26857 test -z "$ac_c_werror_flag" ||
26858 test ! -s conftest.err
26859 } && test -s conftest$ac_exeext &&
26860 $as_test_x conftest$ac_exeext; then
26861 vi_cv_ftruncate=ftruncate
26862 else
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h. */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 #include <unistd.h>
26874 main ()
26876 chsize(0, 0);
26878 return 0;
26880 _ACEOF
26881 rm -f conftest.$ac_objext conftest$ac_exeext
26882 if { (ac_try="$ac_link"
26883 case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26886 esac
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_link") 2>conftest.er1
26889 ac_status=$?
26890 grep -v '^ *+' conftest.er1 >conftest.err
26891 rm -f conftest.er1
26892 cat conftest.err >&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); } && {
26895 test -z "$ac_c_werror_flag" ||
26896 test ! -s conftest.err
26897 } && test -s conftest$ac_exeext &&
26898 $as_test_x conftest$ac_exeext; then
26899 vi_cv_ftruncate=chsize
26900 else
26901 echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26904 vi_cv_ftruncate=no
26907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26908 conftest$ac_exeext conftest.$ac_ext
26911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26912 conftest$ac_exeext conftest.$ac_ext
26915 if test "$vi_cv_ftruncate" = ftruncate; then
26916 cat >>confdefs.h <<\_ACEOF
26917 #define HAVE_FTRUNCATE_FTRUNCATE 1
26918 _ACEOF
26921 if test "$vi_cv_ftruncate" = chsize; then
26922 cat >>confdefs.h <<\_ACEOF
26923 #define HAVE_FTRUNCATE_CHSIZE 1
26924 _ACEOF
26927 if test "$vi_cv_ftruncate" = no; then
26928 { { echo "$as_me:$LINENO: error: No file truncation system call." >&5
26929 echo "$as_me: error: No file truncation system call." >&2;}
26930 { (exit 1); exit 1; }; }
26932 { echo "$as_me:$LINENO: result: $vi_cv_ftruncate" >&5
26933 echo "${ECHO_T}$vi_cv_ftruncate" >&6; }
26935 CSAVELIBS="$LIBS"
26936 CSAVELDFLAGS="$LDFLAGS"
26937 CSAVECPPFLAGS="$CPPFLAGS"
26938 LIBS="$CURSLIBS $LIBS"
26939 LDFLAGS="$CURSLDFLAGS $LDFLAGS"
26940 CPPFLAGS="$CURSCPPFLAGS $CPPFLAGS"
26941 { echo "$as_me:$LINENO: checking for tigetstr/tigetnum" >&5
26942 echo $ECHO_N "checking for tigetstr/tigetnum... $ECHO_C" >&6; }
26943 if test "${vi_cv_have_curses_tigetstr+set}" = set; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26945 else
26946 cat >conftest.$ac_ext <<_ACEOF
26947 /* confdefs.h. */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26952 #include <$CURSHEADER>
26954 main ()
26956 tigetstr(0);
26958 return 0;
26960 _ACEOF
26961 rm -f conftest.$ac_objext conftest$ac_exeext
26962 if { (ac_try="$ac_link"
26963 case "(($ac_try" in
26964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965 *) ac_try_echo=$ac_try;;
26966 esac
26967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968 (eval "$ac_link") 2>conftest.er1
26969 ac_status=$?
26970 grep -v '^ *+' conftest.er1 >conftest.err
26971 rm -f conftest.er1
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } && {
26975 test -z "$ac_c_werror_flag" ||
26976 test ! -s conftest.err
26977 } && test -s conftest$ac_exeext &&
26978 $as_test_x conftest$ac_exeext; then
26979 vi_cv_have_curses_tigetstr=yes
26980 else
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26984 vi_cv_have_curses_tigetstr=no
26987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26988 conftest$ac_exeext conftest.$ac_ext
26991 if test "$vi_cv_have_curses_tigetstr" = yes; then
26992 cat >>confdefs.h <<\_ACEOF
26993 #define HAVE_CURSES_TIGETSTR 1
26994 _ACEOF
26997 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_tigetstr" >&5
26998 echo "${ECHO_T}$vi_cv_have_curses_tigetstr" >&6; }
27000 if test "$vi_cv_curses" = "bundled curses"; then
27001 cat >>confdefs.h <<\_ACEOF
27002 #define HAVE_BSD_CURSES 1
27003 _ACEOF
27005 cat >>confdefs.h <<\_ACEOF
27006 #define HAVE_CURSES_WADDNSTR 1
27007 _ACEOF
27009 cat >>confdefs.h <<\_ACEOF
27010 #define HAVE_CURSES_IDLOK 1
27011 _ACEOF
27013 else
27014 { echo "$as_me:$LINENO: checking for waddnstr" >&5
27015 echo $ECHO_N "checking for waddnstr... $ECHO_C" >&6; }
27016 if test "${vi_cv_have_curses_waddnstr+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019 cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h. */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 #include <$CURSHEADER>
27027 main ()
27029 waddnstr(stdscr, 0, 0);
27031 return 0;
27033 _ACEOF
27034 rm -f conftest.$ac_objext conftest$ac_exeext
27035 if { (ac_try="$ac_link"
27036 case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27039 esac
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_link") 2>conftest.er1
27042 ac_status=$?
27043 grep -v '^ *+' conftest.er1 >conftest.err
27044 rm -f conftest.er1
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } && {
27048 test -z "$ac_c_werror_flag" ||
27049 test ! -s conftest.err
27050 } && test -s conftest$ac_exeext &&
27051 $as_test_x conftest$ac_exeext; then
27052 vi_cv_have_curses_waddnstr=yes
27053 else
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27057 vi_cv_have_curses_waddnstr=no
27060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27061 conftest$ac_exeext conftest.$ac_ext
27064 if test "$vi_cv_have_curses_waddnstr" = yes; then
27065 cat >>confdefs.h <<\_ACEOF
27066 #define HAVE_CURSES_WADDNSTR 1
27067 _ACEOF
27070 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_waddnstr" >&5
27071 echo "${ECHO_T}$vi_cv_have_curses_waddnstr" >&6; }
27073 { echo "$as_me:$LINENO: checking for beep" >&5
27074 echo $ECHO_N "checking for beep... $ECHO_C" >&6; }
27075 if test "${vi_cv_have_curses_beep+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27077 else
27078 cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h. */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h. */
27084 #include <$CURSHEADER>
27086 main ()
27088 beep();
27090 return 0;
27092 _ACEOF
27093 rm -f conftest.$ac_objext conftest$ac_exeext
27094 if { (ac_try="$ac_link"
27095 case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_link") 2>conftest.er1
27101 ac_status=$?
27102 grep -v '^ *+' conftest.er1 >conftest.err
27103 rm -f conftest.er1
27104 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } && {
27107 test -z "$ac_c_werror_flag" ||
27108 test ! -s conftest.err
27109 } && test -s conftest$ac_exeext &&
27110 $as_test_x conftest$ac_exeext; then
27111 vi_cv_have_curses_beep=yes
27112 else
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27116 vi_cv_have_curses_beep=no
27119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27120 conftest$ac_exeext conftest.$ac_ext
27123 if test "$vi_cv_have_curses_beep" = yes; then
27124 cat >>confdefs.h <<\_ACEOF
27125 #define HAVE_CURSES_BEEP 1
27126 _ACEOF
27129 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_beep" >&5
27130 echo "${ECHO_T}$vi_cv_have_curses_beep" >&6; }
27132 { echo "$as_me:$LINENO: checking for flash" >&5
27133 echo $ECHO_N "checking for flash... $ECHO_C" >&6; }
27134 if test "${vi_cv_have_curses_flash+set}" = set; then
27135 echo $ECHO_N "(cached) $ECHO_C" >&6
27136 else
27137 cat >conftest.$ac_ext <<_ACEOF
27138 /* confdefs.h. */
27139 _ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h. */
27143 #include <$CURSHEADER>
27145 main ()
27147 flash();
27149 return 0;
27151 _ACEOF
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (ac_try="$ac_link"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_link") 2>conftest.er1
27160 ac_status=$?
27161 grep -v '^ *+' conftest.er1 >conftest.err
27162 rm -f conftest.er1
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } && {
27166 test -z "$ac_c_werror_flag" ||
27167 test ! -s conftest.err
27168 } && test -s conftest$ac_exeext &&
27169 $as_test_x conftest$ac_exeext; then
27170 vi_cv_have_curses_flash=yes
27171 else
27172 echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27175 vi_cv_have_curses_flash=no
27178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27179 conftest$ac_exeext conftest.$ac_ext
27182 if test "$vi_cv_have_curses_flash" = yes; then
27183 cat >>confdefs.h <<\_ACEOF
27184 #define HAVE_CURSES_FLASH 1
27185 _ACEOF
27188 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_flash" >&5
27189 echo "${ECHO_T}$vi_cv_have_curses_flash" >&6; }
27191 { echo "$as_me:$LINENO: checking for idlok" >&5
27192 echo $ECHO_N "checking for idlok... $ECHO_C" >&6; }
27193 if test "${vi_cv_have_curses_idlok+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 else
27196 cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h. */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 #include <$CURSHEADER>
27204 main ()
27206 idlok(0, 0);
27208 return 0;
27210 _ACEOF
27211 rm -f conftest.$ac_objext conftest$ac_exeext
27212 if { (ac_try="$ac_link"
27213 case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_link") 2>conftest.er1
27219 ac_status=$?
27220 grep -v '^ *+' conftest.er1 >conftest.err
27221 rm -f conftest.er1
27222 cat conftest.err >&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } && {
27225 test -z "$ac_c_werror_flag" ||
27226 test ! -s conftest.err
27227 } && test -s conftest$ac_exeext &&
27228 $as_test_x conftest$ac_exeext; then
27229 vi_cv_have_curses_idlok=yes
27230 else
27231 echo "$as_me: failed program was:" >&5
27232 sed 's/^/| /' conftest.$ac_ext >&5
27234 vi_cv_have_curses_idlok=no
27237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27238 conftest$ac_exeext conftest.$ac_ext
27241 if test "$vi_cv_have_curses_idlok" = yes; then
27242 cat >>confdefs.h <<\_ACEOF
27243 #define HAVE_CURSES_IDLOK 1
27244 _ACEOF
27247 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_idlok" >&5
27248 echo "${ECHO_T}$vi_cv_have_curses_idlok" >&6; }
27250 { echo "$as_me:$LINENO: checking for keypad" >&5
27251 echo $ECHO_N "checking for keypad... $ECHO_C" >&6; }
27252 if test "${vi_cv_have_curses_keypad+set}" = set; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27254 else
27255 cat >conftest.$ac_ext <<_ACEOF
27256 /* confdefs.h. */
27257 _ACEOF
27258 cat confdefs.h >>conftest.$ac_ext
27259 cat >>conftest.$ac_ext <<_ACEOF
27260 /* end confdefs.h. */
27261 #include <$CURSHEADER>
27263 main ()
27265 keypad(0, 0);
27267 return 0;
27269 _ACEOF
27270 rm -f conftest.$ac_objext conftest$ac_exeext
27271 if { (ac_try="$ac_link"
27272 case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27275 esac
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_link") 2>conftest.er1
27278 ac_status=$?
27279 grep -v '^ *+' conftest.er1 >conftest.err
27280 rm -f conftest.er1
27281 cat conftest.err >&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); } && {
27284 test -z "$ac_c_werror_flag" ||
27285 test ! -s conftest.err
27286 } && test -s conftest$ac_exeext &&
27287 $as_test_x conftest$ac_exeext; then
27288 vi_cv_have_curses_keypad=yes
27289 else
27290 echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27293 vi_cv_have_curses_keypad=no
27296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27297 conftest$ac_exeext conftest.$ac_ext
27300 if test "$vi_cv_have_curses_keypad" = yes; then
27301 cat >>confdefs.h <<\_ACEOF
27302 #define HAVE_CURSES_KEYPAD 1
27303 _ACEOF
27306 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_keypad" >&5
27307 echo "${ECHO_T}$vi_cv_have_curses_keypad" >&6; }
27309 { echo "$as_me:$LINENO: checking for newterm" >&5
27310 echo $ECHO_N "checking for newterm... $ECHO_C" >&6; }
27311 if test "${vi_cv_have_curses_newterm+set}" = set; then
27312 echo $ECHO_N "(cached) $ECHO_C" >&6
27313 else
27314 cat >conftest.$ac_ext <<_ACEOF
27315 /* confdefs.h. */
27316 _ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h. */
27320 #include <$CURSHEADER>
27322 main ()
27324 newterm(0, 0, 0);
27326 return 0;
27328 _ACEOF
27329 rm -f conftest.$ac_objext conftest$ac_exeext
27330 if { (ac_try="$ac_link"
27331 case "(($ac_try" in
27332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27333 *) ac_try_echo=$ac_try;;
27334 esac
27335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27336 (eval "$ac_link") 2>conftest.er1
27337 ac_status=$?
27338 grep -v '^ *+' conftest.er1 >conftest.err
27339 rm -f conftest.er1
27340 cat conftest.err >&5
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } && {
27343 test -z "$ac_c_werror_flag" ||
27344 test ! -s conftest.err
27345 } && test -s conftest$ac_exeext &&
27346 $as_test_x conftest$ac_exeext; then
27347 vi_cv_have_curses_newterm=yes
27348 else
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 vi_cv_have_curses_newterm=no
27355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27356 conftest$ac_exeext conftest.$ac_ext
27359 if test "$vi_cv_have_curses_newterm" = yes; then
27360 cat >>confdefs.h <<\_ACEOF
27361 #define HAVE_CURSES_NEWTERM 1
27362 _ACEOF
27365 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_newterm" >&5
27366 echo "${ECHO_T}$vi_cv_have_curses_newterm" >&6; }
27368 if test "$vi_cv_have_curses_newterm" = no; then
27369 cat >>confdefs.h <<\_ACEOF
27370 #define HAVE_BSD_CURSES 1
27371 _ACEOF
27376 { echo "$as_me:$LINENO: checking for setupterm" >&5
27377 echo $ECHO_N "checking for setupterm... $ECHO_C" >&6; }
27378 if test "${vi_cv_have_curses_setupterm+set}" = set; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27380 else
27381 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h. */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h. */
27387 #include <$CURSHEADER>
27389 main ()
27391 setupterm(0, 0, 0);
27393 return 0;
27395 _ACEOF
27396 rm -f conftest.$ac_objext conftest$ac_exeext
27397 if { (ac_try="$ac_link"
27398 case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27401 esac
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_link") 2>conftest.er1
27404 ac_status=$?
27405 grep -v '^ *+' conftest.er1 >conftest.err
27406 rm -f conftest.er1
27407 cat conftest.err >&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } && {
27410 test -z "$ac_c_werror_flag" ||
27411 test ! -s conftest.err
27412 } && test -s conftest$ac_exeext &&
27413 $as_test_x conftest$ac_exeext; then
27414 vi_cv_have_curses_setupterm=yes
27415 else
27416 echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27419 vi_cv_have_curses_setupterm=no
27422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27423 conftest$ac_exeext conftest.$ac_ext
27426 if test "$vi_cv_have_curses_setupterm" = yes; then
27427 cat >>confdefs.h <<\_ACEOF
27428 #define HAVE_CURSES_SETUPTERM 1
27429 _ACEOF
27432 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_setupterm" >&5
27433 echo "${ECHO_T}$vi_cv_have_curses_setupterm" >&6; }
27434 LIBS="$CSAVELIBS"
27435 LDFLAGS="$CSAVELDFLAGS"
27436 CPPFLAGS="$CSAVECPPFLAGS"
27438 { echo "$as_me:$LINENO: checking for broken gettimeofday system call" >&5
27439 echo $ECHO_N "checking for broken gettimeofday system call... $ECHO_C" >&6; }
27440 if test "${vi_cv_gettimeofday+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443 cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h. */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 #include <sys/types.h>
27450 #include <sys/time.h>
27452 main ()
27454 gettimeofday(0, 0);
27456 return 0;
27458 _ACEOF
27459 rm -f conftest.$ac_objext conftest$ac_exeext
27460 if { (ac_try="$ac_link"
27461 case "(($ac_try" in
27462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463 *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_link") 2>conftest.er1
27467 ac_status=$?
27468 grep -v '^ *+' conftest.er1 >conftest.err
27469 rm -f conftest.er1
27470 cat conftest.err >&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } && {
27473 test -z "$ac_c_werror_flag" ||
27474 test ! -s conftest.err
27475 } && test -s conftest$ac_exeext &&
27476 $as_test_x conftest$ac_exeext; then
27477 vi_cv_gettimeofday=okay
27478 else
27479 echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 vi_cv_gettimeofday=broken
27485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27486 conftest$ac_exeext conftest.$ac_ext
27489 if test "$vi_cv_gettimeofday" = broken; then
27490 cat >>confdefs.h <<\_ACEOF
27491 #define HAVE_BROKEN_GETTIMEOFDAY 1
27492 _ACEOF
27495 { echo "$as_me:$LINENO: result: $vi_cv_gettimeofday" >&5
27496 echo "${ECHO_T}$vi_cv_gettimeofday" >&6; }
27498 { echo "$as_me:$LINENO: checking for System V pty calls" >&5
27499 echo $ECHO_N "checking for System V pty calls... $ECHO_C" >&6; }
27500 if test "${vi_cv_sys5_pty+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502 else
27503 cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h. */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h. */
27511 main ()
27513 grantpt(0);
27515 return 0;
27517 _ACEOF
27518 rm -f conftest.$ac_objext conftest$ac_exeext
27519 if { (ac_try="$ac_link"
27520 case "(($ac_try" in
27521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522 *) ac_try_echo=$ac_try;;
27523 esac
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525 (eval "$ac_link") 2>conftest.er1
27526 ac_status=$?
27527 grep -v '^ *+' conftest.er1 >conftest.err
27528 rm -f conftest.er1
27529 cat conftest.err >&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } && {
27532 test -z "$ac_c_werror_flag" ||
27533 test ! -s conftest.err
27534 } && test -s conftest$ac_exeext &&
27535 $as_test_x conftest$ac_exeext; then
27536 vi_cv_sys5_pty=yes
27537 else
27538 echo "$as_me: failed program was:" >&5
27539 sed 's/^/| /' conftest.$ac_ext >&5
27541 vi_cv_sys5_pty=no
27544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27545 conftest$ac_exeext conftest.$ac_ext
27548 if test "$vi_cv_sys5_pty" = yes; then
27549 cat >>confdefs.h <<\_ACEOF
27550 #define HAVE_SYS5_PTY 1
27551 _ACEOF
27554 { echo "$as_me:$LINENO: result: $vi_cv_sys5_pty" >&5
27555 echo "${ECHO_T}$vi_cv_sys5_pty" >&6; }
27557 { echo "$as_me:$LINENO: checking for revoke system call" >&5
27558 echo $ECHO_N "checking for revoke system call... $ECHO_C" >&6; }
27559 if test "${vi_cv_revoke+set}" = set; then
27560 echo $ECHO_N "(cached) $ECHO_C" >&6
27561 else
27562 cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h. */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27570 main ()
27572 revoke("a");
27574 return 0;
27576 _ACEOF
27577 rm -f conftest.$ac_objext conftest$ac_exeext
27578 if { (ac_try="$ac_link"
27579 case "(($ac_try" in
27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27582 esac
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_link") 2>conftest.er1
27585 ac_status=$?
27586 grep -v '^ *+' conftest.er1 >conftest.err
27587 rm -f conftest.er1
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } && {
27591 test -z "$ac_c_werror_flag" ||
27592 test ! -s conftest.err
27593 } && test -s conftest$ac_exeext &&
27594 $as_test_x conftest$ac_exeext; then
27595 vi_cv_revoke=yes
27596 else
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 vi_cv_revoke=no
27603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27604 conftest$ac_exeext conftest.$ac_ext
27607 if test "$vi_cv_revoke" = yes; then
27608 cat >>confdefs.h <<\_ACEOF
27609 #define HAVE_REVOKE 1
27610 _ACEOF
27613 { echo "$as_me:$LINENO: result: $vi_cv_revoke" >&5
27614 echo "${ECHO_T}$vi_cv_revoke" >&6; }
27616 { echo "$as_me:$LINENO: checking for int type sprintf return value" >&5
27617 echo $ECHO_N "checking for int type sprintf return value... $ECHO_C" >&6; }
27618 if test "${vi_cv_sprintf_count+set}" = set; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621 if test "$cross_compiling" = yes; then
27622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27623 See \`config.log' for more details." >&5
27624 echo "$as_me: error: cannot run test program while cross compiling
27625 See \`config.log' for more details." >&2;}
27626 { (exit 1); exit 1; }; }
27627 else
27628 cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h. */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634 main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
27635 _ACEOF
27636 rm -f conftest$ac_exeext
27637 if { (ac_try="$ac_link"
27638 case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>&5
27644 ac_status=$?
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27647 { (case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 vi_cv_sprintf_count=yes
27657 else
27658 echo "$as_me: program exited with status $ac_status" >&5
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ( exit $ac_status )
27663 vi_cv_sprintf_count=no
27665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27671 if test "$vi_cv_sprintf_count" = no; then
27672 cat >>confdefs.h <<\_ACEOF
27673 #define SPRINTF_RET_CHARPNT 1
27674 _ACEOF
27677 { echo "$as_me:$LINENO: result: $vi_cv_sprintf_count" >&5
27678 echo "${ECHO_T}$vi_cv_sprintf_count" >&6; }
27682 { echo "$as_me:$LINENO: checking for u_char" >&5
27683 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
27684 if test "${vi_cv_uchar+set}" = set; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27686 else
27687 cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h. */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693 #include <sys/types.h>
27695 main ()
27697 u_char foo;
27699 return 0;
27701 _ACEOF
27702 rm -f conftest.$ac_objext
27703 if { (ac_try="$ac_compile"
27704 case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27707 esac
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_compile") 2>conftest.er1
27710 ac_status=$?
27711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } && {
27716 test -z "$ac_c_werror_flag" ||
27717 test ! -s conftest.err
27718 } && test -s conftest.$ac_objext; then
27719 vi_cv_uchar=yes
27720 else
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 vi_cv_uchar=no
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27729 { echo "$as_me:$LINENO: result: $vi_cv_uchar" >&5
27730 echo "${ECHO_T}$vi_cv_uchar" >&6; }
27731 if test "$vi_cv_uchar" = no; then
27732 u_char_decl="typedef unsigned char u_char;"
27736 { echo "$as_me:$LINENO: checking for u_short" >&5
27737 echo $ECHO_N "checking for u_short... $ECHO_C" >&6; }
27738 if test "${vi_cv_ushort+set}" = set; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27740 else
27741 cat >conftest.$ac_ext <<_ACEOF
27742 /* confdefs.h. */
27743 _ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27747 #include <sys/types.h>
27749 main ()
27751 u_short foo;
27753 return 0;
27755 _ACEOF
27756 rm -f conftest.$ac_objext
27757 if { (ac_try="$ac_compile"
27758 case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27761 esac
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_compile") 2>conftest.er1
27764 ac_status=$?
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } && {
27770 test -z "$ac_c_werror_flag" ||
27771 test ! -s conftest.err
27772 } && test -s conftest.$ac_objext; then
27773 vi_cv_ushort=yes
27774 else
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 vi_cv_ushort=no
27781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 { echo "$as_me:$LINENO: result: $vi_cv_ushort" >&5
27784 echo "${ECHO_T}$vi_cv_ushort" >&6; }
27785 if test "$vi_cv_ushort" = no; then
27786 u_short_decl="typedef unsigned short u_short;"
27790 { echo "$as_me:$LINENO: checking for u_int" >&5
27791 echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
27792 if test "${vi_cv_uint+set}" = set; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27794 else
27795 cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h. */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 #include <sys/types.h>
27803 main ()
27805 u_int foo;
27807 return 0;
27809 _ACEOF
27810 rm -f conftest.$ac_objext
27811 if { (ac_try="$ac_compile"
27812 case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_compile") 2>conftest.er1
27818 ac_status=$?
27819 grep -v '^ *+' conftest.er1 >conftest.err
27820 rm -f conftest.er1
27821 cat conftest.err >&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); } && {
27824 test -z "$ac_c_werror_flag" ||
27825 test ! -s conftest.err
27826 } && test -s conftest.$ac_objext; then
27827 vi_cv_uint=yes
27828 else
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27832 vi_cv_uint=no
27835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27837 { echo "$as_me:$LINENO: result: $vi_cv_uint" >&5
27838 echo "${ECHO_T}$vi_cv_uint" >&6; }
27839 if test "$vi_cv_uint" = no; then
27840 u_int_decl="typedef unsigned int u_int;"
27844 { echo "$as_me:$LINENO: checking for u_long" >&5
27845 echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
27846 if test "${vi_cv_ulong+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27848 else
27849 cat >conftest.$ac_ext <<_ACEOF
27850 /* confdefs.h. */
27851 _ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h. */
27855 #include <sys/types.h>
27857 main ()
27859 u_long foo;
27861 return 0;
27863 _ACEOF
27864 rm -f conftest.$ac_objext
27865 if { (ac_try="$ac_compile"
27866 case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27869 esac
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_compile") 2>conftest.er1
27872 ac_status=$?
27873 grep -v '^ *+' conftest.er1 >conftest.err
27874 rm -f conftest.er1
27875 cat conftest.err >&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); } && {
27878 test -z "$ac_c_werror_flag" ||
27879 test ! -s conftest.err
27880 } && test -s conftest.$ac_objext; then
27881 vi_cv_ulong=yes
27882 else
27883 echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27886 vi_cv_ulong=no
27889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27891 { echo "$as_me:$LINENO: result: $vi_cv_ulong" >&5
27892 echo "${ECHO_T}$vi_cv_ulong" >&6; }
27893 if test "$vi_cv_ulong" = no; then
27894 u_long_decl="typedef unsigned long u_long;"
27898 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
27899 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
27900 if test "${vi_cv_uint8+set}" = set; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27902 else
27903 cat >conftest.$ac_ext <<_ACEOF
27904 /* confdefs.h. */
27905 _ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27909 #include <sys/types.h>
27911 main ()
27913 u_int8_t foo;
27915 return 0;
27917 _ACEOF
27918 rm -f conftest.$ac_objext
27919 if { (ac_try="$ac_compile"
27920 case "(($ac_try" in
27921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922 *) ac_try_echo=$ac_try;;
27923 esac
27924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_compile") 2>conftest.er1
27926 ac_status=$?
27927 grep -v '^ *+' conftest.er1 >conftest.err
27928 rm -f conftest.er1
27929 cat conftest.err >&5
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); } && {
27932 test -z "$ac_c_werror_flag" ||
27933 test ! -s conftest.err
27934 } && test -s conftest.$ac_objext; then
27935 vi_cv_uint8=yes
27936 else
27937 echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27940 if test "$cross_compiling" = yes; then
27941 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27942 See \`config.log' for more details." >&5
27943 echo "$as_me: error: cannot run test program while cross compiling
27944 See \`config.log' for more details." >&2;}
27945 { (exit 1); exit 1; }; }
27946 else
27947 cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h. */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h. */
27953 main(){exit(sizeof(unsigned char) != 1);}
27954 _ACEOF
27955 rm -f conftest$ac_exeext
27956 if { (ac_try="$ac_link"
27957 case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27960 esac
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_link") 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27966 { (case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27969 esac
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_try") 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
27975 vi_cv_uint8="unsigned char"
27976 else
27977 echo "$as_me: program exited with status $ac_status" >&5
27978 echo "$as_me: failed program was:" >&5
27979 sed 's/^/| /' conftest.$ac_ext >&5
27981 ( exit $ac_status )
27982 vi_cv_uint8=no
27984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27992 { echo "$as_me:$LINENO: result: $vi_cv_uint8" >&5
27993 echo "${ECHO_T}$vi_cv_uint8" >&6; }
27994 if test "$vi_cv_uint8" = no; then
27995 { { echo "$as_me:$LINENO: error: No unsigned 8-bit integral type." >&5
27996 echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
27997 { (exit 1); exit 1; }; }
27999 if test "$vi_cv_uint8" != yes; then
28000 u_int8_decl="typedef $vi_cv_uint8 u_int8_t;"
28004 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
28005 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
28006 if test "${vi_cv_uint16+set}" = set; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
28008 else
28009 cat >conftest.$ac_ext <<_ACEOF
28010 /* confdefs.h. */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015 #include <sys/types.h>
28017 main ()
28019 u_int16_t foo;
28021 return 0;
28023 _ACEOF
28024 rm -f conftest.$ac_objext
28025 if { (ac_try="$ac_compile"
28026 case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28029 esac
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_compile") 2>conftest.er1
28032 ac_status=$?
28033 grep -v '^ *+' conftest.er1 >conftest.err
28034 rm -f conftest.er1
28035 cat conftest.err >&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } && {
28038 test -z "$ac_c_werror_flag" ||
28039 test ! -s conftest.err
28040 } && test -s conftest.$ac_objext; then
28041 vi_cv_uint16=yes
28042 else
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28046 if test "$cross_compiling" = yes; then
28047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28048 See \`config.log' for more details." >&5
28049 echo "$as_me: error: cannot run test program while cross compiling
28050 See \`config.log' for more details." >&2;}
28051 { (exit 1); exit 1; }; }
28052 else
28053 cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h. */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059 main(){exit(sizeof(unsigned short) != 2);}
28060 _ACEOF
28061 rm -f conftest$ac_exeext
28062 if { (ac_try="$ac_link"
28063 case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28066 esac
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068 (eval "$ac_link") 2>&5
28069 ac_status=$?
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28075 esac
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 vi_cv_uint16="unsigned short"
28082 else
28083 echo "$as_me: program exited with status $ac_status" >&5
28084 echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28087 ( exit $ac_status )
28088 if test "$cross_compiling" = yes; then
28089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28090 See \`config.log' for more details." >&5
28091 echo "$as_me: error: cannot run test program while cross compiling
28092 See \`config.log' for more details." >&2;}
28093 { (exit 1); exit 1; }; }
28094 else
28095 cat >conftest.$ac_ext <<_ACEOF
28096 /* confdefs.h. */
28097 _ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h. */
28101 main(){exit(sizeof(unsigned int) != 2);}
28102 _ACEOF
28103 rm -f conftest$ac_exeext
28104 if { (ac_try="$ac_link"
28105 case "(($ac_try" in
28106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107 *) ac_try_echo=$ac_try;;
28108 esac
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110 (eval "$ac_link") 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28114 { (case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28117 esac
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_try") 2>&5
28120 ac_status=$?
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); }; }; then
28123 vi_cv_uint16="unsigned int"
28124 else
28125 echo "$as_me: program exited with status $ac_status" >&5
28126 echo "$as_me: failed program was:" >&5
28127 sed 's/^/| /' conftest.$ac_ext >&5
28129 ( exit $ac_status )
28130 vi_cv_uint16=no
28132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28145 { echo "$as_me:$LINENO: result: $vi_cv_uint16" >&5
28146 echo "${ECHO_T}$vi_cv_uint16" >&6; }
28147 if test "$vi_cv_uint16" = no; then
28148 { { echo "$as_me:$LINENO: error: No unsigned 16-bit integral type." >&5
28149 echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
28150 { (exit 1); exit 1; }; }
28152 if test "$vi_cv_uint16" != yes; then
28153 u_int16_decl="typedef $vi_cv_uint16 u_int16_t;"
28157 { echo "$as_me:$LINENO: checking for int16_t" >&5
28158 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
28159 if test "${vi_cv_int16+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162 cat >conftest.$ac_ext <<_ACEOF
28163 /* confdefs.h. */
28164 _ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 #include <sys/types.h>
28170 main ()
28172 int16_t foo;
28174 return 0;
28176 _ACEOF
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_compile") 2>conftest.er1
28185 ac_status=$?
28186 grep -v '^ *+' conftest.er1 >conftest.err
28187 rm -f conftest.er1
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } && {
28191 test -z "$ac_c_werror_flag" ||
28192 test ! -s conftest.err
28193 } && test -s conftest.$ac_objext; then
28194 vi_cv_int16=yes
28195 else
28196 echo "$as_me: failed program was:" >&5
28197 sed 's/^/| /' conftest.$ac_ext >&5
28199 if test "$cross_compiling" = yes; then
28200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28201 See \`config.log' for more details." >&5
28202 echo "$as_me: error: cannot run test program while cross compiling
28203 See \`config.log' for more details." >&2;}
28204 { (exit 1); exit 1; }; }
28205 else
28206 cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h. */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 main(){exit(sizeof(short) != 2);}
28213 _ACEOF
28214 rm -f conftest$ac_exeext
28215 if { (ac_try="$ac_link"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_link") 2>&5
28222 ac_status=$?
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28225 { (case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28228 esac
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234 vi_cv_int16="short"
28235 else
28236 echo "$as_me: program exited with status $ac_status" >&5
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28240 ( exit $ac_status )
28241 if test "$cross_compiling" = yes; then
28242 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28243 See \`config.log' for more details." >&5
28244 echo "$as_me: error: cannot run test program while cross compiling
28245 See \`config.log' for more details." >&2;}
28246 { (exit 1); exit 1; }; }
28247 else
28248 cat >conftest.$ac_ext <<_ACEOF
28249 /* confdefs.h. */
28250 _ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28254 main(){exit(sizeof(int) != 2);}
28255 _ACEOF
28256 rm -f conftest$ac_exeext
28257 if { (ac_try="$ac_link"
28258 case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_link") 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28267 { (case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28270 esac
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
28276 vi_cv_int16="int"
28277 else
28278 echo "$as_me: program exited with status $ac_status" >&5
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28282 ( exit $ac_status )
28283 vi_cv_int16=no
28285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28298 { echo "$as_me:$LINENO: result: $vi_cv_int16" >&5
28299 echo "${ECHO_T}$vi_cv_int16" >&6; }
28300 if test "$vi_cv_int16" = no; then
28301 { { echo "$as_me:$LINENO: error: No signed 16-bit integral type." >&5
28302 echo "$as_me: error: No signed 16-bit integral type." >&2;}
28303 { (exit 1); exit 1; }; }
28305 if test "$vi_cv_int16" != yes; then
28306 int16_decl="typedef $vi_cv_int16 int16_t;"
28310 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
28311 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
28312 if test "${vi_cv_uint32+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28314 else
28315 cat >conftest.$ac_ext <<_ACEOF
28316 /* confdefs.h. */
28317 _ACEOF
28318 cat confdefs.h >>conftest.$ac_ext
28319 cat >>conftest.$ac_ext <<_ACEOF
28320 /* end confdefs.h. */
28321 #include <sys/types.h>
28323 main ()
28325 u_int32_t foo;
28327 return 0;
28329 _ACEOF
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28335 esac
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_compile") 2>conftest.er1
28338 ac_status=$?
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } && {
28344 test -z "$ac_c_werror_flag" ||
28345 test ! -s conftest.err
28346 } && test -s conftest.$ac_objext; then
28347 vi_cv_uint32=yes
28348 else
28349 echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28352 if test "$cross_compiling" = yes; then
28353 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28354 See \`config.log' for more details." >&5
28355 echo "$as_me: error: cannot run test program while cross compiling
28356 See \`config.log' for more details." >&2;}
28357 { (exit 1); exit 1; }; }
28358 else
28359 cat >conftest.$ac_ext <<_ACEOF
28360 /* confdefs.h. */
28361 _ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h. */
28365 main(){exit(sizeof(unsigned int) != 4);}
28366 _ACEOF
28367 rm -f conftest$ac_exeext
28368 if { (ac_try="$ac_link"
28369 case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28372 esac
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_link") 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28378 { (case "(($ac_try" in
28379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380 *) ac_try_echo=$ac_try;;
28381 esac
28382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28383 (eval "$ac_try") 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 vi_cv_uint32="unsigned int"
28388 else
28389 echo "$as_me: program exited with status $ac_status" >&5
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28393 ( exit $ac_status )
28394 if test "$cross_compiling" = yes; then
28395 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28396 See \`config.log' for more details." >&5
28397 echo "$as_me: error: cannot run test program while cross compiling
28398 See \`config.log' for more details." >&2;}
28399 { (exit 1); exit 1; }; }
28400 else
28401 cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h. */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28407 main(){exit(sizeof(unsigned long) != 4);}
28408 _ACEOF
28409 rm -f conftest$ac_exeext
28410 if { (ac_try="$ac_link"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_link") 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 vi_cv_uint32="unsigned long"
28430 else
28431 echo "$as_me: program exited with status $ac_status" >&5
28432 echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28435 ( exit $ac_status )
28436 vi_cv_uint32=no
28438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28451 { echo "$as_me:$LINENO: result: $vi_cv_uint32" >&5
28452 echo "${ECHO_T}$vi_cv_uint32" >&6; }
28453 if test "$vi_cv_uint32" = no; then
28454 { { echo "$as_me:$LINENO: error: No unsigned 32-bit integral type." >&5
28455 echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
28456 { (exit 1); exit 1; }; }
28458 if test "$vi_cv_uint32" != yes; then
28459 u_int32_decl="typedef $vi_cv_uint32 u_int32_t;"
28463 { echo "$as_me:$LINENO: checking for int32_t" >&5
28464 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
28465 if test "${vi_cv_int32+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468 cat >conftest.$ac_ext <<_ACEOF
28469 /* confdefs.h. */
28470 _ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28474 #include <sys/types.h>
28476 main ()
28478 int32_t foo;
28480 return 0;
28482 _ACEOF
28483 rm -f conftest.$ac_objext
28484 if { (ac_try="$ac_compile"
28485 case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_compile") 2>conftest.er1
28491 ac_status=$?
28492 grep -v '^ *+' conftest.er1 >conftest.err
28493 rm -f conftest.er1
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } && {
28497 test -z "$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28499 } && test -s conftest.$ac_objext; then
28500 vi_cv_int32=yes
28501 else
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28505 if test "$cross_compiling" = yes; then
28506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28507 See \`config.log' for more details." >&5
28508 echo "$as_me: error: cannot run test program while cross compiling
28509 See \`config.log' for more details." >&2;}
28510 { (exit 1); exit 1; }; }
28511 else
28512 cat >conftest.$ac_ext <<_ACEOF
28513 /* confdefs.h. */
28514 _ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28518 main(){exit(sizeof(int) != 4);}
28519 _ACEOF
28520 rm -f conftest$ac_exeext
28521 if { (ac_try="$ac_link"
28522 case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28525 esac
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_link") 2>&5
28528 ac_status=$?
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 vi_cv_int32="int"
28541 else
28542 echo "$as_me: program exited with status $ac_status" >&5
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28546 ( exit $ac_status )
28547 if test "$cross_compiling" = yes; then
28548 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28549 See \`config.log' for more details." >&5
28550 echo "$as_me: error: cannot run test program while cross compiling
28551 See \`config.log' for more details." >&2;}
28552 { (exit 1); exit 1; }; }
28553 else
28554 cat >conftest.$ac_ext <<_ACEOF
28555 /* confdefs.h. */
28556 _ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h. */
28560 main(){exit(sizeof(long) != 4);}
28561 _ACEOF
28562 rm -f conftest$ac_exeext
28563 if { (ac_try="$ac_link"
28564 case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_link") 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28573 { (case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28576 esac
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 vi_cv_int32="long"
28583 else
28584 echo "$as_me: program exited with status $ac_status" >&5
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 ( exit $ac_status )
28589 vi_cv_int32=no
28591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28604 { echo "$as_me:$LINENO: result: $vi_cv_int32" >&5
28605 echo "${ECHO_T}$vi_cv_int32" >&6; }
28606 if test "$vi_cv_int32" = no; then
28607 { { echo "$as_me:$LINENO: error: No signed 32-bit integral type." >&5
28608 echo "$as_me: error: No signed 32-bit integral type." >&2;}
28609 { (exit 1); exit 1; }; }
28611 if test "$vi_cv_int32" != yes; then
28612 int32_decl="typedef $vi_cv_int32 int32_t;"
28615 { echo "$as_me:$LINENO: checking return type of fprintf" >&5
28616 echo $ECHO_N "checking return type of fprintf... $ECHO_C" >&6; }
28617 if test "${vi_cv_type_fprintf+set}" = set; then
28618 echo $ECHO_N "(cached) $ECHO_C" >&6
28619 else
28620 cat >conftest.$ac_ext <<_ACEOF
28621 /* confdefs.h. */
28622 _ACEOF
28623 cat confdefs.h >>conftest.$ac_ext
28624 cat >>conftest.$ac_ext <<_ACEOF
28625 /* end confdefs.h. */
28626 #include <stdio.h>
28627 int fprintf ();
28630 main ()
28632 int i;
28634 return 0;
28636 _ACEOF
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28642 esac
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_compile") 2>conftest.er1
28645 ac_status=$?
28646 grep -v '^ *+' conftest.er1 >conftest.err
28647 rm -f conftest.er1
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } && {
28651 test -z "$ac_c_werror_flag" ||
28652 test ! -s conftest.err
28653 } && test -s conftest.$ac_objext; then
28654 vi_cv_type_fprintf=int
28655 else
28656 echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28659 vi_cv_type_fprintf=void
28662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28664 { echo "$as_me:$LINENO: result: $vi_cv_type_fprintf" >&5
28665 echo "${ECHO_T}$vi_cv_type_fprintf" >&6; }
28668 { echo "$as_me:$LINENO: checking fprintf prototype needed" >&5
28669 echo $ECHO_N "checking fprintf prototype needed... $ECHO_C" >&6; }
28670 if test "${vi_cv_proto_fprintf+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672 else
28673 cat >conftest.$ac_ext <<_ACEOF
28674 /* confdefs.h. */
28675 _ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28679 #include <stdio.h>
28680 typedef int (*funcPtr)();
28683 main ()
28685 funcPtr ptr = (funcPtr) fprintf;
28687 return 0;
28689 _ACEOF
28690 rm -f conftest.$ac_objext
28691 if { (ac_try="$ac_compile"
28692 case "(($ac_try" in
28693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694 *) ac_try_echo=$ac_try;;
28695 esac
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697 (eval "$ac_compile") 2>conftest.er1
28698 ac_status=$?
28699 grep -v '^ *+' conftest.er1 >conftest.err
28700 rm -f conftest.er1
28701 cat conftest.err >&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } && {
28704 test -z "$ac_c_werror_flag" ||
28705 test ! -s conftest.err
28706 } && test -s conftest.$ac_objext; then
28707 vi_cv_proto_fprintf=no
28708 else
28709 echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28712 vi_cv_proto_fprintf=yes
28715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28717 { echo "$as_me:$LINENO: result: $vi_cv_proto_fprintf" >&5
28718 echo "${ECHO_T}$vi_cv_proto_fprintf" >&6; }
28719 if test "$vi_cv_proto_fprintf" = yes; then
28720 cat >>confdefs.h <<\_ACEOF
28721 #define NEED_FPRINTF_PROTO 1
28722 _ACEOF
28727 # Check whether --with-db_type was given.
28728 if test "${with_db_type+set}" = set; then
28729 withval=$with_db_type;
28732 case "$with_db_type" in
28733 "db1")
28734 { echo "$as_me:$LINENO: WARNING: Use of db1 is not officially supported." >&5
28735 echo "$as_me: WARNING: Use of db1 is not officially supported." >&2;}
28736 cat >>confdefs.h <<\_ACEOF
28737 #define USE_DB1 1
28738 _ACEOF
28741 "system")
28744 with_db_type="bundled"
28746 esac
28749 # Check whether --with-db_prefix was given.
28750 if test "${with_db_prefix+set}" = set; then
28751 withval=$with_db_prefix;
28755 SAVELDFLAGS="$LDFLAGS"
28756 if test "x$with_db_prefix" != "x"; then
28757 LDFLAGS="-L$with_db_prefix/lib $LDFLAGS"
28758 CPPFLAGS="-I$with_db_prefix/include $CPPFLAGS"
28760 if test "$with_db_type" != db1; then
28761 SAVELIBS="$LIBS"
28763 LIBS="$LIBS -ldb"
28764 cat >conftest.$ac_ext <<_ACEOF
28765 /* confdefs.h. */
28766 _ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h. */
28770 #include <db.h>
28772 main ()
28774 db_create(NULL,NULL,0)
28776 return 0;
28778 _ACEOF
28779 rm -f conftest.$ac_objext conftest$ac_exeext
28780 if { (ac_try="$ac_link"
28781 case "(($ac_try" in
28782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783 *) ac_try_echo=$ac_try;;
28784 esac
28785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28786 (eval "$ac_link") 2>conftest.er1
28787 ac_status=$?
28788 grep -v '^ *+' conftest.er1 >conftest.err
28789 rm -f conftest.er1
28790 cat conftest.err >&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } && {
28793 test -z "$ac_c_werror_flag" ||
28794 test ! -s conftest.err
28795 } && test -s conftest$ac_exeext &&
28796 $as_test_x conftest$ac_exeext; then
28797 vi_cv_dbfatal="no"
28798 else
28799 echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28802 vi_cv_dbfatal="yes"
28805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28806 conftest$ac_exeext conftest.$ac_ext
28807 if test "$vi_cv_dbfatal" = "yes"; then
28808 { { echo "$as_me:$LINENO: error: Need DB 3." >&5
28809 echo "$as_me: error: Need DB 3." >&2;}
28810 { (exit 1); exit 1; }; }
28813 LIBS="$SAVELIBS"
28815 LDFLAGS="$SAVELDFLAGS"
28818 { echo "$as_me:$LINENO: checking if --enable-dynamic-loading option specified" >&5
28819 echo $ECHO_N "checking if --enable-dynamic-loading option specified... $ECHO_C" >&6; }
28820 # Check whether --enable-dynamic-loading was given.
28821 if test "${enable_dynamic_loading+set}" = set; then
28822 enableval=$enable_dynamic_loading; vi_cv_dl=$enableval
28823 else
28824 vi_cv_dl="no"
28827 { echo "$as_me:$LINENO: result: $vi_cv_dl" >&5
28828 echo "${ECHO_T}$vi_cv_dl" >&6; }
28829 if test "$vi_cv_dl" = yes; then
28830 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
28832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834 else
28835 ac_check_lib_save_LIBS=$LIBS
28836 LIBS="-ldl $LIBS"
28837 cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h. */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28844 /* Override any GCC internal prototype to avoid an error.
28845 Use char because int might match the return type of a GCC
28846 builtin and then its argument prototype would still apply. */
28847 #ifdef __cplusplus
28848 extern "C"
28849 #endif
28850 char dlopen ();
28852 main ()
28854 return dlopen ();
28856 return 0;
28858 _ACEOF
28859 rm -f conftest.$ac_objext conftest$ac_exeext
28860 if { (ac_try="$ac_link"
28861 case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28864 esac
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_link") 2>conftest.er1
28867 ac_status=$?
28868 grep -v '^ *+' conftest.er1 >conftest.err
28869 rm -f conftest.er1
28870 cat conftest.err >&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } && {
28873 test -z "$ac_c_werror_flag" ||
28874 test ! -s conftest.err
28875 } && test -s conftest$ac_exeext &&
28876 $as_test_x conftest$ac_exeext; then
28877 ac_cv_lib_dl_dlopen=yes
28878 else
28879 echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 ac_cv_lib_dl_dlopen=no
28885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28886 conftest$ac_exeext conftest.$ac_ext
28887 LIBS=$ac_check_lib_save_LIBS
28889 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
28891 if test $ac_cv_lib_dl_dlopen = yes; then
28892 vi_cv_dlfatal="no"
28893 else
28894 vi_cv_dlfatal="yes"
28897 if test "$vi_cv_dlfatal" = "yes"; then
28898 { { echo "$as_me:$LINENO: error: Need dl to support dynamic loading." >&5
28899 echo "$as_me: error: Need dl to support dynamic loading." >&2;}
28900 { (exit 1); exit 1; }; }
28902 OLDPATH="$PATH"
28904 PATH="$with_db_prefix/lib:/usr/lib:/lib"
28905 # Extract the first word of "libdb-3.so", so it can be a program name with args.
28906 set dummy libdb-3.so; ac_word=$2
28907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28909 if test "${ac_cv_path_vi_cv_path_db3+set}" = set; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28911 else
28912 case $vi_cv_path_db3 in
28913 [\\/]* | ?:[\\/]*)
28914 ac_cv_path_vi_cv_path_db3="$vi_cv_path_db3" # Let the user override the test with a path.
28917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28918 for as_dir in $PATH
28920 IFS=$as_save_IFS
28921 test -z "$as_dir" && as_dir=.
28922 for ac_exec_ext in '' $ac_executable_extensions; do
28923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28924 ac_cv_path_vi_cv_path_db3="$as_dir/$ac_word$ac_exec_ext"
28925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28926 break 2
28928 done
28929 done
28930 IFS=$as_save_IFS
28932 test -z "$ac_cv_path_vi_cv_path_db3" && ac_cv_path_vi_cv_path_db3="no"
28934 esac
28936 vi_cv_path_db3=$ac_cv_path_vi_cv_path_db3
28937 if test -n "$vi_cv_path_db3"; then
28938 { echo "$as_me:$LINENO: result: $vi_cv_path_db3" >&5
28939 echo "${ECHO_T}$vi_cv_path_db3" >&6; }
28940 else
28941 { echo "$as_me:$LINENO: result: no" >&5
28942 echo "${ECHO_T}no" >&6; }
28946 if test "$vi_cv_path_db3" = no; then
28947 { { echo "$as_me:$LINENO: error: Path of libdb-3.so not found." >&5
28948 echo "$as_me: error: Path of libdb-3.so not found." >&2;}
28949 { (exit 1); exit 1; }; }
28951 PATH="$OLDPATH"
28953 cat >>confdefs.h <<\_ACEOF
28954 #define USE_DYNAMIC_LOADING 1
28955 _ACEOF
28957 LIBOBJS="dldb.o $LIBOBJS"
28958 dl_src=../common/dldb.c
28959 LIBS="-ldl $LIBS"
28960 else
28961 LIBS="-ldb $LIBS"
28962 if test "X$with_db_prefix" != "X"; then
28963 LDFLAGS="`echo $with_db_prefix/lib | sed "$LRscript"` $LDFLAGS"
28968 # Check whether --with-db_build was given.
28969 if test "${with_db_build+set}" = set; then
28970 withval=$with_db_build;
28973 if test "x$with_db_build" != "x"; then
28974 vi_cv_dbsrc=`$AWK '/^srcdir/ {gsub("srcdir[ \t]*=","");print $1}' \
28975 $with_db_build/Makefile`
28976 case $with_db_build in
28977 *[\\/]);;
28979 with_db_build="$with_db_build/";;
28980 esac
28981 case $vi_cv_dbsrc in
28982 [\\/]*);;
28984 vi_cv_dbsrc="$with_db_build$vi_cv_dbsrc";;
28985 esac
28988 vi_cv_db4="no"
28989 # Check whether --enable-log4 was given.
28990 if test "${enable_log4+set}" = set; then
28991 enableval=$enable_log4;
28992 { echo "$as_me:$LINENO: checking for DB 4" >&5
28993 echo $ECHO_N "checking for DB 4... $ECHO_C" >&6; }
28994 cat >conftest.$ac_ext <<_ACEOF
28995 /* confdefs.h. */
28996 _ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h. */
29000 #include <db.h>
29001 DB_VERSION_MAJOR
29002 _ACEOF
29003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29004 $EGREP "^4" >/dev/null 2>&1; then
29005 vi_cv_db4="yes"
29006 else
29007 vi_cv_db4="no"
29009 rm -f conftest*
29011 { echo "$as_me:$LINENO: result: $vi_cv_db4" >&5
29012 echo "${ECHO_T}$vi_cv_db4" >&6; }
29016 if test "$vi_cv_db4" = "yes"; then
29017 CPPFLAGS="-I$vi_cv_dbsrc/include $CPPFLAGS"
29018 CPPFLAGS="-I$vi_cv_dbsrc/include_auto $CPPFLAGS"
29019 CPPFLAGS="-I$with_db_build $CPPFLAGS"
29020 cat >>confdefs.h <<\_ACEOF
29021 #define USE_DB4_LOGGING 1
29022 _ACEOF
29024 LIBOBJS="log4.o vi_auto.o vi_rec.o $LIBOBJS"
29025 else
29026 LIBOBJS="log.o $LIBOBJS"
29029 { echo "$as_me:$LINENO: checking if --disable-re option specified" >&5
29030 echo $ECHO_N "checking if --disable-re option specified... $ECHO_C" >&6; }
29031 # Check whether --enable-re was given.
29032 if test "${enable_re+set}" = set; then
29033 enableval=$enable_re; if test "$enable_re" = "yes"; then
29034 vi_cv_re_lib="bundled RE"
29035 else
29036 vi_cv_re_lib="other RE"
29038 else
29039 vi_cv_re_lib="bundled RE"
29042 { echo "$as_me:$LINENO: result: $vi_cv_re_lib" >&5
29043 echo "${ECHO_T}$vi_cv_re_lib" >&6; }
29044 case "$vi_cv_re_lib" in
29045 "bundled RE")
29046 CPPFLAGS="-I\$(visrcdir)/regex $CPPFLAGS"
29047 LIBOBJS="regcomp.o regerror.o regexec.o regfree.o $LIBOBJS";;
29048 "other RE")
29050 esac
29052 ac_config_files="$ac_config_files Makefile port.h:port.h.in pathnames.h:pathnames.h.in recover:recover.in"
29054 cat >confcache <<\_ACEOF
29055 # This file is a shell script that caches the results of configure
29056 # tests run on this system so they can be shared between configure
29057 # scripts and configure runs, see configure's option --config-cache.
29058 # It is not useful on other systems. If it contains results you don't
29059 # want to keep, you may remove or edit it.
29061 # config.status only pays attention to the cache file if you give it
29062 # the --recheck option to rerun configure.
29064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29066 # following values.
29068 _ACEOF
29070 # The following way of writing the cache mishandles newlines in values,
29071 # but we know of no workaround that is simple, portable, and efficient.
29072 # So, we kill variables containing newlines.
29073 # Ultrix sh set writes to stderr and can't be redirected directly,
29074 # and sets the high bit in the cache file unless we assign to the vars.
29076 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29077 eval ac_val=\$$ac_var
29078 case $ac_val in #(
29079 *${as_nl}*)
29080 case $ac_var in #(
29081 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29082 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29083 esac
29084 case $ac_var in #(
29085 _ | IFS | as_nl) ;; #(
29086 *) $as_unset $ac_var ;;
29087 esac ;;
29088 esac
29089 done
29091 (set) 2>&1 |
29092 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29093 *${as_nl}ac_space=\ *)
29094 # `set' does not quote correctly, so add quotes (double-quote
29095 # substitution turns \\\\ into \\, and sed turns \\ into \).
29096 sed -n \
29097 "s/'/'\\\\''/g;
29098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29099 ;; #(
29101 # `set' quotes correctly as required by POSIX, so do not add quotes.
29102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29104 esac |
29105 sort
29107 sed '
29108 /^ac_cv_env_/b end
29109 t clear
29110 :clear
29111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29112 t end
29113 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29114 :end' >>confcache
29115 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29116 if test -w "$cache_file"; then
29117 test "x$cache_file" != "x/dev/null" &&
29118 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29119 echo "$as_me: updating cache $cache_file" >&6;}
29120 cat confcache >$cache_file
29121 else
29122 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29123 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29126 rm -f confcache
29128 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29129 # Let make expand exec_prefix.
29130 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29132 DEFS=-DHAVE_CONFIG_H
29134 ac_libobjs=
29135 ac_ltlibobjs=
29136 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29137 # 1. Remove the extension, and $U if already installed.
29138 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29139 ac_i=`echo "$ac_i" | sed "$ac_script"`
29140 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29141 # will be set to the directory where LIBOBJS objects are built.
29142 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29143 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29144 done
29145 LIBOBJS=$ac_libobjs
29147 LTLIBOBJS=$ac_ltlibobjs
29150 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29151 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29152 Usually this means the macro was only invoked conditionally." >&5
29153 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29154 Usually this means the macro was only invoked conditionally." >&2;}
29155 { (exit 1); exit 1; }; }
29157 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29158 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29159 Usually this means the macro was only invoked conditionally." >&5
29160 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29161 Usually this means the macro was only invoked conditionally." >&2;}
29162 { (exit 1); exit 1; }; }
29164 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29165 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29166 Usually this means the macro was only invoked conditionally." >&5
29167 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29168 Usually this means the macro was only invoked conditionally." >&2;}
29169 { (exit 1); exit 1; }; }
29171 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29172 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29173 Usually this means the macro was only invoked conditionally." >&5
29174 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29175 Usually this means the macro was only invoked conditionally." >&2;}
29176 { (exit 1); exit 1; }; }
29178 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29179 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29180 Usually this means the macro was only invoked conditionally." >&5
29181 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29182 Usually this means the macro was only invoked conditionally." >&2;}
29183 { (exit 1); exit 1; }; }
29186 : ${CONFIG_STATUS=./config.status}
29187 ac_clean_files_save=$ac_clean_files
29188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29191 cat >$CONFIG_STATUS <<_ACEOF
29192 #! $SHELL
29193 # Generated by $as_me.
29194 # Run this file to recreate the current configuration.
29195 # Compiler output produced by configure, useful for debugging
29196 # configure, is in config.log if it exists.
29198 debug=false
29199 ac_cs_recheck=false
29200 ac_cs_silent=false
29201 SHELL=\${CONFIG_SHELL-$SHELL}
29202 _ACEOF
29204 cat >>$CONFIG_STATUS <<\_ACEOF
29205 ## --------------------- ##
29206 ## M4sh Initialization. ##
29207 ## --------------------- ##
29209 # Be more Bourne compatible
29210 DUALCASE=1; export DUALCASE # for MKS sh
29211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29212 emulate sh
29213 NULLCMD=:
29214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29215 # is contrary to our usage. Disable this feature.
29216 alias -g '${1+"$@"}'='"$@"'
29217 setopt NO_GLOB_SUBST
29218 else
29219 case `(set -o) 2>/dev/null` in
29220 *posix*) set -o posix ;;
29221 esac
29228 # PATH needs CR
29229 # Avoid depending upon Character Ranges.
29230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29233 as_cr_digits='0123456789'
29234 as_cr_alnum=$as_cr_Letters$as_cr_digits
29236 # The user is always right.
29237 if test "${PATH_SEPARATOR+set}" != set; then
29238 echo "#! /bin/sh" >conf$$.sh
29239 echo "exit 0" >>conf$$.sh
29240 chmod +x conf$$.sh
29241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29242 PATH_SEPARATOR=';'
29243 else
29244 PATH_SEPARATOR=:
29246 rm -f conf$$.sh
29249 # Support unset when possible.
29250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29251 as_unset=unset
29252 else
29253 as_unset=false
29257 # IFS
29258 # We need space, tab and new line, in precisely that order. Quoting is
29259 # there to prevent editors from complaining about space-tab.
29260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29261 # splitting by setting IFS to empty value.)
29262 as_nl='
29264 IFS=" "" $as_nl"
29266 # Find who we are. Look in the path if we contain no directory separator.
29267 case $0 in
29268 *[\\/]* ) as_myself=$0 ;;
29269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29270 for as_dir in $PATH
29272 IFS=$as_save_IFS
29273 test -z "$as_dir" && as_dir=.
29274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29275 done
29276 IFS=$as_save_IFS
29279 esac
29280 # We did not find ourselves, most probably we were run as `sh COMMAND'
29281 # in which case we are not to be found in the path.
29282 if test "x$as_myself" = x; then
29283 as_myself=$0
29285 if test ! -f "$as_myself"; then
29286 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29287 { (exit 1); exit 1; }
29290 # Work around bugs in pre-3.0 UWIN ksh.
29291 for as_var in ENV MAIL MAILPATH
29292 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29293 done
29294 PS1='$ '
29295 PS2='> '
29296 PS4='+ '
29298 # NLS nuisances.
29299 for as_var in \
29300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29302 LC_TELEPHONE LC_TIME
29304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29305 eval $as_var=C; export $as_var
29306 else
29307 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29309 done
29311 # Required to use basename.
29312 if expr a : '\(a\)' >/dev/null 2>&1 &&
29313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29314 as_expr=expr
29315 else
29316 as_expr=false
29319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29320 as_basename=basename
29321 else
29322 as_basename=false
29326 # Name of the executable.
29327 as_me=`$as_basename -- "$0" ||
29328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29329 X"$0" : 'X\(//\)$' \| \
29330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29331 echo X/"$0" |
29332 sed '/^.*\/\([^/][^/]*\)\/*$/{
29333 s//\1/
29336 /^X\/\(\/\/\)$/{
29337 s//\1/
29340 /^X\/\(\/\).*/{
29341 s//\1/
29344 s/.*/./; q'`
29346 # CDPATH.
29347 $as_unset CDPATH
29351 as_lineno_1=$LINENO
29352 as_lineno_2=$LINENO
29353 test "x$as_lineno_1" != "x$as_lineno_2" &&
29354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29357 # uniformly replaced by the line number. The first 'sed' inserts a
29358 # line-number line after each line using $LINENO; the second 'sed'
29359 # does the real work. The second script uses 'N' to pair each
29360 # line-number line with the line containing $LINENO, and appends
29361 # trailing '-' during substitution so that $LINENO is not a special
29362 # case at line end.
29363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29364 # scripts with optimization help from Paolo Bonzini. Blame Lee
29365 # E. McMahon (1931-1989) for sed's syntax. :-)
29366 sed -n '
29368 /[$]LINENO/=
29369 ' <$as_myself |
29370 sed '
29371 s/[$]LINENO.*/&-/
29372 t lineno
29374 :lineno
29376 :loop
29377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29378 t loop
29379 s/-\n.*//
29380 ' >$as_me.lineno &&
29381 chmod +x "$as_me.lineno" ||
29382 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29383 { (exit 1); exit 1; }; }
29385 # Don't try to exec as it changes $[0], causing all sort of problems
29386 # (the dirname of $[0] is not the place where we might find the
29387 # original and so on. Autoconf is especially sensitive to this).
29388 . "./$as_me.lineno"
29389 # Exit status is that of the last command.
29390 exit
29394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29395 as_dirname=dirname
29396 else
29397 as_dirname=false
29400 ECHO_C= ECHO_N= ECHO_T=
29401 case `echo -n x` in
29402 -n*)
29403 case `echo 'x\c'` in
29404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29405 *) ECHO_C='\c';;
29406 esac;;
29408 ECHO_N='-n';;
29409 esac
29411 if expr a : '\(a\)' >/dev/null 2>&1 &&
29412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29413 as_expr=expr
29414 else
29415 as_expr=false
29418 rm -f conf$$ conf$$.exe conf$$.file
29419 if test -d conf$$.dir; then
29420 rm -f conf$$.dir/conf$$.file
29421 else
29422 rm -f conf$$.dir
29423 mkdir conf$$.dir
29425 echo >conf$$.file
29426 if ln -s conf$$.file conf$$ 2>/dev/null; then
29427 as_ln_s='ln -s'
29428 # ... but there are two gotchas:
29429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29431 # In both cases, we have to default to `cp -p'.
29432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29433 as_ln_s='cp -p'
29434 elif ln conf$$.file conf$$ 2>/dev/null; then
29435 as_ln_s=ln
29436 else
29437 as_ln_s='cp -p'
29439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29440 rmdir conf$$.dir 2>/dev/null
29442 if mkdir -p . 2>/dev/null; then
29443 as_mkdir_p=:
29444 else
29445 test -d ./-p && rmdir ./-p
29446 as_mkdir_p=false
29449 if test -x / >/dev/null 2>&1; then
29450 as_test_x='test -x'
29451 else
29452 if ls -dL / >/dev/null 2>&1; then
29453 as_ls_L_option=L
29454 else
29455 as_ls_L_option=
29457 as_test_x='
29458 eval sh -c '\''
29459 if test -d "$1"; then
29460 test -d "$1/.";
29461 else
29462 case $1 in
29463 -*)set "./$1";;
29464 esac;
29465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29466 ???[sx]*):;;*)false;;esac;fi
29467 '\'' sh
29470 as_executable_p=$as_test_x
29472 # Sed expression to map a string onto a valid CPP name.
29473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29475 # Sed expression to map a string onto a valid variable name.
29476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29479 exec 6>&1
29481 # Save the log message, to keep $[0] and so on meaningful, and to
29482 # report actual input values of CONFIG_FILES etc. instead of their
29483 # values after options handling.
29484 ac_log="
29485 This file was extended by $as_me, which was
29486 generated by GNU Autoconf 2.61. Invocation command line was
29488 CONFIG_FILES = $CONFIG_FILES
29489 CONFIG_HEADERS = $CONFIG_HEADERS
29490 CONFIG_LINKS = $CONFIG_LINKS
29491 CONFIG_COMMANDS = $CONFIG_COMMANDS
29492 $ $0 $@
29494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29497 _ACEOF
29499 cat >>$CONFIG_STATUS <<_ACEOF
29500 # Files that config.status was made for.
29501 config_files="$ac_config_files"
29502 config_headers="$ac_config_headers"
29503 config_commands="$ac_config_commands"
29505 _ACEOF
29507 cat >>$CONFIG_STATUS <<\_ACEOF
29508 ac_cs_usage="\
29509 \`$as_me' instantiates files from templates according to the
29510 current configuration.
29512 Usage: $0 [OPTIONS] [FILE]...
29514 -h, --help print this help, then exit
29515 -V, --version print version number and configuration settings, then exit
29516 -q, --quiet do not print progress messages
29517 -d, --debug don't remove temporary files
29518 --recheck update $as_me by reconfiguring in the same conditions
29519 --file=FILE[:TEMPLATE]
29520 instantiate the configuration file FILE
29521 --header=FILE[:TEMPLATE]
29522 instantiate the configuration header FILE
29524 Configuration files:
29525 $config_files
29527 Configuration headers:
29528 $config_headers
29530 Configuration commands:
29531 $config_commands
29533 Report bugs to <bug-autoconf@gnu.org>."
29535 _ACEOF
29536 cat >>$CONFIG_STATUS <<_ACEOF
29537 ac_cs_version="\\
29538 config.status
29539 configured by $0, generated by GNU Autoconf 2.61,
29540 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29542 Copyright (C) 2006 Free Software Foundation, Inc.
29543 This config.status script is free software; the Free Software Foundation
29544 gives unlimited permission to copy, distribute and modify it."
29546 ac_pwd='$ac_pwd'
29547 srcdir='$srcdir'
29548 INSTALL='$INSTALL'
29549 MKDIR_P='$MKDIR_P'
29550 _ACEOF
29552 cat >>$CONFIG_STATUS <<\_ACEOF
29553 # If no file are specified by the user, then we need to provide default
29554 # value. By we need to know if files were specified by the user.
29555 ac_need_defaults=:
29556 while test $# != 0
29558 case $1 in
29559 --*=*)
29560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29562 ac_shift=:
29565 ac_option=$1
29566 ac_optarg=$2
29567 ac_shift=shift
29569 esac
29571 case $ac_option in
29572 # Handling of the options.
29573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29574 ac_cs_recheck=: ;;
29575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29576 echo "$ac_cs_version"; exit ;;
29577 --debug | --debu | --deb | --de | --d | -d )
29578 debug=: ;;
29579 --file | --fil | --fi | --f )
29580 $ac_shift
29581 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29582 ac_need_defaults=false;;
29583 --header | --heade | --head | --hea )
29584 $ac_shift
29585 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29586 ac_need_defaults=false;;
29587 --he | --h)
29588 # Conflict between --help and --header
29589 { echo "$as_me: error: ambiguous option: $1
29590 Try \`$0 --help' for more information." >&2
29591 { (exit 1); exit 1; }; };;
29592 --help | --hel | -h )
29593 echo "$ac_cs_usage"; exit ;;
29594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29596 ac_cs_silent=: ;;
29598 # This is an error.
29599 -*) { echo "$as_me: error: unrecognized option: $1
29600 Try \`$0 --help' for more information." >&2
29601 { (exit 1); exit 1; }; } ;;
29603 *) ac_config_targets="$ac_config_targets $1"
29604 ac_need_defaults=false ;;
29606 esac
29607 shift
29608 done
29610 ac_configure_extra_args=
29612 if $ac_cs_silent; then
29613 exec 6>/dev/null
29614 ac_configure_extra_args="$ac_configure_extra_args --silent"
29617 _ACEOF
29618 cat >>$CONFIG_STATUS <<_ACEOF
29619 if \$ac_cs_recheck; then
29620 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29621 CONFIG_SHELL=$SHELL
29622 export CONFIG_SHELL
29623 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29626 _ACEOF
29627 cat >>$CONFIG_STATUS <<\_ACEOF
29628 exec 5>>config.log
29630 echo
29631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29632 ## Running $as_me. ##
29633 _ASBOX
29634 echo "$ac_log"
29635 } >&5
29637 _ACEOF
29638 cat >>$CONFIG_STATUS <<_ACEOF
29640 # INIT-COMMANDS
29642 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29644 _ACEOF
29646 cat >>$CONFIG_STATUS <<\_ACEOF
29648 # Handling of arguments.
29649 for ac_config_target in $ac_config_targets
29651 case $ac_config_target in
29652 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29655 "port.h") CONFIG_FILES="$CONFIG_FILES port.h:port.h.in" ;;
29656 "pathnames.h") CONFIG_FILES="$CONFIG_FILES pathnames.h:pathnames.h.in" ;;
29657 "recover") CONFIG_FILES="$CONFIG_FILES recover:recover.in" ;;
29659 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29660 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29661 { (exit 1); exit 1; }; };;
29662 esac
29663 done
29666 # If the user did not use the arguments to specify the items to instantiate,
29667 # then the envvar interface is used. Set only those that are not.
29668 # We use the long form for the default assignment because of an extremely
29669 # bizarre bug on SunOS 4.1.3.
29670 if $ac_need_defaults; then
29671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29676 # Have a temporary directory for convenience. Make it in the build tree
29677 # simply because there is no reason against having it here, and in addition,
29678 # creating and moving files from /tmp can sometimes cause problems.
29679 # Hook for its removal unless debugging.
29680 # Note that there is a small window in which the directory will not be cleaned:
29681 # after its creation but before its name has been assigned to `$tmp'.
29682 $debug ||
29684 tmp=
29685 trap 'exit_status=$?
29686 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29688 trap '{ (exit 1); exit 1; }' 1 2 13 15
29690 # Create a (secure) tmp directory for tmp files.
29693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29694 test -n "$tmp" && test -d "$tmp"
29695 } ||
29697 tmp=./conf$$-$RANDOM
29698 (umask 077 && mkdir "$tmp")
29699 } ||
29701 echo "$me: cannot create a temporary directory in ." >&2
29702 { (exit 1); exit 1; }
29706 # Set up the sed scripts for CONFIG_FILES section.
29709 # No need to generate the scripts if there are no CONFIG_FILES.
29710 # This happens for instance when ./config.status config.h
29711 if test -n "$CONFIG_FILES"; then
29713 _ACEOF
29717 ac_delim='%!_!# '
29718 for ac_last_try in false false false false false :; do
29719 cat >conf$$subs.sed <<_ACEOF
29720 SHELL!$SHELL$ac_delim
29721 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29722 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29723 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29724 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29725 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29726 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29727 exec_prefix!$exec_prefix$ac_delim
29728 prefix!$prefix$ac_delim
29729 program_transform_name!$program_transform_name$ac_delim
29730 bindir!$bindir$ac_delim
29731 sbindir!$sbindir$ac_delim
29732 libexecdir!$libexecdir$ac_delim
29733 datarootdir!$datarootdir$ac_delim
29734 datadir!$datadir$ac_delim
29735 sysconfdir!$sysconfdir$ac_delim
29736 sharedstatedir!$sharedstatedir$ac_delim
29737 localstatedir!$localstatedir$ac_delim
29738 includedir!$includedir$ac_delim
29739 oldincludedir!$oldincludedir$ac_delim
29740 docdir!$docdir$ac_delim
29741 infodir!$infodir$ac_delim
29742 htmldir!$htmldir$ac_delim
29743 dvidir!$dvidir$ac_delim
29744 pdfdir!$pdfdir$ac_delim
29745 psdir!$psdir$ac_delim
29746 libdir!$libdir$ac_delim
29747 localedir!$localedir$ac_delim
29748 mandir!$mandir$ac_delim
29749 DEFS!$DEFS$ac_delim
29750 ECHO_C!$ECHO_C$ac_delim
29751 ECHO_N!$ECHO_N$ac_delim
29752 ECHO_T!$ECHO_T$ac_delim
29753 LIBS!$LIBS$ac_delim
29754 build_alias!$build_alias$ac_delim
29755 host_alias!$host_alias$ac_delim
29756 target_alias!$target_alias$ac_delim
29757 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29758 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29759 INSTALL_DATA!$INSTALL_DATA$ac_delim
29760 am__isrc!$am__isrc$ac_delim
29761 CYGPATH_W!$CYGPATH_W$ac_delim
29762 PACKAGE!$PACKAGE$ac_delim
29763 VERSION!$VERSION$ac_delim
29764 ACLOCAL!$ACLOCAL$ac_delim
29765 AUTOCONF!$AUTOCONF$ac_delim
29766 AUTOMAKE!$AUTOMAKE$ac_delim
29767 AUTOHEADER!$AUTOHEADER$ac_delim
29768 MAKEINFO!$MAKEINFO$ac_delim
29769 install_sh!$install_sh$ac_delim
29770 STRIP!$STRIP$ac_delim
29771 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29772 mkdir_p!$mkdir_p$ac_delim
29773 AWK!$AWK$ac_delim
29774 SET_MAKE!$SET_MAKE$ac_delim
29775 am__leading_dot!$am__leading_dot$ac_delim
29776 AMTAR!$AMTAR$ac_delim
29777 am__tar!$am__tar$ac_delim
29778 am__untar!$am__untar$ac_delim
29779 build!$build$ac_delim
29780 build_cpu!$build_cpu$ac_delim
29781 build_vendor!$build_vendor$ac_delim
29782 build_os!$build_os$ac_delim
29783 host!$host$ac_delim
29784 host_cpu!$host_cpu$ac_delim
29785 host_vendor!$host_vendor$ac_delim
29786 host_os!$host_os$ac_delim
29787 CC!$CC$ac_delim
29788 CFLAGS!$CFLAGS$ac_delim
29789 LDFLAGS!$LDFLAGS$ac_delim
29790 CPPFLAGS!$CPPFLAGS$ac_delim
29791 ac_ct_CC!$ac_ct_CC$ac_delim
29792 EXEEXT!$EXEEXT$ac_delim
29793 OBJEXT!$OBJEXT$ac_delim
29794 DEPDIR!$DEPDIR$ac_delim
29795 am__include!$am__include$ac_delim
29796 am__quote!$am__quote$ac_delim
29797 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29798 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29799 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29800 CCDEPMODE!$CCDEPMODE$ac_delim
29801 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29802 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29803 SED!$SED$ac_delim
29804 GREP!$GREP$ac_delim
29805 EGREP!$EGREP$ac_delim
29806 LN_S!$LN_S$ac_delim
29807 ECHO!$ECHO$ac_delim
29808 AR!$AR$ac_delim
29809 RANLIB!$RANLIB$ac_delim
29810 CPP!$CPP$ac_delim
29811 CXX!$CXX$ac_delim
29812 CXXFLAGS!$CXXFLAGS$ac_delim
29813 ac_ct_CXX!$ac_ct_CXX$ac_delim
29814 CXXDEPMODE!$CXXDEPMODE$ac_delim
29815 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29816 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29817 _ACEOF
29819 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29820 break
29821 elif $ac_last_try; then
29822 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29824 { (exit 1); exit 1; }; }
29825 else
29826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29828 done
29830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29831 if test -n "$ac_eof"; then
29832 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29833 ac_eof=`expr $ac_eof + 1`
29836 cat >>$CONFIG_STATUS <<_ACEOF
29837 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29839 _ACEOF
29840 sed '
29841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29842 s/^/s,@/; s/!/@,|#_!!_#|/
29845 s/'"$ac_delim"'$/,g/; t
29846 s/$/\\/; p
29847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29848 ' >>$CONFIG_STATUS <conf$$subs.sed
29849 rm -f conf$$subs.sed
29850 cat >>$CONFIG_STATUS <<_ACEOF
29851 CEOF$ac_eof
29852 _ACEOF
29855 ac_delim='%!_!# '
29856 for ac_last_try in false false false false false :; do
29857 cat >conf$$subs.sed <<_ACEOF
29858 CXXCPP!$CXXCPP$ac_delim
29859 F77!$F77$ac_delim
29860 FFLAGS!$FFLAGS$ac_delim
29861 ac_ct_F77!$ac_ct_F77$ac_delim
29862 LIBTOOL!$LIBTOOL$ac_delim
29863 OPTFLAG!$OPTFLAG$ac_delim
29864 no_op_OPTFLAG!$no_op_OPTFLAG$ac_delim
29865 vi_cv_path_shell!$vi_cv_path_shell$ac_delim
29866 vi_cv_path_sendmail!$vi_cv_path_sendmail$ac_delim
29867 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
29868 vi_cv_path_preserve!$vi_cv_path_preserve$ac_delim
29869 vi_cv_path_fuser!$vi_cv_path_fuser$ac_delim
29870 vi_cv_path_lsof!$vi_cv_path_lsof$ac_delim
29871 INUSE!$INUSE$ac_delim
29872 vi_cv_path_ar!$vi_cv_path_ar$ac_delim
29873 vi_cv_path_chmod!$vi_cv_path_chmod$ac_delim
29874 vi_cv_path_cp!$vi_cv_path_cp$ac_delim
29875 vi_cv_path_ln!$vi_cv_path_ln$ac_delim
29876 vi_cv_path_mkdir!$vi_cv_path_mkdir$ac_delim
29877 vi_cv_path_rm!$vi_cv_path_rm$ac_delim
29878 vi_cv_path_ranlib!$vi_cv_path_ranlib$ac_delim
29879 vi_cv_path_strip!$vi_cv_path_strip$ac_delim
29880 XMKMF!$XMKMF$ac_delim
29881 XINCS!$XINCS$ac_delim
29882 LIBOBJS!$LIBOBJS$ac_delim
29883 vi_programs!$vi_programs$ac_delim
29884 vi_ipc!$vi_ipc$ac_delim
29885 GTKLIBS!$GTKLIBS$ac_delim
29886 GTKINCS!$GTKINCS$ac_delim
29887 PKG_CONFIG!$PKG_CONFIG$ac_delim
29888 GTK_CONFIG!$GTK_CONFIG$ac_delim
29889 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
29890 GTK_LIBS!$GTK_LIBS$ac_delim
29891 MOTIFLIBS!$MOTIFLIBS$ac_delim
29892 IPCOBJS!$IPCOBJS$ac_delim
29893 shrpenv!$shrpenv$ac_delim
29894 perlldflags!$perlldflags$ac_delim
29895 perllibs!$perllibs$ac_delim
29896 vi_cv_perllib!$vi_cv_perllib$ac_delim
29897 CURSLIBS!$CURSLIBS$ac_delim
29898 CURSCPPFLAGS!$CURSCPPFLAGS$ac_delim
29899 CURSLDFLAGS!$CURSLDFLAGS$ac_delim
29900 HAVE_NCURSESW!$HAVE_NCURSESW$ac_delim
29901 u_char_decl!$u_char_decl$ac_delim
29902 u_short_decl!$u_short_decl$ac_delim
29903 u_int_decl!$u_int_decl$ac_delim
29904 u_long_decl!$u_long_decl$ac_delim
29905 u_int8_decl!$u_int8_decl$ac_delim
29906 u_int16_decl!$u_int16_decl$ac_delim
29907 int16_decl!$int16_decl$ac_delim
29908 u_int32_decl!$u_int32_decl$ac_delim
29909 int32_decl!$int32_decl$ac_delim
29910 NEED_FPRINTF_PROTO!$NEED_FPRINTF_PROTO$ac_delim
29911 dl_src!$dl_src$ac_delim
29912 vi_cv_path_db3!$vi_cv_path_db3$ac_delim
29913 LTLIBOBJS!$LTLIBOBJS$ac_delim
29914 _ACEOF
29916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
29917 break
29918 elif $ac_last_try; then
29919 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29921 { (exit 1); exit 1; }; }
29922 else
29923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29925 done
29927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29928 if test -n "$ac_eof"; then
29929 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29930 ac_eof=`expr $ac_eof + 1`
29933 cat >>$CONFIG_STATUS <<_ACEOF
29934 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29936 _ACEOF
29937 sed '
29938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29939 s/^/s,@/; s/!/@,|#_!!_#|/
29942 s/'"$ac_delim"'$/,g/; t
29943 s/$/\\/; p
29944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29945 ' >>$CONFIG_STATUS <conf$$subs.sed
29946 rm -f conf$$subs.sed
29947 cat >>$CONFIG_STATUS <<_ACEOF
29948 :end
29949 s/|#_!!_#|//g
29950 CEOF$ac_eof
29951 _ACEOF
29954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29956 # trailing colons and then remove the whole line if VPATH becomes empty
29957 # (actually we leave an empty line to preserve line numbers).
29958 if test "x$srcdir" = x.; then
29959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29960 s/:*\$(srcdir):*/:/
29961 s/:*\${srcdir}:*/:/
29962 s/:*@srcdir@:*/:/
29963 s/^\([^=]*=[ ]*\):*/\1/
29964 s/:*$//
29965 s/^[^=]*=[ ]*$//
29969 cat >>$CONFIG_STATUS <<\_ACEOF
29970 fi # test -n "$CONFIG_FILES"
29973 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29975 case $ac_tag in
29976 :[FHLC]) ac_mode=$ac_tag; continue;;
29977 esac
29978 case $ac_mode$ac_tag in
29979 :[FHL]*:*);;
29980 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29981 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29982 { (exit 1); exit 1; }; };;
29983 :[FH]-) ac_tag=-:-;;
29984 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29985 esac
29986 ac_save_IFS=$IFS
29987 IFS=:
29988 set x $ac_tag
29989 IFS=$ac_save_IFS
29990 shift
29991 ac_file=$1
29992 shift
29994 case $ac_mode in
29995 :L) ac_source=$1;;
29996 :[FH])
29997 ac_file_inputs=
29998 for ac_f
30000 case $ac_f in
30001 -) ac_f="$tmp/stdin";;
30002 *) # Look for the file first in the build tree, then in the source tree
30003 # (if the path is not absolute). The absolute path cannot be DOS-style,
30004 # because $ac_f cannot contain `:'.
30005 test -f "$ac_f" ||
30006 case $ac_f in
30007 [\\/$]*) false;;
30008 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30009 esac ||
30010 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30011 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30012 { (exit 1); exit 1; }; };;
30013 esac
30014 ac_file_inputs="$ac_file_inputs $ac_f"
30015 done
30017 # Let's still pretend it is `configure' which instantiates (i.e., don't
30018 # use $as_me), people would be surprised to read:
30019 # /* config.h. Generated by config.status. */
30020 configure_input="Generated from "`IFS=:
30021 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30022 if test x"$ac_file" != x-; then
30023 configure_input="$ac_file. $configure_input"
30024 { echo "$as_me:$LINENO: creating $ac_file" >&5
30025 echo "$as_me: creating $ac_file" >&6;}
30028 case $ac_tag in
30029 *:-:* | *:-) cat >"$tmp/stdin";;
30030 esac
30032 esac
30034 ac_dir=`$as_dirname -- "$ac_file" ||
30035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30036 X"$ac_file" : 'X\(//\)[^/]' \| \
30037 X"$ac_file" : 'X\(//\)$' \| \
30038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30039 echo X"$ac_file" |
30040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30041 s//\1/
30044 /^X\(\/\/\)[^/].*/{
30045 s//\1/
30048 /^X\(\/\/\)$/{
30049 s//\1/
30052 /^X\(\/\).*/{
30053 s//\1/
30056 s/.*/./; q'`
30057 { as_dir="$ac_dir"
30058 case $as_dir in #(
30059 -*) as_dir=./$as_dir;;
30060 esac
30061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30062 as_dirs=
30063 while :; do
30064 case $as_dir in #(
30065 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30066 *) as_qdir=$as_dir;;
30067 esac
30068 as_dirs="'$as_qdir' $as_dirs"
30069 as_dir=`$as_dirname -- "$as_dir" ||
30070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30071 X"$as_dir" : 'X\(//\)[^/]' \| \
30072 X"$as_dir" : 'X\(//\)$' \| \
30073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30074 echo X"$as_dir" |
30075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30076 s//\1/
30079 /^X\(\/\/\)[^/].*/{
30080 s//\1/
30083 /^X\(\/\/\)$/{
30084 s//\1/
30087 /^X\(\/\).*/{
30088 s//\1/
30091 s/.*/./; q'`
30092 test -d "$as_dir" && break
30093 done
30094 test -z "$as_dirs" || eval "mkdir $as_dirs"
30095 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30097 { (exit 1); exit 1; }; }; }
30098 ac_builddir=.
30100 case "$ac_dir" in
30101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30104 # A ".." for each directory in $ac_dir_suffix.
30105 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30106 case $ac_top_builddir_sub in
30107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30109 esac ;;
30110 esac
30111 ac_abs_top_builddir=$ac_pwd
30112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30113 # for backward compatibility:
30114 ac_top_builddir=$ac_top_build_prefix
30116 case $srcdir in
30117 .) # We are building in place.
30118 ac_srcdir=.
30119 ac_top_srcdir=$ac_top_builddir_sub
30120 ac_abs_top_srcdir=$ac_pwd ;;
30121 [\\/]* | ?:[\\/]* ) # Absolute name.
30122 ac_srcdir=$srcdir$ac_dir_suffix;
30123 ac_top_srcdir=$srcdir
30124 ac_abs_top_srcdir=$srcdir ;;
30125 *) # Relative name.
30126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30127 ac_top_srcdir=$ac_top_build_prefix$srcdir
30128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30129 esac
30130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30133 case $ac_mode in
30136 # CONFIG_FILE
30139 case $INSTALL in
30140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30142 esac
30143 ac_MKDIR_P=$MKDIR_P
30144 case $MKDIR_P in
30145 [\\/$]* | ?:[\\/]* ) ;;
30146 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30147 esac
30148 _ACEOF
30150 cat >>$CONFIG_STATUS <<\_ACEOF
30151 # If the template does not know about datarootdir, expand it.
30152 # FIXME: This hack should be removed a few years after 2.60.
30153 ac_datarootdir_hack=; ac_datarootdir_seen=
30155 case `sed -n '/datarootdir/ {
30159 /@datadir@/p
30160 /@docdir@/p
30161 /@infodir@/p
30162 /@localedir@/p
30163 /@mandir@/p
30164 ' $ac_file_inputs` in
30165 *datarootdir*) ac_datarootdir_seen=yes;;
30166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30167 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30169 _ACEOF
30170 cat >>$CONFIG_STATUS <<_ACEOF
30171 ac_datarootdir_hack='
30172 s&@datadir@&$datadir&g
30173 s&@docdir@&$docdir&g
30174 s&@infodir@&$infodir&g
30175 s&@localedir@&$localedir&g
30176 s&@mandir@&$mandir&g
30177 s&\\\${datarootdir}&$datarootdir&g' ;;
30178 esac
30179 _ACEOF
30181 # Neutralize VPATH when `$srcdir' = `.'.
30182 # Shell code in configure.ac might set extrasub.
30183 # FIXME: do we really want to maintain this feature?
30184 cat >>$CONFIG_STATUS <<_ACEOF
30185 sed "$ac_vpsub
30186 $extrasub
30187 _ACEOF
30188 cat >>$CONFIG_STATUS <<\_ACEOF
30190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30191 s&@configure_input@&$configure_input&;t t
30192 s&@top_builddir@&$ac_top_builddir_sub&;t t
30193 s&@srcdir@&$ac_srcdir&;t t
30194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30195 s&@top_srcdir@&$ac_top_srcdir&;t t
30196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30197 s&@builddir@&$ac_builddir&;t t
30198 s&@abs_builddir@&$ac_abs_builddir&;t t
30199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30200 s&@INSTALL@&$ac_INSTALL&;t t
30201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30202 $ac_datarootdir_hack
30203 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30208 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30209 which seems to be undefined. Please make sure it is defined." >&5
30210 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30211 which seems to be undefined. Please make sure it is defined." >&2;}
30213 rm -f "$tmp/stdin"
30214 case $ac_file in
30215 -) cat "$tmp/out"; rm -f "$tmp/out";;
30216 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30217 esac
30221 # CONFIG_HEADER
30223 _ACEOF
30225 # Transform confdefs.h into a sed script `conftest.defines', that
30226 # substitutes the proper values into config.h.in to produce config.h.
30227 rm -f conftest.defines conftest.tail
30228 # First, append a space to every undef/define line, to ease matching.
30229 echo 's/$/ /' >conftest.defines
30230 # Then, protect against being on the right side of a sed subst, or in
30231 # an unquoted here document, in config.status. If some macros were
30232 # called several times there might be several #defines for the same
30233 # symbol, which is useless. But do not sort them, since the last
30234 # AC_DEFINE must be honored.
30235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30236 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30237 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30238 # PARAMS is the parameter list in the macro definition--in most cases, it's
30239 # just an empty string.
30240 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30241 ac_dB='\\)[ (].*,\\1define\\2'
30242 ac_dC=' '
30243 ac_dD=' ,'
30245 uniq confdefs.h |
30246 sed -n '
30247 t rset
30248 :rset
30249 s/^[ ]*#[ ]*define[ ][ ]*//
30250 t ok
30253 s/[\\&,]/\\&/g
30254 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30255 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30256 ' >>conftest.defines
30258 # Remove the space that was appended to ease matching.
30259 # Then replace #undef with comments. This is necessary, for
30260 # example, in the case of _POSIX_SOURCE, which is predefined and required
30261 # on some systems where configure will not decide to define it.
30262 # (The regexp can be short, since the line contains either #define or #undef.)
30263 echo 's/ $//
30264 s,^[ #]*u.*,/* & */,' >>conftest.defines
30266 # Break up conftest.defines:
30267 ac_max_sed_lines=50
30269 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30270 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30271 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30272 # et cetera.
30273 ac_in='$ac_file_inputs'
30274 ac_out='"$tmp/out1"'
30275 ac_nxt='"$tmp/out2"'
30277 while :
30279 # Write a here document:
30280 cat >>$CONFIG_STATUS <<_ACEOF
30281 # First, check the format of the line:
30282 cat >"\$tmp/defines.sed" <<\\CEOF
30283 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30284 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30286 :def
30287 _ACEOF
30288 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30289 echo 'CEOF
30290 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30291 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30292 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30293 grep . conftest.tail >/dev/null || break
30294 rm -f conftest.defines
30295 mv conftest.tail conftest.defines
30296 done
30297 rm -f conftest.defines conftest.tail
30299 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30300 cat >>$CONFIG_STATUS <<\_ACEOF
30301 if test x"$ac_file" != x-; then
30302 echo "/* $configure_input */" >"$tmp/config.h"
30303 cat "$ac_result" >>"$tmp/config.h"
30304 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30306 echo "$as_me: $ac_file is unchanged" >&6;}
30307 else
30308 rm -f $ac_file
30309 mv "$tmp/config.h" $ac_file
30311 else
30312 echo "/* $configure_input */"
30313 cat "$ac_result"
30315 rm -f "$tmp/out12"
30316 # Compute $ac_file's index in $config_headers.
30317 _am_stamp_count=1
30318 for _am_header in $config_headers :; do
30319 case $_am_header in
30320 $ac_file | $ac_file:* )
30321 break ;;
30323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30324 esac
30325 done
30326 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30328 X$ac_file : 'X\(//\)[^/]' \| \
30329 X$ac_file : 'X\(//\)$' \| \
30330 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30331 echo X$ac_file |
30332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30333 s//\1/
30336 /^X\(\/\/\)[^/].*/{
30337 s//\1/
30340 /^X\(\/\/\)$/{
30341 s//\1/
30344 /^X\(\/\).*/{
30345 s//\1/
30348 s/.*/./; q'`/stamp-h$_am_stamp_count
30351 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30352 echo "$as_me: executing $ac_file commands" >&6;}
30354 esac
30357 case $ac_file$ac_mode in
30358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30359 # Strip MF so we end up with the name of the file.
30360 mf=`echo "$mf" | sed -e 's/:.*$//'`
30361 # Check whether this is an Automake generated Makefile or not.
30362 # We used to match only the files named `Makefile.in', but
30363 # some people rename them; so instead we look at the file content.
30364 # Grep'ing the first line is not enough: some people post-process
30365 # each Makefile.in and add a new line on top of each file to say so.
30366 # Grep'ing the whole file is not good either: AIX grep has a line
30367 # limit of 2048, but all sed's we know have understand at least 4000.
30368 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30369 dirpart=`$as_dirname -- "$mf" ||
30370 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30371 X"$mf" : 'X\(//\)[^/]' \| \
30372 X"$mf" : 'X\(//\)$' \| \
30373 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30374 echo X"$mf" |
30375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30376 s//\1/
30379 /^X\(\/\/\)[^/].*/{
30380 s//\1/
30383 /^X\(\/\/\)$/{
30384 s//\1/
30387 /^X\(\/\).*/{
30388 s//\1/
30391 s/.*/./; q'`
30392 else
30393 continue
30395 # Extract the definition of DEPDIR, am__include, and am__quote
30396 # from the Makefile without running `make'.
30397 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30398 test -z "$DEPDIR" && continue
30399 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30400 test -z "am__include" && continue
30401 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30402 # When using ansi2knr, U may be empty or an underscore; expand it
30403 U=`sed -n 's/^U = //p' < "$mf"`
30404 # Find all dependency output files, they are included files with
30405 # $(DEPDIR) in their names. We invoke sed twice because it is the
30406 # simplest approach to changing $(DEPDIR) to its actual value in the
30407 # expansion.
30408 for file in `sed -n "
30409 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30410 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30411 # Make sure the directory exists.
30412 test -f "$dirpart/$file" && continue
30413 fdir=`$as_dirname -- "$file" ||
30414 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30415 X"$file" : 'X\(//\)[^/]' \| \
30416 X"$file" : 'X\(//\)$' \| \
30417 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30418 echo X"$file" |
30419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30420 s//\1/
30423 /^X\(\/\/\)[^/].*/{
30424 s//\1/
30427 /^X\(\/\/\)$/{
30428 s//\1/
30431 /^X\(\/\).*/{
30432 s//\1/
30435 s/.*/./; q'`
30436 { as_dir=$dirpart/$fdir
30437 case $as_dir in #(
30438 -*) as_dir=./$as_dir;;
30439 esac
30440 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30441 as_dirs=
30442 while :; do
30443 case $as_dir in #(
30444 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30445 *) as_qdir=$as_dir;;
30446 esac
30447 as_dirs="'$as_qdir' $as_dirs"
30448 as_dir=`$as_dirname -- "$as_dir" ||
30449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30450 X"$as_dir" : 'X\(//\)[^/]' \| \
30451 X"$as_dir" : 'X\(//\)$' \| \
30452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30453 echo X"$as_dir" |
30454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30455 s//\1/
30458 /^X\(\/\/\)[^/].*/{
30459 s//\1/
30462 /^X\(\/\/\)$/{
30463 s//\1/
30466 /^X\(\/\).*/{
30467 s//\1/
30470 s/.*/./; q'`
30471 test -d "$as_dir" && break
30472 done
30473 test -z "$as_dirs" || eval "mkdir $as_dirs"
30474 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30475 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30476 { (exit 1); exit 1; }; }; }
30477 # echo "creating $dirpart/$file"
30478 echo '# dummy' > "$dirpart/$file"
30479 done
30480 done
30483 esac
30484 done # for ac_tag
30487 { (exit 0); exit 0; }
30488 _ACEOF
30489 chmod +x $CONFIG_STATUS
30490 ac_clean_files=$ac_clean_files_save
30493 # configure is writing to config.log, and then calls config.status.
30494 # config.status does its own redirection, appending to config.log.
30495 # Unfortunately, on DOS this fails, as config.log is still kept open
30496 # by configure, so config.status won't be able to write to it; its
30497 # output is simply discarded. So we exec the FD to /dev/null,
30498 # effectively closing config.log, so it can be properly (re)opened and
30499 # appended to by config.status. When coming back to configure, we
30500 # need to make the FD available again.
30501 if test "$no_create" != yes; then
30502 ac_cs_success=:
30503 ac_config_status_args=
30504 test "$silent" = yes &&
30505 ac_config_status_args="$ac_config_status_args --quiet"
30506 exec 5>/dev/null
30507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30508 exec 5>>config.log
30509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30510 # would make configure fail if this is the last instruction.
30511 $ac_cs_success || { (exit 1); exit 1; }