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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
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!
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
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
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
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
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
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
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.
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
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
658 SHELL
="$CONFIG_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"
667 # maybe with a smaller string...
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
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+"$@"}
683 # Oops. We lost completely, so just stick with 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.
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
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`
716 ac_default_prefix
=/usr
/local
718 ac_config_libobj_dir
=.
724 SHELL
=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file
="../common/main.c"
734 # Factoring default headers for most tests.
735 ac_includes_default
="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
924 ac_precious_vars
='build_alias
942 # Initialize some variables set by options.
944 ac_init_version
=false
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
954 program_transform_name
=s
,x
,x
,
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'
984 libdir
='${exec_prefix}/lib'
985 localedir
='${datarootdir}/locale'
986 mandir
='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\
$ac_option
1000 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
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)
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)
1053 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1054 docdir
=$ac_optarg ;;
1056 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
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.
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)
1097 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
1110 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1111 infodir
=$ac_optarg ;;
1113 -libdir |
--libdir |
--libdi |
--libd)
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)
1139 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1140 mandir
=$ac_optarg ;;
1142 -nfp |
--nfp |
--nf)
1143 # Obsolete; use --without-fp.
1146 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1147 |
--no-cr |
--no-c |
-n)
1150 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1151 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
1201 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1202 pdfdir
=$ac_optarg ;;
1204 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1206 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1209 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1210 |
-silent |
--silent |
--silen |
--sile |
--sil)
1213 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1215 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1217 sbindir
=$ac_optarg ;;
1219 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1220 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1221 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1223 ac_prev
=sharedstatedir
;;
1224 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1225 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1226 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1228 sharedstatedir
=$ac_optarg ;;
1230 -site |
--site |
--sit)
1232 -site=* |
--site=* |
--sit=*)
1235 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1255 -version |
--version |
--versio |
--versi |
--vers |
-V)
1256 ac_init_version
=: ;;
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
;;
1277 # Obsolete; use --with-x.
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; }; }
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}
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
1333 [\\/$
]* | ?
:[\\/]* ) continue;;
1334 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1336 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1337 { (exit 1); exit 1; }; }
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.
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
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 ||
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1415 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1416 { (exit 1); exit 1; }; }
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1426 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
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
1505 --x-includes=DIR X include files are
in DIR
1506 --x-libraries=DIR X library files are
in DIR
1509 --build=BUILD configure
for building on BUILD
[guessed
]
1510 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1514 if test -n "$ac_init_help"; then
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.
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
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
>
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.
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
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/ ;;
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
1603 .) # We are building in place.
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 ;;
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 ;;
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
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
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.
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
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
`
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 echo "PATH: $as_dir"
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.
1711 ac_must_keep_next=false
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)
1722 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1740 -* ) ac_must_keep_next=true ;;
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
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.
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
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
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;} ;;
1778 _ | IFS | as_nl) ;; #(
1779 *) $as_unset $ac_var ;;
1784 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1804 for ac_var in $ac_subst_vars
1806 eval ac_val=\$$ac_var
1808 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 echo "$ac_var='\''$ac_val'\''"
1814 if test -n "$ac_subst_files"; then
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1821 for ac_var in $ac_subst_files
1823 eval ac_val=\$$ac_var
1825 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 echo "$ac_var='\''$ac_val'\''"
1832 if test -s confdefs.h; then
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1892 set x "$ac_default_prefix/share/config.site" \
1893 "$ac_default_prefix/etc/config.site"
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
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;}
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1923 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1996 for ac_dir in . "$srcdir"/.; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 # Account for people who put trailing slashes in PATH elements.
2054 ./ | .// | /cC/* | \
2055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
2074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2087 if test "${ac_cv_path_install+set}" = set; then
2088 INSTALL=$ac_cv_path_install
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; }
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
2119 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2120 if test "$*" = "X"; then
2122 set X
`ls -t $srcdir/configure 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
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
,$
//
2163 program_transform_name
=`echo $program_transform_name | sed -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 "
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
2185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2186 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
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
2207 if test "${ac_cv_path_mkdir+set}" = set; then
2208 MKDIR_P
="$ac_cv_path_mkdir -p"
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; }
2223 [\\/$
]* | ?
:[\\/]*) ;;
2224 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
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
2236 if test -n "$AWK"; then
2237 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2257 if test -n "$AWK"; then
2258 { echo "$as_me:$LINENO: result: $AWK" >&5
2259 echo "${ECHO_T}$AWK" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2266 test -n "$AWK" && break
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
2275 cat >conftest.
make <<\_ACEOF
2278 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2283 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2285 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
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; }
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
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'
2330 # Define the identity of the package.
2335 cat >>confdefs.h
<<_ACEOF
2336 #define PACKAGE "$PACKAGE"
2340 cat >>confdefs.h
<<_ACEOF
2341 #define VERSION "$VERSION"
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
2375 if test -n "$STRIP"; then
2376 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2406 if test -z "$ac_cv_prog_STRIP"; then
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
2415 if test -n "$ac_ct_STRIP"; then
2416 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2444 if test "x$ac_ct_STRIP" = x
; then
2447 case $cross_compiling:$ac_tool_warned in
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 ;;
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
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
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
2500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir
=.
2505 # Account for people who put trailing slashes in PATH elements.
2507 .
/ | .
// |
/cC
/* | \
2508 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2509 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
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
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.
2527 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2540 if test "${ac_cv_path_install+set}" = set; then
2541 INSTALL
=$ac_cv_path_install
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
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
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; }; };;
2594 ac_save_IFS
=$IFS; IFS
='-'
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
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
2612 if test "x$host_alias" = x
; then
2613 ac_cv_host
=$ac_cv_build
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; }
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; }; };;
2631 ac_save_IFS
=$IFS; IFS
='-'
2637 # Remember, the first character of IFS is used to create $*,
2638 # except with old shells:
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}
2649 yes) enable_shared
=yes ;;
2650 no
) 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
2657 if test "X$pkg" = "X$p"; then
2669 # Check whether --enable-static was given.
2670 if test "${enable_static+set}" = set; then
2671 enableval
=$enable_static; p
=${PACKAGE-default}
2673 yes) enable_static
=yes ;;
2674 no
) 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
2681 if test "X$pkg" = "X$p"; then
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}
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
2705 if test "X$pkg" = "X$p"; then
2706 enable_fast_install
=yes
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'
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; }
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
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
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"
2770 if test "x$enable_dependency_tracking" != xno; then
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
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC
="$CC" # Let the user override the test.
2795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2813 if test -n "$CC"; then
2814 { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2823 if test -z "$ac_cv_prog_CC"; then
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
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2861 if test "x$ac_ct_CC" = x
; then
2864 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC
="$CC" # Let the user override the test.
2892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
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
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC
="$CC" # Let the user override the test.
2933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2961 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2967 if test -n "$CC"; then
2968 { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
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
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC
="$CC" # Let the user override the test.
2991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3009 if test -n "$CC"; then
3010 { echo "$as_me:$LINENO: result: $CC" >&5
3011 echo "${ECHO_T}$CC" >&6; }
3013 { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3018 test -n "$CC" && break
3021 if test -z "$CC"; then
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
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
3057 { echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6; }
3062 test -n "$ac_ct_CC" && break
3065 if test "x$ac_ct_CC" = x
; then
3068 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
3096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compiler --version >&5") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }
3104 { (ac_try="$ac_compiler -v >&5"
3106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3107 *) ac_try_echo
=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compiler -v >&5") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }
3114 { (ac_try
="$ac_compiler -V >&5"
3116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compiler -V >&5") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
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
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.
3158 for ac_file in $ac_files
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3162 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3167 if { (ac_try="$ac_link_default"
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_link_default") 2>&5
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
3182 for ac_file
in $ac_files ''
3184 test -f "$ac_file" ||
continue
3186 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3189 # We found the default executable, but exeext='' is most
3193 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
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
3207 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
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;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 if test "$cross_compiling" = maybe; then
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"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_link") 2>&5
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
3288 for ac_file
in conftest.exe conftest conftest.
*; do
3289 test -f "$ac_file" ||
continue
3291 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3292 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
3317 cat >conftest.
$ac_ext <<_ACEOF
3320 cat confdefs.h
>>conftest.
$ac_ext
3321 cat >>conftest.
$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3332 rm -f conftest.o conftest.obj
3333 if { (ac_try
="$ac_compile"
3335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_compile") 2>&5
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;
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
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
3410 echo "$as_me: failed program was
:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
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
3430 ac_save_c_werror_flag=$ac_c_werror_flag
3431 ac_c_werror_flag=yes
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
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
3468 echo "$as_me: failed program was
:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3571 if test "$GCC" = yes; then
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
3582 ac_cv_prog_cc_c89=no
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.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)
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3608 s = g (p, va_arg (v,int));
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. */
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);
3636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_compile") 2>conftest.er1
3654 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3673 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
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
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
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
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
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.
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
3743 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
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
3799 am__fastdepCC_FALSE='#'
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
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
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"
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
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
3842 cat conftest.in conftest.in >conftest.tmp
3843 mv conftest.tmp conftest.in
3844 cp conftest.in 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
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
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
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
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
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
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
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 $ac_path_GREP_found && break 3
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
/xpg
4/bin
" >&5
3929 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3930 { (exit 1); exit 1; }; }
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
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
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
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
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
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
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
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 $ac_path_EGREP_found && break 3
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
/xpg
4/bin
" >&5
4011 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
4012 { (exit 1); exit 1; }; }
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
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; }
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` ;;
4048 # Accept absolute paths.
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%/%"`
4056 test -z "$LD" && LD="$ac_prog"
4059 # If it fails, then pretend we aren't using GCC.
4063 # If it is relative, then search for the first ld in PATH.
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; }
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
4077 if test -z "$LD"; then
4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079 for ac_dir in $PATH; do
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
4099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4104 if test -n "$LD"; then
4105 { echo "$as_me:$LINENO: result
: $LD" >&5
4106 echo "${ECHO_T}$LD" >&6; }
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
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
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
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
4146 *) reload_flag=" $reload_flag" ;;
4148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4151 if test "$GCC" = yes; then
4152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
4164 if test -n "$NM"; then
4165 # Let the user override the test.
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
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"
4189 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4191 lt_cv_path_NM="$tmp_nm -p"
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
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; }
4212 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
4213 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
4215 if test "$LN_S" = "ln -s"; then
4216 { echo "$as_me:$LINENO: result
: yes" >&5
4217 echo "${ECHO_T}yes" >&6; }
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
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.
4244 lt_cv_deplibs_check_method=pass_all
4248 lt_cv_deplibs_check_method=pass_all
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
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'
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'
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
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.*`
4292 lt_cv_deplibs_check_method=pass_all
4297 lt_cv_deplibs_check_method=pass_all
4300 hpux10.20* | hpux11*)
4301 lt_cv_file_magic_cmd=/usr/bin/file
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
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
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*)
4325 *-32|*"-32 ") libmagic=32-bit;;
4326 *-n32|*"-n32 ") libmagic=N32;;
4327 *-64|*"-64 ") libmagic=64-bit;;
4328 *) libmagic=never-match;;
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
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)$'
4342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
4353 lt_cv_deplibs_check_method=unknown
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)$'
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
4369 lt_cv_deplibs_check_method=pass_all
4373 lt_cv_deplibs_check_method=pass_all
4377 case $host_vendor in
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*`
4383 lt_cv_deplibs_check_method=pass_all
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 )'
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
4395 lt_cv_deplibs_check_method=pass_all
4398 lt_cv_deplibs_check_method=pass_all
4403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4404 lt_cv_deplibs_check_method=pass_all
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.
4421 # If no C compiler flags were specified, use CFLAGS.
4422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4424 # Allow CC to be a program name with arguments.
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
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
4444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4445 (exit $ac_status); }; then
4446 case `/usr/bin/file conftest.$ac_objext` in
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
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
4468 LD="${LD-ld} -melf32bsmip"
4471 LD="${LD-ld} -melf32bmipn32"
4474 LD="${LD-ld} -melf64bmip"
4478 case `/usr/bin/file conftest.$ac_objext` in
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
4501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4502 (exit $ac_status); }; then
4503 case `/usr/bin/file conftest.o` in
4506 x86_64-*kfreebsd*-gnu)
4507 LD="${LD-ld} -m elf_i386_fbsd
"
4510 LD="${LD-ld} -m elf_i386
"
4512 ppc64-*linux*|powerpc64-*linux*)
4513 LD="${LD-ld} -m elf32ppclinux
"
4516 LD="${LD-ld} -m elf_s390
"
4519 LD="${LD-ld} -m elf32_sparc
"
4525 x86_64-*kfreebsd*-gnu)
4526 LD="${LD-ld} -m elf_x86_64_fbsd
"
4529 LD="${LD-ld} -m elf_x86_64
"
4531 ppc*-*linux*|powerpc*-*linux*)
4532 LD="${LD-ld} -m elf64ppc
"
4535 LD="${LD-ld} -m elf64_s390
"
4538 LD="${LD-ld} -m elf64_sparc
"
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
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
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4577 rm -f conftest.$ac_objext conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>conftest.er1
4586 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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"
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
4625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4626 (exit $ac_status); }; then
4627 case `/usr/bin/file conftest.o` in
4629 case $lt_cv_prog_gnu_ld in
4630 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
4631 *) LD="${LD-ld} -64" ;;
4642 need_locks="$enable_libtool_lock"
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
4656 if test -z "$CPP"; then
4657 if test "${ac_cv_prog_CPP+set}" = set; then
4658 echo $ECHO_N "(cached
) $ECHO_C" >&6
4660 # Double quotes because CPP needs to be expanded
4661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
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
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4679 # include <limits.h>
4681 # include <assert.h>
4685 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4693 grep -v '^ *+' conftest.er1 >conftest.err
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
4703 echo "$as_me: failed program was
:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 # Broken: fails on valid input.
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
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #include <ac_nonexistent.h>
4722 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4730 grep -v '^ *+' conftest.er1 >conftest.err
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
4738 # Broken: success on invalid input.
4741 echo "$as_me: failed program was
:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 # Passes both tests.
4749 rm -f conftest.err conftest.$ac_ext
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
4766 { echo "$as_me:$LINENO: result
: $CPP" >&5
4767 echo "${ECHO_T}$CPP" >&6; }
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
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4784 # include <limits.h>
4786 # include <assert.h>
4790 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
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
4808 echo "$as_me: failed program was
:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 # Broken: fails on valid input.
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
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <ac_nonexistent.h>
4827 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
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
4843 # Broken: success on invalid input.
4846 echo "$as_me: failed program was
:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 # Passes both tests.
4854 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4909 grep -v '^
*+' conftest.er1 >conftest.err
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
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
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "memchr" >/dev/null 2>&1; then
4942 ac_cv_header_stdc=no
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
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "free" >/dev/null 2>&1; then
4963 ac_cv_header_stdc=no
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
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4982 #if ((' ' & 0x0FF) == 0x020)
4983 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
4984 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
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))
4993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4998 for (i = 0; i < 256; i++)
4999 if (XOR (islower (i), ISLOWER (i))
5000 || toupper (i) != TOUPPER (i))
5005 rm -f conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_link") 2>&5
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;;
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_try") 2>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
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
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
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
5069 cat >conftest.$ac_ext <<_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>
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
5088 grep -v '^
*+' conftest.er1 >conftest.err
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"
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
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; }
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
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>
5145 rm -f conftest.$ac_objext
5146 if { (ac_try="$ac_compile"
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_compile") 2>conftest.er1
5154 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <$ac_header>
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193 grep -v '^
*+' conftest.er1 >conftest.err
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
5201 ac_header_preproc=yes
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
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
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;}
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
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
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
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
5278 if test -n "$CXX"; then
5279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5299 if test -n "$CXX"; then
5300 { echo "$as_me:$LINENO: result: $CXX" >&5
5301 echo "${ECHO_T}$CXX" >&6; }
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 test -n "$CXX" && break
5311 if test -z "$CXX"; then
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
5322 if test -n "$ac_ct_CXX"; then
5323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5347 { echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6; }
5352 test -n "$ac_ct_CXX" && break
5355 if test "x$ac_ct_CXX" = x; then
5358 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_compiler --version >&5") 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }
5387 { (ac_try="$ac_compiler -v >&5"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compiler -v >&5") 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 { (ac_try="$ac_compiler -V >&5"
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compiler -V >&5") 2>&5
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
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5440 grep -v '^
*+' conftest.er1 >conftest.err
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
5450 echo "$as_me: failed program was:" >&5
5451 sed 's
/^
/|
/' conftest.$ac_ext >&5
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
5470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5471 ac_cxx_werror_flag=yes
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5498 grep -v '^
*+' conftest.er1 >conftest.err
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
5508 echo "$as_me: failed program was:" >&5
5509 sed 's
/^
/|
/' conftest.$ac_ext >&5
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5575 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5611 if test "$GXX" = yes; then
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
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
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
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
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.
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
5668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
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
='#'
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
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
5747 # Double quotes because CXXCPP needs to be expanded
5748 for CXXCPP
in "$CXX -E" "/lib/cpp"
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
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5766 # include <limits.h>
5768 # include <assert.h>
5772 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5780 grep -v '^ *+' conftest.er1 >conftest.err
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
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 # Broken: fails on valid input.
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
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <ac_nonexistent.h>
5809 if { (ac_try="$ac_cpp conftest.$ac_ext"
5811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5812 *) ac_try_echo
=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817 grep -v '^ *+' conftest.er1
>conftest.err
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
5825 # Broken: success on invalid input.
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.
$ac_ext >&5
5831 # Passes both tests.
5836 rm -f conftest.err conftest.
$ac_ext
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
5846 ac_cv_prog_CXXCPP
=$CXXCPP
5849 CXXCPP
=$ac_cv_prog_CXXCPP
5851 ac_cv_prog_CXXCPP
=$CXXCPP
5853 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5854 echo "${ECHO_T}$CXXCPP" >&6; }
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
5867 cat confdefs.h
>>conftest.
$ac_ext
5868 cat >>conftest.
$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5871 # include <limits.h>
5873 # include <assert.h>
5877 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
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
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 # Broken: fails on valid input.
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
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #include <ac_nonexistent.h>
5914 if { (ac_try="$ac_cpp conftest.$ac_ext"
5916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5917 *) ac_try_echo
=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
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
5930 # Broken: success on invalid input.
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.
$ac_ext >&5
5936 # Passes both tests.
5941 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
5979 if test -n "$F77"; then
5980 ac_cv_prog_F77
="$F77" # Let the user override the test.
5982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
6000 if test -n "$F77"; then
6001 { echo "$as_me:$LINENO: result: $F77" >&5
6002 echo "${ECHO_T}$F77" >&6; }
6004 { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6009 test -n "$F77" && break
6012 if test -z "$F77"; then
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
6023 if test -n "$ac_ct_F77"; then
6024 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6048 { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6053 test -n "$ac_ct_F77" && break
6056 if test "x$ac_ct_F77" = x
; then
6059 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
6079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compiler --version >&5") 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }
6087 { (ac_try="$ac_compiler -v >&5"
6089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6090 *) ac_try_echo
=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compiler -v >&5") 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }
6097 { (ac_try
="$ac_compiler -V >&5"
6099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_compiler -V >&5") 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }
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.)
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
6118 cat >conftest.$ac_ext <<_ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compile") 2>conftest.er1
6135 grep -v '^
*+' conftest.er1 >conftest.err
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
6145 echo "$as_me: failed program was:" >&5
6146 sed 's
/^
/|
/' conftest.$ac_ext >&5
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; }
6158 ac_test_FFLAGS=${FFLAGS+set}
6159 ac_save_FFLAGS=$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
6167 cat >conftest.$ac_ext <<_ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6181 grep -v '^
*+' conftest.er1 >conftest.err
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
6191 echo "$as_me: failed program was:" >&5
6192 sed 's
/^
/|
/' conftest.$ac_ext >&5
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
6211 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6218 G77=`test $ac_compiler_gnu = yes && echo yes`
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
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
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;
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;
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`
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`
6286 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6287 lt_cv_sys_max_cmd_len
=196608
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 ;;
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/.*[ ]//'`
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`
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
6328 teststring
=$teststring$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`
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; }
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
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.
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'"
6398 symcode
='[BCDEGRST]'
6401 symcode
='[BCDEGQRST]'
6412 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6420 # Handle CRLF in mingw tool chain
6424 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
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]' ;;
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.
6447 cat > conftest.
$ac_ext <<EOF
6452 void nm_test_func(){}
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
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; then
6464 # Now try to grab the symbols.
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
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"
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
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 *
6494 # define lt_ptr_t char *
6498 /* The mapping between symbol names and symbols. */
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
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
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6528 LIBS
="$lt_save_LIBS"
6529 CFLAGS
="$lt_save_CFLAGS"
6531 echo "cannot find nm_test_func in $nlist" >&5
6534 echo "cannot find nm_test_var in $nlist" >&5
6537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
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
6549 lt_cv_sys_global_symbol_pipe
=
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; }
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
6571 rm -f .libs
2>/dev
/null
6572 mkdir .libs
2>/dev
/null
6573 if test -d .libs
; then
6576 # MS-DOS does not allow filenames that begin with a dot.
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
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
6596 export COLLECT_NAMES
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'
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').
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
6638 if test -n "$AR"; then
6639 ac_cv_prog_AR
="$AR" # Let the user override the test.
6641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
6659 if test -n "$AR"; then
6660 { echo "$as_me:$LINENO: result: $AR" >&5
6661 echo "${ECHO_T}$AR" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6669 if test -z "$ac_cv_prog_AR"; then
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
6678 if test -n "$ac_ct_AR"; then
6679 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6707 if test "x$ac_ct_AR" = x
; then
6710 case $cross_compiling:$ac_tool_warned in
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 ;;
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
6734 if test -n "$RANLIB"; then
6735 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
6774 if test -n "$ac_ct_RANLIB"; then
6775 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6803 if test "x$ac_ct_RANLIB" = x
; then
6806 case $cross_compiling:$ac_tool_warned in
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 ;;
6816 RANLIB
=$ac_ct_RANLIB
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
6830 if test -n "$STRIP"; then
6831 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6861 if test -z "$ac_cv_prog_STRIP"; then
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
6870 if test -n "$ac_ct_STRIP"; then
6871 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6899 if test "x$ac_ct_STRIP" = x
; then
6902 case $cross_compiling:$ac_tool_warned in
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 ;;
6915 STRIP
="$ac_cv_prog_STRIP"
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
6948 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6951 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6954 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6957 for cc_temp
in $compiler""; do
6959 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6960 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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
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
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
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
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
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
7018 MAGIC_CMD
="$lt_save_MAGIC_CMD"
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; }
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
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
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
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
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
7080 MAGIC_CMD
="$lt_save_MAGIC_CMD"
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; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
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"
7121 test -z "$pic_mode" && pic_mode
=default
7123 # Use C for the default configuration in the libtool script
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.
7136 # Object file extension for compiled C test sources.
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.
7150 # If no C compiler flags were specified, use CFLAGS.
7151 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7153 # Allow CC to be a program name with arguments.
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`
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`
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
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
)
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
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"
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'
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'
7245 # FIXME: we need at least 68020 code to build shared libraries, but
7246 # adding the `-m68020' flag to GCC prevents building anything better,
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'
7270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7271 # Instead, we relocate shared libraries at runtime.
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
7282 if test -d /usr
/nec
; then
7283 lt_prog_compiler_pic
=-Kconform_pic
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7295 lt_prog_compiler_pic
='-fPIC'
7301 lt_prog_compiler_pic
='-fPIC'
7305 # PORTME Check for flag to pass linker flags through the system compiler.
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'
7313 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7317 # PIC is the default on this platform
7318 # Common symbols not allowed in MH_DYLIB files
7319 case $cc_basename in
7321 lt_prog_compiler_pic
='-qnocommon'
7322 lt_prog_compiler_wl
='-Wl,'
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
7342 lt_prog_compiler_pic
='+Z'
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'
7356 lt_prog_compiler_pic
='-KPIC'
7357 lt_prog_compiler_static
='-Bstatic'
7360 linux
* | k
*bsd
*-gnu)
7361 case $cc_basename in
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'
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
7383 lt_prog_compiler_pic
='-KPIC'
7384 lt_prog_compiler_static
='-Bstatic'
7385 lt_prog_compiler_wl
='-Wl,'
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
=''
7398 osf3
* | osf4
* | osf5
*)
7399 lt_prog_compiler_wl
='-Wl,'
7400 # All OSF/1 code is PIC.
7401 lt_prog_compiler_static
='-non_shared'
7405 lt_prog_compiler_static
='-non_shared'
7409 lt_prog_compiler_pic
='-KPIC'
7410 lt_prog_compiler_static
='-Bstatic'
7411 case $cc_basename in
7413 lt_prog_compiler_wl
='-Qoption ld ';;
7415 lt_prog_compiler_wl
='-Wl,';;
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'
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'
7445 lt_prog_compiler_wl
='-Wl,'
7446 lt_prog_compiler_can_build_shared
=no
7450 lt_prog_compiler_pic
='-pic'
7451 lt_prog_compiler_static
='-Bstatic'
7455 lt_prog_compiler_can_build_shared
=no
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
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
)
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
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
7509 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7512 lt_prog_compiler_pic
=
7513 lt_prog_compiler_can_build_shared
=no
7518 # For platforms which do not support PIC, -DPIC is meaningless:
7520 lt_prog_compiler_pic
=
7523 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
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
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
7552 lt_prog_compiler_static_works
=yes
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
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
7574 lt_cv_prog_compiler_c_o
=no
7575 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
7627 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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; }
7646 allow_undefined_flag
=
7647 enable_shared_with_static_runtimes
=no
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
=
7660 hardcode_shlibpath_var
=unsupported
7661 link_all_deplibs
=unknown
7662 hardcode_automatic
=no
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
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
7684 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7685 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7690 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
7702 # we just hope/assume this is gcc and not c89 (= MSVC++)
7711 if test "$with_gnu_ld" = yes; then
7712 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
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 ;;
7736 # See if GNU ld supports shared libraries.
7738 aix3
* | aix4
* | aix5
*)
7739 # On AIX/PPC, the GNU linker is very broken
7740 if test "$host_cpu" != ia64
; then
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.
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
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'
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;
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'
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
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' ;;
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' ;;
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'
7860 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7861 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
7870 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
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'
7890 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7891 case `$LD -v 2>&1` in
7892 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
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.
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'
7918 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
7934 if test "$ld_shlibs" = no
; then
7936 hardcode_libdir_flag_spec
=
7937 export_dynamic_flag_spec
=
7938 whole_archive_flag_spec
=
7941 # PORTME fill in a description of your system's linker (not GNU ld)
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
7953 hardcode_direct
=unsupported
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'
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'
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
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.
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
8010 # We have reworked collect2
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
=
8024 shared_flag
='-shared'
8025 if test "$aix_use_runtimelinking" = yes; then
8026 shared_flag
="$shared_flag "'${wl}-G'
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:
8035 if test "$aix_use_runtimelinking" = yes; then
8036 shared_flag
='${wl}-G'
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
8054 cat confdefs.h
>>conftest.
$ac_ext
8055 cat >>conftest.
$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8066 rm -f conftest.
$ac_objext conftest
$ac_exeext
8067 if { (ac_try
="$ac_link"
8069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_link") 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
8116 # Determine the default libpath from the value encoded in an empty executable.
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8136 *) ac_try_echo
=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_link") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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'
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
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.
8209 # Tell ltmain to make .dll files, not .so files.
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
*)
8223 rhapsody
* | darwin1.
[012])
8224 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8227 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8228 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8230 case ${MACOSX_DEPLOYMENT_TARGET} in
8232 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8235 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8241 archive_cmds_need_lc
=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}'
8255 case $cc_basename in
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}'
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
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
8286 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8287 hardcode_libdir_flag_spec
='-R$libdir'
8289 hardcode_shlibpath_var
=no
8292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8294 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
8305 hardcode_shlibpath_var
=no
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'
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
=:
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'
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'
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
=:
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
8344 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8347 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
8359 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
8369 if test "$with_gnu_ld" = no
; then
8370 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8371 hardcode_libdir_separator
=:
8375 hardcode_libdir_flag_spec_ld
='+b $libdir'
8377 hardcode_shlibpath_var
=no
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
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'
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
8404 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8405 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8407 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8409 hardcode_libdir_flag_spec
='-R$libdir'
8411 hardcode_shlibpath_var
=no
8415 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8418 hardcode_libdir_separator
=:
8419 hardcode_shlibpath_var
=no
8423 if test -f /usr
/libexec
/ld.so
; then
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'
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'
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'
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'
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'
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
=:
8486 no_undefined_flag
=' -z text'
8487 if test "$GCC" = yes; then
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'
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
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'
8510 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8514 link_all_deplibs
=yes
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'
8523 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_libdir_flag_spec
='-L$libdir'
8527 hardcode_minus_L
=yes
8528 hardcode_shlibpath_var
=no
8532 case $host_vendor in
8534 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_direct
=yes # is this really true???
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'
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
8549 runpath_var
='LD_RUN_PATH'
8550 hardcode_shlibpath_var
=no
8554 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555 hardcode_shlibpath_var
=no
8556 export_dynamic_flag_spec
='-Bexport'
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
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'
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
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'
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'
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
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
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
8637 # FIXME: we may have to deal with multi-command sequences.
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; }
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
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } 2>conftest.err
; then
8655 libobjs
=conftest.
$ac_objext
8657 wl
=$lt_prog_compiler_wl
8658 pic_flag
=$lt_prog_compiler_pic
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
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }
8672 archive_cmds_need_lc
=no
8674 archive_cmds_need_lc
=yes
8676 allow_undefined_flag
=$lt_save_allow_undefined_flag
8678 cat conftest.err
1>&5
8681 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8682 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8689 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8690 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8692 libname_spec
='lib$name'
8700 shlibpath_overrides_runpath
=unknown
8702 dynamic_linker
="$host_os ld.so"
8703 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8705 if test "$GCC" = yes; then
8707 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8708 *) lt_awk_arg
="/^libraries:/" ;;
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'`
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"
8728 test -d "$lt_sys_path" && \
8729 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8732 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8733 BEGIN {RS=" "; FS="/|\n";} {
8736 for (lt_i = NF; lt_i > 0; lt_i--) {
8737 if ($lt_i != "" && $lt_i != ".") {
8738 if ($lt_i == "..") {
8741 if (lt_count == 0) {
8742 lt_foo="/" $lt_i lt_foo;
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`
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
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'
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
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.
8789 aix4 | aix4.
[01] | aix4.
[01].
*)
8790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8792 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
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}'
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
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'
8824 library_names_spec
='${libname}${shared_ext}'
8825 dynamic_linker
="$host_os ld.so"
8826 shlibpath_var
=LIBRARY_PATH
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
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~
8862 shlibpath_overrides_runpath
=yes
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"
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'`
8883 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
8894 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8897 dynamic_linker
='Win32 ld.exe'
8898 # FIXME: first we should search . and the directory the executable is in
8902 darwin
* | rhapsody
*)
8903 dynamic_linker
="$host_os dyld"
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'
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
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`
8937 freebsd
[123]*) objformat
=aout
;;
8941 version_type
=freebsd-
$objformat
8942 case $version_type in
8944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8949 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8953 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
9002 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9004 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
9026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027 postinstall_cmds
='chmod 555 $lib'
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
*)
9044 nonstopux
*) version_type
=nonstopux
;;
9046 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
9057 irix5
* | nonstopux
*)
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
;;
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
*)
9084 # This must be Linux ELF.
9085 linux
* | k
*bsd
*-gnu)
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'
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'
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
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
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
9151 sys_lib_dlsearch_path_spec
="/usr/lib"
9153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9155 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9156 *) need_version
=no
;;
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
9163 openbsd2.
[89] | openbsd2.
[89].
*)
9164 shlibpath_overrides_runpath
=no
9167 shlibpath_overrides_runpath
=yes
9171 shlibpath_overrides_runpath
=yes
9176 libname_spec
='$name'
9179 library_names_spec
='$libname${shared_ext} $libname.a'
9180 dynamic_linker
='OS/2 ld.exe'
9181 shlibpath_var
=LIBPATH
9184 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
9231 shlibpath_overrides_runpath
=no
9233 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9234 runpath_var
=LD_RUN_PATH
9242 shlibpath_overrides_runpath
=no
9243 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9249 if test -d /usr
/nec
;then
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
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
9269 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9270 shlibpath_overrides_runpath
=yes
9273 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9277 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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; }
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
9317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9318 hardcode_action
=immediate
9321 # We cannot hardcode anything, or else we can only hardcode existing
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
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; }
9347 # FIXME - insert some real tests, host_os isn't really good enough
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; }
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; }
9367 if test "x$enable_dlopen" != xyes
; then
9368 enable_dlopen
=unknown
9369 enable_dlopen_self
=unknown
9370 enable_dlopen_self_static
=unknown
9377 lt_cv_dlopen
="load_add_on"
9379 lt_cv_dlopen_self
=yes
9383 lt_cv_dlopen
="LoadLibrary"
9388 lt_cv_dlopen
="dlopen"
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
9399 ac_check_lib_save_LIBS
=$LIBS
9401 cat >conftest.
$ac_ext <<_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. */
9423 rm -f conftest.
$ac_objext conftest
$ac_exeext
9424 if { (ac_try
="$ac_link"
9426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_link") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
9473 cat >conftest.$ac_ext <<_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. */
9489 # include <limits.h>
9491 # include <assert.h>
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. */
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
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9522 *) ac_try_echo
=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
9557 ac_check_lib_save_LIBS
=$LIBS
9559 cat >conftest.
$ac_ext <<_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. */
9581 rm -f conftest.
$ac_objext conftest
$ac_exeext
9582 if { (ac_try
="$ac_link"
9584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_link") 2>conftest.er1
9590 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
9621 cat >conftest.$ac_ext <<_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. */
9637 # include <limits.h>
9639 # include <assert.h>
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. */
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
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9670 *) ac_try_echo
=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
9705 ac_check_lib_save_LIBS
=$LIBS
9707 cat >conftest.
$ac_ext <<_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. */
9729 rm -f conftest.
$ac_objext conftest
$ac_exeext
9730 if { (ac_try
="$ac_link"
9732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
9769 ac_check_lib_save_LIBS=$LIBS
9771 cat >conftest.$ac_ext <<_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. */
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9797 *) ac_try_echo
=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
9833 ac_check_lib_save_LIBS
=$LIBS
9835 cat >conftest.
$ac_ext <<_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. */
9857 rm -f conftest.
$ac_objext conftest
$ac_exeext
9858 if { (ac_try
="$ac_link"
9860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
9911 if test "x$lt_cv_dlopen" != xno; then
9917 case $lt_cv_dlopen in
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\"
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
9933 if test "$cross_compiling" = yes; then :
9934 lt_cv_dlopen_self=cross
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"
9949 # define LT_DLGLOBAL RTLD_GLOBAL
9952 # define LT_DLGLOBAL DL_GLOBAL
9954 # define LT_DLGLOBAL 0
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
9962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9965 # define LT_DLLAZY_OR_NOW DL_LAZY
9968 # define LT_DLLAZY_OR_NOW RTLD_NOW
9971 # define LT_DLLAZY_OR_NOW DL_NOW
9973 # define LT_DLLAZY_OR_NOW 0
9981 extern "C" void exit (int);
9984 void fnord() { int i=42;}
9987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9988 int status = $lt_dlunknown;
9992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9994 /* dlclose (self); */
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
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
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 ;;
10015 # compilation failed
10016 lt_cv_dlopen_self=no
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
10033 if test "$cross_compiling" = yes; then :
10034 lt_cv_dlopen_self_static=cross
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"
10049 # define LT_DLGLOBAL RTLD_GLOBAL
10052 # define LT_DLGLOBAL DL_GLOBAL
10054 # define LT_DLGLOBAL 0
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
10062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10065 # define LT_DLLAZY_OR_NOW DL_LAZY
10068 # define LT_DLLAZY_OR_NOW RTLD_NOW
10071 # define LT_DLLAZY_OR_NOW DL_NOW
10073 # define LT_DLLAZY_OR_NOW 0
10081 extern "C" void exit (int);
10084 void fnord() { int i=42;}
10087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10088 int status = $lt_dlunknown;
10092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10094 /* dlclose (self); */
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
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
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 ;;
10115 # compilation failed
10116 lt_cv_dlopen_self_static=no
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"
10133 case $lt_cv_dlopen_self in
10134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10135 *) enable_dlopen_self=unknown ;;
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 ;;
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.
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'
10167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10168 test "$enable_shared" = yes && enable_static=no
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 \
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 \
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 \
10216 old_archive_from_new_cmds \
10221 compiler_lib_search_path \
10223 archive_expsym_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 \
10235 module_expsym_cmds \
10236 lt_cv_prog_compiler_c_o \
10239 include_expsyms; do
10242 old_archive_cmds | \
10243 old_archive_from_new_cmds | \
10245 archive_expsym_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\"\
`\\\""
10264 *'\$0 --fallback-echo"')
10265 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10269 cfgfile="${ofile}T"
10270 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10272 { echo "$as_me:$LINENO: creating $ofile" >&5
10273 echo "$as_me: creating $ofile" >&6;}
10275 cat <<__EOF__ >> "$cfgfile"
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.
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.
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.
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
10343 host_alias=$host_alias
10347 # The build system.
10348 build_alias=$build_alias
10352 # An echo program that does not interpret backslashes.
10357 AR_FLAGS=$lt_AR_FLAGS
10362 # LTCC compiler flags.
10363 LTCFLAGS=$lt_LTCFLAGS
10365 # A language-specific compiler.
10368 # Is the compiler the GNU C compiler?
10374 # The linker used to build libraries.
10377 # Whether we need hard or soft links.
10380 # A BSD-compatible nm program.
10383 # A symbol stripping program
10386 # Used to examine libraries when file_magic_cmd begins "file"
10387 MAGIC_CMD=$MAGIC_CMD
10389 # Used on cygwin: DLL creation program.
10392 # Used on cygwin: object dumper.
10395 # Used on cygwin: assembler.
10398 # The name of the directory that contains temporary libtool files.
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").
10414 # Shared library suffix (normally ".so").
10415 shrext_cmds='$shrext_cmds'
10417 # Executable file suffix (normally "").
10420 # Additional compiler flags for building library objects.
10421 pic_flag=$lt_lt_prog_compiler_pic
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.
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
10504 predep_objects=$lt_predep_objects
10506 # Dependencies to place after the objects being linked to create a
10508 postdep_objects=$lt_postdep_objects
10510 # Dependencies to place before the objects being linked to create a
10512 predeps=$lt_predeps
10514 # Dependencies to place after the objects being linked to create a
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
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
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
10637 export COLLECT_NAMES
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")
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"
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
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;}
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
10706 # Check whether tagname contains only valid characters
10707 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
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; }; }
10715 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
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
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
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
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=
10765 compiler_lib_search_path_CXX=
10767 # Source file extension for C++ test sources.
10770 # Object file extension for compiled C++ test sources.
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.
10785 # If no C compiler flags were specified, use CFLAGS.
10786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10788 # Allow CC to be a program name with arguments.
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
`
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
`
10806 # Allow CC to be a program name with arguments.
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
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
10821 $as_unset lt_cv_path_LD
10823 test -z "${LDCXX+set}" || LD=$LDCXX
10827 for cc_temp in $compiler""; do
10829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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'
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
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; }
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` ;;
10870 # Accept absolute paths.
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%/%"`
10878 test -z "$LD" && LD="$ac_prog"
10881 # If it fails, then pretend we aren't using GCC.
10885 # If it is relative, then search for the first ld in PATH.
10886 with_gnu_ld=unknown
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; }
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
10899 if test -z "$LD"; then
10900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10901 for ac_dir in $PATH; do
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
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; }
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
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
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)
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'
10976 whole_archive_flag_spec_CXX=
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"'
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; }
11007 # FIXME: insert proper C++ library support
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'
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
11027 aix_use_runtimelinking=yes
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
11058 # We have reworked collect2
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=
11072 shared_flag='-shared'
11073 if test "$aix_use_runtimelinking" = yes; then
11074 shared_flag="$shared_flag "'${wl}-G'
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:
11083 if test "$aix_use_runtimelinking" = yes; then
11084 shared_flag='${wl}-G'
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
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
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;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_link") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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"
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"
11165 # Determine the default libpath from the value encoded in an empty executable.
11166 cat >conftest.
$ac_ext <<_ACEOF
11169 cat confdefs.h
>>conftest.
$ac_ext
11170 cat >>conftest.
$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
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;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_link") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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'
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'
11249 case $cc_basename in
11251 # FIXME: insert proper C++ library support
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;
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'
11280 darwin* | rhapsody*)
11282 rhapsody* | darwin1.[012])
11283 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11286 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11287 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11289 case ${MACOSX_DEPLOYMENT_TARGET} in
11291 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11294 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
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'
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}'
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}'
11327 case $cc_basename in
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}'
11344 case $cc_basename in
11346 # FIXME: insert proper C++ library support
11350 # Green Hills C++ Compiler
11351 # FIXME: insert proper C++ library support
11355 # FIXME: insert proper C++ library support
11361 # C++ shared libraries reported to be fairly broken before switch to 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
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
11385 # FIXME: insert proper C++ library support
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
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'
11404 # FIXME: insert proper C++ library support
11411 if test $with_gnu_ld = no; then
11412 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11413 hardcode_libdir_separator_CXX=:
11418 export_dynamic_flag_spec_CXX='${wl}-E'
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.
11435 case $cc_basename in
11437 # FIXME: insert proper C++ library support
11443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
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
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
11467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
11478 # FIXME: insert proper C++ library support
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'
11499 case $cc_basename in
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
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'
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
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
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
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'
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
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
11565 ia64
*) tmp_idyn
=' -i_dynamic';;
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'
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'
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'
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
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
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
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
11623 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11630 # FIXME: insert proper C++ library support
11634 # FIXME: insert proper C++ library support
11638 case $cc_basename in
11640 # FIXME: insert proper C++ library support
11644 # FIXME: insert proper C++ library support
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'
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::"'
11661 # C++ shared libraries are fairly broken
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'
11681 case $cc_basename in
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'
11699 # Rational C++ 2.4.1
11700 # FIXME: insert proper C++ library support
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
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"'
11734 # FIXME: insert proper C++ library support
11741 case $cc_basename in
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'
11758 # Rational C++ 2.4.1
11759 # FIXME: insert proper C++ library support
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~
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
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"'
11797 # FIXME: insert proper C++ library support
11804 # FIXME: insert proper C++ library support
11808 case $cc_basename in
11811 # FIXME: insert proper C++ library support
11816 # FIXME: insert proper C++ library support
11820 # FIXME: insert proper C++ library support
11826 case $cc_basename in
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
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'
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
11854 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
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\""
11877 # g++ 2.7 appears to require `-G' NOT `-shared' on this
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'
11891 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11893 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
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
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'
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
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
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'
11955 case $cc_basename in
11957 # NonStop-UX NCC 3.20
11958 # FIXME: insert proper C++ library support
11962 # FIXME: insert proper C++ library support
11968 # FIXME: insert proper C++ library support
11972 # FIXME: insert proper C++ library support
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
11984 cat > conftest.
$ac_ext <<EOF
11988 Foo (void) { a = 0; }
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
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
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
12025 if test "$pre_test_object_deps_done" = no
; then
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}"
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.
12041 if test -z "$postdeps_CXX"; then
12042 postdeps_CXX
="${prev}${p}"
12044 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
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
12057 if test "$pre_test_object_deps_done" = no
; then
12058 if test -z "$predep_objects_CXX"; then
12059 predep_objects_CXX
="$p"
12061 predep_objects_CXX
="$predep_objects_CXX $p"
12064 if test -z "$postdep_objects_CXX"; then
12065 postdep_objects_CXX
="$p"
12067 postdep_objects_CXX
="$postdep_objects_CXX $p"
12072 *) ;; # Ignore the rest.
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
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
=
12096 case `$CC -V 2>&1 | sed 5q` in
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
12109 if test "$solaris_use_stlport4" != yes; then
12110 postdeps_CXX
='-library=Cstd -library=Crun'
12117 case $cc_basename in
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
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'
12141 case " $postdeps_CXX " in
12142 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
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'
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'
12166 # FIXME: we need at least 68020 code to build shared libraries, but
12167 # adding the `-m68020' flag to GCC prevents building anything better,
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'
12187 # DJGPP does not support shared libraries at all
12188 lt_prog_compiler_pic_CXX
=
12191 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12192 # Instead, we relocate shared libraries at runtime.
12195 if test -d /usr
/nec
; then
12196 lt_prog_compiler_pic_CXX
=-Kconform_pic
12200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12201 # not for PA HP-UX.
12206 lt_prog_compiler_pic_CXX
='-fPIC'
12211 lt_prog_compiler_pic_CXX
='-fPIC'
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'
12222 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12226 case $cc_basename in
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"
12234 # PIC is the default on this platform
12235 # Common symbols not allowed in MH_DYLIB files
12236 case $cc_basename in
12238 lt_prog_compiler_pic_CXX
='-qnocommon'
12239 lt_prog_compiler_wl_CXX
='-Wl,'
12244 case $cc_basename in
12246 lt_prog_compiler_pic_CXX
='-KPIC'
12249 # Green Hills C++ Compiler
12250 lt_prog_compiler_pic_CXX
='-pic'
12256 freebsd
* | dragonfly
*)
12257 # FreeBSD uses GNU C++
12259 hpux9
* | hpux10
* | hpux11
*)
12260 case $cc_basename in
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'
12269 lt_prog_compiler_wl_CXX
='-Wl,'
12270 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12276 lt_prog_compiler_pic_CXX
='+Z'
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
12291 lt_prog_compiler_wl_CXX
='-Wl,'
12292 lt_prog_compiler_static_CXX
='-non_shared'
12293 # CC pic flag -KPIC is the default.
12299 linux
* | k
*bsd
*-gnu)
12300 case $cc_basename in
12303 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12304 lt_prog_compiler_pic_CXX
='-fPIC'
12308 lt_prog_compiler_wl_CXX
='-Wl,'
12309 lt_prog_compiler_pic_CXX
='-KPIC'
12310 lt_prog_compiler_static_CXX
='-static'
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'
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
12329 lt_prog_compiler_pic_CXX
='-KPIC'
12330 lt_prog_compiler_static_CXX
='-Bstatic'
12331 lt_prog_compiler_wl_CXX
='-Qoption ld '
12342 case $cc_basename in
12344 lt_prog_compiler_pic_CXX
='-W c,exportall'
12352 osf3
* | osf4
* | osf5
*)
12353 case $cc_basename in
12355 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12358 # Rational C++ 2.4.1
12359 lt_prog_compiler_pic_CXX
='-pic'
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'
12376 case $cc_basename in
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 '
12384 # Green Hills C++ Compiler
12385 lt_prog_compiler_pic_CXX
='-PIC'
12392 case $cc_basename in
12395 lt_prog_compiler_pic_CXX
='-pic'
12396 lt_prog_compiler_static_CXX
='-Bstatic'
12400 lt_prog_compiler_pic_CXX
='-pic'
12407 case $cc_basename in
12409 # NonStop-UX NCC 3.20
12410 lt_prog_compiler_pic_CXX
='-KPIC'
12416 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12417 case $cc_basename in
12419 lt_prog_compiler_wl_CXX
='-Wl,'
12420 lt_prog_compiler_pic_CXX
='-KPIC'
12421 lt_prog_compiler_static_CXX
='-Bstatic'
12428 lt_prog_compiler_can_build_shared_CXX
=no
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
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
)
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
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
12482 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12485 lt_prog_compiler_pic_CXX
=
12486 lt_prog_compiler_can_build_shared_CXX
=no
12491 # For platforms which do not support PIC, -DPIC is meaningless:
12493 lt_prog_compiler_pic_CXX
=
12496 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
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
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
12525 lt_prog_compiler_static_works_CXX
=yes
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
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
12547 lt_cv_prog_compiler_c_o_CXX
=no
12548 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
12600 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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'
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'
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'
12630 export_symbols_cmds_CXX
="$ltdll_cmds"
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'
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
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
12655 # FIXME: we may have to deal with multi-command sequences.
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; }
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
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } 2>conftest.err
; then
12673 libobjs
=conftest.
$ac_objext
12675 wl
=$lt_prog_compiler_wl_CXX
12676 pic_flag
=$lt_prog_compiler_pic_CXX
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
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }
12690 archive_cmds_need_lc_CXX
=no
12692 archive_cmds_need_lc_CXX
=yes
12694 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12696 cat conftest.err
1>&5
12699 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
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'
12714 postuninstall_cmds
=
12718 shlibpath_overrides_runpath
=unknown
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
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'
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
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.
12756 aix4 | aix4.
[01] | aix4.
[01].
*)
12757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12759 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12762 can_build_shared
=no
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}'
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
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'
12791 library_names_spec
='${libname}${shared_ext}'
12792 dynamic_linker
="$host_os ld.so"
12793 shlibpath_var
=LIBRARY_PATH
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
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~
12829 shlibpath_overrides_runpath
=yes
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"
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'`
12850 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
12861 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12864 dynamic_linker
='Win32 ld.exe'
12865 # FIXME: first we should search . and the directory the executable is in
12869 darwin
* | rhapsody
*)
12870 dynamic_linker
="$host_os dyld"
12871 version_type
=darwin
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'
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
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`
12903 freebsd
[123]*) objformat
=aout
;;
12904 *) objformat
=elf
;;
12907 version_type
=freebsd-
$objformat
12908 case $version_type in
12910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12915 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12919 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
12968 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12970 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
12992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12993 postinstall_cmds
='chmod 555 $lib'
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
*)
13010 nonstopux
*) version_type
=nonstopux
;;
13012 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
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
;;
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
*)
13050 # This must be Linux ELF.
13051 linux
* | k
*bsd
*-gnu)
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'
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'
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
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
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
13117 sys_lib_dlsearch_path_spec
="/usr/lib"
13119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13121 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13122 *) need_version
=no
;;
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
13129 openbsd2.
[89] | openbsd2.
[89].
*)
13130 shlibpath_overrides_runpath
=no
13133 shlibpath_overrides_runpath
=yes
13137 shlibpath_overrides_runpath
=yes
13142 libname_spec
='$name'
13145 library_names_spec
='$libname${shared_ext} $libname.a'
13146 dynamic_linker
='OS/2 ld.exe'
13147 shlibpath_var
=LIBPATH
13150 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
13197 shlibpath_overrides_runpath
=no
13199 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13200 runpath_var
=LD_RUN_PATH
13208 shlibpath_overrides_runpath
=no
13209 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13215 if test -d /usr
/nec
;then
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
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
13235 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13236 shlibpath_overrides_runpath
=yes
13239 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13243 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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
13283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13284 hardcode_action_CXX
=immediate
13287 # We cannot hardcode anything, or else we can only hardcode existing
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 \
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 \
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 \
13343 compiler_lib_search_path_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 \
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
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\"\`\\\""
13386 *'\$0 --fallback-echo"')
13387 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
13417 host_alias=$host_alias
13421 # The build system.
13422 build_alias=$build_alias
13426 # An echo program that does not interpret backslashes.
13431 AR_FLAGS=$lt_AR_FLAGS
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?
13448 # The linker used to build libraries.
13451 # Whether we need hard or soft links.
13454 # A BSD-compatible nm program.
13457 # A symbol stripping program
13460 # Used to examine libraries when file_magic_cmd begins "file"
13461 MAGIC_CMD=$MAGIC_CMD
13463 # Used on cygwin: DLL creation program.
13466 # Used on cygwin: object dumper.
13469 # Used on cygwin: assembler.
13472 # The name of the directory that contains temporary libtool files.
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").
13488 # Shared library suffix (normally ".so").
13489 shrext_cmds='$shrext_cmds'
13491 # Executable file suffix (normally "").
13494 # Additional compiler flags for building library objects.
13495 pic_flag=$lt_lt_prog_compiler_pic_CXX
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.
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
13578 predep_objects=$lt_predep_objects_CXX
13580 # Dependencies to place after the objects being linked to create a
13582 postdep_objects=$lt_postdep_objects_CXX
13584 # Dependencies to place before the objects being linked to create a
13586 predeps=$lt_predeps_CXX
13588 # Dependencies to place after the objects being linked to create a
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
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
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"
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
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
13736 if test -n "$F77" && test "X$F77" != "Xno"; then
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
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.
13766 # Object file extension for compiled f77 test sources.
13770 # Code to be used in simple compile tests
13771 lt_simple_compile_test_code
="\
13777 # Code to be used in simple link tests
13778 lt_simple_link_test_code
="\
13783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13785 # If no C compiler was specified, use 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.
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`
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`
13809 # Allow CC to be a program name with arguments.
13814 for cc_temp
in $compiler""; do
13816 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13817 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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.
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'
13845 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13846 test "$enable_shared" = yes && enable_static
=no
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; }
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'
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'
13884 # FIXME: we need at least 68020 code to build shared libraries, but
13885 # adding the `-m68020' flag to GCC prevents building anything better,
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'
13909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13910 # Instead, we relocate shared libraries at runtime.
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
13921 if test -d /usr
/nec
; then
13922 lt_prog_compiler_pic_F77
=-Kconform_pic
13927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13928 # not for PA HP-UX.
13934 lt_prog_compiler_pic_F77
='-fPIC'
13940 lt_prog_compiler_pic_F77
='-fPIC'
13944 # PORTME Check for flag to pass linker flags through the system compiler.
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'
13952 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13956 # PIC is the default on this platform
13957 # Common symbols not allowed in MH_DYLIB files
13958 case $cc_basename in
13960 lt_prog_compiler_pic_F77
='-qnocommon'
13961 lt_prog_compiler_wl_F77
='-Wl,'
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.
13981 lt_prog_compiler_pic_F77
='+Z'
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'
13995 lt_prog_compiler_pic_F77
='-KPIC'
13996 lt_prog_compiler_static_F77
='-Bstatic'
13999 linux
* | k
*bsd
*-gnu)
14000 case $cc_basename in
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'
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
14022 lt_prog_compiler_pic_F77
='-KPIC'
14023 lt_prog_compiler_static_F77
='-Bstatic'
14024 lt_prog_compiler_wl_F77
='-Wl,'
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
=''
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'
14044 lt_prog_compiler_static_F77
='-non_shared'
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,';;
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'
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'
14084 lt_prog_compiler_wl_F77
='-Wl,'
14085 lt_prog_compiler_can_build_shared_F77
=no
14089 lt_prog_compiler_pic_F77
='-pic'
14090 lt_prog_compiler_static_F77
='-Bstatic'
14094 lt_prog_compiler_can_build_shared_F77
=no
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
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
)
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
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
14148 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14151 lt_prog_compiler_pic_F77
=
14152 lt_prog_compiler_can_build_shared_F77
=no
14157 # For platforms which do not support PIC, -DPIC is meaningless:
14159 lt_prog_compiler_pic_F77
=
14162 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
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
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
14191 lt_prog_compiler_static_works_F77
=yes
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
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
14213 lt_cv_prog_compiler_c_o_F77
=no
14214 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
14266 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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; }
14285 allow_undefined_flag_F77
=
14286 enable_shared_with_static_runtimes_F77
=no
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
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
14323 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14324 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14329 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
14341 # we just hope/assume this is gcc and not c89 (= MSVC++)
14350 if test "$with_gnu_ld" = yes; then
14351 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
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 ;;
14375 # See if GNU ld supports shared libraries.
14377 aix3
* | aix4
* | aix5
*)
14378 # On AIX/PPC, the GNU linker is very broken
14379 if test "$host_cpu" != ia64
; then
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.
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
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'
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;
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'
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
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' ;;
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' ;;
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'
14499 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14500 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
14509 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
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'
14529 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14530 case `$LD -v 2>&1` in
14531 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
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.
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'
14557 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
14573 if test "$ld_shlibs_F77" = no
; then
14575 hardcode_libdir_flag_spec_F77
=
14576 export_dynamic_flag_spec_F77
=
14577 whole_archive_flag_spec_F77
=
14580 # PORTME fill in a description of your system's linker (not GNU ld)
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
14592 hardcode_direct_F77
=unsupported
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'
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'
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
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
14649 # We have reworked collect2
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
=
14663 shared_flag
='-shared'
14664 if test "$aix_use_runtimelinking" = yes; then
14665 shared_flag
="$shared_flag "'${wl}-G'
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:
14674 if test "$aix_use_runtimelinking" = yes; then
14675 shared_flag
='${wl}-G'
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
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;;
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>conftest.er1
14704 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
14745 # Determine the default libpath from the value encoded in an empty executable.
14746 cat >conftest.$ac_ext <<_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;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_link") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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'
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
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.
14828 # Tell ltmain to make .dll files, not .so files.
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
*)
14842 rhapsody
* | darwin1.
[012])
14843 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14846 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14847 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14849 case ${MACOSX_DEPLOYMENT_TARGET} in
14851 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14854 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
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}'
14874 case $cc_basename in
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}'
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
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
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.
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
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'
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'
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'
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
14963 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14966 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
14978 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
14988 if test "$with_gnu_ld" = no
; then
14989 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14990 hardcode_libdir_separator_F77
=:
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
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'
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
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
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
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
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'
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'
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'
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'
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'
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
=:
15105 no_undefined_flag_F77
=' -z text'
15106 if test "$GCC" = yes; then
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'
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
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'
15129 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15133 link_all_deplibs_F77
=yes
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'
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
15151 case $host_vendor in
15153 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154 hardcode_direct_F77
=yes # is this really true???
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
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
15168 runpath_var
='LD_RUN_PATH'
15169 hardcode_shlibpath_var_F77
=no
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'
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
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'
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
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'
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'
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
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
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
15256 # FIXME: we may have to deal with multi-command sequences.
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; }
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
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } 2>conftest.err
; then
15274 libobjs
=conftest.
$ac_objext
15276 wl
=$lt_prog_compiler_wl_F77
15277 pic_flag
=$lt_prog_compiler_pic_F77
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
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }
15291 archive_cmds_need_lc_F77
=no
15293 archive_cmds_need_lc_F77
=yes
15295 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15297 cat conftest.err
1>&5
15300 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15301 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
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'
15315 postuninstall_cmds
=
15319 shlibpath_overrides_runpath
=unknown
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
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'
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
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.
15357 aix4 | aix4.
[01] | aix4.
[01].
*)
15358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15360 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15363 can_build_shared
=no
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}'
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
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'
15392 library_names_spec
='${libname}${shared_ext}'
15393 dynamic_linker
="$host_os ld.so"
15394 shlibpath_var
=LIBRARY_PATH
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
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~
15430 shlibpath_overrides_runpath
=yes
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"
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'`
15451 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
15462 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15465 dynamic_linker
='Win32 ld.exe'
15466 # FIXME: first we should search . and the directory the executable is in
15470 darwin
* | rhapsody
*)
15471 dynamic_linker
="$host_os dyld"
15472 version_type
=darwin
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'
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
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`
15504 freebsd
[123]*) objformat
=aout
;;
15505 *) objformat
=elf
;;
15508 version_type
=freebsd-
$objformat
15509 case $version_type in
15511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15516 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15520 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
15569 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15571 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
15593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15594 postinstall_cmds
='chmod 555 $lib'
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
*)
15611 nonstopux
*) version_type
=nonstopux
;;
15613 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
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
;;
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
*)
15651 # This must be Linux ELF.
15652 linux
* | k
*bsd
*-gnu)
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'
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'
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
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
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
15718 sys_lib_dlsearch_path_spec
="/usr/lib"
15720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15722 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15723 *) need_version
=no
;;
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
15730 openbsd2.
[89] | openbsd2.
[89].
*)
15731 shlibpath_overrides_runpath
=no
15734 shlibpath_overrides_runpath
=yes
15738 shlibpath_overrides_runpath
=yes
15743 libname_spec
='$name'
15746 library_names_spec
='$libname${shared_ext} $libname.a'
15747 dynamic_linker
='OS/2 ld.exe'
15748 shlibpath_var
=LIBPATH
15751 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
15798 shlibpath_overrides_runpath
=no
15800 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15801 runpath_var
=LD_RUN_PATH
15809 shlibpath_overrides_runpath
=no
15810 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15816 if test -d /usr
/nec
;then
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
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
15836 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15837 shlibpath_overrides_runpath
=yes
15840 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15844 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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
15884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15885 hardcode_action_F77
=immediate
15888 # We cannot hardcode anything, or else we can only hardcode existing
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 \
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 \
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 \
15944 compiler_lib_search_path_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 \
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
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\"\`\\\""
15987 *'\$0 --fallback-echo"')
15988 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
16018 host_alias=$host_alias
16022 # The build system.
16023 build_alias=$build_alias
16027 # An echo program that does not interpret backslashes.
16032 AR_FLAGS=$lt_AR_FLAGS
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?
16049 # The linker used to build libraries.
16052 # Whether we need hard or soft links.
16055 # A BSD-compatible nm program.
16058 # A symbol stripping program
16061 # Used to examine libraries when file_magic_cmd begins "file"
16062 MAGIC_CMD=$MAGIC_CMD
16064 # Used on cygwin: DLL creation program.
16067 # Used on cygwin: object dumper.
16070 # Used on cygwin: assembler.
16073 # The name of the directory that contains temporary libtool files.
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").
16089 # Shared library suffix (normally ".so").
16090 shrext_cmds='$shrext_cmds'
16092 # Executable file suffix (normally "").
16095 # Additional compiler flags for building library objects.
16096 pic_flag=$lt_lt_prog_compiler_pic_F77
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.
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
16179 predep_objects=$lt_predep_objects_F77
16181 # Dependencies to place after the objects being linked to create a
16183 postdep_objects=$lt_postdep_objects_F77
16185 # Dependencies to place before the objects being linked to create a
16187 predeps=$lt_predeps_F77
16189 # Dependencies to place after the objects being linked to create a
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
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
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"
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
16328 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16331 # Source file extension for Java test sources.
16334 # Object file extension for compiled Java test sources.
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.
16349 # If no C compiler flags were specified, use CFLAGS.
16350 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16352 # Allow CC to be a program name with arguments.
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`
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`
16370 # Allow CC to be a program name with arguments.
16375 for cc_temp
in $compiler""; do
16377 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16378 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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
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
)
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
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"
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'
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'
16465 # FIXME: we need at least 68020 code to build shared libraries, but
16466 # adding the `-m68020' flag to GCC prevents building anything better,
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'
16490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16491 # Instead, we relocate shared libraries at runtime.
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
16502 if test -d /usr
/nec
; then
16503 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16509 # not for PA HP-UX.
16515 lt_prog_compiler_pic_GCJ
='-fPIC'
16521 lt_prog_compiler_pic_GCJ
='-fPIC'
16525 # PORTME Check for flag to pass linker flags through the system compiler.
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'
16533 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16537 # PIC is the default on this platform
16538 # Common symbols not allowed in MH_DYLIB files
16539 case $cc_basename in
16541 lt_prog_compiler_pic_GCJ
='-qnocommon'
16542 lt_prog_compiler_wl_GCJ
='-Wl,'
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.
16562 lt_prog_compiler_pic_GCJ
='+Z'
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'
16576 lt_prog_compiler_pic_GCJ
='-KPIC'
16577 lt_prog_compiler_static_GCJ
='-Bstatic'
16580 linux
* | k
*bsd
*-gnu)
16581 case $cc_basename in
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'
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
16603 lt_prog_compiler_pic_GCJ
='-KPIC'
16604 lt_prog_compiler_static_GCJ
='-Bstatic'
16605 lt_prog_compiler_wl_GCJ
='-Wl,'
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
=''
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'
16625 lt_prog_compiler_static_GCJ
='-non_shared'
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,';;
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'
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'
16665 lt_prog_compiler_wl_GCJ
='-Wl,'
16666 lt_prog_compiler_can_build_shared_GCJ
=no
16670 lt_prog_compiler_pic_GCJ
='-pic'
16671 lt_prog_compiler_static_GCJ
='-Bstatic'
16675 lt_prog_compiler_can_build_shared_GCJ
=no
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
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
)
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
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
16729 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16732 lt_prog_compiler_pic_GCJ
=
16733 lt_prog_compiler_can_build_shared_GCJ
=no
16738 # For platforms which do not support PIC, -DPIC is meaningless:
16740 lt_prog_compiler_pic_GCJ
=
16743 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
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
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
16772 lt_prog_compiler_static_works_GCJ
=yes
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
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
16794 lt_cv_prog_compiler_c_o_GCJ
=no
16795 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
16847 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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; }
16866 allow_undefined_flag_GCJ
=
16867 enable_shared_with_static_runtimes_GCJ
=no
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
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
16904 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16905 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16910 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
16922 # we just hope/assume this is gcc and not c89 (= MSVC++)
16931 if test "$with_gnu_ld" = yes; then
16932 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
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 ;;
16956 # See if GNU ld supports shared libraries.
16958 aix3
* | aix4
* | aix5
*)
16959 # On AIX/PPC, the GNU linker is very broken
16960 if test "$host_cpu" != ia64
; then
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.
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
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'
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;
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'
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
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' ;;
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' ;;
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'
17080 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17081 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
17090 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
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'
17110 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17111 case `$LD -v 2>&1` in
17112 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
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.
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'
17138 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
17154 if test "$ld_shlibs_GCJ" = no
; then
17156 hardcode_libdir_flag_spec_GCJ
=
17157 export_dynamic_flag_spec_GCJ
=
17158 whole_archive_flag_spec_GCJ
=
17161 # PORTME fill in a description of your system's linker (not GNU ld)
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
17173 hardcode_direct_GCJ
=unsupported
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'
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'
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
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
17230 # We have reworked collect2
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
=
17244 shared_flag
='-shared'
17245 if test "$aix_use_runtimelinking" = yes; then
17246 shared_flag
="$shared_flag "'${wl}-G'
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:
17255 if test "$aix_use_runtimelinking" = yes; then
17256 shared_flag
='${wl}-G'
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
17274 cat confdefs.h
>>conftest.
$ac_ext
17275 cat >>conftest.
$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
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;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_link") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
17336 # Determine the default libpath from the value encoded in an empty executable.
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
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;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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'
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
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.
17429 # Tell ltmain to make .dll files, not .so files.
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
*)
17443 rhapsody
* | darwin1.
[012])
17444 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17447 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17448 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17450 case ${MACOSX_DEPLOYMENT_TARGET} in
17452 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17455 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
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}'
17475 case $cc_basename in
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}'
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
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
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.
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
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'
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'
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'
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
17564 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17567 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
17579 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
17589 if test "$with_gnu_ld" = no
; then
17590 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17591 hardcode_libdir_separator_GCJ
=:
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
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'
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
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
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
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
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'
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'
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'
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'
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'
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
=:
17706 no_undefined_flag_GCJ
=' -z text'
17707 if test "$GCC" = yes; then
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'
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
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'
17730 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17734 link_all_deplibs_GCJ
=yes
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'
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
17752 case $host_vendor in
17754 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17755 hardcode_direct_GCJ
=yes # is this really true???
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
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
17769 runpath_var
='LD_RUN_PATH'
17770 hardcode_shlibpath_var_GCJ
=no
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'
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
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'
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
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'
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'
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
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
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
17857 # FIXME: we may have to deal with multi-command sequences.
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; }
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
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } 2>conftest.err
; then
17875 libobjs
=conftest.
$ac_objext
17877 wl
=$lt_prog_compiler_wl_GCJ
17878 pic_flag
=$lt_prog_compiler_pic_GCJ
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
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }
17892 archive_cmds_need_lc_GCJ
=no
17894 archive_cmds_need_lc_GCJ
=yes
17896 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17898 cat conftest.err
1>&5
17901 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17902 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
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'
17916 postuninstall_cmds
=
17920 shlibpath_overrides_runpath
=unknown
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
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'
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
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.
17958 aix4 | aix4.
[01] | aix4.
[01].
*)
17959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17961 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17964 can_build_shared
=no
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}'
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
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'
17993 library_names_spec
='${libname}${shared_ext}'
17994 dynamic_linker
="$host_os ld.so"
17995 shlibpath_var
=LIBRARY_PATH
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
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~
18031 shlibpath_overrides_runpath
=yes
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"
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'`
18052 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
18063 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18066 dynamic_linker
='Win32 ld.exe'
18067 # FIXME: first we should search . and the directory the executable is in
18071 darwin
* | rhapsody
*)
18072 dynamic_linker
="$host_os dyld"
18073 version_type
=darwin
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'
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
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`
18105 freebsd
[123]*) objformat
=aout
;;
18106 *) objformat
=elf
;;
18109 version_type
=freebsd-
$objformat
18110 case $version_type in
18112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18117 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18121 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
18170 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18172 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
18194 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18195 postinstall_cmds
='chmod 555 $lib'
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
*)
18212 nonstopux
*) version_type
=nonstopux
;;
18214 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
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
;;
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
*)
18252 # This must be Linux ELF.
18253 linux
* | k
*bsd
*-gnu)
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'
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'
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
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
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
18319 sys_lib_dlsearch_path_spec
="/usr/lib"
18321 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18323 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18324 *) need_version
=no
;;
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
18331 openbsd2.
[89] | openbsd2.
[89].
*)
18332 shlibpath_overrides_runpath
=no
18335 shlibpath_overrides_runpath
=yes
18339 shlibpath_overrides_runpath
=yes
18344 libname_spec
='$name'
18347 library_names_spec
='$libname${shared_ext} $libname.a'
18348 dynamic_linker
='OS/2 ld.exe'
18349 shlibpath_var
=LIBPATH
18352 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
18399 shlibpath_overrides_runpath
=no
18401 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18402 runpath_var
=LD_RUN_PATH
18410 shlibpath_overrides_runpath
=no
18411 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18417 if test -d /usr
/nec
;then
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
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
18437 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18438 shlibpath_overrides_runpath
=yes
18441 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18445 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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
18485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18486 hardcode_action_GCJ
=immediate
18489 # We cannot hardcode anything, or else we can only hardcode existing
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 \
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 \
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 \
18545 compiler_lib_search_path_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 \
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
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\"\`\\\""
18588 *'\$0 --fallback-echo"')
18589 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
18619 host_alias=$host_alias
18623 # The build system.
18624 build_alias=$build_alias
18628 # An echo program that does not interpret backslashes.
18633 AR_FLAGS=$lt_AR_FLAGS
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?
18650 # The linker used to build libraries.
18653 # Whether we need hard or soft links.
18656 # A BSD-compatible nm program.
18659 # A symbol stripping program
18662 # Used to examine libraries when file_magic_cmd begins "file"
18663 MAGIC_CMD=$MAGIC_CMD
18665 # Used on cygwin: DLL creation program.
18668 # Used on cygwin: object dumper.
18671 # Used on cygwin: assembler.
18674 # The name of the directory that contains temporary libtool files.
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").
18690 # Shared library suffix (normally ".so").
18691 shrext_cmds='$shrext_cmds'
18693 # Executable file suffix (normally "").
18696 # Additional compiler flags for building library objects.
18697 pic_flag=$lt_lt_prog_compiler_pic_GCJ
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.
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
18780 predep_objects=$lt_predep_objects_GCJ
18782 # Dependencies to place after the objects being linked to create a
18784 postdep_objects=$lt_postdep_objects_GCJ
18786 # Dependencies to place before the objects being linked to create a
18788 predeps=$lt_predeps_GCJ
18790 # Dependencies to place after the objects being linked to create a
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
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
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"
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
18931 # Source file extension for RC test sources.
18934 # Object file extension for compiled RC test sources.
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.
18949 # If no C compiler flags were specified, use CFLAGS.
18950 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18952 # Allow CC to be a program name with arguments.
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`
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`
18970 # Allow CC to be a program name with arguments.
18975 for cc_temp
in $compiler""; do
18977 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18978 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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 \
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 \
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 \
19026 compiler_lib_search_path_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 \
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
19047 old_archive_cmds_RC | \
19048 old_archive_from_new_cmds_RC | \
19049 archive_cmds_RC | \
19050 archive_expsym_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\"\`\\\""
19069 *'\$0 --fallback-echo"')
19070 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
19100 host_alias=$host_alias
19104 # The build system.
19105 build_alias=$build_alias
19109 # An echo program that does not interpret backslashes.
19114 AR_FLAGS=$lt_AR_FLAGS
19119 # LTCC compiler flags.
19120 LTCFLAGS=$lt_LTCFLAGS
19122 # A language-specific compiler.
19125 # Is the compiler the GNU C compiler?
19131 # The linker used to build libraries.
19134 # Whether we need hard or soft links.
19137 # A BSD-compatible nm program.
19140 # A symbol stripping program
19143 # Used to examine libraries when file_magic_cmd begins "file"
19144 MAGIC_CMD=$MAGIC_CMD
19146 # Used on cygwin: DLL creation program.
19149 # Used on cygwin: object dumper.
19152 # Used on cygwin: assembler.
19155 # The name of the directory that contains temporary libtool files.
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").
19171 # Shared library suffix (normally ".so").
19172 shrext_cmds='$shrext_cmds'
19174 # Executable file suffix (normally "").
19177 # Additional compiler flags for building library objects.
19178 pic_flag=$lt_lt_prog_compiler_pic_RC
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.
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
19261 predep_objects=$lt_predep_objects_RC
19263 # Dependencies to place after the objects being linked to create a
19265 postdep_objects=$lt_postdep_objects_RC
19267 # Dependencies to place before the objects being linked to create a
19269 predeps=$lt_predeps_RC
19271 # Dependencies to place after the objects being linked to create a
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
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
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"
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
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; }; }
19413 # Append the new tag name to the list of available tags.
19414 if test -n "$tagname" ; then
19415 available_tags
="$available_tags $tagname"
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"
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
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
19479 OPTFLAG
=${OPTFLAG-"-g"}
19480 no_op_OPTFLAG
=${no_op_OPTFLAG-"-g"}
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"};;
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
19510 if test -n "$CC"; then
19511 ac_cv_prog_CC
="$CC" # Let the user override the test.
19513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19514 for as_dir
in $PATH
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
19531 if test -n "$CC"; then
19532 { echo "$as_me:$LINENO: result: $CC" >&5
19533 echo "${ECHO_T}$CC" >&6; }
19535 { echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6; }
19541 if test -z "$ac_cv_prog_CC"; then
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
19550 if test -n "$ac_ct_CC"; then
19551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19554 for as_dir
in $PATH
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
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; }
19575 { echo "$as_me:$LINENO: result: no" >&5
19576 echo "${ECHO_T}no" >&6; }
19579 if test "x$ac_ct_CC" = x
; then
19582 case $cross_compiling:$ac_tool_warned in
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 ;;
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
19607 if test -n "$CC"; then
19608 ac_cv_prog_CC
="$CC" # Let the user override the test.
19610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19611 for as_dir
in $PATH
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
19628 if test -n "$CC"; then
19629 { echo "$as_me:$LINENO: result: $CC" >&5
19630 echo "${ECHO_T}$CC" >&6; }
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
19647 if test -n "$CC"; then
19648 ac_cv_prog_CC
="$CC" # Let the user override the test.
19650 ac_prog_rejected
=no
19651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19652 for as_dir
in $PATH
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
19663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
19679 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19685 if test -n "$CC"; then
19686 { echo "$as_me:$LINENO: result: $CC" >&5
19687 echo "${ECHO_T}$CC" >&6; }
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
19706 if test -n "$CC"; then
19707 ac_cv_prog_CC
="$CC" # Let the user override the test.
19709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19710 for as_dir
in $PATH
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
19727 if test -n "$CC"; then
19728 { echo "$as_me:$LINENO: result: $CC" >&5
19729 echo "${ECHO_T}$CC" >&6; }
19731 { echo "$as_me:$LINENO: result: no" >&5
19732 echo "${ECHO_T}no" >&6; }
19736 test -n "$CC" && break
19739 if test -z "$CC"; then
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
19750 if test -n "$ac_ct_CC"; then
19751 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19754 for as_dir
in $PATH
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
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; }
19775 { echo "$as_me:$LINENO: result: no" >&5
19776 echo "${ECHO_T}no" >&6; }
19780 test -n "$ac_ct_CC" && break
19783 if test "x$ac_ct_CC" = x
; then
19786 case $cross_compiling:$ac_tool_warned in
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 ;;
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;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_compiler --version >&5") 2>&5
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;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_compiler -v >&5") 2>&5
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;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_compiler -V >&5") 2>&5
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
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
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;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19875 grep -v '^ *+' conftest.er1
>conftest.err
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
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.
$ac_ext >&5
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
19905 ac_save_c_werror_flag
=$ac_c_werror_flag
19906 ac_c_werror_flag
=yes
19909 cat >conftest.
$ac_ext <<_ACEOF
19912 cat confdefs.h
>>conftest.
$ac_ext
19913 cat >>conftest.
$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
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;;
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_compile") 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
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
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19947 cat >conftest.$ac_ext <<_ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
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;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19971 grep -v '^ *+' conftest.er1
>conftest.err
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
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
19986 cat >conftest.
$ac_ext <<_ACEOF
19989 cat confdefs.h
>>conftest.
$ac_ext
19990 cat >>conftest.
$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
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;;
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_compile") 2>conftest.er1
20010 grep -v '^ *+' conftest.er1 >conftest.err
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
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
20046 if test "$GCC" = yes; then
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
20057 ac_cv_prog_cc_c89=no
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <stdarg.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)
20078 static char *f (char * (*g) (char **, int), char **p, ...)
20083 s = g (p, va_arg (v,int));
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. */
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);
20111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_compile") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1
>conftest.err
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
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
20148 rm -f conftest.
$ac_ext
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; } ;;
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; } ;;
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
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
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
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
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.
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
20218 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
20260 rm -rf conftest.dir
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
='#'
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; }
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; }; }
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-""};;
20307 OPTFLAG
=${OPTFLAG-"-O"}
20311 CFLAGS
=${CFLAGS-""}
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
20325 if test -n "$CC"; then
20326 ac_cv_prog_CC
="$CC" # Let the user override the test.
20328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20329 for as_dir
in $PATH
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
20346 if test -n "$CC"; then
20347 { echo "$as_me:$LINENO: result: $CC" >&5
20348 echo "${ECHO_T}$CC" >&6; }
20350 { echo "$as_me:$LINENO: result: no" >&5
20351 echo "${ECHO_T}no" >&6; }
20356 if test -z "$ac_cv_prog_CC"; then
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
20365 if test -n "$ac_ct_CC"; then
20366 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
20368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20369 for as_dir
in $PATH
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
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; }
20390 { echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6; }
20394 if test "x$ac_ct_CC" = x
; then
20397 case $cross_compiling:$ac_tool_warned in
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 ;;
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
20422 if test -n "$CC"; then
20423 ac_cv_prog_CC
="$CC" # Let the user override the test.
20425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20426 for as_dir
in $PATH
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
20443 if test -n "$CC"; then
20444 { echo "$as_me:$LINENO: result: $CC" >&5
20445 echo "${ECHO_T}$CC" >&6; }
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
20462 if test -n "$CC"; then
20463 ac_cv_prog_CC
="$CC" # Let the user override the test.
20465 ac_prog_rejected
=no
20466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20467 for as_dir
in $PATH
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
20478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
20494 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
20500 if test -n "$CC"; then
20501 { echo "$as_me:$LINENO: result: $CC" >&5
20502 echo "${ECHO_T}$CC" >&6; }
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
20521 if test -n "$CC"; then
20522 ac_cv_prog_CC
="$CC" # Let the user override the test.
20524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20525 for as_dir
in $PATH
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
20542 if test -n "$CC"; then
20543 { echo "$as_me:$LINENO: result: $CC" >&5
20544 echo "${ECHO_T}$CC" >&6; }
20546 { echo "$as_me:$LINENO: result: no" >&5
20547 echo "${ECHO_T}no" >&6; }
20551 test -n "$CC" && break
20554 if test -z "$CC"; then
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
20565 if test -n "$ac_ct_CC"; then
20566 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
20568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20569 for as_dir
in $PATH
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
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; }
20590 { echo "$as_me:$LINENO: result: no" >&5
20591 echo "${ECHO_T}no" >&6; }
20595 test -n "$ac_ct_CC" && break
20598 if test "x$ac_ct_CC" = x
; then
20601 case $cross_compiling:$ac_tool_warned in
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 ;;
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;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compiler --version >&5") 2>&5
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;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_compiler -v >&5") 2>&5
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;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compiler -V >&5") 2>&5
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
20663 cat >conftest.$ac_ext <<_ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
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;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_compile") 2>conftest.er1
20690 grep -v '^ *+' conftest.er1
>conftest.err
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
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.
$ac_ext >&5
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
20720 ac_save_c_werror_flag
=$ac_c_werror_flag
20721 ac_c_werror_flag
=yes
20724 cat >conftest.
$ac_ext <<_ACEOF
20727 cat confdefs.h
>>conftest.
$ac_ext
20728 cat >>conftest.
$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
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;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_compile") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
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
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
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;;
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_compile") 2>conftest.er1
20786 grep -v '^ *+' conftest.er1
>conftest.err
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
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
20801 cat >conftest.
$ac_ext <<_ACEOF
20804 cat confdefs.h
>>conftest.
$ac_ext
20805 cat >>conftest.
$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
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;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
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
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
20861 if test "$GCC" = yes; then
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
20872 ac_cv_prog_cc_c89=no
20874 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 #include <stdarg.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)
20893 static char *f (char * (*g) (char **, int), char **p, ...)
20898 s = g (p, va_arg (v,int));
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. */
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);
20926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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;;
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20944 grep -v '^ *+' conftest.er1
>conftest.err
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
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
20963 rm -f conftest.
$ac_ext
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; } ;;
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; } ;;
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
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
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
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
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.
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
21033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
21075 rm -rf conftest.dir
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
='#'
21091 am__fastdepCC_TRUE
='#'
21092 am__fastdepCC_FALSE
=
21097 if test "$GCC" = yes; then
21098 cat >>confdefs.h
<<\_ACEOF
21105 no_op_OPTFLAG
=${no_op_OPTFLAG-"$OPTFLAG"}
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"};;
21122 aux
*) LIBOBJS
="getopt.o strpbrk.o $LIBOBJS";;
21126 ultrix
*) cat >>confdefs.h
<<\_ACEOF
21127 #define HAVE_BROKEN_VDISABLE 1
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"
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 /'
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"
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
21180 case $vi_cv_path_shell in
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
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
21200 test -z "$ac_cv_path_vi_cv_path_shell" && ac_cv_path_vi_cv_path_shell
="no"
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; }
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
21227 case $vi_cv_path_sendmail in
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
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
21247 test -z "$ac_cv_path_vi_cv_path_sendmail" && ac_cv_path_vi_cv_path_sendmail
="no"
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; }
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
21278 case $vi_cv_path_perl in
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
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
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; }
21306 { echo "$as_me:$LINENO: result: no" >&5
21307 echo "${ECHO_T}no" >&6; }
21311 test -n "$vi_cv_path_perl" && break
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
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
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
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
21355 case $vi_cv_path_fuser in
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
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
21375 test -z "$ac_cv_path_vi_cv_path_fuser" && ac_cv_path_vi_cv_path_fuser
="no"
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; }
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
21396 case $vi_cv_path_lsof in
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
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
21416 test -z "$ac_cv_path_vi_cv_path_lsof" && ac_cv_path_vi_cv_path_lsof
="no"
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; }
21425 { echo "$as_me:$LINENO: result: no" >&5
21426 echo "${ECHO_T}no" >&6; }
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
21448 if test -n "$AWK"; then
21449 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
21451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21452 for as_dir
in $PATH
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
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; }
21473 { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21478 test -n "$AWK" && break
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
21488 case $vi_cv_path_ar in
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
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
21508 test -z "$ac_cv_path_vi_cv_path_ar" && ac_cv_path_vi_cv_path_ar
="missing_ar"
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; }
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
21529 case $vi_cv_path_chmod in
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
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
21549 test -z "$ac_cv_path_vi_cv_path_chmod" && ac_cv_path_vi_cv_path_chmod
="missing_chmod"
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; }
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
21570 case $vi_cv_path_cp in
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
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
21590 test -z "$ac_cv_path_vi_cv_path_cp" && ac_cv_path_vi_cv_path_cp
="missing_cp"
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; }
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
21611 case $vi_cv_path_ln in
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
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
21631 test -z "$ac_cv_path_vi_cv_path_ln" && ac_cv_path_vi_cv_path_ln
="missing_ln"
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; }
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
21652 case $vi_cv_path_mkdir in
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
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
21672 test -z "$ac_cv_path_vi_cv_path_mkdir" && ac_cv_path_vi_cv_path_mkdir
="missing_mkdir"
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; }
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
21693 case $vi_cv_path_rm in
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
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
21713 test -z "$ac_cv_path_vi_cv_path_rm" && ac_cv_path_vi_cv_path_rm
="missing_rm"
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; }
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
21734 case $vi_cv_path_ranlib in
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
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
21754 test -z "$ac_cv_path_vi_cv_path_ranlib" && ac_cv_path_vi_cv_path_ranlib
="missing_ranlib"
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; }
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
21775 case $vi_cv_path_strip in
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
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
21795 test -z "$ac_cv_path_vi_cv_path_strip" && ac_cv_path_vi_cv_path_strip
="missing_strip"
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; }
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
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.
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
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
21836 cat >Imakefile
<<'_ACEOF'
21838 @echo incroot='${INCROOT}'
21840 @echo usrlibdir='${USRLIBDIR}'
21842 @echo libdir='${LIBDIR}'
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'\`"
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
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;;
21863 case $ac_im_usrlibdir in
21864 /usr
/lib |
/lib
) ;;
21865 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
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.
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
21897 /usr/XFree86/include/X11
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
21915 cat confdefs.h
>>conftest.
$ac_ext
21916 cat >>conftest.
$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 #include <X11/Xlib.h>
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;;
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21928 grep -v '^ *+' conftest.er1 >conftest.err
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
21936 # We can compile using X headers with no special include directory.
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
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.
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 #include <X11/Xlib.h>
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;;
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_link") 2>conftest.er1
21983 grep -v '^ *+' conftest.er1
>conftest.err
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
21993 # We can link X programs with no special library path.
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.
$ac_ext >&5
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
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'"
22030 eval "$ac_cv_have_x"
22033 if test "$have_x" != yes; then
22034 { echo "$as_me:$LINENO: result: $have_x" >&5
22035 echo "${ECHO_T}$have_x" >&6; }
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
22068 vi_cv_widechar
="no"
22071 if test "$vi_cv_widechar" = "yes"; then
22072 cat >>confdefs.h
<<\_ACEOF
22073 #define USE_WIDECHAR 1
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; }
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
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>
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;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
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
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
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 #include <langinfo.h>
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;;
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22149 grep -v '^ *+' conftest.er1
>conftest.err
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
22157 ac_header_preproc
=yes
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
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
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;}
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
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; }
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
22222 cat confdefs.h
>>conftest.
$ac_ext
22223 cat >>conftest.
$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225 $ac_includes_default
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;;
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_compile") 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
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
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
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
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;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1
>conftest.err
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
22284 ac_header_preproc
=yes
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
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
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;}
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
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
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
22347 cat >conftest.
$ac_ext <<_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. */
22363 # include <limits.h>
22365 # include <assert.h>
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. */
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
22387 return $ac_func ();
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;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_link") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
22430 case " $LIBOBJS " in
22431 *" $ac_func.$ac_objext "* ) ;;
22432 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
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
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
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
22475 case $PKG_CONFIG in
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
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
22495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
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; }
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; }; }
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; }; }
22527 if test x$PKG_CONFIG = xno ; then
22528 PKG_CONFIG=/bin/false
22531 vi_programs="$vi_programs vi-gtk"
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
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/.
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/.
22555 { (exit 1); exit 1; }; }
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"
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"
22570 gtk_config_exec_prefix=""
22573 # Check whether --enable-gtktest was given.
22574 if test "${enable_gtktest+set}" = set; then
22575 enableval=$enable_gtktest;
22585 gtk_config_args="$gtk_config_args gthread"
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
22610 case $GTK_CONFIG in
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
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
22630 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
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; }
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; }
22648 if test "$GTK_CONFIG" = "no" ; then
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"
22665 if test "$cross_compiling" = yes; then
22666 echo $ac_n "cross compiling; assumed OK... $ac_c"
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 #include <gtk/gtk.h>
22677 #include <stdlib.h>
22682 int major, minor, micro;
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, µ) != 3) {
22690 printf("%s, bad version string\n", "$min_gtk_version");
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) ... */
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)))
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");
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");
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;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_link") 2>&5
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;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_try") 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
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 )
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; }
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."
22800 if test -f conf.gtktest ; then
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
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22813 #include <gtk/gtk.h>
22819 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
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;;
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_link") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1
>conftest.err
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"
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"
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"
22855 echo "*** rpm --erase --nodeps gtk gtk-devel"
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"
22880 GTKINCS
="$GTK_CFLAGS"
22881 GTKLIBS
="$GTK_LIBS $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
22892 ac_check_lib_save_LIBS
=$LIBS
22893 LIBS
="-lnvizvt $LIBS"
22894 cat >conftest.
$ac_ext <<_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. */
22907 char zvt_get_ptys ();
22911 return zvt_get_ptys ();
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;;
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_link") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
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
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
22954 if test "$vi_cv_zvt" = "yes"; then
22955 GTKLIBS="-lnvizvt $LIBS"
22956 cat >>confdefs.h <<\_ACEOF
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"
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
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"
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
22997 ac_check_lib_save_LIBS=$LIBS
22998 LIBS="-lSM "$XLIBS" $LIBS"
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
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;;
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_link") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
23061 ac_check_lib_save_LIBS
=$LIBS
23062 LIBS
="-lICE "$XLIBS" $LIBS"
23063 cat >conftest.
$ac_ext <<_ACEOF
23066 cat confdefs.h
>>conftest.
$ac_ext
23067 cat >>conftest.
$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
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;;
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_link") 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
23125 ac_check_lib_save_LIBS=$LIBS
23126 LIBS="-lXext "$XLIBS" $LIBS"
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
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;;
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_link") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
23189 ac_check_lib_save_LIBS
=$LIBS
23190 LIBS
="-lXpm "$XLIBS" $LIBS"
23191 cat >conftest.
$ac_ext <<_ACEOF
23194 cat confdefs.h
>>conftest.
$ac_ext
23195 cat >>conftest.
$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
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;;
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_link") 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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
23268 cat >conftest.$ac_ext <<_ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <pthread.h>
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;;
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_link") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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 \
23371 perlldflags
=`cd $srcdir;$vi_cv_path_perl -MExtUtils::Embed \
23373 LIBOBJS
="perl.o perlxsi.o perlsfio.o $LIBOBJS"
23374 cat >>confdefs.h
<<\_ACEOF
23375 #define HAVE_PERL_INTERP 1
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
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; }; }
23391 cat >conftest.
$ac_ext <<_ACEOF
23394 cat confdefs.h
>>conftest.
$ac_ext
23395 cat >>conftest.
$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23398 #include <EXTERN.h>
23402 #if defined(USE_ENVIRON_ARRAY) && !defined(PERL_USE_SAFE_PUTENV)
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;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_link") 2>&5
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;;
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426 (eval "$ac_try") 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 vi_cv_perl_setenv
=yes
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
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
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
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; }; }
23483 LIBOBJS
="tcl.o $LIBOBJS"
23484 LIBS
="$TCL_LIB_SPEC $TCL_LIBS $LIBS"
23485 cat >>confdefs.h
<<\_ACEOF
23486 #define HAVE_TCL_INTERP 1
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
23520 ac_check_lib_save_LIBS
=$LIBS
23521 LIBS
="-l$vi_cv_curses $LIBS"
23522 cat >conftest.
$ac_ext <<_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. */
23539 return waddnwstr ();
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;;
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_link") 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
23581 vi_cv_curses=unknown
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
23591 ac_check_lib_save_LIBS=$LIBS
23592 LIBS="-l$vi_cv_curses $LIBS"
23593 cat >conftest.$ac_ext <<_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. */
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;;
23621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23622 (eval "$ac_link") 2>conftest.er1
23624 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
23652 vi_cv_curses
=unknown
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; }
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
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>
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;;
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
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
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
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
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;;
23730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23733 grep -v '^ *+' conftest.er1
>conftest.err
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
23741 ac_header_preproc
=yes
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
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
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;}
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
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
23794 CURSHEADER
=ncurses.h
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; }
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
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>
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;;
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834 (eval "$ac_compile") 2>conftest.er1
23836 grep -v '^ *+' conftest.er1 >conftest.err
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
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
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23865 #include <$ac_header>
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;;
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23875 grep -v '^ *+' conftest.er1
>conftest.err
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
23883 ac_header_preproc
=yes
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
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
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;}
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
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
23936 CURSHEADER
=ncursesw
/ncurses.h
23942 vi_programs
="vi $vi_programs"
23943 CURSLIBS
="-l$vi_cv_curses"
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
23960 ac_check_lib_save_LIBS
=$LIBS
23961 LIBS
="-l$vi_cv_curses $LIBS"
23962 cat >conftest.
$ac_ext <<_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. */
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;;
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991 (eval "$ac_link") 2>conftest.er1
23993 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
24029 ac_check_lib_save_LIBS=$LIBS
24030 LIBS="-ltermlib $LIBS"
24031 cat >conftest.$ac_ext <<_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. */
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;;
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_link") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
24097 ac_check_lib_save_LIBS
=$LIBS
24098 LIBS
="-ltermcap $LIBS"
24099 cat >conftest.
$ac_ext <<_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. */
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;;
24127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24128 (eval "$ac_link") 2>conftest.er1
24130 grep -v '^ *+' conftest.er1 >conftest.err
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
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
24161 if test "$vi_cv_termlib" != no; then
24162 CURSLIBS="$CURSLIBS $vi_cv_termlib"
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
24174 cat >conftest.$ac_ext <<_ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 #include <sys/mman.h>
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;;
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24190 grep -v '^ *+' conftest.er1
>conftest.err
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
24198 vi_cv_include_sys_mman
=yes
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
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
24223 cat >conftest.
$ac_ext <<_ACEOF
24226 cat confdefs.h
>>conftest.
$ac_ext
24227 cat >>conftest.
$ac_ext <<_ACEOF
24228 /* end confdefs.h. */
24229 #include <sys/select.h>
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;;
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24239 grep -v '^ *+' conftest.er1 >conftest.err
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
24247 vi_cv_include_sys_select=yes
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
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
24272 cat >conftest.$ac_ext <<_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_;
24283 if ((ac__type_new_ *) 0)
24285 if (sizeof (ac__type_new_))
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;;
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24300 grep -v '^ *+' conftest.er1
>conftest.err
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
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
24324 cat >>confdefs.h
<<_ACEOF
24325 #define ssize_t int
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
24335 # See if sys/param.h defines the BYTE_ORDER macro.
24336 cat >conftest.
$ac_ext <<_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>
24348 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24349 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24350 bogus endian macros
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;;
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364 (eval "$ac_compile") 2>conftest.er1
24366 grep -v '^ *+' conftest.er1 >conftest.err
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
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>
24387 #if BYTE_ORDER != BIG_ENDIAN
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;;
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_compile") 2>conftest.er1
24404 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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; }
24444 _ascii (); _ebcdic ();
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;;
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456 (eval "$ac_compile") 2>conftest.er1
24458 grep -v '^ *+' conftest.er1 >conftest.err
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
24473 # finding both strings is unlikely to happen, but who knows?
24474 ac_cv_c_bigendian=unknown
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
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24497 /* Are we little or big endian? From Harbison&Steele. */
24501 char c[sizeof (long int)];
24504 return u.c[sizeof (long int) - 1] == 1;
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;;
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517 (eval "$ac_link") 2>&5
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;;
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526 (eval "$ac_try") 2>&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 ac_cv_c_bigendian=no
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
24552 cat >>confdefs.h <<\_ACEOF
24553 #define WORDS_BIGENDIAN 1
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; }; } ;;
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
24571 cat >conftest.$ac_ext <<_ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24581 /* FIXME: Include the comments suggested by Paul. */
24582 #ifndef __cplusplus
24583 /* Ultrix mips cc rejects this. */
24584 typedef int charset[2];
24586 /* SunOS 4.1.1 cc rejects this. */
24587 char const *const *pcpcc;
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
24596 const char *g = "string";
24597 pcpcc = &g + (g ? g-g : 0);
24598 /* HPUX 7.0 cc rejects these. */
24600 ppc = (char**) pcpcc;
24601 pcpcc = (char const *const *) ppc;
24602 { /* SCO 3.2v4 cc rejects this. */
24604 char const *s = 0 ? (char *) 0 : (char const *) 0;
24609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24610 int x[] = {25, 17};
24611 const int *foo = &x[0];
24614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24615 typedef const int *iptr;
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;
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;;
24641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642 (eval "$ac_compile") 2>conftest.er1
24644 grep -v '^ *+' conftest.er1
>conftest.err
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
24654 echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
24677 cat >conftest.
$ac_ext <<_ACEOF
24680 cat confdefs.h
>>conftest.
$ac_ext
24681 cat >>conftest.
$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24683 $ac_includes_default
24687 static struct stat ac_aggr;
24688 if (ac_aggr.st_blksize)
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;;
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_compile") 2>conftest.er1
24703 grep -v '^ *+' conftest.er1 >conftest.err
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
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 $ac_includes_default
24726 static struct stat ac_aggr;
24727 if (sizeof ac_aggr.st_blksize)
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;;
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24742 grep -v '^ *+' conftest.er1
>conftest.err
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
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
24772 cat >>confdefs.h
<<\_ACEOF
24773 #define HAVE_ST_BLKSIZE 1
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
24784 cat >conftest.
$ac_ext <<_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_;
24795 if ((ac__type_new_ *) 0)
24797 if (sizeof (ac__type_new_))
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;;
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_compile") 2>conftest.er1
24812 grep -v '^ *+' conftest.er1 >conftest.err
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
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
24836 cat >>confdefs.h <<_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
24847 cat >conftest.$ac_ext <<_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_;
24858 if ((ac__type_new_ *) 0)
24860 if (sizeof (ac__type_new_))
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;;
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24875 grep -v '^ *+' conftest.er1
>conftest.err
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
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
24899 cat >>confdefs.h
<<_ACEOF
24900 #define off_t long int
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
24910 cat >conftest.
$ac_ext <<_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_;
24921 if ((ac__type_new_ *) 0)
24923 if (sizeof (ac__type_new_))
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;;
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_compile") 2>conftest.er1
24938 grep -v '^ *+' conftest.er1 >conftest.err
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
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
24962 cat >>confdefs.h <<_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
24973 cat >conftest.$ac_ext <<_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_;
24984 if ((ac__type_new_ *) 0)
24986 if (sizeof (ac__type_new_))
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;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1
>conftest.err
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
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
25025 cat >>confdefs.h
<<_ACEOF
25026 #define size_t unsigned int
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
25036 cat >conftest.
$ac_ext <<_ACEOF
25039 cat confdefs.h
>>conftest.
$ac_ext
25040 cat >>conftest.
$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042 #include <sys/types.h>
25049 int *p = &tm.tm_sec;
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;;
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_compile") 2>conftest.er1
25064 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
25105 cat >conftest.$ac_ext <<_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. */
25121 # include <limits.h>
25123 # include <assert.h>
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. */
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
25145 return $ac_func ();
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;;
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157 (eval "$ac_link") 2>conftest.er1
25159 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
25188 case " $LIBOBJS " in
25189 *" $ac_func.$ac_objext "* ) ;;
25190 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
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
25210 cat >conftest.
$ac_ext <<_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. */
25226 # include <limits.h>
25228 # include <assert.h>
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. */
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
25250 return $ac_func ();
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;;
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262 (eval "$ac_link") 2>conftest.er1
25264 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
25293 case " $LIBOBJS " in
25294 *" $ac_func.$ac_objext "* ) ;;
25295 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
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
25313 cat >conftest.$ac_ext <<_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. */
25329 # include <limits.h>
25331 # include <assert.h>
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. */
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
25353 return $ac_func ();
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;;
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365 (eval "$ac_link") 2>conftest.er1
25367 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
25396 case " $LIBOBJS " in
25397 *" $ac_func.$ac_objext "* ) ;;
25398 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
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
25416 cat >conftest.
$ac_ext <<_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. */
25432 # include <limits.h>
25434 # include <assert.h>
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. */
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
25456 return $ac_func ();
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;;
25467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25468 (eval "$ac_link") 2>conftest.er1
25470 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
25510 cat >conftest.$ac_ext <<_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. */
25526 # include <limits.h>
25528 # include <assert.h>
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. */
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
25550 return $ac_func ();
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;;
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_link") 2>conftest.er1
25564 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
25606 cat >conftest.
$ac_ext <<_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. */
25622 # include <limits.h>
25624 # include <assert.h>
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. */
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
25646 return $ac_func ();
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;;
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_link") 2>conftest.er1
25660 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
25702 cat >conftest.$ac_ext <<_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. */
25718 # include <limits.h>
25720 # include <assert.h>
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. */
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
25742 return $ac_func ();
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;;
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_link") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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; }
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
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>
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;;
25823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824 (eval "$ac_compile") 2>conftest.er1
25826 grep -v '^ *+' conftest.er1 >conftest.err
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
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
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <$ac_header>
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;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1
>conftest.err
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
25873 ac_header_preproc
=yes
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
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
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;}
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
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
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
25940 cat >conftest.
$ac_ext <<_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. */
25956 # include <limits.h>
25958 # include <assert.h>
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. */
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
25980 return $ac_func ();
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;;
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_link") 2>conftest.er1
25994 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
26030 if test "$cross_compiling" = yes; then
26031 ac_cv_func_mmap_fixed_mapped=no
26033 cat >conftest.$ac_ext <<_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. */
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) */
26066 #include <sys/mman.h>
26068 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
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
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 */
26088 # define getpagesize() NBPG * CLSIZE
26091 # endif /* no CLSIZE */
26092 # else /* no NBPG */
26094 # define getpagesize() NBPC
26095 # else /* no NBPC */
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 */
26112 char *data, *data2, *data3;
26116 pagesize = getpagesize ();
26118 /* First, make a file with some known garbage in it. */
26119 data = (char *) malloc (pagesize);
26122 for (i = 0; i < pagesize; ++i)
26123 *(data + i) = rand ();
26125 fd = creat ("conftest.mmap", 0600);
26128 if (write (fd, data, pagesize) != pagesize)
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);
26138 data2 = (char *) malloc (2 * pagesize);
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))
26145 for (i = 0; i < pagesize; ++i)
26146 if (*(data + i) != *(data2 + i))
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);
26157 if (read (fd, data3, pagesize) != pagesize)
26159 for (i = 0; i < pagesize; ++i)
26160 if (*(data + i) != *(data3 + i))
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;;
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_link") 2>&5
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;;
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182 (eval "$ac_try") 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; }; then
26186 ac_cv_func_mmap_fixed_mapped=yes
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
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; }
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
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>
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;;
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244 (eval "$ac_compile") 2>conftest.er1
26246 grep -v '^ *+' conftest.er1
>conftest.err
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
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
26272 cat confdefs.h
>>conftest.
$ac_ext
26273 cat >>conftest.
$ac_ext <<_ACEOF
26274 /* end confdefs.h. */
26275 #include <$ac_header>
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;;
26282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26285 grep -v '^ *+' conftest.er1 >conftest.err
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
26293 ac_header_preproc=yes
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
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
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;}
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
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
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
26361 cat >conftest.$ac_ext <<_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. */
26377 # include <limits.h>
26379 # include <assert.h>
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. */
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
26401 return $ac_func ();
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;;
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413 (eval "$ac_link") 2>conftest.er1
26415 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
26452 if test "$cross_compiling" = yes; then
26453 ac_cv_func_fork_works
=cross
26455 cat >conftest.
$ac_ext <<_ACEOF
26458 cat confdefs.h
>>conftest.
$ac_ext
26459 cat >>conftest.
$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461 $ac_includes_default
26466 /* By Ruediger Kuhlmann. */
26467 return fork () < 0;
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;;
26479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26480 (eval "$ac_link") 2>&5
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;;
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489 (eval "$ac_try") 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_func_fork_works
=yes
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; }
26511 ac_cv_func_fork_works
=$ac_cv_func_fork
26513 if test "x$ac_cv_func_fork_works" = xcross
; then
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
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
26533 if test "$cross_compiling" = yes; then
26534 ac_cv_func_vfork_works
=cross
26536 cat >conftest.
$ac_ext <<_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>
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. */
26556 sparc_address_test (int arg)
26558 sparc_address_test (arg) int arg;
26561 static pid_t child;
26579 pid_t parent = getpid ();
26582 sparc_address_test (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. */
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)
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);
26614 while (wait(&status) != child)
26617 /* Was there some problem with vforking? */
26620 /* Did the child fail? (This shouldn't happen.) */
26623 /* Did the vfork/compiler bug occur? */
26624 || parent != getpid()
26626 /* Did the file descriptor bug occur? */
26627 || fstat(fileno(stdout), &st) != 0
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;;
26638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26639 (eval "$ac_link") 2>&5
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;;
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_try") 2>&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_cv_func_vfork_works
=yes
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
26684 cat >>confdefs.h
<<\_ACEOF
26689 if test "x$ac_cv_func_fork_works" = xyes
; then
26691 cat >>confdefs.h
<<\_ACEOF
26692 #define HAVE_WORKING_FORK 1
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
26716 cat >conftest.
$ac_ext <<_ACEOF
26719 cat confdefs.h
>>conftest.
$ac_ext
26720 cat >>conftest.
$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
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;;
26737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26738 (eval "$ac_link") 2>conftest.er1
26740 grep -v '^ *+' conftest.er1 >conftest.err
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
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;;
26760 if test "$vi_cv_lock" = none; then
26761 cat >conftest.$ac_ext <<_ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26771 fcntl(0, F_SETLK, 0);
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;;
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_link") 2>conftest.er1
26785 grep -v '^ *+' conftest.er1
>conftest.err
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
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
26814 if test "$vi_cv_lock" = fcntl
; then
26815 cat >>confdefs.h
<<\_ACEOF
26816 #define HAVE_LOCK_FCNTL 1
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
26828 cat >conftest.
$ac_ext <<_ACEOF
26831 cat confdefs.h
>>conftest.
$ac_ext
26832 cat >>conftest.
$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 #include <unistd.h>
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;;
26849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850 (eval "$ac_link") 2>conftest.er1
26852 grep -v '^ *+' conftest.er1 >conftest.err
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
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 #include <unistd.h>
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;;
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_link") 2>conftest.er1
26890 grep -v '^ *+' conftest.er1
>conftest.err
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
26901 echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.
$ac_ext >&5
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
26921 if test "$vi_cv_ftruncate" = chsize
; then
26922 cat >>confdefs.h
<<\_ACEOF
26923 #define HAVE_FTRUNCATE_CHSIZE 1
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; }
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
26946 cat >conftest.
$ac_ext <<_ACEOF
26949 cat confdefs.h
>>conftest.
$ac_ext
26950 cat >>conftest.
$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26952 #include <$CURSHEADER>
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;;
26967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968 (eval "$ac_link") 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
27005 cat >>confdefs.h <<\_ACEOF
27006 #define HAVE_CURSES_WADDNSTR 1
27009 cat >>confdefs.h <<\_ACEOF
27010 #define HAVE_CURSES_IDLOK 1
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
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 #include <$CURSHEADER>
27029 waddnstr(stdscr, 0, 0);
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;;
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_link") 2>conftest.er1
27043 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
27078 cat >conftest.
$ac_ext <<_ACEOF
27081 cat confdefs.h
>>conftest.
$ac_ext
27082 cat >>conftest.
$ac_ext <<_ACEOF
27083 /* end confdefs.h. */
27084 #include <$CURSHEADER>
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;;
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_link") 2>conftest.er1
27102 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
27137 cat >conftest.$ac_ext <<_ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h. */
27143 #include <$CURSHEADER>
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;;
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_link") 2>conftest.er1
27161 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
27196 cat >conftest.
$ac_ext <<_ACEOF
27199 cat confdefs.h
>>conftest.
$ac_ext
27200 cat >>conftest.
$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 #include <$CURSHEADER>
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;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_link") 2>conftest.er1
27220 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
27255 cat >conftest.$ac_ext <<_ACEOF
27258 cat confdefs.h >>conftest.$ac_ext
27259 cat >>conftest.$ac_ext <<_ACEOF
27260 /* end confdefs.h. */
27261 #include <$CURSHEADER>
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;;
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_link") 2>conftest.er1
27279 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
27314 cat >conftest.
$ac_ext <<_ACEOF
27317 cat confdefs.h
>>conftest.
$ac_ext
27318 cat >>conftest.
$ac_ext <<_ACEOF
27319 /* end confdefs.h. */
27320 #include <$CURSHEADER>
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;;
27335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27336 (eval "$ac_link") 2>conftest.er1
27338 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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
27381 cat >conftest.$ac_ext <<_ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h. */
27387 #include <$CURSHEADER>
27391 setupterm(0, 0, 0);
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;;
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_link") 2>conftest.er1
27405 grep -v '^ *+' conftest.er1
>conftest.err
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
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
27432 { echo "$as_me:$LINENO: result: $vi_cv_have_curses_setupterm" >&5
27433 echo "${ECHO_T}$vi_cv_have_curses_setupterm" >&6; }
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
27443 cat >conftest.
$ac_ext <<_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>
27454 gettimeofday(0, 0);
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;;
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_link") 2>conftest.er1
27468 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
27503 cat >conftest.$ac_ext <<_ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h. */
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;;
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525 (eval "$ac_link") 2>conftest.er1
27527 grep -v '^ *+' conftest.er1
>conftest.err
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
27538 echo "$as_me: failed program was:" >&5
27539 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
27562 cat >conftest.
$ac_ext <<_ACEOF
27565 cat confdefs.h
>>conftest.
$ac_ext
27566 cat >>conftest.
$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
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;;
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_link") 2>conftest.er1
27586 grep -v '^ *+' conftest.er1 >conftest.err
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
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
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
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
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; }; }
27628 cat >conftest.$ac_ext <<_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);}
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;;
27642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>&5
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;;
27651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 vi_cv_sprintf_count=yes
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
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
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693 #include <sys/types.h>
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;;
27708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_compile") 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
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
27721 echo "$as_me: failed program was
:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
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
27741 cat >conftest.$ac_ext <<_ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27747 #include <sys/types.h>
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;;
27762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_compile") 2>conftest.er1
27765 grep -v '^ *+' conftest.er1 >conftest.err
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
27775 echo "$as_me: failed program was
:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
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
27795 cat >conftest.$ac_ext <<_ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 #include <sys/types.h>
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;;
27816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_compile") 2>conftest.er1
27819 grep -v '^ *+' conftest.er1 >conftest.err
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
27829 echo "$as_me: failed program was
:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
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
27849 cat >conftest.$ac_ext <<_ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h. */
27855 #include <sys/types.h>
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;;
27870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_compile") 2>conftest.er1
27873 grep -v '^ *+' conftest.er1 >conftest.err
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
27883 echo "$as_me: failed program was
:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
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
27903 cat >conftest.$ac_ext <<_ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27909 #include <sys/types.h>
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;;
27924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_compile") 2>conftest.er1
27927 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }; }
27947 cat >conftest.$ac_ext <<_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);}
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;;
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_link") 2>&5
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;;
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_try") 2>&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
27975 vi_cv_uint8="unsigned char"
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 )
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
28009 cat >conftest.$ac_ext <<_ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015 #include <sys/types.h>
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;;
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_compile") 2>conftest.er1
28033 grep -v '^
*+' conftest.er1 >conftest.err
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
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; }; }
28053 cat >conftest.$ac_ext <<_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);}
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;;
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068 (eval "$ac_link") 2>&5
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;;
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 vi_cv_uint16="unsigned short"
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; }; }
28095 cat >conftest.$ac_ext <<_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);}
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;;
28109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28110 (eval "$ac_link") 2>&5
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;;
28118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_try") 2>&5
28121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28122 (exit $ac_status); }; }; then
28123 vi_cv_uint16="unsigned int
"
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 )
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
28162 cat >conftest.$ac_ext <<_ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 #include <sys/types.h>
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;;
28183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_compile") 2>conftest.er1
28186 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }; }
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 main(){exit(sizeof(short) != 2);}
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;;
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_link") 2>&5
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;;
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234 vi_cv_int16="short"
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; }; }
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28254 main(){exit(sizeof(int) != 2);}
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;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_link") 2>&5
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;;
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
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 )
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
28315 cat >conftest.$ac_ext <<_ACEOF
28318 cat confdefs.h >>conftest.$ac_ext
28319 cat >>conftest.$ac_ext <<_ACEOF
28320 /* end confdefs.h. */
28321 #include <sys/types.h>
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;;
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_compile") 2>conftest.er1
28339 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }; }
28359 cat >conftest.
$ac_ext <<_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);}
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;;
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_link") 2>&5
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;;
28382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28383 (eval "$ac_try") 2>&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 vi_cv_uint32
="unsigned int"
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; }; }
28401 cat >conftest.
$ac_ext <<_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);}
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;;
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_link") 2>&5
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;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 vi_cv_uint32
="unsigned long"
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 )
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
28468 cat >conftest.
$ac_ext <<_ACEOF
28471 cat confdefs.h
>>conftest.
$ac_ext
28472 cat >>conftest.
$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28474 #include <sys/types.h>
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;;
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_compile") 2>conftest.er1
28492 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }; }
28512 cat >conftest.$ac_ext <<_ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28518 main(){exit(sizeof(int) != 4);}
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;;
28526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_link") 2>&5
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;;
28535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28539 (exit $ac_status); }; }; then
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; }; }
28554 cat >conftest.$ac_ext <<_ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h. */
28560 main(){exit(sizeof(long) != 4);}
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;;
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_link") 2>&5
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;;
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
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 )
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
28620 cat >conftest.$ac_ext <<_ACEOF
28623 cat confdefs.h >>conftest.$ac_ext
28624 cat >>conftest.$ac_ext <<_ACEOF
28625 /* end confdefs.h. */
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;;
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_compile") 2>conftest.er1
28646 grep -v '^
*+' conftest.er1 >conftest.err
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
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
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28680 typedef int (*funcPtr)();
28685 funcPtr ptr = (funcPtr) fprintf;
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;;
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697 (eval "$ac_compile") 2>conftest.er1
28699 grep -v '^
*+' conftest.er1 >conftest.err
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
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
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
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
28744 with_db_type="bundled"
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
28764 cat >conftest.$ac_ext <<_ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h. */
28774 db_create(NULL,NULL,0)
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;;
28785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28786 (eval "$ac_link") 2>conftest.er1
28788 grep -v '^
*+' conftest.er1 >conftest.err
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
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; }; }
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
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
28835 ac_check_lib_save_LIBS=$LIBS
28837 cat >conftest.$ac_ext <<_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. */
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;;
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_link") 2>conftest.er1
28868 grep -v '^
*+' conftest.er1 >conftest.err
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
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
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; }; }
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
28912 case $vi_cv_path_db3 in
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
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
28932 test -z "$ac_cv_path_vi_cv_path_db3" && ac_cv_path_vi_cv_path_db3="no"
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; }
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; }; }
28953 cat >>confdefs.h <<\_ACEOF
28954 #define USE_DYNAMIC_LOADING 1
28957 LIBOBJS="dldb.o $LIBOBJS"
28958 dl_src=../common/dldb.c
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
28979 with_db_build="$with_db_build/";;
28981 case $vi_cv_dbsrc in
28984 vi_cv_dbsrc="$with_db_build$vi_cv_dbsrc";;
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
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h. */
29003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29004 $EGREP "^4" >/dev/null 2>&1; then
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
29024 LIBOBJS="log4.o vi_auto.o vi_rec.o $LIBOBJS"
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"
29036 vi_cv_re_lib="other RE"
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
29046 CPPFLAGS="-I\$(visrcdir)/regex $CPPFLAGS"
29047 LIBOBJS="regcomp.o regerror.o regexec.o regfree.o $LIBOBJS";;
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.
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
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;} ;;
29085 _ | IFS | as_nl
) ;; #(
29086 *) $as_unset $ac_var ;;
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 \).
29098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29101 # `set' quotes correctly as required by POSIX, so do not add quotes.
29102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29113 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
29122 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29123 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
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
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'
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
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.
29199 ac_cs_recheck=false
29201 SHELL=\${CONFIG_SHELL-$SHELL}
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
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
29219 case `(set -o) 2>/dev/null` in
29220 *posix
*) set -o posix
;;
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
29241 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29249 # Support unset when possible.
29250 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
29266 # Find who we are. Look in the path if we contain no directory separator.
29268 *[\\/]* ) as_myself
=$0 ;;
29269 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29270 for as_dir
in $PATH
29273 test -z "$as_dir" && as_dir
=.
29274 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
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
29307 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29311 # Required to use basename.
29312 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29313 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29319 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29320 as_basename
=basename
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 ||
29332 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
29377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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.
29394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29400 ECHO_C
= ECHO_N
= ECHO_T
=
29401 case `echo -n x` in
29403 case `echo 'x\c'` in
29404 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29411 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29412 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29418 rm -f conf$$ conf$$.exe conf$$.
file
29419 if test -d conf$$.dir
; then
29420 rm -f conf$$.dir
/conf$$.
file
29426 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
29434 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
29445 test -d .
/-p && rmdir .
/-p
29449 if test -x / >/dev
/null
2>&1; then
29450 as_test_x
='test -x'
29452 if ls -dL / >/dev
/null
2>&1; then
29459 if test -d "$1"; then
29465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29466 ???[sx]*):;;*)false;;esac;fi
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'"
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.
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
29494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
29507 cat >>$CONFIG_STATUS <<\_ACEOF
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:
29527 Configuration headers:
29530 Configuration commands:
29533 Report bugs to <bug-autoconf@gnu.org>."
29536 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
29560 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29561 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29572 # Handling of the options.
29573 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29575 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29576 echo "$ac_cs_version"; exit ;;
29577 --debug |
--debu |
--deb |
--de |
--d |
-d )
29579 --file |
--fil |
--fi |
--f )
29581 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
29582 ac_need_defaults
=false
;;
29583 --header |
--heade |
--head |
--hea )
29585 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
29586 ac_need_defaults
=false
;;
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)
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
;;
29610 ac_configure_extra_args
=
29612 if $ac_cs_silent; then
29614 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
29627 cat >>$CONFIG_STATUS <<\_ACEOF
29631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29632 ## Running $as_me. ##
29638 cat >>$CONFIG_STATUS <<_ACEOF
29642 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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; }; };;
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'.
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"
29697 tmp
=.
/conf$$
-$RANDOM
29698 (umask 077 && mkdir
"$tmp")
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
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
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
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
29804 GREP!$GREP$ac_delim
29805 EGREP!$EGREP$ac_delim
29806 LN_S!$LN_S$ac_delim
29807 ECHO!$ECHO$ac_delim
29809 RANLIB!$RANLIB$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
29819 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
29826 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
29841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29842 s/^/s,@/; s/!/@,|#_!!_#|/
29845 s/'"$ac_delim"'$/,g/; t
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
29856 for ac_last_try
in false false false false false
:; do
29857 cat >conf$
$subs.
sed <<_ACEOF
29858 CXXCPP!$CXXCPP$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
29916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
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; }; }
29923 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
29938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29939 s/^/s,@/; s/!/@,|#_!!_#|/
29942 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
29963 s/^\([^=]*=[ ]*\):*/\1/
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
29976 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29978 case $ac_mode$ac_tag in
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;;
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 `:'.
30008 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
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; }; };;
30014 ac_file_inputs
="$ac_file_inputs $ac_f"
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;}
30029 *:-:* |
*:-) cat >"$tmp/stdin";;
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 ||
30040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30044 /^X\(\/\/\)[^/].*/{
30059 -*) as_dir
=.
/$as_dir;;
30061 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30065 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30066 *) as_qdir
=$as_dir;;
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 ||
30075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30079 /^X\(\/\/\)[^/].*/{
30092 test -d "$as_dir" && break
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; }; }; }
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/ ;;
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
30117 .
) # We are building in place.
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 ;;
30130 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30140 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30141 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30143 ac_MKDIR_P
=$MKDIR_P
30145 [\\/$
]* | ?
:[\\/]* ) ;;
30146 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
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/ {
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;}
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' ;;
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
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;}
30215 -) cat "$tmp/out"; rm -f "$tmp/out";;
30216 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
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'
30249 s/^[ ]*#[ ]*define[ ][ ]*//
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.)
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"
30273 ac_in
='$ac_file_inputs'
30274 ac_out
='"$tmp/out1"'
30275 ac_nxt
='"$tmp/out2"'
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
30288 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
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
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;}
30309 mv "$tmp/config.h" $ac_file
30312 echo "/* $configure_input */"
30316 # Compute $ac_file's index in $config_headers.
30318 for _am_header
in $config_headers :; do
30319 case $_am_header in
30320 $ac_file |
$ac_file:* )
30323 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
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 ||
30332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30336 /^X\(\/\/\)[^/].*/{
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;}
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 ||
30375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30379 /^X\(\/\/\)[^/].*/{
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
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 ||
30419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30423 /^X\(\/\/\)[^/].*/{
30436 { as_dir
=$dirpart/$fdir
30438 -*) as_dir
=.
/$as_dir;;
30440 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30444 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30445 *) as_qdir
=$as_dir;;
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 ||
30454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30458 /^X\(\/\/\)[^/].*/{
30471 test -d "$as_dir" && break
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"
30487 { (exit 0); exit 0; }
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
30503 ac_config_status_args
=
30504 test "$silent" = yes &&
30505 ac_config_status_args
="$ac_config_status_args --quiet"
30507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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; }