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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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="server/server.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
871 ac_precious_vars='build_alias
891 # Initialize some variables set by options.
893 ac_init_version=false
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
903 program_transform_name=s,x,x,
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=no ;;
1000 -docdir | --docdir | --docdi | --doc | --do)
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1010 -enable-* | --enable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 { echo "$as_me: error: invalid package name: $ac_package" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1214 eval with_$ac_package=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223 eval with_$ac_package=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) { echo "$as_me: error: unrecognized option: $ac_option
1244 Try \`$0 --help' for more information." >&2
1245 { (exit 1); exit 1; }; }
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253 { (exit 1); exit 1; }; }
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 { echo "$as_me: error: missing argument to $ac_option" >&2
1271 { (exit 1); exit 1; }; }
1274 # Be sure to have absolute directory names.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$0" ||
1328 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$0" : 'X\(//\)[^/]' \| \
1330 X"$0" : 'X\(//\)$' \| \
1331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --x-includes=DIR X include files are in DIR
1450 --x-libraries=DIR X library files are in DIR
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1459 if test -n "$ac_init_help"; then
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-pic try to use only PIC/non-PIC objects [default=use
1478 --with-tags[=TAGS] include additional configurations [automatic]
1479 --with-x use the X Window System
1480 --with-krb4=PREFIX Use Kerberos 4
1481 --with-krb5=PREFIX Use Kerberos 5
1482 --with-hesiod=PREFIX Use Hesiod
1483 --with-regex=PREFIX Use installed regex library
1484 --with-ares=PREFIX Use libares
1485 --with-com_err=PREFIX Specify location of com_err
1486 --with-ss=PREFIX Specify location of ss (requires com_err)
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1497 the first program found out of: `bison -y', `byacc', `yacc'.
1498 YFLAGS The list of arguments that will be passed by default to $YACC.
1499 This script will default YFLAGS to the empty string to avoid a
1500 default value of `-d' given by some make applications.
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CXXCPP C++ preprocessor
1505 F77 Fortran 77 compiler command
1506 FFLAGS Fortran 77 compiler flags
1507 XMKMF Path to xmkmf, Makefile generator for X Window System
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" || continue
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1539 .) # We are building in place.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1563 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1573 generated by GNU Autoconf 2.61
1575 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1576 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1586 It was created by $as_me, which was
1587 generated by GNU Autoconf 2.61. Invocation command line was
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1609 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1612 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1613 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1614 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_must_keep_next=false
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1658 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676 -* ) ac_must_keep_next=true ;;
1679 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log. We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1698 ## ---------------- ##
1699 ## Cache variables. ##
1700 ## ---------------- ##
1703 # The following way of writing the cache mishandles newlines in values,
1705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706 eval ac_val=\$$ac_var
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
1723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 ## ----------------- ##
1736 ## Output variables. ##
1737 ## ----------------- ##
1740 for ac_var in $ac_subst_vars
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1750 if test -n "$ac_subst_files"; then
1752 ## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##
1757 for ac_var in $ac_subst_files
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1768 if test -s confdefs.h; then
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786 for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1794 # Predefined preprocessor variables.
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
1834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1842 if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1859 # Check that the precious variables saved in the cache have kept the same
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
1867 case $ac_old_set,$ac_new_set in
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1882 echo "$as_me: former value: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1884 echo "$as_me: current value: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 *) ac_arg=$ac_var=$ac_new_val ;;
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 test -d h || mkdir h
1933 test -d h/zephyr || mkdir h/zephyr
1935 test -z "$lbindir" && lbindir='${bindir}'
1936 test -z "$lsbindir" && lsbindir='${sbindir}'
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Make sure we can run config.sub.
1972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1973 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1974 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1975 { (exit 1); exit 1; }; }
1977 { echo "$as_me:$LINENO: checking build system type" >&5
1978 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1979 if test "${ac_cv_build+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 ac_build_alias=$build_alias
1983 test "x$ac_build_alias" = x &&
1984 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1985 test "x$ac_build_alias" = x &&
1986 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1988 { (exit 1); exit 1; }; }
1989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1990 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1992 { (exit 1); exit 1; }; }
1995 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1996 echo "${ECHO_T}$ac_cv_build" >&6; }
1997 case $ac_cv_build in
1999 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2000 echo "$as_me: error: invalid value of canonical build" >&2;}
2001 { (exit 1); exit 1; }; };;
2004 ac_save_IFS=$IFS; IFS='-'
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2017 { echo "$as_me:$LINENO: checking host system type" >&5
2018 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2019 if test "${ac_cv_host+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test "x$host_alias" = x; then
2023 ac_cv_host=$ac_cv_build
2025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2026 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2027 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2028 { (exit 1); exit 1; }; }
2032 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2033 echo "${ECHO_T}$ac_cv_host" >&6; }
2036 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2037 echo "$as_me: error: invalid value of canonical host" >&2;}
2038 { (exit 1); exit 1; }; };;
2041 ac_save_IFS=$IFS; IFS='-'
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2054 { echo "$as_me:$LINENO: checking target system type" >&5
2055 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2056 if test "${ac_cv_target+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test "x$target_alias" = x; then
2060 ac_cv_target=$ac_cv_host
2062 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2063 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2065 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2070 echo "${ECHO_T}$ac_cv_target" >&6; }
2071 case $ac_cv_target in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2074 echo "$as_me: error: invalid value of canonical target" >&2;}
2075 { (exit 1); exit 1; }; };;
2077 target=$ac_cv_target
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2091 # The aliases save the names the user supplied, while $host etc.
2092 # will get canonicalized.
2093 test -n "$target_alias" &&
2094 test "$program_prefix$program_suffix$program_transform_name" = \
2096 program_prefix=${target_alias}-
2097 cat >>confdefs.h <<_ACEOF
2098 #define MACHINE_TYPE "$host"
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 if test -n "$CC"; then
2137 { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2146 if test -z "$ac_cv_prog_CC"; then
2148 # Extract the first word of "gcc", so it can be a program name with args.
2149 set dummy gcc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$ac_ct_CC"; then
2156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_ac_ct_CC="gcc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2176 if test -n "$ac_ct_CC"; then
2177 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2178 echo "${ECHO_T}$ac_ct_CC" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2184 if test "x$ac_ct_CC" = x; then
2187 case $cross_compiling:$ac_tool_warned in
2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet. If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&5
2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet. If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2195 ac_tool_warned=yes ;;
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}cc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_CC="${ac_tool_prefix}cc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 if test -n "$CC"; then
2234 { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2244 if test -z "$CC"; then
2245 # Extract the first word of "cc", so it can be a program name with args.
2246 set dummy cc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2264 ac_prog_rejected=yes
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 if test $ac_prog_rejected = yes; then
2276 # We found a bogon in the path, so make sure we never use it.
2277 set dummy $ac_cv_prog_CC
2279 if test $# != 0; then
2280 # We chose a different compiler from the bogus one.
2281 # However, it has the same basename, so the bogon will be chosen
2282 # first if we set CC to just the basename; use the full file name.
2284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2290 if test -n "$CC"; then
2291 { echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6; }
2294 { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2300 if test -z "$CC"; then
2301 if test -n "$ac_tool_prefix"; then
2302 for ac_prog in cl.exe
2304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$CC"; then
2312 ac_cv_prog_CC="$CC" # Let the user override the test.
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 if test -n "$CC"; then
2333 { echo "$as_me:$LINENO: result: $CC" >&5
2334 echo "${ECHO_T}$CC" >&6; }
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2341 test -n "$CC" && break
2344 if test -z "$CC"; then
2346 for ac_prog in cl.exe
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$ac_ct_CC"; then
2356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_CC="$ac_prog"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376 if test -n "$ac_ct_CC"; then
2377 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2378 echo "${ECHO_T}$ac_ct_CC" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2385 test -n "$ac_ct_CC" && break
2388 if test "x$ac_ct_CC" = x; then
2391 case $cross_compiling:$ac_tool_warned in
2393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&5
2396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399 ac_tool_warned=yes ;;
2408 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: no acceptable C compiler found in \$PATH
2411 See \`config.log' for more details." >&2;}
2412 { (exit 1); exit 1; }; }
2414 # Provide some information about the compiler.
2415 echo "$as_me:$LINENO: checking for C compiler version" >&5
2416 ac_compiler=`set X $ac_compile; echo $2`
2417 { (ac_try="$ac_compiler --version >&5"
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_compiler --version >&5") 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }
2427 { (ac_try="$ac_compiler -v >&5"
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_compiler -v >&5") 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437 { (ac_try="$ac_compiler -V >&5"
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compiler -V >&5") 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 ac_clean_files_save=$ac_clean_files
2464 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2465 # Try to create an executable without -o first, disregard a.out.
2466 # It will help us diagnose broken compilers, and finding out an intuition
2468 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2469 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2470 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2472 # List of possible output files, starting from the most likely.
2473 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2474 # only as a last resort. b.out is created by i960 compilers.
2475 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2477 # The IRIX 6 linker writes into existing files which may not be
2478 # executable, retaining their permissions. Remove them first so a
2479 # subsequent execution test works.
2481 for ac_file in $ac_files
2484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2485 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2490 if { (ac_try="$ac_link_default"
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_link_default") 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2501 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2502 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2503 # so that the user can short-circuit this test for compilers unknown to
2505 for ac_file in $ac_files ''
2507 test -f "$ac_file" || continue
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2512 # We found the default executable, but exeext='' is most
2516 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2518 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520 # We set ac_cv_exeext here because the later test for it is not
2521 # safe: cross compilers may not add the suffix if given an `-o'
2522 # argument, so we may need to know it at that point already.
2523 # Even if this section looks crufty: it has the advantage of
2530 test "$ac_cv_exeext" = no && ac_cv_exeext=
2536 { echo "$as_me:$LINENO: result: $ac_file" >&5
2537 echo "${ECHO_T}$ac_file" >&6; }
2538 if test -z "$ac_file"; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C compiler cannot create executables
2545 See \`config.log' for more details." >&2;}
2546 { (exit 77); exit 77; }; }
2549 ac_exeext=$ac_cv_exeext
2551 # Check that the compiler produces executables we can run. If not, either
2552 # the compiler is broken, or we cross compile.
2553 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2556 # If not cross compiling, check that we can run a simple program.
2557 if test "$cross_compiling" != yes; then
2558 if { ac_try='./$ac_file'
2559 { (case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_try") 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2570 if test "$cross_compiling" = maybe; then
2573 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2574 If you meant to cross compile, use \`--host'.
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: cannot run C compiled programs.
2577 If you meant to cross compile, use \`--host'.
2578 See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2583 { echo "$as_me:$LINENO: result: yes" >&5
2584 echo "${ECHO_T}yes" >&6; }
2586 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2587 ac_clean_files=$ac_clean_files_save
2588 # Check that the compiler produces executables we can run. If not, either
2589 # the compiler is broken, or we cross compile.
2590 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2591 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2592 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2593 echo "${ECHO_T}$cross_compiling" >&6; }
2595 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2596 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2597 if { (ac_try="$ac_link"
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_link") 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; then
2607 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2608 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2609 # work properly (i.e., refer to `conftest.exe'), while it won't with
2611 for ac_file in conftest.exe conftest conftest.*; do
2612 test -f "$ac_file" || continue
2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2615 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2621 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2628 rm -f conftest$ac_cv_exeext
2629 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2630 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2632 rm -f conftest.$ac_ext
2633 EXEEXT=$ac_cv_exeext
2635 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2636 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2637 if test "${ac_cv_objext+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.o conftest.obj
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; then
2666 for ac_file in conftest.o conftest.obj conftest.*; do
2667 test -f "$ac_file" || continue;
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2670 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2687 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2688 echo "${ECHO_T}$ac_cv_objext" >&6; }
2689 OBJEXT=$ac_cv_objext
2691 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2714 rm -f conftest.$ac_objext
2715 if { (ac_try="$ac_compile"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compile") 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } && {
2728 test -z "$ac_c_werror_flag" ||
2729 test ! -s conftest.err
2730 } && test -s conftest.$ac_objext; then
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_save_c_werror_flag=$ac_c_werror_flag
2754 ac_c_werror_flag=yes
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compile") 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } && {
2786 test -z "$ac_c_werror_flag" ||
2787 test ! -s conftest.err
2788 } && test -s conftest.$ac_objext; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 ac_c_werror_flag=$ac_save_c_werror_flag
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2849 rm -f conftest.$ac_objext
2850 if { (ac_try="$ac_compile"
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_compile") 2>conftest.er1
2858 grep -v '^ *+' conftest.er1 >conftest.err
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && {
2863 test -z "$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest.$ac_objext; then
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 ac_c_werror_flag=$ac_save_c_werror_flag
2883 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2885 if test "$ac_test_CFLAGS" = set; then
2886 CFLAGS=$ac_save_CFLAGS
2887 elif test $ac_cv_prog_cc_g = yes; then
2888 if test "$GCC" = yes; then
2894 if test "$GCC" = yes; then
2900 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2901 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2902 if test "${ac_cv_prog_cc_c89+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 ac_cv_prog_cc_c89=no
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2931 s = g (p, va_arg (v,int));
2936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2937 function prototypes and stuff, but not '\xHH' hex character constants.
2938 These don't provoke an error unfortunately, instead are silently treated
2939 as 'x'. The following induces an error, until -std is added to get
2940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2941 array size at least. It's necessary to write '\x00'==0 to get something
2942 that's true only with -std. */
2943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2946 inside strings and character constants. */
2948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2950 int test (int i, double x);
2951 struct s1 {int (*f) (int a);};
2952 struct s2 {int (*f) (double a);};
2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2967 CC="$ac_save_CC $ac_arg"
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && {
2982 test -z "$ac_c_werror_flag" ||
2983 test ! -s conftest.err
2984 } && test -s conftest.$ac_objext; then
2985 ac_cv_prog_cc_c89=$ac_arg
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f core conftest.err conftest.$ac_objext
2994 test "x$ac_cv_prog_cc_c89" != "xno" && break
2996 rm -f conftest.$ac_ext
3001 case "x$ac_cv_prog_cc_c89" in
3003 { echo "$as_me:$LINENO: result: none needed" >&5
3004 echo "${ECHO_T}none needed" >&6; } ;;
3006 { echo "$as_me:$LINENO: result: unsupported" >&5
3007 echo "${ECHO_T}unsupported" >&6; } ;;
3009 CC="$CC $ac_cv_prog_cc_c89"
3010 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 for ac_prog in 'bison -y' byacc
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_YACC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 if test -n "$YACC"; then
3031 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_YACC="$ac_prog"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 YACC=$ac_cv_prog_YACC
3051 if test -n "$YACC"; then
3052 { echo "$as_me:$LINENO: result: $YACC" >&5
3053 echo "${ECHO_T}$YACC" >&6; }
3055 { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3060 test -n "$YACC" && break
3062 test -n "$YACC" || YACC="yacc"
3065 for ac_prog in flex lex
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_LEX+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 if test -n "$LEX"; then
3075 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_LEX="$ac_prog"
3085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test -n "$LEX"; then
3096 { echo "$as_me:$LINENO: result: $LEX" >&5
3097 echo "${ECHO_T}$LEX" >&6; }
3099 { echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6; }
3104 test -n "$LEX" && break
3106 test -n "$LEX" || LEX=":"
3108 if test "x$LEX" != "x:"; then
3109 cat >conftest.l <<_ACEOF
3115 e { yyless (input () != 0); }
3116 f { unput (yytext[0]); }
3117 . { BEGIN INITIAL; }
3119 #ifdef YYTEXT_POINTER
3120 extern char *yytext;
3125 return ! yylex () + ! yywrap ();
3128 { (ac_try="$LEX conftest.l"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$LEX conftest.l") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { echo "$as_me:$LINENO: checking lex output file root" >&5
3139 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_lex_root+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 if test -f lex.yy.c; then
3145 ac_cv_prog_lex_root=lex.yy
3146 elif test -f lexyy.c; then
3147 ac_cv_prog_lex_root=lexyy
3149 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3150 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3151 { (exit 1); exit 1; }; }
3154 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3155 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3156 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3158 if test -z "${LEXLIB+set}"; then
3159 { echo "$as_me:$LINENO: checking lex library" >&5
3160 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3161 if test "${ac_cv_lib_lex+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 ac_cv_lib_lex='none needed'
3167 for ac_lib in '' -lfl -ll; do
3168 LIBS="$ac_lib $ac_save_LIBS"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 `cat $LEX_OUTPUT_ROOT.c`
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (ac_try="$ac_link"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_link") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest$ac_exeext &&
3189 $as_test_x conftest$ac_exeext; then
3190 ac_cv_lib_lex=$ac_lib
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3199 conftest$ac_exeext conftest.$ac_ext
3200 test "$ac_cv_lib_lex" != 'none needed' && break
3205 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3206 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3207 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3211 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3212 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 # POSIX says lex can declare yytext either as a pointer or an array; the
3217 # default is implementation-dependent. Figure out which it is, since
3218 # not all implementations provide the %pointer and %array declarations.
3219 ac_cv_prog_lex_yytext_pointer=no
3221 LIBS="$LEXLIB $ac_save_LIBS"
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #define YYTEXT_POINTER 1
3224 `cat $LEX_OUTPUT_ROOT.c`
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (ac_try="$ac_link"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_link") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest$ac_exeext &&
3243 $as_test_x conftest$ac_exeext; then
3244 ac_cv_prog_lex_yytext_pointer=yes
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3253 conftest$ac_exeext conftest.$ac_ext
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3258 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3259 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3261 cat >>confdefs.h <<\_ACEOF
3262 #define YYTEXT_POINTER 1
3266 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3269 # Find a good install program. We prefer a C program (faster),
3270 # so one script is as good as another. But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # OS/2's system install, which has a completely different semantic
3281 # ./install, which can be erroneously created by make from ./install.sh.
3282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3284 if test -z "$INSTALL"; then
3285 if test "${ac_cv_path_install+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 # Account for people who put trailing slashes in PATH elements.
3295 ./ | .// | /cC/* | \
3296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3297 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3300 # OSF1 and SCO ODT 3.0 have their own names for install.
3301 # Don't use installbsd from OSF since it installs stuff as root
3303 for ac_prog in ginstall scoinst install; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3306 if test $ac_prog = install &&
3307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3308 # AIX install. It has an incompatible calling convention.
3310 elif test $ac_prog = install &&
3311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312 # program-specific install script used by HP pwplus--don't use.
3315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3328 if test "${ac_cv_path_install+set}" = set; then
3329 INSTALL=$ac_cv_path_install
3331 # As a last resort, use the slow shell script. Don't cache a
3332 # value for INSTALL within a source directory, because that will
3333 # break other packages using the cache if that directory is
3334 # removed, or if the value is a relative name.
3335 INSTALL=$ac_install_sh
3338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6; }
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 if test -n "$RANLIB"; then
3358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6; }
3382 { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389 ac_ct_RANLIB=$RANLIB
3390 # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib; ac_word=$2
3392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$ac_ct_RANLIB"; then
3398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_ac_ct_RANLIB="ranlib"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3418 if test -n "$ac_ct_RANLIB"; then
3419 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3420 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3422 { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3426 if test "x$ac_ct_RANLIB" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3432 whose name does not start with the host triplet. If you think this
3433 configuration is useful to you, please write to autoconf@gnu.org." >&5
3434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3435 whose name does not start with the host triplet. If you think this
3436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3437 ac_tool_warned=yes ;;
3439 RANLIB=$ac_ct_RANLIB
3442 RANLIB="$ac_cv_prog_RANLIB"
3445 # Check whether --enable-shared was given.
3446 if test "${enable_shared+set}" = set; then
3447 enableval=$enable_shared; p=${PACKAGE-default}
3449 yes) enable_shared=yes ;;
3450 no) enable_shared=no ;;
3453 # Look at the argument we got. We use all the common list separators.
3454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3455 for pkg in $enableval; do
3457 if test "X$pkg" = "X$p"; then
3469 # Check whether --enable-static was given.
3470 if test "${enable_static+set}" = set; then
3471 enableval=$enable_static; p=${PACKAGE-default}
3473 yes) enable_static=yes ;;
3474 no) enable_static=no ;;
3477 # Look at the argument we got. We use all the common list separators.
3478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3479 for pkg in $enableval; do
3481 if test "X$pkg" = "X$p"; then
3493 # Check whether --enable-fast-install was given.
3494 if test "${enable_fast_install+set}" = set; then
3495 enableval=$enable_fast_install; p=${PACKAGE-default}
3497 yes) enable_fast_install=yes ;;
3498 no) enable_fast_install=no ;;
3500 enable_fast_install=no
3501 # Look at the argument we got. We use all the common list separators.
3502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3503 for pkg in $enableval; do
3505 if test "X$pkg" = "X$p"; then
3506 enable_fast_install=yes
3513 enable_fast_install=yes
3517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3519 if test "${lt_cv_path_SED+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 # Loop through the user's path and test for sed and gsed.
3523 # Then use that list of sed's as ones to test for truncation.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for lt_ac_prog in sed gsed; do
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3532 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3539 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3540 # along with /bin/sed that truncates output.
3541 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3542 test ! -f $lt_ac_sed && break
3543 cat /dev/null > conftest.in
3545 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3546 # Check for GNU sed and select it if it is found.
3547 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3548 lt_cv_path_SED=$lt_ac_sed
3552 cat conftest.in conftest.in >conftest.tmp
3553 mv conftest.tmp conftest.in
3554 cp conftest.in conftest.nl
3556 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3557 cmp -s conftest.out conftest.nl || break
3558 # 10000 chars as input seems more than enough
3559 test $lt_ac_count -gt 10 && break
3560 lt_ac_count=`expr $lt_ac_count + 1`
3561 if test $lt_ac_count -gt $lt_ac_max; then
3562 lt_ac_max=$lt_ac_count
3563 lt_cv_path_SED=$lt_ac_sed
3571 { echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6; }
3574 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3575 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3576 if test "${ac_cv_path_GREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 # Extract the first word of "grep ggrep" to use in msg output
3580 if test -z "$GREP"; then
3581 set dummy grep ggrep; ac_prog_name=$2
3582 if test "${ac_cv_path_GREP+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_path_GREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in grep ggrep; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3595 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3596 # Check for GNU ac_path_GREP and select it if it is found.
3597 # Check for GNU $ac_path_GREP
3598 case `"$ac_path_GREP" --version 2>&1` in
3600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 echo 'GREP' >> "conftest.nl"
3610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 ac_count=`expr $ac_count + 1`
3613 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_GREP="$ac_path_GREP"
3616 ac_path_GREP_max=$ac_count
3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3625 $ac_path_GREP_found && break 3
3635 GREP="$ac_cv_path_GREP"
3636 if test -z "$GREP"; then
3637 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3638 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3639 { (exit 1); exit 1; }; }
3643 ac_cv_path_GREP=$GREP
3648 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3653 { echo "$as_me:$LINENO: checking for egrep" >&5
3654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3655 if test "${ac_cv_path_EGREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3661 # Extract the first word of "egrep" to use in msg output
3662 if test -z "$EGREP"; then
3663 set dummy egrep; ac_prog_name=$2
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3685 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 $ac_path_EGREP_found && break 3
3717 EGREP="$ac_cv_path_EGREP"
3718 if test -z "$EGREP"; then
3719 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721 { (exit 1); exit 1; }; }
3725 ac_cv_path_EGREP=$EGREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3733 EGREP="$ac_cv_path_EGREP"
3737 # Check whether --with-gnu-ld was given.
3738 if test "${with_gnu_ld+set}" = set; then
3739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3745 if test "$GCC" = yes; then
3746 # Check if gcc -print-prog-name=ld gives a path.
3747 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3748 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3751 # gcc leaves a trailing carriage return which upsets mingw
3752 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3754 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3757 # Accept absolute paths.
3759 re_direlt='/[^/][^/]*/\.\./'
3760 # Canonicalize the pathname of ld
3761 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3762 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3763 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3765 test -z "$LD" && LD="$ac_prog"
3768 # If it fails, then pretend we aren't using GCC.
3772 # If it is relative, then search for the first ld in PATH.
3776 elif test "$with_gnu_ld" = yes; then
3777 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3778 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3780 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3781 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3783 if test "${lt_cv_path_LD+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 if test -z "$LD"; then
3787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3788 for ac_dir in $PATH; do
3790 test -z "$ac_dir" && ac_dir=.
3791 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3792 lt_cv_path_LD="$ac_dir/$ac_prog"
3793 # Check to see if the program is GNU ld. I'd rather use --version,
3794 # but apparently some GNU ld's only accept -v.
3795 # Break only if it was the GNU/non-GNU ld that we prefer.
3796 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3797 *GNU* | *'with BFD'*)
3798 test "$with_gnu_ld" != no && break
3801 test "$with_gnu_ld" != yes && break
3808 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3813 if test -n "$LD"; then
3814 { echo "$as_me:$LINENO: result: $LD" >&5
3815 echo "${ECHO_T}$LD" >&6; }
3817 { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3820 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3821 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3822 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3824 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3825 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3829 case `$LD -v 2>&1 </dev/null` in
3830 *GNU* | *'with BFD'*)
3831 lt_cv_prog_gnu_ld=yes
3834 lt_cv_prog_gnu_ld=no
3838 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3839 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3840 with_gnu_ld=$lt_cv_prog_gnu_ld
3843 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3844 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3845 if test "${lt_cv_ld_reload_flag+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 lt_cv_ld_reload_flag='-r'
3850 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3851 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3852 reload_flag=$lt_cv_ld_reload_flag
3853 case $reload_flag in
3855 *) reload_flag=" $reload_flag" ;;
3857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3859 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3860 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3861 if test "${lt_cv_path_NM+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test -n "$NM"; then
3865 # Let the user override the test.
3868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3869 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3871 test -z "$ac_dir" && ac_dir=.
3872 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3873 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3874 # Check to see if the nm accepts a BSD-compat flag.
3875 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3876 # nm: unknown option "B" ignored
3877 # Tru64's nm complains that /dev/null is an invalid object file
3878 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3879 */dev/null* | *'Invalid file or object type'*)
3880 lt_cv_path_NM="$tmp_nm -B"
3884 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3886 lt_cv_path_NM="$tmp_nm -p"
3890 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3891 continue # so that we can try to find one that supports BSD flags
3898 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3901 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3902 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3905 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3906 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3908 if test "$LN_S" = "ln -s"; then
3909 { echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6; }
3912 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3913 echo "${ECHO_T}no, using $LN_S" >&6; }
3916 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3917 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3918 if test "${lt_cv_deplibs_check_method+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 lt_cv_file_magic_cmd='$MAGIC_CMD'
3922 lt_cv_file_magic_test_file=
3923 lt_cv_deplibs_check_method='unknown'
3924 # Need to set the preceding variable on all platforms that support
3925 # interlibrary dependencies.
3926 # 'none' -- dependencies not supported.
3927 # `unknown' -- same as none, but documents that we really don't know.
3928 # 'pass_all' -- all dependencies passed with no checks.
3929 # 'test_compile' -- check by making test program.
3930 # 'file_magic [[regex]]' -- check by looking for files in library path
3931 # which responds to the $file_magic_cmd with a given extended regex.
3932 # If you have `file' or equivalent on your system and you're not sure
3933 # whether `pass_all' will *always* work, you probably want this one.
3937 lt_cv_deplibs_check_method=pass_all
3941 lt_cv_deplibs_check_method=pass_all
3945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3946 lt_cv_file_magic_cmd='/usr/bin/file -L'
3947 lt_cv_file_magic_test_file=/shlib/libc.so
3951 # func_win32_libid is a shell function defined in ltmain.sh
3952 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3953 lt_cv_file_magic_cmd='func_win32_libid'
3957 # Base MSYS/MinGW do not provide the 'file' command needed by
3958 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3959 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3960 lt_cv_file_magic_cmd='$OBJDUMP -f'
3963 darwin* | rhapsody*)
3964 lt_cv_deplibs_check_method=pass_all
3967 freebsd* | kfreebsd*-gnu)
3968 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3971 # Not sure whether the presence of OpenBSD here was a mistake.
3972 # Let's accept both of them until this is cleared up.
3973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3974 lt_cv_file_magic_cmd=/usr/bin/file
3975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3979 lt_cv_deplibs_check_method=pass_all
3984 lt_cv_deplibs_check_method=pass_all
3987 hpux10.20* | hpux11*)
3988 lt_cv_file_magic_cmd=/usr/bin/file
3991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3995 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]'
3996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4005 irix5* | irix6* | nonstopux*)
4007 *-32|*"-32 ") libmagic=32-bit;;
4008 *-n32|*"-n32 ") libmagic=N32;;
4009 *-64|*"-64 ") libmagic=64-bit;;
4010 *) libmagic=never-match;;
4012 lt_cv_deplibs_check_method=pass_all
4015 # This must be Linux ELF.
4018 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4019 lt_cv_deplibs_check_method=pass_all ;;
4021 # glibc up to 2.1.1 does not perform some relocations on ARM
4022 # this will be overridden with pass_all, but let us keep it just in case
4023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4025 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4026 lt_cv_deplibs_check_method=pass_all
4030 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4039 lt_cv_file_magic_cmd=/usr/bin/file
4040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4044 lt_cv_deplibs_check_method=unknown
4048 lt_cv_file_magic_cmd=/usr/bin/file
4049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4053 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4057 osf3* | osf4* | osf5*)
4058 lt_cv_deplibs_check_method=pass_all
4062 lt_cv_deplibs_check_method=pass_all
4066 lt_cv_deplibs_check_method=pass_all
4069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4070 case $host_vendor in
4072 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]'
4073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4076 lt_cv_deplibs_check_method=pass_all
4079 lt_cv_file_magic_cmd='/bin/file'
4080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4083 lt_cv_file_magic_cmd='/bin/file'
4084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4085 lt_cv_file_magic_test_file=/lib/libc.so
4088 lt_cv_deplibs_check_method=pass_all
4093 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4094 lt_cv_deplibs_check_method=pass_all
4099 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4100 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4101 file_magic_cmd=$lt_cv_file_magic_cmd
4102 deplibs_check_method=$lt_cv_deplibs_check_method
4103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4108 # If no C compiler was specified, use CC.
4111 # Allow CC to be a program name with arguments.
4114 # Check whether --enable-libtool-lock was given.
4115 if test "${enable_libtool_lock+set}" = set; then
4116 enableval=$enable_libtool_lock;
4119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4121 # Some flags need to be propagated to the compiler or linker for good
4125 # Find out which ABI we are using.
4126 echo 'int i;' > conftest.$ac_ext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; then
4132 case `/usr/bin/file conftest.$ac_objext` in
4144 # Find out which ABI we are using.
4145 echo '#line 4145 "configure"' > conftest.$ac_ext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; then
4151 if test "$lt_cv_prog_gnu_ld" = yes; then
4152 case `/usr/bin/file conftest.$ac_objext` in
4154 LD="${LD-ld} -melf32bsmip"
4157 LD="${LD-ld} -melf32bmipn32"
4160 LD="${LD-ld} -melf64bmip"
4164 case `/usr/bin/file conftest.$ac_objext` in
4180 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4181 # Find out which ABI we are using.
4182 echo 'int i;' > conftest.$ac_ext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4184 (eval $ac_compile) 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; then
4188 case "`/usr/bin/file conftest.o`" in
4192 LD="${LD-ld} -m elf_i386"
4194 ppc64-*linux*|powerpc64-*linux*)
4195 LD="${LD-ld} -m elf32ppclinux"
4198 LD="${LD-ld} -m elf_s390"
4201 LD="${LD-ld} -m elf32_sparc"
4208 LD="${LD-ld} -m elf_x86_64"
4210 ppc*-*linux*|powerpc*-*linux*)
4211 LD="${LD-ld} -m elf64ppc"
4214 LD="${LD-ld} -m elf64_s390"
4217 LD="${LD-ld} -m elf64_sparc"
4227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4228 SAVE_CFLAGS="$CFLAGS"
4229 CFLAGS="$CFLAGS -belf"
4230 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4231 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4232 if test "${lt_cv_cc_needs_belf+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (ac_try="$ac_link"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_link") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && {
4270 test -z "$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4272 } && test -s conftest$ac_exeext &&
4273 $as_test_x conftest$ac_exeext; then
4274 lt_cv_cc_needs_belf=yes
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 lt_cv_cc_needs_belf=no
4282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4283 conftest$ac_exeext conftest.$ac_ext
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4293 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295 CFLAGS="$SAVE_CFLAGS"
4301 need_locks="$enable_libtool_lock"
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4338 # include <limits.h>
4340 # include <assert.h>
4344 if { (ac_try="$ac_cpp conftest.$ac_ext"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev/null && {
4357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 # Broken: fails on valid input.
4369 rm -f conftest.err conftest.$ac_ext
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <ac_nonexistent.h>
4381 if { (ac_try="$ac_cpp conftest.$ac_ext"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } >/dev/null && {
4394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4397 # Broken: success on invalid input.
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 # Passes both tests.
4408 rm -f conftest.err conftest.$ac_ext
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then
4425 { echo "$as_me:$LINENO: result: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6; }
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 # include <limits.h>
4445 # include <assert.h>
4449 if { (ac_try="$ac_cpp conftest.$ac_ext"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null && {
4462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 # Broken: fails on valid input.
4474 rm -f conftest.err conftest.$ac_ext
4476 # OK, works on sane cases. Now check whether nonexistent headers
4477 # can be detected and how.
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <ac_nonexistent.h>
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } >/dev/null && {
4499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4502 # Broken: success on invalid input.
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Passes both tests.
4513 rm -f conftest.err conftest.$ac_ext
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then
4521 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&5
4523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&2;}
4525 { (exit 1); exit 1; }; }
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4536 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4537 if test "${ac_cv_header_stdc+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 ac_cv_header_stdc=yes
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_header_stdc=no
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 if test $ac_cv_header_stdc = yes; then
4587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "memchr" >/dev/null 2>&1; then
4601 ac_cv_header_stdc=no
4607 if test $ac_cv_header_stdc = yes; then
4608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609 cat >conftest.$ac_ext <<_ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619 $EGREP "free" >/dev/null 2>&1; then
4622 ac_cv_header_stdc=no
4628 if test $ac_cv_header_stdc = yes; then
4629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4630 if test "$cross_compiling" = yes; then
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4641 #if ((' ' & 0x0FF) == 0x020)
4642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645 # define ISLOWER(c) \
4646 (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657 for (i = 0; i < 256; i++)
4658 if (XOR (islower (i), ISLOWER (i))
4659 || toupper (i) != TOUPPER (i))
4664 rm -f conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_link") 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4675 { (case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_try") 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4686 echo "$as_me: program exited with status $ac_status" >&5
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cv_header_stdc=no
4693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4699 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4700 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4703 cat >>confdefs.h <<\_ACEOF
4704 #define STDC_HEADERS 1
4709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720 inttypes.h stdint.h unistd.h
4722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4736 #include <$ac_header>
4738 rm -f conftest.$ac_objext
4739 if { (ac_try="$ac_compile"
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4747 grep -v '^ *+' conftest.er1 >conftest.err
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4755 eval "$as_ac_Header=yes"
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 eval "$as_ac_Header=no"
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_res=`eval echo '${'$as_ac_Header'}'`
4766 { echo "$as_me:$LINENO: result: $ac_res" >&5
4767 echo "${ECHO_T}$ac_res" >&6; }
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 for ac_header in dlfcn.h
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 ac_res=`eval echo '${'$as_ac_Header'}'`
4789 { echo "$as_me:$LINENO: result: $ac_res" >&5
4790 echo "${ECHO_T}$ac_res" >&6; }
4792 # Is the header compilable?
4793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 $ac_includes_default
4802 #include <$ac_header>
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_compile") 2>conftest.er1
4813 grep -v '^ *+' conftest.er1 >conftest.err
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest.$ac_objext; then
4821 ac_header_compiler=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_header_compiler=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6; }
4833 # Is the header present?
4834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <$ac_header>
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null && {
4857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4860 ac_header_preproc=yes
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6; }
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 eval "$as_ac_Header=\$ac_header_preproc"
4904 ac_res=`eval echo '${'$as_ac_Header'}'`
4905 { echo "$as_me:$LINENO: result: $ac_res" >&5
4906 echo "${ECHO_T}$ac_res" >&6; }
4909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4910 cat >>confdefs.h <<_ACEOF
4911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 ac_cpp='$CXXCPP $CPPFLAGS'
4920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923 if test -z "$CXX"; then
4924 if test -n "$CCC"; then
4927 if test -n "$ac_tool_prefix"; then
4928 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_CXX+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$CXX"; then
4938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 if test -n "$CXX"; then
4959 { echo "$as_me:$LINENO: result: $CXX" >&5
4960 echo "${ECHO_T}$CXX" >&6; }
4962 { echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6; }
4967 test -n "$CXX" && break
4970 if test -z "$CXX"; then
4972 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4974 # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 if test -n "$ac_ct_CXX"; then
4982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_ac_ct_CXX="$ac_prog"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5002 if test -n "$ac_ct_CXX"; then
5003 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5004 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5011 test -n "$ac_ct_CXX" && break
5014 if test "x$ac_ct_CXX" = x; then
5017 case $cross_compiling:$ac_tool_warned in
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet. If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned=yes ;;
5033 # Provide some information about the compiler.
5034 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5035 ac_compiler=`set X $ac_compile; echo $2`
5036 { (ac_try="$ac_compiler --version >&5"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compiler --version >&5") 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5046 { (ac_try="$ac_compiler -v >&5"
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compiler -v >&5") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }
5056 { (ac_try="$ac_compiler -V >&5"
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compiler -V >&5") 2>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }
5067 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5068 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5069 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compile") 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && {
5104 test -z "$ac_cxx_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5119 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5120 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5121 GXX=`test $ac_compiler_gnu = yes && echo yes`
5122 ac_test_CXXFLAGS=${CXXFLAGS+set}
5123 ac_save_CXXFLAGS=$CXXFLAGS
5124 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5125 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_cxx_g+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5130 ac_cxx_werror_flag=yes
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5148 rm -f conftest.$ac_objext
5149 if { (ac_try="$ac_compile"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compile") 2>conftest.er1
5157 grep -v '^ *+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_cxx_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest.$ac_objext; then
5165 ac_cv_prog_cxx_g=yes
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5186 rm -f conftest.$ac_objext
5187 if { (ac_try="$ac_compile"
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_compile") 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && {
5200 test -z "$ac_cxx_werror_flag" ||
5201 test ! -s conftest.err
5202 } && test -s conftest.$ac_objext; then
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5234 grep -v '^ *+' conftest.er1 >conftest.err
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && {
5239 test -z "$ac_cxx_werror_flag" ||
5240 test ! -s conftest.err
5241 } && test -s conftest.$ac_objext; then
5242 ac_cv_prog_cxx_g=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5259 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5260 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5261 if test "$ac_test_CXXFLAGS" = set; then
5262 CXXFLAGS=$ac_save_CXXFLAGS
5263 elif test $ac_cv_prog_cxx_g = yes; then
5264 if test "$GXX" = yes; then
5270 if test "$GXX" = yes; then
5277 ac_cpp='$CXXCPP $CPPFLAGS'
5278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5283 ac_cpp='$CXXCPP $CPPFLAGS'
5284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5287 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5288 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5289 if test -z "$CXXCPP"; then
5290 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 # Double quotes because CXXCPP needs to be expanded
5294 for CXXCPP in "$CXX -E" "/lib/cpp"
5297 for ac_cxx_preproc_warn_flag in '' yes
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5312 # include <limits.h>
5314 # include <assert.h>
5318 if { (ac_try="$ac_cpp conftest.$ac_ext"
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev/null && {
5331 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5332 test ! -s conftest.err
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 # Broken: fails on valid input.
5343 rm -f conftest.err conftest.$ac_ext
5345 # OK, works on sane cases. Now check whether nonexistent headers
5346 # can be detected and how.
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 #include <ac_nonexistent.h>
5355 if { (ac_try="$ac_cpp conftest.$ac_ext"
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null && {
5368 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5369 test ! -s conftest.err
5371 # Broken: success on invalid input.
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Passes both tests.
5382 rm -f conftest.err conftest.$ac_ext
5385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5386 rm -f conftest.err conftest.$ac_ext
5387 if $ac_preproc_ok; then
5392 ac_cv_prog_CXXCPP=$CXXCPP
5395 CXXCPP=$ac_cv_prog_CXXCPP
5397 ac_cv_prog_CXXCPP=$CXXCPP
5399 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5400 echo "${ECHO_T}$CXXCPP" >&6; }
5402 for ac_cxx_preproc_warn_flag in '' yes
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5417 # include <limits.h>
5419 # include <assert.h>
5423 if { (ac_try="$ac_cpp conftest.$ac_ext"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null && {
5436 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5437 test ! -s conftest.err
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 # Broken: fails on valid input.
5448 rm -f conftest.err conftest.$ac_ext
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <ac_nonexistent.h>
5460 if { (ac_try="$ac_cpp conftest.$ac_ext"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null && {
5473 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5474 test ! -s conftest.err
5476 # Broken: success on invalid input.
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 # Passes both tests.
5487 rm -f conftest.err conftest.$ac_ext
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then
5495 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5496 See \`config.log' for more details." >&5
5497 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5498 See \`config.log' for more details." >&2;}
5499 { (exit 1); exit 1; }; }
5503 ac_cpp='$CXXCPP $CPPFLAGS'
5504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5510 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5511 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5513 if test -n "$ac_tool_prefix"; then
5514 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
5516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5520 if test "${ac_cv_prog_F77+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 if test -n "$F77"; then
5524 ac_cv_prog_F77="$F77" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 if test -n "$F77"; then
5545 { echo "$as_me:$LINENO: result: $F77" >&5
5546 echo "${ECHO_T}$F77" >&6; }
5548 { echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6; }
5553 test -n "$F77" && break
5556 if test -z "$F77"; then
5558 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
5560 # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5564 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 if test -n "$ac_ct_F77"; then
5568 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_ac_ct_F77="$ac_prog"
5578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5588 if test -n "$ac_ct_F77"; then
5589 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5590 echo "${ECHO_T}$ac_ct_F77" >&6; }
5592 { echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6; }
5597 test -n "$ac_ct_F77" && break
5600 if test "x$ac_ct_F77" = x; then
5603 case $cross_compiling:$ac_tool_warned in
5605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5606 whose name does not start with the host triplet. If you think this
5607 configuration is useful to you, please write to autoconf@gnu.org." >&5
5608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet. If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5611 ac_tool_warned=yes ;;
5618 # Provide some information about the compiler.
5619 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5620 ac_compiler=`set X $ac_compile; echo $2`
5621 { (ac_try="$ac_compiler --version >&5"
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler --version >&5") 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5631 { (ac_try="$ac_compiler -v >&5"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compiler -v >&5") 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }
5641 { (ac_try="$ac_compiler -V >&5"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compiler -V >&5") 2>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }
5653 # If we don't use `.F' as extension, the preprocessor is not run on the
5654 # input file. (Note that this only needs to work for GNU compilers.)
5657 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5658 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5659 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_f77_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5699 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5700 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5702 ac_test_FFLAGS=${FFLAGS+set}
5703 ac_save_FFLAGS=$FFLAGS
5705 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5706 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_f77_g+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.$ac_ext <<_ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5725 grep -v '^ *+' conftest.er1 >conftest.err
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_f77_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5733 ac_cv_prog_f77_g=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5745 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5746 if test "$ac_test_FFLAGS" = set; then
5747 FFLAGS=$ac_save_FFLAGS
5748 elif test $ac_cv_prog_f77_g = yes; then
5749 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5755 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5762 G77=`test $ac_compiler_gnu = yes && echo yes`
5764 ac_cpp='$CPP $CPPFLAGS'
5765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5773 # find the maximum length of command line arguments
5774 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5775 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5776 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 # On DJGPP, this test can blow up pretty badly due to problems in libc
5785 # (any single argument exceeding 2000 bytes causes a buffer overrun
5786 # during glob expansion). Even if it were fixed, the result of this
5787 # check would be larger than it should be.
5788 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5792 # Under GNU Hurd, this test is not required because there is
5793 # no limit to the length of command line arguments.
5794 # Libtool will interpret -1 as no limit whatsoever
5795 lt_cv_sys_max_cmd_len=-1;
5799 # On Win9x/ME, this test blows up -- it succeeds, but takes
5800 # about 5 minutes as the teststring grows exponentially.
5801 # Worse, since 9x/ME are not pre-emptively multitasking,
5802 # you end up with a "frozen" computer, even though with patience
5803 # the test eventually succeeds (with a max line length of 256k).
5804 # Instead, let's just punt: use the minimum linelength reported by
5805 # all of the supported platforms: 8192 (on NT/2K/XP).
5806 lt_cv_sys_max_cmd_len=8192;
5810 # On AmigaOS with pdksh, this test takes hours, literally.
5811 # So we just punt and use a minimum line length of 8192.
5812 lt_cv_sys_max_cmd_len=8192;
5816 # If test is not a shell built-in, we'll probably end up computing a
5817 # maximum length that is only half of the actual maximum length, but
5819 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5820 = "XX$teststring") >/dev/null 2>&1 &&
5821 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5822 lt_cv_sys_max_cmd_len=$new_result &&
5823 test $i != 17 # 1/2 MB should be enough
5826 teststring=$teststring$teststring
5829 # Add a significant safety factor because C++ compilers can tack on massive
5830 # amounts of additional arguments before passing them to the linker.
5831 # It appears as though 1/2 is a usable value.
5832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5838 if test -n $lt_cv_sys_max_cmd_len ; then
5839 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5842 { echo "$as_me:$LINENO: result: none" >&5
5843 echo "${ECHO_T}none" >&6; }
5849 # Check for command to grab the raw symbol name followed by C symbol from nm.
5850 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 # These are sane defaults that work on at least a few old systems.
5857 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5859 # Character class describing NM global symbol codes.
5860 symcode='[BCDEGRST]'
5862 # Regexp to match symbols that can be accessed directly from C.
5863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5865 # Transform the above into a raw symbol and a C symbol.
5866 symxfrm='\1 \2\3 \3'
5868 # Transform an extracted symbol line into a proper C declaration
5869 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5871 # Transform an extracted symbol line into symbol name and symbol address
5872 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'"
5874 # Define system-specific variables.
5879 cygwin* | mingw* | pw32*)
5880 symcode='[ABCDGISTW]'
5882 hpux*) # Its linker distinguishes data from code symbols
5883 if test "$host_cpu" = ia64; then
5884 symcode='[ABCDEGRST]'
5886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887 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'"
5890 symcode='[BCDEGRST]'
5893 symcode='[BCDEGQRST]'
5903 # Handle CRLF in mingw tool chain
5907 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5911 # If we're using GNU nm, then use its standard symbol codes.
5912 case `$NM -V 2>&1` in
5913 *GNU* | *'with BFD'*)
5914 symcode='[ABCDGIRSTW]' ;;
5917 # Try without a prefix undercore, then with it.
5918 for ac_symprfx in "" "_"; do
5920 # Write the raw and C identifiers.
5921 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5923 # Check to see that the pipe works correctly.
5927 cat > conftest.$ac_ext <<EOF
5932 void nm_test_func(){}
5936 int main(){nm_test_var='a';nm_test_func();return(0);}
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; then
5944 # Now try to grab the symbols.
5946 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5947 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && test -s "$nlist"; then
5951 # Try sorting and uniquifying the output.
5952 if sort "$nlist" | uniq > "$nlist"T; then
5953 mv -f "$nlist"T "$nlist"
5958 # Make sure that we snagged all the symbols we need.
5959 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5960 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5961 cat <<EOF > conftest.$ac_ext
5967 # Now generate the symbol file.
5968 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5970 cat <<EOF >> conftest.$ac_ext
5971 #if defined (__STDC__) && __STDC__
5972 # define lt_ptr_t void *
5974 # define lt_ptr_t char *
5978 /* The mapping between symbol names and symbols. */
5983 lt_preloaded_symbols[] =
5986 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5987 cat <<\EOF >> conftest.$ac_ext
5995 # Now try linking the two files.
5996 mv conftest.$ac_objext conftstm.$ac_objext
5997 lt_save_LIBS="$LIBS"
5998 lt_save_CFLAGS="$CFLAGS"
5999 LIBS="conftstm.$ac_objext"
6000 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6008 LIBS="$lt_save_LIBS"
6009 CFLAGS="$lt_save_CFLAGS"
6011 echo "cannot find nm_test_func in $nlist" >&5
6014 echo "cannot find nm_test_var in $nlist" >&5
6017 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6020 echo "$progname: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 rm -f conftest* conftst*
6025 # Do not use the global_symbol_pipe unless it works.
6026 if test "$pipe_works" = yes; then
6029 lt_cv_sys_global_symbol_pipe=
6035 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6036 lt_cv_sys_global_symbol_to_cdecl=
6038 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6039 { echo "$as_me:$LINENO: result: failed" >&5
6040 echo "${ECHO_T}failed" >&6; }
6042 { echo "$as_me:$LINENO: result: ok" >&5
6043 echo "${ECHO_T}ok" >&6; }
6046 { echo "$as_me:$LINENO: checking for objdir" >&5
6047 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6048 if test "${lt_cv_objdir+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 rm -f .libs 2>/dev/null
6052 mkdir .libs 2>/dev/null
6053 if test -d .libs; then
6056 # MS-DOS does not allow filenames that begin with a dot.
6059 rmdir .libs 2>/dev/null
6061 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6062 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6063 objdir=$lt_cv_objdir
6071 # AIX sometimes has problems with the GCC collect2 program. For some
6072 # reason, if we set the COLLECT_NAMES environment variable, the problems
6073 # vanish in a puff of smoke.
6074 if test "X${COLLECT_NAMES+set}" != Xset; then
6076 export COLLECT_NAMES
6081 # Sed substitution that helps us do robust quoting. It backslashifies
6082 # metacharacters that are still active within double-quoted strings.
6083 Xsed='sed -e s/^X//'
6084 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6086 # Same as above, but do not quote variable references.
6087 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6089 # Sed substitution to delay expansion of an escaped shell variable in a
6090 # double_quote_subst'ed string.
6091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093 # Sed substitution to avoid accidental globbing in evaled expressions
6094 no_glob_subst='s/\*/\\\*/g'
6100 default_ofile=libtool
6101 can_build_shared=yes
6103 # All known linkers require a `.a' archive for static linking (except M$VC,
6104 # which needs '.lib').
6106 ltmain="$ac_aux_dir/ltmain.sh"
6107 ofile="$default_ofile"
6108 with_gnu_ld="$lt_cv_prog_gnu_ld"
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}ar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_prog_AR+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 if test -n "$AR"; then
6119 ac_cv_prog_AR="$AR" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_AR="${ac_tool_prefix}ar"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 if test -n "$AR"; then
6140 { echo "$as_me:$LINENO: result: $AR" >&5
6141 echo "${ECHO_T}$AR" >&6; }
6143 { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6149 if test -z "$ac_cv_prog_AR"; then
6151 # Extract the first word of "ar", so it can be a program name with args.
6152 set dummy ar; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 if test -n "$ac_ct_AR"; then
6159 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_ac_ct_AR="ar"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6179 if test -n "$ac_ct_AR"; then
6180 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6181 echo "${ECHO_T}$ac_ct_AR" >&6; }
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6187 if test "x$ac_ct_AR" = x; then
6190 case $cross_compiling:$ac_tool_warned in
6192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet. If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&5
6195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6198 ac_tool_warned=yes ;;
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_RANLIB+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 if test -n "$RANLIB"; then
6215 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 RANLIB=$ac_cv_prog_RANLIB
6235 if test -n "$RANLIB"; then
6236 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6237 echo "${ECHO_T}$RANLIB" >&6; }
6239 { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6245 if test -z "$ac_cv_prog_RANLIB"; then
6246 ac_ct_RANLIB=$RANLIB
6247 # Extract the first word of "ranlib", so it can be a program name with args.
6248 set dummy ranlib; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 if test -n "$ac_ct_RANLIB"; then
6255 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_ac_ct_RANLIB="ranlib"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6275 if test -n "$ac_ct_RANLIB"; then
6276 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6277 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6279 { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6283 if test "x$ac_ct_RANLIB" = x; then
6286 case $cross_compiling:$ac_tool_warned in
6288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet. If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&5
6291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet. If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6294 ac_tool_warned=yes ;;
6296 RANLIB=$ac_ct_RANLIB
6299 RANLIB="$ac_cv_prog_RANLIB"
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}strip; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_STRIP+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 if test -n "$STRIP"; then
6311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 STRIP=$ac_cv_prog_STRIP
6331 if test -n "$STRIP"; then
6332 { echo "$as_me:$LINENO: result: $STRIP" >&5
6333 echo "${ECHO_T}$STRIP" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6341 if test -z "$ac_cv_prog_STRIP"; then
6343 # Extract the first word of "strip", so it can be a program name with args.
6344 set dummy strip; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 if test -n "$ac_ct_STRIP"; then
6351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_ac_ct_STRIP="strip"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371 if test -n "$ac_ct_STRIP"; then
6372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6373 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6375 { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6379 if test "x$ac_ct_STRIP" = x; then
6382 case $cross_compiling:$ac_tool_warned in
6384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6385 whose name does not start with the host triplet. If you think this
6386 configuration is useful to you, please write to autoconf@gnu.org." >&5
6387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet. If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6390 ac_tool_warned=yes ;;
6395 STRIP="$ac_cv_prog_STRIP"
6400 old_CFLAGS="$CFLAGS"
6402 # Set sane defaults for various variables
6403 test -z "$AR" && AR=ar
6404 test -z "$AR_FLAGS" && AR_FLAGS=cru
6405 test -z "$AS" && AS=as
6406 test -z "$CC" && CC=cc
6407 test -z "$LTCC" && LTCC=$CC
6408 test -z "$DLLTOOL" && DLLTOOL=dlltool
6409 test -z "$LD" && LD=ld
6410 test -z "$LN_S" && LN_S="ln -s"
6411 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6412 test -z "$NM" && NM=nm
6413 test -z "$SED" && SED=sed
6414 test -z "$OBJDUMP" && OBJDUMP=objdump
6415 test -z "$RANLIB" && RANLIB=:
6416 test -z "$STRIP" && STRIP=:
6417 test -z "$ac_objext" && ac_objext=o
6419 # Determine commands to create old-style static archives.
6420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6421 old_postinstall_cmds='chmod 644 $oldlib'
6422 old_postuninstall_cmds=
6424 if test -n "$RANLIB"; then
6427 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6430 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6436 # Only perform the check for file, if the check method requires it
6437 case $deplibs_check_method in
6439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6440 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6441 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6450 lt_save_MAGIC_CMD="$MAGIC_CMD"
6451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6453 for ac_dir in $ac_dummy; do
6455 test -z "$ac_dir" && ac_dir=.
6456 if test -f $ac_dir/${ac_tool_prefix}file; then
6457 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6458 if test -n "$file_magic_test_file"; then
6459 case $deplibs_check_method in
6461 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6464 $EGREP "$file_magic_regex" > /dev/null; then
6469 *** Warning: the command libtool uses to detect shared libraries,
6470 *** $file_magic_cmd, produces output that libtool cannot recognize.
6471 *** The result is that libtool may fail to recognize shared libraries
6472 *** as such. This will affect the creation of libtool libraries that
6473 *** depend on shared libraries, but programs linked with such libtool
6474 *** libraries will work regardless of this problem. Nevertheless, you
6475 *** may want to report the problem to your system manager and/or to
6476 *** bug-libtool@gnu.org
6486 MAGIC_CMD="$lt_save_MAGIC_CMD"
6491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6492 if test -n "$MAGIC_CMD"; then
6493 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6494 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6500 if test -z "$lt_cv_path_MAGIC_CMD"; then
6501 if test -n "$ac_tool_prefix"; then
6502 { echo "$as_me:$LINENO: checking for file" >&5
6503 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6504 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6512 lt_save_MAGIC_CMD="$MAGIC_CMD"
6513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6515 for ac_dir in $ac_dummy; do
6517 test -z "$ac_dir" && ac_dir=.
6518 if test -f $ac_dir/file; then
6519 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6520 if test -n "$file_magic_test_file"; then
6521 case $deplibs_check_method in
6523 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6526 $EGREP "$file_magic_regex" > /dev/null; then
6531 *** Warning: the command libtool uses to detect shared libraries,
6532 *** $file_magic_cmd, produces output that libtool cannot recognize.
6533 *** The result is that libtool may fail to recognize shared libraries
6534 *** as such. This will affect the creation of libtool libraries that
6535 *** depend on shared libraries, but programs linked with such libtool
6536 *** libraries will work regardless of this problem. Nevertheless, you
6537 *** may want to report the problem to your system manager and/or to
6538 *** bug-libtool@gnu.org
6548 MAGIC_CMD="$lt_save_MAGIC_CMD"
6553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6554 if test -n "$MAGIC_CMD"; then
6555 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6556 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6574 # Check whether --enable-libtool-lock was given.
6575 if test "${enable_libtool_lock+set}" = set; then
6576 enableval=$enable_libtool_lock;
6579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6582 # Check whether --with-pic was given.
6583 if test "${with_pic+set}" = set; then
6584 withval=$with_pic; pic_mode="$withval"
6589 test -z "$pic_mode" && pic_mode=default
6591 # Use C for the default configuration in the libtool script
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601 # Source file extension for C test sources.
6604 # Object file extension for compiled C test sources.
6608 # Code to be used in simple compile tests
6609 lt_simple_compile_test_code="int some_variable = 0;\n"
6611 # Code to be used in simple link tests
6612 lt_simple_link_test_code='int main(){return(0);}\n'
6615 # If no C compiler was specified, use CC.
6618 # Allow CC to be a program name with arguments.
6623 # Check for any special shared library compilation flags.
6626 if test "$GCC" = no; then
6629 lt_prog_cc_shlib='-belf'
6633 if test -n "$lt_prog_cc_shlib"; then
6634 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6635 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6636 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6638 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6639 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6640 lt_cv_prog_cc_can_build_shared=no
6646 # Check to make sure the static flag actually works.
6648 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6649 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6650 if test "${lt_prog_compiler_static_works+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 lt_prog_compiler_static_works=no
6654 save_LDFLAGS="$LDFLAGS"
6655 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6656 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6658 # The compiler can only warn and ignore the option if not recognized
6659 # So say no if there are warnings
6660 if test -s conftest.err; then
6661 # Append any errors to the config.log.
6662 cat conftest.err 1>&5
6664 lt_prog_compiler_static_works=yes
6668 LDFLAGS="$save_LDFLAGS"
6671 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6672 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6674 if test x"$lt_prog_compiler_static_works" = xyes; then
6677 lt_prog_compiler_static=
6683 ## There is no encapsulation within the following macros, do not change
6684 ## the running order or otherwise move them around unless you know exactly
6685 ## what you are doing...
6687 lt_prog_compiler_no_builtin_flag=
6689 if test "$GCC" = yes; then
6690 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6693 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6694 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6695 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 lt_cv_prog_compiler_rtti_exceptions=no
6699 ac_outfile=conftest.$ac_objext
6700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6701 lt_compiler_flag="-fno-rtti -fno-exceptions"
6702 # Insert the option either (1) after the last *FLAGS variable, or
6703 # (2) before a word containing "conftest.", or (3) at the end.
6704 # Note that $ac_compile itself does not contain backslashes and begins
6705 # with a dollar sign (not a hyphen), so the echo should work correctly.
6706 # The option is referenced via a variable to avoid confusing sed.
6707 lt_compile=`echo "$ac_compile" | $SED \
6708 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710 -e 's:$: $lt_compiler_flag:'`
6711 (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712 (eval "$lt_compile" 2>conftest.err)
6714 cat conftest.err >&5
6715 echo "$as_me:6715: \$? = $ac_status" >&5
6716 if (exit $ac_status) && test -s "$ac_outfile"; then
6717 # The compiler can only warn and ignore the option if not recognized
6718 # So say no if there are warnings
6719 if test ! -s conftest.err; then
6720 lt_cv_prog_compiler_rtti_exceptions=yes
6726 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6727 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6729 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6730 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6737 lt_prog_compiler_wl=
6738 lt_prog_compiler_pic=
6739 lt_prog_compiler_static=
6741 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6744 if test "$GCC" = yes; then
6745 lt_prog_compiler_wl='-Wl,'
6746 lt_prog_compiler_static='-static'
6750 # All AIX code is PIC.
6751 if test "$host_cpu" = ia64; then
6752 # AIX 5 now supports IA64 processor
6753 lt_prog_compiler_static='-Bstatic'
6758 # FIXME: we need at least 68020 code to build shared libraries, but
6759 # adding the `-m68020' flag to GCC prevents building anything better,
6761 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6764 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6765 # PIC is the default for these OSes.
6768 mingw* | pw32* | os2*)
6769 # This hack is so that the source file can tell whether it is being
6770 # built for inclusion in a dll (and should export symbols for example).
6771 lt_prog_compiler_pic='-DDLL_EXPORT'
6774 darwin* | rhapsody*)
6775 # PIC is the default on this platform
6776 # Common symbols not allowed in MH_DYLIB files
6777 lt_prog_compiler_pic='-fno-common'
6781 # Just because we use GCC doesn't mean we suddenly get shared libraries
6782 # on systems that don't support them.
6783 lt_prog_compiler_can_build_shared=no
6788 if test -d /usr/nec; then
6789 lt_prog_compiler_pic=-Kconform_pic
6794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6801 lt_prog_compiler_pic='-fPIC'
6807 lt_prog_compiler_pic='-fPIC'
6811 # PORTME Check for flag to pass linker flags through the system compiler.
6814 lt_prog_compiler_wl='-Wl,'
6815 if test "$host_cpu" = ia64; then
6816 # AIX 5 now supports IA64 processor
6817 lt_prog_compiler_static='-Bstatic'
6819 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6823 mingw* | pw32* | os2*)
6824 # This hack is so that the source file can tell whether it is being
6825 # built for inclusion in a dll (and should export symbols for example).
6826 lt_prog_compiler_pic='-DDLL_EXPORT'
6829 hpux9* | hpux10* | hpux11*)
6830 lt_prog_compiler_wl='-Wl,'
6831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6838 lt_prog_compiler_pic='+Z'
6841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6842 lt_prog_compiler_static='${wl}-a ${wl}archive'
6845 irix5* | irix6* | nonstopux*)
6846 lt_prog_compiler_wl='-Wl,'
6847 # PIC (with -KPIC) is the default.
6848 lt_prog_compiler_static='-non_shared'
6852 lt_prog_compiler_pic='-KPIC'
6853 lt_prog_compiler_static='-Bstatic'
6859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-static'
6864 lt_prog_compiler_wl='-Wl,'
6865 # All Alpha code is PIC.
6866 lt_prog_compiler_static='-non_shared'
6871 osf3* | osf4* | osf5*)
6872 lt_prog_compiler_wl='-Wl,'
6873 # All OSF/1 code is PIC.
6874 lt_prog_compiler_static='-non_shared'
6878 lt_prog_compiler_pic='-Kpic'
6879 lt_prog_compiler_static='-dn'
6883 lt_prog_compiler_wl='-Wl,'
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6889 lt_prog_compiler_wl='-Qoption ld '
6890 lt_prog_compiler_pic='-PIC'
6891 lt_prog_compiler_static='-Bstatic'
6894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6895 lt_prog_compiler_wl='-Wl,'
6896 lt_prog_compiler_pic='-KPIC'
6897 lt_prog_compiler_static='-Bstatic'
6901 if test -d /usr/nec ;then
6902 lt_prog_compiler_pic='-Kconform_pic'
6903 lt_prog_compiler_static='-Bstatic'
6908 lt_prog_compiler_pic='-pic'
6909 lt_prog_compiler_static='-Bstatic'
6913 lt_prog_compiler_can_build_shared=no
6918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6919 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6922 # Check to make sure the PIC flag actually works.
6924 if test -n "$lt_prog_compiler_pic"; then
6926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6928 if test "${lt_prog_compiler_pic_works+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 lt_prog_compiler_pic_works=no
6932 ac_outfile=conftest.$ac_objext
6933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6935 # Insert the option either (1) after the last *FLAGS variable, or
6936 # (2) before a word containing "conftest.", or (3) at the end.
6937 # Note that $ac_compile itself does not contain backslashes and begins
6938 # with a dollar sign (not a hyphen), so the echo should work correctly.
6939 # The option is referenced via a variable to avoid confusing sed.
6940 lt_compile=`echo "$ac_compile" | $SED \
6941 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6943 -e 's:$: $lt_compiler_flag:'`
6944 (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
6945 (eval "$lt_compile" 2>conftest.err)
6947 cat conftest.err >&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 if (exit $ac_status) && test -s "$ac_outfile"; then
6950 # The compiler can only warn and ignore the option if not recognized
6951 # So say no if there are warnings
6952 if test ! -s conftest.err; then
6953 lt_prog_compiler_pic_works=yes
6959 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6960 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6962 if test x"$lt_prog_compiler_pic_works" = xyes; then
6963 case $lt_prog_compiler_pic in
6965 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6968 lt_prog_compiler_pic=
6969 lt_prog_compiler_can_build_shared=no
6974 # For platforms which do not support PIC, -DPIC is meaningless:
6976 lt_prog_compiler_pic=
6979 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6983 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6984 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 lt_cv_prog_compiler_c_o=no
6989 $rm -r conftest 2>/dev/null
6993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6995 lt_compiler_flag="-o out/conftest2.$ac_objext"
6996 # Insert the option either (1) after the last *FLAGS variable, or
6997 # (2) before a word containing "conftest.", or (3) at the end.
6998 # Note that $ac_compile itself does not contain backslashes and begins
6999 # with a dollar sign (not a hyphen), so the echo should work correctly.
7000 lt_compile=`echo "$ac_compile" | $SED \
7001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7003 -e 's:$: $lt_compiler_flag:'`
7004 (eval echo "\"\$as_me:7004: $lt_compile\"" >&5)
7005 (eval "$lt_compile" 2>out/conftest.err)
7007 cat out/conftest.err >&5
7008 echo "$as_me:7008: \$? = $ac_status" >&5
7009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7011 # The compiler can only warn and ignore the option if not recognized
7012 # So say no if there are warnings
7013 if test ! -s out/conftest.err; then
7014 lt_cv_prog_compiler_c_o=yes
7019 # SGI C++ compiler will create directory out/ii_files/ for
7020 # template instantiation
7021 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7022 $rm out/* && rmdir out
7028 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7032 hard_links="nottested"
7033 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7034 # do not overwrite the value of need_locks provided by the user
7035 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7036 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7041 ln conftest.a conftest.b 2>&5 || hard_links=no
7042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7043 { echo "$as_me:$LINENO: result: $hard_links" >&5
7044 echo "${ECHO_T}$hard_links" >&6; }
7045 if test "$hard_links" = no; then
7046 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7047 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7054 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7058 allow_undefined_flag=
7059 enable_shared_with_static_runtimes=no
7061 archive_expsym_cmds=
7062 old_archive_From_new_cmds=
7063 old_archive_from_expsyms_cmds=
7064 export_dynamic_flag_spec=
7065 whole_archive_flag_spec=
7066 thread_safe_flag_spec=
7067 hardcode_libdir_flag_spec=
7068 hardcode_libdir_flag_spec_ld=
7069 hardcode_libdir_separator=
7072 hardcode_shlibpath_var=unsupported
7073 link_all_deplibs=unknown
7074 hardcode_automatic=no
7077 always_export_symbols=no
7078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7079 # include_expsyms should be a list of space-separated symbols to be *always*
7080 # included in the symbol list
7082 # exclude_expsyms can be an extended regexp of symbols to exclude
7083 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7084 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7085 # as well as any symbol that contains `d'.
7086 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7087 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7088 # platforms (ab)use it in PIC code, but their linkers get confused if
7089 # the symbol is explicitly referenced. Since portable code cannot
7090 # rely on this symbol name, it's probably fine to never include it in
7091 # preloaded symbol tables.
7092 extract_expsyms_cmds=
7095 cygwin* | mingw* | pw32*)
7096 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7097 # When not using gcc, we currently assume that we are using
7098 # Microsoft Visual C++.
7099 if test "$GCC" != yes; then
7109 if test "$with_gnu_ld" = yes; then
7110 # If archive_cmds runs LD, not CC, wlarc should be empty
7113 # See if GNU ld supports shared libraries.
7115 aix3* | aix4* | aix5*)
7116 # On AIX/PPC, the GNU linker is very broken
7117 if test "$host_cpu" != ia64; then
7121 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7122 *** to be unable to reliably create shared libraries on AIX.
7123 *** Therefore, libtool is disabling shared libraries support. If you
7124 *** really care for shared libraries, you may want to modify your PATH
7125 *** so that a non-GNU linker is found, and then restart.
7132 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)'
7133 hardcode_libdir_flag_spec='-L$libdir'
7134 hardcode_minus_L=yes
7136 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7137 # that the semantics of dynamic libraries on AmigaOS, at least up
7138 # to version 4, is to share data among multiple programs linked
7139 # with the same dynamic library. Since this doesn't match the
7140 # behavior of shared libraries on other platforms, we can't use
7146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7147 allow_undefined_flag=unsupported
7148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7149 # support --undefined. This deserves some investigation. FIXME
7150 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7156 cygwin* | mingw* | pw32*)
7157 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7158 # as there is no search path for DLLs.
7159 hardcode_libdir_flag_spec='-L$libdir'
7160 allow_undefined_flag=unsupported
7161 always_export_symbols=no
7162 enable_shared_with_static_runtimes=yes
7163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7167 # If the export-symbols file already is a .def file (1st line
7168 # is EXPORTS), use it as is; otherwise, prepend...
7169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7170 cp $export_symbols $output_objdir/$soname.def;
7172 echo EXPORTS > $output_objdir/$soname.def;
7173 cat $export_symbols >> $output_objdir/$soname.def;
7175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7183 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7192 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7197 *** create shared libraries on Solaris systems. Therefore, libtool
7198 *** is disabling shared libraries support. We urge you to upgrade GNU
7199 *** binutils to release 2.9.1 or newer. Another option is to modify
7200 *** your PATH or compiler configuration so that the native linker is
7201 *** used, and then restart.
7204 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7213 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7216 hardcode_shlibpath_var=no
7220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7221 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7222 archive_cmds="$tmp_archive_cmds"
7223 supports_anon_versioning=no
7224 case `$LD -v 2>/dev/null` in
7225 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7228 *\ 2.11.*) ;; # other 2.11 versions
7229 *) supports_anon_versioning=yes ;;
7231 if test $supports_anon_versioning = yes; then
7232 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7234 $echo "local: *; };" >> $output_objdir/$libname.ver~
7235 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7237 archive_expsym_cmds="$tmp_archive_cmds"
7245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7254 if test "$ld_shlibs" = yes; then
7255 runpath_var=LD_RUN_PATH
7256 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7257 export_dynamic_flag_spec='${wl}--export-dynamic'
7258 # ancient GNU ld didn't support --whole-archive et. al.
7259 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7262 whole_archive_flag_spec=
7266 # PORTME fill in a description of your system's linker (not GNU ld)
7269 allow_undefined_flag=unsupported
7270 always_export_symbols=yes
7271 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'
7272 # Note: this linker hardcodes the directories in LIBPATH if there
7273 # are no directories specified by -L.
7274 hardcode_minus_L=yes
7275 if test "$GCC" = yes && test -z "$link_static_flag"; then
7276 # Neither direct hardcoding nor static linking is supported with a
7278 hardcode_direct=unsupported
7283 if test "$host_cpu" = ia64; then
7284 # On IA64, the linker does run time linking by default, so we don't
7285 # have to do anything special.
7286 aix_use_runtimelinking=no
7287 exp_sym_flag='-Bexport'
7290 # If we're using GNU nm, then we don't want the "-C" option.
7291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7292 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7293 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'
7295 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'
7297 aix_use_runtimelinking=no
7299 # Test if we are trying to use run time linking or normal
7300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7301 # need to do runtime linking.
7302 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7303 for ld_flag in $LDFLAGS; do
7304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7305 aix_use_runtimelinking=yes
7311 exp_sym_flag='-bexport'
7312 no_entry_flag='-bnoentry'
7315 # When large executables or shared objects are built, AIX ld can
7316 # have problems creating the table of contents. If linking a library
7317 # or program results in "error TOC overflow" add -mminimal-toc to
7318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7323 hardcode_libdir_separator=':'
7324 link_all_deplibs=yes
7326 if test "$GCC" = yes; then
7327 case $host_os in aix4.012|aix4.012.*)
7328 # We only want to do this on AIX 4.2 and lower, the check
7329 # below for broken collect2 doesn't work under 4.3+
7330 collect2name=`${CC} -print-prog-name=collect2`
7331 if test -f "$collect2name" && \
7332 strings "$collect2name" | grep resolve_lib_name >/dev/null
7334 # We have reworked collect2
7337 # We have old collect2
7338 hardcode_direct=unsupported
7339 # It fails to find uninstalled libraries when the uninstalled
7340 # path is not listed in the libpath. Setting hardcode_minus_L
7341 # to unsupported forces relinking
7342 hardcode_minus_L=yes
7343 hardcode_libdir_flag_spec='-L$libdir'
7344 hardcode_libdir_separator=
7347 shared_flag='-shared'
7350 if test "$host_cpu" = ia64; then
7351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7352 # chokes on -Wl,-G. The following line is correct:
7355 if test "$aix_use_runtimelinking" = yes; then
7356 shared_flag='${wl}-G'
7358 shared_flag='${wl}-bM:SRE'
7363 # It seems that -bexpall does not export symbols beginning with
7364 # underscore (_), so it is better to generate a list of symbols to export.
7365 always_export_symbols=yes
7366 if test "$aix_use_runtimelinking" = yes; then
7367 # Warning - without using the other runtime loading flags (-brtl),
7368 # -berok will link without error, but may produce a broken library.
7369 allow_undefined_flag='-berok'
7370 # Determine the default libpath from the value encoded in an empty executable.
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7386 rm -f conftest.$ac_objext conftest$ac_exeext
7387 if { (ac_try="$ac_link"
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_link") 2>conftest.er1
7395 grep -v '^ *+' conftest.er1 >conftest.err
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest$ac_exeext &&
7403 $as_test_x conftest$ac_exeext; then
7405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7407 # Check for a 64-bit object if we didn't find anything.
7408 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7418 conftest$ac_exeext conftest.$ac_ext
7419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7422 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7424 if test "$host_cpu" = ia64; then
7425 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7426 allow_undefined_flag="-z nodefs"
7427 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7429 # Determine the default libpath from the value encoded in an empty executable.
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_link") 2>conftest.er1
7454 grep -v '^ *+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest$ac_exeext &&
7462 $as_test_x conftest$ac_exeext; then
7464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7466 # Check for a 64-bit object if we didn't find anything.
7467 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7477 conftest$ac_exeext conftest.$ac_ext
7478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7481 # Warning - without using the other run time loading flags,
7482 # -berok will link without error, but may produce a broken library.
7483 no_undefined_flag=' ${wl}-bernotok'
7484 allow_undefined_flag=' ${wl}-berok'
7485 # -bexpall does not export symbols beginning with underscore (_)
7486 always_export_symbols=yes
7487 # Exported symbols can be pulled into shared objects from archives
7488 whole_archive_flag_spec=' '
7489 archive_cmds_need_lc=yes
7490 # This is similar to how AIX traditionally builds it's shared libraries.
7491 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7497 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)'
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 hardcode_minus_L=yes
7500 # see comment about different semantics on the GNU ld section
7505 export_dynamic_flag_spec=-rdynamic
7508 cygwin* | mingw* | pw32*)
7509 # When not using gcc, we currently assume that we are using
7510 # Microsoft Visual C++.
7511 # hardcode_libdir_flag_spec is actually meaningless, as there is
7512 # no search path for DLLs.
7513 hardcode_libdir_flag_spec=' '
7514 allow_undefined_flag=unsupported
7515 # Tell ltmain to make .lib files, not .a files.
7517 # Tell ltmain to make .dll files, not .so files.
7519 # FIXME: Setting linknames here is a bad hack.
7520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7521 # The linker will automatically build a .lib file if we build a DLL.
7522 old_archive_From_new_cmds='true'
7523 # FIXME: Should let the user specify the lib program.
7524 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7525 fix_srcfile_path='`cygpath -w "$srcfile"`'
7526 enable_shared_with_static_runtimes=yes
7529 darwin* | rhapsody*)
7530 if test "$GXX" = yes ; then
7531 archive_cmds_need_lc=no
7533 rhapsody* | darwin1.[012])
7534 allow_undefined_flag='-undefined suppress'
7537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7538 allow_undefined_flag='-flat_namespace -undefined suppress'
7540 case ${MACOSX_DEPLOYMENT_TARGET} in
7542 allow_undefined_flag='-flat_namespace -undefined suppress'
7545 allow_undefined_flag='-undefined dynamic_lookup'
7551 lt_int_apple_cc_single_mod=no
7552 output_verbose_link_cmd='echo'
7553 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7554 lt_int_apple_cc_single_mod=yes
7556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7559 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7561 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7564 archive_expsym_cmds='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}'
7566 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7568 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}'
7570 hardcode_automatic=yes
7571 hardcode_shlibpath_var=unsupported
7572 whole_archive_flag_spec='-all_load $convenience'
7573 link_all_deplibs=yes
7580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581 hardcode_libdir_flag_spec='-L$libdir'
7582 hardcode_shlibpath_var=no
7589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7590 # support. Future versions do this automatically, but an explicit c++rt0.o
7591 # does not break anything, and helps significantly (at the cost of a little
7594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7595 hardcode_libdir_flag_spec='-R$libdir'
7597 hardcode_shlibpath_var=no
7600 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7604 hardcode_minus_L=yes
7605 hardcode_shlibpath_var=no
7608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7609 freebsd* | kfreebsd*-gnu)
7610 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7611 hardcode_libdir_flag_spec='-R$libdir'
7613 hardcode_shlibpath_var=no
7617 if test "$GCC" = yes; then
7618 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'
7620 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'
7622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7623 hardcode_libdir_separator=:
7626 # hardcode_minus_L: Not really in the search PATH,
7627 # but as the default location of the library.
7628 hardcode_minus_L=yes
7629 export_dynamic_flag_spec='${wl}-E'
7633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7645 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7652 if test "$with_gnu_ld" = no; then
7655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7656 hardcode_libdir_flag_spec_ld='+b $libdir'
7657 hardcode_libdir_separator=:
7659 hardcode_shlibpath_var=no
7662 hardcode_libdir_flag_spec='-L$libdir'
7664 hardcode_shlibpath_var=no
7666 # hardcode_minus_L: Not really in the search PATH,
7667 # but as the default location of the library.
7668 hardcode_minus_L=yes
7671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7672 hardcode_libdir_separator=:
7674 export_dynamic_flag_spec='${wl}-E'
7676 # hardcode_minus_L: Not really in the search PATH,
7677 # but as the default location of the library.
7678 hardcode_minus_L=yes
7684 irix5* | irix6* | nonstopux*)
7685 if test "$GCC" = yes; then
7686 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'
7688 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'
7689 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7692 hardcode_libdir_separator=:
7693 link_all_deplibs=yes
7697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7700 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7702 hardcode_libdir_flag_spec='-R$libdir'
7704 hardcode_shlibpath_var=no
7708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7711 hardcode_libdir_separator=:
7712 hardcode_shlibpath_var=no
7717 hardcode_shlibpath_var=no
7718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7721 export_dynamic_flag_spec='${wl}-E'
7724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7726 hardcode_libdir_flag_spec='-R$libdir'
7729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7737 hardcode_libdir_flag_spec='-L$libdir'
7738 hardcode_minus_L=yes
7739 allow_undefined_flag=unsupported
7740 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'
7741 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7745 if test "$GCC" = yes; then
7746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7747 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'
7749 allow_undefined_flag=' -expect_unresolved \*'
7750 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'
7752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7753 hardcode_libdir_separator=:
7756 osf4* | osf5*) # as osf3* with the addition of -msym flag
7757 if test "$GCC" = yes; then
7758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7759 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'
7760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7762 allow_undefined_flag=' -expect_unresolved \*'
7763 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'
7764 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7765 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7767 # Both c and cxx compiler support -rpath directly
7768 hardcode_libdir_flag_spec='-rpath $libdir'
7770 hardcode_libdir_separator=:
7774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_shlibpath_var=no
7776 export_dynamic_flag_spec='${wl}-Bexport'
7777 runpath_var=LD_RUN_PATH
7778 hardcode_runpath_var=yes
7782 no_undefined_flag=' -z text'
7783 if test "$GCC" = yes; then
7784 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7786 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7788 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7792 hardcode_libdir_flag_spec='-R$libdir'
7793 hardcode_shlibpath_var=no
7795 solaris2.[0-5] | solaris2.[0-5].*) ;;
7796 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7799 link_all_deplibs=yes
7803 if test "x$host_vendor" = xsequent; then
7804 # Use $CC to link under sequent, because it throws in some extra .o
7805 # files that make .init and .fini sections work.
7806 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7808 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7810 hardcode_libdir_flag_spec='-L$libdir'
7812 hardcode_minus_L=yes
7813 hardcode_shlibpath_var=no
7817 case $host_vendor in
7819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820 hardcode_direct=yes # is this really true???
7823 ## LD is ld it makes a PLAMLIB
7824 ## CC just makes a GrossModule.
7825 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7826 reload_cmds='$CC -r -o $output$reload_objs'
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7834 runpath_var='LD_RUN_PATH'
7835 hardcode_shlibpath_var=no
7839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7840 hardcode_shlibpath_var=no
7841 export_dynamic_flag_spec='-Bexport'
7845 if test -d /usr/nec; then
7846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_shlibpath_var=no
7848 runpath_var=LD_RUN_PATH
7849 hardcode_runpath_var=yes
7855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7858 hardcode_shlibpath_var=no
7859 hardcode_runpath_var=yes
7860 runpath_var=LD_RUN_PATH
7863 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7864 no_undefined_flag='${wl}-z ${wl}text'
7865 if test "$GCC" = yes; then
7866 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7868 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7870 runpath_var='LD_RUN_PATH'
7871 hardcode_shlibpath_var=no
7875 no_undefined_flag=' -z text'
7876 # $CC -shared without GNU ld will not create a library from C++
7877 # object files and a static libstdc++, better avoid it by now
7878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7879 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7881 hardcode_libdir_flag_spec=
7882 hardcode_shlibpath_var=no
7883 runpath_var='LD_RUN_PATH'
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 hardcode_shlibpath_var=no
7898 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7899 echo "${ECHO_T}$ld_shlibs" >&6; }
7900 test "$ld_shlibs" = no && can_build_shared=no
7902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7903 if test "$GCC" = yes; then
7904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7908 # Do we need to explicitly link libc?
7910 case "x$archive_cmds_need_lc" in
7912 # Assume -lc should be added
7913 archive_cmds_need_lc=yes
7915 if test "$enable_shared" = yes && test "$GCC" = yes; then
7916 case $archive_cmds in
7918 # FIXME: we may have to deal with multi-command sequences.
7921 # Test whether the compiler implicitly links with -lc since on some
7922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7923 # to ld, don't add -lc before -lgcc.
7924 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7925 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } 2>conftest.err; then
7936 libobjs=conftest.$ac_objext
7938 wl=$lt_prog_compiler_wl
7944 lt_save_allow_undefined_flag=$allow_undefined_flag
7945 allow_undefined_flag=
7946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7947 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }
7952 archive_cmds_need_lc=no
7954 archive_cmds_need_lc=yes
7956 allow_undefined_flag=$lt_save_allow_undefined_flag
7958 cat conftest.err 1>&5
7961 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7962 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7969 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7972 libname_spec='lib$name'
7980 shlibpath_overrides_runpath=unknown
7982 dynamic_linker="$host_os ld.so"
7983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7984 if test "$GCC" = yes; then
7985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7987 # if the path contains ";" then we assume it to be the separator
7988 # otherwise default to the standard path separator (i.e. ":") - it is
7989 # assumed that no part of a normal pathname contains ";" but that should
7990 # okay in the real world where ";" in dirpaths is itself problematic.
7991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7998 need_lib_prefix=unknown
7999 hardcode_into_libs=no
8001 # when you set need_version to no, make sure it does not cause -set_version
8002 # flags to be left without arguments
8003 need_version=unknown
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8009 shlibpath_var=LIBPATH
8011 # AIX 3 has no versioning support, so we append a major version to the name.
8012 soname_spec='${libname}${release}${shared_ext}$major'
8019 hardcode_into_libs=yes
8020 if test "$host_cpu" = ia64; then
8021 # AIX 5 supports IA64
8022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8023 shlibpath_var=LD_LIBRARY_PATH
8025 # With GCC up to 2.95.x, collect2 would create an import file
8026 # for dependence libraries. The import file would start with
8027 # the line `#! .'. This would cause the generated library to
8028 # depend on `.', always an invalid library. This was fixed in
8029 # development snapshots of GCC prior to 3.0.
8031 aix4 | aix4.[01] | aix4.[01].*)
8032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8042 # soname into executable. Probably we can add versioning support to
8043 # collect2, so additional links can be useful in future.
8044 if test "$aix_use_runtimelinking" = yes; then
8045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8046 # instead of lib<name>.a to let people know that these are not
8047 # typical AIX shared libraries.
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050 # We preserve .a as extension for shared libraries through AIX4.2
8051 # and later when we are not doing run time linking.
8052 library_names_spec='${libname}${release}.a $libname.a'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8055 shlibpath_var=LIBPATH
8060 library_names_spec='$libname.ixlibrary $libname.a'
8061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8062 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'
8066 library_names_spec='${libname}${shared_ext}'
8067 dynamic_linker="$host_os ld.so"
8068 shlibpath_var=LIBRARY_PATH
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8080 # the default ld.so.conf also contains /usr/contrib/lib and
8081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8082 # libtool to hard-code these into programs
8085 cygwin* | mingw* | pw32*)
8086 version_type=windows
8091 case $GCC,$host_os in
8092 yes,cygwin* | yes,mingw* | yes,pw32*)
8093 library_names_spec='$libname.dll.a'
8094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8095 postinstall_cmds='base_file=`basename \${file}`~
8096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8097 dldir=$destdir/`dirname \$dlpath`~
8098 test -d \$dldir || mkdir -p \$dldir~
8099 $install_prog $dir/$dlname \$dldir/$dlname'
8100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8101 dlpath=$dir/\$dldll~
8103 shlibpath_overrides_runpath=yes
8107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8109 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8112 # MinGW DLLs use traditional 'lib' prefix
8113 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8114 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8115 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8116 # It is most probably a Windows format PATH printed by
8117 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8118 # path with ; separators, and with drive letters. We can handle the
8119 # drive letters (cygwin fileutils understands them), so leave them,
8120 # especially as we might pass files found there to a mingw objdump,
8121 # which wouldn't understand a cygwinified path. Ahh.
8122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8128 # pw32 DLLs use 'pw' prefix rather than 'lib'
8129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8135 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8138 dynamic_linker='Win32 ld.exe'
8139 # FIXME: first we should search . and the directory the executable is in
8143 darwin* | rhapsody*)
8144 dynamic_linker="$host_os dyld"
8148 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8149 soname_spec='${libname}${release}${major}$shared_ext'
8150 shlibpath_overrides_runpath=yes
8151 shlibpath_var=DYLD_LIBRARY_PATH
8152 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8153 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8154 if test "$GCC" = yes; then
8155 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8157 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8167 soname_spec='${libname}${release}${shared_ext}$major'
8168 shlibpath_var=LD_LIBRARY_PATH
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8180 soname_spec='${libname}${release}${shared_ext}$major'
8181 shlibpath_var=LD_LIBRARY_PATH
8182 shlibpath_overrides_runpath=no
8183 hardcode_into_libs=yes
8184 dynamic_linker='GNU ld.so'
8188 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8189 version_type=freebsd-$objformat
8190 case $version_type in
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8201 shlibpath_var=LD_LIBRARY_PATH
8204 shlibpath_overrides_runpath=yes
8206 freebsd3.01* | freebsdelf3.01*)
8207 shlibpath_overrides_runpath=yes
8208 hardcode_into_libs=yes
8211 shlibpath_overrides_runpath=no
8212 hardcode_into_libs=yes
8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8222 soname_spec='${libname}${release}${shared_ext}$major'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 hardcode_into_libs=yes
8227 hpux9* | hpux10* | hpux11*)
8228 # Give a soname corresponding to the major version so that dld.sl refuses to
8229 # link against other versions.
8236 hardcode_into_libs=yes
8237 dynamic_linker="$host_os dld.so"
8238 shlibpath_var=LD_LIBRARY_PATH
8239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241 soname_spec='${libname}${release}${shared_ext}$major'
8242 if test "X$HPUX_IA64_MODE" = X32; then
8243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8251 hardcode_into_libs=yes
8252 dynamic_linker="$host_os dld.sl"
8253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256 soname_spec='${libname}${release}${shared_ext}$major'
8257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8262 dynamic_linker="$host_os dld.sl"
8263 shlibpath_var=SHLIB_PATH
8264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266 soname_spec='${libname}${release}${shared_ext}$major'
8269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8270 postinstall_cmds='chmod 555 $lib'
8273 irix5* | irix6* | nonstopux*)
8275 nonstopux*) version_type=nonstopux ;;
8277 if test "$lt_cv_prog_gnu_ld" = yes; then
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8288 irix5* | nonstopux*)
8292 case $LD in # libtool.m4 will add one of these switches to LD
8293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8294 libsuff= shlibsuff= libmagic=32-bit;;
8295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8296 libsuff=32 shlibsuff=N32 libmagic=N32;;
8297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8299 *) libsuff= shlibsuff= libmagic=never-match;;
8303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8304 shlibpath_overrides_runpath=no
8305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8307 hardcode_into_libs=yes
8310 # No shared lib support for Linux oldld, aout, or coff.
8311 linux*oldld* | linux*aout* | linux*coff*)
8315 # This must be Linux ELF.
8320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321 soname_spec='${libname}${release}${shared_ext}$major'
8322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8323 shlibpath_var=LD_LIBRARY_PATH
8324 shlibpath_overrides_runpath=no
8325 # This implies no fast_install, which is unacceptable.
8326 # Some rework will be needed to allow for fast_install
8327 # before this can be enabled.
8328 hardcode_into_libs=yes
8330 # find out which ABI we are using
8333 x86_64*|s390x*|powerpc64*)
8334 echo '#line 8334 "configure"' > conftest.$ac_ext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; then
8340 case `/usr/bin/file conftest.$ac_objext` in
8343 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8351 # Append ld.so.conf contents to the search path
8352 if test -f /etc/ld.so.conf; then
8353 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8354 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8357 # We used to test for /lib/ld.so.1 and disable shared libraries on
8358 # powerpc, because MkLinux only supported shared libraries with the
8359 # GNU dynamic linker. Since this was broken with cross compilers,
8360 # most powerpc-linux boxes support dynamic linking these days and
8361 # people can always --disable-shared, the test was removed, and we
8362 # assume the GNU/Linux dynamic linker is in use.
8363 dynamic_linker='GNU/Linux ld.so'
8370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8371 soname_spec='${libname}${release}${shared_ext}$major'
8372 shlibpath_var=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath=no
8374 hardcode_into_libs=yes
8375 dynamic_linker='GNU ld.so'
8382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8385 dynamic_linker='NetBSD (a.out) ld.so'
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 dynamic_linker='NetBSD ld.elf_so'
8391 shlibpath_var=LD_LIBRARY_PATH
8392 shlibpath_overrides_runpath=yes
8393 hardcode_into_libs=yes
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 shlibpath_var=LD_LIBRARY_PATH
8400 shlibpath_overrides_runpath=yes
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8408 soname_spec='${libname}${release}${shared_ext}$major'
8409 shlibpath_var=LD_LIBRARY_PATH
8410 shlibpath_overrides_runpath=yes
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8422 openbsd2.[89] | openbsd2.[89].*)
8423 shlibpath_overrides_runpath=no
8426 shlibpath_overrides_runpath=yes
8430 shlibpath_overrides_runpath=yes
8435 libname_spec='$name'
8438 library_names_spec='$libname${shared_ext} $libname.a'
8439 dynamic_linker='OS/2 ld.exe'
8440 shlibpath_var=LIBPATH
8443 osf3* | osf4* | osf5*)
8447 soname_spec='${libname}${release}${shared_ext}$major'
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8449 shlibpath_var=LD_LIBRARY_PATH
8450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8458 shlibpath_var=LD_LIBRARY_PATH
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=yes
8469 hardcode_into_libs=yes
8470 # ldd complains unless libraries are executable
8471 postinstall_cmds='chmod +x $lib'
8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8478 shlibpath_var=LD_LIBRARY_PATH
8479 shlibpath_overrides_runpath=yes
8480 if test "$with_gnu_ld" = yes; then
8486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8489 soname_spec='${libname}${release}${shared_ext}$major'
8490 shlibpath_var=LD_LIBRARY_PATH
8491 case $host_vendor in
8493 shlibpath_overrides_runpath=no
8495 export_dynamic_flag_spec='${wl}-Blargedynsym'
8496 runpath_var=LD_RUN_PATH
8504 shlibpath_overrides_runpath=no
8505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8511 if test -d /usr/nec ;then
8513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8514 soname_spec='$libname${shared_ext}.$major'
8515 shlibpath_var=LD_LIBRARY_PATH
8521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 shlibpath_var=LD_LIBRARY_PATH
8530 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8531 echo "${ECHO_T}$dynamic_linker" >&6; }
8532 test "$dynamic_linker" = no && can_build_shared=no
8534 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8537 if test -n "$hardcode_libdir_flag_spec" || \
8538 test -n "$runpath_var " || \
8539 test "X$hardcode_automatic"="Xyes" ; then
8541 # We can hardcode non-existant directories.
8542 if test "$hardcode_direct" != no &&
8543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8544 # have to relink, otherwise we might link with an installed library
8545 # when we should be linking with a yet-to-be-installed one
8546 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8547 test "$hardcode_minus_L" != no; then
8548 # Linking always hardcodes the temporary library directory.
8549 hardcode_action=relink
8551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8552 hardcode_action=immediate
8555 # We cannot hardcode anything, or else we can only hardcode existing
8557 hardcode_action=unsupported
8559 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8560 echo "${ECHO_T}$hardcode_action" >&6; }
8562 if test "$hardcode_action" = relink; then
8563 # Fast installation is not supported
8564 enable_fast_install=no
8565 elif test "$shlibpath_overrides_runpath" = yes ||
8566 test "$enable_shared" = no; then
8567 # Fast installation is not necessary
8568 enable_fast_install=needless
8573 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8574 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8575 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8576 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8577 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8578 { echo "$as_me:$LINENO: result: yes" >&5
8579 echo "${ECHO_T}yes" >&6; }
8581 # FIXME - insert some real tests, host_os isn't really good enough
8584 if test -n "$STRIP" ; then
8585 striplib="$STRIP -x"
8586 { echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6; }
8589 { echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6; }
8594 { echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6; }
8600 if test "x$enable_dlopen" != xyes; then
8601 enable_dlopen=unknown
8602 enable_dlopen_self=unknown
8603 enable_dlopen_self_static=unknown
8610 lt_cv_dlopen="load_add_on"
8612 lt_cv_dlopen_self=yes
8616 lt_cv_dlopen="LoadLibrary"
8621 lt_cv_dlopen="dlopen"
8626 # if libdl is installed we need to link against it
8627 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 ac_check_lib_save_LIBS=$LIBS
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8641 /* Override any GCC internal prototype to avoid an error.
8642 Use char because int might match the return type of a GCC
8643 builtin and then its argument prototype would still apply. */
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (ac_try="$ac_link"
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_link") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest$ac_exeext &&
8673 $as_test_x conftest$ac_exeext; then
8674 ac_cv_lib_dl_dlopen=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_cv_lib_dl_dlopen=no
8682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8683 conftest$ac_exeext conftest.$ac_ext
8684 LIBS=$ac_check_lib_save_LIBS
8686 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8687 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8688 if test $ac_cv_lib_dl_dlopen = yes; then
8689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8694 lt_cv_dlopen_self=yes
8701 { echo "$as_me:$LINENO: checking for shl_load" >&5
8702 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8703 if test "${ac_cv_func_shl_load+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define shl_load innocuous_shl_load
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char shl_load (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8729 /* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8736 /* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739 #if defined __stub_shl_load || defined __stub___shl_load
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext &&
8768 $as_test_x conftest$ac_exeext; then
8769 ac_cv_func_shl_load=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_func_shl_load=no
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778 conftest$ac_exeext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8782 if test $ac_cv_func_shl_load = yes; then
8783 lt_cv_dlopen="shl_load"
8785 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8786 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8787 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_check_lib_save_LIBS=$LIBS
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (ac_try="$ac_link"
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_link") 2>conftest.er1
8823 grep -v '^ *+' conftest.er1 >conftest.err
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest$ac_exeext &&
8831 $as_test_x conftest$ac_exeext; then
8832 ac_cv_lib_dld_shl_load=yes
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 ac_cv_lib_dld_shl_load=no
8840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8845 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8846 if test $ac_cv_lib_dld_shl_load = yes; then
8847 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8849 { echo "$as_me:$LINENO: checking for dlopen" >&5
8850 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8851 if test "${ac_cv_func_dlopen+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 cat >conftest.$ac_ext <<_ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8862 #define dlopen innocuous_dlopen
8864 /* System header to define __stub macros and hopefully few prototypes,
8865 which can conflict with char dlopen (); below.
8866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8867 <limits.h> exists even on freestanding compilers. */
8870 # include <limits.h>
8872 # include <assert.h>
8877 /* Override any GCC internal prototype to avoid an error.
8878 Use char because int might match the return type of a GCC
8879 builtin and then its argument prototype would still apply. */
8884 /* The GNU C library defines this for functions which it implements
8885 to always fail with ENOSYS. Some functions are actually named
8886 something starting with __ and the normal name is an alias. */
8887 #if defined __stub_dlopen || defined __stub___dlopen
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (ac_try="$ac_link"
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_link") 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest$ac_exeext &&
8916 $as_test_x conftest$ac_exeext; then
8917 ac_cv_func_dlopen=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_func_dlopen=no
8925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926 conftest$ac_exeext conftest.$ac_ext
8928 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8929 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8930 if test $ac_cv_func_dlopen = yes; then
8931 lt_cv_dlopen="dlopen"
8933 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 ac_check_lib_save_LIBS=$LIBS
8940 cat >conftest.$ac_ext <<_ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8947 /* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_link") 2>conftest.er1
8971 grep -v '^ *+' conftest.er1 >conftest.err
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest$ac_exeext &&
8979 $as_test_x conftest$ac_exeext; then
8980 ac_cv_lib_dl_dlopen=yes
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ac_cv_lib_dl_dlopen=no
8988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8989 conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8993 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8994 if test $ac_cv_lib_dl_dlopen = yes; then
8995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8997 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8998 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8999 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 ac_check_lib_save_LIBS=$LIBS
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9011 /* Override any GCC internal prototype to avoid an error.
9012 Use char because int might match the return type of a GCC
9013 builtin and then its argument prototype would still apply. */
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (ac_try="$ac_link"
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_link") 2>conftest.er1
9035 grep -v '^ *+' conftest.er1 >conftest.err
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest$ac_exeext &&
9043 $as_test_x conftest$ac_exeext; then
9044 ac_cv_lib_svld_dlopen=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_cv_lib_svld_dlopen=no
9052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9053 conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9056 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9058 if test $ac_cv_lib_svld_dlopen = yes; then
9059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 ac_check_lib_save_LIBS=$LIBS
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_link") 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext &&
9107 $as_test_x conftest$ac_exeext; then
9108 ac_cv_lib_dld_dld_link=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_cv_lib_dld_dld_link=no
9116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9121 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9122 if test $ac_cv_lib_dld_dld_link = yes; then
9123 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9144 if test "x$lt_cv_dlopen" != xno; then
9150 case $lt_cv_dlopen in
9152 save_CPPFLAGS="$CPPFLAGS"
9153 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9155 save_LDFLAGS="$LDFLAGS"
9156 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9159 LIBS="$lt_cv_dlopen_libs $LIBS"
9161 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9162 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9163 if test "${lt_cv_dlopen_self+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 if test "$cross_compiling" = yes; then :
9167 lt_cv_dlopen_self=cross
9169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9170 lt_status=$lt_dlunknown
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9172 "configure"
9173 #include "confdefs.h"
9182 # define LT_DLGLOBAL RTLD_GLOBAL
9185 # define LT_DLGLOBAL DL_GLOBAL
9187 # define LT_DLGLOBAL 0
9191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9192 find out it does not work in some platform. */
9193 #ifndef LT_DLLAZY_OR_NOW
9195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9198 # define LT_DLLAZY_OR_NOW DL_LAZY
9201 # define LT_DLLAZY_OR_NOW RTLD_NOW
9204 # define LT_DLLAZY_OR_NOW DL_NOW
9206 # define LT_DLLAZY_OR_NOW 0
9214 extern "C" void exit (int);
9217 void fnord() { int i=42;}
9220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9221 int status = $lt_dlunknown;
9225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9227 /* dlclose (self); */
9233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9238 (./conftest; exit; ) 2>/dev/null
9241 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9242 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9243 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9246 # compilation failed
9247 lt_cv_dlopen_self=no
9254 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9255 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9257 if test "x$lt_cv_dlopen_self" = xyes; then
9258 LDFLAGS="$LDFLAGS $link_static_flag"
9259 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9260 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9261 if test "${lt_cv_dlopen_self_static+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 if test "$cross_compiling" = yes; then :
9265 lt_cv_dlopen_self_static=cross
9267 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9268 lt_status=$lt_dlunknown
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9270 "configure"
9271 #include "confdefs.h"
9280 # define LT_DLGLOBAL RTLD_GLOBAL
9283 # define LT_DLGLOBAL DL_GLOBAL
9285 # define LT_DLGLOBAL 0
9289 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9290 find out it does not work in some platform. */
9291 #ifndef LT_DLLAZY_OR_NOW
9293 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9296 # define LT_DLLAZY_OR_NOW DL_LAZY
9299 # define LT_DLLAZY_OR_NOW RTLD_NOW
9302 # define LT_DLLAZY_OR_NOW DL_NOW
9304 # define LT_DLLAZY_OR_NOW 0
9312 extern "C" void exit (int);
9315 void fnord() { int i=42;}
9318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9319 int status = $lt_dlunknown;
9323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9324 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9325 /* dlclose (self); */
9331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332 (eval $ac_link) 2>&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9336 (./conftest; exit; ) 2>/dev/null
9339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9341 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9344 # compilation failed
9345 lt_cv_dlopen_self_static=no
9352 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9353 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9356 CPPFLAGS="$save_CPPFLAGS"
9357 LDFLAGS="$save_LDFLAGS"
9362 case $lt_cv_dlopen_self in
9363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9364 *) enable_dlopen_self=unknown ;;
9367 case $lt_cv_dlopen_self_static in
9368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9369 *) enable_dlopen_self_static=unknown ;;
9374 # Report which librarie types wil actually be built
9375 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9376 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9377 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9378 echo "${ECHO_T}$can_build_shared" >&6; }
9380 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9381 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9382 test "$can_build_shared" = "no" && enable_shared=no
9384 # On AIX, shared libraries and static libraries use the same namespace, and
9385 # are all built from PIC.
9388 test "$enable_shared" = yes && enable_static=no
9389 if test -n "$RANLIB"; then
9390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9391 postinstall_cmds='$RANLIB $lib'
9396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9397 test "$enable_shared" = yes && enable_static=no
9400 darwin* | rhapsody*)
9401 if test "$GCC" = yes; then
9402 archive_cmds_need_lc=no
9404 rhapsody* | darwin1.[012])
9405 allow_undefined_flag='-undefined suppress'
9408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9409 allow_undefined_flag='-flat_namespace -undefined suppress'
9411 case ${MACOSX_DEPLOYMENT_TARGET} in
9413 allow_undefined_flag='-flat_namespace -undefined suppress'
9416 allow_undefined_flag='-undefined dynamic_lookup'
9422 output_verbose_link_cmd='echo'
9423 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9424 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9426 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}'
9427 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}'
9429 hardcode_automatic=yes
9430 hardcode_shlibpath_var=unsupported
9431 whole_archive_flag_spec='-all_load $convenience'
9432 link_all_deplibs=yes
9438 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9439 echo "${ECHO_T}$enable_shared" >&6; }
9441 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9442 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9443 # Make sure either enable_shared or enable_static is yes.
9444 test "$enable_shared" = yes || enable_static=yes
9445 { echo "$as_me:$LINENO: result: $enable_static" >&5
9446 echo "${ECHO_T}$enable_static" >&6; }
9448 # The else clause should only fire when bootstrapping the
9449 # libtool distribution, otherwise you forgot to ship ltmain.sh
9450 # with your package, and you will get complaints that there are
9451 # no rules to generate ltmain.sh.
9452 if test -f "$ltmain"; then
9453 # See if we are running on zsh, and set the options which allow our commands through
9454 # without removal of \ escapes.
9455 if test -n "${ZSH_VERSION+set}" ; then
9456 setopt NO_GLOB_SUBST
9458 # Now quote all the things that may contain metacharacters while being
9459 # careful not to overquote the AC_SUBSTed values. We take copies of the
9460 # variables and quote the copies for generation of the libtool script.
9461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9465 deplibs_check_method reload_flag reload_cmds need_locks \
9466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9467 lt_cv_sys_global_symbol_to_c_name_address \
9468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9469 old_postinstall_cmds old_postuninstall_cmds \
9473 lt_prog_compiler_wl \
9474 lt_prog_compiler_pic \
9475 lt_prog_compiler_static \
9476 lt_prog_compiler_no_builtin_flag \
9477 export_dynamic_flag_spec \
9478 thread_safe_flag_spec \
9479 whole_archive_flag_spec \
9480 enable_shared_with_static_runtimes \
9482 old_archive_from_new_cmds \
9487 compiler_lib_search_path \
9489 archive_expsym_cmds \
9491 postuninstall_cmds \
9492 old_archive_from_expsyms_cmds \
9493 allow_undefined_flag \
9495 export_symbols_cmds \
9496 hardcode_libdir_flag_spec \
9497 hardcode_libdir_flag_spec_ld \
9498 hardcode_libdir_separator \
9499 hardcode_automatic \
9501 module_expsym_cmds \
9502 lt_cv_prog_compiler_c_o \
9507 old_archive_cmds | \
9508 old_archive_from_new_cmds | \
9510 archive_expsym_cmds | \
9512 module_expsym_cmds | \
9513 old_archive_from_expsyms_cmds | \
9514 export_symbols_cmds | \
9515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9516 postinstall_cmds | postuninstall_cmds | \
9517 old_postinstall_cmds | old_postuninstall_cmds | \
9518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9519 # Double-quote double-evaled strings.
9520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9529 *'\$0 --fallback-echo"')
9530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9535 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9537 { echo "$as_me:$LINENO: creating $ofile" >&5
9538 echo "$as_me: creating $ofile" >&6;}
9540 cat <<__EOF__ >> "$cfgfile"
9543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9548 # Free Software Foundation, Inc.
9550 # This file is part of GNU Libtool:
9551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9553 # This program is free software; you can redistribute it and/or modify
9554 # it under the terms of the GNU General Public License as published by
9555 # the Free Software Foundation; either version 2 of the License, or
9556 # (at your option) any later version.
9558 # This program is distributed in the hope that it will be useful, but
9559 # WITHOUT ANY WARRANTY; without even the implied warranty of
9560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9561 # General Public License for more details.
9563 # You should have received a copy of the GNU General Public License
9564 # along with this program; if not, write to the Free Software
9565 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9567 # As a special exception to the GNU General Public License, if you
9568 # distribute this file as part of a program that contains a
9569 # configuration script generated by Autoconf, you may include it under
9570 # the same distribution terms that you use for the rest of that program.
9572 # A sed program that does not truncate output.
9575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9576 Xsed="$SED -e s/^X//"
9578 # The HP-UX ksh and POSIX shell print the target directory to stdout
9580 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9582 # The names of the tagged configurations supported by this script.
9585 # ### BEGIN LIBTOOL CONFIG
9587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9589 # Shell to use when invoking shell scripts.
9592 # Whether or not to build shared libraries.
9593 build_libtool_libs=$enable_shared
9595 # Whether or not to build static libraries.
9596 build_old_libs=$enable_static
9598 # Whether or not to add -lc for building shared libraries.
9599 build_libtool_need_lc=$archive_cmds_need_lc
9601 # Whether or not to disallow shared libs when runtime libs are static
9602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9604 # Whether or not to optimize for fast installation.
9605 fast_install=$enable_fast_install
9608 host_alias=$host_alias
9611 # An echo program that does not interpret backslashes.
9616 AR_FLAGS=$lt_AR_FLAGS
9621 # A language-specific compiler.
9624 # Is the compiler the GNU C compiler?
9630 # The linker used to build libraries.
9633 # Whether we need hard or soft links.
9636 # A BSD-compatible nm program.
9639 # A symbol stripping program
9642 # Used to examine libraries when file_magic_cmd begins "file"
9643 MAGIC_CMD=$MAGIC_CMD
9645 # Used on cygwin: DLL creation program.
9648 # Used on cygwin: object dumper.
9651 # Used on cygwin: assembler.
9654 # The name of the directory that contains temporary libtool files.
9657 # How to create reloadable object files.
9658 reload_flag=$lt_reload_flag
9659 reload_cmds=$lt_reload_cmds
9661 # How to pass a linker flag through the compiler.
9662 wl=$lt_lt_prog_compiler_wl
9664 # Object file suffix (normally "o").
9667 # Old archive suffix (normally "a").
9670 # Shared library suffix (normally ".so").
9671 shrext_cmds='$shrext_cmds'
9673 # Executable file suffix (normally "").
9676 # Additional compiler flags for building library objects.
9677 pic_flag=$lt_lt_prog_compiler_pic
9680 # What is the maximum length of a command?
9681 max_cmd_len=$lt_cv_sys_max_cmd_len
9683 # Does compiler simultaneously support -c and -o options?
9684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9686 # Must we lock files when doing compilation ?
9687 need_locks=$lt_need_locks
9689 # Do we need the lib prefix for modules?
9690 need_lib_prefix=$need_lib_prefix
9692 # Do we need a version for libraries?
9693 need_version=$need_version
9695 # Whether dlopen is supported.
9696 dlopen_support=$enable_dlopen
9698 # Whether dlopen of programs is supported.
9699 dlopen_self=$enable_dlopen_self
9701 # Whether dlopen of statically linked programs is supported.
9702 dlopen_self_static=$enable_dlopen_self_static
9704 # Compiler flag to prevent dynamic linking.
9705 link_static_flag=$lt_lt_prog_compiler_static
9707 # Compiler flag to turn off builtin functions.
9708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9710 # Compiler flag to allow reflexive dlopens.
9711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9713 # Compiler flag to generate shared objects directly from archives.
9714 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9716 # Compiler flag to generate thread-safe objects.
9717 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9719 # Library versioning type.
9720 version_type=$version_type
9722 # Format of library name prefix.
9723 libname_spec=$lt_libname_spec
9725 # List of archive names. First name is the real one, the rest are links.
9726 # The last name is the one that the linker finds with -lNAME.
9727 library_names_spec=$lt_library_names_spec
9729 # The coded name of the library, if different from the real name.
9730 soname_spec=$lt_soname_spec
9732 # Commands used to build and install an old-style archive.
9734 old_archive_cmds=$lt_old_archive_cmds
9735 old_postinstall_cmds=$lt_old_postinstall_cmds
9736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9738 # Create an old-style archive from a shared archive.
9739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9741 # Create a temporary old-style archive to link instead of a shared archive.
9742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9744 # Commands used to build and install a shared archive.
9745 archive_cmds=$lt_archive_cmds
9746 archive_expsym_cmds=$lt_archive_expsym_cmds
9747 postinstall_cmds=$lt_postinstall_cmds
9748 postuninstall_cmds=$lt_postuninstall_cmds
9750 # Commands used to build a loadable module (assumed same as above if empty)
9751 module_cmds=$lt_module_cmds
9752 module_expsym_cmds=$lt_module_expsym_cmds
9754 # Commands to strip libraries.
9755 old_striplib=$lt_old_striplib
9756 striplib=$lt_striplib
9758 # Dependencies to place before the objects being linked to create a
9760 predep_objects=$lt_predep_objects
9762 # Dependencies to place after the objects being linked to create a
9764 postdep_objects=$lt_postdep_objects
9766 # Dependencies to place before the objects being linked to create a
9770 # Dependencies to place after the objects being linked to create a
9772 postdeps=$lt_postdeps
9774 # The library search path used internally by the compiler when linking
9776 compiler_lib_search_path=$lt_compiler_lib_search_path
9778 # Method to check whether dependent libraries are shared objects.
9779 deplibs_check_method=$lt_deplibs_check_method
9781 # Command to use when deplibs_check_method == file_magic.
9782 file_magic_cmd=$lt_file_magic_cmd
9784 # Flag that allows shared libraries with undefined symbols to be built.
9785 allow_undefined_flag=$lt_allow_undefined_flag
9787 # Flag that forces no undefined symbols.
9788 no_undefined_flag=$lt_no_undefined_flag
9790 # Commands used to finish a libtool library installation in a directory.
9791 finish_cmds=$lt_finish_cmds
9793 # Same as above, but a single script fragment to be evaled but not shown.
9794 finish_eval=$lt_finish_eval
9796 # Take the output of nm and produce a listing of raw symbols and C names.
9797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9799 # Transform the output of nm in a proper C declaration
9800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9802 # Transform the output of nm in a C name address pair
9803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9805 # This is the shared library runtime path variable.
9806 runpath_var=$runpath_var
9808 # This is the shared library path variable.
9809 shlibpath_var=$shlibpath_var
9811 # Is shlibpath searched before the hard-coded library search path?
9812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9814 # How to hardcode a shared library path into an executable.
9815 hardcode_action=$hardcode_action
9817 # Whether we should hardcode library paths into libraries.
9818 hardcode_into_libs=$hardcode_into_libs
9820 # Flag to hardcode \$libdir into a binary during linking.
9821 # This must work even if \$libdir does not exist.
9822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9824 # If ld is used when linking, flag to hardcode \$libdir into
9825 # a binary during linking. This must work even if \$libdir does
9827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9829 # Whether we need a single -rpath flag with a separated argument.
9830 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9834 hardcode_direct=$hardcode_direct
9836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9838 hardcode_minus_L=$hardcode_minus_L
9840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9841 # the resulting binary.
9842 hardcode_shlibpath_var=$hardcode_shlibpath_var
9844 # Set to yes if building a shared library automatically hardcodes DIR into the library
9845 # and all subsequent libraries and executables linked against it.
9846 hardcode_automatic=$hardcode_automatic
9848 # Variables whose values should be saved in libtool wrapper scripts and
9849 # restored at relink time.
9850 variables_saved_for_relink="$variables_saved_for_relink"
9852 # Whether libtool must link a program against all its dependency libraries.
9853 link_all_deplibs=$link_all_deplibs
9855 # Compile-time system search path for libraries
9856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9858 # Run-time system search path for libraries
9859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9861 # Fix the shell variable \$srcfile for the compiler.
9862 fix_srcfile_path="$fix_srcfile_path"
9864 # Set to yes if exported symbols are required.
9865 always_export_symbols=$always_export_symbols
9867 # The commands to list exported symbols.
9868 export_symbols_cmds=$lt_export_symbols_cmds
9870 # The commands to extract the exported symbol list from a shared archive.
9871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9873 # Symbols that should not be listed in the preloaded symbols.
9874 exclude_expsyms=$lt_exclude_expsyms
9876 # Symbols that must always be exported.
9877 include_expsyms=$lt_include_expsyms
9879 # ### END LIBTOOL CONFIG
9886 cat <<\EOF >> "$cfgfile"
9888 # AIX sometimes has problems with the GCC collect2 program. For some
9889 # reason, if we set the COLLECT_NAMES environment variable, the problems
9890 # vanish in a puff of smoke.
9891 if test "X${COLLECT_NAMES+set}" != Xset; then
9893 export COLLECT_NAMES
9899 # We use sed instead of cat because bash on DJGPP gets confused if
9900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9901 # text mode, it properly converts lines to CR/LF. This bash problem
9902 # is reportedly fixed, but why not run on old versions too?
9903 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9905 mv -f "$cfgfile" "$ofile" || \
9906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9910 # If there is no Makefile yet, we rely on a make rule to execute
9911 # `config.status --recheck' to rerun these tests and create the
9912 # libtool script then.
9913 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9914 if test -f "$ltmain_in"; then
9915 test -f Makefile && make "$ltmain"
9921 ac_cpp='$CPP $CPPFLAGS'
9922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9929 # Check whether --with-tags was given.
9930 if test "${with_tags+set}" = set; then
9931 withval=$with_tags; tagnames="$withval"
9935 if test -f "$ltmain" && test -n "$tagnames"; then
9936 if test ! -f "${ofile}"; then
9937 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9938 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9941 if test -z "$LTCC"; then
9942 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9943 if test -z "$LTCC"; then
9944 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9945 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9948 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9952 # Extract list of available tagged configurations in $ofile.
9953 # Note that this assumes the entire list is on one line.
9954 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9957 for tagname in $tagnames; do
9959 # Check whether tagname contains only valid characters
9960 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9962 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9963 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9964 { (exit 1); exit 1; }; }
9968 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9970 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9971 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9972 { (exit 1); exit 1; }; }
9975 # Update the list of available tags.
9976 if test -n "$tagname"; then
9977 echo appending configuration tag \"$tagname\" to $ofile
9981 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9983 ac_cpp='$CXXCPP $CPPFLAGS'
9984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9991 archive_cmds_need_lc_CXX=no
9992 allow_undefined_flag_CXX=
9993 always_export_symbols_CXX=no
9994 archive_expsym_cmds_CXX=
9995 export_dynamic_flag_spec_CXX=
9996 hardcode_direct_CXX=no
9997 hardcode_libdir_flag_spec_CXX=
9998 hardcode_libdir_flag_spec_ld_CXX=
9999 hardcode_libdir_separator_CXX=
10000 hardcode_minus_L_CXX=no
10001 hardcode_automatic_CXX=no
10003 module_expsym_cmds_CXX=
10004 link_all_deplibs_CXX=unknown
10005 old_archive_cmds_CXX=$old_archive_cmds
10006 no_undefined_flag_CXX=
10007 whole_archive_flag_spec_CXX=
10008 enable_shared_with_static_runtimes_CXX=no
10010 # Dependencies to place before and after the object being linked:
10011 predep_objects_CXX=
10012 postdep_objects_CXX=
10015 compiler_lib_search_path_CXX=
10017 # Source file extension for C++ test sources.
10020 # Object file extension for compiled C++ test sources.
10024 # Code to be used in simple compile tests
10025 lt_simple_compile_test_code="int some_variable = 0;\n"
10027 # Code to be used in simple link tests
10028 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10030 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10032 # If no C compiler was specified, use CC.
10035 # Allow CC to be a program name with arguments.
10039 # Allow CC to be a program name with arguments.
10044 lt_save_with_gnu_ld=$with_gnu_ld
10045 lt_save_path_LD=$lt_cv_path_LD
10046 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10047 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10049 unset lt_cv_prog_gnu_ld
10051 if test -n "${lt_cv_path_LDCXX+set}"; then
10052 lt_cv_path_LD=$lt_cv_path_LDCXX
10054 unset lt_cv_path_LD
10056 test -z "${LDCXX+set}" || LD=$LDCXX
10060 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10062 # We don't want -fno-exception wen compiling C++ code, so set the
10063 # no_builtin_flag separately
10064 if test "$GXX" = yes; then
10065 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10067 lt_prog_compiler_no_builtin_flag_CXX=
10070 if test "$GXX" = yes; then
10071 # Set up default GNU C++ configuration
10074 # Check whether --with-gnu-ld was given.
10075 if test "${with_gnu_ld+set}" = set; then
10076 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10082 if test "$GCC" = yes; then
10083 # Check if gcc -print-prog-name=ld gives a path.
10084 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10085 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10088 # gcc leaves a trailing carriage return which upsets mingw
10089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10094 # Accept absolute paths.
10096 re_direlt='/[^/][^/]*/\.\./'
10097 # Canonicalize the pathname of ld
10098 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10099 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10100 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10102 test -z "$LD" && LD="$ac_prog"
10105 # If it fails, then pretend we aren't using GCC.
10109 # If it is relative, then search for the first ld in PATH.
10110 with_gnu_ld=unknown
10113 elif test "$with_gnu_ld" = yes; then
10114 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10115 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10117 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10118 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10120 if test "${lt_cv_path_LD+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 if test -z "$LD"; then
10124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10125 for ac_dir in $PATH; do
10127 test -z "$ac_dir" && ac_dir=.
10128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10129 lt_cv_path_LD="$ac_dir/$ac_prog"
10130 # Check to see if the program is GNU ld. I'd rather use --version,
10131 # but apparently some GNU ld's only accept -v.
10132 # Break only if it was the GNU/non-GNU ld that we prefer.
10133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10134 *GNU* | *'with BFD'*)
10135 test "$with_gnu_ld" != no && break
10138 test "$with_gnu_ld" != yes && break
10145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10149 LD="$lt_cv_path_LD"
10150 if test -n "$LD"; then
10151 { echo "$as_me:$LINENO: result: $LD" >&5
10152 echo "${ECHO_T}$LD" >&6; }
10154 { echo "$as_me:$LINENO: result: no" >&5
10155 echo "${ECHO_T}no" >&6; }
10157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10159 { (exit 1); exit 1; }; }
10160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10162 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10166 case `$LD -v 2>&1 </dev/null` in
10167 *GNU* | *'with BFD'*)
10168 lt_cv_prog_gnu_ld=yes
10171 lt_cv_prog_gnu_ld=no
10175 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10176 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10177 with_gnu_ld=$lt_cv_prog_gnu_ld
10181 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10182 # archiving commands below assume that GNU ld is being used.
10183 if test "$with_gnu_ld" = yes; then
10184 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10185 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'
10187 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10188 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10190 # If archive_cmds runs LD, not CC, wlarc should be empty
10191 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10192 # investigate it a little bit more. (MM)
10195 # ancient GNU ld didn't support --whole-archive et. al.
10196 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10197 grep 'no-whole-archive' > /dev/null; then
10198 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10200 whole_archive_flag_spec_CXX=
10206 # A generic and very simple default shared library creation
10207 # command for GNU C++ for the case where it uses the native
10208 # linker, instead of GNU ld. If possible, this setting should
10209 # overridden to take advantage of the native linker features on
10210 # the platform it is being used on.
10211 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10214 # Commands to make compiler produce verbose output that lists
10215 # what "hidden" libraries, object files and flags are used when
10216 # linking a shared library.
10217 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10225 # PORTME: fill in a description of your system's C++ link characteristics
10226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10231 # FIXME: insert proper C++ library support
10235 if test "$host_cpu" = ia64; then
10236 # On IA64, the linker does run time linking by default, so we don't
10237 # have to do anything special.
10238 aix_use_runtimelinking=no
10239 exp_sym_flag='-Bexport'
10242 aix_use_runtimelinking=no
10244 # Test if we are trying to use run time linking or normal
10245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10246 # need to do runtime linking.
10247 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10248 for ld_flag in $LDFLAGS; do
10251 aix_use_runtimelinking=yes
10258 exp_sym_flag='-bexport'
10259 no_entry_flag='-bnoentry'
10262 # When large executables or shared objects are built, AIX ld can
10263 # have problems creating the table of contents. If linking a library
10264 # or program results in "error TOC overflow" add -mminimal-toc to
10265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10268 archive_cmds_CXX=''
10269 hardcode_direct_CXX=yes
10270 hardcode_libdir_separator_CXX=':'
10271 link_all_deplibs_CXX=yes
10273 if test "$GXX" = yes; then
10274 case $host_os in aix4.012|aix4.012.*)
10275 # We only want to do this on AIX 4.2 and lower, the check
10276 # below for broken collect2 doesn't work under 4.3+
10277 collect2name=`${CC} -print-prog-name=collect2`
10278 if test -f "$collect2name" && \
10279 strings "$collect2name" | grep resolve_lib_name >/dev/null
10281 # We have reworked collect2
10282 hardcode_direct_CXX=yes
10284 # We have old collect2
10285 hardcode_direct_CXX=unsupported
10286 # It fails to find uninstalled libraries when the uninstalled
10287 # path is not listed in the libpath. Setting hardcode_minus_L
10288 # to unsupported forces relinking
10289 hardcode_minus_L_CXX=yes
10290 hardcode_libdir_flag_spec_CXX='-L$libdir'
10291 hardcode_libdir_separator_CXX=
10294 shared_flag='-shared'
10297 if test "$host_cpu" = ia64; then
10298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10299 # chokes on -Wl,-G. The following line is correct:
10302 if test "$aix_use_runtimelinking" = yes; then
10303 shared_flag='${wl}-G'
10305 shared_flag='${wl}-bM:SRE'
10310 # It seems that -bexpall does not export symbols beginning with
10311 # underscore (_), so it is better to generate a list of symbols to export.
10312 always_export_symbols_CXX=yes
10313 if test "$aix_use_runtimelinking" = yes; then
10314 # Warning - without using the other runtime loading flags (-brtl),
10315 # -berok will link without error, but may produce a broken library.
10316 allow_undefined_flag_CXX='-berok'
10317 # Determine the default libpath from the value encoded in an empty executable.
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (ac_try="$ac_link"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_link") 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_cxx_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest$ac_exeext &&
10350 $as_test_x conftest$ac_exeext; then
10352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10354 # Check for a 64-bit object if we didn't find anything.
10355 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10365 conftest$ac_exeext conftest.$ac_ext
10366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10368 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10370 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10372 if test "$host_cpu" = ia64; then
10373 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10374 allow_undefined_flag_CXX="-z nodefs"
10375 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10377 # Determine the default libpath from the value encoded in an empty executable.
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_cxx_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
10412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10414 # Check for a 64-bit object if we didn't find anything.
10415 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10425 conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429 # Warning - without using the other run time loading flags,
10430 # -berok will link without error, but may produce a broken library.
10431 no_undefined_flag_CXX=' ${wl}-bernotok'
10432 allow_undefined_flag_CXX=' ${wl}-berok'
10433 # -bexpall does not export symbols beginning with underscore (_)
10434 always_export_symbols_CXX=yes
10435 # Exported symbols can be pulled into shared objects from archives
10436 whole_archive_flag_spec_CXX=' '
10437 archive_cmds_need_lc_CXX=yes
10438 # This is similar to how AIX traditionally builds it's shared libraries.
10439 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10444 case $cc_basename in
10446 # FIXME: insert proper C++ library support
10452 cygwin* | mingw* | pw32*)
10453 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10454 # as there is no search path for DLLs.
10455 hardcode_libdir_flag_spec_CXX='-L$libdir'
10456 allow_undefined_flag_CXX=unsupported
10457 always_export_symbols_CXX=no
10458 enable_shared_with_static_runtimes_CXX=yes
10460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10462 # If the export-symbols file already is a .def file (1st line
10463 # is EXPORTS), use it as is; otherwise, prepend...
10464 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10465 cp $export_symbols $output_objdir/$soname.def;
10467 echo EXPORTS > $output_objdir/$soname.def;
10468 cat $export_symbols >> $output_objdir/$soname.def;
10470 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10476 darwin* | rhapsody*)
10477 if test "$GXX" = yes; then
10478 archive_cmds_need_lc_CXX=no
10480 rhapsody* | darwin1.[012])
10481 allow_undefined_flag_CXX='-undefined suppress'
10484 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10485 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10487 case ${MACOSX_DEPLOYMENT_TARGET} in
10489 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10492 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10498 lt_int_apple_cc_single_mod=no
10499 output_verbose_link_cmd='echo'
10500 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10501 lt_int_apple_cc_single_mod=yes
10503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10504 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10506 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10508 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10512 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}'
10514 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10516 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}'
10517 hardcode_direct_CXX=no
10518 hardcode_automatic_CXX=yes
10519 hardcode_shlibpath_var_CXX=unsupported
10520 whole_archive_flag_spec_CXX='-all_load $convenience'
10521 link_all_deplibs_CXX=yes
10528 case $cc_basename in
10530 # FIXME: insert proper C++ library support
10534 # Green Hills C++ Compiler
10535 # FIXME: insert proper C++ library support
10539 # FIXME: insert proper C++ library support
10545 # C++ shared libraries reported to be fairly broken before switch to ELF
10549 archive_cmds_need_lc_CXX=no
10551 freebsd* | kfreebsd*-gnu)
10552 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10560 hardcode_libdir_separator_CXX=:
10561 export_dynamic_flag_spec_CXX='${wl}-E'
10562 hardcode_direct_CXX=yes
10563 hardcode_minus_L_CXX=yes # Not in the search PATH,
10564 # but as the default
10565 # location of the library.
10567 case $cc_basename in
10569 # FIXME: insert proper C++ library support
10573 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'
10574 # Commands to make compiler produce verbose output that lists
10575 # what "hidden" libraries, object files and flags are used when
10576 # linking a shared library.
10578 # There doesn't appear to be a way to prevent this compiler from
10579 # explicitly linking system object files so we need to strip them
10580 # from the output so that they don't get included in the library
10582 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'
10585 if test "$GXX" = yes; then
10586 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'
10588 # FIXME: insert proper C++ library support
10595 if test $with_gnu_ld = no; then
10596 case "$host_cpu" in
10598 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10599 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10600 hardcode_libdir_separator_CXX=:
10603 hardcode_libdir_flag_spec_CXX='-L$libdir'
10606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10607 hardcode_libdir_separator_CXX=:
10608 export_dynamic_flag_spec_CXX='${wl}-E'
10612 case "$host_cpu" in
10614 hardcode_direct_CXX=no
10615 hardcode_shlibpath_var_CXX=no
10618 hardcode_direct_CXX=no
10619 hardcode_shlibpath_var_CXX=no
10620 hardcode_minus_L_CXX=yes # Not in the search PATH,
10621 # but as the default
10622 # location of the library.
10625 hardcode_direct_CXX=yes
10626 hardcode_minus_L_CXX=yes # Not in the search PATH,
10627 # but as the default
10628 # location of the library.
10632 case $cc_basename in
10634 # FIXME: insert proper C++ library support
10638 case "$host_cpu" in
10640 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10646 # Commands to make compiler produce verbose output that lists
10647 # what "hidden" libraries, object files and flags are used when
10648 # linking a shared library.
10650 # There doesn't appear to be a way to prevent this compiler from
10651 # explicitly linking system object files so we need to strip them
10652 # from the output so that they don't get included in the library
10654 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'
10657 if test "$GXX" = yes; then
10658 if test $with_gnu_ld = no; then
10659 case "$host_cpu" in
10661 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10664 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'
10669 # FIXME: insert proper C++ library support
10676 case $cc_basename in
10679 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 ${objdir}/so_locations -o $lib'
10681 # Archives containing C++ object files must be created using
10682 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10683 # necessary to make sure instantiated templates are included
10685 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10688 if test "$GXX" = yes; then
10689 if test "$with_gnu_ld" = no; then
10690 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}${objdir}/so_locations -o $lib'
10692 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'
10695 link_all_deplibs_CXX=yes
10698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10699 hardcode_libdir_separator_CXX=:
10702 case $cc_basename in
10704 # Kuck and Associates, Inc. (KAI) C++ Compiler
10706 # KCC will only create a shared library if the output file
10707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10708 # to its proper name (with version) after linking.
10709 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'
10710 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'
10711 # Commands to make compiler produce verbose output that lists
10712 # what "hidden" libraries, object files and flags are used when
10713 # linking a shared library.
10715 # There doesn't appear to be a way to prevent this compiler from
10716 # explicitly linking system object files so we need to strip them
10717 # from the output so that they don't get included in the library
10719 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'
10721 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10724 # Archives containing C++ object files must be created using
10725 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10726 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10731 archive_cmds_need_lc_CXX=no
10732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733 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'
10734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10736 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10741 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'
10743 runpath_var=LD_RUN_PATH
10744 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10745 hardcode_libdir_separator_CXX=:
10747 # Commands to make compiler produce verbose output that lists
10748 # what "hidden" libraries, object files and flags are used when
10749 # linking a shared library.
10751 # There doesn't appear to be a way to prevent this compiler from
10752 # explicitly linking system object files so we need to strip them
10753 # from the output so that they don't get included in the library
10755 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'
10760 # FIXME: insert proper C++ library support
10764 # FIXME: insert proper C++ library support
10768 case $cc_basename in
10770 # FIXME: insert proper C++ library support
10774 # FIXME: insert proper C++ library support
10780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10781 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10783 hardcode_libdir_flag_spec_CXX='-R$libdir'
10784 hardcode_direct_CXX=yes
10785 hardcode_shlibpath_var_CXX=no
10787 # Workaround some broken pre-1.5 toolchains
10788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10791 case $cc_basename in
10793 # Kuck and Associates, Inc. (KAI) C++ Compiler
10795 # KCC will only create a shared library if the output file
10796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10797 # to its proper name (with version) after linking.
10798 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'
10800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10801 hardcode_libdir_separator_CXX=:
10803 # Archives containing C++ object files must be created using
10804 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10805 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10809 # Rational C++ 2.4.1
10810 # FIXME: insert proper C++ library support
10814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10815 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 ${objdir}/so_locations -o $lib'
10817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10818 hardcode_libdir_separator_CXX=:
10820 # Commands to make compiler produce verbose output that lists
10821 # what "hidden" libraries, object files and flags are used when
10822 # linking a shared library.
10824 # There doesn't appear to be a way to prevent this compiler from
10825 # explicitly linking system object files so we need to strip them
10826 # from the output so that they don't get included in the library
10828 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'
10831 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10833 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}${objdir}/so_locations -o $lib'
10835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10836 hardcode_libdir_separator_CXX=:
10838 # Commands to make compiler produce verbose output that lists
10839 # what "hidden" libraries, object files and flags are used when
10840 # linking a shared library.
10841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10844 # FIXME: insert proper C++ library support
10851 case $cc_basename in
10853 # Kuck and Associates, Inc. (KAI) C++ Compiler
10855 # KCC will only create a shared library if the output file
10856 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10857 # to its proper name (with version) after linking.
10858 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'
10860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10861 hardcode_libdir_separator_CXX=:
10863 # Archives containing C++ object files must be created using
10864 # the KAI C++ compiler.
10865 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10868 # Rational C++ 2.4.1
10869 # FIXME: insert proper C++ library support
10873 allow_undefined_flag_CXX=' -expect_unresolved \*'
10874 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 ${objdir}/so_locations -o $lib'
10875 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10876 echo "-hidden">> $lib.exp~
10877 $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 $objdir/so_locations -o $lib~
10880 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10881 hardcode_libdir_separator_CXX=:
10883 # Commands to make compiler produce verbose output that lists
10884 # what "hidden" libraries, object files and flags are used when
10885 # linking a shared library.
10887 # There doesn't appear to be a way to prevent this compiler from
10888 # explicitly linking system object files so we need to strip them
10889 # from the output so that they don't get included in the library
10891 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'
10894 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10895 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10896 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}${objdir}/so_locations -o $lib'
10898 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10899 hardcode_libdir_separator_CXX=:
10901 # Commands to make compiler produce verbose output that lists
10902 # what "hidden" libraries, object files and flags are used when
10903 # linking a shared library.
10904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10907 # FIXME: insert proper C++ library support
10914 # FIXME: insert proper C++ library support
10918 archive_cmds_need_lc_CXX=no
10919 case $cc_basename in
10921 # FIXME: insert proper C++ library support
10925 # FIXME: insert proper C++ library support
10931 case $cc_basename in
10934 # FIXME: insert proper C++ library support
10939 # FIXME: insert proper C++ library support
10943 # FIXME: insert proper C++ library support
10949 case $cc_basename in
10951 # Sun C++ 4.2, 5.x and Centerline C++
10952 no_undefined_flag_CXX=' -zdefs'
10953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10954 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10955 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10957 hardcode_libdir_flag_spec_CXX='-R$libdir'
10958 hardcode_shlibpath_var_CXX=no
10960 solaris2.0-5 | solaris2.0-5.*) ;;
10962 # The C++ compiler is used as linker so we must use $wl
10963 # flag to pass the commands to the underlying system
10965 # Supported since Solaris 2.6 (maybe 2.5.1?)
10966 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10969 link_all_deplibs_CXX=yes
10971 # Commands to make compiler produce verbose output that lists
10972 # what "hidden" libraries, object files and flags are used when
10973 # linking a shared library.
10975 # There doesn't appear to be a way to prevent this compiler from
10976 # explicitly linking system object files so we need to strip them
10977 # from the output so that they don't get included in the library
10979 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10981 # Archives containing C++ object files must be created using
10982 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10983 # necessary to make sure instantiated templates are included
10985 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10988 # Green Hills C++ Compiler
10989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10991 # The C++ compiler must be used to create the archive.
10992 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10995 # GNU C++ compiler with Solaris linker
10996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10997 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10998 if $CC --version | grep -v '^2\.7' > /dev/null; then
10999 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11000 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11001 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11003 # Commands to make compiler produce verbose output that lists
11004 # what "hidden" libraries, object files and flags are used when
11005 # linking a shared library.
11006 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11008 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11010 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11011 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11012 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11014 # Commands to make compiler produce verbose output that lists
11015 # what "hidden" libraries, object files and flags are used when
11016 # linking a shared library.
11017 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11020 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11025 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11026 archive_cmds_need_lc_CXX=no
11029 case $cc_basename in
11031 # NonStop-UX NCC 3.20
11032 # FIXME: insert proper C++ library support
11036 # FIXME: insert proper C++ library support
11042 # FIXME: insert proper C++ library support
11046 # FIXME: insert proper C++ library support
11050 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11051 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11052 test "$ld_shlibs_CXX" = no && can_build_shared=no
11058 ## There is no encapsulation within the following macros, do not change
11059 ## the running order or otherwise move them around unless you know exactly
11060 ## what you are doing...
11062 cat > conftest.$ac_ext <<EOF
11066 Foo (void) { a = 0; }
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; then
11077 # Parse the compiler output and extract the necessary
11078 # objects, libraries and library flags.
11080 # Sentinel used to keep track of whether or not we are before
11081 # the conftest object file.
11082 pre_test_object_deps_done=no
11084 # The `*' in the case matches for architectures that use `case' in
11085 # $output_verbose_cmd can trigger glob expansion during the loop
11086 # eval without this substitution.
11087 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11089 for p in `eval $output_verbose_link_cmd`; do
11093 # Some compilers place space between "-{L,R}" and the path.
11094 # Remove the space.
11095 if test $p = "-L" \
11096 || test $p = "-R"; then
11103 if test "$pre_test_object_deps_done" = no; then
11106 # Internal compiler library paths should come after those
11107 # provided the user. The postdeps already come after the
11108 # user supplied libs so there is no need to process them.
11109 if test -z "$compiler_lib_search_path_CXX"; then
11110 compiler_lib_search_path_CXX="${prev}${p}"
11112 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11115 # The "-l" case would never come before the object being
11116 # linked, so don't bother handling this case.
11119 if test -z "$postdeps_CXX"; then
11120 postdeps_CXX="${prev}${p}"
11122 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11128 # This assumes that the test object file only shows up
11129 # once in the compiler output.
11130 if test "$p" = "conftest.$objext"; then
11131 pre_test_object_deps_done=yes
11135 if test "$pre_test_object_deps_done" = no; then
11136 if test -z "$predep_objects_CXX"; then
11137 predep_objects_CXX="$p"
11139 predep_objects_CXX="$predep_objects_CXX $p"
11142 if test -z "$postdep_objects_CXX"; then
11143 postdep_objects_CXX="$p"
11145 postdep_objects_CXX="$postdep_objects_CXX $p"
11150 *) ;; # Ignore the rest.
11158 echo "libtool.m4: error: problem compiling CXX test program"
11161 $rm -f confest.$objext
11163 case " $postdeps_CXX " in
11164 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11167 lt_prog_compiler_wl_CXX=
11168 lt_prog_compiler_pic_CXX=
11169 lt_prog_compiler_static_CXX=
11171 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11174 # C++ specific cases for pic, static, wl, etc.
11175 if test "$GXX" = yes; then
11176 lt_prog_compiler_wl_CXX='-Wl,'
11177 lt_prog_compiler_static_CXX='-static'
11181 # All AIX code is PIC.
11182 if test "$host_cpu" = ia64; then
11183 # AIX 5 now supports IA64 processor
11184 lt_prog_compiler_static_CXX='-Bstatic'
11188 # FIXME: we need at least 68020 code to build shared libraries, but
11189 # adding the `-m68020' flag to GCC prevents building anything better,
11191 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11193 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11194 # PIC is the default for these OSes.
11196 mingw* | os2* | pw32*)
11197 # This hack is so that the source file can tell whether it is being
11198 # built for inclusion in a dll (and should export symbols for example).
11199 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11201 darwin* | rhapsody*)
11202 # PIC is the default on this platform
11203 # Common symbols not allowed in MH_DYLIB files
11204 lt_prog_compiler_pic_CXX='-fno-common'
11207 # DJGPP does not support shared libraries at all
11208 lt_prog_compiler_pic_CXX=
11211 if test -d /usr/nec; then
11212 lt_prog_compiler_pic_CXX=-Kconform_pic
11216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11217 # not for PA HP-UX.
11218 case "$host_cpu" in
11222 lt_prog_compiler_pic_CXX='-fPIC'
11227 lt_prog_compiler_pic_CXX='-fPIC'
11233 # All AIX code is PIC.
11234 if test "$host_cpu" = ia64; then
11235 # AIX 5 now supports IA64 processor
11236 lt_prog_compiler_static_CXX='-Bstatic'
11238 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11242 case $cc_basename in
11244 # Green Hills C++ Compiler
11245 # _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"
11250 case $cc_basename in
11252 lt_prog_compiler_pic_CXX='-KPIC'
11255 # Green Hills C++ Compiler
11256 lt_prog_compiler_pic_CXX='-pic'
11262 freebsd* | kfreebsd*-gnu)
11263 # FreeBSD uses GNU C++
11265 hpux9* | hpux10* | hpux11*)
11266 case $cc_basename in
11268 lt_prog_compiler_wl_CXX='-Wl,'
11269 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11270 if test "$host_cpu" != ia64; then
11271 lt_prog_compiler_pic_CXX='+Z'
11275 lt_prog_compiler_wl_CXX='-Wl,'
11276 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11277 case "$host_cpu" in
11282 lt_prog_compiler_pic_CXX='+Z'
11290 irix5* | irix6* | nonstopux*)
11291 case $cc_basename in
11293 lt_prog_compiler_wl_CXX='-Wl,'
11294 lt_prog_compiler_static_CXX='-non_shared'
11295 # CC pic flag -KPIC is the default.
11302 case $cc_basename in
11305 lt_prog_compiler_wl_CXX='--backend -Wl,'
11306 lt_prog_compiler_pic_CXX='-fPIC'
11310 lt_prog_compiler_wl_CXX='-Wl,'
11311 lt_prog_compiler_pic_CXX='-KPIC'
11312 lt_prog_compiler_static_CXX='-static'
11316 # Make sure the PIC flag is empty. It appears that all Alpha
11317 # Linux and Compaq Tru64 Unix objects are PIC.
11318 lt_prog_compiler_pic_CXX=
11319 lt_prog_compiler_static_CXX='-non_shared'
11330 case $cc_basename in
11332 lt_prog_compiler_pic_CXX='-W c,exportall'
11340 osf3* | osf4* | osf5*)
11341 case $cc_basename in
11343 lt_prog_compiler_wl_CXX='--backend -Wl,'
11346 # Rational C++ 2.4.1
11347 lt_prog_compiler_pic_CXX='-pic'
11350 # Digital/Compaq C++
11351 lt_prog_compiler_wl_CXX='-Wl,'
11352 # Make sure the PIC flag is empty. It appears that all Alpha
11353 # Linux and Compaq Tru64 Unix objects are PIC.
11354 lt_prog_compiler_pic_CXX=
11355 lt_prog_compiler_static_CXX='-non_shared'
11364 case $cc_basename in
11366 lt_prog_compiler_pic_CXX='-fPIC'
11373 case $cc_basename in
11375 # Sun C++ 4.2, 5.x and Centerline C++
11376 lt_prog_compiler_pic_CXX='-KPIC'
11377 lt_prog_compiler_static_CXX='-Bstatic'
11378 lt_prog_compiler_wl_CXX='-Qoption ld '
11381 # Green Hills C++ Compiler
11382 lt_prog_compiler_pic_CXX='-PIC'
11389 case $cc_basename in
11392 lt_prog_compiler_pic_CXX='-pic'
11393 lt_prog_compiler_static_CXX='-Bstatic'
11397 lt_prog_compiler_pic_CXX='-pic'
11404 case $cc_basename in
11406 # NonStop-UX NCC 3.20
11407 lt_prog_compiler_pic_CXX='-KPIC'
11418 lt_prog_compiler_can_build_shared_CXX=no
11423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11424 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11427 # Check to make sure the PIC flag actually works.
11429 if test -n "$lt_prog_compiler_pic_CXX"; then
11431 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11432 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11433 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 lt_prog_compiler_pic_works_CXX=no
11437 ac_outfile=conftest.$ac_objext
11438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11439 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11440 # Insert the option either (1) after the last *FLAGS variable, or
11441 # (2) before a word containing "conftest.", or (3) at the end.
11442 # Note that $ac_compile itself does not contain backslashes and begins
11443 # with a dollar sign (not a hyphen), so the echo should work correctly.
11444 # The option is referenced via a variable to avoid confusing sed.
11445 lt_compile=`echo "$ac_compile" | $SED \
11446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11448 -e 's:$: $lt_compiler_flag:'`
11449 (eval echo "\"\$as_me:11449: $lt_compile\"" >&5)
11450 (eval "$lt_compile" 2>conftest.err)
11452 cat conftest.err >&5
11453 echo "$as_me:11453: \$? = $ac_status" >&5
11454 if (exit $ac_status) && test -s "$ac_outfile"; then
11455 # The compiler can only warn and ignore the option if not recognized
11456 # So say no if there are warnings
11457 if test ! -s conftest.err; then
11458 lt_prog_compiler_pic_works_CXX=yes
11464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11465 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11467 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11468 case $lt_prog_compiler_pic_CXX in
11470 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11473 lt_prog_compiler_pic_CXX=
11474 lt_prog_compiler_can_build_shared_CXX=no
11479 # For platforms which do not support PIC, -DPIC is meaningless:
11481 lt_prog_compiler_pic_CXX=
11484 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11490 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 lt_cv_prog_compiler_c_o_CXX=no
11494 $rm -r conftest 2>/dev/null
11498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11500 lt_compiler_flag="-o out/conftest2.$ac_objext"
11501 # Insert the option either (1) after the last *FLAGS variable, or
11502 # (2) before a word containing "conftest.", or (3) at the end.
11503 # Note that $ac_compile itself does not contain backslashes and begins
11504 # with a dollar sign (not a hyphen), so the echo should work correctly.
11505 lt_compile=`echo "$ac_compile" | $SED \
11506 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11508 -e 's:$: $lt_compiler_flag:'`
11509 (eval echo "\"\$as_me:11509: $lt_compile\"" >&5)
11510 (eval "$lt_compile" 2>out/conftest.err)
11512 cat out/conftest.err >&5
11513 echo "$as_me:11513: \$? = $ac_status" >&5
11514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11516 # The compiler can only warn and ignore the option if not recognized
11517 # So say no if there are warnings
11518 if test ! -s out/conftest.err; then
11519 lt_cv_prog_compiler_c_o_CXX=yes
11524 # SGI C++ compiler will create directory out/ii_files/ for
11525 # template instantiation
11526 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11527 $rm out/* && rmdir out
11533 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11534 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11537 hard_links="nottested"
11538 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11539 # do not overwrite the value of need_locks provided by the user
11540 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11541 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11546 ln conftest.a conftest.b 2>&5 || hard_links=no
11547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11548 { echo "$as_me:$LINENO: result: $hard_links" >&5
11549 echo "${ECHO_T}$hard_links" >&6; }
11550 if test "$hard_links" = no; then
11551 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11552 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11559 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11560 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11562 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11565 # If we're using GNU nm, then we don't want the "-C" option.
11566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11567 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11568 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'
11570 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'
11574 export_symbols_cmds_CXX="$ltdll_cmds"
11577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11580 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11584 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11585 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11586 test "$ld_shlibs_CXX" = no && can_build_shared=no
11588 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11589 if test "$GCC" = yes; then
11590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11594 # Do we need to explicitly link libc?
11596 case "x$archive_cmds_need_lc_CXX" in
11598 # Assume -lc should be added
11599 archive_cmds_need_lc_CXX=yes
11601 if test "$enable_shared" = yes && test "$GCC" = yes; then
11602 case $archive_cmds_CXX in
11604 # FIXME: we may have to deal with multi-command sequences.
11607 # Test whether the compiler implicitly links with -lc since on some
11608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11609 # to ld, don't add -lc before -lgcc.
11610 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11611 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616 (eval $ac_compile) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } 2>conftest.err; then
11622 libobjs=conftest.$ac_objext
11624 wl=$lt_prog_compiler_wl_CXX
11630 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11631 allow_undefined_flag_CXX=
11632 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11633 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }
11638 archive_cmds_need_lc_CXX=no
11640 archive_cmds_need_lc_CXX=yes
11642 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11644 cat conftest.err 1>&5
11647 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11648 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11655 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11657 library_names_spec=
11658 libname_spec='lib$name'
11662 postuninstall_cmds=
11666 shlibpath_overrides_runpath=unknown
11668 dynamic_linker="$host_os ld.so"
11669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11670 if test "$GCC" = yes; then
11671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11673 # if the path contains ";" then we assume it to be the separator
11674 # otherwise default to the standard path separator (i.e. ":") - it is
11675 # assumed that no part of a normal pathname contains ";" but that should
11676 # okay in the real world where ";" in dirpaths is itself problematic.
11677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11684 need_lib_prefix=unknown
11685 hardcode_into_libs=no
11687 # when you set need_version to no, make sure it does not cause -set_version
11688 # flags to be left without arguments
11689 need_version=unknown
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11695 shlibpath_var=LIBPATH
11697 # AIX 3 has no versioning support, so we append a major version to the name.
11698 soname_spec='${libname}${release}${shared_ext}$major'
11705 hardcode_into_libs=yes
11706 if test "$host_cpu" = ia64; then
11707 # AIX 5 supports IA64
11708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11709 shlibpath_var=LD_LIBRARY_PATH
11711 # With GCC up to 2.95.x, collect2 would create an import file
11712 # for dependence libraries. The import file would start with
11713 # the line `#! .'. This would cause the generated library to
11714 # depend on `.', always an invalid library. This was fixed in
11715 # development snapshots of GCC prior to 3.0.
11717 aix4 | aix4.[01] | aix4.[01].*)
11718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11723 can_build_shared=no
11727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11728 # soname into executable. Probably we can add versioning support to
11729 # collect2, so additional links can be useful in future.
11730 if test "$aix_use_runtimelinking" = yes; then
11731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11732 # instead of lib<name>.a to let people know that these are not
11733 # typical AIX shared libraries.
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 # We preserve .a as extension for shared libraries through AIX4.2
11737 # and later when we are not doing run time linking.
11738 library_names_spec='${libname}${release}.a $libname.a'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LIBPATH
11746 library_names_spec='$libname.ixlibrary $libname.a'
11747 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11748 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'
11752 library_names_spec='${libname}${shared_ext}'
11753 dynamic_linker="$host_os ld.so"
11754 shlibpath_var=LIBRARY_PATH
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11766 # the default ld.so.conf also contains /usr/contrib/lib and
11767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11768 # libtool to hard-code these into programs
11771 cygwin* | mingw* | pw32*)
11772 version_type=windows
11777 case $GCC,$host_os in
11778 yes,cygwin* | yes,mingw* | yes,pw32*)
11779 library_names_spec='$libname.dll.a'
11780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11781 postinstall_cmds='base_file=`basename \${file}`~
11782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11783 dldir=$destdir/`dirname \$dlpath`~
11784 test -d \$dldir || mkdir -p \$dldir~
11785 $install_prog $dir/$dlname \$dldir/$dlname'
11786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11787 dlpath=$dir/\$dldll~
11789 shlibpath_overrides_runpath=yes
11793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11798 # MinGW DLLs use traditional 'lib' prefix
11799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11801 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11802 # It is most probably a Windows format PATH printed by
11803 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11804 # path with ; separators, and with drive letters. We can handle the
11805 # drive letters (cygwin fileutils understands them), so leave them,
11806 # especially as we might pass files found there to a mingw objdump,
11807 # which wouldn't understand a cygwinified path. Ahh.
11808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11814 # pw32 DLLs use 'pw' prefix rather than 'lib'
11815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11824 dynamic_linker='Win32 ld.exe'
11825 # FIXME: first we should search . and the directory the executable is in
11829 darwin* | rhapsody*)
11830 dynamic_linker="$host_os dyld"
11831 version_type=darwin
11834 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11835 soname_spec='${libname}${release}${major}$shared_ext'
11836 shlibpath_overrides_runpath=yes
11837 shlibpath_var=DYLD_LIBRARY_PATH
11838 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11839 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11840 if test "$GCC" = yes; then
11841 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11843 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 shlibpath_var=LD_LIBRARY_PATH
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 shlibpath_overrides_runpath=no
11869 hardcode_into_libs=yes
11870 dynamic_linker='GNU ld.so'
11874 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11875 version_type=freebsd-$objformat
11876 case $version_type in
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11887 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=yes
11892 freebsd3.01* | freebsdelf3.01*)
11893 shlibpath_overrides_runpath=yes
11894 hardcode_into_libs=yes
11897 shlibpath_overrides_runpath=no
11898 hardcode_into_libs=yes
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 hardcode_into_libs=yes
11913 hpux9* | hpux10* | hpux11*)
11914 # Give a soname corresponding to the major version so that dld.sl refuses to
11915 # link against other versions.
11919 case "$host_cpu" in
11922 hardcode_into_libs=yes
11923 dynamic_linker="$host_os dld.so"
11924 shlibpath_var=LD_LIBRARY_PATH
11925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 if test "X$HPUX_IA64_MODE" = X32; then
11929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11937 hardcode_into_libs=yes
11938 dynamic_linker="$host_os dld.sl"
11939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942 soname_spec='${libname}${release}${shared_ext}$major'
11943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948 dynamic_linker="$host_os dld.sl"
11949 shlibpath_var=SHLIB_PATH
11950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11956 postinstall_cmds='chmod 555 $lib'
11959 irix5* | irix6* | nonstopux*)
11961 nonstopux*) version_type=nonstopux ;;
11963 if test "$lt_cv_prog_gnu_ld" = yes; then
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11974 irix5* | nonstopux*)
11975 libsuff= shlibsuff=
11978 case $LD in # libtool.m4 will add one of these switches to LD
11979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11980 libsuff= shlibsuff= libmagic=32-bit;;
11981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11982 libsuff=32 shlibsuff=N32 libmagic=N32;;
11983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11985 *) libsuff= shlibsuff= libmagic=never-match;;
11989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11990 shlibpath_overrides_runpath=no
11991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11993 hardcode_into_libs=yes
11996 # No shared lib support for Linux oldld, aout, or coff.
11997 linux*oldld* | linux*aout* | linux*coff*)
12001 # This must be Linux ELF.
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=no
12011 # This implies no fast_install, which is unacceptable.
12012 # Some rework will be needed to allow for fast_install
12013 # before this can be enabled.
12014 hardcode_into_libs=yes
12016 # find out which ABI we are using
12018 case "$host_cpu" in
12019 x86_64*|s390x*|powerpc64*)
12020 echo '#line 12020 "configure"' > conftest.$ac_ext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022 (eval $ac_compile) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; then
12026 case `/usr/bin/file conftest.$ac_objext` in
12029 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12037 # Append ld.so.conf contents to the search path
12038 if test -f /etc/ld.so.conf; then
12039 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12040 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12043 # We used to test for /lib/ld.so.1 and disable shared libraries on
12044 # powerpc, because MkLinux only supported shared libraries with the
12045 # GNU dynamic linker. Since this was broken with cross compilers,
12046 # most powerpc-linux boxes support dynamic linking these days and
12047 # people can always --disable-shared, the test was removed, and we
12048 # assume the GNU/Linux dynamic linker is in use.
12049 dynamic_linker='GNU/Linux ld.so'
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=no
12060 hardcode_into_libs=yes
12061 dynamic_linker='GNU ld.so'
12068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12071 dynamic_linker='NetBSD (a.out) ld.so'
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12075 dynamic_linker='NetBSD ld.elf_so'
12077 shlibpath_var=LD_LIBRARY_PATH
12078 shlibpath_overrides_runpath=yes
12079 hardcode_into_libs=yes
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 shlibpath_overrides_runpath=yes
12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094 soname_spec='${libname}${release}${shared_ext}$major'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 shlibpath_overrides_runpath=yes
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12108 openbsd2.[89] | openbsd2.[89].*)
12109 shlibpath_overrides_runpath=no
12112 shlibpath_overrides_runpath=yes
12116 shlibpath_overrides_runpath=yes
12121 libname_spec='$name'
12124 library_names_spec='$libname${shared_ext} $libname.a'
12125 dynamic_linker='OS/2 ld.exe'
12126 shlibpath_var=LIBPATH
12129 osf3* | osf4* | osf5*)
12133 soname_spec='${libname}${release}${shared_ext}$major'
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12142 soname_spec='${libname}${release}${shared_ext}$major'
12143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144 shlibpath_var=LD_LIBRARY_PATH
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12155 hardcode_into_libs=yes
12156 # ldd complains unless libraries are executable
12157 postinstall_cmds='chmod +x $lib'
12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=yes
12166 if test "$with_gnu_ld" = yes; then
12172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175 soname_spec='${libname}${release}${shared_ext}$major'
12176 shlibpath_var=LD_LIBRARY_PATH
12177 case $host_vendor in
12179 shlibpath_overrides_runpath=no
12181 export_dynamic_flag_spec='${wl}-Blargedynsym'
12182 runpath_var=LD_RUN_PATH
12190 shlibpath_overrides_runpath=no
12191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12197 if test -d /usr/nec ;then
12199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12200 soname_spec='$libname${shared_ext}.$major'
12201 shlibpath_var=LD_LIBRARY_PATH
12207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208 soname_spec='${libname}${release}${shared_ext}$major'
12209 shlibpath_var=LD_LIBRARY_PATH
12216 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12217 echo "${ECHO_T}$dynamic_linker" >&6; }
12218 test "$dynamic_linker" = no && can_build_shared=no
12220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12222 hardcode_action_CXX=
12223 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12224 test -n "$runpath_var CXX" || \
12225 test "X$hardcode_automatic_CXX"="Xyes" ; then
12227 # We can hardcode non-existant directories.
12228 if test "$hardcode_direct_CXX" != no &&
12229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12230 # have to relink, otherwise we might link with an installed library
12231 # when we should be linking with a yet-to-be-installed one
12232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12233 test "$hardcode_minus_L_CXX" != no; then
12234 # Linking always hardcodes the temporary library directory.
12235 hardcode_action_CXX=relink
12237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12238 hardcode_action_CXX=immediate
12241 # We cannot hardcode anything, or else we can only hardcode existing
12243 hardcode_action_CXX=unsupported
12245 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12246 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12248 if test "$hardcode_action_CXX" = relink; then
12249 # Fast installation is not supported
12250 enable_fast_install=no
12251 elif test "$shlibpath_overrides_runpath" = yes ||
12252 test "$enable_shared" = no; then
12253 # Fast installation is not necessary
12254 enable_fast_install=needless
12259 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12260 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12261 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12264 { echo "$as_me:$LINENO: result: yes" >&5
12265 echo "${ECHO_T}yes" >&6; }
12267 # FIXME - insert some real tests, host_os isn't really good enough
12270 if test -n "$STRIP" ; then
12271 striplib="$STRIP -x"
12272 { echo "$as_me:$LINENO: result: yes" >&5
12273 echo "${ECHO_T}yes" >&6; }
12275 { echo "$as_me:$LINENO: result: no" >&5
12276 echo "${ECHO_T}no" >&6; }
12280 { echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6; }
12286 if test "x$enable_dlopen" != xyes; then
12287 enable_dlopen=unknown
12288 enable_dlopen_self=unknown
12289 enable_dlopen_self_static=unknown
12296 lt_cv_dlopen="load_add_on"
12298 lt_cv_dlopen_self=yes
12302 lt_cv_dlopen="LoadLibrary"
12307 lt_cv_dlopen="dlopen"
12312 # if libdl is installed we need to link against it
12313 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12314 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_check_lib_save_LIBS=$LIBS
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_cxx_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest$ac_exeext &&
12359 $as_test_x conftest$ac_exeext; then
12360 ac_cv_lib_dl_dlopen=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_dl_dlopen=no
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12374 if test $ac_cv_lib_dl_dlopen = yes; then
12375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12378 lt_cv_dlopen="dyld"
12380 lt_cv_dlopen_self=yes
12387 { echo "$as_me:$LINENO: checking for shl_load" >&5
12388 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12389 if test "${ac_cv_func_shl_load+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define shl_load innocuous_shl_load
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char shl_load (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12408 # include <limits.h>
12410 # include <assert.h>
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined __stub_shl_load || defined __stub___shl_load
12432 return shl_load ();
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_cxx_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest$ac_exeext &&
12454 $as_test_x conftest$ac_exeext; then
12455 ac_cv_func_shl_load=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_func_shl_load=no
12463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12464 conftest$ac_exeext conftest.$ac_ext
12466 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12467 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12468 if test $ac_cv_func_shl_load = yes; then
12469 lt_cv_dlopen="shl_load"
12471 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12472 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12473 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_check_lib_save_LIBS=$LIBS
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12495 return shl_load ();
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && {
12514 test -z "$ac_cxx_werror_flag" ||
12515 test ! -s conftest.err
12516 } && test -s conftest$ac_exeext &&
12517 $as_test_x conftest$ac_exeext; then
12518 ac_cv_lib_dld_shl_load=yes
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_cv_lib_dld_shl_load=no
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527 conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12531 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12532 if test $ac_cv_lib_dld_shl_load = yes; then
12533 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12535 { echo "$as_me:$LINENO: checking for dlopen" >&5
12536 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12537 if test "${ac_cv_func_dlopen+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12548 #define dlopen innocuous_dlopen
12550 /* System header to define __stub macros and hopefully few prototypes,
12551 which can conflict with char dlopen (); below.
12552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12553 <limits.h> exists even on freestanding compilers. */
12556 # include <limits.h>
12558 # include <assert.h>
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12570 /* The GNU C library defines this for functions which it implements
12571 to always fail with ENOSYS. Some functions are actually named
12572 something starting with __ and the normal name is an alias. */
12573 #if defined __stub_dlopen || defined __stub___dlopen
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_cxx_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest$ac_exeext &&
12602 $as_test_x conftest$ac_exeext; then
12603 ac_cv_func_dlopen=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_func_dlopen=no
12611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12612 conftest$ac_exeext conftest.$ac_ext
12614 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12615 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12616 if test $ac_cv_func_dlopen = yes; then
12617 lt_cv_dlopen="dlopen"
12619 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 ac_check_lib_save_LIBS=$LIBS
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_link") 2>conftest.er1
12657 grep -v '^ *+' conftest.er1 >conftest.err
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } && {
12662 test -z "$ac_cxx_werror_flag" ||
12663 test ! -s conftest.err
12664 } && test -s conftest$ac_exeext &&
12665 $as_test_x conftest$ac_exeext; then
12666 ac_cv_lib_dl_dlopen=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_cv_lib_dl_dlopen=no
12674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12675 conftest$ac_exeext conftest.$ac_ext
12676 LIBS=$ac_check_lib_save_LIBS
12678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12680 if test $ac_cv_lib_dl_dlopen = yes; then
12681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12683 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12684 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-lsvld $LIBS"
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (ac_try="$ac_link"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_link") 2>conftest.er1
12721 grep -v '^ *+' conftest.er1 >conftest.err
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } && {
12726 test -z "$ac_cxx_werror_flag" ||
12727 test ! -s conftest.err
12728 } && test -s conftest$ac_exeext &&
12729 $as_test_x conftest$ac_exeext; then
12730 ac_cv_lib_svld_dlopen=yes
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 ac_cv_lib_svld_dlopen=no
12738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12739 conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12742 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12743 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12744 if test $ac_cv_lib_svld_dlopen = yes; then
12745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12747 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12748 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 ac_check_lib_save_LIBS=$LIBS
12754 cat >conftest.$ac_ext <<_ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12771 return dld_link ();
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_cxx_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest$ac_exeext &&
12793 $as_test_x conftest$ac_exeext; then
12794 ac_cv_lib_dld_dld_link=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_lib_dld_dld_link=no
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803 conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12807 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12808 if test $ac_cv_lib_dld_dld_link = yes; then
12809 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12830 if test "x$lt_cv_dlopen" != xno; then
12836 case $lt_cv_dlopen in
12838 save_CPPFLAGS="$CPPFLAGS"
12839 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12841 save_LDFLAGS="$LDFLAGS"
12842 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12845 LIBS="$lt_cv_dlopen_libs $LIBS"
12847 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12848 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12849 if test "${lt_cv_dlopen_self+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 if test "$cross_compiling" = yes; then :
12853 lt_cv_dlopen_self=cross
12855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12856 lt_status=$lt_dlunknown
12857 cat > conftest.$ac_ext <<EOF
12858 #line 12858 "configure"
12859 #include "confdefs.h"
12868 # define LT_DLGLOBAL RTLD_GLOBAL
12871 # define LT_DLGLOBAL DL_GLOBAL
12873 # define LT_DLGLOBAL 0
12877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12878 find out it does not work in some platform. */
12879 #ifndef LT_DLLAZY_OR_NOW
12881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12884 # define LT_DLLAZY_OR_NOW DL_LAZY
12887 # define LT_DLLAZY_OR_NOW RTLD_NOW
12890 # define LT_DLLAZY_OR_NOW DL_NOW
12892 # define LT_DLLAZY_OR_NOW 0
12900 extern "C" void exit (int);
12903 void fnord() { int i=42;}
12906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12907 int status = $lt_dlunknown;
12911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12913 /* dlclose (self); */
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 (eval $ac_link) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12924 (./conftest; exit; ) 2>/dev/null
12926 case x$lt_status in
12927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12929 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12932 # compilation failed
12933 lt_cv_dlopen_self=no
12940 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12941 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12943 if test "x$lt_cv_dlopen_self" = xyes; then
12944 LDFLAGS="$LDFLAGS $link_static_flag"
12945 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12946 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12947 if test "${lt_cv_dlopen_self_static+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 if test "$cross_compiling" = yes; then :
12951 lt_cv_dlopen_self_static=cross
12953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12954 lt_status=$lt_dlunknown
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12956 "configure"
12957 #include "confdefs.h"
12966 # define LT_DLGLOBAL RTLD_GLOBAL
12969 # define LT_DLGLOBAL DL_GLOBAL
12971 # define LT_DLGLOBAL 0
12975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12976 find out it does not work in some platform. */
12977 #ifndef LT_DLLAZY_OR_NOW
12979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12982 # define LT_DLLAZY_OR_NOW DL_LAZY
12985 # define LT_DLLAZY_OR_NOW RTLD_NOW
12988 # define LT_DLLAZY_OR_NOW DL_NOW
12990 # define LT_DLLAZY_OR_NOW 0
12998 extern "C" void exit (int);
13001 void fnord() { int i=42;}
13004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13005 int status = $lt_dlunknown;
13009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13011 /* dlclose (self); */
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13022 (./conftest; exit; ) 2>/dev/null
13024 case x$lt_status in
13025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13027 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13030 # compilation failed
13031 lt_cv_dlopen_self_static=no
13038 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13039 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13042 CPPFLAGS="$save_CPPFLAGS"
13043 LDFLAGS="$save_LDFLAGS"
13048 case $lt_cv_dlopen_self in
13049 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13050 *) enable_dlopen_self=unknown ;;
13053 case $lt_cv_dlopen_self_static in
13054 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13055 *) enable_dlopen_self_static=unknown ;;
13060 # The else clause should only fire when bootstrapping the
13061 # libtool distribution, otherwise you forgot to ship ltmain.sh
13062 # with your package, and you will get complaints that there are
13063 # no rules to generate ltmain.sh.
13064 if test -f "$ltmain"; then
13065 # See if we are running on zsh, and set the options which allow our commands through
13066 # without removal of \ escapes.
13067 if test -n "${ZSH_VERSION+set}" ; then
13068 setopt NO_GLOB_SUBST
13070 # Now quote all the things that may contain metacharacters while being
13071 # careful not to overquote the AC_SUBSTed values. We take copies of the
13072 # variables and quote the copies for generation of the libtool script.
13073 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13075 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13076 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13077 deplibs_check_method reload_flag reload_cmds need_locks \
13078 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13079 lt_cv_sys_global_symbol_to_c_name_address \
13080 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13081 old_postinstall_cmds old_postuninstall_cmds \
13085 lt_prog_compiler_wl_CXX \
13086 lt_prog_compiler_pic_CXX \
13087 lt_prog_compiler_static_CXX \
13088 lt_prog_compiler_no_builtin_flag_CXX \
13089 export_dynamic_flag_spec_CXX \
13090 thread_safe_flag_spec_CXX \
13091 whole_archive_flag_spec_CXX \
13092 enable_shared_with_static_runtimes_CXX \
13093 old_archive_cmds_CXX \
13094 old_archive_from_new_cmds_CXX \
13095 predep_objects_CXX \
13096 postdep_objects_CXX \
13099 compiler_lib_search_path_CXX \
13101 archive_expsym_cmds_CXX \
13102 postinstall_cmds_CXX \
13103 postuninstall_cmds_CXX \
13104 old_archive_from_expsyms_cmds_CXX \
13105 allow_undefined_flag_CXX \
13106 no_undefined_flag_CXX \
13107 export_symbols_cmds_CXX \
13108 hardcode_libdir_flag_spec_CXX \
13109 hardcode_libdir_flag_spec_ld_CXX \
13110 hardcode_libdir_separator_CXX \
13111 hardcode_automatic_CXX \
13113 module_expsym_cmds_CXX \
13114 lt_cv_prog_compiler_c_o_CXX \
13115 exclude_expsyms_CXX \
13116 include_expsyms_CXX; do
13119 old_archive_cmds_CXX | \
13120 old_archive_from_new_cmds_CXX | \
13121 archive_cmds_CXX | \
13122 archive_expsym_cmds_CXX | \
13123 module_cmds_CXX | \
13124 module_expsym_cmds_CXX | \
13125 old_archive_from_expsyms_cmds_CXX | \
13126 export_symbols_cmds_CXX | \
13127 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13128 postinstall_cmds | postuninstall_cmds | \
13129 old_postinstall_cmds | old_postuninstall_cmds | \
13130 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13131 # Double-quote double-evaled strings.
13132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13141 *'\$0 --fallback-echo"')
13142 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13148 cat <<__EOF__ >> "$cfgfile"
13149 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13153 # Shell to use when invoking shell scripts.
13156 # Whether or not to build shared libraries.
13157 build_libtool_libs=$enable_shared
13159 # Whether or not to build static libraries.
13160 build_old_libs=$enable_static
13162 # Whether or not to add -lc for building shared libraries.
13163 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13165 # Whether or not to disallow shared libs when runtime libs are static
13166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13168 # Whether or not to optimize for fast installation.
13169 fast_install=$enable_fast_install
13172 host_alias=$host_alias
13175 # An echo program that does not interpret backslashes.
13180 AR_FLAGS=$lt_AR_FLAGS
13185 # A language-specific compiler.
13186 CC=$lt_compiler_CXX
13188 # Is the compiler the GNU C compiler?
13194 # The linker used to build libraries.
13197 # Whether we need hard or soft links.
13200 # A BSD-compatible nm program.
13203 # A symbol stripping program
13206 # Used to examine libraries when file_magic_cmd begins "file"
13207 MAGIC_CMD=$MAGIC_CMD
13209 # Used on cygwin: DLL creation program.
13212 # Used on cygwin: object dumper.
13215 # Used on cygwin: assembler.
13218 # The name of the directory that contains temporary libtool files.
13221 # How to create reloadable object files.
13222 reload_flag=$lt_reload_flag
13223 reload_cmds=$lt_reload_cmds
13225 # How to pass a linker flag through the compiler.
13226 wl=$lt_lt_prog_compiler_wl_CXX
13228 # Object file suffix (normally "o").
13229 objext="$ac_objext"
13231 # Old archive suffix (normally "a").
13234 # Shared library suffix (normally ".so").
13235 shrext_cmds='$shrext_cmds'
13237 # Executable file suffix (normally "").
13240 # Additional compiler flags for building library objects.
13241 pic_flag=$lt_lt_prog_compiler_pic_CXX
13244 # What is the maximum length of a command?
13245 max_cmd_len=$lt_cv_sys_max_cmd_len
13247 # Does compiler simultaneously support -c and -o options?
13248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13250 # Must we lock files when doing compilation ?
13251 need_locks=$lt_need_locks
13253 # Do we need the lib prefix for modules?
13254 need_lib_prefix=$need_lib_prefix
13256 # Do we need a version for libraries?
13257 need_version=$need_version
13259 # Whether dlopen is supported.
13260 dlopen_support=$enable_dlopen
13262 # Whether dlopen of programs is supported.
13263 dlopen_self=$enable_dlopen_self
13265 # Whether dlopen of statically linked programs is supported.
13266 dlopen_self_static=$enable_dlopen_self_static
13268 # Compiler flag to prevent dynamic linking.
13269 link_static_flag=$lt_lt_prog_compiler_static_CXX
13271 # Compiler flag to turn off builtin functions.
13272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13274 # Compiler flag to allow reflexive dlopens.
13275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13277 # Compiler flag to generate shared objects directly from archives.
13278 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13280 # Compiler flag to generate thread-safe objects.
13281 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13283 # Library versioning type.
13284 version_type=$version_type
13286 # Format of library name prefix.
13287 libname_spec=$lt_libname_spec
13289 # List of archive names. First name is the real one, the rest are links.
13290 # The last name is the one that the linker finds with -lNAME.
13291 library_names_spec=$lt_library_names_spec
13293 # The coded name of the library, if different from the real name.
13294 soname_spec=$lt_soname_spec
13296 # Commands used to build and install an old-style archive.
13298 old_archive_cmds=$lt_old_archive_cmds_CXX
13299 old_postinstall_cmds=$lt_old_postinstall_cmds
13300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13302 # Create an old-style archive from a shared archive.
13303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13305 # Create a temporary old-style archive to link instead of a shared archive.
13306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13308 # Commands used to build and install a shared archive.
13309 archive_cmds=$lt_archive_cmds_CXX
13310 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13311 postinstall_cmds=$lt_postinstall_cmds
13312 postuninstall_cmds=$lt_postuninstall_cmds
13314 # Commands used to build a loadable module (assumed same as above if empty)
13315 module_cmds=$lt_module_cmds_CXX
13316 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13318 # Commands to strip libraries.
13319 old_striplib=$lt_old_striplib
13320 striplib=$lt_striplib
13322 # Dependencies to place before the objects being linked to create a
13324 predep_objects=$lt_predep_objects_CXX
13326 # Dependencies to place after the objects being linked to create a
13328 postdep_objects=$lt_postdep_objects_CXX
13330 # Dependencies to place before the objects being linked to create a
13332 predeps=$lt_predeps_CXX
13334 # Dependencies to place after the objects being linked to create a
13336 postdeps=$lt_postdeps_CXX
13338 # The library search path used internally by the compiler when linking
13339 # a shared library.
13340 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13342 # Method to check whether dependent libraries are shared objects.
13343 deplibs_check_method=$lt_deplibs_check_method
13345 # Command to use when deplibs_check_method == file_magic.
13346 file_magic_cmd=$lt_file_magic_cmd
13348 # Flag that allows shared libraries with undefined symbols to be built.
13349 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13351 # Flag that forces no undefined symbols.
13352 no_undefined_flag=$lt_no_undefined_flag_CXX
13354 # Commands used to finish a libtool library installation in a directory.
13355 finish_cmds=$lt_finish_cmds
13357 # Same as above, but a single script fragment to be evaled but not shown.
13358 finish_eval=$lt_finish_eval
13360 # Take the output of nm and produce a listing of raw symbols and C names.
13361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13363 # Transform the output of nm in a proper C declaration
13364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13366 # Transform the output of nm in a C name address pair
13367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13369 # This is the shared library runtime path variable.
13370 runpath_var=$runpath_var
13372 # This is the shared library path variable.
13373 shlibpath_var=$shlibpath_var
13375 # Is shlibpath searched before the hard-coded library search path?
13376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13378 # How to hardcode a shared library path into an executable.
13379 hardcode_action=$hardcode_action_CXX
13381 # Whether we should hardcode library paths into libraries.
13382 hardcode_into_libs=$hardcode_into_libs
13384 # Flag to hardcode \$libdir into a binary during linking.
13385 # This must work even if \$libdir does not exist.
13386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13388 # If ld is used when linking, flag to hardcode \$libdir into
13389 # a binary during linking. This must work even if \$libdir does
13391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13393 # Whether we need a single -rpath flag with a separated argument.
13394 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13397 # resulting binary.
13398 hardcode_direct=$hardcode_direct_CXX
13400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13401 # resulting binary.
13402 hardcode_minus_L=$hardcode_minus_L_CXX
13404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13405 # the resulting binary.
13406 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13408 # Set to yes if building a shared library automatically hardcodes DIR into the library
13409 # and all subsequent libraries and executables linked against it.
13410 hardcode_automatic=$hardcode_automatic_CXX
13412 # Variables whose values should be saved in libtool wrapper scripts and
13413 # restored at relink time.
13414 variables_saved_for_relink="$variables_saved_for_relink"
13416 # Whether libtool must link a program against all its dependency libraries.
13417 link_all_deplibs=$link_all_deplibs_CXX
13419 # Compile-time system search path for libraries
13420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13422 # Run-time system search path for libraries
13423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13425 # Fix the shell variable \$srcfile for the compiler.
13426 fix_srcfile_path="$fix_srcfile_path_CXX"
13428 # Set to yes if exported symbols are required.
13429 always_export_symbols=$always_export_symbols_CXX
13431 # The commands to list exported symbols.
13432 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13434 # The commands to extract the exported symbol list from a shared archive.
13435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13437 # Symbols that should not be listed in the preloaded symbols.
13438 exclude_expsyms=$lt_exclude_expsyms_CXX
13440 # Symbols that must always be exported.
13441 include_expsyms=$lt_include_expsyms_CXX
13443 # ### END LIBTOOL TAG CONFIG: $tagname
13449 # If there is no Makefile yet, we rely on a make rule to execute
13450 # `config.status --recheck' to rerun these tests and create the
13451 # libtool script then.
13452 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13453 if test -f "$ltmain_in"; then
13454 test -f Makefile && make "$ltmain"
13460 ac_cpp='$CPP $CPPFLAGS'
13461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13469 with_gnu_ldcxx=$with_gnu_ld
13470 with_gnu_ld=$lt_save_with_gnu_ld
13471 lt_cv_path_LDCXX=$lt_cv_path_LD
13472 lt_cv_path_LD=$lt_save_path_LD
13473 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13474 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13482 if test -n "$F77" && test "X$F77" != "Xno"; then
13485 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13486 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13490 archive_cmds_need_lc_F77=no
13491 allow_undefined_flag_F77=
13492 always_export_symbols_F77=no
13493 archive_expsym_cmds_F77=
13494 export_dynamic_flag_spec_F77=
13495 hardcode_direct_F77=no
13496 hardcode_libdir_flag_spec_F77=
13497 hardcode_libdir_flag_spec_ld_F77=
13498 hardcode_libdir_separator_F77=
13499 hardcode_minus_L_F77=no
13500 hardcode_automatic_F77=no
13502 module_expsym_cmds_F77=
13503 link_all_deplibs_F77=unknown
13504 old_archive_cmds_F77=$old_archive_cmds
13505 no_undefined_flag_F77=
13506 whole_archive_flag_spec_F77=
13507 enable_shared_with_static_runtimes_F77=no
13509 # Source file extension for f77 test sources.
13512 # Object file extension for compiled f77 test sources.
13516 # Code to be used in simple compile tests
13517 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13519 # Code to be used in simple link tests
13520 lt_simple_link_test_code=" program t\n end\n"
13522 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13524 # If no C compiler was specified, use CC.
13527 # Allow CC to be a program name with arguments.
13531 # Allow CC to be a program name with arguments.
13536 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13538 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13539 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13540 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13541 echo "${ECHO_T}$can_build_shared" >&6; }
13543 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13544 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13545 test "$can_build_shared" = "no" && enable_shared=no
13547 # On AIX, shared libraries and static libraries use the same namespace, and
13548 # are all built from PIC.
13551 test "$enable_shared" = yes && enable_static=no
13552 if test -n "$RANLIB"; then
13553 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13554 postinstall_cmds='$RANLIB $lib'
13558 test "$enable_shared" = yes && enable_static=no
13561 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13562 echo "${ECHO_T}$enable_shared" >&6; }
13564 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13565 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13566 # Make sure either enable_shared or enable_static is yes.
13567 test "$enable_shared" = yes || enable_static=yes
13568 { echo "$as_me:$LINENO: result: $enable_static" >&5
13569 echo "${ECHO_T}$enable_static" >&6; }
13571 test "$ld_shlibs_F77" = no && can_build_shared=no
13576 lt_prog_compiler_wl_F77=
13577 lt_prog_compiler_pic_F77=
13578 lt_prog_compiler_static_F77=
13580 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13581 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13583 if test "$GCC" = yes; then
13584 lt_prog_compiler_wl_F77='-Wl,'
13585 lt_prog_compiler_static_F77='-static'
13589 # All AIX code is PIC.
13590 if test "$host_cpu" = ia64; then
13591 # AIX 5 now supports IA64 processor
13592 lt_prog_compiler_static_F77='-Bstatic'
13597 # FIXME: we need at least 68020 code to build shared libraries, but
13598 # adding the `-m68020' flag to GCC prevents building anything better,
13600 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13603 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13604 # PIC is the default for these OSes.
13607 mingw* | pw32* | os2*)
13608 # This hack is so that the source file can tell whether it is being
13609 # built for inclusion in a dll (and should export symbols for example).
13610 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13613 darwin* | rhapsody*)
13614 # PIC is the default on this platform
13615 # Common symbols not allowed in MH_DYLIB files
13616 lt_prog_compiler_pic_F77='-fno-common'
13620 # Just because we use GCC doesn't mean we suddenly get shared libraries
13621 # on systems that don't support them.
13622 lt_prog_compiler_can_build_shared_F77=no
13627 if test -d /usr/nec; then
13628 lt_prog_compiler_pic_F77=-Kconform_pic
13633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13634 # not for PA HP-UX.
13635 case "$host_cpu" in
13640 lt_prog_compiler_pic_F77='-fPIC'
13646 lt_prog_compiler_pic_F77='-fPIC'
13650 # PORTME Check for flag to pass linker flags through the system compiler.
13653 lt_prog_compiler_wl_F77='-Wl,'
13654 if test "$host_cpu" = ia64; then
13655 # AIX 5 now supports IA64 processor
13656 lt_prog_compiler_static_F77='-Bstatic'
13658 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13662 mingw* | pw32* | os2*)
13663 # This hack is so that the source file can tell whether it is being
13664 # built for inclusion in a dll (and should export symbols for example).
13665 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13668 hpux9* | hpux10* | hpux11*)
13669 lt_prog_compiler_wl_F77='-Wl,'
13670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13671 # not for PA HP-UX.
13672 case "$host_cpu" in
13677 lt_prog_compiler_pic_F77='+Z'
13680 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13681 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13684 irix5* | irix6* | nonstopux*)
13685 lt_prog_compiler_wl_F77='-Wl,'
13686 # PIC (with -KPIC) is the default.
13687 lt_prog_compiler_static_F77='-non_shared'
13691 lt_prog_compiler_pic_F77='-KPIC'
13692 lt_prog_compiler_static_F77='-Bstatic'
13698 lt_prog_compiler_wl_F77='-Wl,'
13699 lt_prog_compiler_pic_F77='-KPIC'
13700 lt_prog_compiler_static_F77='-static'
13703 lt_prog_compiler_wl_F77='-Wl,'
13704 # All Alpha code is PIC.
13705 lt_prog_compiler_static_F77='-non_shared'
13710 osf3* | osf4* | osf5*)
13711 lt_prog_compiler_wl_F77='-Wl,'
13712 # All OSF/1 code is PIC.
13713 lt_prog_compiler_static_F77='-non_shared'
13717 lt_prog_compiler_pic_F77='-Kpic'
13718 lt_prog_compiler_static_F77='-dn'
13722 lt_prog_compiler_wl_F77='-Wl,'
13723 lt_prog_compiler_pic_F77='-KPIC'
13724 lt_prog_compiler_static_F77='-Bstatic'
13728 lt_prog_compiler_wl_F77='-Qoption ld '
13729 lt_prog_compiler_pic_F77='-PIC'
13730 lt_prog_compiler_static_F77='-Bstatic'
13733 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13734 lt_prog_compiler_wl_F77='-Wl,'
13735 lt_prog_compiler_pic_F77='-KPIC'
13736 lt_prog_compiler_static_F77='-Bstatic'
13740 if test -d /usr/nec ;then
13741 lt_prog_compiler_pic_F77='-Kconform_pic'
13742 lt_prog_compiler_static_F77='-Bstatic'
13747 lt_prog_compiler_pic_F77='-pic'
13748 lt_prog_compiler_static_F77='-Bstatic'
13752 lt_prog_compiler_can_build_shared_F77=no
13757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13758 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13761 # Check to make sure the PIC flag actually works.
13763 if test -n "$lt_prog_compiler_pic_F77"; then
13765 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13766 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13767 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 lt_prog_compiler_pic_works_F77=no
13771 ac_outfile=conftest.$ac_objext
13772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13773 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13774 # Insert the option either (1) after the last *FLAGS variable, or
13775 # (2) before a word containing "conftest.", or (3) at the end.
13776 # Note that $ac_compile itself does not contain backslashes and begins
13777 # with a dollar sign (not a hyphen), so the echo should work correctly.
13778 # The option is referenced via a variable to avoid confusing sed.
13779 lt_compile=`echo "$ac_compile" | $SED \
13780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13782 -e 's:$: $lt_compiler_flag:'`
13783 (eval echo "\"\$as_me:13783: $lt_compile\"" >&5)
13784 (eval "$lt_compile" 2>conftest.err)
13786 cat conftest.err >&5
13787 echo "$as_me:13787: \$? = $ac_status" >&5
13788 if (exit $ac_status) && test -s "$ac_outfile"; then
13789 # The compiler can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 if test ! -s conftest.err; then
13792 lt_prog_compiler_pic_works_F77=yes
13798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13799 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13801 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13802 case $lt_prog_compiler_pic_F77 in
13804 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13807 lt_prog_compiler_pic_F77=
13808 lt_prog_compiler_can_build_shared_F77=no
13813 # For platforms which do not support PIC, -DPIC is meaningless:
13815 lt_prog_compiler_pic_F77=
13818 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13822 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13824 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 lt_cv_prog_compiler_c_o_F77=no
13828 $rm -r conftest 2>/dev/null
13832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13834 lt_compiler_flag="-o out/conftest2.$ac_objext"
13835 # Insert the option either (1) after the last *FLAGS variable, or
13836 # (2) before a word containing "conftest.", or (3) at the end.
13837 # Note that $ac_compile itself does not contain backslashes and begins
13838 # with a dollar sign (not a hyphen), so the echo should work correctly.
13839 lt_compile=`echo "$ac_compile" | $SED \
13840 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842 -e 's:$: $lt_compiler_flag:'`
13843 (eval echo "\"\$as_me:13843: $lt_compile\"" >&5)
13844 (eval "$lt_compile" 2>out/conftest.err)
13846 cat out/conftest.err >&5
13847 echo "$as_me:13847: \$? = $ac_status" >&5
13848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13850 # The compiler can only warn and ignore the option if not recognized
13851 # So say no if there are warnings
13852 if test ! -s out/conftest.err; then
13853 lt_cv_prog_compiler_c_o_F77=yes
13858 # SGI C++ compiler will create directory out/ii_files/ for
13859 # template instantiation
13860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13861 $rm out/* && rmdir out
13867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13871 hard_links="nottested"
13872 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13873 # do not overwrite the value of need_locks provided by the user
13874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13880 ln conftest.a conftest.b 2>&5 || hard_links=no
13881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13882 { echo "$as_me:$LINENO: result: $hard_links" >&5
13883 echo "${ECHO_T}$hard_links" >&6; }
13884 if test "$hard_links" = no; then
13885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13897 allow_undefined_flag_F77=
13898 enable_shared_with_static_runtimes_F77=no
13900 archive_expsym_cmds_F77=
13901 old_archive_From_new_cmds_F77=
13902 old_archive_from_expsyms_cmds_F77=
13903 export_dynamic_flag_spec_F77=
13904 whole_archive_flag_spec_F77=
13905 thread_safe_flag_spec_F77=
13906 hardcode_libdir_flag_spec_F77=
13907 hardcode_libdir_flag_spec_ld_F77=
13908 hardcode_libdir_separator_F77=
13909 hardcode_direct_F77=no
13910 hardcode_minus_L_F77=no
13911 hardcode_shlibpath_var_F77=unsupported
13912 link_all_deplibs_F77=unknown
13913 hardcode_automatic_F77=no
13915 module_expsym_cmds_F77=
13916 always_export_symbols_F77=no
13917 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13918 # include_expsyms should be a list of space-separated symbols to be *always*
13919 # included in the symbol list
13920 include_expsyms_F77=
13921 # exclude_expsyms can be an extended regexp of symbols to exclude
13922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13924 # as well as any symbol that contains `d'.
13925 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13927 # platforms (ab)use it in PIC code, but their linkers get confused if
13928 # the symbol is explicitly referenced. Since portable code cannot
13929 # rely on this symbol name, it's probably fine to never include it in
13930 # preloaded symbol tables.
13931 extract_expsyms_cmds=
13934 cygwin* | mingw* | pw32*)
13935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13936 # When not using gcc, we currently assume that we are using
13937 # Microsoft Visual C++.
13938 if test "$GCC" != yes; then
13948 if test "$with_gnu_ld" = yes; then
13949 # If archive_cmds runs LD, not CC, wlarc should be empty
13952 # See if GNU ld supports shared libraries.
13954 aix3* | aix4* | aix5*)
13955 # On AIX/PPC, the GNU linker is very broken
13956 if test "$host_cpu" != ia64; then
13960 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13961 *** to be unable to reliably create shared libraries on AIX.
13962 *** Therefore, libtool is disabling shared libraries support. If you
13963 *** really care for shared libraries, you may want to modify your PATH
13964 *** so that a non-GNU linker is found, and then restart.
13971 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)'
13972 hardcode_libdir_flag_spec_F77='-L$libdir'
13973 hardcode_minus_L_F77=yes
13975 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13976 # that the semantics of dynamic libraries on AmigaOS, at least up
13977 # to version 4, is to share data among multiple programs linked
13978 # with the same dynamic library. Since this doesn't match the
13979 # behavior of shared libraries on other platforms, we can't use
13985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986 allow_undefined_flag_F77=unsupported
13987 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13988 # support --undefined. This deserves some investigation. FIXME
13989 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13995 cygwin* | mingw* | pw32*)
13996 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13997 # as there is no search path for DLLs.
13998 hardcode_libdir_flag_spec_F77='-L$libdir'
13999 allow_undefined_flag_F77=unsupported
14000 always_export_symbols_F77=no
14001 enable_shared_with_static_runtimes_F77=yes
14002 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14005 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14006 # If the export-symbols file already is a .def file (1st line
14007 # is EXPORTS), use it as is; otherwise, prepend...
14008 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14009 cp $export_symbols $output_objdir/$soname.def;
14011 echo EXPORTS > $output_objdir/$soname.def;
14012 cat $export_symbols >> $output_objdir/$soname.def;
14014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14022 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14025 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14026 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14031 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14036 *** create shared libraries on Solaris systems. Therefore, libtool
14037 *** is disabling shared libraries support. We urge you to upgrade GNU
14038 *** binutils to release 2.9.1 or newer. Another option is to modify
14039 *** your PATH or compiler configuration so that the native linker is
14040 *** used, and then restart.
14043 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14044 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14045 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14052 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14054 hardcode_direct_F77=yes
14055 hardcode_shlibpath_var_F77=no
14059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14060 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14061 archive_cmds_F77="$tmp_archive_cmds"
14062 supports_anon_versioning=no
14063 case `$LD -v 2>/dev/null` in
14064 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14065 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14066 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14067 *\ 2.11.*) ;; # other 2.11 versions
14068 *) supports_anon_versioning=yes ;;
14070 if test $supports_anon_versioning = yes; then
14071 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073 $echo "local: *; };" >> $output_objdir/$libname.ver~
14074 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14076 archive_expsym_cmds_F77="$tmp_archive_cmds"
14084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14093 if test "$ld_shlibs_F77" = yes; then
14094 runpath_var=LD_RUN_PATH
14095 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14096 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14097 # ancient GNU ld didn't support --whole-archive et. al.
14098 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14099 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14101 whole_archive_flag_spec_F77=
14105 # PORTME fill in a description of your system's linker (not GNU ld)
14108 allow_undefined_flag_F77=unsupported
14109 always_export_symbols_F77=yes
14110 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'
14111 # Note: this linker hardcodes the directories in LIBPATH if there
14112 # are no directories specified by -L.
14113 hardcode_minus_L_F77=yes
14114 if test "$GCC" = yes && test -z "$link_static_flag"; then
14115 # Neither direct hardcoding nor static linking is supported with a
14117 hardcode_direct_F77=unsupported
14122 if test "$host_cpu" = ia64; then
14123 # On IA64, the linker does run time linking by default, so we don't
14124 # have to do anything special.
14125 aix_use_runtimelinking=no
14126 exp_sym_flag='-Bexport'
14129 # If we're using GNU nm, then we don't want the "-C" option.
14130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14132 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'
14134 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'
14136 aix_use_runtimelinking=no
14138 # Test if we are trying to use run time linking or normal
14139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140 # need to do runtime linking.
14141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14142 for ld_flag in $LDFLAGS; do
14143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14144 aix_use_runtimelinking=yes
14150 exp_sym_flag='-bexport'
14151 no_entry_flag='-bnoentry'
14154 # When large executables or shared objects are built, AIX ld can
14155 # have problems creating the table of contents. If linking a library
14156 # or program results in "error TOC overflow" add -mminimal-toc to
14157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14160 archive_cmds_F77=''
14161 hardcode_direct_F77=yes
14162 hardcode_libdir_separator_F77=':'
14163 link_all_deplibs_F77=yes
14165 if test "$GCC" = yes; then
14166 case $host_os in aix4.012|aix4.012.*)
14167 # We only want to do this on AIX 4.2 and lower, the check
14168 # below for broken collect2 doesn't work under 4.3+
14169 collect2name=`${CC} -print-prog-name=collect2`
14170 if test -f "$collect2name" && \
14171 strings "$collect2name" | grep resolve_lib_name >/dev/null
14173 # We have reworked collect2
14174 hardcode_direct_F77=yes
14176 # We have old collect2
14177 hardcode_direct_F77=unsupported
14178 # It fails to find uninstalled libraries when the uninstalled
14179 # path is not listed in the libpath. Setting hardcode_minus_L
14180 # to unsupported forces relinking
14181 hardcode_minus_L_F77=yes
14182 hardcode_libdir_flag_spec_F77='-L$libdir'
14183 hardcode_libdir_separator_F77=
14186 shared_flag='-shared'
14189 if test "$host_cpu" = ia64; then
14190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14191 # chokes on -Wl,-G. The following line is correct:
14194 if test "$aix_use_runtimelinking" = yes; then
14195 shared_flag='${wl}-G'
14197 shared_flag='${wl}-bM:SRE'
14202 # It seems that -bexpall does not export symbols beginning with
14203 # underscore (_), so it is better to generate a list of symbols to export.
14204 always_export_symbols_F77=yes
14205 if test "$aix_use_runtimelinking" = yes; then
14206 # Warning - without using the other runtime loading flags (-brtl),
14207 # -berok will link without error, but may produce a broken library.
14208 allow_undefined_flag_F77='-berok'
14209 # Determine the default libpath from the value encoded in an empty executable.
14210 cat >conftest.$ac_ext <<_ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (ac_try="$ac_link"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_link") 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } && {
14229 test -z "$ac_f77_werror_flag" ||
14230 test ! -s conftest.err
14231 } && test -s conftest$ac_exeext &&
14232 $as_test_x conftest$ac_exeext; then
14234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14236 # Check for a 64-bit object if we didn't find anything.
14237 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14247 conftest$ac_exeext conftest.$ac_ext
14248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14251 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14253 if test "$host_cpu" = ia64; then
14254 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14255 allow_undefined_flag_F77="-z nodefs"
14256 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14258 # Determine the default libpath from the value encoded in an empty executable.
14259 cat >conftest.$ac_ext <<_ACEOF
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_link") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_f77_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest$ac_exeext &&
14281 $as_test_x conftest$ac_exeext; then
14283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14285 # Check for a 64-bit object if we didn't find anything.
14286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14299 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14300 # Warning - without using the other run time loading flags,
14301 # -berok will link without error, but may produce a broken library.
14302 no_undefined_flag_F77=' ${wl}-bernotok'
14303 allow_undefined_flag_F77=' ${wl}-berok'
14304 # -bexpall does not export symbols beginning with underscore (_)
14305 always_export_symbols_F77=yes
14306 # Exported symbols can be pulled into shared objects from archives
14307 whole_archive_flag_spec_F77=' '
14308 archive_cmds_need_lc_F77=yes
14309 # This is similar to how AIX traditionally builds it's shared libraries.
14310 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14316 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)'
14317 hardcode_libdir_flag_spec_F77='-L$libdir'
14318 hardcode_minus_L_F77=yes
14319 # see comment about different semantics on the GNU ld section
14324 export_dynamic_flag_spec_F77=-rdynamic
14327 cygwin* | mingw* | pw32*)
14328 # When not using gcc, we currently assume that we are using
14329 # Microsoft Visual C++.
14330 # hardcode_libdir_flag_spec is actually meaningless, as there is
14331 # no search path for DLLs.
14332 hardcode_libdir_flag_spec_F77=' '
14333 allow_undefined_flag_F77=unsupported
14334 # Tell ltmain to make .lib files, not .a files.
14336 # Tell ltmain to make .dll files, not .so files.
14338 # FIXME: Setting linknames here is a bad hack.
14339 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14340 # The linker will automatically build a .lib file if we build a DLL.
14341 old_archive_From_new_cmds_F77='true'
14342 # FIXME: Should let the user specify the lib program.
14343 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14344 fix_srcfile_path='`cygpath -w "$srcfile"`'
14345 enable_shared_with_static_runtimes_F77=yes
14348 darwin* | rhapsody*)
14349 if test "$GXX" = yes ; then
14350 archive_cmds_need_lc_F77=no
14352 rhapsody* | darwin1.[012])
14353 allow_undefined_flag_F77='-undefined suppress'
14356 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14357 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14359 case ${MACOSX_DEPLOYMENT_TARGET} in
14361 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14364 allow_undefined_flag_F77='-undefined dynamic_lookup'
14370 lt_int_apple_cc_single_mod=no
14371 output_verbose_link_cmd='echo'
14372 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14373 lt_int_apple_cc_single_mod=yes
14375 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14376 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14378 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14380 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14381 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14382 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14383 archive_expsym_cmds_F77='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}'
14385 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14387 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}'
14388 hardcode_direct_F77=no
14389 hardcode_automatic_F77=yes
14390 hardcode_shlibpath_var_F77=unsupported
14391 whole_archive_flag_spec_F77='-all_load $convenience'
14392 link_all_deplibs_F77=yes
14399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14400 hardcode_libdir_flag_spec_F77='-L$libdir'
14401 hardcode_shlibpath_var_F77=no
14408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14409 # support. Future versions do this automatically, but an explicit c++rt0.o
14410 # does not break anything, and helps significantly (at the cost of a little
14413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14414 hardcode_libdir_flag_spec_F77='-R$libdir'
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14421 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14422 hardcode_direct_F77=yes
14423 hardcode_minus_L_F77=yes
14424 hardcode_shlibpath_var_F77=no
14427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14428 freebsd* | kfreebsd*-gnu)
14429 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14430 hardcode_libdir_flag_spec_F77='-R$libdir'
14431 hardcode_direct_F77=yes
14432 hardcode_shlibpath_var_F77=no
14436 if test "$GCC" = yes; then
14437 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'
14439 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'
14441 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14442 hardcode_libdir_separator_F77=:
14443 hardcode_direct_F77=yes
14445 # hardcode_minus_L: Not really in the search PATH,
14446 # but as the default location of the library.
14447 hardcode_minus_L_F77=yes
14448 export_dynamic_flag_spec_F77='${wl}-E'
14452 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14453 case "$host_cpu" in
14455 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14458 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14462 case "$host_cpu" in
14464 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14467 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14471 if test "$with_gnu_ld" = no; then
14472 case "$host_cpu" in
14474 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14475 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14476 hardcode_libdir_separator_F77=:
14477 hardcode_direct_F77=no
14478 hardcode_shlibpath_var_F77=no
14481 hardcode_libdir_flag_spec_F77='-L$libdir'
14482 hardcode_direct_F77=no
14483 hardcode_shlibpath_var_F77=no
14485 # hardcode_minus_L: Not really in the search PATH,
14486 # but as the default location of the library.
14487 hardcode_minus_L_F77=yes
14490 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14491 hardcode_libdir_separator_F77=:
14492 hardcode_direct_F77=yes
14493 export_dynamic_flag_spec_F77='${wl}-E'
14495 # hardcode_minus_L: Not really in the search PATH,
14496 # but as the default location of the library.
14497 hardcode_minus_L_F77=yes
14503 irix5* | irix6* | nonstopux*)
14504 if test "$GCC" = yes; then
14505 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'
14507 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'
14508 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14510 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14511 hardcode_libdir_separator_F77=:
14512 link_all_deplibs_F77=yes
14516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14517 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14519 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14521 hardcode_libdir_flag_spec_F77='-R$libdir'
14522 hardcode_direct_F77=yes
14523 hardcode_shlibpath_var_F77=no
14527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14528 hardcode_direct_F77=yes
14529 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14530 hardcode_libdir_separator_F77=:
14531 hardcode_shlibpath_var_F77=no
14535 hardcode_direct_F77=yes
14536 hardcode_shlibpath_var_F77=no
14537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14538 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14539 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14540 export_dynamic_flag_spec_F77='${wl}-E'
14543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14544 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545 hardcode_libdir_flag_spec_F77='-R$libdir'
14548 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14549 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14556 hardcode_libdir_flag_spec_F77='-L$libdir'
14557 hardcode_minus_L_F77=yes
14558 allow_undefined_flag_F77=unsupported
14559 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'
14560 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14564 if test "$GCC" = yes; then
14565 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14566 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'
14568 allow_undefined_flag_F77=' -expect_unresolved \*'
14569 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'
14571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14572 hardcode_libdir_separator_F77=:
14575 osf4* | osf5*) # as osf3* with the addition of -msym flag
14576 if test "$GCC" = yes; then
14577 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14578 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'
14579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14581 allow_undefined_flag_F77=' -expect_unresolved \*'
14582 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'
14583 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~
14584 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14586 # Both c and cxx compiler support -rpath directly
14587 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14589 hardcode_libdir_separator_F77=:
14593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14594 hardcode_shlibpath_var_F77=no
14595 export_dynamic_flag_spec_F77='${wl}-Bexport'
14596 runpath_var=LD_RUN_PATH
14597 hardcode_runpath_var=yes
14601 no_undefined_flag_F77=' -z text'
14602 if test "$GCC" = yes; then
14603 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14604 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14607 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14611 hardcode_libdir_flag_spec_F77='-R$libdir'
14612 hardcode_shlibpath_var_F77=no
14614 solaris2.[0-5] | solaris2.[0-5].*) ;;
14615 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14616 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14618 link_all_deplibs_F77=yes
14622 if test "x$host_vendor" = xsequent; then
14623 # Use $CC to link under sequent, because it throws in some extra .o
14624 # files that make .init and .fini sections work.
14625 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14629 hardcode_libdir_flag_spec_F77='-L$libdir'
14630 hardcode_direct_F77=yes
14631 hardcode_minus_L_F77=yes
14632 hardcode_shlibpath_var_F77=no
14636 case $host_vendor in
14638 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639 hardcode_direct_F77=yes # is this really true???
14642 ## LD is ld it makes a PLAMLIB
14643 ## CC just makes a GrossModule.
14644 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14645 reload_cmds_F77='$CC -r -o $output$reload_objs'
14646 hardcode_direct_F77=no
14649 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14653 runpath_var='LD_RUN_PATH'
14654 hardcode_shlibpath_var_F77=no
14658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_shlibpath_var_F77=no
14660 export_dynamic_flag_spec_F77='-Bexport'
14664 if test -d /usr/nec; then
14665 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_shlibpath_var_F77=no
14667 runpath_var=LD_RUN_PATH
14668 hardcode_runpath_var=yes
14674 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14675 hardcode_direct_F77=yes
14676 hardcode_minus_L_F77=no
14677 hardcode_shlibpath_var_F77=no
14678 hardcode_runpath_var=yes
14679 runpath_var=LD_RUN_PATH
14682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14683 no_undefined_flag_F77='${wl}-z ${wl}text'
14684 if test "$GCC" = yes; then
14685 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14689 runpath_var='LD_RUN_PATH'
14690 hardcode_shlibpath_var_F77=no
14694 no_undefined_flag_F77=' -z text'
14695 # $CC -shared without GNU ld will not create a library from C++
14696 # object files and a static libstdc++, better avoid it by now
14697 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14698 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14700 hardcode_libdir_flag_spec_F77=
14701 hardcode_shlibpath_var_F77=no
14702 runpath_var='LD_RUN_PATH'
14706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707 hardcode_libdir_flag_spec_F77='-L$libdir'
14708 hardcode_shlibpath_var_F77=no
14717 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14718 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14719 test "$ld_shlibs_F77" = no && can_build_shared=no
14721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14722 if test "$GCC" = yes; then
14723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14727 # Do we need to explicitly link libc?
14729 case "x$archive_cmds_need_lc_F77" in
14731 # Assume -lc should be added
14732 archive_cmds_need_lc_F77=yes
14734 if test "$enable_shared" = yes && test "$GCC" = yes; then
14735 case $archive_cmds_F77 in
14737 # FIXME: we may have to deal with multi-command sequences.
14740 # Test whether the compiler implicitly links with -lc since on some
14741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14742 # to ld, don't add -lc before -lgcc.
14743 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14744 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14746 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749 (eval $ac_compile) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } 2>conftest.err; then
14755 libobjs=conftest.$ac_objext
14757 wl=$lt_prog_compiler_wl_F77
14763 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14764 allow_undefined_flag_F77=
14765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14766 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }
14771 archive_cmds_need_lc_F77=no
14773 archive_cmds_need_lc_F77=yes
14775 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14777 cat conftest.err 1>&5
14780 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14781 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14788 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14789 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14790 library_names_spec=
14791 libname_spec='lib$name'
14795 postuninstall_cmds=
14799 shlibpath_overrides_runpath=unknown
14801 dynamic_linker="$host_os ld.so"
14802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14803 if test "$GCC" = yes; then
14804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14805 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14806 # if the path contains ";" then we assume it to be the separator
14807 # otherwise default to the standard path separator (i.e. ":") - it is
14808 # assumed that no part of a normal pathname contains ";" but that should
14809 # okay in the real world where ";" in dirpaths is itself problematic.
14810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14817 need_lib_prefix=unknown
14818 hardcode_into_libs=no
14820 # when you set need_version to no, make sure it does not cause -set_version
14821 # flags to be left without arguments
14822 need_version=unknown
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14828 shlibpath_var=LIBPATH
14830 # AIX 3 has no versioning support, so we append a major version to the name.
14831 soname_spec='${libname}${release}${shared_ext}$major'
14838 hardcode_into_libs=yes
14839 if test "$host_cpu" = ia64; then
14840 # AIX 5 supports IA64
14841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14842 shlibpath_var=LD_LIBRARY_PATH
14844 # With GCC up to 2.95.x, collect2 would create an import file
14845 # for dependence libraries. The import file would start with
14846 # the line `#! .'. This would cause the generated library to
14847 # depend on `.', always an invalid library. This was fixed in
14848 # development snapshots of GCC prior to 3.0.
14850 aix4 | aix4.[01] | aix4.[01].*)
14851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14853 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14856 can_build_shared=no
14860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14861 # soname into executable. Probably we can add versioning support to
14862 # collect2, so additional links can be useful in future.
14863 if test "$aix_use_runtimelinking" = yes; then
14864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14865 # instead of lib<name>.a to let people know that these are not
14866 # typical AIX shared libraries.
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 # We preserve .a as extension for shared libraries through AIX4.2
14870 # and later when we are not doing run time linking.
14871 library_names_spec='${libname}${release}.a $libname.a'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LIBPATH
14879 library_names_spec='$libname.ixlibrary $libname.a'
14880 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14881 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'
14885 library_names_spec='${libname}${shared_ext}'
14886 dynamic_linker="$host_os ld.so"
14887 shlibpath_var=LIBRARY_PATH
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 soname_spec='${libname}${release}${shared_ext}$major'
14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14899 # the default ld.so.conf also contains /usr/contrib/lib and
14900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14901 # libtool to hard-code these into programs
14904 cygwin* | mingw* | pw32*)
14905 version_type=windows
14910 case $GCC,$host_os in
14911 yes,cygwin* | yes,mingw* | yes,pw32*)
14912 library_names_spec='$libname.dll.a'
14913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14914 postinstall_cmds='base_file=`basename \${file}`~
14915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14916 dldir=$destdir/`dirname \$dlpath`~
14917 test -d \$dldir || mkdir -p \$dldir~
14918 $install_prog $dir/$dlname \$dldir/$dlname'
14919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14920 dlpath=$dir/\$dldll~
14922 shlibpath_overrides_runpath=yes
14926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14931 # MinGW DLLs use traditional 'lib' prefix
14932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14934 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14935 # It is most probably a Windows format PATH printed by
14936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14937 # path with ; separators, and with drive letters. We can handle the
14938 # drive letters (cygwin fileutils understands them), so leave them,
14939 # especially as we might pass files found there to a mingw objdump,
14940 # which wouldn't understand a cygwinified path. Ahh.
14941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14947 # pw32 DLLs use 'pw' prefix rather than 'lib'
14948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14957 dynamic_linker='Win32 ld.exe'
14958 # FIXME: first we should search . and the directory the executable is in
14962 darwin* | rhapsody*)
14963 dynamic_linker="$host_os dyld"
14964 version_type=darwin
14967 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14968 soname_spec='${libname}${release}${major}$shared_ext'
14969 shlibpath_overrides_runpath=yes
14970 shlibpath_var=DYLD_LIBRARY_PATH
14971 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14972 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14973 if test "$GCC" = yes; then
14974 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14976 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 shlibpath_var=LD_LIBRARY_PATH
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 shlibpath_overrides_runpath=no
15002 hardcode_into_libs=yes
15003 dynamic_linker='GNU ld.so'
15007 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15008 version_type=freebsd-$objformat
15009 case $version_type in
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15020 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=yes
15025 freebsd3.01* | freebsdelf3.01*)
15026 shlibpath_overrides_runpath=yes
15027 hardcode_into_libs=yes
15030 shlibpath_overrides_runpath=no
15031 hardcode_into_libs=yes
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 shlibpath_var=LD_LIBRARY_PATH
15043 hardcode_into_libs=yes
15046 hpux9* | hpux10* | hpux11*)
15047 # Give a soname corresponding to the major version so that dld.sl refuses to
15048 # link against other versions.
15052 case "$host_cpu" in
15055 hardcode_into_libs=yes
15056 dynamic_linker="$host_os dld.so"
15057 shlibpath_var=LD_LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 soname_spec='${libname}${release}${shared_ext}$major'
15061 if test "X$HPUX_IA64_MODE" = X32; then
15062 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15064 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15070 hardcode_into_libs=yes
15071 dynamic_linker="$host_os dld.sl"
15072 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15081 dynamic_linker="$host_os dld.sl"
15082 shlibpath_var=SHLIB_PATH
15083 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085 soname_spec='${libname}${release}${shared_ext}$major'
15088 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15089 postinstall_cmds='chmod 555 $lib'
15092 irix5* | irix6* | nonstopux*)
15094 nonstopux*) version_type=nonstopux ;;
15096 if test "$lt_cv_prog_gnu_ld" = yes; then
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15107 irix5* | nonstopux*)
15108 libsuff= shlibsuff=
15111 case $LD in # libtool.m4 will add one of these switches to LD
15112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15113 libsuff= shlibsuff= libmagic=32-bit;;
15114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15115 libsuff=32 shlibsuff=N32 libmagic=N32;;
15116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15118 *) libsuff= shlibsuff= libmagic=never-match;;
15122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15123 shlibpath_overrides_runpath=no
15124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15126 hardcode_into_libs=yes
15129 # No shared lib support for Linux oldld, aout, or coff.
15130 linux*oldld* | linux*aout* | linux*coff*)
15134 # This must be Linux ELF.
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=no
15144 # This implies no fast_install, which is unacceptable.
15145 # Some rework will be needed to allow for fast_install
15146 # before this can be enabled.
15147 hardcode_into_libs=yes
15149 # find out which ABI we are using
15151 case "$host_cpu" in
15152 x86_64*|s390x*|powerpc64*)
15153 echo '#line 15153 "configure"' > conftest.$ac_ext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15155 (eval $ac_compile) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; then
15159 case `/usr/bin/file conftest.$ac_objext` in
15162 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15170 # Append ld.so.conf contents to the search path
15171 if test -f /etc/ld.so.conf; then
15172 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15173 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15176 # We used to test for /lib/ld.so.1 and disable shared libraries on
15177 # powerpc, because MkLinux only supported shared libraries with the
15178 # GNU dynamic linker. Since this was broken with cross compilers,
15179 # most powerpc-linux boxes support dynamic linking these days and
15180 # people can always --disable-shared, the test was removed, and we
15181 # assume the GNU/Linux dynamic linker is in use.
15182 dynamic_linker='GNU/Linux ld.so'
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=no
15193 hardcode_into_libs=yes
15194 dynamic_linker='GNU ld.so'
15201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204 dynamic_linker='NetBSD (a.out) ld.so'
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 dynamic_linker='NetBSD ld.elf_so'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15212 hardcode_into_libs=yes
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 shlibpath_overrides_runpath=yes
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=yes
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15241 openbsd2.[89] | openbsd2.[89].*)
15242 shlibpath_overrides_runpath=no
15245 shlibpath_overrides_runpath=yes
15249 shlibpath_overrides_runpath=yes
15254 libname_spec='$name'
15257 library_names_spec='$libname${shared_ext} $libname.a'
15258 dynamic_linker='OS/2 ld.exe'
15259 shlibpath_var=LIBPATH
15262 osf3* | osf4* | osf5*)
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15270 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 shlibpath_var=LD_LIBRARY_PATH
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 shlibpath_overrides_runpath=yes
15288 hardcode_into_libs=yes
15289 # ldd complains unless libraries are executable
15290 postinstall_cmds='chmod +x $lib'
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15297 shlibpath_var=LD_LIBRARY_PATH
15298 shlibpath_overrides_runpath=yes
15299 if test "$with_gnu_ld" = yes; then
15305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 case $host_vendor in
15312 shlibpath_overrides_runpath=no
15314 export_dynamic_flag_spec='${wl}-Blargedynsym'
15315 runpath_var=LD_RUN_PATH
15323 shlibpath_overrides_runpath=no
15324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15330 if test -d /usr/nec ;then
15332 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15333 soname_spec='$libname${shared_ext}.$major'
15334 shlibpath_var=LD_LIBRARY_PATH
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
15349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15350 echo "${ECHO_T}$dynamic_linker" >&6; }
15351 test "$dynamic_linker" = no && can_build_shared=no
15353 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15354 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15355 hardcode_action_F77=
15356 if test -n "$hardcode_libdir_flag_spec_F77" || \
15357 test -n "$runpath_var F77" || \
15358 test "X$hardcode_automatic_F77"="Xyes" ; then
15360 # We can hardcode non-existant directories.
15361 if test "$hardcode_direct_F77" != no &&
15362 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15363 # have to relink, otherwise we might link with an installed library
15364 # when we should be linking with a yet-to-be-installed one
15365 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15366 test "$hardcode_minus_L_F77" != no; then
15367 # Linking always hardcodes the temporary library directory.
15368 hardcode_action_F77=relink
15370 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15371 hardcode_action_F77=immediate
15374 # We cannot hardcode anything, or else we can only hardcode existing
15376 hardcode_action_F77=unsupported
15378 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15379 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15381 if test "$hardcode_action_F77" = relink; then
15382 # Fast installation is not supported
15383 enable_fast_install=no
15384 elif test "$shlibpath_overrides_runpath" = yes ||
15385 test "$enable_shared" = no; then
15386 # Fast installation is not necessary
15387 enable_fast_install=needless
15392 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15393 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15394 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15395 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15396 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15397 { echo "$as_me:$LINENO: result: yes" >&5
15398 echo "${ECHO_T}yes" >&6; }
15400 # FIXME - insert some real tests, host_os isn't really good enough
15403 if test -n "$STRIP" ; then
15404 striplib="$STRIP -x"
15405 { echo "$as_me:$LINENO: result: yes" >&5
15406 echo "${ECHO_T}yes" >&6; }
15408 { echo "$as_me:$LINENO: result: no" >&5
15409 echo "${ECHO_T}no" >&6; }
15413 { echo "$as_me:$LINENO: result: no" >&5
15414 echo "${ECHO_T}no" >&6; }
15421 # The else clause should only fire when bootstrapping the
15422 # libtool distribution, otherwise you forgot to ship ltmain.sh
15423 # with your package, and you will get complaints that there are
15424 # no rules to generate ltmain.sh.
15425 if test -f "$ltmain"; then
15426 # See if we are running on zsh, and set the options which allow our commands through
15427 # without removal of \ escapes.
15428 if test -n "${ZSH_VERSION+set}" ; then
15429 setopt NO_GLOB_SUBST
15431 # Now quote all the things that may contain metacharacters while being
15432 # careful not to overquote the AC_SUBSTed values. We take copies of the
15433 # variables and quote the copies for generation of the libtool script.
15434 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15436 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15437 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15438 deplibs_check_method reload_flag reload_cmds need_locks \
15439 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15440 lt_cv_sys_global_symbol_to_c_name_address \
15441 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15442 old_postinstall_cmds old_postuninstall_cmds \
15446 lt_prog_compiler_wl_F77 \
15447 lt_prog_compiler_pic_F77 \
15448 lt_prog_compiler_static_F77 \
15449 lt_prog_compiler_no_builtin_flag_F77 \
15450 export_dynamic_flag_spec_F77 \
15451 thread_safe_flag_spec_F77 \
15452 whole_archive_flag_spec_F77 \
15453 enable_shared_with_static_runtimes_F77 \
15454 old_archive_cmds_F77 \
15455 old_archive_from_new_cmds_F77 \
15456 predep_objects_F77 \
15457 postdep_objects_F77 \
15460 compiler_lib_search_path_F77 \
15462 archive_expsym_cmds_F77 \
15463 postinstall_cmds_F77 \
15464 postuninstall_cmds_F77 \
15465 old_archive_from_expsyms_cmds_F77 \
15466 allow_undefined_flag_F77 \
15467 no_undefined_flag_F77 \
15468 export_symbols_cmds_F77 \
15469 hardcode_libdir_flag_spec_F77 \
15470 hardcode_libdir_flag_spec_ld_F77 \
15471 hardcode_libdir_separator_F77 \
15472 hardcode_automatic_F77 \
15474 module_expsym_cmds_F77 \
15475 lt_cv_prog_compiler_c_o_F77 \
15476 exclude_expsyms_F77 \
15477 include_expsyms_F77; do
15480 old_archive_cmds_F77 | \
15481 old_archive_from_new_cmds_F77 | \
15482 archive_cmds_F77 | \
15483 archive_expsym_cmds_F77 | \
15484 module_cmds_F77 | \
15485 module_expsym_cmds_F77 | \
15486 old_archive_from_expsyms_cmds_F77 | \
15487 export_symbols_cmds_F77 | \
15488 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15489 postinstall_cmds | postuninstall_cmds | \
15490 old_postinstall_cmds | old_postuninstall_cmds | \
15491 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15492 # Double-quote double-evaled strings.
15493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15502 *'\$0 --fallback-echo"')
15503 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15509 cat <<__EOF__ >> "$cfgfile"
15510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15514 # Shell to use when invoking shell scripts.
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15520 # Whether or not to build static libraries.
15521 build_old_libs=$enable_static
15523 # Whether or not to add -lc for building shared libraries.
15524 build_libtool_need_lc=$archive_cmds_need_lc_F77
15526 # Whether or not to disallow shared libs when runtime libs are static
15527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15529 # Whether or not to optimize for fast installation.
15530 fast_install=$enable_fast_install
15533 host_alias=$host_alias
15536 # An echo program that does not interpret backslashes.
15541 AR_FLAGS=$lt_AR_FLAGS
15546 # A language-specific compiler.
15547 CC=$lt_compiler_F77
15549 # Is the compiler the GNU C compiler?
15555 # The linker used to build libraries.
15558 # Whether we need hard or soft links.
15561 # A BSD-compatible nm program.
15564 # A symbol stripping program
15567 # Used to examine libraries when file_magic_cmd begins "file"
15568 MAGIC_CMD=$MAGIC_CMD
15570 # Used on cygwin: DLL creation program.
15573 # Used on cygwin: object dumper.
15576 # Used on cygwin: assembler.
15579 # The name of the directory that contains temporary libtool files.
15582 # How to create reloadable object files.
15583 reload_flag=$lt_reload_flag
15584 reload_cmds=$lt_reload_cmds
15586 # How to pass a linker flag through the compiler.
15587 wl=$lt_lt_prog_compiler_wl_F77
15589 # Object file suffix (normally "o").
15590 objext="$ac_objext"
15592 # Old archive suffix (normally "a").
15595 # Shared library suffix (normally ".so").
15596 shrext_cmds='$shrext_cmds'
15598 # Executable file suffix (normally "").
15601 # Additional compiler flags for building library objects.
15602 pic_flag=$lt_lt_prog_compiler_pic_F77
15605 # What is the maximum length of a command?
15606 max_cmd_len=$lt_cv_sys_max_cmd_len
15608 # Does compiler simultaneously support -c and -o options?
15609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15611 # Must we lock files when doing compilation ?
15612 need_locks=$lt_need_locks
15614 # Do we need the lib prefix for modules?
15615 need_lib_prefix=$need_lib_prefix
15617 # Do we need a version for libraries?
15618 need_version=$need_version
15620 # Whether dlopen is supported.
15621 dlopen_support=$enable_dlopen
15623 # Whether dlopen of programs is supported.
15624 dlopen_self=$enable_dlopen_self
15626 # Whether dlopen of statically linked programs is supported.
15627 dlopen_self_static=$enable_dlopen_self_static
15629 # Compiler flag to prevent dynamic linking.
15630 link_static_flag=$lt_lt_prog_compiler_static_F77
15632 # Compiler flag to turn off builtin functions.
15633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15635 # Compiler flag to allow reflexive dlopens.
15636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15638 # Compiler flag to generate shared objects directly from archives.
15639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15641 # Compiler flag to generate thread-safe objects.
15642 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15644 # Library versioning type.
15645 version_type=$version_type
15647 # Format of library name prefix.
15648 libname_spec=$lt_libname_spec
15650 # List of archive names. First name is the real one, the rest are links.
15651 # The last name is the one that the linker finds with -lNAME.
15652 library_names_spec=$lt_library_names_spec
15654 # The coded name of the library, if different from the real name.
15655 soname_spec=$lt_soname_spec
15657 # Commands used to build and install an old-style archive.
15659 old_archive_cmds=$lt_old_archive_cmds_F77
15660 old_postinstall_cmds=$lt_old_postinstall_cmds
15661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15663 # Create an old-style archive from a shared archive.
15664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15666 # Create a temporary old-style archive to link instead of a shared archive.
15667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15669 # Commands used to build and install a shared archive.
15670 archive_cmds=$lt_archive_cmds_F77
15671 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15672 postinstall_cmds=$lt_postinstall_cmds
15673 postuninstall_cmds=$lt_postuninstall_cmds
15675 # Commands used to build a loadable module (assumed same as above if empty)
15676 module_cmds=$lt_module_cmds_F77
15677 module_expsym_cmds=$lt_module_expsym_cmds_F77
15679 # Commands to strip libraries.
15680 old_striplib=$lt_old_striplib
15681 striplib=$lt_striplib
15683 # Dependencies to place before the objects being linked to create a
15685 predep_objects=$lt_predep_objects_F77
15687 # Dependencies to place after the objects being linked to create a
15689 postdep_objects=$lt_postdep_objects_F77
15691 # Dependencies to place before the objects being linked to create a
15693 predeps=$lt_predeps_F77
15695 # Dependencies to place after the objects being linked to create a
15697 postdeps=$lt_postdeps_F77
15699 # The library search path used internally by the compiler when linking
15700 # a shared library.
15701 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15703 # Method to check whether dependent libraries are shared objects.
15704 deplibs_check_method=$lt_deplibs_check_method
15706 # Command to use when deplibs_check_method == file_magic.
15707 file_magic_cmd=$lt_file_magic_cmd
15709 # Flag that allows shared libraries with undefined symbols to be built.
15710 allow_undefined_flag=$lt_allow_undefined_flag_F77
15712 # Flag that forces no undefined symbols.
15713 no_undefined_flag=$lt_no_undefined_flag_F77
15715 # Commands used to finish a libtool library installation in a directory.
15716 finish_cmds=$lt_finish_cmds
15718 # Same as above, but a single script fragment to be evaled but not shown.
15719 finish_eval=$lt_finish_eval
15721 # Take the output of nm and produce a listing of raw symbols and C names.
15722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15724 # Transform the output of nm in a proper C declaration
15725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15727 # Transform the output of nm in a C name address pair
15728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15730 # This is the shared library runtime path variable.
15731 runpath_var=$runpath_var
15733 # This is the shared library path variable.
15734 shlibpath_var=$shlibpath_var
15736 # Is shlibpath searched before the hard-coded library search path?
15737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15739 # How to hardcode a shared library path into an executable.
15740 hardcode_action=$hardcode_action_F77
15742 # Whether we should hardcode library paths into libraries.
15743 hardcode_into_libs=$hardcode_into_libs
15745 # Flag to hardcode \$libdir into a binary during linking.
15746 # This must work even if \$libdir does not exist.
15747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15749 # If ld is used when linking, flag to hardcode \$libdir into
15750 # a binary during linking. This must work even if \$libdir does
15752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15754 # Whether we need a single -rpath flag with a separated argument.
15755 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15758 # resulting binary.
15759 hardcode_direct=$hardcode_direct_F77
15761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15762 # resulting binary.
15763 hardcode_minus_L=$hardcode_minus_L_F77
15765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15766 # the resulting binary.
15767 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15769 # Set to yes if building a shared library automatically hardcodes DIR into the library
15770 # and all subsequent libraries and executables linked against it.
15771 hardcode_automatic=$hardcode_automatic_F77
15773 # Variables whose values should be saved in libtool wrapper scripts and
15774 # restored at relink time.
15775 variables_saved_for_relink="$variables_saved_for_relink"
15777 # Whether libtool must link a program against all its dependency libraries.
15778 link_all_deplibs=$link_all_deplibs_F77
15780 # Compile-time system search path for libraries
15781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15783 # Run-time system search path for libraries
15784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15786 # Fix the shell variable \$srcfile for the compiler.
15787 fix_srcfile_path="$fix_srcfile_path_F77"
15789 # Set to yes if exported symbols are required.
15790 always_export_symbols=$always_export_symbols_F77
15792 # The commands to list exported symbols.
15793 export_symbols_cmds=$lt_export_symbols_cmds_F77
15795 # The commands to extract the exported symbol list from a shared archive.
15796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15798 # Symbols that should not be listed in the preloaded symbols.
15799 exclude_expsyms=$lt_exclude_expsyms_F77
15801 # Symbols that must always be exported.
15802 include_expsyms=$lt_include_expsyms_F77
15804 # ### END LIBTOOL TAG CONFIG: $tagname
15810 # If there is no Makefile yet, we rely on a make rule to execute
15811 # `config.status --recheck' to rerun these tests and create the
15812 # libtool script then.
15813 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15814 if test -f "$ltmain_in"; then
15815 test -f Makefile && make "$ltmain"
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15834 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15837 # Source file extension for Java test sources.
15840 # Object file extension for compiled Java test sources.
15844 # Code to be used in simple compile tests
15845 lt_simple_compile_test_code="class foo {}\n"
15847 # Code to be used in simple link tests
15848 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15852 # If no C compiler was specified, use CC.
15855 # Allow CC to be a program name with arguments.
15859 # Allow CC to be a program name with arguments.
15865 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15866 archive_cmds_need_lc_GCJ=no
15869 ## There is no encapsulation within the following macros, do not change
15870 ## the running order or otherwise move them around unless you know exactly
15871 ## what you are doing...
15873 lt_prog_compiler_no_builtin_flag_GCJ=
15875 if test "$GCC" = yes; then
15876 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15879 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15880 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 lt_cv_prog_compiler_rtti_exceptions=no
15885 ac_outfile=conftest.$ac_objext
15886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15887 lt_compiler_flag="-fno-rtti -fno-exceptions"
15888 # Insert the option either (1) after the last *FLAGS variable, or
15889 # (2) before a word containing "conftest.", or (3) at the end.
15890 # Note that $ac_compile itself does not contain backslashes and begins
15891 # with a dollar sign (not a hyphen), so the echo should work correctly.
15892 # The option is referenced via a variable to avoid confusing sed.
15893 lt_compile=`echo "$ac_compile" | $SED \
15894 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15896 -e 's:$: $lt_compiler_flag:'`
15897 (eval echo "\"\$as_me:15897: $lt_compile\"" >&5)
15898 (eval "$lt_compile" 2>conftest.err)
15900 cat conftest.err >&5
15901 echo "$as_me:15901: \$? = $ac_status" >&5
15902 if (exit $ac_status) && test -s "$ac_outfile"; then
15903 # The compiler can only warn and ignore the option if not recognized
15904 # So say no if there are warnings
15905 if test ! -s conftest.err; then
15906 lt_cv_prog_compiler_rtti_exceptions=yes
15912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15913 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15915 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15916 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15923 lt_prog_compiler_wl_GCJ=
15924 lt_prog_compiler_pic_GCJ=
15925 lt_prog_compiler_static_GCJ=
15927 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15930 if test "$GCC" = yes; then
15931 lt_prog_compiler_wl_GCJ='-Wl,'
15932 lt_prog_compiler_static_GCJ='-static'
15936 # All AIX code is PIC.
15937 if test "$host_cpu" = ia64; then
15938 # AIX 5 now supports IA64 processor
15939 lt_prog_compiler_static_GCJ='-Bstatic'
15944 # FIXME: we need at least 68020 code to build shared libraries, but
15945 # adding the `-m68020' flag to GCC prevents building anything better,
15947 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15950 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15951 # PIC is the default for these OSes.
15954 mingw* | pw32* | os2*)
15955 # This hack is so that the source file can tell whether it is being
15956 # built for inclusion in a dll (and should export symbols for example).
15957 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15960 darwin* | rhapsody*)
15961 # PIC is the default on this platform
15962 # Common symbols not allowed in MH_DYLIB files
15963 lt_prog_compiler_pic_GCJ='-fno-common'
15967 # Just because we use GCC doesn't mean we suddenly get shared libraries
15968 # on systems that don't support them.
15969 lt_prog_compiler_can_build_shared_GCJ=no
15974 if test -d /usr/nec; then
15975 lt_prog_compiler_pic_GCJ=-Kconform_pic
15980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15981 # not for PA HP-UX.
15982 case "$host_cpu" in
15987 lt_prog_compiler_pic_GCJ='-fPIC'
15993 lt_prog_compiler_pic_GCJ='-fPIC'
15997 # PORTME Check for flag to pass linker flags through the system compiler.
16000 lt_prog_compiler_wl_GCJ='-Wl,'
16001 if test "$host_cpu" = ia64; then
16002 # AIX 5 now supports IA64 processor
16003 lt_prog_compiler_static_GCJ='-Bstatic'
16005 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16009 mingw* | pw32* | os2*)
16010 # This hack is so that the source file can tell whether it is being
16011 # built for inclusion in a dll (and should export symbols for example).
16012 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16015 hpux9* | hpux10* | hpux11*)
16016 lt_prog_compiler_wl_GCJ='-Wl,'
16017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16018 # not for PA HP-UX.
16019 case "$host_cpu" in
16024 lt_prog_compiler_pic_GCJ='+Z'
16027 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16028 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16031 irix5* | irix6* | nonstopux*)
16032 lt_prog_compiler_wl_GCJ='-Wl,'
16033 # PIC (with -KPIC) is the default.
16034 lt_prog_compiler_static_GCJ='-non_shared'
16038 lt_prog_compiler_pic_GCJ='-KPIC'
16039 lt_prog_compiler_static_GCJ='-Bstatic'
16045 lt_prog_compiler_wl_GCJ='-Wl,'
16046 lt_prog_compiler_pic_GCJ='-KPIC'
16047 lt_prog_compiler_static_GCJ='-static'
16050 lt_prog_compiler_wl_GCJ='-Wl,'
16051 # All Alpha code is PIC.
16052 lt_prog_compiler_static_GCJ='-non_shared'
16057 osf3* | osf4* | osf5*)
16058 lt_prog_compiler_wl_GCJ='-Wl,'
16059 # All OSF/1 code is PIC.
16060 lt_prog_compiler_static_GCJ='-non_shared'
16064 lt_prog_compiler_pic_GCJ='-Kpic'
16065 lt_prog_compiler_static_GCJ='-dn'
16069 lt_prog_compiler_wl_GCJ='-Wl,'
16070 lt_prog_compiler_pic_GCJ='-KPIC'
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16075 lt_prog_compiler_wl_GCJ='-Qoption ld '
16076 lt_prog_compiler_pic_GCJ='-PIC'
16077 lt_prog_compiler_static_GCJ='-Bstatic'
16080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16081 lt_prog_compiler_wl_GCJ='-Wl,'
16082 lt_prog_compiler_pic_GCJ='-KPIC'
16083 lt_prog_compiler_static_GCJ='-Bstatic'
16087 if test -d /usr/nec ;then
16088 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16089 lt_prog_compiler_static_GCJ='-Bstatic'
16094 lt_prog_compiler_pic_GCJ='-pic'
16095 lt_prog_compiler_static_GCJ='-Bstatic'
16099 lt_prog_compiler_can_build_shared_GCJ=no
16104 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16105 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16108 # Check to make sure the PIC flag actually works.
16110 if test -n "$lt_prog_compiler_pic_GCJ"; then
16112 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16114 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 lt_prog_compiler_pic_works_GCJ=no
16118 ac_outfile=conftest.$ac_objext
16119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16120 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16121 # Insert the option either (1) after the last *FLAGS variable, or
16122 # (2) before a word containing "conftest.", or (3) at the end.
16123 # Note that $ac_compile itself does not contain backslashes and begins
16124 # with a dollar sign (not a hyphen), so the echo should work correctly.
16125 # The option is referenced via a variable to avoid confusing sed.
16126 lt_compile=`echo "$ac_compile" | $SED \
16127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16129 -e 's:$: $lt_compiler_flag:'`
16130 (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
16131 (eval "$lt_compile" 2>conftest.err)
16133 cat conftest.err >&5
16134 echo "$as_me:16134: \$? = $ac_status" >&5
16135 if (exit $ac_status) && test -s "$ac_outfile"; then
16136 # The compiler can only warn and ignore the option if not recognized
16137 # So say no if there are warnings
16138 if test ! -s conftest.err; then
16139 lt_prog_compiler_pic_works_GCJ=yes
16145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16146 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16148 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16149 case $lt_prog_compiler_pic_GCJ in
16151 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16154 lt_prog_compiler_pic_GCJ=
16155 lt_prog_compiler_can_build_shared_GCJ=no
16160 # For platforms which do not support PIC, -DPIC is meaningless:
16162 lt_prog_compiler_pic_GCJ=
16165 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16169 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16170 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16171 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 lt_cv_prog_compiler_c_o_GCJ=no
16175 $rm -r conftest 2>/dev/null
16179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16181 lt_compiler_flag="-o out/conftest2.$ac_objext"
16182 # Insert the option either (1) after the last *FLAGS variable, or
16183 # (2) before a word containing "conftest.", or (3) at the end.
16184 # Note that $ac_compile itself does not contain backslashes and begins
16185 # with a dollar sign (not a hyphen), so the echo should work correctly.
16186 lt_compile=`echo "$ac_compile" | $SED \
16187 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16189 -e 's:$: $lt_compiler_flag:'`
16190 (eval echo "\"\$as_me:16190: $lt_compile\"" >&5)
16191 (eval "$lt_compile" 2>out/conftest.err)
16193 cat out/conftest.err >&5
16194 echo "$as_me:16194: \$? = $ac_status" >&5
16195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16197 # The compiler can only warn and ignore the option if not recognized
16198 # So say no if there are warnings
16199 if test ! -s out/conftest.err; then
16200 lt_cv_prog_compiler_c_o_GCJ=yes
16205 # SGI C++ compiler will create directory out/ii_files/ for
16206 # template instantiation
16207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16208 $rm out/* && rmdir out
16214 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16218 hard_links="nottested"
16219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16220 # do not overwrite the value of need_locks provided by the user
16221 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16227 ln conftest.a conftest.b 2>&5 || hard_links=no
16228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229 { echo "$as_me:$LINENO: result: $hard_links" >&5
16230 echo "${ECHO_T}$hard_links" >&6; }
16231 if test "$hard_links" = no; then
16232 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16240 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16244 allow_undefined_flag_GCJ=
16245 enable_shared_with_static_runtimes_GCJ=no
16247 archive_expsym_cmds_GCJ=
16248 old_archive_From_new_cmds_GCJ=
16249 old_archive_from_expsyms_cmds_GCJ=
16250 export_dynamic_flag_spec_GCJ=
16251 whole_archive_flag_spec_GCJ=
16252 thread_safe_flag_spec_GCJ=
16253 hardcode_libdir_flag_spec_GCJ=
16254 hardcode_libdir_flag_spec_ld_GCJ=
16255 hardcode_libdir_separator_GCJ=
16256 hardcode_direct_GCJ=no
16257 hardcode_minus_L_GCJ=no
16258 hardcode_shlibpath_var_GCJ=unsupported
16259 link_all_deplibs_GCJ=unknown
16260 hardcode_automatic_GCJ=no
16262 module_expsym_cmds_GCJ=
16263 always_export_symbols_GCJ=no
16264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16265 # include_expsyms should be a list of space-separated symbols to be *always*
16266 # included in the symbol list
16267 include_expsyms_GCJ=
16268 # exclude_expsyms can be an extended regexp of symbols to exclude
16269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16271 # as well as any symbol that contains `d'.
16272 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16274 # platforms (ab)use it in PIC code, but their linkers get confused if
16275 # the symbol is explicitly referenced. Since portable code cannot
16276 # rely on this symbol name, it's probably fine to never include it in
16277 # preloaded symbol tables.
16278 extract_expsyms_cmds=
16281 cygwin* | mingw* | pw32*)
16282 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16283 # When not using gcc, we currently assume that we are using
16284 # Microsoft Visual C++.
16285 if test "$GCC" != yes; then
16295 if test "$with_gnu_ld" = yes; then
16296 # If archive_cmds runs LD, not CC, wlarc should be empty
16299 # See if GNU ld supports shared libraries.
16301 aix3* | aix4* | aix5*)
16302 # On AIX/PPC, the GNU linker is very broken
16303 if test "$host_cpu" != ia64; then
16307 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16308 *** to be unable to reliably create shared libraries on AIX.
16309 *** Therefore, libtool is disabling shared libraries support. If you
16310 *** really care for shared libraries, you may want to modify your PATH
16311 *** so that a non-GNU linker is found, and then restart.
16318 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)'
16319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16320 hardcode_minus_L_GCJ=yes
16322 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16323 # that the semantics of dynamic libraries on AmigaOS, at least up
16324 # to version 4, is to share data among multiple programs linked
16325 # with the same dynamic library. Since this doesn't match the
16326 # behavior of shared libraries on other platforms, we can't use
16332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16333 allow_undefined_flag_GCJ=unsupported
16334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16335 # support --undefined. This deserves some investigation. FIXME
16336 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16342 cygwin* | mingw* | pw32*)
16343 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16344 # as there is no search path for DLLs.
16345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16346 allow_undefined_flag_GCJ=unsupported
16347 always_export_symbols_GCJ=no
16348 enable_shared_with_static_runtimes_GCJ=yes
16349 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16351 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16352 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16353 # If the export-symbols file already is a .def file (1st line
16354 # is EXPORTS), use it as is; otherwise, prepend...
16355 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16356 cp $export_symbols $output_objdir/$soname.def;
16358 echo EXPORTS > $output_objdir/$soname.def;
16359 cat $export_symbols >> $output_objdir/$soname.def;
16361 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16369 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16372 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16378 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16383 *** create shared libraries on Solaris systems. Therefore, libtool
16384 *** is disabling shared libraries support. We urge you to upgrade GNU
16385 *** binutils to release 2.9.1 or newer. Another option is to modify
16386 *** your PATH or compiler configuration so that the native linker is
16387 *** used, and then restart.
16390 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16391 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16392 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16399 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16401 hardcode_direct_GCJ=yes
16402 hardcode_shlibpath_var_GCJ=no
16406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16407 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16408 archive_cmds_GCJ="$tmp_archive_cmds"
16409 supports_anon_versioning=no
16410 case `$LD -v 2>/dev/null` in
16411 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16412 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16413 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16414 *\ 2.11.*) ;; # other 2.11 versions
16415 *) supports_anon_versioning=yes ;;
16417 if test $supports_anon_versioning = yes; then
16418 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16420 $echo "local: *; };" >> $output_objdir/$libname.ver~
16421 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16423 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16432 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16433 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16440 if test "$ld_shlibs_GCJ" = yes; then
16441 runpath_var=LD_RUN_PATH
16442 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16443 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16444 # ancient GNU ld didn't support --whole-archive et. al.
16445 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16446 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16448 whole_archive_flag_spec_GCJ=
16452 # PORTME fill in a description of your system's linker (not GNU ld)
16455 allow_undefined_flag_GCJ=unsupported
16456 always_export_symbols_GCJ=yes
16457 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'
16458 # Note: this linker hardcodes the directories in LIBPATH if there
16459 # are no directories specified by -L.
16460 hardcode_minus_L_GCJ=yes
16461 if test "$GCC" = yes && test -z "$link_static_flag"; then
16462 # Neither direct hardcoding nor static linking is supported with a
16464 hardcode_direct_GCJ=unsupported
16469 if test "$host_cpu" = ia64; then
16470 # On IA64, the linker does run time linking by default, so we don't
16471 # have to do anything special.
16472 aix_use_runtimelinking=no
16473 exp_sym_flag='-Bexport'
16476 # If we're using GNU nm, then we don't want the "-C" option.
16477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16478 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16479 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'
16481 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'
16483 aix_use_runtimelinking=no
16485 # Test if we are trying to use run time linking or normal
16486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16487 # need to do runtime linking.
16488 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16489 for ld_flag in $LDFLAGS; do
16490 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16491 aix_use_runtimelinking=yes
16497 exp_sym_flag='-bexport'
16498 no_entry_flag='-bnoentry'
16501 # When large executables or shared objects are built, AIX ld can
16502 # have problems creating the table of contents. If linking a library
16503 # or program results in "error TOC overflow" add -mminimal-toc to
16504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16507 archive_cmds_GCJ=''
16508 hardcode_direct_GCJ=yes
16509 hardcode_libdir_separator_GCJ=':'
16510 link_all_deplibs_GCJ=yes
16512 if test "$GCC" = yes; then
16513 case $host_os in aix4.012|aix4.012.*)
16514 # We only want to do this on AIX 4.2 and lower, the check
16515 # below for broken collect2 doesn't work under 4.3+
16516 collect2name=`${CC} -print-prog-name=collect2`
16517 if test -f "$collect2name" && \
16518 strings "$collect2name" | grep resolve_lib_name >/dev/null
16520 # We have reworked collect2
16521 hardcode_direct_GCJ=yes
16523 # We have old collect2
16524 hardcode_direct_GCJ=unsupported
16525 # It fails to find uninstalled libraries when the uninstalled
16526 # path is not listed in the libpath. Setting hardcode_minus_L
16527 # to unsupported forces relinking
16528 hardcode_minus_L_GCJ=yes
16529 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530 hardcode_libdir_separator_GCJ=
16533 shared_flag='-shared'
16536 if test "$host_cpu" = ia64; then
16537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16538 # chokes on -Wl,-G. The following line is correct:
16541 if test "$aix_use_runtimelinking" = yes; then
16542 shared_flag='${wl}-G'
16544 shared_flag='${wl}-bM:SRE'
16549 # It seems that -bexpall does not export symbols beginning with
16550 # underscore (_), so it is better to generate a list of symbols to export.
16551 always_export_symbols_GCJ=yes
16552 if test "$aix_use_runtimelinking" = yes; then
16553 # Warning - without using the other runtime loading flags (-brtl),
16554 # -berok will link without error, but may produce a broken library.
16555 allow_undefined_flag_GCJ='-berok'
16556 # Determine the default libpath from the value encoded in an empty executable.
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16581 grep -v '^ *+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16593 # Check for a 64-bit object if we didn't find anything.
16594 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604 conftest$ac_exeext conftest.$ac_ext
16605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16607 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16608 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16610 if test "$host_cpu" = ia64; then
16611 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16612 allow_undefined_flag_GCJ="-z nodefs"
16613 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16615 # Determine the default libpath from the value encoded in an empty executable.
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest$ac_exeext &&
16648 $as_test_x conftest$ac_exeext; then
16650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16652 # Check for a 64-bit object if we didn't find anything.
16653 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16666 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16667 # Warning - without using the other run time loading flags,
16668 # -berok will link without error, but may produce a broken library.
16669 no_undefined_flag_GCJ=' ${wl}-bernotok'
16670 allow_undefined_flag_GCJ=' ${wl}-berok'
16671 # -bexpall does not export symbols beginning with underscore (_)
16672 always_export_symbols_GCJ=yes
16673 # Exported symbols can be pulled into shared objects from archives
16674 whole_archive_flag_spec_GCJ=' '
16675 archive_cmds_need_lc_GCJ=yes
16676 # This is similar to how AIX traditionally builds it's shared libraries.
16677 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16683 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)'
16684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16685 hardcode_minus_L_GCJ=yes
16686 # see comment about different semantics on the GNU ld section
16691 export_dynamic_flag_spec_GCJ=-rdynamic
16694 cygwin* | mingw* | pw32*)
16695 # When not using gcc, we currently assume that we are using
16696 # Microsoft Visual C++.
16697 # hardcode_libdir_flag_spec is actually meaningless, as there is
16698 # no search path for DLLs.
16699 hardcode_libdir_flag_spec_GCJ=' '
16700 allow_undefined_flag_GCJ=unsupported
16701 # Tell ltmain to make .lib files, not .a files.
16703 # Tell ltmain to make .dll files, not .so files.
16705 # FIXME: Setting linknames here is a bad hack.
16706 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16707 # The linker will automatically build a .lib file if we build a DLL.
16708 old_archive_From_new_cmds_GCJ='true'
16709 # FIXME: Should let the user specify the lib program.
16710 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16711 fix_srcfile_path='`cygpath -w "$srcfile"`'
16712 enable_shared_with_static_runtimes_GCJ=yes
16715 darwin* | rhapsody*)
16716 if test "$GXX" = yes ; then
16717 archive_cmds_need_lc_GCJ=no
16719 rhapsody* | darwin1.[012])
16720 allow_undefined_flag_GCJ='-undefined suppress'
16723 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16724 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16726 case ${MACOSX_DEPLOYMENT_TARGET} in
16728 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16731 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16737 lt_int_apple_cc_single_mod=no
16738 output_verbose_link_cmd='echo'
16739 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16740 lt_int_apple_cc_single_mod=yes
16742 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16743 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16745 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16747 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16749 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16750 archive_expsym_cmds_GCJ='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}'
16752 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16754 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}'
16755 hardcode_direct_GCJ=no
16756 hardcode_automatic_GCJ=yes
16757 hardcode_shlibpath_var_GCJ=unsupported
16758 whole_archive_flag_spec_GCJ='-all_load $convenience'
16759 link_all_deplibs_GCJ=yes
16766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16768 hardcode_shlibpath_var_GCJ=no
16775 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16776 # support. Future versions do this automatically, but an explicit c++rt0.o
16777 # does not break anything, and helps significantly (at the cost of a little
16780 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16782 hardcode_direct_GCJ=yes
16783 hardcode_shlibpath_var_GCJ=no
16786 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16788 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_direct_GCJ=yes
16790 hardcode_minus_L_GCJ=yes
16791 hardcode_shlibpath_var_GCJ=no
16794 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16795 freebsd* | kfreebsd*-gnu)
16796 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16797 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16798 hardcode_direct_GCJ=yes
16799 hardcode_shlibpath_var_GCJ=no
16803 if test "$GCC" = yes; then
16804 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'
16806 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'
16808 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16809 hardcode_libdir_separator_GCJ=:
16810 hardcode_direct_GCJ=yes
16812 # hardcode_minus_L: Not really in the search PATH,
16813 # but as the default location of the library.
16814 hardcode_minus_L_GCJ=yes
16815 export_dynamic_flag_spec_GCJ='${wl}-E'
16819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16820 case "$host_cpu" in
16822 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16829 case "$host_cpu" in
16831 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16834 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16838 if test "$with_gnu_ld" = no; then
16839 case "$host_cpu" in
16841 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16842 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16843 hardcode_libdir_separator_GCJ=:
16844 hardcode_direct_GCJ=no
16845 hardcode_shlibpath_var_GCJ=no
16848 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16849 hardcode_direct_GCJ=no
16850 hardcode_shlibpath_var_GCJ=no
16852 # hardcode_minus_L: Not really in the search PATH,
16853 # but as the default location of the library.
16854 hardcode_minus_L_GCJ=yes
16857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16858 hardcode_libdir_separator_GCJ=:
16859 hardcode_direct_GCJ=yes
16860 export_dynamic_flag_spec_GCJ='${wl}-E'
16862 # hardcode_minus_L: Not really in the search PATH,
16863 # but as the default location of the library.
16864 hardcode_minus_L_GCJ=yes
16870 irix5* | irix6* | nonstopux*)
16871 if test "$GCC" = yes; then
16872 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'
16874 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'
16875 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16878 hardcode_libdir_separator_GCJ=:
16879 link_all_deplibs_GCJ=yes
16883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16886 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16888 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16889 hardcode_direct_GCJ=yes
16890 hardcode_shlibpath_var_GCJ=no
16894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895 hardcode_direct_GCJ=yes
16896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16897 hardcode_libdir_separator_GCJ=:
16898 hardcode_shlibpath_var_GCJ=no
16902 hardcode_direct_GCJ=yes
16903 hardcode_shlibpath_var_GCJ=no
16904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16905 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16907 export_dynamic_flag_spec_GCJ='${wl}-E'
16910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16915 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16916 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16923 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16924 hardcode_minus_L_GCJ=yes
16925 allow_undefined_flag_GCJ=unsupported
16926 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'
16927 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16931 if test "$GCC" = yes; then
16932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16933 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'
16935 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16936 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'
16938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16939 hardcode_libdir_separator_GCJ=:
16942 osf4* | osf5*) # as osf3* with the addition of -msym flag
16943 if test "$GCC" = yes; then
16944 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16945 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'
16946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16948 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16949 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'
16950 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~
16951 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16953 # Both c and cxx compiler support -rpath directly
16954 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16956 hardcode_libdir_separator_GCJ=:
16960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961 hardcode_shlibpath_var_GCJ=no
16962 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16963 runpath_var=LD_RUN_PATH
16964 hardcode_runpath_var=yes
16968 no_undefined_flag_GCJ=' -z text'
16969 if test "$GCC" = yes; then
16970 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16971 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16972 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16974 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16976 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979 hardcode_shlibpath_var_GCJ=no
16981 solaris2.[0-5] | solaris2.[0-5].*) ;;
16982 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16983 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16985 link_all_deplibs_GCJ=yes
16989 if test "x$host_vendor" = xsequent; then
16990 # Use $CC to link under sequent, because it throws in some extra .o
16991 # files that make .init and .fini sections work.
16992 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16994 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16996 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16997 hardcode_direct_GCJ=yes
16998 hardcode_minus_L_GCJ=yes
16999 hardcode_shlibpath_var_GCJ=no
17003 case $host_vendor in
17005 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct_GCJ=yes # is this really true???
17009 ## LD is ld it makes a PLAMLIB
17010 ## CC just makes a GrossModule.
17011 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17012 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17013 hardcode_direct_GCJ=no
17016 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17017 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17020 runpath_var='LD_RUN_PATH'
17021 hardcode_shlibpath_var_GCJ=no
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_shlibpath_var_GCJ=no
17027 export_dynamic_flag_spec_GCJ='-Bexport'
17031 if test -d /usr/nec; then
17032 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033 hardcode_shlibpath_var_GCJ=no
17034 runpath_var=LD_RUN_PATH
17035 hardcode_runpath_var=yes
17041 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17042 hardcode_direct_GCJ=yes
17043 hardcode_minus_L_GCJ=no
17044 hardcode_shlibpath_var_GCJ=no
17045 hardcode_runpath_var=yes
17046 runpath_var=LD_RUN_PATH
17049 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17050 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17051 if test "$GCC" = yes; then
17052 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17056 runpath_var='LD_RUN_PATH'
17057 hardcode_shlibpath_var_GCJ=no
17061 no_undefined_flag_GCJ=' -z text'
17062 # $CC -shared without GNU ld will not create a library from C++
17063 # object files and a static libstdc++, better avoid it by now
17064 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17065 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17066 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17067 hardcode_libdir_flag_spec_GCJ=
17068 hardcode_shlibpath_var_GCJ=no
17069 runpath_var='LD_RUN_PATH'
17073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17075 hardcode_shlibpath_var_GCJ=no
17084 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17085 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17086 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17088 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17089 if test "$GCC" = yes; then
17090 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17094 # Do we need to explicitly link libc?
17096 case "x$archive_cmds_need_lc_GCJ" in
17098 # Assume -lc should be added
17099 archive_cmds_need_lc_GCJ=yes
17101 if test "$enable_shared" = yes && test "$GCC" = yes; then
17102 case $archive_cmds_GCJ in
17104 # FIXME: we may have to deal with multi-command sequences.
17107 # Test whether the compiler implicitly links with -lc since on some
17108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17109 # to ld, don't add -lc before -lgcc.
17110 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116 (eval $ac_compile) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } 2>conftest.err; then
17122 libobjs=conftest.$ac_objext
17124 wl=$lt_prog_compiler_wl_GCJ
17130 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17131 allow_undefined_flag_GCJ=
17132 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17133 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }
17138 archive_cmds_need_lc_GCJ=no
17140 archive_cmds_need_lc_GCJ=yes
17142 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17144 cat conftest.err 1>&5
17147 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17148 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17155 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17156 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17157 library_names_spec=
17158 libname_spec='lib$name'
17162 postuninstall_cmds=
17166 shlibpath_overrides_runpath=unknown
17168 dynamic_linker="$host_os ld.so"
17169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17170 if test "$GCC" = yes; then
17171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17172 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17173 # if the path contains ";" then we assume it to be the separator
17174 # otherwise default to the standard path separator (i.e. ":") - it is
17175 # assumed that no part of a normal pathname contains ";" but that should
17176 # okay in the real world where ";" in dirpaths is itself problematic.
17177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17182 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17184 need_lib_prefix=unknown
17185 hardcode_into_libs=no
17187 # when you set need_version to no, make sure it does not cause -set_version
17188 # flags to be left without arguments
17189 need_version=unknown
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17195 shlibpath_var=LIBPATH
17197 # AIX 3 has no versioning support, so we append a major version to the name.
17198 soname_spec='${libname}${release}${shared_ext}$major'
17205 hardcode_into_libs=yes
17206 if test "$host_cpu" = ia64; then
17207 # AIX 5 supports IA64
17208 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17209 shlibpath_var=LD_LIBRARY_PATH
17211 # With GCC up to 2.95.x, collect2 would create an import file
17212 # for dependence libraries. The import file would start with
17213 # the line `#! .'. This would cause the generated library to
17214 # depend on `.', always an invalid library. This was fixed in
17215 # development snapshots of GCC prior to 3.0.
17217 aix4 | aix4.[01] | aix4.[01].*)
17218 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17220 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17223 can_build_shared=no
17227 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17228 # soname into executable. Probably we can add versioning support to
17229 # collect2, so additional links can be useful in future.
17230 if test "$aix_use_runtimelinking" = yes; then
17231 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17232 # instead of lib<name>.a to let people know that these are not
17233 # typical AIX shared libraries.
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 # We preserve .a as extension for shared libraries through AIX4.2
17237 # and later when we are not doing run time linking.
17238 library_names_spec='${libname}${release}.a $libname.a'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LIBPATH
17246 library_names_spec='$libname.ixlibrary $libname.a'
17247 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17248 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'
17252 library_names_spec='${libname}${shared_ext}'
17253 dynamic_linker="$host_os ld.so"
17254 shlibpath_var=LIBRARY_PATH
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17265 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17266 # the default ld.so.conf also contains /usr/contrib/lib and
17267 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17268 # libtool to hard-code these into programs
17271 cygwin* | mingw* | pw32*)
17272 version_type=windows
17277 case $GCC,$host_os in
17278 yes,cygwin* | yes,mingw* | yes,pw32*)
17279 library_names_spec='$libname.dll.a'
17280 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17281 postinstall_cmds='base_file=`basename \${file}`~
17282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17283 dldir=$destdir/`dirname \$dlpath`~
17284 test -d \$dldir || mkdir -p \$dldir~
17285 $install_prog $dir/$dlname \$dldir/$dlname'
17286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17287 dlpath=$dir/\$dldll~
17289 shlibpath_overrides_runpath=yes
17293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17295 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17298 # MinGW DLLs use traditional 'lib' prefix
17299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17300 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17301 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17302 # It is most probably a Windows format PATH printed by
17303 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17304 # path with ; separators, and with drive letters. We can handle the
17305 # drive letters (cygwin fileutils understands them), so leave them,
17306 # especially as we might pass files found there to a mingw objdump,
17307 # which wouldn't understand a cygwinified path. Ahh.
17308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17314 # pw32 DLLs use 'pw' prefix rather than 'lib'
17315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17324 dynamic_linker='Win32 ld.exe'
17325 # FIXME: first we should search . and the directory the executable is in
17329 darwin* | rhapsody*)
17330 dynamic_linker="$host_os dyld"
17331 version_type=darwin
17334 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17335 soname_spec='${libname}${release}${major}$shared_ext'
17336 shlibpath_overrides_runpath=yes
17337 shlibpath_var=DYLD_LIBRARY_PATH
17338 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17339 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17340 if test "$GCC" = yes; then
17341 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17343 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=no
17369 hardcode_into_libs=yes
17370 dynamic_linker='GNU ld.so'
17374 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17375 version_type=freebsd-$objformat
17376 case $version_type in
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17387 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=yes
17392 freebsd3.01* | freebsdelf3.01*)
17393 shlibpath_overrides_runpath=yes
17394 hardcode_into_libs=yes
17397 shlibpath_overrides_runpath=no
17398 hardcode_into_libs=yes
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 hardcode_into_libs=yes
17413 hpux9* | hpux10* | hpux11*)
17414 # Give a soname corresponding to the major version so that dld.sl refuses to
17415 # link against other versions.
17419 case "$host_cpu" in
17422 hardcode_into_libs=yes
17423 dynamic_linker="$host_os dld.so"
17424 shlibpath_var=LD_LIBRARY_PATH
17425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 if test "X$HPUX_IA64_MODE" = X32; then
17429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17437 hardcode_into_libs=yes
17438 dynamic_linker="$host_os dld.sl"
17439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17448 dynamic_linker="$host_os dld.sl"
17449 shlibpath_var=SHLIB_PATH
17450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17456 postinstall_cmds='chmod 555 $lib'
17459 irix5* | irix6* | nonstopux*)
17461 nonstopux*) version_type=nonstopux ;;
17463 if test "$lt_cv_prog_gnu_ld" = yes; then
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17474 irix5* | nonstopux*)
17475 libsuff= shlibsuff=
17478 case $LD in # libtool.m4 will add one of these switches to LD
17479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17480 libsuff= shlibsuff= libmagic=32-bit;;
17481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17482 libsuff=32 shlibsuff=N32 libmagic=N32;;
17483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17484 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17485 *) libsuff= shlibsuff= libmagic=never-match;;
17489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17490 shlibpath_overrides_runpath=no
17491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17493 hardcode_into_libs=yes
17496 # No shared lib support for Linux oldld, aout, or coff.
17497 linux*oldld* | linux*aout* | linux*coff*)
17501 # This must be Linux ELF.
17506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=no
17511 # This implies no fast_install, which is unacceptable.
17512 # Some rework will be needed to allow for fast_install
17513 # before this can be enabled.
17514 hardcode_into_libs=yes
17516 # find out which ABI we are using
17518 case "$host_cpu" in
17519 x86_64*|s390x*|powerpc64*)
17520 echo '#line 17520 "configure"' > conftest.$ac_ext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; then
17526 case `/usr/bin/file conftest.$ac_objext` in
17529 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17537 # Append ld.so.conf contents to the search path
17538 if test -f /etc/ld.so.conf; then
17539 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17540 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17543 # We used to test for /lib/ld.so.1 and disable shared libraries on
17544 # powerpc, because MkLinux only supported shared libraries with the
17545 # GNU dynamic linker. Since this was broken with cross compilers,
17546 # most powerpc-linux boxes support dynamic linking these days and
17547 # people can always --disable-shared, the test was removed, and we
17548 # assume the GNU/Linux dynamic linker is in use.
17549 dynamic_linker='GNU/Linux ld.so'
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=no
17560 hardcode_into_libs=yes
17561 dynamic_linker='GNU ld.so'
17568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17571 dynamic_linker='NetBSD (a.out) ld.so'
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 dynamic_linker='NetBSD ld.elf_so'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=yes
17579 hardcode_into_libs=yes
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 shlibpath_overrides_runpath=yes
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 shlibpath_overrides_runpath=yes
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17605 shlibpath_var=LD_LIBRARY_PATH
17606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17608 openbsd2.[89] | openbsd2.[89].*)
17609 shlibpath_overrides_runpath=no
17612 shlibpath_overrides_runpath=yes
17616 shlibpath_overrides_runpath=yes
17621 libname_spec='$name'
17624 library_names_spec='$libname${shared_ext} $libname.a'
17625 dynamic_linker='OS/2 ld.exe'
17626 shlibpath_var=LIBPATH
17629 osf3* | osf4* | osf5*)
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17642 soname_spec='${libname}${release}${shared_ext}$major'
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 shlibpath_var=LD_LIBRARY_PATH
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 shlibpath_overrides_runpath=yes
17655 hardcode_into_libs=yes
17656 # ldd complains unless libraries are executable
17657 postinstall_cmds='chmod +x $lib'
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17664 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=yes
17666 if test "$with_gnu_ld" = yes; then
17672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 case $host_vendor in
17679 shlibpath_overrides_runpath=no
17681 export_dynamic_flag_spec='${wl}-Blargedynsym'
17682 runpath_var=LD_RUN_PATH
17690 shlibpath_overrides_runpath=no
17691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17697 if test -d /usr/nec ;then
17699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17700 soname_spec='$libname${shared_ext}.$major'
17701 shlibpath_var=LD_LIBRARY_PATH
17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17708 soname_spec='${libname}${release}${shared_ext}$major'
17709 shlibpath_var=LD_LIBRARY_PATH
17716 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17717 echo "${ECHO_T}$dynamic_linker" >&6; }
17718 test "$dynamic_linker" = no && can_build_shared=no
17720 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17722 hardcode_action_GCJ=
17723 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17724 test -n "$runpath_var GCJ" || \
17725 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17727 # We can hardcode non-existant directories.
17728 if test "$hardcode_direct_GCJ" != no &&
17729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17730 # have to relink, otherwise we might link with an installed library
17731 # when we should be linking with a yet-to-be-installed one
17732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17733 test "$hardcode_minus_L_GCJ" != no; then
17734 # Linking always hardcodes the temporary library directory.
17735 hardcode_action_GCJ=relink
17737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17738 hardcode_action_GCJ=immediate
17741 # We cannot hardcode anything, or else we can only hardcode existing
17743 hardcode_action_GCJ=unsupported
17745 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17746 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17748 if test "$hardcode_action_GCJ" = relink; then
17749 # Fast installation is not supported
17750 enable_fast_install=no
17751 elif test "$shlibpath_overrides_runpath" = yes ||
17752 test "$enable_shared" = no; then
17753 # Fast installation is not necessary
17754 enable_fast_install=needless
17759 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17764 { echo "$as_me:$LINENO: result: yes" >&5
17765 echo "${ECHO_T}yes" >&6; }
17767 # FIXME - insert some real tests, host_os isn't really good enough
17770 if test -n "$STRIP" ; then
17771 striplib="$STRIP -x"
17772 { echo "$as_me:$LINENO: result: yes" >&5
17773 echo "${ECHO_T}yes" >&6; }
17775 { echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6; }
17780 { echo "$as_me:$LINENO: result: no" >&5
17781 echo "${ECHO_T}no" >&6; }
17786 if test "x$enable_dlopen" != xyes; then
17787 enable_dlopen=unknown
17788 enable_dlopen_self=unknown
17789 enable_dlopen_self_static=unknown
17796 lt_cv_dlopen="load_add_on"
17798 lt_cv_dlopen_self=yes
17802 lt_cv_dlopen="LoadLibrary"
17807 lt_cv_dlopen="dlopen"
17812 # if libdl is installed we need to link against it
17813 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 ac_check_lib_save_LIBS=$LIBS
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17827 /* Override any GCC internal prototype to avoid an error.
17828 Use char because int might match the return type of a GCC
17829 builtin and then its argument prototype would still apply. */
17842 rm -f conftest.$ac_objext conftest$ac_exeext
17843 if { (ac_try="$ac_link"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_link") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest$ac_exeext &&
17859 $as_test_x conftest$ac_exeext; then
17860 ac_cv_lib_dl_dlopen=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_cv_lib_dl_dlopen=no
17868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17869 conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17874 if test $ac_cv_lib_dl_dlopen = yes; then
17875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17878 lt_cv_dlopen="dyld"
17880 lt_cv_dlopen_self=yes
17887 { echo "$as_me:$LINENO: checking for shl_load" >&5
17888 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17889 if test "${ac_cv_func_shl_load+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17900 #define shl_load innocuous_shl_load
17902 /* System header to define __stub macros and hopefully few prototypes,
17903 which can conflict with char shl_load (); below.
17904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17905 <limits.h> exists even on freestanding compilers. */
17908 # include <limits.h>
17910 # include <assert.h>
17915 /* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17922 /* The GNU C library defines this for functions which it implements
17923 to always fail with ENOSYS. Some functions are actually named
17924 something starting with __ and the normal name is an alias. */
17925 #if defined __stub_shl_load || defined __stub___shl_load
17932 return shl_load ();
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_link") 2>conftest.er1
17946 grep -v '^ *+' conftest.er1 >conftest.err
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } && {
17951 test -z "$ac_c_werror_flag" ||
17952 test ! -s conftest.err
17953 } && test -s conftest$ac_exeext &&
17954 $as_test_x conftest$ac_exeext; then
17955 ac_cv_func_shl_load=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_func_shl_load=no
17963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17964 conftest$ac_exeext conftest.$ac_ext
17966 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17967 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17968 if test $ac_cv_func_shl_load = yes; then
17969 lt_cv_dlopen="shl_load"
17971 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17972 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17973 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 ac_check_lib_save_LIBS=$LIBS
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17995 return shl_load ();
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (ac_try="$ac_link"
18002 case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_link") 2>conftest.er1
18009 grep -v '^ *+' conftest.er1 >conftest.err
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } && {
18014 test -z "$ac_c_werror_flag" ||
18015 test ! -s conftest.err
18016 } && test -s conftest$ac_exeext &&
18017 $as_test_x conftest$ac_exeext; then
18018 ac_cv_lib_dld_shl_load=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_cv_lib_dld_shl_load=no
18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027 conftest$ac_exeext conftest.$ac_ext
18028 LIBS=$ac_check_lib_save_LIBS
18030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18032 if test $ac_cv_lib_dld_shl_load = yes; then
18033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18035 { echo "$as_me:$LINENO: checking for dlopen" >&5
18036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18037 if test "${ac_cv_func_dlopen+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18048 #define dlopen innocuous_dlopen
18050 /* System header to define __stub macros and hopefully few prototypes,
18051 which can conflict with char dlopen (); below.
18052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053 <limits.h> exists even on freestanding compilers. */
18056 # include <limits.h>
18058 # include <assert.h>
18063 /* Override any GCC internal prototype to avoid an error.
18064 Use char because int might match the return type of a GCC
18065 builtin and then its argument prototype would still apply. */
18070 /* The GNU C library defines this for functions which it implements
18071 to always fail with ENOSYS. Some functions are actually named
18072 something starting with __ and the normal name is an alias. */
18073 #if defined __stub_dlopen || defined __stub___dlopen
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (ac_try="$ac_link"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_link") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && {
18099 test -z "$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 } && test -s conftest$ac_exeext &&
18102 $as_test_x conftest$ac_exeext; then
18103 ac_cv_func_dlopen=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_cv_func_dlopen=no
18111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18112 conftest$ac_exeext conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18116 if test $ac_cv_func_dlopen = yes; then
18117 lt_cv_dlopen="dlopen"
18119 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 ac_check_lib_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18133 /* Override any GCC internal prototype to avoid an error.
18134 Use char because int might match the return type of a GCC
18135 builtin and then its argument prototype would still apply. */
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (ac_try="$ac_link"
18150 case "(($ac_try" in
18151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152 *) ac_try_echo=$ac_try;;
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155 (eval "$ac_link") 2>conftest.er1
18157 grep -v '^ *+' conftest.er1 >conftest.err
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } && {
18162 test -z "$ac_c_werror_flag" ||
18163 test ! -s conftest.err
18164 } && test -s conftest$ac_exeext &&
18165 $as_test_x conftest$ac_exeext; then
18166 ac_cv_lib_dl_dlopen=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_lib_dl_dlopen=no
18174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18175 conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18180 if test $ac_cv_lib_dl_dlopen = yes; then
18181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18183 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-lsvld $LIBS"
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18197 /* Override any GCC internal prototype to avoid an error.
18198 Use char because int might match the return type of a GCC
18199 builtin and then its argument prototype would still apply. */
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_link") 2>conftest.er1
18221 grep -v '^ *+' conftest.er1 >conftest.err
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } && {
18226 test -z "$ac_c_werror_flag" ||
18227 test ! -s conftest.err
18228 } && test -s conftest$ac_exeext &&
18229 $as_test_x conftest$ac_exeext; then
18230 ac_cv_lib_svld_dlopen=yes
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18235 ac_cv_lib_svld_dlopen=no
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18239 conftest$ac_exeext conftest.$ac_ext
18240 LIBS=$ac_check_lib_save_LIBS
18242 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18244 if test $ac_cv_lib_svld_dlopen = yes; then
18245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18247 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 ac_check_lib_save_LIBS=$LIBS
18254 cat >conftest.$ac_ext <<_ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18261 /* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
18271 return dld_link ();
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (ac_try="$ac_link"
18278 case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_link") 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } && {
18290 test -z "$ac_c_werror_flag" ||
18291 test ! -s conftest.err
18292 } && test -s conftest$ac_exeext &&
18293 $as_test_x conftest$ac_exeext; then
18294 ac_cv_lib_dld_dld_link=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_lib_dld_dld_link=no
18302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18303 conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18308 if test $ac_cv_lib_dld_dld_link = yes; then
18309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18330 if test "x$lt_cv_dlopen" != xno; then
18336 case $lt_cv_dlopen in
18338 save_CPPFLAGS="$CPPFLAGS"
18339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18341 save_LDFLAGS="$LDFLAGS"
18342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18345 LIBS="$lt_cv_dlopen_libs $LIBS"
18347 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18349 if test "${lt_cv_dlopen_self+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 if test "$cross_compiling" = yes; then :
18353 lt_cv_dlopen_self=cross
18355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18356 lt_status=$lt_dlunknown
18357 cat > conftest.$ac_ext <<EOF
18358 #line 18358 "configure"
18359 #include "confdefs.h"
18368 # define LT_DLGLOBAL RTLD_GLOBAL
18371 # define LT_DLGLOBAL DL_GLOBAL
18373 # define LT_DLGLOBAL 0
18377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18378 find out it does not work in some platform. */
18379 #ifndef LT_DLLAZY_OR_NOW
18381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18384 # define LT_DLLAZY_OR_NOW DL_LAZY
18387 # define LT_DLLAZY_OR_NOW RTLD_NOW
18390 # define LT_DLLAZY_OR_NOW DL_NOW
18392 # define LT_DLLAZY_OR_NOW 0
18400 extern "C" void exit (int);
18403 void fnord() { int i=42;}
18406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18407 int status = $lt_dlunknown;
18411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18413 /* dlclose (self); */
18419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18424 (./conftest; exit; ) 2>/dev/null
18426 case x$lt_status in
18427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18432 # compilation failed
18433 lt_cv_dlopen_self=no
18440 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18443 if test "x$lt_cv_dlopen_self" = xyes; then
18444 LDFLAGS="$LDFLAGS $link_static_flag"
18445 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18447 if test "${lt_cv_dlopen_self_static+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 if test "$cross_compiling" = yes; then :
18451 lt_cv_dlopen_self_static=cross
18453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18454 lt_status=$lt_dlunknown
18455 cat > conftest.$ac_ext <<EOF
18456 #line 18456 "configure"
18457 #include "confdefs.h"
18466 # define LT_DLGLOBAL RTLD_GLOBAL
18469 # define LT_DLGLOBAL DL_GLOBAL
18471 # define LT_DLGLOBAL 0
18475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18476 find out it does not work in some platform. */
18477 #ifndef LT_DLLAZY_OR_NOW
18479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18482 # define LT_DLLAZY_OR_NOW DL_LAZY
18485 # define LT_DLLAZY_OR_NOW RTLD_NOW
18488 # define LT_DLLAZY_OR_NOW DL_NOW
18490 # define LT_DLLAZY_OR_NOW 0
18498 extern "C" void exit (int);
18501 void fnord() { int i=42;}
18504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18505 int status = $lt_dlunknown;
18509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18511 /* dlclose (self); */
18517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18518 (eval $ac_link) 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18522 (./conftest; exit; ) 2>/dev/null
18524 case x$lt_status in
18525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18530 # compilation failed
18531 lt_cv_dlopen_self_static=no
18538 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18542 CPPFLAGS="$save_CPPFLAGS"
18543 LDFLAGS="$save_LDFLAGS"
18548 case $lt_cv_dlopen_self in
18549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18550 *) enable_dlopen_self=unknown ;;
18553 case $lt_cv_dlopen_self_static in
18554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18555 *) enable_dlopen_self_static=unknown ;;
18560 # The else clause should only fire when bootstrapping the
18561 # libtool distribution, otherwise you forgot to ship ltmain.sh
18562 # with your package, and you will get complaints that there are
18563 # no rules to generate ltmain.sh.
18564 if test -f "$ltmain"; then
18565 # See if we are running on zsh, and set the options which allow our commands through
18566 # without removal of \ escapes.
18567 if test -n "${ZSH_VERSION+set}" ; then
18568 setopt NO_GLOB_SUBST
18570 # Now quote all the things that may contain metacharacters while being
18571 # careful not to overquote the AC_SUBSTed values. We take copies of the
18572 # variables and quote the copies for generation of the libtool script.
18573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18577 deplibs_check_method reload_flag reload_cmds need_locks \
18578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18579 lt_cv_sys_global_symbol_to_c_name_address \
18580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18581 old_postinstall_cmds old_postuninstall_cmds \
18585 lt_prog_compiler_wl_GCJ \
18586 lt_prog_compiler_pic_GCJ \
18587 lt_prog_compiler_static_GCJ \
18588 lt_prog_compiler_no_builtin_flag_GCJ \
18589 export_dynamic_flag_spec_GCJ \
18590 thread_safe_flag_spec_GCJ \
18591 whole_archive_flag_spec_GCJ \
18592 enable_shared_with_static_runtimes_GCJ \
18593 old_archive_cmds_GCJ \
18594 old_archive_from_new_cmds_GCJ \
18595 predep_objects_GCJ \
18596 postdep_objects_GCJ \
18599 compiler_lib_search_path_GCJ \
18601 archive_expsym_cmds_GCJ \
18602 postinstall_cmds_GCJ \
18603 postuninstall_cmds_GCJ \
18604 old_archive_from_expsyms_cmds_GCJ \
18605 allow_undefined_flag_GCJ \
18606 no_undefined_flag_GCJ \
18607 export_symbols_cmds_GCJ \
18608 hardcode_libdir_flag_spec_GCJ \
18609 hardcode_libdir_flag_spec_ld_GCJ \
18610 hardcode_libdir_separator_GCJ \
18611 hardcode_automatic_GCJ \
18613 module_expsym_cmds_GCJ \
18614 lt_cv_prog_compiler_c_o_GCJ \
18615 exclude_expsyms_GCJ \
18616 include_expsyms_GCJ; do
18619 old_archive_cmds_GCJ | \
18620 old_archive_from_new_cmds_GCJ | \
18621 archive_cmds_GCJ | \
18622 archive_expsym_cmds_GCJ | \
18623 module_cmds_GCJ | \
18624 module_expsym_cmds_GCJ | \
18625 old_archive_from_expsyms_cmds_GCJ | \
18626 export_symbols_cmds_GCJ | \
18627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18628 postinstall_cmds | postuninstall_cmds | \
18629 old_postinstall_cmds | old_postuninstall_cmds | \
18630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18631 # Double-quote double-evaled strings.
18632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18641 *'\$0 --fallback-echo"')
18642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18648 cat <<__EOF__ >> "$cfgfile"
18649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18653 # Shell to use when invoking shell scripts.
18656 # Whether or not to build shared libraries.
18657 build_libtool_libs=$enable_shared
18659 # Whether or not to build static libraries.
18660 build_old_libs=$enable_static
18662 # Whether or not to add -lc for building shared libraries.
18663 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18665 # Whether or not to disallow shared libs when runtime libs are static
18666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18668 # Whether or not to optimize for fast installation.
18669 fast_install=$enable_fast_install
18672 host_alias=$host_alias
18675 # An echo program that does not interpret backslashes.
18680 AR_FLAGS=$lt_AR_FLAGS
18685 # A language-specific compiler.
18686 CC=$lt_compiler_GCJ
18688 # Is the compiler the GNU C compiler?
18694 # The linker used to build libraries.
18697 # Whether we need hard or soft links.
18700 # A BSD-compatible nm program.
18703 # A symbol stripping program
18706 # Used to examine libraries when file_magic_cmd begins "file"
18707 MAGIC_CMD=$MAGIC_CMD
18709 # Used on cygwin: DLL creation program.
18712 # Used on cygwin: object dumper.
18715 # Used on cygwin: assembler.
18718 # The name of the directory that contains temporary libtool files.
18721 # How to create reloadable object files.
18722 reload_flag=$lt_reload_flag
18723 reload_cmds=$lt_reload_cmds
18725 # How to pass a linker flag through the compiler.
18726 wl=$lt_lt_prog_compiler_wl_GCJ
18728 # Object file suffix (normally "o").
18729 objext="$ac_objext"
18731 # Old archive suffix (normally "a").
18734 # Shared library suffix (normally ".so").
18735 shrext_cmds='$shrext_cmds'
18737 # Executable file suffix (normally "").
18740 # Additional compiler flags for building library objects.
18741 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18744 # What is the maximum length of a command?
18745 max_cmd_len=$lt_cv_sys_max_cmd_len
18747 # Does compiler simultaneously support -c and -o options?
18748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18750 # Must we lock files when doing compilation ?
18751 need_locks=$lt_need_locks
18753 # Do we need the lib prefix for modules?
18754 need_lib_prefix=$need_lib_prefix
18756 # Do we need a version for libraries?
18757 need_version=$need_version
18759 # Whether dlopen is supported.
18760 dlopen_support=$enable_dlopen
18762 # Whether dlopen of programs is supported.
18763 dlopen_self=$enable_dlopen_self
18765 # Whether dlopen of statically linked programs is supported.
18766 dlopen_self_static=$enable_dlopen_self_static
18768 # Compiler flag to prevent dynamic linking.
18769 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18771 # Compiler flag to turn off builtin functions.
18772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18774 # Compiler flag to allow reflexive dlopens.
18775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18777 # Compiler flag to generate shared objects directly from archives.
18778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18780 # Compiler flag to generate thread-safe objects.
18781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18783 # Library versioning type.
18784 version_type=$version_type
18786 # Format of library name prefix.
18787 libname_spec=$lt_libname_spec
18789 # List of archive names. First name is the real one, the rest are links.
18790 # The last name is the one that the linker finds with -lNAME.
18791 library_names_spec=$lt_library_names_spec
18793 # The coded name of the library, if different from the real name.
18794 soname_spec=$lt_soname_spec
18796 # Commands used to build and install an old-style archive.
18798 old_archive_cmds=$lt_old_archive_cmds_GCJ
18799 old_postinstall_cmds=$lt_old_postinstall_cmds
18800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18802 # Create an old-style archive from a shared archive.
18803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18805 # Create a temporary old-style archive to link instead of a shared archive.
18806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18808 # Commands used to build and install a shared archive.
18809 archive_cmds=$lt_archive_cmds_GCJ
18810 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18811 postinstall_cmds=$lt_postinstall_cmds
18812 postuninstall_cmds=$lt_postuninstall_cmds
18814 # Commands used to build a loadable module (assumed same as above if empty)
18815 module_cmds=$lt_module_cmds_GCJ
18816 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18818 # Commands to strip libraries.
18819 old_striplib=$lt_old_striplib
18820 striplib=$lt_striplib
18822 # Dependencies to place before the objects being linked to create a
18824 predep_objects=$lt_predep_objects_GCJ
18826 # Dependencies to place after the objects being linked to create a
18828 postdep_objects=$lt_postdep_objects_GCJ
18830 # Dependencies to place before the objects being linked to create a
18832 predeps=$lt_predeps_GCJ
18834 # Dependencies to place after the objects being linked to create a
18836 postdeps=$lt_postdeps_GCJ
18838 # The library search path used internally by the compiler when linking
18839 # a shared library.
18840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18842 # Method to check whether dependent libraries are shared objects.
18843 deplibs_check_method=$lt_deplibs_check_method
18845 # Command to use when deplibs_check_method == file_magic.
18846 file_magic_cmd=$lt_file_magic_cmd
18848 # Flag that allows shared libraries with undefined symbols to be built.
18849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18851 # Flag that forces no undefined symbols.
18852 no_undefined_flag=$lt_no_undefined_flag_GCJ
18854 # Commands used to finish a libtool library installation in a directory.
18855 finish_cmds=$lt_finish_cmds
18857 # Same as above, but a single script fragment to be evaled but not shown.
18858 finish_eval=$lt_finish_eval
18860 # Take the output of nm and produce a listing of raw symbols and C names.
18861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18863 # Transform the output of nm in a proper C declaration
18864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18866 # Transform the output of nm in a C name address pair
18867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18869 # This is the shared library runtime path variable.
18870 runpath_var=$runpath_var
18872 # This is the shared library path variable.
18873 shlibpath_var=$shlibpath_var
18875 # Is shlibpath searched before the hard-coded library search path?
18876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18878 # How to hardcode a shared library path into an executable.
18879 hardcode_action=$hardcode_action_GCJ
18881 # Whether we should hardcode library paths into libraries.
18882 hardcode_into_libs=$hardcode_into_libs
18884 # Flag to hardcode \$libdir into a binary during linking.
18885 # This must work even if \$libdir does not exist.
18886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18888 # If ld is used when linking, flag to hardcode \$libdir into
18889 # a binary during linking. This must work even if \$libdir does
18891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18893 # Whether we need a single -rpath flag with a separated argument.
18894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18897 # resulting binary.
18898 hardcode_direct=$hardcode_direct_GCJ
18900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18901 # resulting binary.
18902 hardcode_minus_L=$hardcode_minus_L_GCJ
18904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18905 # the resulting binary.
18906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18908 # Set to yes if building a shared library automatically hardcodes DIR into the library
18909 # and all subsequent libraries and executables linked against it.
18910 hardcode_automatic=$hardcode_automatic_GCJ
18912 # Variables whose values should be saved in libtool wrapper scripts and
18913 # restored at relink time.
18914 variables_saved_for_relink="$variables_saved_for_relink"
18916 # Whether libtool must link a program against all its dependency libraries.
18917 link_all_deplibs=$link_all_deplibs_GCJ
18919 # Compile-time system search path for libraries
18920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18922 # Run-time system search path for libraries
18923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18925 # Fix the shell variable \$srcfile for the compiler.
18926 fix_srcfile_path="$fix_srcfile_path_GCJ"
18928 # Set to yes if exported symbols are required.
18929 always_export_symbols=$always_export_symbols_GCJ
18931 # The commands to list exported symbols.
18932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18934 # The commands to extract the exported symbol list from a shared archive.
18935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms_GCJ
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms_GCJ
18943 # ### END LIBTOOL TAG CONFIG: $tagname
18949 # If there is no Makefile yet, we rely on a make rule to execute
18950 # `config.status --recheck' to rerun these tests and create the
18951 # libtool script then.
18952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18953 if test -f "$ltmain_in"; then
18954 test -f Makefile && make "$ltmain"
18960 ac_cpp='$CPP $CPPFLAGS'
18961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975 # Source file extension for RC test sources.
18978 # Object file extension for compiled RC test sources.
18982 # Code to be used in simple compile tests
18983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18985 # Code to be used in simple link tests
18986 lt_simple_link_test_code="$lt_simple_compile_test_code"
18988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18990 # If no C compiler was specified, use CC.
18993 # Allow CC to be a program name with arguments.
18997 # Allow CC to be a program name with arguments.
19002 lt_cv_prog_compiler_c_o_RC=yes
19004 # The else clause should only fire when bootstrapping the
19005 # libtool distribution, otherwise you forgot to ship ltmain.sh
19006 # with your package, and you will get complaints that there are
19007 # no rules to generate ltmain.sh.
19008 if test -f "$ltmain"; then
19009 # See if we are running on zsh, and set the options which allow our commands through
19010 # without removal of \ escapes.
19011 if test -n "${ZSH_VERSION+set}" ; then
19012 setopt NO_GLOB_SUBST
19014 # Now quote all the things that may contain metacharacters while being
19015 # careful not to overquote the AC_SUBSTed values. We take copies of the
19016 # variables and quote the copies for generation of the libtool script.
19017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19021 deplibs_check_method reload_flag reload_cmds need_locks \
19022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19023 lt_cv_sys_global_symbol_to_c_name_address \
19024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19025 old_postinstall_cmds old_postuninstall_cmds \
19029 lt_prog_compiler_wl_RC \
19030 lt_prog_compiler_pic_RC \
19031 lt_prog_compiler_static_RC \
19032 lt_prog_compiler_no_builtin_flag_RC \
19033 export_dynamic_flag_spec_RC \
19034 thread_safe_flag_spec_RC \
19035 whole_archive_flag_spec_RC \
19036 enable_shared_with_static_runtimes_RC \
19037 old_archive_cmds_RC \
19038 old_archive_from_new_cmds_RC \
19039 predep_objects_RC \
19040 postdep_objects_RC \
19043 compiler_lib_search_path_RC \
19045 archive_expsym_cmds_RC \
19046 postinstall_cmds_RC \
19047 postuninstall_cmds_RC \
19048 old_archive_from_expsyms_cmds_RC \
19049 allow_undefined_flag_RC \
19050 no_undefined_flag_RC \
19051 export_symbols_cmds_RC \
19052 hardcode_libdir_flag_spec_RC \
19053 hardcode_libdir_flag_spec_ld_RC \
19054 hardcode_libdir_separator_RC \
19055 hardcode_automatic_RC \
19057 module_expsym_cmds_RC \
19058 lt_cv_prog_compiler_c_o_RC \
19059 exclude_expsyms_RC \
19060 include_expsyms_RC; do
19063 old_archive_cmds_RC | \
19064 old_archive_from_new_cmds_RC | \
19065 archive_cmds_RC | \
19066 archive_expsym_cmds_RC | \
19068 module_expsym_cmds_RC | \
19069 old_archive_from_expsyms_cmds_RC | \
19070 export_symbols_cmds_RC | \
19071 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19072 postinstall_cmds | postuninstall_cmds | \
19073 old_postinstall_cmds | old_postuninstall_cmds | \
19074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19075 # Double-quote double-evaled strings.
19076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19085 *'\$0 --fallback-echo"')
19086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19092 cat <<__EOF__ >> "$cfgfile"
19093 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19097 # Shell to use when invoking shell scripts.
19100 # Whether or not to build shared libraries.
19101 build_libtool_libs=$enable_shared
19103 # Whether or not to build static libraries.
19104 build_old_libs=$enable_static
19106 # Whether or not to add -lc for building shared libraries.
19107 build_libtool_need_lc=$archive_cmds_need_lc_RC
19109 # Whether or not to disallow shared libs when runtime libs are static
19110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19112 # Whether or not to optimize for fast installation.
19113 fast_install=$enable_fast_install
19116 host_alias=$host_alias
19119 # An echo program that does not interpret backslashes.
19124 AR_FLAGS=$lt_AR_FLAGS
19129 # A language-specific compiler.
19132 # Is the compiler the GNU C compiler?
19138 # The linker used to build libraries.
19141 # Whether we need hard or soft links.
19144 # A BSD-compatible nm program.
19147 # A symbol stripping program
19150 # Used to examine libraries when file_magic_cmd begins "file"
19151 MAGIC_CMD=$MAGIC_CMD
19153 # Used on cygwin: DLL creation program.
19156 # Used on cygwin: object dumper.
19159 # Used on cygwin: assembler.
19162 # The name of the directory that contains temporary libtool files.
19165 # How to create reloadable object files.
19166 reload_flag=$lt_reload_flag
19167 reload_cmds=$lt_reload_cmds
19169 # How to pass a linker flag through the compiler.
19170 wl=$lt_lt_prog_compiler_wl_RC
19172 # Object file suffix (normally "o").
19173 objext="$ac_objext"
19175 # Old archive suffix (normally "a").
19178 # Shared library suffix (normally ".so").
19179 shrext_cmds='$shrext_cmds'
19181 # Executable file suffix (normally "").
19184 # Additional compiler flags for building library objects.
19185 pic_flag=$lt_lt_prog_compiler_pic_RC
19188 # What is the maximum length of a command?
19189 max_cmd_len=$lt_cv_sys_max_cmd_len
19191 # Does compiler simultaneously support -c and -o options?
19192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19194 # Must we lock files when doing compilation ?
19195 need_locks=$lt_need_locks
19197 # Do we need the lib prefix for modules?
19198 need_lib_prefix=$need_lib_prefix
19200 # Do we need a version for libraries?
19201 need_version=$need_version
19203 # Whether dlopen is supported.
19204 dlopen_support=$enable_dlopen
19206 # Whether dlopen of programs is supported.
19207 dlopen_self=$enable_dlopen_self
19209 # Whether dlopen of statically linked programs is supported.
19210 dlopen_self_static=$enable_dlopen_self_static
19212 # Compiler flag to prevent dynamic linking.
19213 link_static_flag=$lt_lt_prog_compiler_static_RC
19215 # Compiler flag to turn off builtin functions.
19216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19218 # Compiler flag to allow reflexive dlopens.
19219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19221 # Compiler flag to generate shared objects directly from archives.
19222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19224 # Compiler flag to generate thread-safe objects.
19225 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19227 # Library versioning type.
19228 version_type=$version_type
19230 # Format of library name prefix.
19231 libname_spec=$lt_libname_spec
19233 # List of archive names. First name is the real one, the rest are links.
19234 # The last name is the one that the linker finds with -lNAME.
19235 library_names_spec=$lt_library_names_spec
19237 # The coded name of the library, if different from the real name.
19238 soname_spec=$lt_soname_spec
19240 # Commands used to build and install an old-style archive.
19242 old_archive_cmds=$lt_old_archive_cmds_RC
19243 old_postinstall_cmds=$lt_old_postinstall_cmds
19244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19246 # Create an old-style archive from a shared archive.
19247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19249 # Create a temporary old-style archive to link instead of a shared archive.
19250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19252 # Commands used to build and install a shared archive.
19253 archive_cmds=$lt_archive_cmds_RC
19254 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19255 postinstall_cmds=$lt_postinstall_cmds
19256 postuninstall_cmds=$lt_postuninstall_cmds
19258 # Commands used to build a loadable module (assumed same as above if empty)
19259 module_cmds=$lt_module_cmds_RC
19260 module_expsym_cmds=$lt_module_expsym_cmds_RC
19262 # Commands to strip libraries.
19263 old_striplib=$lt_old_striplib
19264 striplib=$lt_striplib
19266 # Dependencies to place before the objects being linked to create a
19268 predep_objects=$lt_predep_objects_RC
19270 # Dependencies to place after the objects being linked to create a
19272 postdep_objects=$lt_postdep_objects_RC
19274 # Dependencies to place before the objects being linked to create a
19276 predeps=$lt_predeps_RC
19278 # Dependencies to place after the objects being linked to create a
19280 postdeps=$lt_postdeps_RC
19282 # The library search path used internally by the compiler when linking
19283 # a shared library.
19284 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19286 # Method to check whether dependent libraries are shared objects.
19287 deplibs_check_method=$lt_deplibs_check_method
19289 # Command to use when deplibs_check_method == file_magic.
19290 file_magic_cmd=$lt_file_magic_cmd
19292 # Flag that allows shared libraries with undefined symbols to be built.
19293 allow_undefined_flag=$lt_allow_undefined_flag_RC
19295 # Flag that forces no undefined symbols.
19296 no_undefined_flag=$lt_no_undefined_flag_RC
19298 # Commands used to finish a libtool library installation in a directory.
19299 finish_cmds=$lt_finish_cmds
19301 # Same as above, but a single script fragment to be evaled but not shown.
19302 finish_eval=$lt_finish_eval
19304 # Take the output of nm and produce a listing of raw symbols and C names.
19305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19307 # Transform the output of nm in a proper C declaration
19308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19310 # Transform the output of nm in a C name address pair
19311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19313 # This is the shared library runtime path variable.
19314 runpath_var=$runpath_var
19316 # This is the shared library path variable.
19317 shlibpath_var=$shlibpath_var
19319 # Is shlibpath searched before the hard-coded library search path?
19320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19322 # How to hardcode a shared library path into an executable.
19323 hardcode_action=$hardcode_action_RC
19325 # Whether we should hardcode library paths into libraries.
19326 hardcode_into_libs=$hardcode_into_libs
19328 # Flag to hardcode \$libdir into a binary during linking.
19329 # This must work even if \$libdir does not exist.
19330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19332 # If ld is used when linking, flag to hardcode \$libdir into
19333 # a binary during linking. This must work even if \$libdir does
19335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19337 # Whether we need a single -rpath flag with a separated argument.
19338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19340 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19341 # resulting binary.
19342 hardcode_direct=$hardcode_direct_RC
19344 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19345 # resulting binary.
19346 hardcode_minus_L=$hardcode_minus_L_RC
19348 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19349 # the resulting binary.
19350 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19352 # Set to yes if building a shared library automatically hardcodes DIR into the library
19353 # and all subsequent libraries and executables linked against it.
19354 hardcode_automatic=$hardcode_automatic_RC
19356 # Variables whose values should be saved in libtool wrapper scripts and
19357 # restored at relink time.
19358 variables_saved_for_relink="$variables_saved_for_relink"
19360 # Whether libtool must link a program against all its dependency libraries.
19361 link_all_deplibs=$link_all_deplibs_RC
19363 # Compile-time system search path for libraries
19364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19366 # Run-time system search path for libraries
19367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19369 # Fix the shell variable \$srcfile for the compiler.
19370 fix_srcfile_path="$fix_srcfile_path_RC"
19372 # Set to yes if exported symbols are required.
19373 always_export_symbols=$always_export_symbols_RC
19375 # The commands to list exported symbols.
19376 export_symbols_cmds=$lt_export_symbols_cmds_RC
19378 # The commands to extract the exported symbol list from a shared archive.
19379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19381 # Symbols that should not be listed in the preloaded symbols.
19382 exclude_expsyms=$lt_exclude_expsyms_RC
19384 # Symbols that must always be exported.
19385 include_expsyms=$lt_include_expsyms_RC
19387 # ### END LIBTOOL TAG CONFIG: $tagname
19393 # If there is no Makefile yet, we rely on a make rule to execute
19394 # `config.status --recheck' to rerun these tests and create the
19395 # libtool script then.
19396 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19397 if test -f "$ltmain_in"; then
19398 test -f Makefile && make "$ltmain"
19404 ac_cpp='$CPP $CPPFLAGS'
19405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19415 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19416 { (exit 1); exit 1; }; }
19420 # Append the new tag name to the list of available tags.
19421 if test -n "$tagname" ; then
19422 available_tags="$available_tags $tagname"
19428 # Now substitute the updated list of available tags.
19429 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19430 mv "${ofile}T" "$ofile"
19434 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19435 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19436 { (exit 1); exit 1; }; }
19442 # This can be used to rebuild libtool when needed
19443 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19445 # Always use our own libtool.
19446 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19448 # Prevent multiple expansion
19470 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19471 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19472 if test -d /var/tmp; then
19473 found_tmp=/var/tmp/
19474 elif test -d /usr/tmp; then
19475 found_tmp=/usr/tmp/
19479 cat >>confdefs.h <<_ACEOF
19480 #define FOUND_TMP "${found_tmp}"
19483 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19484 echo "${ECHO_T}${found_tmp}" >&6; }
19486 { echo "$as_me:$LINENO: checking for X" >&5
19487 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19490 # Check whether --with-x was given.
19491 if test "${with_x+set}" = set; then
19495 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19496 if test "x$with_x" = xno; then
19497 # The user explicitly disabled X.
19500 case $x_includes,$x_libraries in #(
19501 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19502 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19503 { (exit 1); exit 1; }; };; #(
19504 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 # One or both of the vars are not set, and there is no cached value.
19508 ac_x_includes=no ac_x_libraries=no
19509 rm -f -r conftest.dir
19510 if mkdir conftest.dir; then
19512 cat >Imakefile <<'_ACEOF'
19514 @echo incroot='${INCROOT}'
19516 @echo usrlibdir='${USRLIBDIR}'
19518 @echo libdir='${LIBDIR}'
19520 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19521 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19522 for ac_var in incroot usrlibdir libdir; do
19523 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19525 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19526 for ac_extension in a so sl; do
19527 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19528 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19529 ac_im_usrlibdir=$ac_im_libdir; break
19532 # Screen out bogus values from the imake configuration. They are
19533 # bogus both because they are the default anyway, and because
19534 # using them would break gcc on systems where it needs fixed includes.
19535 case $ac_im_incroot in
19536 /usr/include) ac_x_includes= ;;
19537 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19539 case $ac_im_usrlibdir in
19540 /usr/lib | /lib) ;;
19541 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19545 rm -f -r conftest.dir
19548 # Standard set of common directories for X headers.
19549 # Check X11 before X11Rn because it is often a symlink to the current release.
19561 /usr/local/X11/include
19562 /usr/local/X11R6/include
19563 /usr/local/X11R5/include
19564 /usr/local/X11R4/include
19566 /usr/local/include/X11
19567 /usr/local/include/X11R6
19568 /usr/local/include/X11R5
19569 /usr/local/include/X11R4
19573 /usr/XFree86/include/X11
19577 /usr/unsupported/include
19578 /usr/athena/include
19579 /usr/local/x11r5/include
19580 /usr/lpp/Xamples/include
19582 /usr/openwin/include
19583 /usr/openwin/share/include'
19585 if test "$ac_x_includes" = no; then
19586 # Guess where to find include files, by looking for Xlib.h.
19587 # First, try using that file with no special directory specified.
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594 #include <X11/Xlib.h>
19596 if { (ac_try="$ac_cpp conftest.$ac_ext"
19597 case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } >/dev/null && {
19609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19612 # We can compile using X headers with no special include directory.
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 for ac_dir in $ac_x_header_dirs; do
19619 if test -r "$ac_dir/X11/Xlib.h"; then
19620 ac_x_includes=$ac_dir
19626 rm -f conftest.err conftest.$ac_ext
19627 fi # $ac_x_includes = no
19629 if test "$ac_x_libraries" = no; then
19630 # Check for the libraries.
19631 # See if we find them without any special options.
19632 # Don't add to $LIBS permanently.
19635 cat >conftest.$ac_ext <<_ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 #include <X11/Xlib.h>
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest$ac_exeext &&
19667 $as_test_x conftest$ac_exeext; then
19669 # We can link X programs with no special library path.
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19676 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19678 # Don't even attempt the hair of trying to link an X program!
19679 for ac_extension in a so sl; do
19680 if test -r "$ac_dir/libX11.$ac_extension"; then
19681 ac_x_libraries=$ac_dir
19688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19689 conftest$ac_exeext conftest.$ac_ext
19690 fi # $ac_x_libraries = no
19692 case $ac_x_includes,$ac_x_libraries in #(
19693 no,* | *,no | *\'*)
19694 # Didn't find X, or a directory has "'" in its name.
19695 ac_cv_have_x="have_x=no";; #(
19697 # Record where we found X for the cache.
19698 ac_cv_have_x="have_x=yes\
19699 ac_x_includes='$ac_x_includes'\
19700 ac_x_libraries='$ac_x_libraries'"
19706 eval "$ac_cv_have_x"
19709 if test "$have_x" != yes; then
19710 { echo "$as_me:$LINENO: result: $have_x" >&5
19711 echo "${ECHO_T}$have_x" >&6; }
19714 # If each of the values was on the command line, it overrides each guess.
19715 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19716 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19717 # Update the cache value to reflect the command line values.
19718 ac_cv_have_x="have_x=yes\
19719 ac_x_includes='$x_includes'\
19720 ac_x_libraries='$x_libraries'"
19721 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19722 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19725 if test "$no_x" = yes; then
19726 # Not all programs may use this symbol, but it does not hurt to define it.
19728 cat >>confdefs.h <<\_ACEOF
19729 #define X_DISPLAY_MISSING 1
19732 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19734 if test -n "$x_includes"; then
19735 X_CFLAGS="$X_CFLAGS -I$x_includes"
19738 # It would also be nice to do this for all -L options, not just this one.
19739 if test -n "$x_libraries"; then
19740 X_LIBS="$X_LIBS -L$x_libraries"
19741 # For Solaris; some versions of Sun CC require a space after -R and
19742 # others require no space. Words are not sufficient . . . .
19743 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19744 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19745 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19746 ac_xsave_c_werror_flag=$ac_c_werror_flag
19747 ac_c_werror_flag=yes
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_link") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest$ac_exeext &&
19780 $as_test_x conftest$ac_exeext; then
19781 { echo "$as_me:$LINENO: result: no" >&5
19782 echo "${ECHO_T}no" >&6; }
19783 X_LIBS="$X_LIBS -R$x_libraries"
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 LIBS="$ac_xsave_LIBS -R $x_libraries"
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19804 rm -f conftest.$ac_objext conftest$ac_exeext
19805 if { (ac_try="$ac_link"
19806 case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_link") 2>conftest.er1
19813 grep -v '^ *+' conftest.er1 >conftest.err
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest$ac_exeext &&
19821 $as_test_x conftest$ac_exeext; then
19822 { echo "$as_me:$LINENO: result: yes" >&5
19823 echo "${ECHO_T}yes" >&6; }
19824 X_LIBS="$X_LIBS -R $x_libraries"
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 { echo "$as_me:$LINENO: result: neither works" >&5
19830 echo "${ECHO_T}neither works" >&6; }
19833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19834 conftest$ac_exeext conftest.$ac_ext
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 ac_c_werror_flag=$ac_xsave_c_werror_flag
19840 LIBS=$ac_xsave_LIBS
19843 # Check for system-dependent libraries X programs must link with.
19844 # Do this before checking for the system-independent R6 libraries
19845 # (-lICE), since we may need -lsocket or whatever for X linking.
19847 if test "$ISC" = yes; then
19848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19850 # Martyn Johnson says this is needed for Ultrix, if the X
19851 # libraries were built with DECnet support. And Karl Berry says
19852 # the Alpha needs dnet_stub (dnet does not exist).
19853 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19867 char XOpenDisplay ();
19871 return XOpenDisplay ();
19876 rm -f conftest.$ac_objext conftest$ac_exeext
19877 if { (ac_try="$ac_link"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_link") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest$ac_exeext &&
19893 $as_test_x conftest$ac_exeext; then
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19900 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19901 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 ac_check_lib_save_LIBS=$LIBS
19905 LIBS="-ldnet $LIBS"
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 /* Override any GCC internal prototype to avoid an error.
19914 Use char because int might match the return type of a GCC
19915 builtin and then its argument prototype would still apply. */
19923 return dnet_ntoa ();
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest$ac_exeext &&
19945 $as_test_x conftest$ac_exeext; then
19946 ac_cv_lib_dnet_dnet_ntoa=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_lib_dnet_dnet_ntoa=no
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955 conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19959 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19960 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19961 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19964 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19965 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19966 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19967 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 ac_check_lib_save_LIBS=$LIBS
19971 LIBS="-ldnet_stub $LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19989 return dnet_ntoa ();
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (ac_try="$ac_link"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_link") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext &&
20011 $as_test_x conftest$ac_exeext; then
20012 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_cv_lib_dnet_stub_dnet_ntoa=no
20020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20021 conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20025 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20026 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20027 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS="$ac_xsave_LIBS"
20037 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20038 # to get the SysV transport functions.
20039 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20041 # The nsl library prevents programs from opening the X display
20042 # on Irix 5.2, according to T.E. Dickey.
20043 # The functions gethostbyname, getservbyname, and inet_addr are
20044 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20045 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20046 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20047 if test "${ac_cv_func_gethostbyname+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20058 #define gethostbyname innocuous_gethostbyname
20060 /* System header to define __stub macros and hopefully few prototypes,
20061 which can conflict with char gethostbyname (); below.
20062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063 <limits.h> exists even on freestanding compilers. */
20066 # include <limits.h>
20068 # include <assert.h>
20071 #undef gethostbyname
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20079 char gethostbyname ();
20080 /* The GNU C library defines this for functions which it implements
20081 to always fail with ENOSYS. Some functions are actually named
20082 something starting with __ and the normal name is an alias. */
20083 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20090 return gethostbyname ();
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (ac_try="$ac_link"
20097 case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_link") 2>conftest.er1
20104 grep -v '^ *+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } && {
20109 test -z "$ac_c_werror_flag" ||
20110 test ! -s conftest.err
20111 } && test -s conftest$ac_exeext &&
20112 $as_test_x conftest$ac_exeext; then
20113 ac_cv_func_gethostbyname=yes
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_cv_func_gethostbyname=no
20121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20122 conftest$ac_exeext conftest.$ac_ext
20124 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20125 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20127 if test $ac_cv_func_gethostbyname = no; then
20128 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20129 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20130 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 ac_check_lib_save_LIBS=$LIBS
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20142 /* Override any GCC internal prototype to avoid an error.
20143 Use char because int might match the return type of a GCC
20144 builtin and then its argument prototype would still apply. */
20148 char gethostbyname ();
20152 return gethostbyname ();
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_link") 2>conftest.er1
20166 grep -v '^ *+' conftest.er1 >conftest.err
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } && {
20171 test -z "$ac_c_werror_flag" ||
20172 test ! -s conftest.err
20173 } && test -s conftest$ac_exeext &&
20174 $as_test_x conftest$ac_exeext; then
20175 ac_cv_lib_nsl_gethostbyname=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_lib_nsl_gethostbyname=no
20183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20187 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20188 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20189 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20190 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20193 if test $ac_cv_lib_nsl_gethostbyname = no; then
20194 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20195 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20196 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 ac_check_lib_save_LIBS=$LIBS
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20208 /* Override any GCC internal prototype to avoid an error.
20209 Use char because int might match the return type of a GCC
20210 builtin and then its argument prototype would still apply. */
20214 char gethostbyname ();
20218 return gethostbyname ();
20223 rm -f conftest.$ac_objext conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_link") 2>conftest.er1
20232 grep -v '^ *+' conftest.er1 >conftest.err
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && {
20237 test -z "$ac_c_werror_flag" ||
20238 test ! -s conftest.err
20239 } && test -s conftest$ac_exeext &&
20240 $as_test_x conftest$ac_exeext; then
20241 ac_cv_lib_bsd_gethostbyname=yes
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 ac_cv_lib_bsd_gethostbyname=no
20249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20250 conftest$ac_exeext conftest.$ac_ext
20251 LIBS=$ac_check_lib_save_LIBS
20253 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20254 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20255 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20262 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20263 # socket/setsockopt and other routines are undefined under SCO ODT
20264 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20265 # on later versions), says Simon Leinen: it contains gethostby*
20266 # variants that don't use the name server (or something). -lsocket
20267 # must be given before -lnsl if both are needed. We assume that
20268 # if connect needs -lnsl, so does gethostbyname.
20269 { echo "$as_me:$LINENO: checking for connect" >&5
20270 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20271 if test "${ac_cv_func_connect+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20282 #define connect innocuous_connect
20284 /* System header to define __stub macros and hopefully few prototypes,
20285 which can conflict with char connect (); below.
20286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20287 <limits.h> exists even on freestanding compilers. */
20290 # include <limits.h>
20292 # include <assert.h>
20297 /* Override any GCC internal prototype to avoid an error.
20298 Use char because int might match the return type of a GCC
20299 builtin and then its argument prototype would still apply. */
20304 /* The GNU C library defines this for functions which it implements
20305 to always fail with ENOSYS. Some functions are actually named
20306 something starting with __ and the normal name is an alias. */
20307 #if defined __stub_connect || defined __stub___connect
20319 rm -f conftest.$ac_objext conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_link") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } && {
20333 test -z "$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20335 } && test -s conftest$ac_exeext &&
20336 $as_test_x conftest$ac_exeext; then
20337 ac_cv_func_connect=yes
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ac_cv_func_connect=no
20345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20346 conftest$ac_exeext conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20349 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20351 if test $ac_cv_func_connect = no; then
20352 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20353 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20354 if test "${ac_cv_lib_socket_connect+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 ac_check_lib_save_LIBS=$LIBS
20358 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20359 cat >conftest.$ac_ext <<_ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20366 /* Override any GCC internal prototype to avoid an error.
20367 Use char because int might match the return type of a GCC
20368 builtin and then its argument prototype would still apply. */
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (ac_try="$ac_link"
20383 case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_link") 2>conftest.er1
20390 grep -v '^ *+' conftest.er1 >conftest.err
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && {
20395 test -z "$ac_c_werror_flag" ||
20396 test ! -s conftest.err
20397 } && test -s conftest$ac_exeext &&
20398 $as_test_x conftest$ac_exeext; then
20399 ac_cv_lib_socket_connect=yes
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ac_cv_lib_socket_connect=no
20407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20408 conftest$ac_exeext conftest.$ac_ext
20409 LIBS=$ac_check_lib_save_LIBS
20411 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20412 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20413 if test $ac_cv_lib_socket_connect = yes; then
20414 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20419 # Guillermo Gomez says -lposix is necessary on A/UX.
20420 { echo "$as_me:$LINENO: checking for remove" >&5
20421 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20422 if test "${ac_cv_func_remove+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20433 #define remove innocuous_remove
20435 /* System header to define __stub macros and hopefully few prototypes,
20436 which can conflict with char remove (); below.
20437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20438 <limits.h> exists even on freestanding compilers. */
20441 # include <limits.h>
20443 # include <assert.h>
20448 /* Override any GCC internal prototype to avoid an error.
20449 Use char because int might match the return type of a GCC
20450 builtin and then its argument prototype would still apply. */
20455 /* The GNU C library defines this for functions which it implements
20456 to always fail with ENOSYS. Some functions are actually named
20457 something starting with __ and the normal name is an alias. */
20458 #if defined __stub_remove || defined __stub___remove
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (ac_try="$ac_link"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_link") 2>conftest.er1
20479 grep -v '^ *+' conftest.er1 >conftest.err
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest$ac_exeext &&
20487 $as_test_x conftest$ac_exeext; then
20488 ac_cv_func_remove=yes
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ac_cv_func_remove=no
20496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20497 conftest$ac_exeext conftest.$ac_ext
20499 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20500 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20502 if test $ac_cv_func_remove = no; then
20503 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20504 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20505 if test "${ac_cv_lib_posix_remove+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 ac_check_lib_save_LIBS=$LIBS
20509 LIBS="-lposix $LIBS"
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20517 /* Override any GCC internal prototype to avoid an error.
20518 Use char because int might match the return type of a GCC
20519 builtin and then its argument prototype would still apply. */
20532 rm -f conftest.$ac_objext conftest$ac_exeext
20533 if { (ac_try="$ac_link"
20534 case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_link") 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest$ac_exeext &&
20549 $as_test_x conftest$ac_exeext; then
20550 ac_cv_lib_posix_remove=yes
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 ac_cv_lib_posix_remove=no
20558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559 conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20562 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20563 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20564 if test $ac_cv_lib_posix_remove = yes; then
20565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20570 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20571 { echo "$as_me:$LINENO: checking for shmat" >&5
20572 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20573 if test "${ac_cv_func_shmat+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20584 #define shmat innocuous_shmat
20586 /* System header to define __stub macros and hopefully few prototypes,
20587 which can conflict with char shmat (); below.
20588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20589 <limits.h> exists even on freestanding compilers. */
20592 # include <limits.h>
20594 # include <assert.h>
20599 /* Override any GCC internal prototype to avoid an error.
20600 Use char because int might match the return type of a GCC
20601 builtin and then its argument prototype would still apply. */
20606 /* The GNU C library defines this for functions which it implements
20607 to always fail with ENOSYS. Some functions are actually named
20608 something starting with __ and the normal name is an alias. */
20609 #if defined __stub_shmat || defined __stub___shmat
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && {
20635 test -z "$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 } && test -s conftest$ac_exeext &&
20638 $as_test_x conftest$ac_exeext; then
20639 ac_cv_func_shmat=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_cv_func_shmat=no
20647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20648 conftest$ac_exeext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20651 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20653 if test $ac_cv_func_shmat = no; then
20654 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20655 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20656 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 ac_check_lib_save_LIBS=$LIBS
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20668 /* Override any GCC internal prototype to avoid an error.
20669 Use char because int might match the return type of a GCC
20670 builtin and then its argument prototype would still apply. */
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_link") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } && {
20697 test -z "$ac_c_werror_flag" ||
20698 test ! -s conftest.err
20699 } && test -s conftest$ac_exeext &&
20700 $as_test_x conftest$ac_exeext; then
20701 ac_cv_lib_ipc_shmat=yes
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ac_cv_lib_ipc_shmat=no
20709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20710 conftest$ac_exeext conftest.$ac_ext
20711 LIBS=$ac_check_lib_save_LIBS
20713 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20714 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20715 if test $ac_cv_lib_ipc_shmat = yes; then
20716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20722 # Check for libraries that X11R6 Xt/Xaw programs need.
20723 ac_save_LDFLAGS=$LDFLAGS
20724 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20725 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20726 # check for ICE first), but we must link in the order -lSM -lICE or
20727 # we get undefined symbols. So assume we have SM if we have ICE.
20728 # These have to be linked with before -lX11, unlike the other
20729 # libraries we check for below, so use a different variable.
20730 # John Interrante, Karl Berry
20731 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20732 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20733 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 ac_check_lib_save_LIBS=$LIBS
20737 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 /* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20751 char IceConnectionNumber ();
20755 return IceConnectionNumber ();
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest$ac_exeext &&
20777 $as_test_x conftest$ac_exeext; then
20778 ac_cv_lib_ICE_IceConnectionNumber=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_cv_lib_ICE_IceConnectionNumber=no
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787 conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20790 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20791 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20792 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20793 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20796 LDFLAGS=$ac_save_LDFLAGS
20800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20802 if test "${ac_cv_header_stdc+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20811 #include <stdlib.h>
20812 #include <stdarg.h>
20813 #include <string.h>
20824 rm -f conftest.$ac_objext
20825 if { (ac_try="$ac_compile"
20826 case "(($ac_try" in
20827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828 *) ac_try_echo=$ac_try;;
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831 (eval "$ac_compile") 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && {
20838 test -z "$ac_c_werror_flag" ||
20839 test ! -s conftest.err
20840 } && test -s conftest.$ac_objext; then
20841 ac_cv_header_stdc=yes
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_cv_header_stdc=no
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 if test $ac_cv_header_stdc = yes; then
20852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <string.h>
20862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20863 $EGREP "memchr" >/dev/null 2>&1; then
20866 ac_cv_header_stdc=no
20872 if test $ac_cv_header_stdc = yes; then
20873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
20883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20884 $EGREP "free" >/dev/null 2>&1; then
20887 ac_cv_header_stdc=no
20893 if test $ac_cv_header_stdc = yes; then
20894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20895 if test "$cross_compiling" = yes; then
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20905 #include <stdlib.h>
20906 #if ((' ' & 0x0FF) == 0x020)
20907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20910 # define ISLOWER(c) \
20911 (('a' <= (c) && (c) <= 'i') \
20912 || ('j' <= (c) && (c) <= 'r') \
20913 || ('s' <= (c) && (c) <= 'z'))
20914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20922 for (i = 0; i < 256; i++)
20923 if (XOR (islower (i), ISLOWER (i))
20924 || toupper (i) != TOUPPER (i))
20929 rm -f conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_link") 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20940 { (case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_try") 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20951 echo "$as_me: program exited with status $ac_status" >&5
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ( exit $ac_status )
20956 ac_cv_header_stdc=no
20958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20966 if test $ac_cv_header_stdc = yes; then
20968 cat >>confdefs.h <<\_ACEOF
20969 #define STDC_HEADERS 1
20974 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20975 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20976 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 #include <sys/types.h>
20986 #include <sys/wait.h>
20987 #ifndef WEXITSTATUS
20988 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20991 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20999 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 ac_cv_header_sys_wait_h=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_header_sys_wait_h=no
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21032 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21033 if test $ac_cv_header_sys_wait_h = yes; then
21035 cat >>confdefs.h <<\_ACEOF
21036 #define HAVE_SYS_WAIT_H 1
21048 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h term.h
21050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 ac_res=`eval echo '${'$as_ac_Header'}'`
21058 { echo "$as_me:$LINENO: result: $ac_res" >&5
21059 echo "${ECHO_T}$ac_res" >&6; }
21061 # Is the header compilable?
21062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 $ac_includes_default
21071 #include <$ac_header>
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21090 ac_header_compiler=yes
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_header_compiler=no
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21100 echo "${ECHO_T}$ac_header_compiler" >&6; }
21102 # Is the header present?
21103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21105 cat >conftest.$ac_ext <<_ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21111 #include <$ac_header>
21113 if { (ac_try="$ac_cpp conftest.$ac_ext"
21114 case "(($ac_try" in
21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116 *) ac_try_echo=$ac_try;;
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21121 grep -v '^ *+' conftest.er1 >conftest.err
21123 cat conftest.err >&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } >/dev/null && {
21126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21127 test ! -s conftest.err
21129 ac_header_preproc=yes
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ac_header_preproc=no
21137 rm -f conftest.err conftest.$ac_ext
21138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21139 echo "${ECHO_T}$ac_header_preproc" >&6; }
21141 # So? What about this header?
21142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21148 ac_header_preproc=yes
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 eval "$as_ac_Header=\$ac_header_preproc"
21173 ac_res=`eval echo '${'$as_ac_Header'}'`
21174 { echo "$as_me:$LINENO: result: $ac_res" >&5
21175 echo "${ECHO_T}$ac_res" >&6; }
21178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21192 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21205 # Is the header compilable?
21206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 $ac_includes_default
21215 #include <$ac_header>
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && {
21231 test -z "$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21233 } && test -s conftest.$ac_objext; then
21234 ac_header_compiler=yes
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_header_compiler=no
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21244 echo "${ECHO_T}$ac_header_compiler" >&6; }
21246 # Is the header present?
21247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <$ac_header>
21257 if { (ac_try="$ac_cpp conftest.$ac_ext"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } >/dev/null && {
21270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21271 test ! -s conftest.err
21273 ac_header_preproc=yes
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_header_preproc=no
21281 rm -f conftest.err conftest.$ac_ext
21282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21283 echo "${ECHO_T}$ac_header_preproc" >&6; }
21285 # So? What about this header?
21286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21292 ac_header_preproc=yes
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 eval "$as_ac_Header=\$ac_header_preproc"
21317 ac_res=`eval echo '${'$as_ac_Header'}'`
21318 { echo "$as_me:$LINENO: result: $ac_res" >&5
21319 echo "${ECHO_T}$ac_res" >&6; }
21322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21336 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 ac_res=`eval echo '${'$as_ac_Header'}'`
21346 { echo "$as_me:$LINENO: result: $ac_res" >&5
21347 echo "${ECHO_T}$ac_res" >&6; }
21349 # Is the header compilable?
21350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21359 #include <$ac_header>
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21378 ac_header_compiler=yes
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_header_compiler=no
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21388 echo "${ECHO_T}$ac_header_compiler" >&6; }
21390 # Is the header present?
21391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <$ac_header>
21401 if { (ac_try="$ac_cpp conftest.$ac_ext"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } >/dev/null && {
21414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21417 ac_header_preproc=yes
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_header_preproc=no
21425 rm -f conftest.err conftest.$ac_ext
21426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21427 echo "${ECHO_T}$ac_header_preproc" >&6; }
21429 # So? What about this header?
21430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21436 ac_header_preproc=yes
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 eval "$as_ac_Header=\$ac_header_preproc"
21461 ac_res=`eval echo '${'$as_ac_Header'}'`
21462 { echo "$as_me:$LINENO: result: $ac_res" >&5
21463 echo "${ECHO_T}$ac_res" >&6; }
21466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21467 cat >>confdefs.h <<_ACEOF
21468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21476 if test "$no_x" != "yes"; then
21482 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21483 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21484 if test "${ac_cv_type_signal+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 cat >conftest.$ac_ext <<_ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <sys/types.h>
21494 #include <signal.h>
21499 return *(signal (0, 0)) (0) == 1;
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_cv_type_signal=int
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_cv_type_signal=void
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21532 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21534 cat >>confdefs.h <<_ACEOF
21535 #define RETSIGTYPE $ac_cv_type_signal
21539 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21540 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21541 if test "${ac_cv_type_uid_t+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <sys/types.h>
21553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21554 $EGREP "uid_t" >/dev/null 2>&1; then
21555 ac_cv_type_uid_t=yes
21557 ac_cv_type_uid_t=no
21562 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21563 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21564 if test $ac_cv_type_uid_t = no; then
21566 cat >>confdefs.h <<\_ACEOF
21571 cat >>confdefs.h <<\_ACEOF
21577 { echo "$as_me:$LINENO: checking for short" >&5
21578 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21579 if test "${ac_cv_type_short+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 $ac_includes_default
21589 typedef short ac__type_new_;
21593 if ((ac__type_new_ *) 0)
21595 if (sizeof (ac__type_new_))
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_compile") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest.$ac_objext; then
21618 ac_cv_type_short=yes
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_cv_type_short=no
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21629 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21631 # The cast to long int works around a bug in the HP C Compiler
21632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21634 # This bug is HP SR number 8606223364.
21635 { echo "$as_me:$LINENO: checking size of short" >&5
21636 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21637 if test "${ac_cv_sizeof_short+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 if test "$cross_compiling" = yes; then
21641 # Depending upon the size, compute the lo and hi bounds.
21642 cat >conftest.$ac_ext <<_ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 $ac_includes_default
21649 typedef short ac__type_sizeof_;
21653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1 >conftest.err
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
21679 cat >conftest.$ac_ext <<_ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 $ac_includes_default
21686 typedef short ac__type_sizeof_;
21690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_compile") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } && {
21711 test -z "$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 } && test -s conftest.$ac_objext; then
21714 ac_hi=$ac_mid; break
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_lo=`expr $ac_mid + 1`
21720 if test $ac_lo -le $ac_mid; then
21724 ac_mid=`expr 2 '*' $ac_mid + 1`
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 cat >conftest.$ac_ext <<_ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21739 $ac_includes_default
21740 typedef short ac__type_sizeof_;
21744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21751 rm -f conftest.$ac_objext
21752 if { (ac_try="$ac_compile"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_compile") 2>conftest.er1
21760 grep -v '^ *+' conftest.er1 >conftest.err
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && {
21765 test -z "$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21767 } && test -s conftest.$ac_objext; then
21770 cat >conftest.$ac_ext <<_ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21777 typedef short ac__type_sizeof_;
21781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21788 rm -f conftest.$ac_objext
21789 if { (ac_try="$ac_compile"
21790 case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_compile") 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest.$ac_objext; then
21805 ac_lo=$ac_mid; break
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_hi=`expr '(' $ac_mid ')' - 1`
21811 if test $ac_mid -le $ac_hi; then
21815 ac_mid=`expr 2 '*' $ac_mid`
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 # Binary search between lo and hi bounds.
21832 while test "x$ac_lo" != "x$ac_hi"; do
21833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 $ac_includes_default
21841 typedef short ac__type_sizeof_;
21845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21852 rm -f conftest.$ac_objext
21853 if { (ac_try="$ac_compile"
21854 case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_compile") 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } && {
21866 test -z "$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21868 } && test -s conftest.$ac_objext; then
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ac_lo=`expr '(' $ac_mid ')' + 1`
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 ?*) ac_cv_sizeof_short=$ac_lo;;
21881 '') if test "$ac_cv_type_short" = yes; then
21882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21883 See \`config.log' for more details." >&5
21884 echo "$as_me: error: cannot compute sizeof (short)
21885 See \`config.log' for more details." >&2;}
21886 { (exit 77); exit 77; }; }
21888 ac_cv_sizeof_short=0
21892 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 $ac_includes_default
21899 typedef short ac__type_sizeof_;
21900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21903 #include <stdlib.h>
21908 FILE *f = fopen ("conftest.val", "w");
21911 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21913 long int i = longval ();
21914 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21916 fprintf (f, "%ld\n", i);
21920 unsigned long int i = ulongval ();
21921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21923 fprintf (f, "%lu\n", i);
21925 return ferror (f) || fclose (f) != 0;
21931 rm -f conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_link") 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942 { (case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_try") 2>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; }; then
21951 ac_cv_sizeof_short=`cat conftest.val`
21953 echo "$as_me: program exited with status $ac_status" >&5
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21957 ( exit $ac_status )
21958 if test "$ac_cv_type_short" = yes; then
21959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21960 See \`config.log' for more details." >&5
21961 echo "$as_me: error: cannot compute sizeof (short)
21962 See \`config.log' for more details." >&2;}
21963 { (exit 77); exit 77; }; }
21965 ac_cv_sizeof_short=0
21968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21973 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21977 cat >>confdefs.h <<_ACEOF
21978 #define SIZEOF_SHORT $ac_cv_sizeof_short
21982 { echo "$as_me:$LINENO: checking for int" >&5
21983 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21984 if test "${ac_cv_type_int+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 cat >conftest.$ac_ext <<_ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 $ac_includes_default
21994 typedef int ac__type_new_;
21998 if ((ac__type_new_ *) 0)
22000 if (sizeof (ac__type_new_))
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22015 grep -v '^ *+' conftest.er1 >conftest.err
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22034 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22036 # The cast to long int works around a bug in the HP C Compiler
22037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22039 # This bug is HP SR number 8606223364.
22040 { echo "$as_me:$LINENO: checking size of int" >&5
22041 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22042 if test "${ac_cv_sizeof_int+set}" = set; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 if test "$cross_compiling" = yes; then
22046 # Depending upon the size, compute the lo and hi bounds.
22047 cat >conftest.$ac_ext <<_ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 $ac_includes_default
22054 typedef int ac__type_sizeof_;
22058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22065 rm -f conftest.$ac_objext
22066 if { (ac_try="$ac_compile"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_compile") 2>conftest.er1
22074 grep -v '^ *+' conftest.er1 >conftest.err
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && {
22079 test -z "$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22081 } && test -s conftest.$ac_objext; then
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 $ac_includes_default
22091 typedef int ac__type_sizeof_;
22095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22102 rm -f conftest.$ac_objext
22103 if { (ac_try="$ac_compile"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_compile") 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } && {
22116 test -z "$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 } && test -s conftest.$ac_objext; then
22119 ac_hi=$ac_mid; break
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ac_lo=`expr $ac_mid + 1`
22125 if test $ac_lo -le $ac_mid; then
22129 ac_mid=`expr 2 '*' $ac_mid + 1`
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 $ac_includes_default
22145 typedef int ac__type_sizeof_;
22149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1 >conftest.err
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 $ac_includes_default
22182 typedef int ac__type_sizeof_;
22186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 ac_lo=$ac_mid; break
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_hi=`expr '(' $ac_mid ')' - 1`
22216 if test $ac_mid -le $ac_hi; then
22220 ac_mid=`expr 2 '*' $ac_mid`
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 # Binary search between lo and hi bounds.
22237 while test "x$ac_lo" != "x$ac_hi"; do
22238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 $ac_includes_default
22246 typedef int ac__type_sizeof_;
22250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22257 rm -f conftest.$ac_objext
22258 if { (ac_try="$ac_compile"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest.$ac_objext; then
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 ac_lo=`expr '(' $ac_mid ')' + 1`
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22285 ?*) ac_cv_sizeof_int=$ac_lo;;
22286 '') if test "$ac_cv_type_int" = yes; then
22287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22288 See \`config.log' for more details." >&5
22289 echo "$as_me: error: cannot compute sizeof (int)
22290 See \`config.log' for more details." >&2;}
22291 { (exit 77); exit 77; }; }
22297 cat >conftest.$ac_ext <<_ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22303 $ac_includes_default
22304 typedef int ac__type_sizeof_;
22305 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22306 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22308 #include <stdlib.h>
22313 FILE *f = fopen ("conftest.val", "w");
22316 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22318 long int i = longval ();
22319 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22321 fprintf (f, "%ld\n", i);
22325 unsigned long int i = ulongval ();
22326 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22328 fprintf (f, "%lu\n", i);
22330 return ferror (f) || fclose (f) != 0;
22336 rm -f conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22347 { (case "(($ac_try" in
22348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349 *) ac_try_echo=$ac_try;;
22351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22352 (eval "$ac_try") 2>&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356 ac_cv_sizeof_int=`cat conftest.val`
22358 echo "$as_me: program exited with status $ac_status" >&5
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22362 ( exit $ac_status )
22363 if test "$ac_cv_type_int" = yes; then
22364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22365 See \`config.log' for more details." >&5
22366 echo "$as_me: error: cannot compute sizeof (int)
22367 See \`config.log' for more details." >&2;}
22368 { (exit 77); exit 77; }; }
22373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22377 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22378 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22382 cat >>confdefs.h <<_ACEOF
22383 #define SIZEOF_INT $ac_cv_sizeof_int
22387 { echo "$as_me:$LINENO: checking for long" >&5
22388 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22389 if test "${ac_cv_type_long+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 $ac_includes_default
22399 typedef long ac__type_new_;
22403 if ((ac__type_new_ *) 0)
22405 if (sizeof (ac__type_new_))
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_compile") 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && {
22425 test -z "$ac_c_werror_flag" ||
22426 test ! -s conftest.err
22427 } && test -s conftest.$ac_objext; then
22428 ac_cv_type_long=yes
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22439 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22441 # The cast to long int works around a bug in the HP C Compiler
22442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22444 # This bug is HP SR number 8606223364.
22445 { echo "$as_me:$LINENO: checking size of long" >&5
22446 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22447 if test "${ac_cv_sizeof_long+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 if test "$cross_compiling" = yes; then
22451 # Depending upon the size, compute the lo and hi bounds.
22452 cat >conftest.$ac_ext <<_ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 $ac_includes_default
22459 typedef long ac__type_sizeof_;
22463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22470 rm -f conftest.$ac_objext
22471 if { (ac_try="$ac_compile"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_compile") 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } && {
22484 test -z "$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 } && test -s conftest.$ac_objext; then
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495 $ac_includes_default
22496 typedef long ac__type_sizeof_;
22500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_compile") 2>conftest.er1
22516 grep -v '^ *+' conftest.er1 >conftest.err
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } && {
22521 test -z "$ac_c_werror_flag" ||
22522 test ! -s conftest.err
22523 } && test -s conftest.$ac_objext; then
22524 ac_hi=$ac_mid; break
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ac_lo=`expr $ac_mid + 1`
22530 if test $ac_lo -le $ac_mid; then
22534 ac_mid=`expr 2 '*' $ac_mid + 1`
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 $ac_includes_default
22550 typedef long ac__type_sizeof_;
22554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.$ac_objext; then
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22587 typedef long ac__type_sizeof_;
22591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_compile") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } && {
22612 test -z "$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22614 } && test -s conftest.$ac_objext; then
22615 ac_lo=$ac_mid; break
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ac_hi=`expr '(' $ac_mid ')' - 1`
22621 if test $ac_mid -le $ac_hi; then
22625 ac_mid=`expr 2 '*' $ac_mid`
22628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 # Binary search between lo and hi bounds.
22642 while test "x$ac_lo" != "x$ac_hi"; do
22643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22644 cat >conftest.$ac_ext <<_ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 $ac_includes_default
22651 typedef long ac__type_sizeof_;
22655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_lo=`expr '(' $ac_mid ')' + 1`
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690 ?*) ac_cv_sizeof_long=$ac_lo;;
22691 '') if test "$ac_cv_type_long" = yes; then
22692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22693 See \`config.log' for more details." >&5
22694 echo "$as_me: error: cannot compute sizeof (long)
22695 See \`config.log' for more details." >&2;}
22696 { (exit 77); exit 77; }; }
22698 ac_cv_sizeof_long=0
22702 cat >conftest.$ac_ext <<_ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22708 $ac_includes_default
22709 typedef long ac__type_sizeof_;
22710 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22711 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22713 #include <stdlib.h>
22718 FILE *f = fopen ("conftest.val", "w");
22721 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22723 long int i = longval ();
22724 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22726 fprintf (f, "%ld\n", i);
22730 unsigned long int i = ulongval ();
22731 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22733 fprintf (f, "%lu\n", i);
22735 return ferror (f) || fclose (f) != 0;
22741 rm -f conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 ac_cv_sizeof_long=`cat conftest.val`
22763 echo "$as_me: program exited with status $ac_status" >&5
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ( exit $ac_status )
22768 if test "$ac_cv_type_long" = yes; then
22769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22770 See \`config.log' for more details." >&5
22771 echo "$as_me: error: cannot compute sizeof (long)
22772 See \`config.log' for more details." >&2;}
22773 { (exit 77); exit 77; }; }
22775 ac_cv_sizeof_long=0
22778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22782 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22783 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22787 cat >>confdefs.h <<_ACEOF
22788 #define SIZEOF_LONG $ac_cv_sizeof_long
22792 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22793 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22794 if test "$ac_cv_sizeof_long" = 4; then
22796 elif test "$ac_cv_sizeof_int" = 4; then
22798 elif test "$ac_cv_sizeof_short" = 4; then
22801 { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22802 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22805 cat >>confdefs.h <<_ACEOF
22806 #define ZEPHYR_INT32 ${int32}
22809 { echo "$as_me:$LINENO: result: ${int32}" >&5
22810 echo "${ECHO_T}${int32}" >&6; }
22813 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22814 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22815 if test "${ac_cv_lib_w_wslen+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 ac_check_lib_save_LIBS=$LIBS
22820 cat >conftest.$ac_ext <<_ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22827 /* Override any GCC internal prototype to avoid an error.
22828 Use char because int might match the return type of a GCC
22829 builtin and then its argument prototype would still apply. */
22842 rm -f conftest.$ac_objext conftest$ac_exeext
22843 if { (ac_try="$ac_link"
22844 case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_link") 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest$ac_exeext &&
22859 $as_test_x conftest$ac_exeext; then
22860 ac_cv_lib_w_wslen=yes
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_cv_lib_w_wslen=no
22868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22869 conftest$ac_exeext conftest.$ac_ext
22870 LIBS=$ac_check_lib_save_LIBS
22872 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22873 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22874 if test $ac_cv_lib_w_wslen = yes; then
22875 cat >>confdefs.h <<_ACEOF
22876 #define HAVE_LIBW 1
22884 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22885 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 ac_check_lib_save_LIBS=$LIBS
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22898 /* Override any GCC internal prototype to avoid an error.
22899 Use char because int might match the return type of a GCC
22900 builtin and then its argument prototype would still apply. */
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_link") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest$ac_exeext &&
22930 $as_test_x conftest$ac_exeext; then
22931 ac_cv_lib_dl_dlopen=yes
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ac_cv_lib_dl_dlopen=no
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940 conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22943 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22945 if test $ac_cv_lib_dl_dlopen = yes; then
22946 cat >>confdefs.h <<_ACEOF
22947 #define HAVE_LIBDL 1
22955 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22956 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22957 if test "${ac_cv_search_gethostbyname+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 ac_func_search_save_LIBS=$LIBS
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22968 /* Override any GCC internal prototype to avoid an error.
22969 Use char because int might match the return type of a GCC
22970 builtin and then its argument prototype would still apply. */
22974 char gethostbyname ();
22978 return gethostbyname ();
22983 for ac_lib in '' nsl; do
22984 if test -z "$ac_lib"; then
22985 ac_res="none required"
22988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997 (eval "$ac_link") 2>conftest.er1
22999 grep -v '^ *+' conftest.er1 >conftest.err
23001 cat conftest.err >&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } && {
23004 test -z "$ac_c_werror_flag" ||
23005 test ! -s conftest.err
23006 } && test -s conftest$ac_exeext &&
23007 $as_test_x conftest$ac_exeext; then
23008 ac_cv_search_gethostbyname=$ac_res
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23018 if test "${ac_cv_search_gethostbyname+set}" = set; then
23022 if test "${ac_cv_search_gethostbyname+set}" = set; then
23025 ac_cv_search_gethostbyname=no
23027 rm conftest.$ac_ext
23028 LIBS=$ac_func_search_save_LIBS
23030 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23031 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23032 ac_res=$ac_cv_search_gethostbyname
23033 if test "$ac_res" != no; then
23034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23038 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23039 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23040 if test "${ac_cv_search_socket+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 ac_func_search_save_LIBS=$LIBS
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23051 /* Override any GCC internal prototype to avoid an error.
23052 Use char because int might match the return type of a GCC
23053 builtin and then its argument prototype would still apply. */
23066 for ac_lib in '' socket; do
23067 if test -z "$ac_lib"; then
23068 ac_res="none required"
23071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23073 rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (ac_try="$ac_link"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_link") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest$ac_exeext &&
23090 $as_test_x conftest$ac_exeext; then
23091 ac_cv_search_socket=$ac_res
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23101 if test "${ac_cv_search_socket+set}" = set; then
23105 if test "${ac_cv_search_socket+set}" = set; then
23108 ac_cv_search_socket=no
23110 rm conftest.$ac_ext
23111 LIBS=$ac_func_search_save_LIBS
23113 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23114 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23115 ac_res=$ac_cv_search_socket
23116 if test "$ac_res" != no; then
23117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23122 # Hesiod needs -lresolv on Sun systems for res_send.
23123 if test "$hesiod" != "no"; then
23125 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23126 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23127 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 ac_check_lib_save_LIBS=$LIBS
23131 LIBS="-l44bsd $LIBS"
23132 cat >conftest.$ac_ext <<_ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23139 /* Override any GCC internal prototype to avoid an error.
23140 Use char because int might match the return type of a GCC
23141 builtin and then its argument prototype would still apply. */
23149 return strerror ();
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (ac_try="$ac_link"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_link") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest$ac_exeext &&
23171 $as_test_x conftest$ac_exeext; then
23172 ac_cv_lib_44bsd_strerror=yes
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 ac_cv_lib_44bsd_strerror=no
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181 conftest$ac_exeext conftest.$ac_ext
23182 LIBS=$ac_check_lib_save_LIBS
23184 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23185 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23186 if test $ac_cv_lib_44bsd_strerror = yes; then
23187 cat >>confdefs.h <<_ACEOF
23188 #define HAVE_LIB44BSD 1
23191 LIBS="-l44bsd $LIBS"
23196 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23197 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23198 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 ac_check_lib_save_LIBS=$LIBS
23202 LIBS="-lresolv $LIBS"
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23210 /* Override any GCC internal prototype to avoid an error.
23211 Use char because int might match the return type of a GCC
23212 builtin and then its argument prototype would still apply. */
23220 return res_send ();
23225 rm -f conftest.$ac_objext conftest$ac_exeext
23226 if { (ac_try="$ac_link"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_link") 2>conftest.er1
23234 grep -v '^ *+' conftest.er1 >conftest.err
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } && {
23239 test -z "$ac_c_werror_flag" ||
23240 test ! -s conftest.err
23241 } && test -s conftest$ac_exeext &&
23242 $as_test_x conftest$ac_exeext; then
23243 ac_cv_lib_resolv_res_send=yes
23245 echo "$as_me: failed program was:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23248 ac_cv_lib_resolv_res_send=no
23251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23252 conftest$ac_exeext conftest.$ac_ext
23253 LIBS=$ac_check_lib_save_LIBS
23255 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23256 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23257 if test $ac_cv_lib_resolv_res_send = yes; then
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_LIBRESOLV 1
23262 LIBS="-lresolv $LIBS"
23267 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23268 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23269 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 ac_check_lib_save_LIBS=$LIBS
23273 LIBS="-lresolv $LIBS"
23274 cat >conftest.$ac_ext <<_ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23281 /* Override any GCC internal prototype to avoid an error.
23282 Use char because int might match the return type of a GCC
23283 builtin and then its argument prototype would still apply. */
23287 char __res_send ();
23291 return __res_send ();
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_link") 2>conftest.er1
23305 grep -v '^ *+' conftest.er1 >conftest.err
23307 cat conftest.err >&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); } && {
23310 test -z "$ac_c_werror_flag" ||
23311 test ! -s conftest.err
23312 } && test -s conftest$ac_exeext &&
23313 $as_test_x conftest$ac_exeext; then
23314 ac_cv_lib_resolv___res_send=yes
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ac_cv_lib_resolv___res_send=no
23322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23323 conftest$ac_exeext conftest.$ac_ext
23324 LIBS=$ac_check_lib_save_LIBS
23326 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23327 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23328 if test $ac_cv_lib_resolv___res_send = yes; then
23329 cat >>confdefs.h <<_ACEOF
23330 #define HAVE_LIBRESOLV 1
23333 LIBS="-lresolv $LIBS"
23339 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23340 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23341 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 ac_check_lib_save_LIBS=$LIBS
23345 LIBS="-lcurses $LIBS"
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23353 /* Override any GCC internal prototype to avoid an error.
23354 Use char because int might match the return type of a GCC
23355 builtin and then its argument prototype would still apply. */
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (ac_try="$ac_link"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_link") 2>conftest.er1
23377 grep -v '^ *+' conftest.er1 >conftest.err
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } && {
23382 test -z "$ac_c_werror_flag" ||
23383 test ! -s conftest.err
23384 } && test -s conftest$ac_exeext &&
23385 $as_test_x conftest$ac_exeext; then
23386 ac_cv_lib_curses_tgetstr=yes
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ac_cv_lib_curses_tgetstr=no
23394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23395 conftest$ac_exeext conftest.$ac_ext
23396 LIBS=$ac_check_lib_save_LIBS
23398 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23399 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23400 if test $ac_cv_lib_curses_tgetstr = yes; then
23406 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23407 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23408 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 ac_check_lib_save_LIBS=$LIBS
23413 cat >conftest.$ac_ext <<_ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (ac_try="$ac_link"
23437 case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_link") 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } && {
23449 test -z "$ac_c_werror_flag" ||
23450 test ! -s conftest.err
23451 } && test -s conftest$ac_exeext &&
23452 $as_test_x conftest$ac_exeext; then
23453 ac_cv_lib_src_srcsrpy=yes
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 ac_cv_lib_src_srcsrpy=no
23461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23462 conftest$ac_exeext conftest.$ac_ext
23463 LIBS=$ac_check_lib_save_LIBS
23465 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23466 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23467 if test $ac_cv_lib_src_srcsrpy = yes; then
23468 SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23479 # Check whether --with-krb4 was given.
23480 if test "${with_krb4+set}" = set; then
23481 withval=$with_krb4; krb4="$withval"
23486 if test "$krb4" != no; then
23487 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23488 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23489 if test "${ac_cv_func_gethostbyname+set}" = set; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 cat >conftest.$ac_ext <<_ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23500 #define gethostbyname innocuous_gethostbyname
23502 /* System header to define __stub macros and hopefully few prototypes,
23503 which can conflict with char gethostbyname (); below.
23504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23505 <limits.h> exists even on freestanding compilers. */
23508 # include <limits.h>
23510 # include <assert.h>
23513 #undef gethostbyname
23515 /* Override any GCC internal prototype to avoid an error.
23516 Use char because int might match the return type of a GCC
23517 builtin and then its argument prototype would still apply. */
23521 char gethostbyname ();
23522 /* The GNU C library defines this for functions which it implements
23523 to always fail with ENOSYS. Some functions are actually named
23524 something starting with __ and the normal name is an alias. */
23525 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23532 return gethostbyname ();
23537 rm -f conftest.$ac_objext conftest$ac_exeext
23538 if { (ac_try="$ac_link"
23539 case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_link") 2>conftest.er1
23546 grep -v '^ *+' conftest.er1 >conftest.err
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } && {
23551 test -z "$ac_c_werror_flag" ||
23552 test ! -s conftest.err
23553 } && test -s conftest$ac_exeext &&
23554 $as_test_x conftest$ac_exeext; then
23555 ac_cv_func_gethostbyname=yes
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23560 ac_cv_func_gethostbyname=no
23563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23564 conftest$ac_exeext conftest.$ac_ext
23566 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23567 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23568 if test $ac_cv_func_gethostbyname = yes; then
23572 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23573 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23574 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 ac_check_lib_save_LIBS=$LIBS
23579 cat >conftest.$ac_ext <<_ACEOF
23582 cat confdefs.h >>conftest.$ac_ext
23583 cat >>conftest.$ac_ext <<_ACEOF
23584 /* end confdefs.h. */
23586 /* Override any GCC internal prototype to avoid an error.
23587 Use char because int might match the return type of a GCC
23588 builtin and then its argument prototype would still apply. */
23592 char gethostbyname ();
23596 return gethostbyname ();
23601 rm -f conftest.$ac_objext conftest$ac_exeext
23602 if { (ac_try="$ac_link"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23608 (eval "$ac_link") 2>conftest.er1
23610 grep -v '^ *+' conftest.er1 >conftest.err
23612 cat conftest.err >&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && {
23615 test -z "$ac_c_werror_flag" ||
23616 test ! -s conftest.err
23617 } && test -s conftest$ac_exeext &&
23618 $as_test_x conftest$ac_exeext; then
23619 ac_cv_lib_nsl_gethostbyname=yes
23621 echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23624 ac_cv_lib_nsl_gethostbyname=no
23627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23628 conftest$ac_exeext conftest.$ac_ext
23629 LIBS=$ac_check_lib_save_LIBS
23631 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23632 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23633 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23634 cat >>confdefs.h <<_ACEOF
23635 #define HAVE_LIBNSL 1
23644 { echo "$as_me:$LINENO: checking for socket" >&5
23645 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23646 if test "${ac_cv_func_socket+set}" = set; then
23647 echo $ECHO_N "(cached) $ECHO_C" >&6
23649 cat >conftest.$ac_ext <<_ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23657 #define socket innocuous_socket
23659 /* System header to define __stub macros and hopefully few prototypes,
23660 which can conflict with char socket (); below.
23661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23662 <limits.h> exists even on freestanding compilers. */
23665 # include <limits.h>
23667 # include <assert.h>
23672 /* Override any GCC internal prototype to avoid an error.
23673 Use char because int might match the return type of a GCC
23674 builtin and then its argument prototype would still apply. */
23679 /* The GNU C library defines this for functions which it implements
23680 to always fail with ENOSYS. Some functions are actually named
23681 something starting with __ and the normal name is an alias. */
23682 #if defined __stub_socket || defined __stub___socket
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (ac_try="$ac_link"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_link") 2>conftest.er1
23703 grep -v '^ *+' conftest.er1 >conftest.err
23705 cat conftest.err >&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } && {
23708 test -z "$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23710 } && test -s conftest$ac_exeext &&
23711 $as_test_x conftest$ac_exeext; then
23712 ac_cv_func_socket=yes
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ac_cv_func_socket=no
23720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23721 conftest$ac_exeext conftest.$ac_ext
23723 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23724 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23725 if test $ac_cv_func_socket = yes; then
23729 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23730 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23731 if test "${ac_cv_lib_socket_socket+set}" = set; then
23732 echo $ECHO_N "(cached) $ECHO_C" >&6
23734 ac_check_lib_save_LIBS=$LIBS
23735 LIBS="-lsocket $LIBS"
23736 cat >conftest.$ac_ext <<_ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23743 /* Override any GCC internal prototype to avoid an error.
23744 Use char because int might match the return type of a GCC
23745 builtin and then its argument prototype would still apply. */
23758 rm -f conftest.$ac_objext conftest$ac_exeext
23759 if { (ac_try="$ac_link"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_link") 2>conftest.er1
23767 grep -v '^ *+' conftest.er1 >conftest.err
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest$ac_exeext &&
23775 $as_test_x conftest$ac_exeext; then
23776 ac_cv_lib_socket_socket=yes
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 ac_cv_lib_socket_socket=no
23784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23785 conftest$ac_exeext conftest.$ac_ext
23786 LIBS=$ac_check_lib_save_LIBS
23788 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23789 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23790 if test $ac_cv_lib_socket_socket = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_LIBSOCKET 1
23795 LIBS="-lsocket $LIBS"
23802 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23803 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23804 if test "${ac_cv_lib_gen_compile+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 ac_check_lib_save_LIBS=$LIBS
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23816 /* Override any GCC internal prototype to avoid an error.
23817 Use char because int might match the return type of a GCC
23818 builtin and then its argument prototype would still apply. */
23831 rm -f conftest.$ac_objext conftest$ac_exeext
23832 if { (ac_try="$ac_link"
23833 case "(($ac_try" in
23834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835 *) ac_try_echo=$ac_try;;
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838 (eval "$ac_link") 2>conftest.er1
23840 grep -v '^ *+' conftest.er1 >conftest.err
23842 cat conftest.err >&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && {
23845 test -z "$ac_c_werror_flag" ||
23846 test ! -s conftest.err
23847 } && test -s conftest$ac_exeext &&
23848 $as_test_x conftest$ac_exeext; then
23849 ac_cv_lib_gen_compile=yes
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 ac_cv_lib_gen_compile=no
23857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23858 conftest$ac_exeext conftest.$ac_ext
23859 LIBS=$ac_check_lib_save_LIBS
23861 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23862 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23863 if test $ac_cv_lib_gen_compile = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865 #define HAVE_LIBGEN 1
23872 if test "$krb4" != yes; then
23873 CPPFLAGS="$CPPFLAGS -I$krb4/include"
23874 if test -d "$krb4/include/kerberosIV"; then
23875 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23877 LDFLAGS="$LDFLAGS -L$krb4/lib"
23879 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23880 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23881 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 ac_check_lib_save_LIBS=$LIBS
23885 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23893 /* Override any GCC internal prototype to avoid an error.
23894 Use char because int might match the return type of a GCC
23895 builtin and then its argument prototype would still apply. */
23899 char krb_rd_req ();
23903 return krb_rd_req ();
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (ac_try="$ac_link"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_link") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest$ac_exeext &&
23925 $as_test_x conftest$ac_exeext; then
23926 ac_cv_lib_krb4_krb_rd_req=yes
23928 echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23931 ac_cv_lib_krb4_krb_rd_req=no
23934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23935 conftest$ac_exeext conftest.$ac_ext
23936 LIBS=$ac_check_lib_save_LIBS
23938 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23939 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23940 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23941 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23943 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23944 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23945 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 ac_check_lib_save_LIBS=$LIBS
23949 LIBS="-lkrb -ldes $LIBS"
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23957 /* Override any GCC internal prototype to avoid an error.
23958 Use char because int might match the return type of a GCC
23959 builtin and then its argument prototype would still apply. */
23963 char krb_rd_req ();
23967 return krb_rd_req ();
23972 rm -f conftest.$ac_objext conftest$ac_exeext
23973 if { (ac_try="$ac_link"
23974 case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979 (eval "$ac_link") 2>conftest.er1
23981 grep -v '^ *+' conftest.er1 >conftest.err
23983 cat conftest.err >&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && {
23986 test -z "$ac_c_werror_flag" ||
23987 test ! -s conftest.err
23988 } && test -s conftest$ac_exeext &&
23989 $as_test_x conftest$ac_exeext; then
23990 ac_cv_lib_krb_krb_rd_req=yes
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ac_cv_lib_krb_krb_rd_req=no
23998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23999 conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24002 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24003 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24004 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24005 KRB4_LIBS="-lkrb -ldes"
24007 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24008 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24009 { (exit 1); exit 1; }; }
24014 cat >>confdefs.h <<\_ACEOF
24015 #define HAVE_KRB4 1
24022 # Check whether --with-krb5 was given.
24023 if test "${with_krb5+set}" = set; then
24024 withval=$with_krb5; krb5="$withval"
24029 if test "$krb5" != no; then
24030 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24031 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24032 if test "${ac_cv_search_gethostbyname+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 ac_func_search_save_LIBS=$LIBS
24036 cat >conftest.$ac_ext <<_ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24043 /* Override any GCC internal prototype to avoid an error.
24044 Use char because int might match the return type of a GCC
24045 builtin and then its argument prototype would still apply. */
24049 char gethostbyname ();
24053 return gethostbyname ();
24058 for ac_lib in '' nsl; do
24059 if test -z "$ac_lib"; then
24060 ac_res="none required"
24063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24065 rm -f conftest.$ac_objext conftest$ac_exeext
24066 if { (ac_try="$ac_link"
24067 case "(($ac_try" in
24068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072 (eval "$ac_link") 2>conftest.er1
24074 grep -v '^ *+' conftest.er1 >conftest.err
24076 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && {
24079 test -z "$ac_c_werror_flag" ||
24080 test ! -s conftest.err
24081 } && test -s conftest$ac_exeext &&
24082 $as_test_x conftest$ac_exeext; then
24083 ac_cv_search_gethostbyname=$ac_res
24085 echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24093 if test "${ac_cv_search_gethostbyname+set}" = set; then
24097 if test "${ac_cv_search_gethostbyname+set}" = set; then
24100 ac_cv_search_gethostbyname=no
24102 rm conftest.$ac_ext
24103 LIBS=$ac_func_search_save_LIBS
24105 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24106 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24107 ac_res=$ac_cv_search_gethostbyname
24108 if test "$ac_res" != no; then
24109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24113 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24114 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24115 if test "${ac_cv_search_socket+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 ac_func_search_save_LIBS=$LIBS
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24126 /* Override any GCC internal prototype to avoid an error.
24127 Use char because int might match the return type of a GCC
24128 builtin and then its argument prototype would still apply. */
24141 for ac_lib in '' socket; do
24142 if test -z "$ac_lib"; then
24143 ac_res="none required"
24146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24148 rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (ac_try="$ac_link"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_link") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest$ac_exeext &&
24165 $as_test_x conftest$ac_exeext; then
24166 ac_cv_search_socket=$ac_res
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24176 if test "${ac_cv_search_socket+set}" = set; then
24180 if test "${ac_cv_search_socket+set}" = set; then
24183 ac_cv_search_socket=no
24185 rm conftest.$ac_ext
24186 LIBS=$ac_func_search_save_LIBS
24188 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24189 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24190 ac_res=$ac_cv_search_socket
24191 if test "$ac_res" != no; then
24192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24197 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24198 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24199 if test "${ac_cv_lib_gen_compile+set}" = set; then
24200 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 ac_check_lib_save_LIBS=$LIBS
24204 cat >conftest.$ac_ext <<_ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24211 /* Override any GCC internal prototype to avoid an error.
24212 Use char because int might match the return type of a GCC
24213 builtin and then its argument prototype would still apply. */
24226 rm -f conftest.$ac_objext conftest$ac_exeext
24227 if { (ac_try="$ac_link"
24228 case "(($ac_try" in
24229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233 (eval "$ac_link") 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } && {
24240 test -z "$ac_c_werror_flag" ||
24241 test ! -s conftest.err
24242 } && test -s conftest$ac_exeext &&
24243 $as_test_x conftest$ac_exeext; then
24244 ac_cv_lib_gen_compile=yes
24246 echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_lib_gen_compile=no
24252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24253 conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24257 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24258 if test $ac_cv_lib_gen_compile = yes; then
24259 cat >>confdefs.h <<_ACEOF
24260 #define HAVE_LIBGEN 1
24267 if test "$krb5" != yes; then
24268 PATH="$PATH:$krb5/bin"
24270 # Extract the first word of "krb5-config", so it can be a program name with args.
24271 set dummy krb5-config; ac_word=$2
24272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24274 if test "${ac_cv_prog_krb5config+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 if test -n "$krb5config"; then
24278 ac_cv_prog_krb5config="$krb5config" # Let the user override the test.
24280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24281 for as_dir in $PATH
24284 test -z "$as_dir" && as_dir=.
24285 for ac_exec_ext in '' $ac_executable_extensions; do
24286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24287 ac_cv_prog_krb5config="yes"
24288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24297 krb5config=$ac_cv_prog_krb5config
24298 if test -n "$krb5config"; then
24299 { echo "$as_me:$LINENO: result: $krb5config" >&5
24300 echo "${ECHO_T}$krb5config" >&6; }
24302 { echo "$as_me:$LINENO: result: no" >&5
24303 echo "${ECHO_T}no" >&6; }
24307 if test "$krb5config" == yes; then
24308 CPPFLAGS="$CPPFLAGS $(krb5-config --cflags krb5)"
24309 KRB5_LIBS="$(krb5-config --libs krb5)"
24311 if test "$krb5" != yes; then
24312 CPPFLAGS="$CPPFLAGS -I$krb5/include"
24313 LDFLAGS="$LDFLAGS -L$krb5/lib"
24315 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24316 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24317 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 ac_check_lib_save_LIBS=$LIBS
24321 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24322 cat >conftest.$ac_ext <<_ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24329 /* Override any GCC internal prototype to avoid an error.
24330 Use char because int might match the return type of a GCC
24331 builtin and then its argument prototype would still apply. */
24335 char krb5_init_context ();
24339 return krb5_init_context ();
24344 rm -f conftest.$ac_objext conftest$ac_exeext
24345 if { (ac_try="$ac_link"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_link") 2>conftest.er1
24353 grep -v '^ *+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_c_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest$ac_exeext &&
24361 $as_test_x conftest$ac_exeext; then
24362 ac_cv_lib_krb5_krb5_init_context=yes
24364 echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24367 ac_cv_lib_krb5_krb5_init_context=no
24370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24371 conftest$ac_exeext conftest.$ac_ext
24372 LIBS=$ac_check_lib_save_LIBS
24374 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24375 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24376 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24379 { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24380 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24381 { (exit 1); exit 1; }; }
24384 KRB5_LIBS="-lkrb5 -l5crypto -lcom_err"
24386 cat >>confdefs.h <<\_ACEOF
24387 #define HAVE_KRB5 1
24394 # Check whether --with-krb5 was given.
24395 if test "${with_krb5+set}" = set; then
24396 withval=$with_krb5; krb5="$withval"
24401 if test "$krb5" != no; then
24402 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24403 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24404 if test "${ac_cv_search_gethostbyname+set}" = set; then
24405 echo $ECHO_N "(cached) $ECHO_C" >&6
24407 ac_func_search_save_LIBS=$LIBS
24408 cat >conftest.$ac_ext <<_ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24415 /* Override any GCC internal prototype to avoid an error.
24416 Use char because int might match the return type of a GCC
24417 builtin and then its argument prototype would still apply. */
24421 char gethostbyname ();
24425 return gethostbyname ();
24430 for ac_lib in '' nsl; do
24431 if test -z "$ac_lib"; then
24432 ac_res="none required"
24435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24437 rm -f conftest.$ac_objext conftest$ac_exeext
24438 if { (ac_try="$ac_link"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444 (eval "$ac_link") 2>conftest.er1
24446 grep -v '^ *+' conftest.er1 >conftest.err
24448 cat conftest.err >&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } && {
24451 test -z "$ac_c_werror_flag" ||
24452 test ! -s conftest.err
24453 } && test -s conftest$ac_exeext &&
24454 $as_test_x conftest$ac_exeext; then
24455 ac_cv_search_gethostbyname=$ac_res
24457 echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24465 if test "${ac_cv_search_gethostbyname+set}" = set; then
24469 if test "${ac_cv_search_gethostbyname+set}" = set; then
24472 ac_cv_search_gethostbyname=no
24474 rm conftest.$ac_ext
24475 LIBS=$ac_func_search_save_LIBS
24477 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24478 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24479 ac_res=$ac_cv_search_gethostbyname
24480 if test "$ac_res" != no; then
24481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24485 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24486 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24487 if test "${ac_cv_search_socket+set}" = set; then
24488 echo $ECHO_N "(cached) $ECHO_C" >&6
24490 ac_func_search_save_LIBS=$LIBS
24491 cat >conftest.$ac_ext <<_ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h. */
24498 /* Override any GCC internal prototype to avoid an error.
24499 Use char because int might match the return type of a GCC
24500 builtin and then its argument prototype would still apply. */
24513 for ac_lib in '' socket; do
24514 if test -z "$ac_lib"; then
24515 ac_res="none required"
24518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24520 rm -f conftest.$ac_objext conftest$ac_exeext
24521 if { (ac_try="$ac_link"
24522 case "(($ac_try" in
24523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524 *) ac_try_echo=$ac_try;;
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_link") 2>conftest.er1
24529 grep -v '^ *+' conftest.er1 >conftest.err
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest$ac_exeext &&
24537 $as_test_x conftest$ac_exeext; then
24538 ac_cv_search_socket=$ac_res
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24548 if test "${ac_cv_search_socket+set}" = set; then
24552 if test "${ac_cv_search_socket+set}" = set; then
24555 ac_cv_search_socket=no
24557 rm conftest.$ac_ext
24558 LIBS=$ac_func_search_save_LIBS
24560 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24561 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24562 ac_res=$ac_cv_search_socket
24563 if test "$ac_res" != no; then
24564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24569 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24570 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24571 if test "${ac_cv_lib_gen_compile+set}" = set; then
24572 echo $ECHO_N "(cached) $ECHO_C" >&6
24574 ac_check_lib_save_LIBS=$LIBS
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24583 /* Override any GCC internal prototype to avoid an error.
24584 Use char because int might match the return type of a GCC
24585 builtin and then its argument prototype would still apply. */
24598 rm -f conftest.$ac_objext conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_link") 2>conftest.er1
24607 grep -v '^ *+' conftest.er1 >conftest.err
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } && {
24612 test -z "$ac_c_werror_flag" ||
24613 test ! -s conftest.err
24614 } && test -s conftest$ac_exeext &&
24615 $as_test_x conftest$ac_exeext; then
24616 ac_cv_lib_gen_compile=yes
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24621 ac_cv_lib_gen_compile=no
24624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24625 conftest$ac_exeext conftest.$ac_ext
24626 LIBS=$ac_check_lib_save_LIBS
24628 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24629 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24630 if test $ac_cv_lib_gen_compile = yes; then
24631 cat >>confdefs.h <<_ACEOF
24632 #define HAVE_LIBGEN 1
24639 if test "$krb5" != yes; then
24640 CPPFLAGS="$CPPFLAGS -I$krb5/include"
24641 LDFLAGS="$LDFLAGS -L$krb5/lib"
24643 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24644 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24645 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 ac_check_lib_save_LIBS=$LIBS
24649 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24650 cat >conftest.$ac_ext <<_ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h. */
24657 /* Override any GCC internal prototype to avoid an error.
24658 Use char because int might match the return type of a GCC
24659 builtin and then its argument prototype would still apply. */
24663 char krb5_init_context ();
24667 return krb5_init_context ();
24672 rm -f conftest.$ac_objext conftest$ac_exeext
24673 if { (ac_try="$ac_link"
24674 case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_link") 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest$ac_exeext &&
24689 $as_test_x conftest$ac_exeext; then
24690 ac_cv_lib_krb5_krb5_init_context=yes
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ac_cv_lib_krb5_krb5_init_context=no
24698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24699 conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24702 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24703 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24704 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24707 { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24708 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24709 { (exit 1); exit 1; }; }
24712 KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_KRB5 1
24720 # Check whether --with-hesiod was given.
24721 if test "${with_hesiod+set}" = set; then
24722 withval=$with_hesiod; hesiod="$withval"
24727 if test "$hesiod" != no; then
24728 { echo "$as_me:$LINENO: checking for res_send" >&5
24729 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24730 if test "${ac_cv_func_res_send+set}" = set; then
24731 echo $ECHO_N "(cached) $ECHO_C" >&6
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24741 #define res_send innocuous_res_send
24743 /* System header to define __stub macros and hopefully few prototypes,
24744 which can conflict with char res_send (); below.
24745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24746 <limits.h> exists even on freestanding compilers. */
24749 # include <limits.h>
24751 # include <assert.h>
24756 /* Override any GCC internal prototype to avoid an error.
24757 Use char because int might match the return type of a GCC
24758 builtin and then its argument prototype would still apply. */
24763 /* The GNU C library defines this for functions which it implements
24764 to always fail with ENOSYS. Some functions are actually named
24765 something starting with __ and the normal name is an alias. */
24766 #if defined __stub_res_send || defined __stub___res_send
24773 return res_send ();
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_link") 2>conftest.er1
24787 grep -v '^ *+' conftest.er1 >conftest.err
24789 cat conftest.err >&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } && {
24792 test -z "$ac_c_werror_flag" ||
24793 test ! -s conftest.err
24794 } && test -s conftest$ac_exeext &&
24795 $as_test_x conftest$ac_exeext; then
24796 ac_cv_func_res_send=yes
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 ac_cv_func_res_send=no
24804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24805 conftest$ac_exeext conftest.$ac_ext
24807 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24808 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24809 if test $ac_cv_func_res_send = yes; then
24813 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24814 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24815 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 ac_check_lib_save_LIBS=$LIBS
24819 LIBS="-lresolv $LIBS"
24820 cat >conftest.$ac_ext <<_ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24827 /* Override any GCC internal prototype to avoid an error.
24828 Use char because int might match the return type of a GCC
24829 builtin and then its argument prototype would still apply. */
24837 return res_send ();
24842 rm -f conftest.$ac_objext conftest$ac_exeext
24843 if { (ac_try="$ac_link"
24844 case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24849 (eval "$ac_link") 2>conftest.er1
24851 grep -v '^ *+' conftest.er1 >conftest.err
24853 cat conftest.err >&5
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } && {
24856 test -z "$ac_c_werror_flag" ||
24857 test ! -s conftest.err
24858 } && test -s conftest$ac_exeext &&
24859 $as_test_x conftest$ac_exeext; then
24860 ac_cv_lib_resolv_res_send=yes
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_cv_lib_resolv_res_send=no
24868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24869 conftest$ac_exeext conftest.$ac_ext
24870 LIBS=$ac_check_lib_save_LIBS
24872 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24873 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24874 if test $ac_cv_lib_resolv_res_send = yes; then
24875 cat >>confdefs.h <<_ACEOF
24876 #define HAVE_LIBRESOLV 1
24879 LIBS="-lresolv $LIBS"
24885 if test "$hesiod" != yes; then
24886 CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24887 LDFLAGS="$LDFLAGS -L$hesiod/lib"
24889 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24890 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24891 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 ac_check_lib_save_LIBS=$LIBS
24895 LIBS="-lhesiod $LIBS $LIBS"
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24903 /* Override any GCC internal prototype to avoid an error.
24904 Use char because int might match the return type of a GCC
24905 builtin and then its argument prototype would still apply. */
24909 char hes_resolve ();
24913 return hes_resolve ();
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925 (eval "$ac_link") 2>conftest.er1
24927 grep -v '^ *+' conftest.er1 >conftest.err
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } && {
24932 test -z "$ac_c_werror_flag" ||
24933 test ! -s conftest.err
24934 } && test -s conftest$ac_exeext &&
24935 $as_test_x conftest$ac_exeext; then
24936 ac_cv_lib_hesiod_hes_resolve=yes
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 ac_cv_lib_hesiod_hes_resolve=no
24944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24945 conftest$ac_exeext conftest.$ac_ext
24946 LIBS=$ac_check_lib_save_LIBS
24948 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24949 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24950 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24953 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24954 echo "$as_me: error: Hesiod library not found" >&2;}
24955 { (exit 1); exit 1; }; }
24958 HESIOD_LIBS="-lhesiod"
24959 cat >>confdefs.h <<\_ACEOF
24960 #define HAVE_HESIOD 1
24966 # Check whether --with-regex was given.
24967 if test "${with_regex+set}" = set; then
24968 withval=$with_regex; regex="$withval"
24973 if test "$regex" != no; then
24974 if test "$regex" != yes; then
24975 CPPFLAGS="$CPPFLAGS -I$regex/include"
24976 LDFLAGS="$LDFLAGS -L$regex/lib"
24978 { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24979 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24980 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24981 echo $ECHO_N "(cached) $ECHO_C" >&6
24983 ac_check_lib_save_LIBS=$LIBS
24984 LIBS="-lregex $LIBS"
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24992 /* Override any GCC internal prototype to avoid an error.
24993 Use char because int might match the return type of a GCC
24994 builtin and then its argument prototype would still apply. */
25007 rm -f conftest.$ac_objext conftest$ac_exeext
25008 if { (ac_try="$ac_link"
25009 case "(($ac_try" in
25010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25011 *) ac_try_echo=$ac_try;;
25013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25014 (eval "$ac_link") 2>conftest.er1
25016 grep -v '^ *+' conftest.er1 >conftest.err
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } && {
25021 test -z "$ac_c_werror_flag" ||
25022 test ! -s conftest.err
25023 } && test -s conftest$ac_exeext &&
25024 $as_test_x conftest$ac_exeext; then
25025 ac_cv_lib_regex_regcomp=yes
25027 echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25030 ac_cv_lib_regex_regcomp=no
25033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25034 conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25037 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
25038 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
25039 if test $ac_cv_lib_regex_regcomp = yes; then
25042 { { echo "$as_me:$LINENO: error: regex library not found" >&5
25043 echo "$as_me: error: regex library not found" >&2;}
25044 { (exit 1); exit 1; }; }
25048 { echo "$as_me:$LINENO: checking for regcomp" >&5
25049 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25050 if test "${ac_cv_func_regcomp+set}" = set; then
25051 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 cat >conftest.$ac_ext <<_ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
25060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25061 #define regcomp innocuous_regcomp
25063 /* System header to define __stub macros and hopefully few prototypes,
25064 which can conflict with char regcomp (); below.
25065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25066 <limits.h> exists even on freestanding compilers. */
25069 # include <limits.h>
25071 # include <assert.h>
25076 /* Override any GCC internal prototype to avoid an error.
25077 Use char because int might match the return type of a GCC
25078 builtin and then its argument prototype would still apply. */
25083 /* The GNU C library defines this for functions which it implements
25084 to always fail with ENOSYS. Some functions are actually named
25085 something starting with __ and the normal name is an alias. */
25086 #if defined __stub_regcomp || defined __stub___regcomp
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (ac_try="$ac_link"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_link") 2>conftest.er1
25107 grep -v '^ *+' conftest.er1 >conftest.err
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } && {
25112 test -z "$ac_c_werror_flag" ||
25113 test ! -s conftest.err
25114 } && test -s conftest$ac_exeext &&
25115 $as_test_x conftest$ac_exeext; then
25116 ac_cv_func_regcomp=yes
25118 echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25121 ac_cv_func_regcomp=no
25124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25125 conftest$ac_exeext conftest.$ac_ext
25127 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25128 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25129 if test $ac_cv_func_regcomp = yes; then
25132 { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
25133 echo "$as_me: error: can't find POSIX regexp support" >&2;}
25134 { (exit 1); exit 1; }; }
25140 # Check whether --with-ares was given.
25141 if test "${with_ares+set}" = set; then
25142 withval=$with_ares; ares="$withval"
25147 if test "$ares" != no; then
25148 { echo "$as_me:$LINENO: checking for res_send" >&5
25149 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
25150 if test "${ac_cv_func_res_send+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 cat >conftest.$ac_ext <<_ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
25160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25161 #define res_send innocuous_res_send
25163 /* System header to define __stub macros and hopefully few prototypes,
25164 which can conflict with char res_send (); below.
25165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25166 <limits.h> exists even on freestanding compilers. */
25169 # include <limits.h>
25171 # include <assert.h>
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25183 /* The GNU C library defines this for functions which it implements
25184 to always fail with ENOSYS. Some functions are actually named
25185 something starting with __ and the normal name is an alias. */
25186 #if defined __stub_res_send || defined __stub___res_send
25193 return res_send ();
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest$ac_exeext &&
25215 $as_test_x conftest$ac_exeext; then
25216 ac_cv_func_res_send=yes
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_cv_func_res_send=no
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225 conftest$ac_exeext conftest.$ac_ext
25227 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
25228 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
25229 if test $ac_cv_func_res_send = yes; then
25233 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
25234 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
25235 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25238 ac_check_lib_save_LIBS=$LIBS
25239 LIBS="-lresolv $LIBS"
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25247 /* Override any GCC internal prototype to avoid an error.
25248 Use char because int might match the return type of a GCC
25249 builtin and then its argument prototype would still apply. */
25257 return res_send ();
25262 rm -f conftest.$ac_objext conftest$ac_exeext
25263 if { (ac_try="$ac_link"
25264 case "(($ac_try" in
25265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_link") 2>conftest.er1
25271 grep -v '^ *+' conftest.er1 >conftest.err
25273 cat conftest.err >&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } && {
25276 test -z "$ac_c_werror_flag" ||
25277 test ! -s conftest.err
25278 } && test -s conftest$ac_exeext &&
25279 $as_test_x conftest$ac_exeext; then
25280 ac_cv_lib_resolv_res_send=yes
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25285 ac_cv_lib_resolv_res_send=no
25288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25289 conftest$ac_exeext conftest.$ac_ext
25290 LIBS=$ac_check_lib_save_LIBS
25292 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
25293 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
25294 if test $ac_cv_lib_resolv_res_send = yes; then
25295 cat >>confdefs.h <<_ACEOF
25296 #define HAVE_LIBRESOLV 1
25299 LIBS="-lresolv $LIBS"
25305 if test "$ares" != yes; then
25306 CPPFLAGS="$CPPFLAGS -I$ares/include"
25307 LDFLAGS="$LDFLAGS -L$ares/lib"
25309 { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
25310 echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
25311 if test "${ac_cv_lib_ares_ares_init+set}" = set; then
25312 echo $ECHO_N "(cached) $ECHO_C" >&6
25314 ac_check_lib_save_LIBS=$LIBS
25315 LIBS="-lares $LIBS"
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25323 /* Override any GCC internal prototype to avoid an error.
25324 Use char because int might match the return type of a GCC
25325 builtin and then its argument prototype would still apply. */
25333 return ares_init ();
25338 rm -f conftest.$ac_objext conftest$ac_exeext
25339 if { (ac_try="$ac_link"
25340 case "(($ac_try" in
25341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25342 *) ac_try_echo=$ac_try;;
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345 (eval "$ac_link") 2>conftest.er1
25347 grep -v '^ *+' conftest.er1 >conftest.err
25349 cat conftest.err >&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } && {
25352 test -z "$ac_c_werror_flag" ||
25353 test ! -s conftest.err
25354 } && test -s conftest$ac_exeext &&
25355 $as_test_x conftest$ac_exeext; then
25356 ac_cv_lib_ares_ares_init=yes
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25361 ac_cv_lib_ares_ares_init=no
25364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25365 conftest$ac_exeext conftest.$ac_ext
25366 LIBS=$ac_check_lib_save_LIBS
25368 { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
25369 echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
25370 if test $ac_cv_lib_ares_ares_init = yes; then
25373 { { echo "$as_me:$LINENO: error: libares not found" >&5
25374 echo "$as_me: error: libares not found" >&2;}
25375 { (exit 1); exit 1; }; }
25379 cat >>confdefs.h <<\_ACEOF
25380 #define HAVE_ARES 1
25386 # Check whether --with-com_err was given.
25387 if test "${with_com_err+set}" = set; then
25388 withval=$with_com_err; com_err="$withval"
25393 if test "$com_err" != no; then
25394 if test "$com_err" != yes; then
25395 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25396 LDFLAGS="$LDFLAGS -L$com_err/lib"
25398 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25399 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25400 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 ac_check_lib_save_LIBS=$LIBS
25404 LIBS="-lcom_err $LIBS"
25405 cat >conftest.$ac_ext <<_ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25412 /* Override any GCC internal prototype to avoid an error.
25413 Use char because int might match the return type of a GCC
25414 builtin and then its argument prototype would still apply. */
25427 rm -f conftest.$ac_objext conftest$ac_exeext
25428 if { (ac_try="$ac_link"
25429 case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_link") 2>conftest.er1
25436 grep -v '^ *+' conftest.er1 >conftest.err
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && {
25441 test -z "$ac_c_werror_flag" ||
25442 test ! -s conftest.err
25443 } && test -s conftest$ac_exeext &&
25444 $as_test_x conftest$ac_exeext; then
25445 ac_cv_lib_com_err_com_err=yes
25447 echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25450 ac_cv_lib_com_err_com_err=no
25453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25454 conftest$ac_exeext conftest.$ac_ext
25455 LIBS=$ac_check_lib_save_LIBS
25457 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25458 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25459 if test $ac_cv_lib_com_err_com_err = yes; then
25462 { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25463 echo "$as_me: error: com_err library not found" >&2;}
25464 { (exit 1); exit 1; }; }
25468 { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25469 echo "$as_me: error: This package requires com_err." >&2;}
25470 { (exit 1); exit 1; }; }
25473 # Check whether --with-ss was given.
25474 if test "${with_ss+set}" = set; then
25475 withval=$with_ss; ss="$withval"
25480 if test "$ss" != no; then
25481 if test "$ss" != yes; then
25482 CPPFLAGS="$CPPFLAGS -I$ss/include"
25483 LDFLAGS="$LDFLAGS -L$ss/lib"
25486 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25487 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25488 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25491 ac_check_lib_save_LIBS=$LIBS
25492 LIBS="-lcurses $LIBS"
25493 cat >conftest.$ac_ext <<_ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25500 /* Override any GCC internal prototype to avoid an error.
25501 Use char because int might match the return type of a GCC
25502 builtin and then its argument prototype would still apply. */
25515 rm -f conftest.$ac_objext conftest$ac_exeext
25516 if { (ac_try="$ac_link"
25517 case "(($ac_try" in
25518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519 *) ac_try_echo=$ac_try;;
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522 (eval "$ac_link") 2>conftest.er1
25524 grep -v '^ *+' conftest.er1 >conftest.err
25526 cat conftest.err >&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); } && {
25529 test -z "$ac_c_werror_flag" ||
25530 test ! -s conftest.err
25531 } && test -s conftest$ac_exeext &&
25532 $as_test_x conftest$ac_exeext; then
25533 ac_cv_lib_curses_initscr=yes
25535 echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25538 ac_cv_lib_curses_initscr=no
25541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25542 conftest$ac_exeext conftest.$ac_ext
25543 LIBS=$ac_check_lib_save_LIBS
25545 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25546 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25547 if test $ac_cv_lib_curses_initscr = yes; then
25548 cat >>confdefs.h <<_ACEOF
25549 #define HAVE_LIBCURSES 1
25552 LIBS="-lcurses $LIBS"
25557 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25558 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25559 if test "${ac_cv_lib_readline_readline+set}" = set; then
25560 echo $ECHO_N "(cached) $ECHO_C" >&6
25562 ac_check_lib_save_LIBS=$LIBS
25563 LIBS="-lreadline $LIBS"
25564 cat >conftest.$ac_ext <<_ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25571 /* Override any GCC internal prototype to avoid an error.
25572 Use char because int might match the return type of a GCC
25573 builtin and then its argument prototype would still apply. */
25581 return readline ();
25586 rm -f conftest.$ac_objext conftest$ac_exeext
25587 if { (ac_try="$ac_link"
25588 case "(($ac_try" in
25589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590 *) ac_try_echo=$ac_try;;
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593 (eval "$ac_link") 2>conftest.er1
25595 grep -v '^ *+' conftest.er1 >conftest.err
25597 cat conftest.err >&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } && {
25600 test -z "$ac_c_werror_flag" ||
25601 test ! -s conftest.err
25602 } && test -s conftest$ac_exeext &&
25603 $as_test_x conftest$ac_exeext; then
25604 ac_cv_lib_readline_readline=yes
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25609 ac_cv_lib_readline_readline=no
25612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25613 conftest$ac_exeext conftest.$ac_ext
25614 LIBS=$ac_check_lib_save_LIBS
25616 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25617 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25618 if test $ac_cv_lib_readline_readline = yes; then
25619 cat >>confdefs.h <<_ACEOF
25620 #define HAVE_LIBREADLINE 1
25623 LIBS="-lreadline $LIBS"
25627 { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25628 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25629 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 ac_check_lib_save_LIBS=$LIBS
25633 LIBS="-lss -lcom_err $LIBS"
25634 cat >conftest.$ac_ext <<_ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25641 /* Override any GCC internal prototype to avoid an error.
25642 Use char because int might match the return type of a GCC
25643 builtin and then its argument prototype would still apply. */
25651 return ss_perror ();
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (ac_try="$ac_link"
25658 case "(($ac_try" in
25659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660 *) ac_try_echo=$ac_try;;
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663 (eval "$ac_link") 2>conftest.er1
25665 grep -v '^ *+' conftest.er1 >conftest.err
25667 cat conftest.err >&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } && {
25670 test -z "$ac_c_werror_flag" ||
25671 test ! -s conftest.err
25672 } && test -s conftest$ac_exeext &&
25673 $as_test_x conftest$ac_exeext; then
25674 ac_cv_lib_ss_ss_perror=yes
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25679 ac_cv_lib_ss_ss_perror=no
25682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25683 conftest$ac_exeext conftest.$ac_ext
25684 LIBS=$ac_check_lib_save_LIBS
25686 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25687 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25688 if test $ac_cv_lib_ss_ss_perror = yes; then
25691 { { echo "$as_me:$LINENO: error: ss library not found" >&5
25692 echo "$as_me: error: ss library not found" >&2;}
25693 { (exit 1); exit 1; }; }
25697 { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25698 echo "$as_me: error: This package requires ss." >&2;}
25699 { (exit 1); exit 1; }; }
25701 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25703 if test $ac_cv_c_compiler_gnu = yes; then
25704 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25705 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25706 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 ac_pattern="Autoconf.*'x'"
25710 cat >conftest.$ac_ext <<_ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25720 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25721 ac_cv_prog_gcc_traditional=yes
25723 ac_cv_prog_gcc_traditional=no
25728 if test $ac_cv_prog_gcc_traditional = no; then
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 #include <termio.h>
25738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25739 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25740 ac_cv_prog_gcc_traditional=yes
25746 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25747 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25748 if test $ac_cv_prog_gcc_traditional = yes; then
25749 CC="$CC -traditional"
25754 for ac_func in vprintf
25756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25760 echo $ECHO_N "(cached) $ECHO_C" >&6
25762 cat >conftest.$ac_ext <<_ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25770 #define $ac_func innocuous_$ac_func
25772 /* System header to define __stub macros and hopefully few prototypes,
25773 which can conflict with char $ac_func (); below.
25774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25775 <limits.h> exists even on freestanding compilers. */
25778 # include <limits.h>
25780 # include <assert.h>
25785 /* Override any GCC internal prototype to avoid an error.
25786 Use char because int might match the return type of a GCC
25787 builtin and then its argument prototype would still apply. */
25792 /* The GNU C library defines this for functions which it implements
25793 to always fail with ENOSYS. Some functions are actually named
25794 something starting with __ and the normal name is an alias. */
25795 #if defined __stub_$ac_func || defined __stub___$ac_func
25802 return $ac_func ();
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814 (eval "$ac_link") 2>conftest.er1
25816 grep -v '^ *+' conftest.er1 >conftest.err
25818 cat conftest.err >&5
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } && {
25821 test -z "$ac_c_werror_flag" ||
25822 test ! -s conftest.err
25823 } && test -s conftest$ac_exeext &&
25824 $as_test_x conftest$ac_exeext; then
25825 eval "$as_ac_var=yes"
25827 echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25830 eval "$as_ac_var=no"
25833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25834 conftest$ac_exeext conftest.$ac_ext
25836 ac_res=`eval echo '${'$as_ac_var'}'`
25837 { echo "$as_me:$LINENO: result: $ac_res" >&5
25838 echo "${ECHO_T}$ac_res" >&6; }
25839 if test `eval echo '${'$as_ac_var'}'` = yes; then
25840 cat >>confdefs.h <<_ACEOF
25841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25844 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25845 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25846 if test "${ac_cv_func__doprnt+set}" = set; then
25847 echo $ECHO_N "(cached) $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 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25857 #define _doprnt innocuous__doprnt
25859 /* System header to define __stub macros and hopefully few prototypes,
25860 which can conflict with char _doprnt (); below.
25861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25862 <limits.h> exists even on freestanding compilers. */
25865 # include <limits.h>
25867 # include <assert.h>
25872 /* Override any GCC internal prototype to avoid an error.
25873 Use char because int might match the return type of a GCC
25874 builtin and then its argument prototype would still apply. */
25879 /* The GNU C library defines this for functions which it implements
25880 to always fail with ENOSYS. Some functions are actually named
25881 something starting with __ and the normal name is an alias. */
25882 #if defined __stub__doprnt || defined __stub____doprnt
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (ac_try="$ac_link"
25896 case "(($ac_try" in
25897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898 *) ac_try_echo=$ac_try;;
25900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901 (eval "$ac_link") 2>conftest.er1
25903 grep -v '^ *+' conftest.er1 >conftest.err
25905 cat conftest.err >&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_c_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest$ac_exeext &&
25911 $as_test_x conftest$ac_exeext; then
25912 ac_cv_func__doprnt=yes
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_cv_func__doprnt=no
25920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25921 conftest$ac_exeext conftest.$ac_ext
25923 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25924 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25925 if test $ac_cv_func__doprnt = yes; then
25927 cat >>confdefs.h <<\_ACEOF
25928 #define HAVE_DOPRNT 1
25937 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25938 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25939 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25940 echo $ECHO_N "(cached) $ECHO_C" >&6
25942 # Use it with a single arg.
25943 cat >conftest.$ac_ext <<_ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h. */
25949 $ac_includes_default
25958 rm -f conftest.$ac_objext
25959 if { (ac_try="$ac_compile"
25960 case "(($ac_try" in
25961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965 (eval "$ac_compile") 2>conftest.er1
25967 grep -v '^ *+' conftest.er1 >conftest.err
25969 cat conftest.err >&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && {
25972 test -z "$ac_c_werror_flag" ||
25973 test ! -s conftest.err
25974 } && test -s conftest.$ac_objext; then
25975 ac_cv_func_getpgrp_void=no
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_cv_func_getpgrp_void=yes
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25986 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25987 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25988 if test $ac_cv_func_getpgrp_void = yes; then
25990 cat >>confdefs.h <<\_ACEOF
25991 #define GETPGRP_VOID 1
25996 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25997 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25998 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 if test "$cross_compiling" = yes; then
26002 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
26003 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
26004 { (exit 1); exit 1; }; }
26006 cat >conftest.$ac_ext <<_ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h. */
26012 $ac_includes_default
26016 /* If this system has a BSD-style setpgrp which takes arguments,
26017 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
26018 exit successfully. */
26019 return setpgrp (1,1) != -1;
26024 rm -f conftest$ac_exeext
26025 if { (ac_try="$ac_link"
26026 case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031 (eval "$ac_link") 2>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26035 { (case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040 (eval "$ac_try") 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_cv_func_setpgrp_void=no
26046 echo "$as_me: program exited with status $ac_status" >&5
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ( exit $ac_status )
26051 ac_cv_func_setpgrp_void=yes
26053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26058 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
26059 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
26060 if test $ac_cv_func_setpgrp_void = yes; then
26062 cat >>confdefs.h <<\_ACEOF
26063 #define SETPGRP_VOID 1
26076 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
26078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 cat >conftest.$ac_ext <<_ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h. */
26090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26092 #define $ac_func innocuous_$ac_func
26094 /* System header to define __stub macros and hopefully few prototypes,
26095 which can conflict with char $ac_func (); below.
26096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26097 <limits.h> exists even on freestanding compilers. */
26100 # include <limits.h>
26102 # include <assert.h>
26107 /* Override any GCC internal prototype to avoid an error.
26108 Use char because int might match the return type of a GCC
26109 builtin and then its argument prototype would still apply. */
26114 /* The GNU C library defines this for functions which it implements
26115 to always fail with ENOSYS. Some functions are actually named
26116 something starting with __ and the normal name is an alias. */
26117 #if defined __stub_$ac_func || defined __stub___$ac_func
26124 return $ac_func ();
26129 rm -f conftest.$ac_objext conftest$ac_exeext
26130 if { (ac_try="$ac_link"
26131 case "(($ac_try" in
26132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26133 *) ac_try_echo=$ac_try;;
26135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26136 (eval "$ac_link") 2>conftest.er1
26138 grep -v '^ *+' conftest.er1 >conftest.err
26140 cat conftest.err >&5
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); } && {
26143 test -z "$ac_c_werror_flag" ||
26144 test ! -s conftest.err
26145 } && test -s conftest$ac_exeext &&
26146 $as_test_x conftest$ac_exeext; then
26147 eval "$as_ac_var=yes"
26149 echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26152 eval "$as_ac_var=no"
26155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26156 conftest$ac_exeext conftest.$ac_ext
26158 ac_res=`eval echo '${'$as_ac_var'}'`
26159 { echo "$as_me:$LINENO: result: $ac_res" >&5
26160 echo "${ECHO_T}$ac_res" >&6; }
26161 if test `eval echo '${'$as_ac_var'}'` = yes; then
26162 cat >>confdefs.h <<_ACEOF
26163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26175 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
26177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26181 echo $ECHO_N "(cached) $ECHO_C" >&6
26183 cat >conftest.$ac_ext <<_ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h. */
26189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26191 #define $ac_func innocuous_$ac_func
26193 /* System header to define __stub macros and hopefully few prototypes,
26194 which can conflict with char $ac_func (); below.
26195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26196 <limits.h> exists even on freestanding compilers. */
26199 # include <limits.h>
26201 # include <assert.h>
26206 /* Override any GCC internal prototype to avoid an error.
26207 Use char because int might match the return type of a GCC
26208 builtin and then its argument prototype would still apply. */
26213 /* The GNU C library defines this for functions which it implements
26214 to always fail with ENOSYS. Some functions are actually named
26215 something starting with __ and the normal name is an alias. */
26216 #if defined __stub_$ac_func || defined __stub___$ac_func
26223 return $ac_func ();
26228 rm -f conftest.$ac_objext conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235 (eval "$ac_link") 2>conftest.er1
26237 grep -v '^ *+' conftest.er1 >conftest.err
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } && {
26242 test -z "$ac_c_werror_flag" ||
26243 test ! -s conftest.err
26244 } && test -s conftest$ac_exeext &&
26245 $as_test_x conftest$ac_exeext; then
26246 eval "$as_ac_var=yes"
26248 echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26251 eval "$as_ac_var=no"
26254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26255 conftest$ac_exeext conftest.$ac_ext
26257 ac_res=`eval echo '${'$as_ac_var'}'`
26258 { echo "$as_me:$LINENO: result: $ac_res" >&5
26259 echo "${ECHO_T}$ac_res" >&6; }
26260 if test `eval echo '${'$as_ac_var'}'` = yes; then
26261 cat >>confdefs.h <<_ACEOF
26262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26271 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
26273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26287 #define $ac_func innocuous_$ac_func
26289 /* System header to define __stub macros and hopefully few prototypes,
26290 which can conflict with char $ac_func (); below.
26291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26292 <limits.h> exists even on freestanding compilers. */
26295 # include <limits.h>
26297 # include <assert.h>
26302 /* Override any GCC internal prototype to avoid an error.
26303 Use char because int might match the return type of a GCC
26304 builtin and then its argument prototype would still apply. */
26309 /* The GNU C library defines this for functions which it implements
26310 to always fail with ENOSYS. Some functions are actually named
26311 something starting with __ and the normal name is an alias. */
26312 #if defined __stub_$ac_func || defined __stub___$ac_func
26319 return $ac_func ();
26324 rm -f conftest.$ac_objext conftest$ac_exeext
26325 if { (ac_try="$ac_link"
26326 case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_link") 2>conftest.er1
26333 grep -v '^ *+' conftest.er1 >conftest.err
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } && {
26338 test -z "$ac_c_werror_flag" ||
26339 test ! -s conftest.err
26340 } && test -s conftest$ac_exeext &&
26341 $as_test_x conftest$ac_exeext; then
26342 eval "$as_ac_var=yes"
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 eval "$as_ac_var=no"
26350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26351 conftest$ac_exeext conftest.$ac_ext
26353 ac_res=`eval echo '${'$as_ac_var'}'`
26354 { echo "$as_me:$LINENO: result: $ac_res" >&5
26355 echo "${ECHO_T}$ac_res" >&6; }
26356 if test `eval echo '${'$as_ac_var'}'` = yes; then
26357 cat >>confdefs.h <<_ACEOF
26358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26365 for ac_func in krb5_crypto_init
26367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26371 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26381 #define $ac_func innocuous_$ac_func
26383 /* System header to define __stub macros and hopefully few prototypes,
26384 which can conflict with char $ac_func (); below.
26385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26386 <limits.h> exists even on freestanding compilers. */
26389 # include <limits.h>
26391 # include <assert.h>
26396 /* Override any GCC internal prototype to avoid an error.
26397 Use char because int might match the return type of a GCC
26398 builtin and then its argument prototype would still apply. */
26403 /* The GNU C library defines this for functions which it implements
26404 to always fail with ENOSYS. Some functions are actually named
26405 something starting with __ and the normal name is an alias. */
26406 #if defined __stub_$ac_func || defined __stub___$ac_func
26413 return $ac_func ();
26418 rm -f conftest.$ac_objext conftest$ac_exeext
26419 if { (ac_try="$ac_link"
26420 case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_link") 2>conftest.er1
26427 grep -v '^ *+' conftest.er1 >conftest.err
26429 cat conftest.err >&5
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); } && {
26432 test -z "$ac_c_werror_flag" ||
26433 test ! -s conftest.err
26434 } && test -s conftest$ac_exeext &&
26435 $as_test_x conftest$ac_exeext; then
26436 eval "$as_ac_var=yes"
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26441 eval "$as_ac_var=no"
26444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26445 conftest$ac_exeext conftest.$ac_ext
26447 ac_res=`eval echo '${'$as_ac_var'}'`
26448 { echo "$as_me:$LINENO: result: $ac_res" >&5
26449 echo "${ECHO_T}$ac_res" >&6; }
26450 if test `eval echo '${'$as_ac_var'}'` = yes; then
26451 cat >>confdefs.h <<_ACEOF
26452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26459 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
26460 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
26461 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26465 local_save_CPPFLAGS="$CPPFLAGS"
26466 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26467 cat >conftest.$ac_ext <<_ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h. */
26473 #define socklen_t int
26474 #define ssize_t int
26477 krb5_auth_con_getauthenticator(krb5_context context,
26478 krb5_auth_context auth_context,
26479 krb5_authenticator *authenticator);
26483 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26488 rm -f conftest.$ac_objext
26489 if { (ac_try="$ac_compile"
26490 case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_compile") 2>conftest.er1
26497 grep -v '^ *+' conftest.er1 >conftest.err
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } && {
26502 test -z "$ac_c_werror_flag" ||
26503 test ! -s conftest.err
26504 } && test -s conftest.$ac_objext; then
26505 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517 CPPFLAGS="${local_save_CPPFLAGS}"
26518 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26519 cat >>confdefs.h <<\_ACEOF
26520 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26523 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26524 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26526 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26527 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26528 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26532 local_save_CPPFLAGS="$CPPFLAGS"
26533 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26544 krb5_ticket _tkt; _tkt.enc_part2;
26549 rm -f conftest.$ac_objext
26550 if { (ac_try="$ac_compile"
26551 case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556 (eval "$ac_compile") 2>conftest.er1
26558 grep -v '^ *+' conftest.er1 >conftest.err
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } && {
26563 test -z "$ac_c_werror_flag" ||
26564 test ! -s conftest.err
26565 } && test -s conftest.$ac_objext; then
26566 ac_cv_have_krb5_ticket_enc_part2=yes
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26571 ac_cv_have_krb5_ticket_enc_part2=no
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26578 CPPFLAGS="${local_save_CPPFLAGS}"
26579 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26580 cat >>confdefs.h <<\_ACEOF
26581 #define HAVE_KRB5_TICKET_ENC_PART2 1
26584 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26585 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26587 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26588 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26589 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26593 local_save_CPPFLAGS="$CPPFLAGS"
26594 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26595 cat >conftest.$ac_ext <<_ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h. */
26605 krb5_creds _creds; _creds.keyblock.enctype;
26610 rm -f conftest.$ac_objext
26611 if { (ac_try="$ac_compile"
26612 case "(($ac_try" in
26613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614 *) ac_try_echo=$ac_try;;
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617 (eval "$ac_compile") 2>conftest.er1
26619 grep -v '^ *+' conftest.er1 >conftest.err
26621 cat conftest.err >&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } && {
26624 test -z "$ac_c_werror_flag" ||
26625 test ! -s conftest.err
26626 } && test -s conftest.$ac_objext; then
26627 ac_cv_have_krb5_creds_keyblock_enctype=yes
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 ac_cv_have_krb5_creds_keyblock_enctype=no
26635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26639 CPPFLAGS="${local_save_CPPFLAGS}"
26640 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26641 cat >>confdefs.h <<\_ACEOF
26642 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26645 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26646 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26648 ac_config_headers="$ac_config_headers h/config.h"
26650 ac_config_files="$ac_config_files Makefile clients/Makefile clients/zaway/Makefile clients/zctl/Makefile clients/zleave/Makefile clients/zlocate/Makefile clients/znol/Makefile clients/zshutdown_notify/Makefile clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile"
26652 cat >confcache <<\_ACEOF
26653 # This file is a shell script that caches the results of configure
26654 # tests run on this system so they can be shared between configure
26655 # scripts and configure runs, see configure's option --config-cache.
26656 # It is not useful on other systems. If it contains results you don't
26657 # want to keep, you may remove or edit it.
26659 # config.status only pays attention to the cache file if you give it
26660 # the --recheck option to rerun configure.
26662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26664 # following values.
26668 # The following way of writing the cache mishandles newlines in values,
26669 # but we know of no workaround that is simple, portable, and efficient.
26670 # So, we kill variables containing newlines.
26671 # Ultrix sh set writes to stderr and can't be redirected directly,
26672 # and sets the high bit in the cache file unless we assign to the vars.
26674 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26675 eval ac_val=\$$ac_var
26679 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26683 _ | IFS | as_nl) ;; #(
26684 *) $as_unset $ac_var ;;
26690 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26691 *${as_nl}ac_space=\ *)
26692 # `set' does not quote correctly, so add quotes (double-quote
26693 # substitution turns \\\\ into \\, and sed turns \\ into \).
26696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26699 # `set' quotes correctly as required by POSIX, so do not add quotes.
26700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26711 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26714 if test -w "$cache_file"; then
26715 test "x$cache_file" != "x/dev/null" &&
26716 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26717 echo "$as_me: updating cache $cache_file" >&6;}
26718 cat confcache >$cache_file
26720 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26721 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26727 # Let make expand exec_prefix.
26728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26730 DEFS=-DHAVE_CONFIG_H
26734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26735 # 1. Remove the extension, and $U if already installed.
26736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26737 ac_i=`echo "$ac_i" | sed "$ac_script"`
26738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26739 # will be set to the directory where LIBOBJS objects are built.
26740 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26741 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26743 LIBOBJS=$ac_libobjs
26745 LTLIBOBJS=$ac_ltlibobjs
26749 : ${CONFIG_STATUS=./config.status}
26750 ac_clean_files_save=$ac_clean_files
26751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26754 cat >$CONFIG_STATUS <<_ACEOF
26756 # Generated by $as_me.
26757 # Run this file to recreate the current configuration.
26758 # Compiler output produced by configure, useful for debugging
26759 # configure, is in config.log if it exists.
26762 ac_cs_recheck=false
26764 SHELL=\${CONFIG_SHELL-$SHELL}
26767 cat >>$CONFIG_STATUS <<\_ACEOF
26768 ## --------------------- ##
26769 ## M4sh Initialization. ##
26770 ## --------------------- ##
26772 # Be more Bourne compatible
26773 DUALCASE=1; export DUALCASE # for MKS sh
26774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26778 # is contrary to our usage. Disable this feature.
26779 alias -g '${1+"$@"}'='"$@"'
26780 setopt NO_GLOB_SUBST
26782 case `(set -o) 2>/dev/null` in
26783 *posix*) set -o posix ;;
26792 # Avoid depending upon Character Ranges.
26793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26796 as_cr_digits='0123456789'
26797 as_cr_alnum=$as_cr_Letters$as_cr_digits
26799 # The user is always right.
26800 if test "${PATH_SEPARATOR+set}" != set; then
26801 echo "#! /bin/sh" >conf$$.sh
26802 echo "exit 0" >>conf$$.sh
26804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26812 # Support unset when possible.
26813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26821 # We need space, tab and new line, in precisely that order. Quoting is
26822 # there to prevent editors from complaining about space-tab.
26823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26824 # splitting by setting IFS to empty value.)
26829 # Find who we are. Look in the path if we contain no directory separator.
26831 *[\\/]* ) as_myself=$0 ;;
26832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26833 for as_dir in $PATH
26836 test -z "$as_dir" && as_dir=.
26837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26843 # We did not find ourselves, most probably we were run as `sh COMMAND'
26844 # in which case we are not to be found in the path.
26845 if test "x$as_myself" = x; then
26848 if test ! -f "$as_myself"; then
26849 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26850 { (exit 1); exit 1; }
26853 # Work around bugs in pre-3.0 UWIN ksh.
26854 for as_var in ENV MAIL MAILPATH
26855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26865 LC_TELEPHONE LC_TIME
26867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26868 eval $as_var=C; export $as_var
26870 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26874 # Required to use basename.
26875 if expr a : '\(a\)' >/dev/null 2>&1 &&
26876 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26883 as_basename=basename
26889 # Name of the executable.
26890 as_me=`$as_basename -- "$0" ||
26891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26892 X"$0" : 'X\(//\)$' \| \
26893 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26895 sed '/^.*\/\([^/][^/]*\)\/*$/{
26914 as_lineno_1=$LINENO
26915 as_lineno_2=$LINENO
26916 test "x$as_lineno_1" != "x$as_lineno_2" &&
26917 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26920 # uniformly replaced by the line number. The first 'sed' inserts a
26921 # line-number line after each line using $LINENO; the second 'sed'
26922 # does the real work. The second script uses 'N' to pair each
26923 # line-number line with the line containing $LINENO, and appends
26924 # trailing '-' during substitution so that $LINENO is not a special
26925 # case at line end.
26926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26927 # scripts with optimization help from Paolo Bonzini. Blame Lee
26928 # E. McMahon (1931-1989) for sed's syntax. :-)
26940 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26943 ' >$as_me.lineno &&
26944 chmod +x "$as_me.lineno" ||
26945 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26946 { (exit 1); exit 1; }; }
26948 # Don't try to exec as it changes $[0], causing all sort of problems
26949 # (the dirname of $[0] is not the place where we might find the
26950 # original and so on. Autoconf is especially sensitive to this).
26951 . "./$as_me.lineno"
26952 # Exit status is that of the last command.
26957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26963 ECHO_C= ECHO_N= ECHO_T=
26964 case `echo -n x` in
26966 case `echo 'x\c'` in
26967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26974 if expr a : '\(a\)' >/dev/null 2>&1 &&
26975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26981 rm -f conf$$ conf$$.exe conf$$.file
26982 if test -d conf$$.dir; then
26983 rm -f conf$$.dir/conf$$.file
26989 if ln -s conf$$.file conf$$ 2>/dev/null; then
26991 # ... but there are two gotchas:
26992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26994 # In both cases, we have to default to `cp -p'.
26995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26997 elif ln conf$$.file conf$$ 2>/dev/null; then
27002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27003 rmdir conf$$.dir 2>/dev/null
27005 if mkdir -p . 2>/dev/null; then
27008 test -d ./-p && rmdir ./-p
27012 if test -x / >/dev/null 2>&1; then
27013 as_test_x='test -x'
27015 if ls -dL / >/dev/null 2>&1; then
27022 if test -d "$1"; then
27028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27029 ???[sx]*):;;*)false;;esac;fi
27033 as_executable_p=$as_test_x
27035 # Sed expression to map a string onto a valid CPP name.
27036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27038 # Sed expression to map a string onto a valid variable name.
27039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27044 # Save the log message, to keep $[0] and so on meaningful, and to
27045 # report actual input values of CONFIG_FILES etc. instead of their
27046 # values after options handling.
27048 This file was extended by $as_me, which was
27049 generated by GNU Autoconf 2.61. Invocation command line was
27051 CONFIG_FILES = $CONFIG_FILES
27052 CONFIG_HEADERS = $CONFIG_HEADERS
27053 CONFIG_LINKS = $CONFIG_LINKS
27054 CONFIG_COMMANDS = $CONFIG_COMMANDS
27057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27062 cat >>$CONFIG_STATUS <<_ACEOF
27063 # Files that config.status was made for.
27064 config_files="$ac_config_files"
27065 config_headers="$ac_config_headers"
27069 cat >>$CONFIG_STATUS <<\_ACEOF
27071 \`$as_me' instantiates files from templates according to the
27072 current configuration.
27074 Usage: $0 [OPTIONS] [FILE]...
27076 -h, --help print this help, then exit
27077 -V, --version print version number and configuration settings, then exit
27078 -q, --quiet do not print progress messages
27079 -d, --debug don't remove temporary files
27080 --recheck update $as_me by reconfiguring in the same conditions
27081 --file=FILE[:TEMPLATE]
27082 instantiate the configuration file FILE
27083 --header=FILE[:TEMPLATE]
27084 instantiate the configuration header FILE
27086 Configuration files:
27089 Configuration headers:
27092 Report bugs to <bug-autoconf@gnu.org>."
27095 cat >>$CONFIG_STATUS <<_ACEOF
27098 configured by $0, generated by GNU Autoconf 2.61,
27099 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27101 Copyright (C) 2006 Free Software Foundation, Inc.
27102 This config.status script is free software; the Free Software Foundation
27103 gives unlimited permission to copy, distribute and modify it."
27110 cat >>$CONFIG_STATUS <<\_ACEOF
27111 # If no file are specified by the user, then we need to provide default
27112 # value. By we need to know if files were specified by the user.
27118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27130 # Handling of the options.
27131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27134 echo "$ac_cs_version"; exit ;;
27135 --debug | --debu | --deb | --de | --d | -d )
27137 --file | --fil | --fi | --f )
27139 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27140 ac_need_defaults=false;;
27141 --header | --heade | --head | --hea )
27143 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27144 ac_need_defaults=false;;
27146 # Conflict between --help and --header
27147 { echo "$as_me: error: ambiguous option: $1
27148 Try \`$0 --help' for more information." >&2
27149 { (exit 1); exit 1; }; };;
27150 --help | --hel | -h )
27151 echo "$ac_cs_usage"; exit ;;
27152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27156 # This is an error.
27157 -*) { echo "$as_me: error: unrecognized option: $1
27158 Try \`$0 --help' for more information." >&2
27159 { (exit 1); exit 1; }; } ;;
27161 *) ac_config_targets="$ac_config_targets $1"
27162 ac_need_defaults=false ;;
27168 ac_configure_extra_args=
27170 if $ac_cs_silent; then
27172 ac_configure_extra_args="$ac_configure_extra_args --silent"
27176 cat >>$CONFIG_STATUS <<_ACEOF
27177 if \$ac_cs_recheck; then
27178 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27179 CONFIG_SHELL=$SHELL
27180 export CONFIG_SHELL
27181 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27185 cat >>$CONFIG_STATUS <<\_ACEOF
27189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27190 ## Running $as_me. ##
27196 cat >>$CONFIG_STATUS <<_ACEOF
27199 cat >>$CONFIG_STATUS <<\_ACEOF
27201 # Handling of arguments.
27202 for ac_config_target in $ac_config_targets
27204 case $ac_config_target in
27205 "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
27206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27207 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
27208 "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
27209 "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
27210 "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
27211 "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
27212 "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
27213 "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
27214 "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
27215 "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
27216 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27217 "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
27218 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
27219 "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
27220 "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
27222 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27224 { (exit 1); exit 1; }; };;
27229 # If the user did not use the arguments to specify the items to instantiate,
27230 # then the envvar interface is used. Set only those that are not.
27231 # We use the long form for the default assignment because of an extremely
27232 # bizarre bug on SunOS 4.1.3.
27233 if $ac_need_defaults; then
27234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27238 # Have a temporary directory for convenience. Make it in the build tree
27239 # simply because there is no reason against having it here, and in addition,
27240 # creating and moving files from /tmp can sometimes cause problems.
27241 # Hook for its removal unless debugging.
27242 # Note that there is a small window in which the directory will not be cleaned:
27243 # after its creation but before its name has been assigned to `$tmp'.
27247 trap 'exit_status=$?
27248 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27250 trap '{ (exit 1); exit 1; }' 1 2 13 15
27252 # Create a (secure) tmp directory for tmp files.
27255 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27256 test -n "$tmp" && test -d "$tmp"
27259 tmp=./conf$$-$RANDOM
27260 (umask 077 && mkdir "$tmp")
27263 echo "$me: cannot create a temporary directory in ." >&2
27264 { (exit 1); exit 1; }
27268 # Set up the sed scripts for CONFIG_FILES section.
27271 # No need to generate the scripts if there are no CONFIG_FILES.
27272 # This happens for instance when ./config.status config.h
27273 if test -n "$CONFIG_FILES"; then
27280 for ac_last_try in false false false false false :; do
27281 cat >conf$$subs.sed <<_ACEOF
27282 SHELL!$SHELL$ac_delim
27283 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27284 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27285 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27286 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27287 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27288 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27289 exec_prefix!$exec_prefix$ac_delim
27290 prefix!$prefix$ac_delim
27291 program_transform_name!$program_transform_name$ac_delim
27292 bindir!$bindir$ac_delim
27293 sbindir!$sbindir$ac_delim
27294 libexecdir!$libexecdir$ac_delim
27295 datarootdir!$datarootdir$ac_delim
27296 datadir!$datadir$ac_delim
27297 sysconfdir!$sysconfdir$ac_delim
27298 sharedstatedir!$sharedstatedir$ac_delim
27299 localstatedir!$localstatedir$ac_delim
27300 includedir!$includedir$ac_delim
27301 oldincludedir!$oldincludedir$ac_delim
27302 docdir!$docdir$ac_delim
27303 infodir!$infodir$ac_delim
27304 htmldir!$htmldir$ac_delim
27305 dvidir!$dvidir$ac_delim
27306 pdfdir!$pdfdir$ac_delim
27307 psdir!$psdir$ac_delim
27308 libdir!$libdir$ac_delim
27309 localedir!$localedir$ac_delim
27310 mandir!$mandir$ac_delim
27311 DEFS!$DEFS$ac_delim
27312 ECHO_C!$ECHO_C$ac_delim
27313 ECHO_N!$ECHO_N$ac_delim
27314 ECHO_T!$ECHO_T$ac_delim
27315 LIBS!$LIBS$ac_delim
27316 build_alias!$build_alias$ac_delim
27317 host_alias!$host_alias$ac_delim
27318 target_alias!$target_alias$ac_delim
27319 lbindir!$lbindir$ac_delim
27320 lsbindir!$lsbindir$ac_delim
27321 build!$build$ac_delim
27322 build_cpu!$build_cpu$ac_delim
27323 build_vendor!$build_vendor$ac_delim
27324 build_os!$build_os$ac_delim
27325 host!$host$ac_delim
27326 host_cpu!$host_cpu$ac_delim
27327 host_vendor!$host_vendor$ac_delim
27328 host_os!$host_os$ac_delim
27329 target!$target$ac_delim
27330 target_cpu!$target_cpu$ac_delim
27331 target_vendor!$target_vendor$ac_delim
27332 target_os!$target_os$ac_delim
27334 CFLAGS!$CFLAGS$ac_delim
27335 LDFLAGS!$LDFLAGS$ac_delim
27336 CPPFLAGS!$CPPFLAGS$ac_delim
27337 ac_ct_CC!$ac_ct_CC$ac_delim
27338 EXEEXT!$EXEEXT$ac_delim
27339 OBJEXT!$OBJEXT$ac_delim
27340 YACC!$YACC$ac_delim
27341 YFLAGS!$YFLAGS$ac_delim
27343 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27344 LEXLIB!$LEXLIB$ac_delim
27345 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27346 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27347 INSTALL_DATA!$INSTALL_DATA$ac_delim
27348 RANLIB!$RANLIB$ac_delim
27349 GREP!$GREP$ac_delim
27350 EGREP!$EGREP$ac_delim
27351 LN_S!$LN_S$ac_delim
27352 ECHO!$ECHO$ac_delim
27354 STRIP!$STRIP$ac_delim
27357 CXXFLAGS!$CXXFLAGS$ac_delim
27358 ac_ct_CXX!$ac_ct_CXX$ac_delim
27359 CXXCPP!$CXXCPP$ac_delim
27361 FFLAGS!$FFLAGS$ac_delim
27362 ac_ct_F77!$ac_ct_F77$ac_delim
27363 LIBTOOL!$LIBTOOL$ac_delim
27364 XMKMF!$XMKMF$ac_delim
27365 X_CFLAGS!$X_CFLAGS$ac_delim
27366 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27367 X_LIBS!$X_LIBS$ac_delim
27368 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27369 XCLIENTS!$XCLIENTS$ac_delim
27370 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
27371 TLIB!$TLIB$ac_delim
27372 RLIB!$RLIB$ac_delim
27373 SLIB!$SLIB$ac_delim
27374 KRB4_LIBS!$KRB4_LIBS$ac_delim
27375 krb5config!$krb5config$ac_delim
27376 KRB5_LIBS!$KRB5_LIBS$ac_delim
27377 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
27378 REGEX_LIBS!$REGEX_LIBS$ac_delim
27381 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27383 elif $ac_last_try; then
27384 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27385 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27386 { (exit 1); exit 1; }; }
27388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27392 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27393 if test -n "$ac_eof"; then
27394 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27395 ac_eof=`expr $ac_eof + 1`
27398 cat >>$CONFIG_STATUS <<_ACEOF
27399 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27403 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27404 s/^/s,@/; s/!/@,|#_!!_#|/
27407 s/'"$ac_delim"'$/,g/; t
27409 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27410 ' >>$CONFIG_STATUS <conf$$subs.sed
27411 rm -f conf$$subs.sed
27412 cat >>$CONFIG_STATUS <<_ACEOF
27418 for ac_last_try in false false false false false :; do
27419 cat >conf$$subs.sed <<_ACEOF
27420 ARES_LIBS!$ARES_LIBS$ac_delim
27421 LIBOBJS!$LIBOBJS$ac_delim
27422 LTLIBOBJS!$LTLIBOBJS$ac_delim
27425 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
27427 elif $ac_last_try; then
27428 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27430 { (exit 1); exit 1; }; }
27432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27437 if test -n "$ac_eof"; then
27438 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27439 ac_eof=`expr $ac_eof + 1`
27442 cat >>$CONFIG_STATUS <<_ACEOF
27443 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27448 s/^/s,@/; s/!/@,|#_!!_#|/
27451 s/'"$ac_delim"'$/,g/; t
27453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27454 ' >>$CONFIG_STATUS <conf$$subs.sed
27455 rm -f conf$$subs.sed
27456 cat >>$CONFIG_STATUS <<_ACEOF
27463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27465 # trailing colons and then remove the whole line if VPATH becomes empty
27466 # (actually we leave an empty line to preserve line numbers).
27467 if test "x$srcdir" = x.; then
27468 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27469 s/:*\$(srcdir):*/:/
27470 s/:*\${srcdir}:*/:/
27472 s/^\([^=]*=[ ]*\):*/\1/
27478 cat >>$CONFIG_STATUS <<\_ACEOF
27479 fi # test -n "$CONFIG_FILES"
27482 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27485 :[FHLC]) ac_mode=$ac_tag; continue;;
27487 case $ac_mode$ac_tag in
27489 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27490 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27491 { (exit 1); exit 1; }; };;
27492 :[FH]-) ac_tag=-:-;;
27493 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27510 -) ac_f="$tmp/stdin";;
27511 *) # Look for the file first in the build tree, then in the source tree
27512 # (if the path is not absolute). The absolute path cannot be DOS-style,
27513 # because $ac_f cannot contain `:'.
27517 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27519 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27520 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27521 { (exit 1); exit 1; }; };;
27523 ac_file_inputs="$ac_file_inputs $ac_f"
27526 # Let's still pretend it is `configure' which instantiates (i.e., don't
27527 # use $as_me), people would be surprised to read:
27528 # /* config.h. Generated by config.status. */
27529 configure_input="Generated from "`IFS=:
27530 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27531 if test x"$ac_file" != x-; then
27532 configure_input="$ac_file. $configure_input"
27533 { echo "$as_me:$LINENO: creating $ac_file" >&5
27534 echo "$as_me: creating $ac_file" >&6;}
27538 *:-:* | *:-) cat >"$tmp/stdin";;
27543 ac_dir=`$as_dirname -- "$ac_file" ||
27544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27545 X"$ac_file" : 'X\(//\)[^/]' \| \
27546 X"$ac_file" : 'X\(//\)$' \| \
27547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27553 /^X\(\/\/\)[^/].*/{
27568 -*) as_dir=./$as_dir;;
27570 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27574 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27575 *) as_qdir=$as_dir;;
27577 as_dirs="'$as_qdir' $as_dirs"
27578 as_dir=`$as_dirname -- "$as_dir" ||
27579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27580 X"$as_dir" : 'X\(//\)[^/]' \| \
27581 X"$as_dir" : 'X\(//\)$' \| \
27582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27588 /^X\(\/\/\)[^/].*/{
27601 test -d "$as_dir" && break
27603 test -z "$as_dirs" || eval "mkdir $as_dirs"
27604 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27605 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27606 { (exit 1); exit 1; }; }; }
27610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27613 # A ".." for each directory in $ac_dir_suffix.
27614 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27615 case $ac_top_builddir_sub in
27616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27620 ac_abs_top_builddir=$ac_pwd
27621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27622 # for backward compatibility:
27623 ac_top_builddir=$ac_top_build_prefix
27626 .) # We are building in place.
27628 ac_top_srcdir=$ac_top_builddir_sub
27629 ac_abs_top_srcdir=$ac_pwd ;;
27630 [\\/]* | ?:[\\/]* ) # Absolute name.
27631 ac_srcdir=$srcdir$ac_dir_suffix;
27632 ac_top_srcdir=$srcdir
27633 ac_abs_top_srcdir=$srcdir ;;
27634 *) # Relative name.
27635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27636 ac_top_srcdir=$ac_top_build_prefix$srcdir
27637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27649 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27650 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27654 cat >>$CONFIG_STATUS <<\_ACEOF
27655 # If the template does not know about datarootdir, expand it.
27656 # FIXME: This hack should be removed a few years after 2.60.
27657 ac_datarootdir_hack=; ac_datarootdir_seen=
27659 case `sed -n '/datarootdir/ {
27668 ' $ac_file_inputs` in
27669 *datarootdir*) ac_datarootdir_seen=yes;;
27670 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27671 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27672 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27674 cat >>$CONFIG_STATUS <<_ACEOF
27675 ac_datarootdir_hack='
27676 s&@datadir@&$datadir&g
27677 s&@docdir@&$docdir&g
27678 s&@infodir@&$infodir&g
27679 s&@localedir@&$localedir&g
27680 s&@mandir@&$mandir&g
27681 s&\\\${datarootdir}&$datarootdir&g' ;;
27685 # Neutralize VPATH when `$srcdir' = `.'.
27686 # Shell code in configure.ac might set extrasub.
27687 # FIXME: do we really want to maintain this feature?
27688 cat >>$CONFIG_STATUS <<_ACEOF
27692 cat >>$CONFIG_STATUS <<\_ACEOF
27694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27695 s&@configure_input@&$configure_input&;t t
27696 s&@top_builddir@&$ac_top_builddir_sub&;t t
27697 s&@srcdir@&$ac_srcdir&;t t
27698 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27699 s&@top_srcdir@&$ac_top_srcdir&;t t
27700 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27701 s&@builddir@&$ac_builddir&;t t
27702 s&@abs_builddir@&$ac_abs_builddir&;t t
27703 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27704 s&@INSTALL@&$ac_INSTALL&;t t
27705 $ac_datarootdir_hack
27706 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27709 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27711 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27712 which seems to be undefined. Please make sure it is defined." >&5
27713 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27714 which seems to be undefined. Please make sure it is defined." >&2;}
27718 -) cat "$tmp/out"; rm -f "$tmp/out";;
27719 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27728 # Transform confdefs.h into a sed script `conftest.defines', that
27729 # substitutes the proper values into config.h.in to produce config.h.
27730 rm -f conftest.defines conftest.tail
27731 # First, append a space to every undef/define line, to ease matching.
27732 echo 's/$/ /' >conftest.defines
27733 # Then, protect against being on the right side of a sed subst, or in
27734 # an unquoted here document, in config.status. If some macros were
27735 # called several times there might be several #defines for the same
27736 # symbol, which is useless. But do not sort them, since the last
27737 # AC_DEFINE must be honored.
27738 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27739 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27740 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27741 # PARAMS is the parameter list in the macro definition--in most cases, it's
27742 # just an empty string.
27743 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27744 ac_dB='\\)[ (].*,\\1define\\2'
27752 s/^[ ]*#[ ]*define[ ][ ]*//
27757 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27758 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27759 ' >>conftest.defines
27761 # Remove the space that was appended to ease matching.
27762 # Then replace #undef with comments. This is necessary, for
27763 # example, in the case of _POSIX_SOURCE, which is predefined and required
27764 # on some systems where configure will not decide to define it.
27765 # (The regexp can be short, since the line contains either #define or #undef.)
27767 s,^[ #]*u.*,/* & */,' >>conftest.defines
27769 # Break up conftest.defines:
27770 ac_max_sed_lines=50
27772 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27773 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27774 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27776 ac_in='$ac_file_inputs'
27777 ac_out='"$tmp/out1"'
27778 ac_nxt='"$tmp/out2"'
27782 # Write a here document:
27783 cat >>$CONFIG_STATUS <<_ACEOF
27784 # First, check the format of the line:
27785 cat >"\$tmp/defines.sed" <<\\CEOF
27786 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27787 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27791 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27793 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27794 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27795 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27796 grep . conftest.tail >/dev/null || break
27797 rm -f conftest.defines
27798 mv conftest.tail conftest.defines
27800 rm -f conftest.defines conftest.tail
27802 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27803 cat >>$CONFIG_STATUS <<\_ACEOF
27804 if test x"$ac_file" != x-; then
27805 echo "/* $configure_input */" >"$tmp/config.h"
27806 cat "$ac_result" >>"$tmp/config.h"
27807 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27808 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27809 echo "$as_me: $ac_file is unchanged" >&6;}
27812 mv "$tmp/config.h" $ac_file
27815 echo "/* $configure_input */"
27827 { (exit 0); exit 0; }
27829 chmod +x $CONFIG_STATUS
27830 ac_clean_files=$ac_clean_files_save
27833 # configure is writing to config.log, and then calls config.status.
27834 # config.status does its own redirection, appending to config.log.
27835 # Unfortunately, on DOS this fails, as config.log is still kept open
27836 # by configure, so config.status won't be able to write to it; its
27837 # output is simply discarded. So we exec the FD to /dev/null,
27838 # effectively closing config.log, so it can be properly (re)opened and
27839 # appended to by config.status. When coming back to configure, we
27840 # need to make the FD available again.
27841 if test "$no_create" != yes; then
27843 ac_config_status_args=
27844 test "$silent" = yes &&
27845 ac_config_status_args="$ac_config_status_args --quiet"
27847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27850 # would make configure fail if this is the last instruction.
27851 $ac_cs_success || { (exit 1); exit 1; }