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)
1471 --enable-cmu-zwgcplus enable CMU zwgcplus extensions
1472 --enable-cmu-zctl-punt enable CMU zctl punt extensions
1473 --enable-cmu-hm-flush-restrict enable CMU zctl hm flush restriction
1474 --enable-cmu-opstaff-locate-self enable CMU opstaff locate-self ability
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1482 --with-tags[=TAGS] include additional configurations [automatic]
1483 --with-x use the X Window System
1484 --with-krb4=PREFIX Use Kerberos 4
1485 --with-krb5=PREFIX Use Kerberos 5
1486 --with-hesiod=PREFIX Use Hesiod
1487 --with-regex=PREFIX Use installed regex library
1488 --with-com_err=PREFIX Specify location of com_err
1489 --with-ss=PREFIX Specify location of ss (requires com_err)
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1500 the first program found out of: `bison -y', `byacc', `yacc'.
1501 YFLAGS The list of arguments that will be passed by default to $YACC.
1502 This script will default YFLAGS to the empty string to avoid a
1503 default value of `-d' given by some make applications.
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1510 XMKMF Path to xmkmf, Makefile generator for X Window System
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" || continue
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1576 generated by GNU Autoconf 2.61
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by $as_me, which was
1590 generated by GNU Autoconf 2.61. Invocation command line was
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_must_keep_next=false
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679 -* ) ac_must_keep_next=true ;;
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738 ## ----------------- ##
1739 ## Output variables. ##
1740 ## ----------------- ##
1743 for ac_var in $ac_subst_vars
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1753 if test -n "$ac_subst_files"; then
1755 ## ------------------- ##
1756 ## File substitutions. ##
1757 ## ------------------- ##
1760 for ac_var in $ac_subst_files
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 echo "$ac_var='\''$ac_val'\''"
1771 if test -s confdefs.h; then
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789 for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1797 # Predefined preprocessor variables.
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828 elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839 echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1845 if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850 echo "$as_me: loading cache $cache_file" >&6;}
1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858 echo "$as_me: creating cache $cache_file" >&6;}
1862 # Check that the precious variables saved in the cache have kept the same
1864 ac_cache_corrupted=false
1865 for ac_var in $ac_precious_vars; do
1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
1870 case $ac_old_set,$ac_new_set in
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885 echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887 echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 *) ac_arg=$ac_var=$ac_new_val ;;
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903 if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 test -d h || mkdir h
1936 test -d h/zephyr || mkdir h/zephyr
1938 test -z "$lbindir" && lbindir='${bindir}'
1939 test -z "$lsbindir" && lsbindir='${sbindir}'
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 # Make sure we can run config.sub.
1975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1976 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1977 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1978 { (exit 1); exit 1; }; }
1980 { echo "$as_me:$LINENO: checking build system type" >&5
1981 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1982 if test "${ac_cv_build+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 ac_build_alias=$build_alias
1986 test "x$ac_build_alias" = x &&
1987 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1988 test "x$ac_build_alias" = x &&
1989 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1990 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1991 { (exit 1); exit 1; }; }
1992 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1993 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1995 { (exit 1); exit 1; }; }
1998 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1999 echo "${ECHO_T}$ac_cv_build" >&6; }
2000 case $ac_cv_build in
2002 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2003 echo "$as_me: error: invalid value of canonical build" >&2;}
2004 { (exit 1); exit 1; }; };;
2007 ac_save_IFS=$IFS; IFS='-'
2013 # Remember, the first character of IFS is used to create $*,
2014 # except with old shells:
2017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2020 { echo "$as_me:$LINENO: checking host system type" >&5
2021 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_host+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test "x$host_alias" = x; then
2026 ac_cv_host=$ac_cv_build
2028 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2029 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2030 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2031 { (exit 1); exit 1; }; }
2035 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2036 echo "${ECHO_T}$ac_cv_host" >&6; }
2039 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2040 echo "$as_me: error: invalid value of canonical host" >&2;}
2041 { (exit 1); exit 1; }; };;
2044 ac_save_IFS=$IFS; IFS='-'
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2057 { echo "$as_me:$LINENO: checking target system type" >&5
2058 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2059 if test "${ac_cv_target+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test "x$target_alias" = x; then
2063 ac_cv_target=$ac_cv_host
2065 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2068 { (exit 1); exit 1; }; }
2072 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2073 echo "${ECHO_T}$ac_cv_target" >&6; }
2074 case $ac_cv_target in
2076 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2077 echo "$as_me: error: invalid value of canonical target" >&2;}
2078 { (exit 1); exit 1; }; };;
2080 target=$ac_cv_target
2081 ac_save_IFS=$IFS; IFS='-'
2087 # Remember, the first character of IFS is used to create $*,
2088 # except with old shells:
2091 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2094 # The aliases save the names the user supplied, while $host etc.
2095 # will get canonicalized.
2096 test -n "$target_alias" &&
2097 test "$program_prefix$program_suffix$program_transform_name" = \
2099 program_prefix=${target_alias}-
2100 cat >>confdefs.h <<_ACEOF
2101 #define MACHINE_TYPE "$host"
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110 if test -n "$ac_tool_prefix"; then
2111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2149 if test -z "$ac_cv_prog_CC"; then
2151 # Extract the first word of "gcc", so it can be a program name with args.
2152 set dummy gcc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$ac_ct_CC"; then
2159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_ac_ct_CC="gcc"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2187 if test "x$ac_ct_CC" = x; then
2190 case $cross_compiling:$ac_tool_warned in
2192 { echo "$as_me:$LINENO: 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." >&5
2195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2198 ac_tool_warned=yes ;;
2206 if test -z "$CC"; then
2207 if test -n "$ac_tool_prefix"; then
2208 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2209 set dummy ${ac_tool_prefix}cc; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_CC="${ac_tool_prefix}cc"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test -n "$CC"; then
2237 { echo "$as_me:$LINENO: result: $CC" >&5
2238 echo "${ECHO_T}$CC" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2247 if test -z "$CC"; then
2248 # Extract the first word of "cc", so it can be a program name with args.
2249 set dummy cc; ac_word=$2
2250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2267 ac_prog_rejected=yes
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test $ac_prog_rejected = yes; then
2279 # We found a bogon in the path, so make sure we never use it.
2280 set dummy $ac_cv_prog_CC
2282 if test $# != 0; then
2283 # We chose a different compiler from the bogus one.
2284 # However, it has the same basename, so the bogon will be chosen
2285 # first if we set CC to just the basename; use the full file name.
2287 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2293 if test -n "$CC"; then
2294 { echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6; }
2297 { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2303 if test -z "$CC"; then
2304 if test -n "$ac_tool_prefix"; then
2305 for ac_prog in cl.exe
2307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$CC"; then
2315 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 if test -n "$CC"; then
2336 { echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2344 test -n "$CC" && break
2347 if test -z "$CC"; then
2349 for ac_prog in cl.exe
2351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2352 set dummy $ac_prog; ac_word=$2
2353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 ac_cv_prog_ac_ct_CC="$ac_prog"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381 echo "${ECHO_T}$ac_ct_CC" >&6; }
2383 { echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6; }
2388 test -n "$ac_ct_CC" && break
2391 if test "x$ac_ct_CC" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { echo "$as_me:$LINENO: 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." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2411 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO: checking for C compiler version" >&5
2419 ac_compiler=`set X $ac_compile; echo $2`
2420 { (ac_try="$ac_compiler --version >&5"
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compiler --version >&5") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430 { (ac_try="$ac_compiler -v >&5"
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compiler -v >&5") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2440 { (ac_try="$ac_compiler -V >&5"
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compiler -V >&5") 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2466 ac_clean_files_save=$ac_clean_files
2467 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2468 # Try to create an executable without -o first, disregard a.out.
2469 # It will help us diagnose broken compilers, and finding out an intuition
2471 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2472 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2473 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2475 # List of possible output files, starting from the most likely.
2476 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2477 # only as a last resort. b.out is created by i960 compilers.
2478 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2480 # The IRIX 6 linker writes into existing files which may not be
2481 # executable, retaining their permissions. Remove them first so a
2482 # subsequent execution test works.
2484 for ac_file in $ac_files
2487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2493 if { (ac_try="$ac_link_default"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_link_default") 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2506 # so that the user can short-circuit this test for compilers unknown to
2508 for ac_file in $ac_files ''
2510 test -f "$ac_file" || continue
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2515 # We found the default executable, but exeext='' is most
2519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 # We set ac_cv_exeext here because the later test for it is not
2524 # safe: cross compilers may not add the suffix if given an `-o'
2525 # argument, so we may need to know it at that point already.
2526 # Even if this section looks crufty: it has the advantage of
2533 test "$ac_cv_exeext" = no && ac_cv_exeext=
2539 { echo "$as_me:$LINENO: result: $ac_file" >&5
2540 echo "${ECHO_T}$ac_file" >&6; }
2541 if test -z "$ac_file"; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549 { (exit 77); exit 77; }; }
2552 ac_exeext=$ac_cv_exeext
2554 # Check that the compiler produces executables we can run. If not, either
2555 # the compiler is broken, or we cross compile.
2556 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2559 # If not cross compiling, check that we can run a simple program.
2560 if test "$cross_compiling" != yes; then
2561 if { ac_try='./$ac_file'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2573 if test "$cross_compiling" = maybe; then
2576 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2577 If you meant to cross compile, use \`--host'.
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2586 { echo "$as_me:$LINENO: result: yes" >&5
2587 echo "${ECHO_T}yes" >&6; }
2589 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2590 ac_clean_files=$ac_clean_files_save
2591 # Check that the compiler produces executables we can run. If not, either
2592 # the compiler is broken, or we cross compile.
2593 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2594 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2595 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2596 echo "${ECHO_T}$cross_compiling" >&6; }
2598 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2599 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2600 if { (ac_try="$ac_link"
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_link") 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2611 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2612 # work properly (i.e., refer to `conftest.exe'), while it won't with
2614 for ac_file in conftest.exe conftest conftest.*; do
2615 test -f "$ac_file" || continue
2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2618 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2631 rm -f conftest$ac_cv_exeext
2632 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2633 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2635 rm -f conftest.$ac_ext
2636 EXEEXT=$ac_cv_exeext
2638 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2639 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2640 if test "${ac_cv_objext+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.o conftest.obj
2659 if { (ac_try="$ac_compile"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compile") 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; then
2669 for ac_file in conftest.o conftest.obj conftest.*; do
2670 test -f "$ac_file" || continue;
2672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2681 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2690 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2691 echo "${ECHO_T}$ac_cv_objext" >&6; }
2692 OBJEXT=$ac_cv_objext
2694 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2695 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2696 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compile") 2>conftest.er1
2726 grep -v '^ *+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } && {
2731 test -z "$ac_c_werror_flag" ||
2732 test ! -s conftest.err
2733 } && test -s conftest.$ac_objext; then
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2746 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2748 GCC=`test $ac_compiler_gnu = yes && echo yes`
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 ac_save_c_werror_flag=$ac_c_werror_flag
2757 ac_c_werror_flag=yes
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2798 cat >conftest.$ac_ext <<_ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 rm -f conftest.$ac_objext
2814 if { (ac_try="$ac_compile"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } && {
2827 test -z "$ac_c_werror_flag" ||
2828 test ! -s conftest.err
2829 } && test -s conftest.$ac_objext; then
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2835 ac_c_werror_flag=$ac_save_c_werror_flag
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compile") 2>conftest.er1
2861 grep -v '^ *+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } && {
2866 test -z "$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 } && test -s conftest.$ac_objext; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 ac_c_werror_flag=$ac_save_c_werror_flag
2886 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2888 if test "$ac_test_CFLAGS" = set; then
2889 CFLAGS=$ac_save_CFLAGS
2890 elif test $ac_cv_prog_cc_g = yes; then
2891 if test "$GCC" = yes; then
2897 if test "$GCC" = yes; then
2903 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2904 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_cc_c89+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 ac_cv_prog_cc_c89=no
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 #include <sys/types.h>
2919 #include <sys/stat.h>
2920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2921 struct buf { int x; };
2922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2923 static char *e (p, i)
2929 static char *f (char * (*g) (char **, int), char **p, ...)
2934 s = g (p, va_arg (v,int));
2939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2940 function prototypes and stuff, but not '\xHH' hex character constants.
2941 These don't provoke an error unfortunately, instead are silently treated
2942 as 'x'. The following induces an error, until -std is added to get
2943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2944 array size at least. It's necessary to write '\x00'==0 to get something
2945 that's true only with -std. */
2946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2949 inside strings and character constants. */
2951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2953 int test (int i, double x);
2954 struct s1 {int (*f) (int a);};
2955 struct s2 {int (*f) (double a);};
2956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2970 CC="$ac_save_CC $ac_arg"
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
2988 ac_cv_prog_cc_c89=$ac_arg
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2996 rm -f core conftest.err conftest.$ac_objext
2997 test "x$ac_cv_prog_cc_c89" != "xno" && break
2999 rm -f conftest.$ac_ext
3004 case "x$ac_cv_prog_cc_c89" in
3006 { echo "$as_me:$LINENO: result: none needed" >&5
3007 echo "${ECHO_T}none needed" >&6; } ;;
3009 { echo "$as_me:$LINENO: result: unsupported" >&5
3010 echo "${ECHO_T}unsupported" >&6; } ;;
3012 CC="$CC $ac_cv_prog_cc_c89"
3013 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3014 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 for ac_prog in 'bison -y' byacc
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_YACC+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 if test -n "$YACC"; then
3034 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_YACC="$ac_prog"
3044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 YACC=$ac_cv_prog_YACC
3054 if test -n "$YACC"; then
3055 { echo "$as_me:$LINENO: result: $YACC" >&5
3056 echo "${ECHO_T}$YACC" >&6; }
3058 { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3063 test -n "$YACC" && break
3065 test -n "$YACC" || YACC="yacc"
3068 for ac_prog in flex lex
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_LEX+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -n "$LEX"; then
3078 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_LEX="$ac_prog"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 if test -n "$LEX"; then
3099 { echo "$as_me:$LINENO: result: $LEX" >&5
3100 echo "${ECHO_T}$LEX" >&6; }
3102 { echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6; }
3107 test -n "$LEX" && break
3109 test -n "$LEX" || LEX=":"
3111 if test "x$LEX" != "x:"; then
3112 cat >conftest.l <<_ACEOF
3118 e { yyless (input () != 0); }
3119 f { unput (yytext[0]); }
3120 . { BEGIN INITIAL; }
3122 #ifdef YYTEXT_POINTER
3123 extern char *yytext;
3128 return ! yylex () + ! yywrap ();
3131 { (ac_try="$LEX conftest.l"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$LEX conftest.l") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }
3141 { echo "$as_me:$LINENO: checking lex output file root" >&5
3142 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3143 if test "${ac_cv_prog_lex_root+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if test -f lex.yy.c; then
3148 ac_cv_prog_lex_root=lex.yy
3149 elif test -f lexyy.c; then
3150 ac_cv_prog_lex_root=lexyy
3152 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3153 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3154 { (exit 1); exit 1; }; }
3157 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3158 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3159 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3161 if test -z "${LEXLIB+set}"; then
3162 { echo "$as_me:$LINENO: checking lex library" >&5
3163 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3164 if test "${ac_cv_lib_lex+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 ac_cv_lib_lex='none needed'
3170 for ac_lib in '' -lfl -ll; do
3171 LIBS="$ac_lib $ac_save_LIBS"
3172 cat >conftest.$ac_ext <<_ACEOF
3173 `cat $LEX_OUTPUT_ROOT.c`
3175 rm -f conftest.$ac_objext conftest$ac_exeext
3176 if { (ac_try="$ac_link"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_link") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest$ac_exeext &&
3192 $as_test_x conftest$ac_exeext; then
3193 ac_cv_lib_lex=$ac_lib
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3202 conftest$ac_exeext conftest.$ac_ext
3203 test "$ac_cv_lib_lex" != 'none needed' && break
3208 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3209 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3210 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3214 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3215 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 # POSIX says lex can declare yytext either as a pointer or an array; the
3220 # default is implementation-dependent. Figure out which it is, since
3221 # not all implementations provide the %pointer and %array declarations.
3222 ac_cv_prog_lex_yytext_pointer=no
3224 LIBS="$LEXLIB $ac_save_LIBS"
3225 cat >conftest.$ac_ext <<_ACEOF
3226 #define YYTEXT_POINTER 1
3227 `cat $LEX_OUTPUT_ROOT.c`
3229 rm -f conftest.$ac_objext conftest$ac_exeext
3230 if { (ac_try="$ac_link"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_link") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest$ac_exeext &&
3246 $as_test_x conftest$ac_exeext; then
3247 ac_cv_prog_lex_yytext_pointer=yes
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3256 conftest$ac_exeext conftest.$ac_ext
3260 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3261 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3262 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3264 cat >>confdefs.h <<\_ACEOF
3265 #define YYTEXT_POINTER 1
3269 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3272 # Find a good install program. We prefer a C program (faster),
3273 # so one script is as good as another. But avoid the broken or
3274 # incompatible versions:
3275 # SysV /etc/install, /usr/sbin/install
3276 # SunOS /usr/etc/install
3277 # IRIX /sbin/install
3279 # AmigaOS /C/install, which installs bootblocks on floppy discs
3280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3283 # OS/2's system install, which has a completely different semantic
3284 # ./install, which can be erroneously created by make from ./install.sh.
3285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3287 if test -z "$INSTALL"; then
3288 if test "${ac_cv_path_install+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 # Account for people who put trailing slashes in PATH elements.
3298 ./ | .// | /cC/* | \
3299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3303 # OSF1 and SCO ODT 3.0 have their own names for install.
3304 # Don't use installbsd from OSF since it installs stuff as root
3306 for ac_prog in ginstall scoinst install; do
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3309 if test $ac_prog = install &&
3310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311 # AIX install. It has an incompatible calling convention.
3313 elif test $ac_prog = install &&
3314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3315 # program-specific install script used by HP pwplus--don't use.
3318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3331 if test "${ac_cv_path_install+set}" = set; then
3332 INSTALL=$ac_cv_path_install
3334 # As a last resort, use the slow shell script. Don't cache a
3335 # value for INSTALL within a source directory, because that will
3336 # break other packages using the cache if that directory is
3337 # removed, or if the value is a relative name.
3338 INSTALL=$ac_install_sh
3341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6; }
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_RANLIB+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 if test -n "$RANLIB"; then
3361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 RANLIB=$ac_cv_prog_RANLIB
3381 if test -n "$RANLIB"; then
3382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3383 echo "${ECHO_T}$RANLIB" >&6; }
3385 { echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6; }
3391 if test -z "$ac_cv_prog_RANLIB"; then
3392 ac_ct_RANLIB=$RANLIB
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394 set dummy ranlib; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421 if test -n "$ac_ct_RANLIB"; then
3422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3429 if test "x$ac_ct_RANLIB" = x; then
3432 case $cross_compiling:$ac_tool_warned in
3434 { echo "$as_me:$LINENO: 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." >&5
3437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3438 whose name does not start with the host triplet. If you think this
3439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3440 ac_tool_warned=yes ;;
3442 RANLIB=$ac_ct_RANLIB
3445 RANLIB="$ac_cv_prog_RANLIB"
3448 # Check whether --enable-shared was given.
3449 if test "${enable_shared+set}" = set; then
3450 enableval=$enable_shared; p=${PACKAGE-default}
3452 yes) enable_shared=yes ;;
3453 no) enable_shared=no ;;
3456 # Look at the argument we got. We use all the common list separators.
3457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458 for pkg in $enableval; do
3460 if test "X$pkg" = "X$p"; then
3472 # Check whether --enable-static was given.
3473 if test "${enable_static+set}" = set; then
3474 enableval=$enable_static; p=${PACKAGE-default}
3476 yes) enable_static=yes ;;
3477 no) enable_static=no ;;
3480 # Look at the argument we got. We use all the common list separators.
3481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482 for pkg in $enableval; do
3484 if test "X$pkg" = "X$p"; then
3496 # Check whether --enable-fast-install was given.
3497 if test "${enable_fast_install+set}" = set; then
3498 enableval=$enable_fast_install; p=${PACKAGE-default}
3500 yes) enable_fast_install=yes ;;
3501 no) enable_fast_install=no ;;
3503 enable_fast_install=no
3504 # Look at the argument we got. We use all the common list separators.
3505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3506 for pkg in $enableval; do
3508 if test "X$pkg" = "X$p"; then
3509 enable_fast_install=yes
3516 enable_fast_install=yes
3520 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3521 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3522 if test "${lt_cv_path_SED+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 # Loop through the user's path and test for sed and gsed.
3526 # Then use that list of sed's as ones to test for truncation.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for lt_ac_prog in sed gsed; do
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3535 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3542 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3543 # along with /bin/sed that truncates output.
3544 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3545 test ! -f $lt_ac_sed && break
3546 cat /dev/null > conftest.in
3548 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3549 # Check for GNU sed and select it if it is found.
3550 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3551 lt_cv_path_SED=$lt_ac_sed
3555 cat conftest.in conftest.in >conftest.tmp
3556 mv conftest.tmp conftest.in
3557 cp conftest.in conftest.nl
3559 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3560 cmp -s conftest.out conftest.nl || break
3561 # 10000 chars as input seems more than enough
3562 test $lt_ac_count -gt 10 && break
3563 lt_ac_count=`expr $lt_ac_count + 1`
3564 if test $lt_ac_count -gt $lt_ac_max; then
3565 lt_ac_max=$lt_ac_count
3566 lt_cv_path_SED=$lt_ac_sed
3574 { echo "$as_me:$LINENO: result: $SED" >&5
3575 echo "${ECHO_T}$SED" >&6; }
3577 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3578 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 # Extract the first word of "grep ggrep" to use in msg output
3583 if test -z "$GREP"; then
3584 set dummy grep ggrep; ac_prog_name=$2
3585 if test "${ac_cv_path_GREP+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 ac_path_GREP_found=false
3589 # Loop through the user's path and test for each of PROGNAME-LIST
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3594 test -z "$as_dir" && as_dir=.
3595 for ac_prog in grep ggrep; do
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3598 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3599 # Check for GNU ac_path_GREP and select it if it is found.
3600 # Check for GNU $ac_path_GREP
3601 case `"$ac_path_GREP" --version 2>&1` in
3603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3606 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3609 cat "conftest.in" "conftest.in" >"conftest.tmp"
3610 mv "conftest.tmp" "conftest.in"
3611 cp "conftest.in" "conftest.nl"
3612 echo 'GREP' >> "conftest.nl"
3613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3615 ac_count=`expr $ac_count + 1`
3616 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3617 # Best one so far, save it but keep looking for a better one
3618 ac_cv_path_GREP="$ac_path_GREP"
3619 ac_path_GREP_max=$ac_count
3621 # 10*(2^10) chars as input seems more than enough
3622 test $ac_count -gt 10 && break
3624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3628 $ac_path_GREP_found && break 3
3638 GREP="$ac_cv_path_GREP"
3639 if test -z "$GREP"; then
3640 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3641 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3642 { (exit 1); exit 1; }; }
3646 ac_cv_path_GREP=$GREP
3651 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3652 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3653 GREP="$ac_cv_path_GREP"
3656 { echo "$as_me:$LINENO: checking for egrep" >&5
3657 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3658 if test "${ac_cv_path_EGREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3662 then ac_cv_path_EGREP="$GREP -E"
3664 # Extract the first word of "egrep" to use in msg output
3665 if test -z "$EGREP"; then
3666 set dummy egrep; ac_prog_name=$2
3667 if test "${ac_cv_path_EGREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 ac_path_EGREP_found=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3676 test -z "$as_dir" && as_dir=.
3677 for ac_prog in egrep; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3680 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3681 # Check for GNU ac_path_EGREP and select it if it is found.
3682 # Check for GNU $ac_path_EGREP
3683 case `"$ac_path_EGREP" --version 2>&1` in
3685 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 echo 'EGREP' >> "conftest.nl"
3695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697 ac_count=`expr $ac_count + 1`
3698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_EGREP="$ac_path_EGREP"
3701 ac_path_EGREP_max=$ac_count
3703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3710 $ac_path_EGREP_found && break 3
3720 EGREP="$ac_cv_path_EGREP"
3721 if test -z "$EGREP"; then
3722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724 { (exit 1); exit 1; }; }
3728 ac_cv_path_EGREP=$EGREP
3734 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3735 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3736 EGREP="$ac_cv_path_EGREP"
3740 # Check whether --with-gnu-ld was given.
3741 if test "${with_gnu_ld+set}" = set; then
3742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3748 if test "$GCC" = yes; then
3749 # Check if gcc -print-prog-name=ld gives a path.
3750 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3754 # gcc leaves a trailing carriage return which upsets mingw
3755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3760 # Accept absolute paths.
3762 re_direlt='/[^/][^/]*/\.\./'
3763 # Canonicalize the pathname of ld
3764 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3765 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3766 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3768 test -z "$LD" && LD="$ac_prog"
3771 # If it fails, then pretend we aren't using GCC.
3775 # If it is relative, then search for the first ld in PATH.
3779 elif test "$with_gnu_ld" = yes; then
3780 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3783 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3786 if test "${lt_cv_path_LD+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -z "$LD"; then
3790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3791 for ac_dir in $PATH; do
3793 test -z "$ac_dir" && ac_dir=.
3794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3795 lt_cv_path_LD="$ac_dir/$ac_prog"
3796 # Check to see if the program is GNU ld. I'd rather use --version,
3797 # but apparently some GNU ld's only accept -v.
3798 # Break only if it was the GNU/non-GNU ld that we prefer.
3799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3800 *GNU* | *'with BFD'*)
3801 test "$with_gnu_ld" != no && break
3804 test "$with_gnu_ld" != yes && break
3811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3816 if test -n "$LD"; then
3817 { echo "$as_me:$LINENO: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6; }
3820 { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3825 { (exit 1); exit 1; }; }
3826 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3832 case `$LD -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834 lt_cv_prog_gnu_ld=yes
3837 lt_cv_prog_gnu_ld=no
3841 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3846 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 lt_cv_ld_reload_flag='-r'
3853 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3855 reload_flag=$lt_cv_ld_reload_flag
3856 case $reload_flag in
3858 *) reload_flag=" $reload_flag" ;;
3860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3862 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3863 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3864 if test "${lt_cv_path_NM+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if test -n "$NM"; then
3868 # Let the user override the test.
3871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3872 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3874 test -z "$ac_dir" && ac_dir=.
3875 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3876 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3877 # Check to see if the nm accepts a BSD-compat flag.
3878 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3879 # nm: unknown option "B" ignored
3880 # Tru64's nm complains that /dev/null is an invalid object file
3881 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3882 */dev/null* | *'Invalid file or object type'*)
3883 lt_cv_path_NM="$tmp_nm -B"
3887 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3889 lt_cv_path_NM="$tmp_nm -p"
3893 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3894 continue # so that we can try to find one that supports BSD flags
3901 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3904 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3905 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3908 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3911 if test "$LN_S" = "ln -s"; then
3912 { echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6; }
3915 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3916 echo "${ECHO_T}no, using $LN_S" >&6; }
3919 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3920 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3921 if test "${lt_cv_deplibs_check_method+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 lt_cv_file_magic_cmd='$MAGIC_CMD'
3925 lt_cv_file_magic_test_file=
3926 lt_cv_deplibs_check_method='unknown'
3927 # Need to set the preceding variable on all platforms that support
3928 # interlibrary dependencies.
3929 # 'none' -- dependencies not supported.
3930 # `unknown' -- same as none, but documents that we really don't know.
3931 # 'pass_all' -- all dependencies passed with no checks.
3932 # 'test_compile' -- check by making test program.
3933 # 'file_magic [[regex]]' -- check by looking for files in library path
3934 # which responds to the $file_magic_cmd with a given extended regex.
3935 # If you have `file' or equivalent on your system and you're not sure
3936 # whether `pass_all' will *always* work, you probably want this one.
3940 lt_cv_deplibs_check_method=pass_all
3944 lt_cv_deplibs_check_method=pass_all
3948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3949 lt_cv_file_magic_cmd='/usr/bin/file -L'
3950 lt_cv_file_magic_test_file=/shlib/libc.so
3954 # func_win32_libid is a shell function defined in ltmain.sh
3955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3956 lt_cv_file_magic_cmd='func_win32_libid'
3960 # Base MSYS/MinGW do not provide the 'file' command needed by
3961 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3962 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3963 lt_cv_file_magic_cmd='$OBJDUMP -f'
3966 darwin* | rhapsody*)
3967 lt_cv_deplibs_check_method=pass_all
3970 freebsd* | kfreebsd*-gnu)
3971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3974 # Not sure whether the presence of OpenBSD here was a mistake.
3975 # Let's accept both of them until this is cleared up.
3976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3977 lt_cv_file_magic_cmd=/usr/bin/file
3978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3982 lt_cv_deplibs_check_method=pass_all
3987 lt_cv_deplibs_check_method=pass_all
3990 hpux10.20* | hpux11*)
3991 lt_cv_file_magic_cmd=/usr/bin/file
3994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3995 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3998 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]'
3999 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4003 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4008 irix5* | irix6* | nonstopux*)
4010 *-32|*"-32 ") libmagic=32-bit;;
4011 *-n32|*"-n32 ") libmagic=N32;;
4012 *-64|*"-64 ") libmagic=64-bit;;
4013 *) libmagic=never-match;;
4015 lt_cv_deplibs_check_method=pass_all
4018 # This must be Linux ELF.
4021 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4022 lt_cv_deplibs_check_method=pass_all ;;
4024 # glibc up to 2.1.1 does not perform some relocations on ARM
4025 # this will be overridden with pass_all, but let us keep it just in case
4026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4028 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4029 lt_cv_deplibs_check_method=pass_all
4033 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4042 lt_cv_file_magic_cmd=/usr/bin/file
4043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4047 lt_cv_deplibs_check_method=unknown
4051 lt_cv_file_magic_cmd=/usr/bin/file
4052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4056 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4060 osf3* | osf4* | osf5*)
4061 lt_cv_deplibs_check_method=pass_all
4065 lt_cv_deplibs_check_method=pass_all
4069 lt_cv_deplibs_check_method=pass_all
4072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4073 case $host_vendor in
4075 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]'
4076 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 lt_cv_deplibs_check_method=pass_all
4082 lt_cv_file_magic_cmd='/bin/file'
4083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4086 lt_cv_file_magic_cmd='/bin/file'
4087 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4088 lt_cv_file_magic_test_file=/lib/libc.so
4091 lt_cv_deplibs_check_method=pass_all
4096 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4097 lt_cv_deplibs_check_method=pass_all
4102 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4103 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4104 file_magic_cmd=$lt_cv_file_magic_cmd
4105 deplibs_check_method=$lt_cv_deplibs_check_method
4106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4111 # If no C compiler was specified, use CC.
4114 # Allow CC to be a program name with arguments.
4117 # Check whether --enable-libtool-lock was given.
4118 if test "${enable_libtool_lock+set}" = set; then
4119 enableval=$enable_libtool_lock;
4122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4124 # Some flags need to be propagated to the compiler or linker for good
4128 # Find out which ABI we are using.
4129 echo 'int i;' > conftest.$ac_ext
4130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; then
4135 case `/usr/bin/file conftest.$ac_objext` in
4147 # Find out which ABI we are using.
4148 echo '#line 4148 "configure"' > conftest.$ac_ext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4150 (eval $ac_compile) 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; then
4154 if test "$lt_cv_prog_gnu_ld" = yes; then
4155 case `/usr/bin/file conftest.$ac_objext` in
4157 LD="${LD-ld} -melf32bsmip"
4160 LD="${LD-ld} -melf32bmipn32"
4163 LD="${LD-ld} -melf64bmip"
4167 case `/usr/bin/file conftest.$ac_objext` in
4183 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4184 # Find out which ABI we are using.
4185 echo 'int i;' > conftest.$ac_ext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; then
4191 case "`/usr/bin/file conftest.o`" in
4195 LD="${LD-ld} -m elf_i386"
4197 ppc64-*linux*|powerpc64-*linux*)
4198 LD="${LD-ld} -m elf32ppclinux"
4201 LD="${LD-ld} -m elf_s390"
4204 LD="${LD-ld} -m elf32_sparc"
4211 LD="${LD-ld} -m elf_x86_64"
4213 ppc*-*linux*|powerpc*-*linux*)
4214 LD="${LD-ld} -m elf64ppc"
4217 LD="${LD-ld} -m elf64_s390"
4220 LD="${LD-ld} -m elf64_sparc"
4230 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4231 SAVE_CFLAGS="$CFLAGS"
4232 CFLAGS="$CFLAGS -belf"
4233 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4234 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4235 if test "${lt_cv_cc_needs_belf+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_link") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest$ac_exeext &&
4276 $as_test_x conftest$ac_exeext; then
4277 lt_cv_cc_needs_belf=yes
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 lt_cv_cc_needs_belf=no
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286 conftest$ac_exeext conftest.$ac_ext
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4295 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4296 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4298 CFLAGS="$SAVE_CFLAGS"
4304 need_locks="$enable_libtool_lock"
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4314 # On Suns, sometimes $CPP names a directory.
4315 if test -n "$CPP" && test -d "$CPP"; then
4318 if test -z "$CPP"; then
4319 if test "${ac_cv_prog_CPP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 # Double quotes because CPP needs to be expanded
4323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4326 for ac_c_preproc_warn_flag in '' yes
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error" is here to catch this case.
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4341 # include <limits.h>
4343 # include <assert.h>
4347 if { (ac_try="$ac_cpp conftest.$ac_ext"
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4355 grep -v '^ *+' conftest.er1 >conftest.err
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null && {
4360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 # Broken: fails on valid input.
4372 rm -f conftest.err conftest.$ac_ext
4374 # OK, works on sane cases. Now check whether nonexistent headers
4375 # can be detected and how.
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <ac_nonexistent.h>
4384 if { (ac_try="$ac_cpp conftest.$ac_ext"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null && {
4397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4400 # Broken: success on invalid input.
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Passes both tests.
4411 rm -f conftest.err conftest.$ac_ext
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then
4428 { echo "$as_me:$LINENO: result: $CPP" >&5
4429 echo "${ECHO_T}$CPP" >&6; }
4431 for ac_c_preproc_warn_flag in '' yes
4433 # Use a header file that comes with gcc, so configuring glibc
4434 # with a fresh cross-compiler works.
4435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4436 # <limits.h> exists even on freestanding compilers.
4437 # On the NeXT, cc -E runs the code through the compiler's parser,
4438 # not just through cpp. "Syntax error" is here to catch this case.
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 # include <limits.h>
4448 # include <assert.h>
4452 if { (ac_try="$ac_cpp conftest.$ac_ext"
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null && {
4465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4466 test ! -s conftest.err
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 # Broken: fails on valid input.
4477 rm -f conftest.err conftest.$ac_ext
4479 # OK, works on sane cases. Now check whether nonexistent headers
4480 # can be detected and how.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <ac_nonexistent.h>
4489 if { (ac_try="$ac_cpp conftest.$ac_ext"
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4497 grep -v '^ *+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } >/dev/null && {
4502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4503 test ! -s conftest.err
4505 # Broken: success on invalid input.
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 # Passes both tests.
4516 rm -f conftest.err conftest.$ac_ext
4519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520 rm -f conftest.err conftest.$ac_ext
4521 if $ac_preproc_ok; then
4524 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4525 See \`config.log' for more details." >&5
4526 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4527 See \`config.log' for more details." >&2;}
4528 { (exit 1); exit 1; }; }
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4539 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4540 if test "${ac_cv_header_stdc+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4562 rm -f conftest.$ac_objext
4563 if { (ac_try="$ac_compile"
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_compile") 2>conftest.er1
4571 grep -v '^ *+' conftest.er1 >conftest.err
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_c_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest.$ac_objext; then
4579 ac_cv_header_stdc=yes
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_cv_header_stdc=no
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 $EGREP "memchr" >/dev/null 2>&1; then
4604 ac_cv_header_stdc=no
4610 if test $ac_cv_header_stdc = yes; then
4611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622 $EGREP "free" >/dev/null 2>&1; then
4625 ac_cv_header_stdc=no
4631 if test $ac_cv_header_stdc = yes; then
4632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4633 if test "$cross_compiling" = yes; then
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4644 #if ((' ' & 0x0FF) == 0x020)
4645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4648 # define ISLOWER(c) \
4649 (('a' <= (c) && (c) <= 'i') \
4650 || ('j' <= (c) && (c) <= 'r') \
4651 || ('s' <= (c) && (c) <= 'z'))
4652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4660 for (i = 0; i < 256; i++)
4661 if (XOR (islower (i), ISLOWER (i))
4662 || toupper (i) != TOUPPER (i))
4667 rm -f conftest$ac_exeext
4668 if { (ac_try="$ac_link"
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_link") 2>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4678 { (case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_try") 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4689 echo "$as_me: program exited with status $ac_status" >&5
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_cv_header_stdc=no
4696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4702 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4704 if test $ac_cv_header_stdc = yes; then
4706 cat >>confdefs.h <<\_ACEOF
4707 #define STDC_HEADERS 1
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723 inttypes.h stdint.h unistd.h
4725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4739 #include <$ac_header>
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_compile") 2>conftest.er1
4750 grep -v '^ *+' conftest.er1 >conftest.err
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && {
4755 test -z "$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 } && test -s conftest.$ac_objext; then
4758 eval "$as_ac_Header=yes"
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 eval "$as_ac_Header=no"
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 ac_res=`eval echo '${'$as_ac_Header'}'`
4769 { echo "$as_me:$LINENO: result: $ac_res" >&5
4770 echo "${ECHO_T}$ac_res" >&6; }
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782 for ac_header in dlfcn.h
4784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 ac_res=`eval echo '${'$as_ac_Header'}'`
4792 { echo "$as_me:$LINENO: result: $ac_res" >&5
4793 echo "${ECHO_T}$ac_res" >&6; }
4795 # Is the header compilable?
4796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4805 #include <$ac_header>
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_compile") 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && {
4821 test -z "$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4823 } && test -s conftest.$ac_objext; then
4824 ac_header_compiler=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_header_compiler=no
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4834 echo "${ECHO_T}$ac_header_compiler" >&6; }
4836 # Is the header present?
4837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 #include <$ac_header>
4847 if { (ac_try="$ac_cpp conftest.$ac_ext"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null && {
4860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4863 ac_header_preproc=yes
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_header_preproc=no
4871 rm -f conftest.err conftest.$ac_ext
4872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873 echo "${ECHO_T}$ac_header_preproc" >&6; }
4875 # So? What about this header?
4876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4882 ac_header_preproc=yes
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 eval "$as_ac_Header=\$ac_header_preproc"
4907 ac_res=`eval echo '${'$as_ac_Header'}'`
4908 { echo "$as_me:$LINENO: result: $ac_res" >&5
4909 echo "${ECHO_T}$ac_res" >&6; }
4912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4913 cat >>confdefs.h <<_ACEOF
4914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4922 ac_cpp='$CXXCPP $CPPFLAGS'
4923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4926 if test -z "$CXX"; then
4927 if test -n "$CCC"; then
4930 if test -n "$ac_tool_prefix"; then
4931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$CXX"; then
4941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 if test -n "$CXX"; then
4962 { echo "$as_me:$LINENO: result: $CXX" >&5
4963 echo "${ECHO_T}$CXX" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4970 test -n "$CXX" && break
4973 if test -z "$CXX"; then
4975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4977 # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 if test -n "$ac_ct_CXX"; then
4985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_ac_ct_CXX="$ac_prog"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5005 if test -n "$ac_ct_CXX"; then
5006 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5007 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5009 { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5014 test -n "$ac_ct_CXX" && break
5017 if test "x$ac_ct_CXX" = x; then
5020 case $cross_compiling:$ac_tool_warned in
5022 { echo "$as_me:$LINENO: 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." >&5
5025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5026 whose name does not start with the host triplet. If you think this
5027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5028 ac_tool_warned=yes ;;
5036 # Provide some information about the compiler.
5037 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5038 ac_compiler=`set X $ac_compile; echo $2`
5039 { (ac_try="$ac_compiler --version >&5"
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compiler --version >&5") 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }
5049 { (ac_try="$ac_compiler -v >&5"
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_compiler -v >&5") 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }
5059 { (ac_try="$ac_compiler -V >&5"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_compiler -V >&5") 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }
5070 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5071 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5072 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5093 rm -f conftest.$ac_objext
5094 if { (ac_try="$ac_compile"
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 (eval "$ac_compile") 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_cxx_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5122 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5123 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5124 GXX=`test $ac_compiler_gnu = yes && echo yes`
5125 ac_test_CXXFLAGS=${CXXFLAGS+set}
5126 ac_save_CXXFLAGS=$CXXFLAGS
5127 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5128 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5129 if test "${ac_cv_prog_cxx_g+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5133 ac_cxx_werror_flag=yes
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5151 rm -f conftest.$ac_objext
5152 if { (ac_try="$ac_compile"
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_compile") 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } && {
5165 test -z "$ac_cxx_werror_flag" ||
5166 test ! -s conftest.err
5167 } && test -s conftest.$ac_objext; then
5168 ac_cv_prog_cxx_g=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5189 rm -f conftest.$ac_objext
5190 if { (ac_try="$ac_compile"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_compile") 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } && {
5203 test -z "$ac_cxx_werror_flag" ||
5204 test ! -s conftest.err
5205 } && test -s conftest.$ac_objext; then
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_cxx_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_cv_prog_cxx_g=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5262 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5263 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5264 if test "$ac_test_CXXFLAGS" = set; then
5265 CXXFLAGS=$ac_save_CXXFLAGS
5266 elif test $ac_cv_prog_cxx_g = yes; then
5267 if test "$GXX" = yes; then
5273 if test "$GXX" = yes; then
5280 ac_cpp='$CXXCPP $CPPFLAGS'
5281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5291 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5292 if test -z "$CXXCPP"; then
5293 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 # Double quotes because CXXCPP needs to be expanded
5297 for CXXCPP in "$CXX -E" "/lib/cpp"
5300 for ac_cxx_preproc_warn_flag in '' yes
5302 # Use a header file that comes with gcc, so configuring glibc
5303 # with a fresh cross-compiler works.
5304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305 # <limits.h> exists even on freestanding compilers.
5306 # On the NeXT, cc -E runs the code through the compiler's parser,
5307 # not just through cpp. "Syntax error" is here to catch this case.
5308 cat >conftest.$ac_ext <<_ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5315 # include <limits.h>
5317 # include <assert.h>
5321 if { (ac_try="$ac_cpp conftest.$ac_ext"
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } >/dev/null && {
5334 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5335 test ! -s conftest.err
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 # Broken: fails on valid input.
5346 rm -f conftest.err conftest.$ac_ext
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <ac_nonexistent.h>
5358 if { (ac_try="$ac_cpp conftest.$ac_ext"
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null && {
5371 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5372 test ! -s conftest.err
5374 # Broken: success on invalid input.
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 # Passes both tests.
5385 rm -f conftest.err conftest.$ac_ext
5388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5389 rm -f conftest.err conftest.$ac_ext
5390 if $ac_preproc_ok; then
5395 ac_cv_prog_CXXCPP=$CXXCPP
5398 CXXCPP=$ac_cv_prog_CXXCPP
5400 ac_cv_prog_CXXCPP=$CXXCPP
5402 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5403 echo "${ECHO_T}$CXXCPP" >&6; }
5405 for ac_cxx_preproc_warn_flag in '' yes
5407 # Use a header file that comes with gcc, so configuring glibc
5408 # with a fresh cross-compiler works.
5409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5410 # <limits.h> exists even on freestanding compilers.
5411 # On the NeXT, cc -E runs the code through the compiler's parser,
5412 # not just through cpp. "Syntax error" is here to catch this case.
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5420 # include <limits.h>
5422 # include <assert.h>
5426 if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } >/dev/null && {
5439 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5440 test ! -s conftest.err
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 # Broken: fails on valid input.
5451 rm -f conftest.err conftest.$ac_ext
5453 # OK, works on sane cases. Now check whether nonexistent headers
5454 # can be detected and how.
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <ac_nonexistent.h>
5463 if { (ac_try="$ac_cpp conftest.$ac_ext"
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } >/dev/null && {
5476 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5477 test ! -s conftest.err
5479 # Broken: success on invalid input.
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 # Passes both tests.
5490 rm -f conftest.err conftest.$ac_ext
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.$ac_ext
5495 if $ac_preproc_ok; then
5498 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5501 See \`config.log' for more details." >&2;}
5502 { (exit 1); exit 1; }; }
5506 ac_cpp='$CXXCPP $CPPFLAGS'
5507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5513 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5514 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5516 if test -n "$ac_tool_prefix"; then
5517 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
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_F77+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test -n "$F77"; then
5527 ac_cv_prog_F77="$F77" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$F77"; then
5548 { echo "$as_me:$LINENO: result: $F77" >&5
5549 echo "${ECHO_T}$F77" >&6; }
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5556 test -n "$F77" && break
5559 if test -z "$F77"; then
5561 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
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test -n "$ac_ct_F77"; then
5571 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_F77="$ac_prog"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5591 if test -n "$ac_ct_F77"; then
5592 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5593 echo "${ECHO_T}$ac_ct_F77" >&6; }
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5600 test -n "$ac_ct_F77" && break
5603 if test "x$ac_ct_F77" = x; then
5606 case $cross_compiling:$ac_tool_warned in
5608 { echo "$as_me:$LINENO: 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." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet. If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5621 # Provide some information about the compiler.
5622 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5623 ac_compiler=`set X $ac_compile; echo $2`
5624 { (ac_try="$ac_compiler --version >&5"
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compiler --version >&5") 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }
5634 { (ac_try="$ac_compiler -v >&5"
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_compiler -v >&5") 2>&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }
5644 { (ac_try="$ac_compiler -V >&5"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compiler -V >&5") 2>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }
5656 # If we don't use `.F' as extension, the preprocessor is not run on the
5657 # input file. (Note that this only needs to work for GNU compilers.)
5660 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5661 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5662 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 cat >conftest.$ac_ext <<_ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } && {
5687 test -z "$ac_f77_werror_flag" ||
5688 test ! -s conftest.err
5689 } && test -s conftest.$ac_objext; then
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5702 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5703 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5705 ac_test_FFLAGS=${FFLAGS+set}
5706 ac_save_FFLAGS=$FFLAGS
5708 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5709 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_f77_g+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.$ac_ext <<_ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_f77_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 ac_cv_prog_f77_g=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5748 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5749 if test "$ac_test_FFLAGS" = set; then
5750 FFLAGS=$ac_save_FFLAGS
5751 elif test $ac_cv_prog_f77_g = yes; then
5752 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5758 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5765 G77=`test $ac_compiler_gnu = yes && echo yes`
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5776 # find the maximum length of command line arguments
5777 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5778 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5779 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 # On DJGPP, this test can blow up pretty badly due to problems in libc
5788 # (any single argument exceeding 2000 bytes causes a buffer overrun
5789 # during glob expansion). Even if it were fixed, the result of this
5790 # check would be larger than it should be.
5791 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5795 # Under GNU Hurd, this test is not required because there is
5796 # no limit to the length of command line arguments.
5797 # Libtool will interpret -1 as no limit whatsoever
5798 lt_cv_sys_max_cmd_len=-1;
5802 # On Win9x/ME, this test blows up -- it succeeds, but takes
5803 # about 5 minutes as the teststring grows exponentially.
5804 # Worse, since 9x/ME are not pre-emptively multitasking,
5805 # you end up with a "frozen" computer, even though with patience
5806 # the test eventually succeeds (with a max line length of 256k).
5807 # Instead, let's just punt: use the minimum linelength reported by
5808 # all of the supported platforms: 8192 (on NT/2K/XP).
5809 lt_cv_sys_max_cmd_len=8192;
5813 # On AmigaOS with pdksh, this test takes hours, literally.
5814 # So we just punt and use a minimum line length of 8192.
5815 lt_cv_sys_max_cmd_len=8192;
5819 # If test is not a shell built-in, we'll probably end up computing a
5820 # maximum length that is only half of the actual maximum length, but
5822 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5823 = "XX$teststring") >/dev/null 2>&1 &&
5824 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5825 lt_cv_sys_max_cmd_len=$new_result &&
5826 test $i != 17 # 1/2 MB should be enough
5829 teststring=$teststring$teststring
5832 # Add a significant safety factor because C++ compilers can tack on massive
5833 # amounts of additional arguments before passing them to the linker.
5834 # It appears as though 1/2 is a usable value.
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5841 if test -n $lt_cv_sys_max_cmd_len ; then
5842 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5843 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5845 { echo "$as_me:$LINENO: result: none" >&5
5846 echo "${ECHO_T}none" >&6; }
5852 # Check for command to grab the raw symbol name followed by C symbol from nm.
5853 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5855 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 # These are sane defaults that work on at least a few old systems.
5860 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5862 # Character class describing NM global symbol codes.
5863 symcode='[BCDEGRST]'
5865 # Regexp to match symbols that can be accessed directly from C.
5866 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5868 # Transform the above into a raw symbol and a C symbol.
5869 symxfrm='\1 \2\3 \3'
5871 # Transform an extracted symbol line into a proper C declaration
5872 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5874 # Transform an extracted symbol line into symbol name and symbol address
5875 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'"
5877 # Define system-specific variables.
5882 cygwin* | mingw* | pw32*)
5883 symcode='[ABCDGISTW]'
5885 hpux*) # Its linker distinguishes data from code symbols
5886 if test "$host_cpu" = ia64; then
5887 symcode='[ABCDEGRST]'
5889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5890 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'"
5893 symcode='[BCDEGRST]'
5896 symcode='[BCDEGQRST]'
5906 # Handle CRLF in mingw tool chain
5910 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5914 # If we're using GNU nm, then use its standard symbol codes.
5915 case `$NM -V 2>&1` in
5916 *GNU* | *'with BFD'*)
5917 symcode='[ABCDGIRSTW]' ;;
5920 # Try without a prefix undercore, then with it.
5921 for ac_symprfx in "" "_"; do
5923 # Write the raw and C identifiers.
5924 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5926 # Check to see that the pipe works correctly.
5930 cat > conftest.$ac_ext <<EOF
5935 void nm_test_func(){}
5939 int main(){nm_test_var='a';nm_test_func();return(0);}
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; then
5947 # Now try to grab the symbols.
5949 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5950 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && test -s "$nlist"; then
5954 # Try sorting and uniquifying the output.
5955 if sort "$nlist" | uniq > "$nlist"T; then
5956 mv -f "$nlist"T "$nlist"
5961 # Make sure that we snagged all the symbols we need.
5962 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5963 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5964 cat <<EOF > conftest.$ac_ext
5970 # Now generate the symbol file.
5971 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5973 cat <<EOF >> conftest.$ac_ext
5974 #if defined (__STDC__) && __STDC__
5975 # define lt_ptr_t void *
5977 # define lt_ptr_t char *
5981 /* The mapping between symbol names and symbols. */
5986 lt_preloaded_symbols[] =
5989 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5990 cat <<\EOF >> conftest.$ac_ext
5998 # Now try linking the two files.
5999 mv conftest.$ac_objext conftstm.$ac_objext
6000 lt_save_LIBS="$LIBS"
6001 lt_save_CFLAGS="$CFLAGS"
6002 LIBS="conftstm.$ac_objext"
6003 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6011 LIBS="$lt_save_LIBS"
6012 CFLAGS="$lt_save_CFLAGS"
6014 echo "cannot find nm_test_func in $nlist" >&5
6017 echo "cannot find nm_test_var in $nlist" >&5
6020 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6023 echo "$progname: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 rm -f conftest* conftst*
6028 # Do not use the global_symbol_pipe unless it works.
6029 if test "$pipe_works" = yes; then
6032 lt_cv_sys_global_symbol_pipe=
6038 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6039 lt_cv_sys_global_symbol_to_cdecl=
6041 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6042 { echo "$as_me:$LINENO: result: failed" >&5
6043 echo "${ECHO_T}failed" >&6; }
6045 { echo "$as_me:$LINENO: result: ok" >&5
6046 echo "${ECHO_T}ok" >&6; }
6049 { echo "$as_me:$LINENO: checking for objdir" >&5
6050 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6051 if test "${lt_cv_objdir+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 rm -f .libs 2>/dev/null
6055 mkdir .libs 2>/dev/null
6056 if test -d .libs; then
6059 # MS-DOS does not allow filenames that begin with a dot.
6062 rmdir .libs 2>/dev/null
6064 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6065 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6066 objdir=$lt_cv_objdir
6074 # AIX sometimes has problems with the GCC collect2 program. For some
6075 # reason, if we set the COLLECT_NAMES environment variable, the problems
6076 # vanish in a puff of smoke.
6077 if test "X${COLLECT_NAMES+set}" != Xset; then
6079 export COLLECT_NAMES
6084 # Sed substitution that helps us do robust quoting. It backslashifies
6085 # metacharacters that are still active within double-quoted strings.
6086 Xsed='sed -e s/^X//'
6087 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6089 # Same as above, but do not quote variable references.
6090 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6092 # Sed substitution to delay expansion of an escaped shell variable in a
6093 # double_quote_subst'ed string.
6094 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6096 # Sed substitution to avoid accidental globbing in evaled expressions
6097 no_glob_subst='s/\*/\\\*/g'
6103 default_ofile=libtool
6104 can_build_shared=yes
6106 # All known linkers require a `.a' archive for static linking (except M$VC,
6107 # which needs '.lib').
6109 ltmain="$ac_aux_dir/ltmain.sh"
6110 ofile="$default_ofile"
6111 with_gnu_ld="$lt_cv_prog_gnu_ld"
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$AR"; then
6122 ac_cv_prog_AR="$AR" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_AR="${ac_tool_prefix}ar"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$AR"; then
6143 { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6152 if test -z "$ac_cv_prog_AR"; then
6154 # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -n "$ac_ct_AR"; then
6162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_AR="ar"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 if test "x$ac_ct_AR" = x; then
6193 case $cross_compiling:$ac_tool_warned in
6195 { echo "$as_me:$LINENO: 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." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet. If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_RANLIB+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$RANLIB"; then
6218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 RANLIB=$ac_cv_prog_RANLIB
6238 if test -n "$RANLIB"; then
6239 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6240 echo "${ECHO_T}$RANLIB" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6248 if test -z "$ac_cv_prog_RANLIB"; then
6249 ac_ct_RANLIB=$RANLIB
6250 # Extract the first word of "ranlib", so it can be a program name with args.
6251 set dummy ranlib; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$ac_ct_RANLIB"; then
6258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_RANLIB="ranlib"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6278 if test -n "$ac_ct_RANLIB"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6280 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6286 if test "x$ac_ct_RANLIB" = x; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { echo "$as_me:$LINENO: 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." >&5
6294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6297 ac_tool_warned=yes ;;
6299 RANLIB=$ac_ct_RANLIB
6302 RANLIB="$ac_cv_prog_RANLIB"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_STRIP+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 STRIP=$ac_cv_prog_STRIP
6334 if test -n "$STRIP"; then
6335 { echo "$as_me:$LINENO: result: $STRIP" >&5
6336 echo "${ECHO_T}$STRIP" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6344 if test -z "$ac_cv_prog_STRIP"; then
6346 # Extract the first word of "strip", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 if test -n "$ac_ct_STRIP"; then
6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_STRIP="strip"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374 if test -n "$ac_ct_STRIP"; then
6375 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6376 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6382 if test "x$ac_ct_STRIP" = x; then
6385 case $cross_compiling:$ac_tool_warned in
6387 { echo "$as_me:$LINENO: 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." >&5
6390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet. If you think this
6392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6393 ac_tool_warned=yes ;;
6398 STRIP="$ac_cv_prog_STRIP"
6403 old_CFLAGS="$CFLAGS"
6405 # Set sane defaults for various variables
6406 test -z "$AR" && AR=ar
6407 test -z "$AR_FLAGS" && AR_FLAGS=cru
6408 test -z "$AS" && AS=as
6409 test -z "$CC" && CC=cc
6410 test -z "$LTCC" && LTCC=$CC
6411 test -z "$DLLTOOL" && DLLTOOL=dlltool
6412 test -z "$LD" && LD=ld
6413 test -z "$LN_S" && LN_S="ln -s"
6414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6415 test -z "$NM" && NM=nm
6416 test -z "$SED" && SED=sed
6417 test -z "$OBJDUMP" && OBJDUMP=objdump
6418 test -z "$RANLIB" && RANLIB=:
6419 test -z "$STRIP" && STRIP=:
6420 test -z "$ac_objext" && ac_objext=o
6422 # Determine commands to create old-style static archives.
6423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6424 old_postinstall_cmds='chmod 644 $oldlib'
6425 old_postuninstall_cmds=
6427 if test -n "$RANLIB"; then
6430 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6433 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6436 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6439 # Only perform the check for file, if the check method requires it
6440 case $deplibs_check_method in
6442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6443 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6444 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6453 lt_save_MAGIC_CMD="$MAGIC_CMD"
6454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6456 for ac_dir in $ac_dummy; do
6458 test -z "$ac_dir" && ac_dir=.
6459 if test -f $ac_dir/${ac_tool_prefix}file; then
6460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6461 if test -n "$file_magic_test_file"; then
6462 case $deplibs_check_method in
6464 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6467 $EGREP "$file_magic_regex" > /dev/null; then
6472 *** Warning: the command libtool uses to detect shared libraries,
6473 *** $file_magic_cmd, produces output that libtool cannot recognize.
6474 *** The result is that libtool may fail to recognize shared libraries
6475 *** as such. This will affect the creation of libtool libraries that
6476 *** depend on shared libraries, but programs linked with such libtool
6477 *** libraries will work regardless of this problem. Nevertheless, you
6478 *** may want to report the problem to your system manager and/or to
6479 *** bug-libtool@gnu.org
6489 MAGIC_CMD="$lt_save_MAGIC_CMD"
6494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6495 if test -n "$MAGIC_CMD"; then
6496 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6497 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6503 if test -z "$lt_cv_path_MAGIC_CMD"; then
6504 if test -n "$ac_tool_prefix"; then
6505 { echo "$as_me:$LINENO: checking for file" >&5
6506 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6515 lt_save_MAGIC_CMD="$MAGIC_CMD"
6516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6518 for ac_dir in $ac_dummy; do
6520 test -z "$ac_dir" && ac_dir=.
6521 if test -f $ac_dir/file; then
6522 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6523 if test -n "$file_magic_test_file"; then
6524 case $deplibs_check_method in
6526 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6529 $EGREP "$file_magic_regex" > /dev/null; then
6534 *** Warning: the command libtool uses to detect shared libraries,
6535 *** $file_magic_cmd, produces output that libtool cannot recognize.
6536 *** The result is that libtool may fail to recognize shared libraries
6537 *** as such. This will affect the creation of libtool libraries that
6538 *** depend on shared libraries, but programs linked with such libtool
6539 *** libraries will work regardless of this problem. Nevertheless, you
6540 *** may want to report the problem to your system manager and/or to
6541 *** bug-libtool@gnu.org
6551 MAGIC_CMD="$lt_save_MAGIC_CMD"
6556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6557 if test -n "$MAGIC_CMD"; then
6558 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6559 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6561 { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6577 # Check whether --enable-libtool-lock was given.
6578 if test "${enable_libtool_lock+set}" = set; then
6579 enableval=$enable_libtool_lock;
6582 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6585 # Check whether --with-pic was given.
6586 if test "${with_pic+set}" = set; then
6587 withval=$with_pic; pic_mode="$withval"
6592 test -z "$pic_mode" && pic_mode=default
6594 # Use C for the default configuration in the libtool script
6598 ac_cpp='$CPP $CPPFLAGS'
6599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604 # Source file extension for C test sources.
6607 # Object file extension for compiled C test sources.
6611 # Code to be used in simple compile tests
6612 lt_simple_compile_test_code="int some_variable = 0;\n"
6614 # Code to be used in simple link tests
6615 lt_simple_link_test_code='int main(){return(0);}\n'
6618 # If no C compiler was specified, use CC.
6621 # Allow CC to be a program name with arguments.
6626 # Check for any special shared library compilation flags.
6629 if test "$GCC" = no; then
6632 lt_prog_cc_shlib='-belf'
6636 if test -n "$lt_prog_cc_shlib"; then
6637 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6638 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6639 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6641 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6642 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6643 lt_cv_prog_cc_can_build_shared=no
6649 # Check to make sure the static flag actually works.
6651 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6652 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6653 if test "${lt_prog_compiler_static_works+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 lt_prog_compiler_static_works=no
6657 save_LDFLAGS="$LDFLAGS"
6658 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6659 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6661 # The compiler can only warn and ignore the option if not recognized
6662 # So say no if there are warnings
6663 if test -s conftest.err; then
6664 # Append any errors to the config.log.
6665 cat conftest.err 1>&5
6667 lt_prog_compiler_static_works=yes
6671 LDFLAGS="$save_LDFLAGS"
6674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6675 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6677 if test x"$lt_prog_compiler_static_works" = xyes; then
6680 lt_prog_compiler_static=
6686 ## There is no encapsulation within the following macros, do not change
6687 ## the running order or otherwise move them around unless you know exactly
6688 ## what you are doing...
6690 lt_prog_compiler_no_builtin_flag=
6692 if test "$GCC" = yes; then
6693 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6696 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6697 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 lt_cv_prog_compiler_rtti_exceptions=no
6702 ac_outfile=conftest.$ac_objext
6703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6704 lt_compiler_flag="-fno-rtti -fno-exceptions"
6705 # Insert the option either (1) after the last *FLAGS variable, or
6706 # (2) before a word containing "conftest.", or (3) at the end.
6707 # Note that $ac_compile itself does not contain backslashes and begins
6708 # with a dollar sign (not a hyphen), so the echo should work correctly.
6709 # The option is referenced via a variable to avoid confusing sed.
6710 lt_compile=`echo "$ac_compile" | $SED \
6711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6713 -e 's:$: $lt_compiler_flag:'`
6714 (eval echo "\"\$as_me:6714: $lt_compile\"" >&5)
6715 (eval "$lt_compile" 2>conftest.err)
6717 cat conftest.err >&5
6718 echo "$as_me:6718: \$? = $ac_status" >&5
6719 if (exit $ac_status) && test -s "$ac_outfile"; then
6720 # The compiler can only warn and ignore the option if not recognized
6721 # So say no if there are warnings
6722 if test ! -s conftest.err; then
6723 lt_cv_prog_compiler_rtti_exceptions=yes
6729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6733 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6740 lt_prog_compiler_wl=
6741 lt_prog_compiler_pic=
6742 lt_prog_compiler_static=
6744 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6747 if test "$GCC" = yes; then
6748 lt_prog_compiler_wl='-Wl,'
6749 lt_prog_compiler_static='-static'
6753 # All AIX code is PIC.
6754 if test "$host_cpu" = ia64; then
6755 # AIX 5 now supports IA64 processor
6756 lt_prog_compiler_static='-Bstatic'
6761 # FIXME: we need at least 68020 code to build shared libraries, but
6762 # adding the `-m68020' flag to GCC prevents building anything better,
6764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6767 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6768 # PIC is the default for these OSes.
6771 mingw* | pw32* | os2*)
6772 # This hack is so that the source file can tell whether it is being
6773 # built for inclusion in a dll (and should export symbols for example).
6774 lt_prog_compiler_pic='-DDLL_EXPORT'
6777 darwin* | rhapsody*)
6778 # PIC is the default on this platform
6779 # Common symbols not allowed in MH_DYLIB files
6780 lt_prog_compiler_pic='-fno-common'
6784 # Just because we use GCC doesn't mean we suddenly get shared libraries
6785 # on systems that don't support them.
6786 lt_prog_compiler_can_build_shared=no
6791 if test -d /usr/nec; then
6792 lt_prog_compiler_pic=-Kconform_pic
6797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6804 lt_prog_compiler_pic='-fPIC'
6810 lt_prog_compiler_pic='-fPIC'
6814 # PORTME Check for flag to pass linker flags through the system compiler.
6817 lt_prog_compiler_wl='-Wl,'
6818 if test "$host_cpu" = ia64; then
6819 # AIX 5 now supports IA64 processor
6820 lt_prog_compiler_static='-Bstatic'
6822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6826 mingw* | pw32* | os2*)
6827 # This hack is so that the source file can tell whether it is being
6828 # built for inclusion in a dll (and should export symbols for example).
6829 lt_prog_compiler_pic='-DDLL_EXPORT'
6832 hpux9* | hpux10* | hpux11*)
6833 lt_prog_compiler_wl='-Wl,'
6834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6841 lt_prog_compiler_pic='+Z'
6844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6845 lt_prog_compiler_static='${wl}-a ${wl}archive'
6848 irix5* | irix6* | nonstopux*)
6849 lt_prog_compiler_wl='-Wl,'
6850 # PIC (with -KPIC) is the default.
6851 lt_prog_compiler_static='-non_shared'
6855 lt_prog_compiler_pic='-KPIC'
6856 lt_prog_compiler_static='-Bstatic'
6862 lt_prog_compiler_wl='-Wl,'
6863 lt_prog_compiler_pic='-KPIC'
6864 lt_prog_compiler_static='-static'
6867 lt_prog_compiler_wl='-Wl,'
6868 # All Alpha code is PIC.
6869 lt_prog_compiler_static='-non_shared'
6874 osf3* | osf4* | osf5*)
6875 lt_prog_compiler_wl='-Wl,'
6876 # All OSF/1 code is PIC.
6877 lt_prog_compiler_static='-non_shared'
6881 lt_prog_compiler_pic='-Kpic'
6882 lt_prog_compiler_static='-dn'
6886 lt_prog_compiler_wl='-Wl,'
6887 lt_prog_compiler_pic='-KPIC'
6888 lt_prog_compiler_static='-Bstatic'
6892 lt_prog_compiler_wl='-Qoption ld '
6893 lt_prog_compiler_pic='-PIC'
6894 lt_prog_compiler_static='-Bstatic'
6897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6898 lt_prog_compiler_wl='-Wl,'
6899 lt_prog_compiler_pic='-KPIC'
6900 lt_prog_compiler_static='-Bstatic'
6904 if test -d /usr/nec ;then
6905 lt_prog_compiler_pic='-Kconform_pic'
6906 lt_prog_compiler_static='-Bstatic'
6911 lt_prog_compiler_pic='-pic'
6912 lt_prog_compiler_static='-Bstatic'
6916 lt_prog_compiler_can_build_shared=no
6921 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6922 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6925 # Check to make sure the PIC flag actually works.
6927 if test -n "$lt_prog_compiler_pic"; then
6929 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6930 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6931 if test "${lt_prog_compiler_pic_works+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 lt_prog_compiler_pic_works=no
6935 ac_outfile=conftest.$ac_objext
6936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6937 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6938 # Insert the option either (1) after the last *FLAGS variable, or
6939 # (2) before a word containing "conftest.", or (3) at the end.
6940 # Note that $ac_compile itself does not contain backslashes and begins
6941 # with a dollar sign (not a hyphen), so the echo should work correctly.
6942 # The option is referenced via a variable to avoid confusing sed.
6943 lt_compile=`echo "$ac_compile" | $SED \
6944 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6946 -e 's:$: $lt_compiler_flag:'`
6947 (eval echo "\"\$as_me:6947: $lt_compile\"" >&5)
6948 (eval "$lt_compile" 2>conftest.err)
6950 cat conftest.err >&5
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 if (exit $ac_status) && test -s "$ac_outfile"; then
6953 # The compiler can only warn and ignore the option if not recognized
6954 # So say no if there are warnings
6955 if test ! -s conftest.err; then
6956 lt_prog_compiler_pic_works=yes
6962 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6963 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6965 if test x"$lt_prog_compiler_pic_works" = xyes; then
6966 case $lt_prog_compiler_pic in
6968 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6971 lt_prog_compiler_pic=
6972 lt_prog_compiler_can_build_shared=no
6977 # For platforms which do not support PIC, -DPIC is meaningless:
6979 lt_prog_compiler_pic=
6982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6986 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6987 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 lt_cv_prog_compiler_c_o=no
6992 $rm -r conftest 2>/dev/null
6996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6998 lt_compiler_flag="-o out/conftest2.$ac_objext"
6999 # Insert the option either (1) after the last *FLAGS variable, or
7000 # (2) before a word containing "conftest.", or (3) at the end.
7001 # Note that $ac_compile itself does not contain backslashes and begins
7002 # with a dollar sign (not a hyphen), so the echo should work correctly.
7003 lt_compile=`echo "$ac_compile" | $SED \
7004 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7006 -e 's:$: $lt_compiler_flag:'`
7007 (eval echo "\"\$as_me:7007: $lt_compile\"" >&5)
7008 (eval "$lt_compile" 2>out/conftest.err)
7010 cat out/conftest.err >&5
7011 echo "$as_me:7011: \$? = $ac_status" >&5
7012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7014 # The compiler can only warn and ignore the option if not recognized
7015 # So say no if there are warnings
7016 if test ! -s out/conftest.err; then
7017 lt_cv_prog_compiler_c_o=yes
7022 # SGI C++ compiler will create directory out/ii_files/ for
7023 # template instantiation
7024 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7025 $rm out/* && rmdir out
7031 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7032 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7035 hard_links="nottested"
7036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7037 # do not overwrite the value of need_locks provided by the user
7038 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7039 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7044 ln conftest.a conftest.b 2>&5 || hard_links=no
7045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7046 { echo "$as_me:$LINENO: result: $hard_links" >&5
7047 echo "${ECHO_T}$hard_links" >&6; }
7048 if test "$hard_links" = no; then
7049 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7050 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7057 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7058 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7061 allow_undefined_flag=
7062 enable_shared_with_static_runtimes=no
7064 archive_expsym_cmds=
7065 old_archive_From_new_cmds=
7066 old_archive_from_expsyms_cmds=
7067 export_dynamic_flag_spec=
7068 whole_archive_flag_spec=
7069 thread_safe_flag_spec=
7070 hardcode_libdir_flag_spec=
7071 hardcode_libdir_flag_spec_ld=
7072 hardcode_libdir_separator=
7075 hardcode_shlibpath_var=unsupported
7076 link_all_deplibs=unknown
7077 hardcode_automatic=no
7080 always_export_symbols=no
7081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7082 # include_expsyms should be a list of space-separated symbols to be *always*
7083 # included in the symbol list
7085 # exclude_expsyms can be an extended regexp of symbols to exclude
7086 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7087 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7088 # as well as any symbol that contains `d'.
7089 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7091 # platforms (ab)use it in PIC code, but their linkers get confused if
7092 # the symbol is explicitly referenced. Since portable code cannot
7093 # rely on this symbol name, it's probably fine to never include it in
7094 # preloaded symbol tables.
7095 extract_expsyms_cmds=
7098 cygwin* | mingw* | pw32*)
7099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7100 # When not using gcc, we currently assume that we are using
7101 # Microsoft Visual C++.
7102 if test "$GCC" != yes; then
7112 if test "$with_gnu_ld" = yes; then
7113 # If archive_cmds runs LD, not CC, wlarc should be empty
7116 # See if GNU ld supports shared libraries.
7118 aix3* | aix4* | aix5*)
7119 # On AIX/PPC, the GNU linker is very broken
7120 if test "$host_cpu" != ia64; then
7124 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7125 *** to be unable to reliably create shared libraries on AIX.
7126 *** Therefore, libtool is disabling shared libraries support. If you
7127 *** really care for shared libraries, you may want to modify your PATH
7128 *** so that a non-GNU linker is found, and then restart.
7135 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)'
7136 hardcode_libdir_flag_spec='-L$libdir'
7137 hardcode_minus_L=yes
7139 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7140 # that the semantics of dynamic libraries on AmigaOS, at least up
7141 # to version 4, is to share data among multiple programs linked
7142 # with the same dynamic library. Since this doesn't match the
7143 # behavior of shared libraries on other platforms, we can't use
7149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7150 allow_undefined_flag=unsupported
7151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7152 # support --undefined. This deserves some investigation. FIXME
7153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7159 cygwin* | mingw* | pw32*)
7160 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7161 # as there is no search path for DLLs.
7162 hardcode_libdir_flag_spec='-L$libdir'
7163 allow_undefined_flag=unsupported
7164 always_export_symbols=no
7165 enable_shared_with_static_runtimes=yes
7166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7168 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7170 # If the export-symbols file already is a .def file (1st line
7171 # is EXPORTS), use it as is; otherwise, prepend...
7172 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7173 cp $export_symbols $output_objdir/$soname.def;
7175 echo EXPORTS > $output_objdir/$soname.def;
7176 cat $export_symbols >> $output_objdir/$soname.def;
7178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7195 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7200 *** create shared libraries on Solaris systems. Therefore, libtool
7201 *** is disabling shared libraries support. We urge you to upgrade GNU
7202 *** binutils to release 2.9.1 or newer. Another option is to modify
7203 *** your PATH or compiler configuration so that the native linker is
7204 *** used, and then restart.
7207 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7216 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7219 hardcode_shlibpath_var=no
7223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7224 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7225 archive_cmds="$tmp_archive_cmds"
7226 supports_anon_versioning=no
7227 case `$LD -v 2>/dev/null` in
7228 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7231 *\ 2.11.*) ;; # other 2.11 versions
7232 *) supports_anon_versioning=yes ;;
7234 if test $supports_anon_versioning = yes; then
7235 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7237 $echo "local: *; };" >> $output_objdir/$libname.ver~
7238 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7240 archive_expsym_cmds="$tmp_archive_cmds"
7248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7257 if test "$ld_shlibs" = yes; then
7258 runpath_var=LD_RUN_PATH
7259 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7260 export_dynamic_flag_spec='${wl}--export-dynamic'
7261 # ancient GNU ld didn't support --whole-archive et. al.
7262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7263 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7265 whole_archive_flag_spec=
7269 # PORTME fill in a description of your system's linker (not GNU ld)
7272 allow_undefined_flag=unsupported
7273 always_export_symbols=yes
7274 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'
7275 # Note: this linker hardcodes the directories in LIBPATH if there
7276 # are no directories specified by -L.
7277 hardcode_minus_L=yes
7278 if test "$GCC" = yes && test -z "$link_static_flag"; then
7279 # Neither direct hardcoding nor static linking is supported with a
7281 hardcode_direct=unsupported
7286 if test "$host_cpu" = ia64; then
7287 # On IA64, the linker does run time linking by default, so we don't
7288 # have to do anything special.
7289 aix_use_runtimelinking=no
7290 exp_sym_flag='-Bexport'
7293 # If we're using GNU nm, then we don't want the "-C" option.
7294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296 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'
7298 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'
7300 aix_use_runtimelinking=no
7302 # Test if we are trying to use run time linking or normal
7303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7304 # need to do runtime linking.
7305 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7306 for ld_flag in $LDFLAGS; do
7307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7308 aix_use_runtimelinking=yes
7314 exp_sym_flag='-bexport'
7315 no_entry_flag='-bnoentry'
7318 # When large executables or shared objects are built, AIX ld can
7319 # have problems creating the table of contents. If linking a library
7320 # or program results in "error TOC overflow" add -mminimal-toc to
7321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7326 hardcode_libdir_separator=':'
7327 link_all_deplibs=yes
7329 if test "$GCC" = yes; then
7330 case $host_os in aix4.012|aix4.012.*)
7331 # We only want to do this on AIX 4.2 and lower, the check
7332 # below for broken collect2 doesn't work under 4.3+
7333 collect2name=`${CC} -print-prog-name=collect2`
7334 if test -f "$collect2name" && \
7335 strings "$collect2name" | grep resolve_lib_name >/dev/null
7337 # We have reworked collect2
7340 # We have old collect2
7341 hardcode_direct=unsupported
7342 # It fails to find uninstalled libraries when the uninstalled
7343 # path is not listed in the libpath. Setting hardcode_minus_L
7344 # to unsupported forces relinking
7345 hardcode_minus_L=yes
7346 hardcode_libdir_flag_spec='-L$libdir'
7347 hardcode_libdir_separator=
7350 shared_flag='-shared'
7353 if test "$host_cpu" = ia64; then
7354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7355 # chokes on -Wl,-G. The following line is correct:
7358 if test "$aix_use_runtimelinking" = yes; then
7359 shared_flag='${wl}-G'
7361 shared_flag='${wl}-bM:SRE'
7366 # It seems that -bexpall does not export symbols beginning with
7367 # underscore (_), so it is better to generate a list of symbols to export.
7368 always_export_symbols=yes
7369 if test "$aix_use_runtimelinking" = yes; then
7370 # Warning - without using the other runtime loading flags (-brtl),
7371 # -berok will link without error, but may produce a broken library.
7372 allow_undefined_flag='-berok'
7373 # Determine the default libpath from the value encoded in an empty executable.
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396 (eval "$ac_link") 2>conftest.er1
7398 grep -v '^ *+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest$ac_exeext &&
7406 $as_test_x conftest$ac_exeext; then
7408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7410 # Check for a 64-bit object if we didn't find anything.
7411 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; }
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421 conftest$ac_exeext conftest.$ac_ext
7422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7425 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"
7427 if test "$host_cpu" = ia64; then
7428 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7429 allow_undefined_flag="-z nodefs"
7430 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"
7432 # Determine the default libpath from the value encoded in an empty executable.
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_link") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest$ac_exeext &&
7465 $as_test_x conftest$ac_exeext; then
7467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7469 # Check for a 64-bit object if we didn't find anything.
7470 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; }
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7480 conftest$ac_exeext conftest.$ac_ext
7481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7483 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7484 # Warning - without using the other run time loading flags,
7485 # -berok will link without error, but may produce a broken library.
7486 no_undefined_flag=' ${wl}-bernotok'
7487 allow_undefined_flag=' ${wl}-berok'
7488 # -bexpall does not export symbols beginning with underscore (_)
7489 always_export_symbols=yes
7490 # Exported symbols can be pulled into shared objects from archives
7491 whole_archive_flag_spec=' '
7492 archive_cmds_need_lc=yes
7493 # This is similar to how AIX traditionally builds it's shared libraries.
7494 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'
7500 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)'
7501 hardcode_libdir_flag_spec='-L$libdir'
7502 hardcode_minus_L=yes
7503 # see comment about different semantics on the GNU ld section
7508 export_dynamic_flag_spec=-rdynamic
7511 cygwin* | mingw* | pw32*)
7512 # When not using gcc, we currently assume that we are using
7513 # Microsoft Visual C++.
7514 # hardcode_libdir_flag_spec is actually meaningless, as there is
7515 # no search path for DLLs.
7516 hardcode_libdir_flag_spec=' '
7517 allow_undefined_flag=unsupported
7518 # Tell ltmain to make .lib files, not .a files.
7520 # Tell ltmain to make .dll files, not .so files.
7522 # FIXME: Setting linknames here is a bad hack.
7523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7524 # The linker will automatically build a .lib file if we build a DLL.
7525 old_archive_From_new_cmds='true'
7526 # FIXME: Should let the user specify the lib program.
7527 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7528 fix_srcfile_path='`cygpath -w "$srcfile"`'
7529 enable_shared_with_static_runtimes=yes
7532 darwin* | rhapsody*)
7533 if test "$GXX" = yes ; then
7534 archive_cmds_need_lc=no
7536 rhapsody* | darwin1.[012])
7537 allow_undefined_flag='-undefined suppress'
7540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7541 allow_undefined_flag='-flat_namespace -undefined suppress'
7543 case ${MACOSX_DEPLOYMENT_TARGET} in
7545 allow_undefined_flag='-flat_namespace -undefined suppress'
7548 allow_undefined_flag='-undefined dynamic_lookup'
7554 lt_int_apple_cc_single_mod=no
7555 output_verbose_link_cmd='echo'
7556 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7557 lt_int_apple_cc_single_mod=yes
7559 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7560 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7562 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'
7564 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7567 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}'
7569 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}'
7571 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}'
7573 hardcode_automatic=yes
7574 hardcode_shlibpath_var=unsupported
7575 whole_archive_flag_spec='-all_load $convenience'
7576 link_all_deplibs=yes
7583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 hardcode_libdir_flag_spec='-L$libdir'
7585 hardcode_shlibpath_var=no
7592 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7593 # support. Future versions do this automatically, but an explicit c++rt0.o
7594 # does not break anything, and helps significantly (at the cost of a little
7597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7598 hardcode_libdir_flag_spec='-R$libdir'
7600 hardcode_shlibpath_var=no
7603 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7607 hardcode_minus_L=yes
7608 hardcode_shlibpath_var=no
7611 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7612 freebsd* | kfreebsd*-gnu)
7613 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7614 hardcode_libdir_flag_spec='-R$libdir'
7616 hardcode_shlibpath_var=no
7620 if test "$GCC" = yes; then
7621 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'
7623 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'
7625 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7626 hardcode_libdir_separator=:
7629 # hardcode_minus_L: Not really in the search PATH,
7630 # but as the default location of the library.
7631 hardcode_minus_L=yes
7632 export_dynamic_flag_spec='${wl}-E'
7636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7648 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7655 if test "$with_gnu_ld" = no; then
7658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7659 hardcode_libdir_flag_spec_ld='+b $libdir'
7660 hardcode_libdir_separator=:
7662 hardcode_shlibpath_var=no
7665 hardcode_libdir_flag_spec='-L$libdir'
7667 hardcode_shlibpath_var=no
7669 # hardcode_minus_L: Not really in the search PATH,
7670 # but as the default location of the library.
7671 hardcode_minus_L=yes
7674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7675 hardcode_libdir_separator=:
7677 export_dynamic_flag_spec='${wl}-E'
7679 # hardcode_minus_L: Not really in the search PATH,
7680 # but as the default location of the library.
7681 hardcode_minus_L=yes
7687 irix5* | irix6* | nonstopux*)
7688 if test "$GCC" = yes; then
7689 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'
7691 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'
7692 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7695 hardcode_libdir_separator=:
7696 link_all_deplibs=yes
7700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7703 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7705 hardcode_libdir_flag_spec='-R$libdir'
7707 hardcode_shlibpath_var=no
7711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7714 hardcode_libdir_separator=:
7715 hardcode_shlibpath_var=no
7720 hardcode_shlibpath_var=no
7721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7724 export_dynamic_flag_spec='${wl}-E'
7727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7729 hardcode_libdir_flag_spec='-R$libdir'
7732 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7740 hardcode_libdir_flag_spec='-L$libdir'
7741 hardcode_minus_L=yes
7742 allow_undefined_flag=unsupported
7743 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'
7744 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7748 if test "$GCC" = yes; then
7749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7750 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'
7752 allow_undefined_flag=' -expect_unresolved \*'
7753 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'
7755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7756 hardcode_libdir_separator=:
7759 osf4* | osf5*) # as osf3* with the addition of -msym flag
7760 if test "$GCC" = yes; then
7761 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7762 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'
7763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7765 allow_undefined_flag=' -expect_unresolved \*'
7766 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'
7767 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7768 $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'
7770 # Both c and cxx compiler support -rpath directly
7771 hardcode_libdir_flag_spec='-rpath $libdir'
7773 hardcode_libdir_separator=:
7777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778 hardcode_shlibpath_var=no
7779 export_dynamic_flag_spec='${wl}-Bexport'
7780 runpath_var=LD_RUN_PATH
7781 hardcode_runpath_var=yes
7785 no_undefined_flag=' -z text'
7786 if test "$GCC" = yes; then
7787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7789 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7791 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7792 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7795 hardcode_libdir_flag_spec='-R$libdir'
7796 hardcode_shlibpath_var=no
7798 solaris2.[0-5] | solaris2.[0-5].*) ;;
7799 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7800 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7802 link_all_deplibs=yes
7806 if test "x$host_vendor" = xsequent; then
7807 # Use $CC to link under sequent, because it throws in some extra .o
7808 # files that make .init and .fini sections work.
7809 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7811 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7813 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_minus_L=yes
7816 hardcode_shlibpath_var=no
7820 case $host_vendor in
7822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823 hardcode_direct=yes # is this really true???
7826 ## LD is ld it makes a PLAMLIB
7827 ## CC just makes a GrossModule.
7828 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7829 reload_cmds='$CC -r -o $output$reload_objs'
7833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7837 runpath_var='LD_RUN_PATH'
7838 hardcode_shlibpath_var=no
7842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843 hardcode_shlibpath_var=no
7844 export_dynamic_flag_spec='-Bexport'
7848 if test -d /usr/nec; then
7849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7850 hardcode_shlibpath_var=no
7851 runpath_var=LD_RUN_PATH
7852 hardcode_runpath_var=yes
7858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7861 hardcode_shlibpath_var=no
7862 hardcode_runpath_var=yes
7863 runpath_var=LD_RUN_PATH
7866 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7867 no_undefined_flag='${wl}-z ${wl}text'
7868 if test "$GCC" = yes; then
7869 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7871 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 runpath_var='LD_RUN_PATH'
7874 hardcode_shlibpath_var=no
7878 no_undefined_flag=' -z text'
7879 # $CC -shared without GNU ld will not create a library from C++
7880 # object files and a static libstdc++, better avoid it by now
7881 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7884 hardcode_libdir_flag_spec=
7885 hardcode_shlibpath_var=no
7886 runpath_var='LD_RUN_PATH'
7890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_shlibpath_var=no
7901 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7902 echo "${ECHO_T}$ld_shlibs" >&6; }
7903 test "$ld_shlibs" = no && can_build_shared=no
7905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7906 if test "$GCC" = yes; then
7907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7911 # Do we need to explicitly link libc?
7913 case "x$archive_cmds_need_lc" in
7915 # Assume -lc should be added
7916 archive_cmds_need_lc=yes
7918 if test "$enable_shared" = yes && test "$GCC" = yes; then
7919 case $archive_cmds in
7921 # FIXME: we may have to deal with multi-command sequences.
7924 # Test whether the compiler implicitly links with -lc since on some
7925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7926 # to ld, don't add -lc before -lgcc.
7927 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933 (eval $ac_compile) 2>&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } 2>conftest.err; then
7939 libobjs=conftest.$ac_objext
7941 wl=$lt_prog_compiler_wl
7947 lt_save_allow_undefined_flag=$allow_undefined_flag
7948 allow_undefined_flag=
7949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }
7955 archive_cmds_need_lc=no
7957 archive_cmds_need_lc=yes
7959 allow_undefined_flag=$lt_save_allow_undefined_flag
7961 cat conftest.err 1>&5
7964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7975 libname_spec='lib$name'
7983 shlibpath_overrides_runpath=unknown
7985 dynamic_linker="$host_os ld.so"
7986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7987 if test "$GCC" = yes; then
7988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7990 # if the path contains ";" then we assume it to be the separator
7991 # otherwise default to the standard path separator (i.e. ":") - it is
7992 # assumed that no part of a normal pathname contains ";" but that should
7993 # okay in the real world where ";" in dirpaths is itself problematic.
7994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8001 need_lib_prefix=unknown
8002 hardcode_into_libs=no
8004 # when you set need_version to no, make sure it does not cause -set_version
8005 # flags to be left without arguments
8006 need_version=unknown
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8012 shlibpath_var=LIBPATH
8014 # AIX 3 has no versioning support, so we append a major version to the name.
8015 soname_spec='${libname}${release}${shared_ext}$major'
8022 hardcode_into_libs=yes
8023 if test "$host_cpu" = ia64; then
8024 # AIX 5 supports IA64
8025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8026 shlibpath_var=LD_LIBRARY_PATH
8028 # With GCC up to 2.95.x, collect2 would create an import file
8029 # for dependence libraries. The import file would start with
8030 # the line `#! .'. This would cause the generated library to
8031 # depend on `.', always an invalid library. This was fixed in
8032 # development snapshots of GCC prior to 3.0.
8034 aix4 | aix4.[01] | aix4.[01].*)
8035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8045 # soname into executable. Probably we can add versioning support to
8046 # collect2, so additional links can be useful in future.
8047 if test "$aix_use_runtimelinking" = yes; then
8048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8049 # instead of lib<name>.a to let people know that these are not
8050 # typical AIX shared libraries.
8051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053 # We preserve .a as extension for shared libraries through AIX4.2
8054 # and later when we are not doing run time linking.
8055 library_names_spec='${libname}${release}.a $libname.a'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8058 shlibpath_var=LIBPATH
8063 library_names_spec='$libname.ixlibrary $libname.a'
8064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8065 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'
8069 library_names_spec='${libname}${shared_ext}'
8070 dynamic_linker="$host_os ld.so"
8071 shlibpath_var=LIBRARY_PATH
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078 soname_spec='${libname}${release}${shared_ext}$major'
8079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8083 # the default ld.so.conf also contains /usr/contrib/lib and
8084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8085 # libtool to hard-code these into programs
8088 cygwin* | mingw* | pw32*)
8089 version_type=windows
8094 case $GCC,$host_os in
8095 yes,cygwin* | yes,mingw* | yes,pw32*)
8096 library_names_spec='$libname.dll.a'
8097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8098 postinstall_cmds='base_file=`basename \${file}`~
8099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8100 dldir=$destdir/`dirname \$dlpath`~
8101 test -d \$dldir || mkdir -p \$dldir~
8102 $install_prog $dir/$dlname \$dldir/$dlname'
8103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8104 dlpath=$dir/\$dldll~
8106 shlibpath_overrides_runpath=yes
8110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8115 # MinGW DLLs use traditional 'lib' prefix
8116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8119 # It is most probably a Windows format PATH printed by
8120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8121 # path with ; separators, and with drive letters. We can handle the
8122 # drive letters (cygwin fileutils understands them), so leave them,
8123 # especially as we might pass files found there to a mingw objdump,
8124 # which wouldn't understand a cygwinified path. Ahh.
8125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8131 # pw32 DLLs use 'pw' prefix rather than 'lib'
8132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8141 dynamic_linker='Win32 ld.exe'
8142 # FIXME: first we should search . and the directory the executable is in
8146 darwin* | rhapsody*)
8147 dynamic_linker="$host_os dyld"
8151 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8152 soname_spec='${libname}${release}${major}$shared_ext'
8153 shlibpath_overrides_runpath=yes
8154 shlibpath_var=DYLD_LIBRARY_PATH
8155 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8156 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8157 if test "$GCC" = yes; then
8158 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"`
8160 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8171 shlibpath_var=LD_LIBRARY_PATH
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 shlibpath_var=LD_LIBRARY_PATH
8185 shlibpath_overrides_runpath=no
8186 hardcode_into_libs=yes
8187 dynamic_linker='GNU ld.so'
8191 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8192 version_type=freebsd-$objformat
8193 case $version_type in
8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8204 shlibpath_var=LD_LIBRARY_PATH
8207 shlibpath_overrides_runpath=yes
8209 freebsd3.01* | freebsdelf3.01*)
8210 shlibpath_overrides_runpath=yes
8211 hardcode_into_libs=yes
8214 shlibpath_overrides_runpath=no
8215 hardcode_into_libs=yes
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 shlibpath_var=LD_LIBRARY_PATH
8227 hardcode_into_libs=yes
8230 hpux9* | hpux10* | hpux11*)
8231 # Give a soname corresponding to the major version so that dld.sl refuses to
8232 # link against other versions.
8239 hardcode_into_libs=yes
8240 dynamic_linker="$host_os dld.so"
8241 shlibpath_var=LD_LIBRARY_PATH
8242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244 soname_spec='${libname}${release}${shared_ext}$major'
8245 if test "X$HPUX_IA64_MODE" = X32; then
8246 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8248 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8254 hardcode_into_libs=yes
8255 dynamic_linker="$host_os dld.sl"
8256 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259 soname_spec='${libname}${release}${shared_ext}$major'
8260 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8265 dynamic_linker="$host_os dld.sl"
8266 shlibpath_var=SHLIB_PATH
8267 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269 soname_spec='${libname}${release}${shared_ext}$major'
8272 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8273 postinstall_cmds='chmod 555 $lib'
8276 irix5* | irix6* | nonstopux*)
8278 nonstopux*) version_type=nonstopux ;;
8280 if test "$lt_cv_prog_gnu_ld" = yes; then
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8291 irix5* | nonstopux*)
8295 case $LD in # libtool.m4 will add one of these switches to LD
8296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8297 libsuff= shlibsuff= libmagic=32-bit;;
8298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8299 libsuff=32 shlibsuff=N32 libmagic=N32;;
8300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8302 *) libsuff= shlibsuff= libmagic=never-match;;
8306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8307 shlibpath_overrides_runpath=no
8308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8310 hardcode_into_libs=yes
8313 # No shared lib support for Linux oldld, aout, or coff.
8314 linux*oldld* | linux*aout* | linux*coff*)
8318 # This must be Linux ELF.
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8326 shlibpath_var=LD_LIBRARY_PATH
8327 shlibpath_overrides_runpath=no
8328 # This implies no fast_install, which is unacceptable.
8329 # Some rework will be needed to allow for fast_install
8330 # before this can be enabled.
8331 hardcode_into_libs=yes
8333 # find out which ABI we are using
8336 x86_64*|s390x*|powerpc64*)
8337 echo '#line 8337 "configure"' > conftest.$ac_ext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8339 (eval $ac_compile) 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; then
8343 case `/usr/bin/file conftest.$ac_objext` in
8346 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8354 # Append ld.so.conf contents to the search path
8355 if test -f /etc/ld.so.conf; then
8356 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8357 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8360 # We used to test for /lib/ld.so.1 and disable shared libraries on
8361 # powerpc, because MkLinux only supported shared libraries with the
8362 # GNU dynamic linker. Since this was broken with cross compilers,
8363 # most powerpc-linux boxes support dynamic linking these days and
8364 # people can always --disable-shared, the test was removed, and we
8365 # assume the GNU/Linux dynamic linker is in use.
8366 dynamic_linker='GNU/Linux ld.so'
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath=no
8377 hardcode_into_libs=yes
8378 dynamic_linker='GNU ld.so'
8385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8388 dynamic_linker='NetBSD (a.out) ld.so'
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 dynamic_linker='NetBSD ld.elf_so'
8394 shlibpath_var=LD_LIBRARY_PATH
8395 shlibpath_overrides_runpath=yes
8396 hardcode_into_libs=yes
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 shlibpath_var=LD_LIBRARY_PATH
8403 shlibpath_overrides_runpath=yes
8410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8411 soname_spec='${libname}${release}${shared_ext}$major'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=yes
8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8422 shlibpath_var=LD_LIBRARY_PATH
8423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8425 openbsd2.[89] | openbsd2.[89].*)
8426 shlibpath_overrides_runpath=no
8429 shlibpath_overrides_runpath=yes
8433 shlibpath_overrides_runpath=yes
8438 libname_spec='$name'
8441 library_names_spec='$libname${shared_ext} $libname.a'
8442 dynamic_linker='OS/2 ld.exe'
8443 shlibpath_var=LIBPATH
8446 osf3* | osf4* | osf5*)
8450 soname_spec='${libname}${release}${shared_ext}$major'
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8459 soname_spec='${libname}${release}${shared_ext}$major'
8460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461 shlibpath_var=LD_LIBRARY_PATH
8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469 soname_spec='${libname}${release}${shared_ext}$major'
8470 shlibpath_var=LD_LIBRARY_PATH
8471 shlibpath_overrides_runpath=yes
8472 hardcode_into_libs=yes
8473 # ldd complains unless libraries are executable
8474 postinstall_cmds='chmod +x $lib'
8479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 shlibpath_overrides_runpath=yes
8483 if test "$with_gnu_ld" = yes; then
8489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492 soname_spec='${libname}${release}${shared_ext}$major'
8493 shlibpath_var=LD_LIBRARY_PATH
8494 case $host_vendor in
8496 shlibpath_overrides_runpath=no
8498 export_dynamic_flag_spec='${wl}-Blargedynsym'
8499 runpath_var=LD_RUN_PATH
8507 shlibpath_overrides_runpath=no
8508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8514 if test -d /usr/nec ;then
8516 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8517 soname_spec='$libname${shared_ext}.$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525 soname_spec='${libname}${release}${shared_ext}$major'
8526 shlibpath_var=LD_LIBRARY_PATH
8533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8534 echo "${ECHO_T}$dynamic_linker" >&6; }
8535 test "$dynamic_linker" = no && can_build_shared=no
8537 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8538 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8540 if test -n "$hardcode_libdir_flag_spec" || \
8541 test -n "$runpath_var " || \
8542 test "X$hardcode_automatic"="Xyes" ; then
8544 # We can hardcode non-existant directories.
8545 if test "$hardcode_direct" != no &&
8546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8547 # have to relink, otherwise we might link with an installed library
8548 # when we should be linking with a yet-to-be-installed one
8549 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8550 test "$hardcode_minus_L" != no; then
8551 # Linking always hardcodes the temporary library directory.
8552 hardcode_action=relink
8554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8555 hardcode_action=immediate
8558 # We cannot hardcode anything, or else we can only hardcode existing
8560 hardcode_action=unsupported
8562 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8563 echo "${ECHO_T}$hardcode_action" >&6; }
8565 if test "$hardcode_action" = relink; then
8566 # Fast installation is not supported
8567 enable_fast_install=no
8568 elif test "$shlibpath_overrides_runpath" = yes ||
8569 test "$enable_shared" = no; then
8570 # Fast installation is not necessary
8571 enable_fast_install=needless
8576 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8577 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8578 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8581 { echo "$as_me:$LINENO: result: yes" >&5
8582 echo "${ECHO_T}yes" >&6; }
8584 # FIXME - insert some real tests, host_os isn't really good enough
8587 if test -n "$STRIP" ; then
8588 striplib="$STRIP -x"
8589 { echo "$as_me:$LINENO: result: yes" >&5
8590 echo "${ECHO_T}yes" >&6; }
8592 { echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6; }
8597 { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8603 if test "x$enable_dlopen" != xyes; then
8604 enable_dlopen=unknown
8605 enable_dlopen_self=unknown
8606 enable_dlopen_self_static=unknown
8613 lt_cv_dlopen="load_add_on"
8615 lt_cv_dlopen_self=yes
8619 lt_cv_dlopen="LoadLibrary"
8624 lt_cv_dlopen="dlopen"
8629 # if libdl is installed we need to link against it
8630 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8631 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8632 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 ac_check_lib_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (ac_try="$ac_link"
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666 (eval "$ac_link") 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } && {
8673 test -z "$ac_c_werror_flag" ||
8674 test ! -s conftest.err
8675 } && test -s conftest$ac_exeext &&
8676 $as_test_x conftest$ac_exeext; then
8677 ac_cv_lib_dl_dlopen=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_cv_lib_dl_dlopen=no
8685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8686 conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8689 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8691 if test $ac_cv_lib_dl_dlopen = yes; then
8692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8697 lt_cv_dlopen_self=yes
8704 { echo "$as_me:$LINENO: checking for shl_load" >&5
8705 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8706 if test "${ac_cv_func_shl_load+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8717 #define shl_load innocuous_shl_load
8719 /* System header to define __stub macros and hopefully few prototypes,
8720 which can conflict with char shl_load (); below.
8721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722 <limits.h> exists even on freestanding compilers. */
8725 # include <limits.h>
8727 # include <assert.h>
8732 /* Override any GCC internal prototype to avoid an error.
8733 Use char because int might match the return type of a GCC
8734 builtin and then its argument prototype would still apply. */
8739 /* The GNU C library defines this for functions which it implements
8740 to always fail with ENOSYS. Some functions are actually named
8741 something starting with __ and the normal name is an alias. */
8742 #if defined __stub_shl_load || defined __stub___shl_load
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (ac_try="$ac_link"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_link") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest$ac_exeext &&
8771 $as_test_x conftest$ac_exeext; then
8772 ac_cv_func_shl_load=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_func_shl_load=no
8780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 conftest$ac_exeext conftest.$ac_ext
8783 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8784 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8785 if test $ac_cv_func_shl_load = yes; then
8786 lt_cv_dlopen="shl_load"
8788 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8789 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8790 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_check_lib_save_LIBS=$LIBS
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest$ac_exeext &&
8834 $as_test_x conftest$ac_exeext; then
8835 ac_cv_lib_dld_shl_load=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_cv_lib_dld_shl_load=no
8843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8848 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8849 if test $ac_cv_lib_dld_shl_load = yes; then
8850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8852 { echo "$as_me:$LINENO: checking for dlopen" >&5
8853 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8854 if test "${ac_cv_func_dlopen+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 cat >conftest.$ac_ext <<_ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8865 #define dlopen innocuous_dlopen
8867 /* System header to define __stub macros and hopefully few prototypes,
8868 which can conflict with char dlopen (); below.
8869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870 <limits.h> exists even on freestanding compilers. */
8873 # include <limits.h>
8875 # include <assert.h>
8880 /* Override any GCC internal prototype to avoid an error.
8881 Use char because int might match the return type of a GCC
8882 builtin and then its argument prototype would still apply. */
8887 /* The GNU C library defines this for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890 #if defined __stub_dlopen || defined __stub___dlopen
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_link") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest$ac_exeext &&
8919 $as_test_x conftest$ac_exeext; then
8920 ac_cv_func_dlopen=yes
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 ac_cv_func_dlopen=no
8928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8929 conftest$ac_exeext conftest.$ac_ext
8931 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8932 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8933 if test $ac_cv_func_dlopen = yes; then
8934 lt_cv_dlopen="dlopen"
8936 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_check_lib_save_LIBS=$LIBS
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any GCC internal prototype to avoid an error.
8951 Use char because int might match the return type of a GCC
8952 builtin and then its argument prototype would still apply. */
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_link") 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest$ac_exeext &&
8982 $as_test_x conftest$ac_exeext; then
8983 ac_cv_lib_dl_dlopen=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_cv_lib_dl_dlopen=no
8991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8992 conftest$ac_exeext conftest.$ac_ext
8993 LIBS=$ac_check_lib_save_LIBS
8995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8997 if test $ac_cv_lib_dl_dlopen = yes; then
8998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9000 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9001 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 ac_check_lib_save_LIBS=$LIBS
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9014 /* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9029 rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (ac_try="$ac_link"
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_link") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest$ac_exeext &&
9046 $as_test_x conftest$ac_exeext; then
9047 ac_cv_lib_svld_dlopen=yes
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_lib_svld_dlopen=no
9055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9059 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9060 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9061 if test $ac_cv_lib_svld_dlopen = yes; then
9062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9064 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9065 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 ac_check_lib_save_LIBS=$LIBS
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9078 /* Override any GCC internal prototype to avoid an error.
9079 Use char because int might match the return type of a GCC
9080 builtin and then its argument prototype would still apply. */
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest$ac_exeext &&
9110 $as_test_x conftest$ac_exeext; then
9111 ac_cv_lib_dld_dld_link=yes
9113 echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9116 ac_cv_lib_dld_dld_link=no
9119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9120 conftest$ac_exeext conftest.$ac_ext
9121 LIBS=$ac_check_lib_save_LIBS
9123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9125 if test $ac_cv_lib_dld_dld_link = yes; then
9126 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9147 if test "x$lt_cv_dlopen" != xno; then
9153 case $lt_cv_dlopen in
9155 save_CPPFLAGS="$CPPFLAGS"
9156 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9158 save_LDFLAGS="$LDFLAGS"
9159 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9162 LIBS="$lt_cv_dlopen_libs $LIBS"
9164 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9166 if test "${lt_cv_dlopen_self+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 if test "$cross_compiling" = yes; then :
9170 lt_cv_dlopen_self=cross
9172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9173 lt_status=$lt_dlunknown
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9175 "configure"
9176 #include "confdefs.h"
9185 # define LT_DLGLOBAL RTLD_GLOBAL
9188 # define LT_DLGLOBAL DL_GLOBAL
9190 # define LT_DLGLOBAL 0
9194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9195 find out it does not work in some platform. */
9196 #ifndef LT_DLLAZY_OR_NOW
9198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9201 # define LT_DLLAZY_OR_NOW DL_LAZY
9204 # define LT_DLLAZY_OR_NOW RTLD_NOW
9207 # define LT_DLLAZY_OR_NOW DL_NOW
9209 # define LT_DLLAZY_OR_NOW 0
9217 extern "C" void exit (int);
9220 void fnord() { int i=42;}
9223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9224 int status = $lt_dlunknown;
9228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9230 /* dlclose (self); */
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9241 (./conftest; exit; ) 2>/dev/null
9244 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9245 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9246 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9249 # compilation failed
9250 lt_cv_dlopen_self=no
9257 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9258 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9260 if test "x$lt_cv_dlopen_self" = xyes; then
9261 LDFLAGS="$LDFLAGS $link_static_flag"
9262 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9263 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9264 if test "${lt_cv_dlopen_self_static+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 if test "$cross_compiling" = yes; then :
9268 lt_cv_dlopen_self_static=cross
9270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9271 lt_status=$lt_dlunknown
9272 cat > conftest.$ac_ext <<EOF
9273 #line 9273 "configure"
9274 #include "confdefs.h"
9283 # define LT_DLGLOBAL RTLD_GLOBAL
9286 # define LT_DLGLOBAL DL_GLOBAL
9288 # define LT_DLGLOBAL 0
9292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9293 find out it does not work in some platform. */
9294 #ifndef LT_DLLAZY_OR_NOW
9296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9299 # define LT_DLLAZY_OR_NOW DL_LAZY
9302 # define LT_DLLAZY_OR_NOW RTLD_NOW
9305 # define LT_DLLAZY_OR_NOW DL_NOW
9307 # define LT_DLLAZY_OR_NOW 0
9315 extern "C" void exit (int);
9318 void fnord() { int i=42;}
9321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9322 int status = $lt_dlunknown;
9326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9328 /* dlclose (self); */
9334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335 (eval $ac_link) 2>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9339 (./conftest; exit; ) 2>/dev/null
9342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9344 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9347 # compilation failed
9348 lt_cv_dlopen_self_static=no
9355 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9356 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9359 CPPFLAGS="$save_CPPFLAGS"
9360 LDFLAGS="$save_LDFLAGS"
9365 case $lt_cv_dlopen_self in
9366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9367 *) enable_dlopen_self=unknown ;;
9370 case $lt_cv_dlopen_self_static in
9371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9372 *) enable_dlopen_self_static=unknown ;;
9377 # Report which librarie types wil actually be built
9378 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9379 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9380 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9381 echo "${ECHO_T}$can_build_shared" >&6; }
9383 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9384 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9385 test "$can_build_shared" = "no" && enable_shared=no
9387 # On AIX, shared libraries and static libraries use the same namespace, and
9388 # are all built from PIC.
9391 test "$enable_shared" = yes && enable_static=no
9392 if test -n "$RANLIB"; then
9393 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9394 postinstall_cmds='$RANLIB $lib'
9399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9400 test "$enable_shared" = yes && enable_static=no
9403 darwin* | rhapsody*)
9404 if test "$GCC" = yes; then
9405 archive_cmds_need_lc=no
9407 rhapsody* | darwin1.[012])
9408 allow_undefined_flag='-undefined suppress'
9411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9412 allow_undefined_flag='-flat_namespace -undefined suppress'
9414 case ${MACOSX_DEPLOYMENT_TARGET} in
9416 allow_undefined_flag='-flat_namespace -undefined suppress'
9419 allow_undefined_flag='-undefined dynamic_lookup'
9425 output_verbose_link_cmd='echo'
9426 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9427 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9428 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9429 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}'
9430 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}'
9432 hardcode_automatic=yes
9433 hardcode_shlibpath_var=unsupported
9434 whole_archive_flag_spec='-all_load $convenience'
9435 link_all_deplibs=yes
9441 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9442 echo "${ECHO_T}$enable_shared" >&6; }
9444 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9445 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9446 # Make sure either enable_shared or enable_static is yes.
9447 test "$enable_shared" = yes || enable_static=yes
9448 { echo "$as_me:$LINENO: result: $enable_static" >&5
9449 echo "${ECHO_T}$enable_static" >&6; }
9451 # The else clause should only fire when bootstrapping the
9452 # libtool distribution, otherwise you forgot to ship ltmain.sh
9453 # with your package, and you will get complaints that there are
9454 # no rules to generate ltmain.sh.
9455 if test -f "$ltmain"; then
9456 # See if we are running on zsh, and set the options which allow our commands through
9457 # without removal of \ escapes.
9458 if test -n "${ZSH_VERSION+set}" ; then
9459 setopt NO_GLOB_SUBST
9461 # Now quote all the things that may contain metacharacters while being
9462 # careful not to overquote the AC_SUBSTed values. We take copies of the
9463 # variables and quote the copies for generation of the libtool script.
9464 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9466 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9467 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9468 deplibs_check_method reload_flag reload_cmds need_locks \
9469 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9470 lt_cv_sys_global_symbol_to_c_name_address \
9471 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9472 old_postinstall_cmds old_postuninstall_cmds \
9476 lt_prog_compiler_wl \
9477 lt_prog_compiler_pic \
9478 lt_prog_compiler_static \
9479 lt_prog_compiler_no_builtin_flag \
9480 export_dynamic_flag_spec \
9481 thread_safe_flag_spec \
9482 whole_archive_flag_spec \
9483 enable_shared_with_static_runtimes \
9485 old_archive_from_new_cmds \
9490 compiler_lib_search_path \
9492 archive_expsym_cmds \
9494 postuninstall_cmds \
9495 old_archive_from_expsyms_cmds \
9496 allow_undefined_flag \
9498 export_symbols_cmds \
9499 hardcode_libdir_flag_spec \
9500 hardcode_libdir_flag_spec_ld \
9501 hardcode_libdir_separator \
9502 hardcode_automatic \
9504 module_expsym_cmds \
9505 lt_cv_prog_compiler_c_o \
9510 old_archive_cmds | \
9511 old_archive_from_new_cmds | \
9513 archive_expsym_cmds | \
9515 module_expsym_cmds | \
9516 old_archive_from_expsyms_cmds | \
9517 export_symbols_cmds | \
9518 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9519 postinstall_cmds | postuninstall_cmds | \
9520 old_postinstall_cmds | old_postuninstall_cmds | \
9521 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9522 # Double-quote double-evaled strings.
9523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9532 *'\$0 --fallback-echo"')
9533 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9538 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9540 { echo "$as_me:$LINENO: creating $ofile" >&5
9541 echo "$as_me: creating $ofile" >&6;}
9543 cat <<__EOF__ >> "$cfgfile"
9546 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9547 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9548 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9550 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9551 # Free Software Foundation, Inc.
9553 # This file is part of GNU Libtool:
9554 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9556 # This program is free software; you can redistribute it and/or modify
9557 # it under the terms of the GNU General Public License as published by
9558 # the Free Software Foundation; either version 2 of the License, or
9559 # (at your option) any later version.
9561 # This program is distributed in the hope that it will be useful, but
9562 # WITHOUT ANY WARRANTY; without even the implied warranty of
9563 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9564 # General Public License for more details.
9566 # You should have received a copy of the GNU General Public License
9567 # along with this program; if not, write to the Free Software
9568 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9570 # As a special exception to the GNU General Public License, if you
9571 # distribute this file as part of a program that contains a
9572 # configuration script generated by Autoconf, you may include it under
9573 # the same distribution terms that you use for the rest of that program.
9575 # A sed program that does not truncate output.
9578 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9579 Xsed="$SED -e s/^X//"
9581 # The HP-UX ksh and POSIX shell print the target directory to stdout
9583 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9585 # The names of the tagged configurations supported by this script.
9588 # ### BEGIN LIBTOOL CONFIG
9590 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9592 # Shell to use when invoking shell scripts.
9595 # Whether or not to build shared libraries.
9596 build_libtool_libs=$enable_shared
9598 # Whether or not to build static libraries.
9599 build_old_libs=$enable_static
9601 # Whether or not to add -lc for building shared libraries.
9602 build_libtool_need_lc=$archive_cmds_need_lc
9604 # Whether or not to disallow shared libs when runtime libs are static
9605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9607 # Whether or not to optimize for fast installation.
9608 fast_install=$enable_fast_install
9611 host_alias=$host_alias
9614 # An echo program that does not interpret backslashes.
9619 AR_FLAGS=$lt_AR_FLAGS
9624 # A language-specific compiler.
9627 # Is the compiler the GNU C compiler?
9633 # The linker used to build libraries.
9636 # Whether we need hard or soft links.
9639 # A BSD-compatible nm program.
9642 # A symbol stripping program
9645 # Used to examine libraries when file_magic_cmd begins "file"
9646 MAGIC_CMD=$MAGIC_CMD
9648 # Used on cygwin: DLL creation program.
9651 # Used on cygwin: object dumper.
9654 # Used on cygwin: assembler.
9657 # The name of the directory that contains temporary libtool files.
9660 # How to create reloadable object files.
9661 reload_flag=$lt_reload_flag
9662 reload_cmds=$lt_reload_cmds
9664 # How to pass a linker flag through the compiler.
9665 wl=$lt_lt_prog_compiler_wl
9667 # Object file suffix (normally "o").
9670 # Old archive suffix (normally "a").
9673 # Shared library suffix (normally ".so").
9674 shrext_cmds='$shrext_cmds'
9676 # Executable file suffix (normally "").
9679 # Additional compiler flags for building library objects.
9680 pic_flag=$lt_lt_prog_compiler_pic
9683 # What is the maximum length of a command?
9684 max_cmd_len=$lt_cv_sys_max_cmd_len
9686 # Does compiler simultaneously support -c and -o options?
9687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9689 # Must we lock files when doing compilation ?
9690 need_locks=$lt_need_locks
9692 # Do we need the lib prefix for modules?
9693 need_lib_prefix=$need_lib_prefix
9695 # Do we need a version for libraries?
9696 need_version=$need_version
9698 # Whether dlopen is supported.
9699 dlopen_support=$enable_dlopen
9701 # Whether dlopen of programs is supported.
9702 dlopen_self=$enable_dlopen_self
9704 # Whether dlopen of statically linked programs is supported.
9705 dlopen_self_static=$enable_dlopen_self_static
9707 # Compiler flag to prevent dynamic linking.
9708 link_static_flag=$lt_lt_prog_compiler_static
9710 # Compiler flag to turn off builtin functions.
9711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9713 # Compiler flag to allow reflexive dlopens.
9714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9716 # Compiler flag to generate shared objects directly from archives.
9717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9719 # Compiler flag to generate thread-safe objects.
9720 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9722 # Library versioning type.
9723 version_type=$version_type
9725 # Format of library name prefix.
9726 libname_spec=$lt_libname_spec
9728 # List of archive names. First name is the real one, the rest are links.
9729 # The last name is the one that the linker finds with -lNAME.
9730 library_names_spec=$lt_library_names_spec
9732 # The coded name of the library, if different from the real name.
9733 soname_spec=$lt_soname_spec
9735 # Commands used to build and install an old-style archive.
9737 old_archive_cmds=$lt_old_archive_cmds
9738 old_postinstall_cmds=$lt_old_postinstall_cmds
9739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9741 # Create an old-style archive from a shared archive.
9742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9744 # Create a temporary old-style archive to link instead of a shared archive.
9745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9747 # Commands used to build and install a shared archive.
9748 archive_cmds=$lt_archive_cmds
9749 archive_expsym_cmds=$lt_archive_expsym_cmds
9750 postinstall_cmds=$lt_postinstall_cmds
9751 postuninstall_cmds=$lt_postuninstall_cmds
9753 # Commands used to build a loadable module (assumed same as above if empty)
9754 module_cmds=$lt_module_cmds
9755 module_expsym_cmds=$lt_module_expsym_cmds
9757 # Commands to strip libraries.
9758 old_striplib=$lt_old_striplib
9759 striplib=$lt_striplib
9761 # Dependencies to place before the objects being linked to create a
9763 predep_objects=$lt_predep_objects
9765 # Dependencies to place after the objects being linked to create a
9767 postdep_objects=$lt_postdep_objects
9769 # Dependencies to place before the objects being linked to create a
9773 # Dependencies to place after the objects being linked to create a
9775 postdeps=$lt_postdeps
9777 # The library search path used internally by the compiler when linking
9779 compiler_lib_search_path=$lt_compiler_lib_search_path
9781 # Method to check whether dependent libraries are shared objects.
9782 deplibs_check_method=$lt_deplibs_check_method
9784 # Command to use when deplibs_check_method == file_magic.
9785 file_magic_cmd=$lt_file_magic_cmd
9787 # Flag that allows shared libraries with undefined symbols to be built.
9788 allow_undefined_flag=$lt_allow_undefined_flag
9790 # Flag that forces no undefined symbols.
9791 no_undefined_flag=$lt_no_undefined_flag
9793 # Commands used to finish a libtool library installation in a directory.
9794 finish_cmds=$lt_finish_cmds
9796 # Same as above, but a single script fragment to be evaled but not shown.
9797 finish_eval=$lt_finish_eval
9799 # Take the output of nm and produce a listing of raw symbols and C names.
9800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9802 # Transform the output of nm in a proper C declaration
9803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9805 # Transform the output of nm in a C name address pair
9806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9808 # This is the shared library runtime path variable.
9809 runpath_var=$runpath_var
9811 # This is the shared library path variable.
9812 shlibpath_var=$shlibpath_var
9814 # Is shlibpath searched before the hard-coded library search path?
9815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9817 # How to hardcode a shared library path into an executable.
9818 hardcode_action=$hardcode_action
9820 # Whether we should hardcode library paths into libraries.
9821 hardcode_into_libs=$hardcode_into_libs
9823 # Flag to hardcode \$libdir into a binary during linking.
9824 # This must work even if \$libdir does not exist.
9825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9827 # If ld is used when linking, flag to hardcode \$libdir into
9828 # a binary during linking. This must work even if \$libdir does
9830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9832 # Whether we need a single -rpath flag with a separated argument.
9833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9837 hardcode_direct=$hardcode_direct
9839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9841 hardcode_minus_L=$hardcode_minus_L
9843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9844 # the resulting binary.
9845 hardcode_shlibpath_var=$hardcode_shlibpath_var
9847 # Set to yes if building a shared library automatically hardcodes DIR into the library
9848 # and all subsequent libraries and executables linked against it.
9849 hardcode_automatic=$hardcode_automatic
9851 # Variables whose values should be saved in libtool wrapper scripts and
9852 # restored at relink time.
9853 variables_saved_for_relink="$variables_saved_for_relink"
9855 # Whether libtool must link a program against all its dependency libraries.
9856 link_all_deplibs=$link_all_deplibs
9858 # Compile-time system search path for libraries
9859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9861 # Run-time system search path for libraries
9862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9864 # Fix the shell variable \$srcfile for the compiler.
9865 fix_srcfile_path="$fix_srcfile_path"
9867 # Set to yes if exported symbols are required.
9868 always_export_symbols=$always_export_symbols
9870 # The commands to list exported symbols.
9871 export_symbols_cmds=$lt_export_symbols_cmds
9873 # The commands to extract the exported symbol list from a shared archive.
9874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9876 # Symbols that should not be listed in the preloaded symbols.
9877 exclude_expsyms=$lt_exclude_expsyms
9879 # Symbols that must always be exported.
9880 include_expsyms=$lt_include_expsyms
9882 # ### END LIBTOOL CONFIG
9889 cat <<\EOF >> "$cfgfile"
9891 # AIX sometimes has problems with the GCC collect2 program. For some
9892 # reason, if we set the COLLECT_NAMES environment variable, the problems
9893 # vanish in a puff of smoke.
9894 if test "X${COLLECT_NAMES+set}" != Xset; then
9896 export COLLECT_NAMES
9902 # We use sed instead of cat because bash on DJGPP gets confused if
9903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9904 # text mode, it properly converts lines to CR/LF. This bash problem
9905 # is reportedly fixed, but why not run on old versions too?
9906 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9908 mv -f "$cfgfile" "$ofile" || \
9909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9913 # If there is no Makefile yet, we rely on a make rule to execute
9914 # `config.status --recheck' to rerun these tests and create the
9915 # libtool script then.
9916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9917 if test -f "$ltmain_in"; then
9918 test -f Makefile && make "$ltmain"
9924 ac_cpp='$CPP $CPPFLAGS'
9925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9932 # Check whether --with-tags was given.
9933 if test "${with_tags+set}" = set; then
9934 withval=$with_tags; tagnames="$withval"
9938 if test -f "$ltmain" && test -n "$tagnames"; then
9939 if test ! -f "${ofile}"; then
9940 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9944 if test -z "$LTCC"; then
9945 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9946 if test -z "$LTCC"; then
9947 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9955 # Extract list of available tagged configurations in $ofile.
9956 # Note that this assumes the entire list is on one line.
9957 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9960 for tagname in $tagnames; do
9962 # Check whether tagname contains only valid characters
9963 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9965 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9966 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9967 { (exit 1); exit 1; }; }
9971 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9973 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9974 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9975 { (exit 1); exit 1; }; }
9978 # Update the list of available tags.
9979 if test -n "$tagname"; then
9980 echo appending configuration tag \"$tagname\" to $ofile
9984 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9986 ac_cpp='$CXXCPP $CPPFLAGS'
9987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9994 archive_cmds_need_lc_CXX=no
9995 allow_undefined_flag_CXX=
9996 always_export_symbols_CXX=no
9997 archive_expsym_cmds_CXX=
9998 export_dynamic_flag_spec_CXX=
9999 hardcode_direct_CXX=no
10000 hardcode_libdir_flag_spec_CXX=
10001 hardcode_libdir_flag_spec_ld_CXX=
10002 hardcode_libdir_separator_CXX=
10003 hardcode_minus_L_CXX=no
10004 hardcode_automatic_CXX=no
10006 module_expsym_cmds_CXX=
10007 link_all_deplibs_CXX=unknown
10008 old_archive_cmds_CXX=$old_archive_cmds
10009 no_undefined_flag_CXX=
10010 whole_archive_flag_spec_CXX=
10011 enable_shared_with_static_runtimes_CXX=no
10013 # Dependencies to place before and after the object being linked:
10014 predep_objects_CXX=
10015 postdep_objects_CXX=
10018 compiler_lib_search_path_CXX=
10020 # Source file extension for C++ test sources.
10023 # Object file extension for compiled C++ test sources.
10027 # Code to be used in simple compile tests
10028 lt_simple_compile_test_code="int some_variable = 0;\n"
10030 # Code to be used in simple link tests
10031 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10035 # If no C compiler was specified, use CC.
10038 # Allow CC to be a program name with arguments.
10042 # Allow CC to be a program name with arguments.
10047 lt_save_with_gnu_ld=$with_gnu_ld
10048 lt_save_path_LD=$lt_cv_path_LD
10049 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10050 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10052 unset lt_cv_prog_gnu_ld
10054 if test -n "${lt_cv_path_LDCXX+set}"; then
10055 lt_cv_path_LD=$lt_cv_path_LDCXX
10057 unset lt_cv_path_LD
10059 test -z "${LDCXX+set}" || LD=$LDCXX
10063 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10065 # We don't want -fno-exception wen compiling C++ code, so set the
10066 # no_builtin_flag separately
10067 if test "$GXX" = yes; then
10068 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10070 lt_prog_compiler_no_builtin_flag_CXX=
10073 if test "$GXX" = yes; then
10074 # Set up default GNU C++ configuration
10077 # Check whether --with-gnu-ld was given.
10078 if test "${with_gnu_ld+set}" = set; then
10079 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10085 if test "$GCC" = yes; then
10086 # Check if gcc -print-prog-name=ld gives a path.
10087 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10091 # gcc leaves a trailing carriage return which upsets mingw
10092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10097 # Accept absolute paths.
10099 re_direlt='/[^/][^/]*/\.\./'
10100 # Canonicalize the pathname of ld
10101 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10102 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10103 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10105 test -z "$LD" && LD="$ac_prog"
10108 # If it fails, then pretend we aren't using GCC.
10112 # If it is relative, then search for the first ld in PATH.
10113 with_gnu_ld=unknown
10116 elif test "$with_gnu_ld" = yes; then
10117 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10120 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10123 if test "${lt_cv_path_LD+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 if test -z "$LD"; then
10127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10128 for ac_dir in $PATH; do
10130 test -z "$ac_dir" && ac_dir=.
10131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10132 lt_cv_path_LD="$ac_dir/$ac_prog"
10133 # Check to see if the program is GNU ld. I'd rather use --version,
10134 # but apparently some GNU ld's only accept -v.
10135 # Break only if it was the GNU/non-GNU ld that we prefer.
10136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10137 *GNU* | *'with BFD'*)
10138 test "$with_gnu_ld" != no && break
10141 test "$with_gnu_ld" != yes && break
10148 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10152 LD="$lt_cv_path_LD"
10153 if test -n "$LD"; then
10154 { echo "$as_me:$LINENO: result: $LD" >&5
10155 echo "${ECHO_T}$LD" >&6; }
10157 { echo "$as_me:$LINENO: result: no" >&5
10158 echo "${ECHO_T}no" >&6; }
10160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10162 { (exit 1); exit 1; }; }
10163 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10169 case `$LD -v 2>&1 </dev/null` in
10170 *GNU* | *'with BFD'*)
10171 lt_cv_prog_gnu_ld=yes
10174 lt_cv_prog_gnu_ld=no
10178 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10180 with_gnu_ld=$lt_cv_prog_gnu_ld
10184 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10185 # archiving commands below assume that GNU ld is being used.
10186 if test "$with_gnu_ld" = yes; then
10187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188 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'
10190 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10193 # If archive_cmds runs LD, not CC, wlarc should be empty
10194 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10195 # investigate it a little bit more. (MM)
10198 # ancient GNU ld didn't support --whole-archive et. al.
10199 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10200 grep 'no-whole-archive' > /dev/null; then
10201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10203 whole_archive_flag_spec_CXX=
10209 # A generic and very simple default shared library creation
10210 # command for GNU C++ for the case where it uses the native
10211 # linker, instead of GNU ld. If possible, this setting should
10212 # overridden to take advantage of the native linker features on
10213 # the platform it is being used on.
10214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10217 # Commands to make compiler produce verbose output that lists
10218 # what "hidden" libraries, object files and flags are used when
10219 # linking a shared library.
10220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10228 # PORTME: fill in a description of your system's C++ link characteristics
10229 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10234 # FIXME: insert proper C++ library support
10238 if test "$host_cpu" = ia64; then
10239 # On IA64, the linker does run time linking by default, so we don't
10240 # have to do anything special.
10241 aix_use_runtimelinking=no
10242 exp_sym_flag='-Bexport'
10245 aix_use_runtimelinking=no
10247 # Test if we are trying to use run time linking or normal
10248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10249 # need to do runtime linking.
10250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10251 for ld_flag in $LDFLAGS; do
10254 aix_use_runtimelinking=yes
10261 exp_sym_flag='-bexport'
10262 no_entry_flag='-bnoentry'
10265 # When large executables or shared objects are built, AIX ld can
10266 # have problems creating the table of contents. If linking a library
10267 # or program results in "error TOC overflow" add -mminimal-toc to
10268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10271 archive_cmds_CXX=''
10272 hardcode_direct_CXX=yes
10273 hardcode_libdir_separator_CXX=':'
10274 link_all_deplibs_CXX=yes
10276 if test "$GXX" = yes; then
10277 case $host_os in aix4.012|aix4.012.*)
10278 # We only want to do this on AIX 4.2 and lower, the check
10279 # below for broken collect2 doesn't work under 4.3+
10280 collect2name=`${CC} -print-prog-name=collect2`
10281 if test -f "$collect2name" && \
10282 strings "$collect2name" | grep resolve_lib_name >/dev/null
10284 # We have reworked collect2
10285 hardcode_direct_CXX=yes
10287 # We have old collect2
10288 hardcode_direct_CXX=unsupported
10289 # It fails to find uninstalled libraries when the uninstalled
10290 # path is not listed in the libpath. Setting hardcode_minus_L
10291 # to unsupported forces relinking
10292 hardcode_minus_L_CXX=yes
10293 hardcode_libdir_flag_spec_CXX='-L$libdir'
10294 hardcode_libdir_separator_CXX=
10297 shared_flag='-shared'
10300 if test "$host_cpu" = ia64; then
10301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10302 # chokes on -Wl,-G. The following line is correct:
10305 if test "$aix_use_runtimelinking" = yes; then
10306 shared_flag='${wl}-G'
10308 shared_flag='${wl}-bM:SRE'
10313 # It seems that -bexpall does not export symbols beginning with
10314 # underscore (_), so it is better to generate a list of symbols to export.
10315 always_export_symbols_CXX=yes
10316 if test "$aix_use_runtimelinking" = yes; then
10317 # Warning - without using the other runtime loading flags (-brtl),
10318 # -berok will link without error, but may produce a broken library.
10319 allow_undefined_flag_CXX='-berok'
10320 # Determine the default libpath from the value encoded in an empty executable.
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_cxx_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest$ac_exeext &&
10353 $as_test_x conftest$ac_exeext; then
10355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10357 # Check for a 64-bit object if we didn't find anything.
10358 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; }
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368 conftest$ac_exeext conftest.$ac_ext
10369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10373 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"
10375 if test "$host_cpu" = ia64; then
10376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10377 allow_undefined_flag_CXX="-z nodefs"
10378 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"
10380 # Determine the default libpath from the value encoded in an empty executable.
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_cxx_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext &&
10413 $as_test_x conftest$ac_exeext; then
10415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10417 # Check for a 64-bit object if we didn't find anything.
10418 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; }
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428 conftest$ac_exeext conftest.$ac_ext
10429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10431 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10432 # Warning - without using the other run time loading flags,
10433 # -berok will link without error, but may produce a broken library.
10434 no_undefined_flag_CXX=' ${wl}-bernotok'
10435 allow_undefined_flag_CXX=' ${wl}-berok'
10436 # -bexpall does not export symbols beginning with underscore (_)
10437 always_export_symbols_CXX=yes
10438 # Exported symbols can be pulled into shared objects from archives
10439 whole_archive_flag_spec_CXX=' '
10440 archive_cmds_need_lc_CXX=yes
10441 # This is similar to how AIX traditionally builds it's shared libraries.
10442 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'
10447 case $cc_basename in
10449 # FIXME: insert proper C++ library support
10455 cygwin* | mingw* | pw32*)
10456 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10457 # as there is no search path for DLLs.
10458 hardcode_libdir_flag_spec_CXX='-L$libdir'
10459 allow_undefined_flag_CXX=unsupported
10460 always_export_symbols_CXX=no
10461 enable_shared_with_static_runtimes_CXX=yes
10463 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10464 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'
10465 # If the export-symbols file already is a .def file (1st line
10466 # is EXPORTS), use it as is; otherwise, prepend...
10467 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10468 cp $export_symbols $output_objdir/$soname.def;
10470 echo EXPORTS > $output_objdir/$soname.def;
10471 cat $export_symbols >> $output_objdir/$soname.def;
10473 $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'
10479 darwin* | rhapsody*)
10480 if test "$GXX" = yes; then
10481 archive_cmds_need_lc_CXX=no
10483 rhapsody* | darwin1.[012])
10484 allow_undefined_flag_CXX='-undefined suppress'
10487 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10488 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10490 case ${MACOSX_DEPLOYMENT_TARGET} in
10492 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10495 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10501 lt_int_apple_cc_single_mod=no
10502 output_verbose_link_cmd='echo'
10503 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10504 lt_int_apple_cc_single_mod=yes
10506 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10507 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10509 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'
10511 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10514 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10515 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}'
10517 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}'
10519 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}'
10520 hardcode_direct_CXX=no
10521 hardcode_automatic_CXX=yes
10522 hardcode_shlibpath_var_CXX=unsupported
10523 whole_archive_flag_spec_CXX='-all_load $convenience'
10524 link_all_deplibs_CXX=yes
10531 case $cc_basename in
10533 # FIXME: insert proper C++ library support
10537 # Green Hills C++ Compiler
10538 # FIXME: insert proper C++ library support
10542 # FIXME: insert proper C++ library support
10548 # C++ shared libraries reported to be fairly broken before switch to ELF
10552 archive_cmds_need_lc_CXX=no
10554 freebsd* | kfreebsd*-gnu)
10555 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10563 hardcode_libdir_separator_CXX=:
10564 export_dynamic_flag_spec_CXX='${wl}-E'
10565 hardcode_direct_CXX=yes
10566 hardcode_minus_L_CXX=yes # Not in the search PATH,
10567 # but as the default
10568 # location of the library.
10570 case $cc_basename in
10572 # FIXME: insert proper C++ library support
10576 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'
10577 # Commands to make compiler produce verbose output that lists
10578 # what "hidden" libraries, object files and flags are used when
10579 # linking a shared library.
10581 # There doesn't appear to be a way to prevent this compiler from
10582 # explicitly linking system object files so we need to strip them
10583 # from the output so that they don't get included in the library
10585 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'
10588 if test "$GXX" = yes; then
10589 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'
10591 # FIXME: insert proper C++ library support
10598 if test $with_gnu_ld = no; then
10599 case "$host_cpu" in
10601 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10602 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10603 hardcode_libdir_separator_CXX=:
10606 hardcode_libdir_flag_spec_CXX='-L$libdir'
10609 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10610 hardcode_libdir_separator_CXX=:
10611 export_dynamic_flag_spec_CXX='${wl}-E'
10615 case "$host_cpu" in
10617 hardcode_direct_CXX=no
10618 hardcode_shlibpath_var_CXX=no
10621 hardcode_direct_CXX=no
10622 hardcode_shlibpath_var_CXX=no
10623 hardcode_minus_L_CXX=yes # Not in the search PATH,
10624 # but as the default
10625 # location of the library.
10628 hardcode_direct_CXX=yes
10629 hardcode_minus_L_CXX=yes # Not in the search PATH,
10630 # but as the default
10631 # location of the library.
10635 case $cc_basename in
10637 # FIXME: insert proper C++ library support
10641 case "$host_cpu" in
10643 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10649 # Commands to make compiler produce verbose output that lists
10650 # what "hidden" libraries, object files and flags are used when
10651 # linking a shared library.
10653 # There doesn't appear to be a way to prevent this compiler from
10654 # explicitly linking system object files so we need to strip them
10655 # from the output so that they don't get included in the library
10657 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'
10660 if test "$GXX" = yes; then
10661 if test $with_gnu_ld = no; then
10662 case "$host_cpu" in
10664 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10667 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'
10672 # FIXME: insert proper C++ library support
10679 case $cc_basename in
10682 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'
10684 # Archives containing C++ object files must be created using
10685 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10686 # necessary to make sure instantiated templates are included
10688 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10691 if test "$GXX" = yes; then
10692 if test "$with_gnu_ld" = no; then
10693 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'
10695 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'
10698 link_all_deplibs_CXX=yes
10701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10702 hardcode_libdir_separator_CXX=:
10705 case $cc_basename in
10707 # Kuck and Associates, Inc. (KAI) C++ Compiler
10709 # KCC will only create a shared library if the output file
10710 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10711 # to its proper name (with version) after linking.
10712 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'
10713 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'
10714 # Commands to make compiler produce verbose output that lists
10715 # what "hidden" libraries, object files and flags are used when
10716 # linking a shared library.
10718 # There doesn't appear to be a way to prevent this compiler from
10719 # explicitly linking system object files so we need to strip them
10720 # from the output so that they don't get included in the library
10722 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'
10724 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10727 # Archives containing C++ object files must be created using
10728 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10729 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10734 archive_cmds_need_lc_CXX=no
10735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10736 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'
10737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10739 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10744 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'
10746 runpath_var=LD_RUN_PATH
10747 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10748 hardcode_libdir_separator_CXX=:
10750 # Commands to make compiler produce verbose output that lists
10751 # what "hidden" libraries, object files and flags are used when
10752 # linking a shared library.
10754 # There doesn't appear to be a way to prevent this compiler from
10755 # explicitly linking system object files so we need to strip them
10756 # from the output so that they don't get included in the library
10758 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'
10763 # FIXME: insert proper C++ library support
10767 # FIXME: insert proper C++ library support
10771 case $cc_basename in
10773 # FIXME: insert proper C++ library support
10777 # FIXME: insert proper C++ library support
10783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10784 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10786 hardcode_libdir_flag_spec_CXX='-R$libdir'
10787 hardcode_direct_CXX=yes
10788 hardcode_shlibpath_var_CXX=no
10790 # Workaround some broken pre-1.5 toolchains
10791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10794 case $cc_basename in
10796 # Kuck and Associates, Inc. (KAI) C++ Compiler
10798 # KCC will only create a shared library if the output file
10799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10800 # to its proper name (with version) after linking.
10801 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'
10803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10804 hardcode_libdir_separator_CXX=:
10806 # Archives containing C++ object files must be created using
10807 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10808 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10812 # Rational C++ 2.4.1
10813 # FIXME: insert proper C++ library support
10817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10818 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'
10820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10821 hardcode_libdir_separator_CXX=:
10823 # Commands to make compiler produce verbose output that lists
10824 # what "hidden" libraries, object files and flags are used when
10825 # linking a shared library.
10827 # There doesn't appear to be a way to prevent this compiler from
10828 # explicitly linking system object files so we need to strip them
10829 # from the output so that they don't get included in the library
10831 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'
10834 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10835 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10836 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'
10838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10839 hardcode_libdir_separator_CXX=:
10841 # Commands to make compiler produce verbose output that lists
10842 # what "hidden" libraries, object files and flags are used when
10843 # linking a shared library.
10844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10847 # FIXME: insert proper C++ library support
10854 case $cc_basename in
10856 # Kuck and Associates, Inc. (KAI) C++ Compiler
10858 # KCC will only create a shared library if the output file
10859 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10860 # to its proper name (with version) after linking.
10861 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'
10863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10864 hardcode_libdir_separator_CXX=:
10866 # Archives containing C++ object files must be created using
10867 # the KAI C++ compiler.
10868 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10871 # Rational C++ 2.4.1
10872 # FIXME: insert proper C++ library support
10876 allow_undefined_flag_CXX=' -expect_unresolved \*'
10877 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'
10878 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10879 echo "-hidden">> $lib.exp~
10880 $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~
10883 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10884 hardcode_libdir_separator_CXX=:
10886 # Commands to make compiler produce verbose output that lists
10887 # what "hidden" libraries, object files and flags are used when
10888 # linking a shared library.
10890 # There doesn't appear to be a way to prevent this compiler from
10891 # explicitly linking system object files so we need to strip them
10892 # from the output so that they don't get included in the library
10894 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'
10897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10899 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'
10901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10902 hardcode_libdir_separator_CXX=:
10904 # Commands to make compiler produce verbose output that lists
10905 # what "hidden" libraries, object files and flags are used when
10906 # linking a shared library.
10907 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10910 # FIXME: insert proper C++ library support
10917 # FIXME: insert proper C++ library support
10921 archive_cmds_need_lc_CXX=no
10922 case $cc_basename in
10924 # FIXME: insert proper C++ library support
10928 # FIXME: insert proper C++ library support
10934 case $cc_basename in
10937 # FIXME: insert proper C++ library support
10942 # FIXME: insert proper C++ library support
10946 # FIXME: insert proper C++ library support
10952 case $cc_basename in
10954 # Sun C++ 4.2, 5.x and Centerline C++
10955 no_undefined_flag_CXX=' -zdefs'
10956 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10957 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10958 $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'
10960 hardcode_libdir_flag_spec_CXX='-R$libdir'
10961 hardcode_shlibpath_var_CXX=no
10963 solaris2.0-5 | solaris2.0-5.*) ;;
10965 # The C++ compiler is used as linker so we must use $wl
10966 # flag to pass the commands to the underlying system
10968 # Supported since Solaris 2.6 (maybe 2.5.1?)
10969 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10972 link_all_deplibs_CXX=yes
10974 # Commands to make compiler produce verbose output that lists
10975 # what "hidden" libraries, object files and flags are used when
10976 # linking a shared library.
10978 # There doesn't appear to be a way to prevent this compiler from
10979 # explicitly linking system object files so we need to strip them
10980 # from the output so that they don't get included in the library
10982 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'
10984 # Archives containing C++ object files must be created using
10985 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10986 # necessary to make sure instantiated templates are included
10988 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10991 # Green Hills C++ Compiler
10992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10994 # The C++ compiler must be used to create the archive.
10995 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10998 # GNU C++ compiler with Solaris linker
10999 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11000 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11001 if $CC --version | grep -v '^2\.7' > /dev/null; then
11002 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11003 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11004 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11006 # Commands to make compiler produce verbose output that lists
11007 # what "hidden" libraries, object files and flags are used when
11008 # linking a shared library.
11009 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11011 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11013 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11014 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11015 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11017 # Commands to make compiler produce verbose output that lists
11018 # what "hidden" libraries, object files and flags are used when
11019 # linking a shared library.
11020 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11023 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11028 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11029 archive_cmds_need_lc_CXX=no
11032 case $cc_basename in
11034 # NonStop-UX NCC 3.20
11035 # FIXME: insert proper C++ library support
11039 # FIXME: insert proper C++ library support
11045 # FIXME: insert proper C++ library support
11049 # FIXME: insert proper C++ library support
11053 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11055 test "$ld_shlibs_CXX" = no && can_build_shared=no
11061 ## There is no encapsulation within the following macros, do not change
11062 ## the running order or otherwise move them around unless you know exactly
11063 ## what you are doing...
11065 cat > conftest.$ac_ext <<EOF
11069 Foo (void) { a = 0; }
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076 (eval $ac_compile) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; then
11080 # Parse the compiler output and extract the necessary
11081 # objects, libraries and library flags.
11083 # Sentinel used to keep track of whether or not we are before
11084 # the conftest object file.
11085 pre_test_object_deps_done=no
11087 # The `*' in the case matches for architectures that use `case' in
11088 # $output_verbose_cmd can trigger glob expansion during the loop
11089 # eval without this substitution.
11090 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11092 for p in `eval $output_verbose_link_cmd`; do
11096 # Some compilers place space between "-{L,R}" and the path.
11097 # Remove the space.
11098 if test $p = "-L" \
11099 || test $p = "-R"; then
11106 if test "$pre_test_object_deps_done" = no; then
11109 # Internal compiler library paths should come after those
11110 # provided the user. The postdeps already come after the
11111 # user supplied libs so there is no need to process them.
11112 if test -z "$compiler_lib_search_path_CXX"; then
11113 compiler_lib_search_path_CXX="${prev}${p}"
11115 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11118 # The "-l" case would never come before the object being
11119 # linked, so don't bother handling this case.
11122 if test -z "$postdeps_CXX"; then
11123 postdeps_CXX="${prev}${p}"
11125 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11131 # This assumes that the test object file only shows up
11132 # once in the compiler output.
11133 if test "$p" = "conftest.$objext"; then
11134 pre_test_object_deps_done=yes
11138 if test "$pre_test_object_deps_done" = no; then
11139 if test -z "$predep_objects_CXX"; then
11140 predep_objects_CXX="$p"
11142 predep_objects_CXX="$predep_objects_CXX $p"
11145 if test -z "$postdep_objects_CXX"; then
11146 postdep_objects_CXX="$p"
11148 postdep_objects_CXX="$postdep_objects_CXX $p"
11153 *) ;; # Ignore the rest.
11161 echo "libtool.m4: error: problem compiling CXX test program"
11164 $rm -f confest.$objext
11166 case " $postdeps_CXX " in
11167 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11170 lt_prog_compiler_wl_CXX=
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX=
11174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11177 # C++ specific cases for pic, static, wl, etc.
11178 if test "$GXX" = yes; then
11179 lt_prog_compiler_wl_CXX='-Wl,'
11180 lt_prog_compiler_static_CXX='-static'
11184 # All AIX code is PIC.
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 now supports IA64 processor
11187 lt_prog_compiler_static_CXX='-Bstatic'
11191 # FIXME: we need at least 68020 code to build shared libraries, but
11192 # adding the `-m68020' flag to GCC prevents building anything better,
11194 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11197 # PIC is the default for these OSes.
11199 mingw* | os2* | pw32*)
11200 # This hack is so that the source file can tell whether it is being
11201 # built for inclusion in a dll (and should export symbols for example).
11202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11204 darwin* | rhapsody*)
11205 # PIC is the default on this platform
11206 # Common symbols not allowed in MH_DYLIB files
11207 lt_prog_compiler_pic_CXX='-fno-common'
11210 # DJGPP does not support shared libraries at all
11211 lt_prog_compiler_pic_CXX=
11214 if test -d /usr/nec; then
11215 lt_prog_compiler_pic_CXX=-Kconform_pic
11219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11220 # not for PA HP-UX.
11221 case "$host_cpu" in
11225 lt_prog_compiler_pic_CXX='-fPIC'
11230 lt_prog_compiler_pic_CXX='-fPIC'
11236 # All AIX code is PIC.
11237 if test "$host_cpu" = ia64; then
11238 # AIX 5 now supports IA64 processor
11239 lt_prog_compiler_static_CXX='-Bstatic'
11241 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11245 case $cc_basename in
11247 # Green Hills C++ Compiler
11248 # _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"
11253 case $cc_basename in
11255 lt_prog_compiler_pic_CXX='-KPIC'
11258 # Green Hills C++ Compiler
11259 lt_prog_compiler_pic_CXX='-pic'
11265 freebsd* | kfreebsd*-gnu)
11266 # FreeBSD uses GNU C++
11268 hpux9* | hpux10* | hpux11*)
11269 case $cc_basename in
11271 lt_prog_compiler_wl_CXX='-Wl,'
11272 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11273 if test "$host_cpu" != ia64; then
11274 lt_prog_compiler_pic_CXX='+Z'
11278 lt_prog_compiler_wl_CXX='-Wl,'
11279 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11280 case "$host_cpu" in
11285 lt_prog_compiler_pic_CXX='+Z'
11293 irix5* | irix6* | nonstopux*)
11294 case $cc_basename in
11296 lt_prog_compiler_wl_CXX='-Wl,'
11297 lt_prog_compiler_static_CXX='-non_shared'
11298 # CC pic flag -KPIC is the default.
11305 case $cc_basename in
11308 lt_prog_compiler_wl_CXX='--backend -Wl,'
11309 lt_prog_compiler_pic_CXX='-fPIC'
11313 lt_prog_compiler_wl_CXX='-Wl,'
11314 lt_prog_compiler_pic_CXX='-KPIC'
11315 lt_prog_compiler_static_CXX='-static'
11319 # Make sure the PIC flag is empty. It appears that all Alpha
11320 # Linux and Compaq Tru64 Unix objects are PIC.
11321 lt_prog_compiler_pic_CXX=
11322 lt_prog_compiler_static_CXX='-non_shared'
11333 case $cc_basename in
11335 lt_prog_compiler_pic_CXX='-W c,exportall'
11343 osf3* | osf4* | osf5*)
11344 case $cc_basename in
11346 lt_prog_compiler_wl_CXX='--backend -Wl,'
11349 # Rational C++ 2.4.1
11350 lt_prog_compiler_pic_CXX='-pic'
11353 # Digital/Compaq C++
11354 lt_prog_compiler_wl_CXX='-Wl,'
11355 # Make sure the PIC flag is empty. It appears that all Alpha
11356 # Linux and Compaq Tru64 Unix objects are PIC.
11357 lt_prog_compiler_pic_CXX=
11358 lt_prog_compiler_static_CXX='-non_shared'
11367 case $cc_basename in
11369 lt_prog_compiler_pic_CXX='-fPIC'
11376 case $cc_basename in
11378 # Sun C++ 4.2, 5.x and Centerline C++
11379 lt_prog_compiler_pic_CXX='-KPIC'
11380 lt_prog_compiler_static_CXX='-Bstatic'
11381 lt_prog_compiler_wl_CXX='-Qoption ld '
11384 # Green Hills C++ Compiler
11385 lt_prog_compiler_pic_CXX='-PIC'
11392 case $cc_basename in
11395 lt_prog_compiler_pic_CXX='-pic'
11396 lt_prog_compiler_static_CXX='-Bstatic'
11400 lt_prog_compiler_pic_CXX='-pic'
11407 case $cc_basename in
11409 # NonStop-UX NCC 3.20
11410 lt_prog_compiler_pic_CXX='-KPIC'
11421 lt_prog_compiler_can_build_shared_CXX=no
11426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11427 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11430 # Check to make sure the PIC flag actually works.
11432 if test -n "$lt_prog_compiler_pic_CXX"; then
11434 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11435 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11436 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 lt_prog_compiler_pic_works_CXX=no
11440 ac_outfile=conftest.$ac_objext
11441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11442 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11443 # Insert the option either (1) after the last *FLAGS variable, or
11444 # (2) before a word containing "conftest.", or (3) at the end.
11445 # Note that $ac_compile itself does not contain backslashes and begins
11446 # with a dollar sign (not a hyphen), so the echo should work correctly.
11447 # The option is referenced via a variable to avoid confusing sed.
11448 lt_compile=`echo "$ac_compile" | $SED \
11449 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11451 -e 's:$: $lt_compiler_flag:'`
11452 (eval echo "\"\$as_me:11452: $lt_compile\"" >&5)
11453 (eval "$lt_compile" 2>conftest.err)
11455 cat conftest.err >&5
11456 echo "$as_me:11456: \$? = $ac_status" >&5
11457 if (exit $ac_status) && test -s "$ac_outfile"; then
11458 # The compiler can only warn and ignore the option if not recognized
11459 # So say no if there are warnings
11460 if test ! -s conftest.err; then
11461 lt_prog_compiler_pic_works_CXX=yes
11467 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11468 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11470 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11471 case $lt_prog_compiler_pic_CXX in
11473 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11476 lt_prog_compiler_pic_CXX=
11477 lt_prog_compiler_can_build_shared_CXX=no
11482 # For platforms which do not support PIC, -DPIC is meaningless:
11484 lt_prog_compiler_pic_CXX=
11487 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11491 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11493 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 lt_cv_prog_compiler_c_o_CXX=no
11497 $rm -r conftest 2>/dev/null
11501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11503 lt_compiler_flag="-o out/conftest2.$ac_objext"
11504 # Insert the option either (1) after the last *FLAGS variable, or
11505 # (2) before a word containing "conftest.", or (3) at the end.
11506 # Note that $ac_compile itself does not contain backslashes and begins
11507 # with a dollar sign (not a hyphen), so the echo should work correctly.
11508 lt_compile=`echo "$ac_compile" | $SED \
11509 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511 -e 's:$: $lt_compiler_flag:'`
11512 (eval echo "\"\$as_me:11512: $lt_compile\"" >&5)
11513 (eval "$lt_compile" 2>out/conftest.err)
11515 cat out/conftest.err >&5
11516 echo "$as_me:11516: \$? = $ac_status" >&5
11517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11519 # The compiler can only warn and ignore the option if not recognized
11520 # So say no if there are warnings
11521 if test ! -s out/conftest.err; then
11522 lt_cv_prog_compiler_c_o_CXX=yes
11527 # SGI C++ compiler will create directory out/ii_files/ for
11528 # template instantiation
11529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11530 $rm out/* && rmdir out
11536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11540 hard_links="nottested"
11541 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11542 # do not overwrite the value of need_locks provided by the user
11543 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11549 ln conftest.a conftest.b 2>&5 || hard_links=no
11550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11551 { echo "$as_me:$LINENO: result: $hard_links" >&5
11552 echo "${ECHO_T}$hard_links" >&6; }
11553 if test "$hard_links" = no; then
11554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11568 # If we're using GNU nm, then we don't want the "-C" option.
11569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11570 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11571 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'
11573 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'
11577 export_symbols_cmds_CXX="$ltdll_cmds"
11580 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11587 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11588 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11589 test "$ld_shlibs_CXX" = no && can_build_shared=no
11591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11592 if test "$GCC" = yes; then
11593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11597 # Do we need to explicitly link libc?
11599 case "x$archive_cmds_need_lc_CXX" in
11601 # Assume -lc should be added
11602 archive_cmds_need_lc_CXX=yes
11604 if test "$enable_shared" = yes && test "$GCC" = yes; then
11605 case $archive_cmds_CXX in
11607 # FIXME: we may have to deal with multi-command sequences.
11610 # Test whether the compiler implicitly links with -lc since on some
11611 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11612 # to ld, don't add -lc before -lgcc.
11613 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11614 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11619 (eval $ac_compile) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } 2>conftest.err; then
11625 libobjs=conftest.$ac_objext
11627 wl=$lt_prog_compiler_wl_CXX
11633 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11634 allow_undefined_flag_CXX=
11635 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11636 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }
11641 archive_cmds_need_lc_CXX=no
11643 archive_cmds_need_lc_CXX=yes
11645 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11647 cat conftest.err 1>&5
11650 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11651 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11658 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11659 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11660 library_names_spec=
11661 libname_spec='lib$name'
11665 postuninstall_cmds=
11669 shlibpath_overrides_runpath=unknown
11671 dynamic_linker="$host_os ld.so"
11672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11673 if test "$GCC" = yes; then
11674 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11675 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11676 # if the path contains ";" then we assume it to be the separator
11677 # otherwise default to the standard path separator (i.e. ":") - it is
11678 # assumed that no part of a normal pathname contains ";" but that should
11679 # okay in the real world where ";" in dirpaths is itself problematic.
11680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11687 need_lib_prefix=unknown
11688 hardcode_into_libs=no
11690 # when you set need_version to no, make sure it does not cause -set_version
11691 # flags to be left without arguments
11692 need_version=unknown
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11698 shlibpath_var=LIBPATH
11700 # AIX 3 has no versioning support, so we append a major version to the name.
11701 soname_spec='${libname}${release}${shared_ext}$major'
11708 hardcode_into_libs=yes
11709 if test "$host_cpu" = ia64; then
11710 # AIX 5 supports IA64
11711 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11712 shlibpath_var=LD_LIBRARY_PATH
11714 # With GCC up to 2.95.x, collect2 would create an import file
11715 # for dependence libraries. The import file would start with
11716 # the line `#! .'. This would cause the generated library to
11717 # depend on `.', always an invalid library. This was fixed in
11718 # development snapshots of GCC prior to 3.0.
11720 aix4 | aix4.[01] | aix4.[01].*)
11721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11723 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11726 can_build_shared=no
11730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11731 # soname into executable. Probably we can add versioning support to
11732 # collect2, so additional links can be useful in future.
11733 if test "$aix_use_runtimelinking" = yes; then
11734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11735 # instead of lib<name>.a to let people know that these are not
11736 # typical AIX shared libraries.
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 # We preserve .a as extension for shared libraries through AIX4.2
11740 # and later when we are not doing run time linking.
11741 library_names_spec='${libname}${release}.a $libname.a'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11744 shlibpath_var=LIBPATH
11749 library_names_spec='$libname.ixlibrary $libname.a'
11750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11751 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'
11755 library_names_spec='${libname}${shared_ext}'
11756 dynamic_linker="$host_os ld.so"
11757 shlibpath_var=LIBRARY_PATH
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11769 # the default ld.so.conf also contains /usr/contrib/lib and
11770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11771 # libtool to hard-code these into programs
11774 cygwin* | mingw* | pw32*)
11775 version_type=windows
11780 case $GCC,$host_os in
11781 yes,cygwin* | yes,mingw* | yes,pw32*)
11782 library_names_spec='$libname.dll.a'
11783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11784 postinstall_cmds='base_file=`basename \${file}`~
11785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11786 dldir=$destdir/`dirname \$dlpath`~
11787 test -d \$dldir || mkdir -p \$dldir~
11788 $install_prog $dir/$dlname \$dldir/$dlname'
11789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11790 dlpath=$dir/\$dldll~
11792 shlibpath_overrides_runpath=yes
11796 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11797 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11798 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11801 # MinGW DLLs use traditional 'lib' prefix
11802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11804 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11805 # It is most probably a Windows format PATH printed by
11806 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11807 # path with ; separators, and with drive letters. We can handle the
11808 # drive letters (cygwin fileutils understands them), so leave them,
11809 # especially as we might pass files found there to a mingw objdump,
11810 # which wouldn't understand a cygwinified path. Ahh.
11811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11817 # pw32 DLLs use 'pw' prefix rather than 'lib'
11818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11827 dynamic_linker='Win32 ld.exe'
11828 # FIXME: first we should search . and the directory the executable is in
11832 darwin* | rhapsody*)
11833 dynamic_linker="$host_os dyld"
11834 version_type=darwin
11837 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11838 soname_spec='${libname}${release}${major}$shared_ext'
11839 shlibpath_overrides_runpath=yes
11840 shlibpath_var=DYLD_LIBRARY_PATH
11841 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11842 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11843 if test "$GCC" = yes; then
11844 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"`
11846 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 shlibpath_var=LD_LIBRARY_PATH
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11869 soname_spec='${libname}${release}${shared_ext}$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=no
11872 hardcode_into_libs=yes
11873 dynamic_linker='GNU ld.so'
11877 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11878 version_type=freebsd-$objformat
11879 case $version_type in
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11890 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=yes
11895 freebsd3.01* | freebsdelf3.01*)
11896 shlibpath_overrides_runpath=yes
11897 hardcode_into_libs=yes
11900 shlibpath_overrides_runpath=no
11901 hardcode_into_libs=yes
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11912 shlibpath_var=LD_LIBRARY_PATH
11913 hardcode_into_libs=yes
11916 hpux9* | hpux10* | hpux11*)
11917 # Give a soname corresponding to the major version so that dld.sl refuses to
11918 # link against other versions.
11922 case "$host_cpu" in
11925 hardcode_into_libs=yes
11926 dynamic_linker="$host_os dld.so"
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 if test "X$HPUX_IA64_MODE" = X32; then
11932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11940 hardcode_into_libs=yes
11941 dynamic_linker="$host_os dld.sl"
11942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 soname_spec='${libname}${release}${shared_ext}$major'
11946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11951 dynamic_linker="$host_os dld.sl"
11952 shlibpath_var=SHLIB_PATH
11953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 soname_spec='${libname}${release}${shared_ext}$major'
11958 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11959 postinstall_cmds='chmod 555 $lib'
11962 irix5* | irix6* | nonstopux*)
11964 nonstopux*) version_type=nonstopux ;;
11966 if test "$lt_cv_prog_gnu_ld" = yes; then
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11977 irix5* | nonstopux*)
11978 libsuff= shlibsuff=
11981 case $LD in # libtool.m4 will add one of these switches to LD
11982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11983 libsuff= shlibsuff= libmagic=32-bit;;
11984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11985 libsuff=32 shlibsuff=N32 libmagic=N32;;
11986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11988 *) libsuff= shlibsuff= libmagic=never-match;;
11992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11993 shlibpath_overrides_runpath=no
11994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11996 hardcode_into_libs=yes
11999 # No shared lib support for Linux oldld, aout, or coff.
12000 linux*oldld* | linux*aout* | linux*coff*)
12004 # This must be Linux ELF.
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12010 soname_spec='${libname}${release}${shared_ext}$major'
12011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=no
12014 # This implies no fast_install, which is unacceptable.
12015 # Some rework will be needed to allow for fast_install
12016 # before this can be enabled.
12017 hardcode_into_libs=yes
12019 # find out which ABI we are using
12021 case "$host_cpu" in
12022 x86_64*|s390x*|powerpc64*)
12023 echo '#line 12023 "configure"' > conftest.$ac_ext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; then
12029 case `/usr/bin/file conftest.$ac_objext` in
12032 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12040 # Append ld.so.conf contents to the search path
12041 if test -f /etc/ld.so.conf; then
12042 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12043 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12046 # We used to test for /lib/ld.so.1 and disable shared libraries on
12047 # powerpc, because MkLinux only supported shared libraries with the
12048 # GNU dynamic linker. Since this was broken with cross compilers,
12049 # most powerpc-linux boxes support dynamic linking these days and
12050 # people can always --disable-shared, the test was removed, and we
12051 # assume the GNU/Linux dynamic linker is in use.
12052 dynamic_linker='GNU/Linux ld.so'
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12060 soname_spec='${libname}${release}${shared_ext}$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=no
12063 hardcode_into_libs=yes
12064 dynamic_linker='GNU ld.so'
12071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12074 dynamic_linker='NetBSD (a.out) ld.so'
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 dynamic_linker='NetBSD ld.elf_so'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 shlibpath_overrides_runpath=yes
12082 hardcode_into_libs=yes
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 shlibpath_overrides_runpath=yes
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 shlibpath_overrides_runpath=yes
12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12108 shlibpath_var=LD_LIBRARY_PATH
12109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12111 openbsd2.[89] | openbsd2.[89].*)
12112 shlibpath_overrides_runpath=no
12115 shlibpath_overrides_runpath=yes
12119 shlibpath_overrides_runpath=yes
12124 libname_spec='$name'
12127 library_names_spec='$libname${shared_ext} $libname.a'
12128 dynamic_linker='OS/2 ld.exe'
12129 shlibpath_var=LIBPATH
12132 osf3* | osf4* | osf5*)
12136 soname_spec='${libname}${release}${shared_ext}$major'
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147 shlibpath_var=LD_LIBRARY_PATH
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12155 soname_spec='${libname}${release}${shared_ext}$major'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes
12158 hardcode_into_libs=yes
12159 # ldd complains unless libraries are executable
12160 postinstall_cmds='chmod +x $lib'
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12167 shlibpath_var=LD_LIBRARY_PATH
12168 shlibpath_overrides_runpath=yes
12169 if test "$with_gnu_ld" = yes; then
12175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12178 soname_spec='${libname}${release}${shared_ext}$major'
12179 shlibpath_var=LD_LIBRARY_PATH
12180 case $host_vendor in
12182 shlibpath_overrides_runpath=no
12184 export_dynamic_flag_spec='${wl}-Blargedynsym'
12185 runpath_var=LD_RUN_PATH
12193 shlibpath_overrides_runpath=no
12194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12200 if test -d /usr/nec ;then
12202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12203 soname_spec='$libname${shared_ext}.$major'
12204 shlibpath_var=LD_LIBRARY_PATH
12210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12211 soname_spec='${libname}${release}${shared_ext}$major'
12212 shlibpath_var=LD_LIBRARY_PATH
12219 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12220 echo "${ECHO_T}$dynamic_linker" >&6; }
12221 test "$dynamic_linker" = no && can_build_shared=no
12223 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12225 hardcode_action_CXX=
12226 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12227 test -n "$runpath_var CXX" || \
12228 test "X$hardcode_automatic_CXX"="Xyes" ; then
12230 # We can hardcode non-existant directories.
12231 if test "$hardcode_direct_CXX" != no &&
12232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12233 # have to relink, otherwise we might link with an installed library
12234 # when we should be linking with a yet-to-be-installed one
12235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12236 test "$hardcode_minus_L_CXX" != no; then
12237 # Linking always hardcodes the temporary library directory.
12238 hardcode_action_CXX=relink
12240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12241 hardcode_action_CXX=immediate
12244 # We cannot hardcode anything, or else we can only hardcode existing
12246 hardcode_action_CXX=unsupported
12248 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12249 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12251 if test "$hardcode_action_CXX" = relink; then
12252 # Fast installation is not supported
12253 enable_fast_install=no
12254 elif test "$shlibpath_overrides_runpath" = yes ||
12255 test "$enable_shared" = no; then
12256 # Fast installation is not necessary
12257 enable_fast_install=needless
12262 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12263 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12264 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12265 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12266 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12267 { echo "$as_me:$LINENO: result: yes" >&5
12268 echo "${ECHO_T}yes" >&6; }
12270 # FIXME - insert some real tests, host_os isn't really good enough
12273 if test -n "$STRIP" ; then
12274 striplib="$STRIP -x"
12275 { echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6; }
12278 { echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6; }
12283 { echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6; }
12289 if test "x$enable_dlopen" != xyes; then
12290 enable_dlopen=unknown
12291 enable_dlopen_self=unknown
12292 enable_dlopen_self_static=unknown
12299 lt_cv_dlopen="load_add_on"
12301 lt_cv_dlopen_self=yes
12305 lt_cv_dlopen="LoadLibrary"
12310 lt_cv_dlopen="dlopen"
12315 # if libdl is installed we need to link against it
12316 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12317 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12318 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 ac_check_lib_save_LIBS=$LIBS
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (ac_try="$ac_link"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_link") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_cxx_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest$ac_exeext &&
12362 $as_test_x conftest$ac_exeext; then
12363 ac_cv_lib_dl_dlopen=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_cv_lib_dl_dlopen=no
12371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12376 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12377 if test $ac_cv_lib_dl_dlopen = yes; then
12378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12381 lt_cv_dlopen="dyld"
12383 lt_cv_dlopen_self=yes
12390 { echo "$as_me:$LINENO: checking for shl_load" >&5
12391 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12392 if test "${ac_cv_func_shl_load+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 cat >conftest.$ac_ext <<_ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12403 #define shl_load innocuous_shl_load
12405 /* System header to define __stub macros and hopefully few prototypes,
12406 which can conflict with char shl_load (); below.
12407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12408 <limits.h> exists even on freestanding compilers. */
12411 # include <limits.h>
12413 # include <assert.h>
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12425 /* The GNU C library defines this for functions which it implements
12426 to always fail with ENOSYS. Some functions are actually named
12427 something starting with __ and the normal name is an alias. */
12428 #if defined __stub_shl_load || defined __stub___shl_load
12435 return shl_load ();
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (ac_try="$ac_link"
12442 case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_link") 2>conftest.er1
12449 grep -v '^ *+' conftest.er1 >conftest.err
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && {
12454 test -z "$ac_cxx_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest$ac_exeext &&
12457 $as_test_x conftest$ac_exeext; then
12458 ac_cv_func_shl_load=yes
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_cv_func_shl_load=no
12466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12467 conftest$ac_exeext conftest.$ac_ext
12469 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12470 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12471 if test $ac_cv_func_shl_load = yes; then
12472 lt_cv_dlopen="shl_load"
12474 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12475 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12476 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 ac_check_lib_save_LIBS=$LIBS
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12498 return shl_load ();
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_cxx_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext &&
12520 $as_test_x conftest$ac_exeext; then
12521 ac_cv_lib_dld_shl_load=yes
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_cv_lib_dld_shl_load=no
12529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12530 conftest$ac_exeext conftest.$ac_ext
12531 LIBS=$ac_check_lib_save_LIBS
12533 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12534 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12535 if test $ac_cv_lib_dld_shl_load = yes; then
12536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12538 { echo "$as_me:$LINENO: checking for dlopen" >&5
12539 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12540 if test "${ac_cv_func_dlopen+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12551 #define dlopen innocuous_dlopen
12553 /* System header to define __stub macros and hopefully few prototypes,
12554 which can conflict with char dlopen (); below.
12555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556 <limits.h> exists even on freestanding compilers. */
12559 # include <limits.h>
12561 # include <assert.h>
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12573 /* The GNU C library defines this for functions which it implements
12574 to always fail with ENOSYS. Some functions are actually named
12575 something starting with __ and the normal name is an alias. */
12576 #if defined __stub_dlopen || defined __stub___dlopen
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_cxx_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest$ac_exeext &&
12605 $as_test_x conftest$ac_exeext; then
12606 ac_cv_func_dlopen=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_func_dlopen=no
12614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615 conftest$ac_exeext conftest.$ac_ext
12617 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12618 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12619 if test $ac_cv_func_dlopen = yes; then
12620 lt_cv_dlopen="dlopen"
12622 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12623 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12624 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 ac_check_lib_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_link") 2>conftest.er1
12660 grep -v '^ *+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_cxx_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest$ac_exeext &&
12668 $as_test_x conftest$ac_exeext; then
12669 ac_cv_lib_dl_dlopen=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_cv_lib_dl_dlopen=no
12677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12683 if test $ac_cv_lib_dl_dlopen = yes; then
12684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12686 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lsvld $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } && {
12729 test -z "$ac_cxx_werror_flag" ||
12730 test ! -s conftest.err
12731 } && test -s conftest$ac_exeext &&
12732 $as_test_x conftest$ac_exeext; then
12733 ac_cv_lib_svld_dlopen=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 ac_cv_lib_svld_dlopen=no
12741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12745 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12747 if test $ac_cv_lib_svld_dlopen = yes; then
12748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12750 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12751 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12752 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_check_lib_save_LIBS=$LIBS
12757 cat >conftest.$ac_ext <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12774 return dld_link ();
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && {
12793 test -z "$ac_cxx_werror_flag" ||
12794 test ! -s conftest.err
12795 } && test -s conftest$ac_exeext &&
12796 $as_test_x conftest$ac_exeext; then
12797 ac_cv_lib_dld_dld_link=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_cv_lib_dld_dld_link=no
12805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12810 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12811 if test $ac_cv_lib_dld_dld_link = yes; then
12812 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12833 if test "x$lt_cv_dlopen" != xno; then
12839 case $lt_cv_dlopen in
12841 save_CPPFLAGS="$CPPFLAGS"
12842 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12844 save_LDFLAGS="$LDFLAGS"
12845 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12848 LIBS="$lt_cv_dlopen_libs $LIBS"
12850 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12851 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12852 if test "${lt_cv_dlopen_self+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 if test "$cross_compiling" = yes; then :
12856 lt_cv_dlopen_self=cross
12858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12859 lt_status=$lt_dlunknown
12860 cat > conftest.$ac_ext <<EOF
12861 #line 12861 "configure"
12862 #include "confdefs.h"
12871 # define LT_DLGLOBAL RTLD_GLOBAL
12874 # define LT_DLGLOBAL DL_GLOBAL
12876 # define LT_DLGLOBAL 0
12880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12881 find out it does not work in some platform. */
12882 #ifndef LT_DLLAZY_OR_NOW
12884 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12887 # define LT_DLLAZY_OR_NOW DL_LAZY
12890 # define LT_DLLAZY_OR_NOW RTLD_NOW
12893 # define LT_DLLAZY_OR_NOW DL_NOW
12895 # define LT_DLLAZY_OR_NOW 0
12903 extern "C" void exit (int);
12906 void fnord() { int i=42;}
12909 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12910 int status = $lt_dlunknown;
12914 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12915 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12916 /* dlclose (self); */
12922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923 (eval $ac_link) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12927 (./conftest; exit; ) 2>/dev/null
12929 case x$lt_status in
12930 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12931 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12932 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12935 # compilation failed
12936 lt_cv_dlopen_self=no
12943 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12944 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12946 if test "x$lt_cv_dlopen_self" = xyes; then
12947 LDFLAGS="$LDFLAGS $link_static_flag"
12948 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12949 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12950 if test "${lt_cv_dlopen_self_static+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 if test "$cross_compiling" = yes; then :
12954 lt_cv_dlopen_self_static=cross
12956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12957 lt_status=$lt_dlunknown
12958 cat > conftest.$ac_ext <<EOF
12959 #line 12959 "configure"
12960 #include "confdefs.h"
12969 # define LT_DLGLOBAL RTLD_GLOBAL
12972 # define LT_DLGLOBAL DL_GLOBAL
12974 # define LT_DLGLOBAL 0
12978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12979 find out it does not work in some platform. */
12980 #ifndef LT_DLLAZY_OR_NOW
12982 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12985 # define LT_DLLAZY_OR_NOW DL_LAZY
12988 # define LT_DLLAZY_OR_NOW RTLD_NOW
12991 # define LT_DLLAZY_OR_NOW DL_NOW
12993 # define LT_DLLAZY_OR_NOW 0
13001 extern "C" void exit (int);
13004 void fnord() { int i=42;}
13007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13008 int status = $lt_dlunknown;
13012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13013 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13014 /* dlclose (self); */
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13025 (./conftest; exit; ) 2>/dev/null
13027 case x$lt_status in
13028 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13029 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13030 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13033 # compilation failed
13034 lt_cv_dlopen_self_static=no
13041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13042 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13045 CPPFLAGS="$save_CPPFLAGS"
13046 LDFLAGS="$save_LDFLAGS"
13051 case $lt_cv_dlopen_self in
13052 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13053 *) enable_dlopen_self=unknown ;;
13056 case $lt_cv_dlopen_self_static in
13057 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13058 *) enable_dlopen_self_static=unknown ;;
13063 # The else clause should only fire when bootstrapping the
13064 # libtool distribution, otherwise you forgot to ship ltmain.sh
13065 # with your package, and you will get complaints that there are
13066 # no rules to generate ltmain.sh.
13067 if test -f "$ltmain"; then
13068 # See if we are running on zsh, and set the options which allow our commands through
13069 # without removal of \ escapes.
13070 if test -n "${ZSH_VERSION+set}" ; then
13071 setopt NO_GLOB_SUBST
13073 # Now quote all the things that may contain metacharacters while being
13074 # careful not to overquote the AC_SUBSTed values. We take copies of the
13075 # variables and quote the copies for generation of the libtool script.
13076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13080 deplibs_check_method reload_flag reload_cmds need_locks \
13081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13082 lt_cv_sys_global_symbol_to_c_name_address \
13083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13084 old_postinstall_cmds old_postuninstall_cmds \
13088 lt_prog_compiler_wl_CXX \
13089 lt_prog_compiler_pic_CXX \
13090 lt_prog_compiler_static_CXX \
13091 lt_prog_compiler_no_builtin_flag_CXX \
13092 export_dynamic_flag_spec_CXX \
13093 thread_safe_flag_spec_CXX \
13094 whole_archive_flag_spec_CXX \
13095 enable_shared_with_static_runtimes_CXX \
13096 old_archive_cmds_CXX \
13097 old_archive_from_new_cmds_CXX \
13098 predep_objects_CXX \
13099 postdep_objects_CXX \
13102 compiler_lib_search_path_CXX \
13104 archive_expsym_cmds_CXX \
13105 postinstall_cmds_CXX \
13106 postuninstall_cmds_CXX \
13107 old_archive_from_expsyms_cmds_CXX \
13108 allow_undefined_flag_CXX \
13109 no_undefined_flag_CXX \
13110 export_symbols_cmds_CXX \
13111 hardcode_libdir_flag_spec_CXX \
13112 hardcode_libdir_flag_spec_ld_CXX \
13113 hardcode_libdir_separator_CXX \
13114 hardcode_automatic_CXX \
13116 module_expsym_cmds_CXX \
13117 lt_cv_prog_compiler_c_o_CXX \
13118 exclude_expsyms_CXX \
13119 include_expsyms_CXX; do
13122 old_archive_cmds_CXX | \
13123 old_archive_from_new_cmds_CXX | \
13124 archive_cmds_CXX | \
13125 archive_expsym_cmds_CXX | \
13126 module_cmds_CXX | \
13127 module_expsym_cmds_CXX | \
13128 old_archive_from_expsyms_cmds_CXX | \
13129 export_symbols_cmds_CXX | \
13130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13131 postinstall_cmds | postuninstall_cmds | \
13132 old_postinstall_cmds | old_postuninstall_cmds | \
13133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13134 # Double-quote double-evaled strings.
13135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13144 *'\$0 --fallback-echo"')
13145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13151 cat <<__EOF__ >> "$cfgfile"
13152 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13156 # Shell to use when invoking shell scripts.
13159 # Whether or not to build shared libraries.
13160 build_libtool_libs=$enable_shared
13162 # Whether or not to build static libraries.
13163 build_old_libs=$enable_static
13165 # Whether or not to add -lc for building shared libraries.
13166 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13168 # Whether or not to disallow shared libs when runtime libs are static
13169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13171 # Whether or not to optimize for fast installation.
13172 fast_install=$enable_fast_install
13175 host_alias=$host_alias
13178 # An echo program that does not interpret backslashes.
13183 AR_FLAGS=$lt_AR_FLAGS
13188 # A language-specific compiler.
13189 CC=$lt_compiler_CXX
13191 # Is the compiler the GNU C compiler?
13197 # The linker used to build libraries.
13200 # Whether we need hard or soft links.
13203 # A BSD-compatible nm program.
13206 # A symbol stripping program
13209 # Used to examine libraries when file_magic_cmd begins "file"
13210 MAGIC_CMD=$MAGIC_CMD
13212 # Used on cygwin: DLL creation program.
13215 # Used on cygwin: object dumper.
13218 # Used on cygwin: assembler.
13221 # The name of the directory that contains temporary libtool files.
13224 # How to create reloadable object files.
13225 reload_flag=$lt_reload_flag
13226 reload_cmds=$lt_reload_cmds
13228 # How to pass a linker flag through the compiler.
13229 wl=$lt_lt_prog_compiler_wl_CXX
13231 # Object file suffix (normally "o").
13232 objext="$ac_objext"
13234 # Old archive suffix (normally "a").
13237 # Shared library suffix (normally ".so").
13238 shrext_cmds='$shrext_cmds'
13240 # Executable file suffix (normally "").
13243 # Additional compiler flags for building library objects.
13244 pic_flag=$lt_lt_prog_compiler_pic_CXX
13247 # What is the maximum length of a command?
13248 max_cmd_len=$lt_cv_sys_max_cmd_len
13250 # Does compiler simultaneously support -c and -o options?
13251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13253 # Must we lock files when doing compilation ?
13254 need_locks=$lt_need_locks
13256 # Do we need the lib prefix for modules?
13257 need_lib_prefix=$need_lib_prefix
13259 # Do we need a version for libraries?
13260 need_version=$need_version
13262 # Whether dlopen is supported.
13263 dlopen_support=$enable_dlopen
13265 # Whether dlopen of programs is supported.
13266 dlopen_self=$enable_dlopen_self
13268 # Whether dlopen of statically linked programs is supported.
13269 dlopen_self_static=$enable_dlopen_self_static
13271 # Compiler flag to prevent dynamic linking.
13272 link_static_flag=$lt_lt_prog_compiler_static_CXX
13274 # Compiler flag to turn off builtin functions.
13275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13277 # Compiler flag to allow reflexive dlopens.
13278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13280 # Compiler flag to generate shared objects directly from archives.
13281 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13283 # Compiler flag to generate thread-safe objects.
13284 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13286 # Library versioning type.
13287 version_type=$version_type
13289 # Format of library name prefix.
13290 libname_spec=$lt_libname_spec
13292 # List of archive names. First name is the real one, the rest are links.
13293 # The last name is the one that the linker finds with -lNAME.
13294 library_names_spec=$lt_library_names_spec
13296 # The coded name of the library, if different from the real name.
13297 soname_spec=$lt_soname_spec
13299 # Commands used to build and install an old-style archive.
13301 old_archive_cmds=$lt_old_archive_cmds_CXX
13302 old_postinstall_cmds=$lt_old_postinstall_cmds
13303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13305 # Create an old-style archive from a shared archive.
13306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13308 # Create a temporary old-style archive to link instead of a shared archive.
13309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13311 # Commands used to build and install a shared archive.
13312 archive_cmds=$lt_archive_cmds_CXX
13313 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13314 postinstall_cmds=$lt_postinstall_cmds
13315 postuninstall_cmds=$lt_postuninstall_cmds
13317 # Commands used to build a loadable module (assumed same as above if empty)
13318 module_cmds=$lt_module_cmds_CXX
13319 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13321 # Commands to strip libraries.
13322 old_striplib=$lt_old_striplib
13323 striplib=$lt_striplib
13325 # Dependencies to place before the objects being linked to create a
13327 predep_objects=$lt_predep_objects_CXX
13329 # Dependencies to place after the objects being linked to create a
13331 postdep_objects=$lt_postdep_objects_CXX
13333 # Dependencies to place before the objects being linked to create a
13335 predeps=$lt_predeps_CXX
13337 # Dependencies to place after the objects being linked to create a
13339 postdeps=$lt_postdeps_CXX
13341 # The library search path used internally by the compiler when linking
13342 # a shared library.
13343 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13345 # Method to check whether dependent libraries are shared objects.
13346 deplibs_check_method=$lt_deplibs_check_method
13348 # Command to use when deplibs_check_method == file_magic.
13349 file_magic_cmd=$lt_file_magic_cmd
13351 # Flag that allows shared libraries with undefined symbols to be built.
13352 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13354 # Flag that forces no undefined symbols.
13355 no_undefined_flag=$lt_no_undefined_flag_CXX
13357 # Commands used to finish a libtool library installation in a directory.
13358 finish_cmds=$lt_finish_cmds
13360 # Same as above, but a single script fragment to be evaled but not shown.
13361 finish_eval=$lt_finish_eval
13363 # Take the output of nm and produce a listing of raw symbols and C names.
13364 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13366 # Transform the output of nm in a proper C declaration
13367 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13369 # Transform the output of nm in a C name address pair
13370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13372 # This is the shared library runtime path variable.
13373 runpath_var=$runpath_var
13375 # This is the shared library path variable.
13376 shlibpath_var=$shlibpath_var
13378 # Is shlibpath searched before the hard-coded library search path?
13379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13381 # How to hardcode a shared library path into an executable.
13382 hardcode_action=$hardcode_action_CXX
13384 # Whether we should hardcode library paths into libraries.
13385 hardcode_into_libs=$hardcode_into_libs
13387 # Flag to hardcode \$libdir into a binary during linking.
13388 # This must work even if \$libdir does not exist.
13389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13391 # If ld is used when linking, flag to hardcode \$libdir into
13392 # a binary during linking. This must work even if \$libdir does
13394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13396 # Whether we need a single -rpath flag with a separated argument.
13397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13399 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13400 # resulting binary.
13401 hardcode_direct=$hardcode_direct_CXX
13403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13404 # resulting binary.
13405 hardcode_minus_L=$hardcode_minus_L_CXX
13407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13408 # the resulting binary.
13409 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13411 # Set to yes if building a shared library automatically hardcodes DIR into the library
13412 # and all subsequent libraries and executables linked against it.
13413 hardcode_automatic=$hardcode_automatic_CXX
13415 # Variables whose values should be saved in libtool wrapper scripts and
13416 # restored at relink time.
13417 variables_saved_for_relink="$variables_saved_for_relink"
13419 # Whether libtool must link a program against all its dependency libraries.
13420 link_all_deplibs=$link_all_deplibs_CXX
13422 # Compile-time system search path for libraries
13423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13425 # Run-time system search path for libraries
13426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13428 # Fix the shell variable \$srcfile for the compiler.
13429 fix_srcfile_path="$fix_srcfile_path_CXX"
13431 # Set to yes if exported symbols are required.
13432 always_export_symbols=$always_export_symbols_CXX
13434 # The commands to list exported symbols.
13435 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13437 # The commands to extract the exported symbol list from a shared archive.
13438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13440 # Symbols that should not be listed in the preloaded symbols.
13441 exclude_expsyms=$lt_exclude_expsyms_CXX
13443 # Symbols that must always be exported.
13444 include_expsyms=$lt_include_expsyms_CXX
13446 # ### END LIBTOOL TAG CONFIG: $tagname
13452 # If there is no Makefile yet, we rely on a make rule to execute
13453 # `config.status --recheck' to rerun these tests and create the
13454 # libtool script then.
13455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13456 if test -f "$ltmain_in"; then
13457 test -f Makefile && make "$ltmain"
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13472 with_gnu_ldcxx=$with_gnu_ld
13473 with_gnu_ld=$lt_save_with_gnu_ld
13474 lt_cv_path_LDCXX=$lt_cv_path_LD
13475 lt_cv_path_LD=$lt_save_path_LD
13476 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13477 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13485 if test -n "$F77" && test "X$F77" != "Xno"; then
13488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13493 archive_cmds_need_lc_F77=no
13494 allow_undefined_flag_F77=
13495 always_export_symbols_F77=no
13496 archive_expsym_cmds_F77=
13497 export_dynamic_flag_spec_F77=
13498 hardcode_direct_F77=no
13499 hardcode_libdir_flag_spec_F77=
13500 hardcode_libdir_flag_spec_ld_F77=
13501 hardcode_libdir_separator_F77=
13502 hardcode_minus_L_F77=no
13503 hardcode_automatic_F77=no
13505 module_expsym_cmds_F77=
13506 link_all_deplibs_F77=unknown
13507 old_archive_cmds_F77=$old_archive_cmds
13508 no_undefined_flag_F77=
13509 whole_archive_flag_spec_F77=
13510 enable_shared_with_static_runtimes_F77=no
13512 # Source file extension for f77 test sources.
13515 # Object file extension for compiled f77 test sources.
13519 # Code to be used in simple compile tests
13520 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13522 # Code to be used in simple link tests
13523 lt_simple_link_test_code=" program t\n end\n"
13525 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13527 # If no C compiler was specified, use CC.
13530 # Allow CC to be a program name with arguments.
13534 # Allow CC to be a program name with arguments.
13539 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13541 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13542 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13543 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13544 echo "${ECHO_T}$can_build_shared" >&6; }
13546 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13547 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13548 test "$can_build_shared" = "no" && enable_shared=no
13550 # On AIX, shared libraries and static libraries use the same namespace, and
13551 # are all built from PIC.
13554 test "$enable_shared" = yes && enable_static=no
13555 if test -n "$RANLIB"; then
13556 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13557 postinstall_cmds='$RANLIB $lib'
13561 test "$enable_shared" = yes && enable_static=no
13564 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13565 echo "${ECHO_T}$enable_shared" >&6; }
13567 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13568 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13569 # Make sure either enable_shared or enable_static is yes.
13570 test "$enable_shared" = yes || enable_static=yes
13571 { echo "$as_me:$LINENO: result: $enable_static" >&5
13572 echo "${ECHO_T}$enable_static" >&6; }
13574 test "$ld_shlibs_F77" = no && can_build_shared=no
13579 lt_prog_compiler_wl_F77=
13580 lt_prog_compiler_pic_F77=
13581 lt_prog_compiler_static_F77=
13583 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13584 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13586 if test "$GCC" = yes; then
13587 lt_prog_compiler_wl_F77='-Wl,'
13588 lt_prog_compiler_static_F77='-static'
13592 # All AIX code is PIC.
13593 if test "$host_cpu" = ia64; then
13594 # AIX 5 now supports IA64 processor
13595 lt_prog_compiler_static_F77='-Bstatic'
13600 # FIXME: we need at least 68020 code to build shared libraries, but
13601 # adding the `-m68020' flag to GCC prevents building anything better,
13603 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13606 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13607 # PIC is the default for these OSes.
13610 mingw* | pw32* | os2*)
13611 # This hack is so that the source file can tell whether it is being
13612 # built for inclusion in a dll (and should export symbols for example).
13613 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13616 darwin* | rhapsody*)
13617 # PIC is the default on this platform
13618 # Common symbols not allowed in MH_DYLIB files
13619 lt_prog_compiler_pic_F77='-fno-common'
13623 # Just because we use GCC doesn't mean we suddenly get shared libraries
13624 # on systems that don't support them.
13625 lt_prog_compiler_can_build_shared_F77=no
13630 if test -d /usr/nec; then
13631 lt_prog_compiler_pic_F77=-Kconform_pic
13636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13637 # not for PA HP-UX.
13638 case "$host_cpu" in
13643 lt_prog_compiler_pic_F77='-fPIC'
13649 lt_prog_compiler_pic_F77='-fPIC'
13653 # PORTME Check for flag to pass linker flags through the system compiler.
13656 lt_prog_compiler_wl_F77='-Wl,'
13657 if test "$host_cpu" = ia64; then
13658 # AIX 5 now supports IA64 processor
13659 lt_prog_compiler_static_F77='-Bstatic'
13661 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13665 mingw* | pw32* | os2*)
13666 # This hack is so that the source file can tell whether it is being
13667 # built for inclusion in a dll (and should export symbols for example).
13668 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13671 hpux9* | hpux10* | hpux11*)
13672 lt_prog_compiler_wl_F77='-Wl,'
13673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13674 # not for PA HP-UX.
13675 case "$host_cpu" in
13680 lt_prog_compiler_pic_F77='+Z'
13683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13684 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13687 irix5* | irix6* | nonstopux*)
13688 lt_prog_compiler_wl_F77='-Wl,'
13689 # PIC (with -KPIC) is the default.
13690 lt_prog_compiler_static_F77='-non_shared'
13694 lt_prog_compiler_pic_F77='-KPIC'
13695 lt_prog_compiler_static_F77='-Bstatic'
13701 lt_prog_compiler_wl_F77='-Wl,'
13702 lt_prog_compiler_pic_F77='-KPIC'
13703 lt_prog_compiler_static_F77='-static'
13706 lt_prog_compiler_wl_F77='-Wl,'
13707 # All Alpha code is PIC.
13708 lt_prog_compiler_static_F77='-non_shared'
13713 osf3* | osf4* | osf5*)
13714 lt_prog_compiler_wl_F77='-Wl,'
13715 # All OSF/1 code is PIC.
13716 lt_prog_compiler_static_F77='-non_shared'
13720 lt_prog_compiler_pic_F77='-Kpic'
13721 lt_prog_compiler_static_F77='-dn'
13725 lt_prog_compiler_wl_F77='-Wl,'
13726 lt_prog_compiler_pic_F77='-KPIC'
13727 lt_prog_compiler_static_F77='-Bstatic'
13731 lt_prog_compiler_wl_F77='-Qoption ld '
13732 lt_prog_compiler_pic_F77='-PIC'
13733 lt_prog_compiler_static_F77='-Bstatic'
13736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13737 lt_prog_compiler_wl_F77='-Wl,'
13738 lt_prog_compiler_pic_F77='-KPIC'
13739 lt_prog_compiler_static_F77='-Bstatic'
13743 if test -d /usr/nec ;then
13744 lt_prog_compiler_pic_F77='-Kconform_pic'
13745 lt_prog_compiler_static_F77='-Bstatic'
13750 lt_prog_compiler_pic_F77='-pic'
13751 lt_prog_compiler_static_F77='-Bstatic'
13755 lt_prog_compiler_can_build_shared_F77=no
13760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13761 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13764 # Check to make sure the PIC flag actually works.
13766 if test -n "$lt_prog_compiler_pic_F77"; then
13768 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13769 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13770 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 lt_prog_compiler_pic_works_F77=no
13774 ac_outfile=conftest.$ac_objext
13775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13776 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13777 # Insert the option either (1) after the last *FLAGS variable, or
13778 # (2) before a word containing "conftest.", or (3) at the end.
13779 # Note that $ac_compile itself does not contain backslashes and begins
13780 # with a dollar sign (not a hyphen), so the echo should work correctly.
13781 # The option is referenced via a variable to avoid confusing sed.
13782 lt_compile=`echo "$ac_compile" | $SED \
13783 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13785 -e 's:$: $lt_compiler_flag:'`
13786 (eval echo "\"\$as_me:13786: $lt_compile\"" >&5)
13787 (eval "$lt_compile" 2>conftest.err)
13789 cat conftest.err >&5
13790 echo "$as_me:13790: \$? = $ac_status" >&5
13791 if (exit $ac_status) && test -s "$ac_outfile"; then
13792 # The compiler can only warn and ignore the option if not recognized
13793 # So say no if there are warnings
13794 if test ! -s conftest.err; then
13795 lt_prog_compiler_pic_works_F77=yes
13801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13802 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13804 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13805 case $lt_prog_compiler_pic_F77 in
13807 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13810 lt_prog_compiler_pic_F77=
13811 lt_prog_compiler_can_build_shared_F77=no
13816 # For platforms which do not support PIC, -DPIC is meaningless:
13818 lt_prog_compiler_pic_F77=
13821 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13825 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13826 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13827 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 lt_cv_prog_compiler_c_o_F77=no
13831 $rm -r conftest 2>/dev/null
13835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13837 lt_compiler_flag="-o out/conftest2.$ac_objext"
13838 # Insert the option either (1) after the last *FLAGS variable, or
13839 # (2) before a word containing "conftest.", or (3) at the end.
13840 # Note that $ac_compile itself does not contain backslashes and begins
13841 # with a dollar sign (not a hyphen), so the echo should work correctly.
13842 lt_compile=`echo "$ac_compile" | $SED \
13843 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13845 -e 's:$: $lt_compiler_flag:'`
13846 (eval echo "\"\$as_me:13846: $lt_compile\"" >&5)
13847 (eval "$lt_compile" 2>out/conftest.err)
13849 cat out/conftest.err >&5
13850 echo "$as_me:13850: \$? = $ac_status" >&5
13851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13853 # The compiler can only warn and ignore the option if not recognized
13854 # So say no if there are warnings
13855 if test ! -s out/conftest.err; then
13856 lt_cv_prog_compiler_c_o_F77=yes
13861 # SGI C++ compiler will create directory out/ii_files/ for
13862 # template instantiation
13863 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13864 $rm out/* && rmdir out
13870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13874 hard_links="nottested"
13875 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13876 # do not overwrite the value of need_locks provided by the user
13877 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13878 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13883 ln conftest.a conftest.b 2>&5 || hard_links=no
13884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13885 { echo "$as_me:$LINENO: result: $hard_links" >&5
13886 echo "${ECHO_T}$hard_links" >&6; }
13887 if test "$hard_links" = no; then
13888 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13889 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13900 allow_undefined_flag_F77=
13901 enable_shared_with_static_runtimes_F77=no
13903 archive_expsym_cmds_F77=
13904 old_archive_From_new_cmds_F77=
13905 old_archive_from_expsyms_cmds_F77=
13906 export_dynamic_flag_spec_F77=
13907 whole_archive_flag_spec_F77=
13908 thread_safe_flag_spec_F77=
13909 hardcode_libdir_flag_spec_F77=
13910 hardcode_libdir_flag_spec_ld_F77=
13911 hardcode_libdir_separator_F77=
13912 hardcode_direct_F77=no
13913 hardcode_minus_L_F77=no
13914 hardcode_shlibpath_var_F77=unsupported
13915 link_all_deplibs_F77=unknown
13916 hardcode_automatic_F77=no
13918 module_expsym_cmds_F77=
13919 always_export_symbols_F77=no
13920 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13921 # include_expsyms should be a list of space-separated symbols to be *always*
13922 # included in the symbol list
13923 include_expsyms_F77=
13924 # exclude_expsyms can be an extended regexp of symbols to exclude
13925 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13926 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13927 # as well as any symbol that contains `d'.
13928 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13929 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13930 # platforms (ab)use it in PIC code, but their linkers get confused if
13931 # the symbol is explicitly referenced. Since portable code cannot
13932 # rely on this symbol name, it's probably fine to never include it in
13933 # preloaded symbol tables.
13934 extract_expsyms_cmds=
13937 cygwin* | mingw* | pw32*)
13938 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13939 # When not using gcc, we currently assume that we are using
13940 # Microsoft Visual C++.
13941 if test "$GCC" != yes; then
13951 if test "$with_gnu_ld" = yes; then
13952 # If archive_cmds runs LD, not CC, wlarc should be empty
13955 # See if GNU ld supports shared libraries.
13957 aix3* | aix4* | aix5*)
13958 # On AIX/PPC, the GNU linker is very broken
13959 if test "$host_cpu" != ia64; then
13963 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13964 *** to be unable to reliably create shared libraries on AIX.
13965 *** Therefore, libtool is disabling shared libraries support. If you
13966 *** really care for shared libraries, you may want to modify your PATH
13967 *** so that a non-GNU linker is found, and then restart.
13974 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)'
13975 hardcode_libdir_flag_spec_F77='-L$libdir'
13976 hardcode_minus_L_F77=yes
13978 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13979 # that the semantics of dynamic libraries on AmigaOS, at least up
13980 # to version 4, is to share data among multiple programs linked
13981 # with the same dynamic library. Since this doesn't match the
13982 # behavior of shared libraries on other platforms, we can't use
13988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13989 allow_undefined_flag_F77=unsupported
13990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13991 # support --undefined. This deserves some investigation. FIXME
13992 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998 cygwin* | mingw* | pw32*)
13999 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14000 # as there is no search path for DLLs.
14001 hardcode_libdir_flag_spec_F77='-L$libdir'
14002 allow_undefined_flag_F77=unsupported
14003 always_export_symbols_F77=no
14004 enable_shared_with_static_runtimes_F77=yes
14005 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14007 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14008 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14009 # If the export-symbols file already is a .def file (1st line
14010 # is EXPORTS), use it as is; otherwise, prepend...
14011 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14012 cp $export_symbols $output_objdir/$soname.def;
14014 echo EXPORTS > $output_objdir/$soname.def;
14015 cat $export_symbols >> $output_objdir/$soname.def;
14017 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14025 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14028 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14029 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14034 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14039 *** create shared libraries on Solaris systems. Therefore, libtool
14040 *** is disabling shared libraries support. We urge you to upgrade GNU
14041 *** binutils to release 2.9.1 or newer. Another option is to modify
14042 *** your PATH or compiler configuration so that the native linker is
14043 *** used, and then restart.
14046 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14055 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14057 hardcode_direct_F77=yes
14058 hardcode_shlibpath_var_F77=no
14062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14064 archive_cmds_F77="$tmp_archive_cmds"
14065 supports_anon_versioning=no
14066 case `$LD -v 2>/dev/null` in
14067 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14070 *\ 2.11.*) ;; # other 2.11 versions
14071 *) supports_anon_versioning=yes ;;
14073 if test $supports_anon_versioning = yes; then
14074 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14076 $echo "local: *; };" >> $output_objdir/$libname.ver~
14077 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14079 archive_expsym_cmds_F77="$tmp_archive_cmds"
14087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14088 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14089 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14096 if test "$ld_shlibs_F77" = yes; then
14097 runpath_var=LD_RUN_PATH
14098 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14099 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14100 # ancient GNU ld didn't support --whole-archive et. al.
14101 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14102 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14104 whole_archive_flag_spec_F77=
14108 # PORTME fill in a description of your system's linker (not GNU ld)
14111 allow_undefined_flag_F77=unsupported
14112 always_export_symbols_F77=yes
14113 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'
14114 # Note: this linker hardcodes the directories in LIBPATH if there
14115 # are no directories specified by -L.
14116 hardcode_minus_L_F77=yes
14117 if test "$GCC" = yes && test -z "$link_static_flag"; then
14118 # Neither direct hardcoding nor static linking is supported with a
14120 hardcode_direct_F77=unsupported
14125 if test "$host_cpu" = ia64; then
14126 # On IA64, the linker does run time linking by default, so we don't
14127 # have to do anything special.
14128 aix_use_runtimelinking=no
14129 exp_sym_flag='-Bexport'
14132 # If we're using GNU nm, then we don't want the "-C" option.
14133 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14134 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14135 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'
14137 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'
14139 aix_use_runtimelinking=no
14141 # Test if we are trying to use run time linking or normal
14142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14143 # need to do runtime linking.
14144 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14145 for ld_flag in $LDFLAGS; do
14146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14147 aix_use_runtimelinking=yes
14153 exp_sym_flag='-bexport'
14154 no_entry_flag='-bnoentry'
14157 # When large executables or shared objects are built, AIX ld can
14158 # have problems creating the table of contents. If linking a library
14159 # or program results in "error TOC overflow" add -mminimal-toc to
14160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14163 archive_cmds_F77=''
14164 hardcode_direct_F77=yes
14165 hardcode_libdir_separator_F77=':'
14166 link_all_deplibs_F77=yes
14168 if test "$GCC" = yes; then
14169 case $host_os in aix4.012|aix4.012.*)
14170 # We only want to do this on AIX 4.2 and lower, the check
14171 # below for broken collect2 doesn't work under 4.3+
14172 collect2name=`${CC} -print-prog-name=collect2`
14173 if test -f "$collect2name" && \
14174 strings "$collect2name" | grep resolve_lib_name >/dev/null
14176 # We have reworked collect2
14177 hardcode_direct_F77=yes
14179 # We have old collect2
14180 hardcode_direct_F77=unsupported
14181 # It fails to find uninstalled libraries when the uninstalled
14182 # path is not listed in the libpath. Setting hardcode_minus_L
14183 # to unsupported forces relinking
14184 hardcode_minus_L_F77=yes
14185 hardcode_libdir_flag_spec_F77='-L$libdir'
14186 hardcode_libdir_separator_F77=
14189 shared_flag='-shared'
14192 if test "$host_cpu" = ia64; then
14193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14194 # chokes on -Wl,-G. The following line is correct:
14197 if test "$aix_use_runtimelinking" = yes; then
14198 shared_flag='${wl}-G'
14200 shared_flag='${wl}-bM:SRE'
14205 # It seems that -bexpall does not export symbols beginning with
14206 # underscore (_), so it is better to generate a list of symbols to export.
14207 always_export_symbols_F77=yes
14208 if test "$aix_use_runtimelinking" = yes; then
14209 # Warning - without using the other runtime loading flags (-brtl),
14210 # -berok will link without error, but may produce a broken library.
14211 allow_undefined_flag_F77='-berok'
14212 # Determine the default libpath from the value encoded in an empty executable.
14213 cat >conftest.$ac_ext <<_ACEOF
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (ac_try="$ac_link"
14220 case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_link") 2>conftest.er1
14227 grep -v '^ *+' conftest.er1 >conftest.err
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } && {
14232 test -z "$ac_f77_werror_flag" ||
14233 test ! -s conftest.err
14234 } && test -s conftest$ac_exeext &&
14235 $as_test_x conftest$ac_exeext; then
14237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14239 # Check for a 64-bit object if we didn't find anything.
14240 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; }
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14250 conftest$ac_exeext conftest.$ac_ext
14251 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14253 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14254 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"
14256 if test "$host_cpu" = ia64; then
14257 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14258 allow_undefined_flag_F77="-z nodefs"
14259 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"
14261 # Determine the default libpath from the value encoded in an empty executable.
14262 cat >conftest.$ac_ext <<_ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_f77_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest$ac_exeext &&
14284 $as_test_x conftest$ac_exeext; then
14286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14288 # Check for a 64-bit object if we didn't find anything.
14289 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; }
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14299 conftest$ac_exeext conftest.$ac_ext
14300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14302 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14303 # Warning - without using the other run time loading flags,
14304 # -berok will link without error, but may produce a broken library.
14305 no_undefined_flag_F77=' ${wl}-bernotok'
14306 allow_undefined_flag_F77=' ${wl}-berok'
14307 # -bexpall does not export symbols beginning with underscore (_)
14308 always_export_symbols_F77=yes
14309 # Exported symbols can be pulled into shared objects from archives
14310 whole_archive_flag_spec_F77=' '
14311 archive_cmds_need_lc_F77=yes
14312 # This is similar to how AIX traditionally builds it's shared libraries.
14313 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'
14319 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)'
14320 hardcode_libdir_flag_spec_F77='-L$libdir'
14321 hardcode_minus_L_F77=yes
14322 # see comment about different semantics on the GNU ld section
14327 export_dynamic_flag_spec_F77=-rdynamic
14330 cygwin* | mingw* | pw32*)
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 # hardcode_libdir_flag_spec is actually meaningless, as there is
14334 # no search path for DLLs.
14335 hardcode_libdir_flag_spec_F77=' '
14336 allow_undefined_flag_F77=unsupported
14337 # Tell ltmain to make .lib files, not .a files.
14339 # Tell ltmain to make .dll files, not .so files.
14341 # FIXME: Setting linknames here is a bad hack.
14342 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14343 # The linker will automatically build a .lib file if we build a DLL.
14344 old_archive_From_new_cmds_F77='true'
14345 # FIXME: Should let the user specify the lib program.
14346 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14347 fix_srcfile_path='`cygpath -w "$srcfile"`'
14348 enable_shared_with_static_runtimes_F77=yes
14351 darwin* | rhapsody*)
14352 if test "$GXX" = yes ; then
14353 archive_cmds_need_lc_F77=no
14355 rhapsody* | darwin1.[012])
14356 allow_undefined_flag_F77='-undefined suppress'
14359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14360 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14362 case ${MACOSX_DEPLOYMENT_TARGET} in
14364 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14367 allow_undefined_flag_F77='-undefined dynamic_lookup'
14373 lt_int_apple_cc_single_mod=no
14374 output_verbose_link_cmd='echo'
14375 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14376 lt_int_apple_cc_single_mod=yes
14378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14379 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14381 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'
14383 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14386 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}'
14388 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}'
14390 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}'
14391 hardcode_direct_F77=no
14392 hardcode_automatic_F77=yes
14393 hardcode_shlibpath_var_F77=unsupported
14394 whole_archive_flag_spec_F77='-all_load $convenience'
14395 link_all_deplibs_F77=yes
14402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14403 hardcode_libdir_flag_spec_F77='-L$libdir'
14404 hardcode_shlibpath_var_F77=no
14411 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14412 # support. Future versions do this automatically, but an explicit c++rt0.o
14413 # does not break anything, and helps significantly (at the cost of a little
14416 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14417 hardcode_libdir_flag_spec_F77='-R$libdir'
14418 hardcode_direct_F77=yes
14419 hardcode_shlibpath_var_F77=no
14422 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14424 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425 hardcode_direct_F77=yes
14426 hardcode_minus_L_F77=yes
14427 hardcode_shlibpath_var_F77=no
14430 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14431 freebsd* | kfreebsd*-gnu)
14432 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14433 hardcode_libdir_flag_spec_F77='-R$libdir'
14434 hardcode_direct_F77=yes
14435 hardcode_shlibpath_var_F77=no
14439 if test "$GCC" = yes; then
14440 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'
14442 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'
14444 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14445 hardcode_libdir_separator_F77=:
14446 hardcode_direct_F77=yes
14448 # hardcode_minus_L: Not really in the search PATH,
14449 # but as the default location of the library.
14450 hardcode_minus_L_F77=yes
14451 export_dynamic_flag_spec_F77='${wl}-E'
14455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14456 case "$host_cpu" in
14458 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14461 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14465 case "$host_cpu" in
14467 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14474 if test "$with_gnu_ld" = no; then
14475 case "$host_cpu" in
14477 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14478 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14479 hardcode_libdir_separator_F77=:
14480 hardcode_direct_F77=no
14481 hardcode_shlibpath_var_F77=no
14484 hardcode_libdir_flag_spec_F77='-L$libdir'
14485 hardcode_direct_F77=no
14486 hardcode_shlibpath_var_F77=no
14488 # hardcode_minus_L: Not really in the search PATH,
14489 # but as the default location of the library.
14490 hardcode_minus_L_F77=yes
14493 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14494 hardcode_libdir_separator_F77=:
14495 hardcode_direct_F77=yes
14496 export_dynamic_flag_spec_F77='${wl}-E'
14498 # hardcode_minus_L: Not really in the search PATH,
14499 # but as the default location of the library.
14500 hardcode_minus_L_F77=yes
14506 irix5* | irix6* | nonstopux*)
14507 if test "$GCC" = yes; then
14508 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'
14510 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'
14511 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14513 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14514 hardcode_libdir_separator_F77=:
14515 link_all_deplibs_F77=yes
14519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14520 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14522 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14524 hardcode_libdir_flag_spec_F77='-R$libdir'
14525 hardcode_direct_F77=yes
14526 hardcode_shlibpath_var_F77=no
14530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14531 hardcode_direct_F77=yes
14532 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14533 hardcode_libdir_separator_F77=:
14534 hardcode_shlibpath_var_F77=no
14538 hardcode_direct_F77=yes
14539 hardcode_shlibpath_var_F77=no
14540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14541 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14542 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14543 export_dynamic_flag_spec_F77='${wl}-E'
14546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_libdir_flag_spec_F77='-R$libdir'
14551 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14552 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14559 hardcode_libdir_flag_spec_F77='-L$libdir'
14560 hardcode_minus_L_F77=yes
14561 allow_undefined_flag_F77=unsupported
14562 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'
14563 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14567 if test "$GCC" = yes; then
14568 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14569 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'
14571 allow_undefined_flag_F77=' -expect_unresolved \*'
14572 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'
14574 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14575 hardcode_libdir_separator_F77=:
14578 osf4* | osf5*) # as osf3* with the addition of -msym flag
14579 if test "$GCC" = yes; then
14580 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14581 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'
14582 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14584 allow_undefined_flag_F77=' -expect_unresolved \*'
14585 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'
14586 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~
14587 $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'
14589 # Both c and cxx compiler support -rpath directly
14590 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14592 hardcode_libdir_separator_F77=:
14596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14597 hardcode_shlibpath_var_F77=no
14598 export_dynamic_flag_spec_F77='${wl}-Bexport'
14599 runpath_var=LD_RUN_PATH
14600 hardcode_runpath_var=yes
14604 no_undefined_flag_F77=' -z text'
14605 if test "$GCC" = yes; then
14606 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14608 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14610 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14611 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14614 hardcode_libdir_flag_spec_F77='-R$libdir'
14615 hardcode_shlibpath_var_F77=no
14617 solaris2.[0-5] | solaris2.[0-5].*) ;;
14618 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14619 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14621 link_all_deplibs_F77=yes
14625 if test "x$host_vendor" = xsequent; then
14626 # Use $CC to link under sequent, because it throws in some extra .o
14627 # files that make .init and .fini sections work.
14628 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14630 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14632 hardcode_libdir_flag_spec_F77='-L$libdir'
14633 hardcode_direct_F77=yes
14634 hardcode_minus_L_F77=yes
14635 hardcode_shlibpath_var_F77=no
14639 case $host_vendor in
14641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14642 hardcode_direct_F77=yes # is this really true???
14645 ## LD is ld it makes a PLAMLIB
14646 ## CC just makes a GrossModule.
14647 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14648 reload_cmds_F77='$CC -r -o $output$reload_objs'
14649 hardcode_direct_F77=no
14652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14653 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14656 runpath_var='LD_RUN_PATH'
14657 hardcode_shlibpath_var_F77=no
14661 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14662 hardcode_shlibpath_var_F77=no
14663 export_dynamic_flag_spec_F77='-Bexport'
14667 if test -d /usr/nec; then
14668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_shlibpath_var_F77=no
14670 runpath_var=LD_RUN_PATH
14671 hardcode_runpath_var=yes
14677 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14678 hardcode_direct_F77=yes
14679 hardcode_minus_L_F77=no
14680 hardcode_shlibpath_var_F77=no
14681 hardcode_runpath_var=yes
14682 runpath_var=LD_RUN_PATH
14685 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14686 no_undefined_flag_F77='${wl}-z ${wl}text'
14687 if test "$GCC" = yes; then
14688 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14690 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 runpath_var='LD_RUN_PATH'
14693 hardcode_shlibpath_var_F77=no
14697 no_undefined_flag_F77=' -z text'
14698 # $CC -shared without GNU ld will not create a library from C++
14699 # object files and a static libstdc++, better avoid it by now
14700 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14703 hardcode_libdir_flag_spec_F77=
14704 hardcode_shlibpath_var_F77=no
14705 runpath_var='LD_RUN_PATH'
14709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14710 hardcode_libdir_flag_spec_F77='-L$libdir'
14711 hardcode_shlibpath_var_F77=no
14720 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14721 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14722 test "$ld_shlibs_F77" = no && can_build_shared=no
14724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14725 if test "$GCC" = yes; then
14726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14730 # Do we need to explicitly link libc?
14732 case "x$archive_cmds_need_lc_F77" in
14734 # Assume -lc should be added
14735 archive_cmds_need_lc_F77=yes
14737 if test "$enable_shared" = yes && test "$GCC" = yes; then
14738 case $archive_cmds_F77 in
14740 # FIXME: we may have to deal with multi-command sequences.
14743 # Test whether the compiler implicitly links with -lc since on some
14744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14745 # to ld, don't add -lc before -lgcc.
14746 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } 2>conftest.err; then
14758 libobjs=conftest.$ac_objext
14760 wl=$lt_prog_compiler_wl_F77
14766 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14767 allow_undefined_flag_F77=
14768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14769 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }
14774 archive_cmds_need_lc_F77=no
14776 archive_cmds_need_lc_F77=yes
14778 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14780 cat conftest.err 1>&5
14783 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14784 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14791 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14793 library_names_spec=
14794 libname_spec='lib$name'
14798 postuninstall_cmds=
14802 shlibpath_overrides_runpath=unknown
14804 dynamic_linker="$host_os ld.so"
14805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14806 if test "$GCC" = yes; then
14807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14809 # if the path contains ";" then we assume it to be the separator
14810 # otherwise default to the standard path separator (i.e. ":") - it is
14811 # assumed that no part of a normal pathname contains ";" but that should
14812 # okay in the real world where ";" in dirpaths is itself problematic.
14813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14820 need_lib_prefix=unknown
14821 hardcode_into_libs=no
14823 # when you set need_version to no, make sure it does not cause -set_version
14824 # flags to be left without arguments
14825 need_version=unknown
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14831 shlibpath_var=LIBPATH
14833 # AIX 3 has no versioning support, so we append a major version to the name.
14834 soname_spec='${libname}${release}${shared_ext}$major'
14841 hardcode_into_libs=yes
14842 if test "$host_cpu" = ia64; then
14843 # AIX 5 supports IA64
14844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14845 shlibpath_var=LD_LIBRARY_PATH
14847 # With GCC up to 2.95.x, collect2 would create an import file
14848 # for dependence libraries. The import file would start with
14849 # the line `#! .'. This would cause the generated library to
14850 # depend on `.', always an invalid library. This was fixed in
14851 # development snapshots of GCC prior to 3.0.
14853 aix4 | aix4.[01] | aix4.[01].*)
14854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14859 can_build_shared=no
14863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14864 # soname into executable. Probably we can add versioning support to
14865 # collect2, so additional links can be useful in future.
14866 if test "$aix_use_runtimelinking" = yes; then
14867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14868 # instead of lib<name>.a to let people know that these are not
14869 # typical AIX shared libraries.
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 # We preserve .a as extension for shared libraries through AIX4.2
14873 # and later when we are not doing run time linking.
14874 library_names_spec='${libname}${release}.a $libname.a'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LIBPATH
14882 library_names_spec='$libname.ixlibrary $libname.a'
14883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14884 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'
14888 library_names_spec='${libname}${shared_ext}'
14889 dynamic_linker="$host_os ld.so"
14890 shlibpath_var=LIBRARY_PATH
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14902 # the default ld.so.conf also contains /usr/contrib/lib and
14903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14904 # libtool to hard-code these into programs
14907 cygwin* | mingw* | pw32*)
14908 version_type=windows
14913 case $GCC,$host_os in
14914 yes,cygwin* | yes,mingw* | yes,pw32*)
14915 library_names_spec='$libname.dll.a'
14916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14917 postinstall_cmds='base_file=`basename \${file}`~
14918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14919 dldir=$destdir/`dirname \$dlpath`~
14920 test -d \$dldir || mkdir -p \$dldir~
14921 $install_prog $dir/$dlname \$dldir/$dlname'
14922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14923 dlpath=$dir/\$dldll~
14925 shlibpath_overrides_runpath=yes
14929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14934 # MinGW DLLs use traditional 'lib' prefix
14935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14938 # It is most probably a Windows format PATH printed by
14939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14940 # path with ; separators, and with drive letters. We can handle the
14941 # drive letters (cygwin fileutils understands them), so leave them,
14942 # especially as we might pass files found there to a mingw objdump,
14943 # which wouldn't understand a cygwinified path. Ahh.
14944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14950 # pw32 DLLs use 'pw' prefix rather than 'lib'
14951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14960 dynamic_linker='Win32 ld.exe'
14961 # FIXME: first we should search . and the directory the executable is in
14965 darwin* | rhapsody*)
14966 dynamic_linker="$host_os dyld"
14967 version_type=darwin
14970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14971 soname_spec='${libname}${release}${major}$shared_ext'
14972 shlibpath_overrides_runpath=yes
14973 shlibpath_var=DYLD_LIBRARY_PATH
14974 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14976 if test "$GCC" = yes; then
14977 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"`
14979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 shlibpath_var=LD_LIBRARY_PATH
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 hardcode_into_libs=yes
15006 dynamic_linker='GNU ld.so'
15010 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15011 version_type=freebsd-$objformat
15012 case $version_type in
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15023 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=yes
15028 freebsd3.01* | freebsdelf3.01*)
15029 shlibpath_overrides_runpath=yes
15030 hardcode_into_libs=yes
15033 shlibpath_overrides_runpath=no
15034 hardcode_into_libs=yes
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 shlibpath_var=LD_LIBRARY_PATH
15046 hardcode_into_libs=yes
15049 hpux9* | hpux10* | hpux11*)
15050 # Give a soname corresponding to the major version so that dld.sl refuses to
15051 # link against other versions.
15055 case "$host_cpu" in
15058 hardcode_into_libs=yes
15059 dynamic_linker="$host_os dld.so"
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063 soname_spec='${libname}${release}${shared_ext}$major'
15064 if test "X$HPUX_IA64_MODE" = X32; then
15065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15073 hardcode_into_libs=yes
15074 dynamic_linker="$host_os dld.sl"
15075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15084 dynamic_linker="$host_os dld.sl"
15085 shlibpath_var=SHLIB_PATH
15086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15091 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15092 postinstall_cmds='chmod 555 $lib'
15095 irix5* | irix6* | nonstopux*)
15097 nonstopux*) version_type=nonstopux ;;
15099 if test "$lt_cv_prog_gnu_ld" = yes; then
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15110 irix5* | nonstopux*)
15111 libsuff= shlibsuff=
15114 case $LD in # libtool.m4 will add one of these switches to LD
15115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15116 libsuff= shlibsuff= libmagic=32-bit;;
15117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15118 libsuff=32 shlibsuff=N32 libmagic=N32;;
15119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15121 *) libsuff= shlibsuff= libmagic=never-match;;
15125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15126 shlibpath_overrides_runpath=no
15127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15129 hardcode_into_libs=yes
15132 # No shared lib support for Linux oldld, aout, or coff.
15133 linux*oldld* | linux*aout* | linux*coff*)
15137 # This must be Linux ELF.
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15145 shlibpath_var=LD_LIBRARY_PATH
15146 shlibpath_overrides_runpath=no
15147 # This implies no fast_install, which is unacceptable.
15148 # Some rework will be needed to allow for fast_install
15149 # before this can be enabled.
15150 hardcode_into_libs=yes
15152 # find out which ABI we are using
15154 case "$host_cpu" in
15155 x86_64*|s390x*|powerpc64*)
15156 echo '#line 15156 "configure"' > conftest.$ac_ext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; then
15162 case `/usr/bin/file conftest.$ac_objext` in
15165 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15173 # Append ld.so.conf contents to the search path
15174 if test -f /etc/ld.so.conf; then
15175 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15176 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15179 # We used to test for /lib/ld.so.1 and disable shared libraries on
15180 # powerpc, because MkLinux only supported shared libraries with the
15181 # GNU dynamic linker. Since this was broken with cross compilers,
15182 # most powerpc-linux boxes support dynamic linking these days and
15183 # people can always --disable-shared, the test was removed, and we
15184 # assume the GNU/Linux dynamic linker is in use.
15185 dynamic_linker='GNU/Linux ld.so'
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath=no
15196 hardcode_into_libs=yes
15197 dynamic_linker='GNU ld.so'
15204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15207 dynamic_linker='NetBSD (a.out) ld.so'
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 dynamic_linker='NetBSD ld.elf_so'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=yes
15215 hardcode_into_libs=yes
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 shlibpath_overrides_runpath=yes
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15244 openbsd2.[89] | openbsd2.[89].*)
15245 shlibpath_overrides_runpath=no
15248 shlibpath_overrides_runpath=yes
15252 shlibpath_overrides_runpath=yes
15257 libname_spec='$name'
15260 library_names_spec='$libname${shared_ext} $libname.a'
15261 dynamic_linker='OS/2 ld.exe'
15262 shlibpath_var=LIBPATH
15265 osf3* | osf4* | osf5*)
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 shlibpath_var=LD_LIBRARY_PATH
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes
15291 hardcode_into_libs=yes
15292 # ldd complains unless libraries are executable
15293 postinstall_cmds='chmod +x $lib'
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=yes
15302 if test "$with_gnu_ld" = yes; then
15308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 case $host_vendor in
15315 shlibpath_overrides_runpath=no
15317 export_dynamic_flag_spec='${wl}-Blargedynsym'
15318 runpath_var=LD_RUN_PATH
15326 shlibpath_overrides_runpath=no
15327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15333 if test -d /usr/nec ;then
15335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15336 soname_spec='$libname${shared_ext}.$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15352 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15353 echo "${ECHO_T}$dynamic_linker" >&6; }
15354 test "$dynamic_linker" = no && can_build_shared=no
15356 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15357 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15358 hardcode_action_F77=
15359 if test -n "$hardcode_libdir_flag_spec_F77" || \
15360 test -n "$runpath_var F77" || \
15361 test "X$hardcode_automatic_F77"="Xyes" ; then
15363 # We can hardcode non-existant directories.
15364 if test "$hardcode_direct_F77" != no &&
15365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15366 # have to relink, otherwise we might link with an installed library
15367 # when we should be linking with a yet-to-be-installed one
15368 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15369 test "$hardcode_minus_L_F77" != no; then
15370 # Linking always hardcodes the temporary library directory.
15371 hardcode_action_F77=relink
15373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15374 hardcode_action_F77=immediate
15377 # We cannot hardcode anything, or else we can only hardcode existing
15379 hardcode_action_F77=unsupported
15381 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15382 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15384 if test "$hardcode_action_F77" = relink; then
15385 # Fast installation is not supported
15386 enable_fast_install=no
15387 elif test "$shlibpath_overrides_runpath" = yes ||
15388 test "$enable_shared" = no; then
15389 # Fast installation is not necessary
15390 enable_fast_install=needless
15395 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15396 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15397 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15400 { echo "$as_me:$LINENO: result: yes" >&5
15401 echo "${ECHO_T}yes" >&6; }
15403 # FIXME - insert some real tests, host_os isn't really good enough
15406 if test -n "$STRIP" ; then
15407 striplib="$STRIP -x"
15408 { echo "$as_me:$LINENO: result: yes" >&5
15409 echo "${ECHO_T}yes" >&6; }
15411 { echo "$as_me:$LINENO: result: no" >&5
15412 echo "${ECHO_T}no" >&6; }
15416 { echo "$as_me:$LINENO: result: no" >&5
15417 echo "${ECHO_T}no" >&6; }
15424 # The else clause should only fire when bootstrapping the
15425 # libtool distribution, otherwise you forgot to ship ltmain.sh
15426 # with your package, and you will get complaints that there are
15427 # no rules to generate ltmain.sh.
15428 if test -f "$ltmain"; then
15429 # See if we are running on zsh, and set the options which allow our commands through
15430 # without removal of \ escapes.
15431 if test -n "${ZSH_VERSION+set}" ; then
15432 setopt NO_GLOB_SUBST
15434 # Now quote all the things that may contain metacharacters while being
15435 # careful not to overquote the AC_SUBSTed values. We take copies of the
15436 # variables and quote the copies for generation of the libtool script.
15437 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15441 deplibs_check_method reload_flag reload_cmds need_locks \
15442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15443 lt_cv_sys_global_symbol_to_c_name_address \
15444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15445 old_postinstall_cmds old_postuninstall_cmds \
15449 lt_prog_compiler_wl_F77 \
15450 lt_prog_compiler_pic_F77 \
15451 lt_prog_compiler_static_F77 \
15452 lt_prog_compiler_no_builtin_flag_F77 \
15453 export_dynamic_flag_spec_F77 \
15454 thread_safe_flag_spec_F77 \
15455 whole_archive_flag_spec_F77 \
15456 enable_shared_with_static_runtimes_F77 \
15457 old_archive_cmds_F77 \
15458 old_archive_from_new_cmds_F77 \
15459 predep_objects_F77 \
15460 postdep_objects_F77 \
15463 compiler_lib_search_path_F77 \
15465 archive_expsym_cmds_F77 \
15466 postinstall_cmds_F77 \
15467 postuninstall_cmds_F77 \
15468 old_archive_from_expsyms_cmds_F77 \
15469 allow_undefined_flag_F77 \
15470 no_undefined_flag_F77 \
15471 export_symbols_cmds_F77 \
15472 hardcode_libdir_flag_spec_F77 \
15473 hardcode_libdir_flag_spec_ld_F77 \
15474 hardcode_libdir_separator_F77 \
15475 hardcode_automatic_F77 \
15477 module_expsym_cmds_F77 \
15478 lt_cv_prog_compiler_c_o_F77 \
15479 exclude_expsyms_F77 \
15480 include_expsyms_F77; do
15483 old_archive_cmds_F77 | \
15484 old_archive_from_new_cmds_F77 | \
15485 archive_cmds_F77 | \
15486 archive_expsym_cmds_F77 | \
15487 module_cmds_F77 | \
15488 module_expsym_cmds_F77 | \
15489 old_archive_from_expsyms_cmds_F77 | \
15490 export_symbols_cmds_F77 | \
15491 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15492 postinstall_cmds | postuninstall_cmds | \
15493 old_postinstall_cmds | old_postuninstall_cmds | \
15494 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15495 # Double-quote double-evaled strings.
15496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15505 *'\$0 --fallback-echo"')
15506 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15512 cat <<__EOF__ >> "$cfgfile"
15513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15517 # Shell to use when invoking shell scripts.
15520 # Whether or not to build shared libraries.
15521 build_libtool_libs=$enable_shared
15523 # Whether or not to build static libraries.
15524 build_old_libs=$enable_static
15526 # Whether or not to add -lc for building shared libraries.
15527 build_libtool_need_lc=$archive_cmds_need_lc_F77
15529 # Whether or not to disallow shared libs when runtime libs are static
15530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15532 # Whether or not to optimize for fast installation.
15533 fast_install=$enable_fast_install
15536 host_alias=$host_alias
15539 # An echo program that does not interpret backslashes.
15544 AR_FLAGS=$lt_AR_FLAGS
15549 # A language-specific compiler.
15550 CC=$lt_compiler_F77
15552 # Is the compiler the GNU C compiler?
15558 # The linker used to build libraries.
15561 # Whether we need hard or soft links.
15564 # A BSD-compatible nm program.
15567 # A symbol stripping program
15570 # Used to examine libraries when file_magic_cmd begins "file"
15571 MAGIC_CMD=$MAGIC_CMD
15573 # Used on cygwin: DLL creation program.
15576 # Used on cygwin: object dumper.
15579 # Used on cygwin: assembler.
15582 # The name of the directory that contains temporary libtool files.
15585 # How to create reloadable object files.
15586 reload_flag=$lt_reload_flag
15587 reload_cmds=$lt_reload_cmds
15589 # How to pass a linker flag through the compiler.
15590 wl=$lt_lt_prog_compiler_wl_F77
15592 # Object file suffix (normally "o").
15593 objext="$ac_objext"
15595 # Old archive suffix (normally "a").
15598 # Shared library suffix (normally ".so").
15599 shrext_cmds='$shrext_cmds'
15601 # Executable file suffix (normally "").
15604 # Additional compiler flags for building library objects.
15605 pic_flag=$lt_lt_prog_compiler_pic_F77
15608 # What is the maximum length of a command?
15609 max_cmd_len=$lt_cv_sys_max_cmd_len
15611 # Does compiler simultaneously support -c and -o options?
15612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15614 # Must we lock files when doing compilation ?
15615 need_locks=$lt_need_locks
15617 # Do we need the lib prefix for modules?
15618 need_lib_prefix=$need_lib_prefix
15620 # Do we need a version for libraries?
15621 need_version=$need_version
15623 # Whether dlopen is supported.
15624 dlopen_support=$enable_dlopen
15626 # Whether dlopen of programs is supported.
15627 dlopen_self=$enable_dlopen_self
15629 # Whether dlopen of statically linked programs is supported.
15630 dlopen_self_static=$enable_dlopen_self_static
15632 # Compiler flag to prevent dynamic linking.
15633 link_static_flag=$lt_lt_prog_compiler_static_F77
15635 # Compiler flag to turn off builtin functions.
15636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15638 # Compiler flag to allow reflexive dlopens.
15639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15641 # Compiler flag to generate shared objects directly from archives.
15642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15644 # Compiler flag to generate thread-safe objects.
15645 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15647 # Library versioning type.
15648 version_type=$version_type
15650 # Format of library name prefix.
15651 libname_spec=$lt_libname_spec
15653 # List of archive names. First name is the real one, the rest are links.
15654 # The last name is the one that the linker finds with -lNAME.
15655 library_names_spec=$lt_library_names_spec
15657 # The coded name of the library, if different from the real name.
15658 soname_spec=$lt_soname_spec
15660 # Commands used to build and install an old-style archive.
15662 old_archive_cmds=$lt_old_archive_cmds_F77
15663 old_postinstall_cmds=$lt_old_postinstall_cmds
15664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15666 # Create an old-style archive from a shared archive.
15667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15669 # Create a temporary old-style archive to link instead of a shared archive.
15670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15672 # Commands used to build and install a shared archive.
15673 archive_cmds=$lt_archive_cmds_F77
15674 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15675 postinstall_cmds=$lt_postinstall_cmds
15676 postuninstall_cmds=$lt_postuninstall_cmds
15678 # Commands used to build a loadable module (assumed same as above if empty)
15679 module_cmds=$lt_module_cmds_F77
15680 module_expsym_cmds=$lt_module_expsym_cmds_F77
15682 # Commands to strip libraries.
15683 old_striplib=$lt_old_striplib
15684 striplib=$lt_striplib
15686 # Dependencies to place before the objects being linked to create a
15688 predep_objects=$lt_predep_objects_F77
15690 # Dependencies to place after the objects being linked to create a
15692 postdep_objects=$lt_postdep_objects_F77
15694 # Dependencies to place before the objects being linked to create a
15696 predeps=$lt_predeps_F77
15698 # Dependencies to place after the objects being linked to create a
15700 postdeps=$lt_postdeps_F77
15702 # The library search path used internally by the compiler when linking
15703 # a shared library.
15704 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15706 # Method to check whether dependent libraries are shared objects.
15707 deplibs_check_method=$lt_deplibs_check_method
15709 # Command to use when deplibs_check_method == file_magic.
15710 file_magic_cmd=$lt_file_magic_cmd
15712 # Flag that allows shared libraries with undefined symbols to be built.
15713 allow_undefined_flag=$lt_allow_undefined_flag_F77
15715 # Flag that forces no undefined symbols.
15716 no_undefined_flag=$lt_no_undefined_flag_F77
15718 # Commands used to finish a libtool library installation in a directory.
15719 finish_cmds=$lt_finish_cmds
15721 # Same as above, but a single script fragment to be evaled but not shown.
15722 finish_eval=$lt_finish_eval
15724 # Take the output of nm and produce a listing of raw symbols and C names.
15725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15727 # Transform the output of nm in a proper C declaration
15728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15730 # Transform the output of nm in a C name address pair
15731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15733 # This is the shared library runtime path variable.
15734 runpath_var=$runpath_var
15736 # This is the shared library path variable.
15737 shlibpath_var=$shlibpath_var
15739 # Is shlibpath searched before the hard-coded library search path?
15740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15742 # How to hardcode a shared library path into an executable.
15743 hardcode_action=$hardcode_action_F77
15745 # Whether we should hardcode library paths into libraries.
15746 hardcode_into_libs=$hardcode_into_libs
15748 # Flag to hardcode \$libdir into a binary during linking.
15749 # This must work even if \$libdir does not exist.
15750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15752 # If ld is used when linking, flag to hardcode \$libdir into
15753 # a binary during linking. This must work even if \$libdir does
15755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15757 # Whether we need a single -rpath flag with a separated argument.
15758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15760 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15761 # resulting binary.
15762 hardcode_direct=$hardcode_direct_F77
15764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15765 # resulting binary.
15766 hardcode_minus_L=$hardcode_minus_L_F77
15768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15769 # the resulting binary.
15770 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15772 # Set to yes if building a shared library automatically hardcodes DIR into the library
15773 # and all subsequent libraries and executables linked against it.
15774 hardcode_automatic=$hardcode_automatic_F77
15776 # Variables whose values should be saved in libtool wrapper scripts and
15777 # restored at relink time.
15778 variables_saved_for_relink="$variables_saved_for_relink"
15780 # Whether libtool must link a program against all its dependency libraries.
15781 link_all_deplibs=$link_all_deplibs_F77
15783 # Compile-time system search path for libraries
15784 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15786 # Run-time system search path for libraries
15787 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15789 # Fix the shell variable \$srcfile for the compiler.
15790 fix_srcfile_path="$fix_srcfile_path_F77"
15792 # Set to yes if exported symbols are required.
15793 always_export_symbols=$always_export_symbols_F77
15795 # The commands to list exported symbols.
15796 export_symbols_cmds=$lt_export_symbols_cmds_F77
15798 # The commands to extract the exported symbol list from a shared archive.
15799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15801 # Symbols that should not be listed in the preloaded symbols.
15802 exclude_expsyms=$lt_exclude_expsyms_F77
15804 # Symbols that must always be exported.
15805 include_expsyms=$lt_include_expsyms_F77
15807 # ### END LIBTOOL TAG CONFIG: $tagname
15813 # If there is no Makefile yet, we rely on a make rule to execute
15814 # `config.status --recheck' to rerun these tests and create the
15815 # libtool script then.
15816 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15817 if test -f "$ltmain_in"; then
15818 test -f Makefile && make "$ltmain"
15824 ac_cpp='$CPP $CPPFLAGS'
15825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15837 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15840 # Source file extension for Java test sources.
15843 # Object file extension for compiled Java test sources.
15847 # Code to be used in simple compile tests
15848 lt_simple_compile_test_code="class foo {}\n"
15850 # Code to be used in simple link tests
15851 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15855 # If no C compiler was specified, use CC.
15858 # Allow CC to be a program name with arguments.
15862 # Allow CC to be a program name with arguments.
15868 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15869 archive_cmds_need_lc_GCJ=no
15872 ## There is no encapsulation within the following macros, do not change
15873 ## the running order or otherwise move them around unless you know exactly
15874 ## what you are doing...
15876 lt_prog_compiler_no_builtin_flag_GCJ=
15878 if test "$GCC" = yes; then
15879 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15882 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15883 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15884 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 lt_cv_prog_compiler_rtti_exceptions=no
15888 ac_outfile=conftest.$ac_objext
15889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15890 lt_compiler_flag="-fno-rtti -fno-exceptions"
15891 # Insert the option either (1) after the last *FLAGS variable, or
15892 # (2) before a word containing "conftest.", or (3) at the end.
15893 # Note that $ac_compile itself does not contain backslashes and begins
15894 # with a dollar sign (not a hyphen), so the echo should work correctly.
15895 # The option is referenced via a variable to avoid confusing sed.
15896 lt_compile=`echo "$ac_compile" | $SED \
15897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15899 -e 's:$: $lt_compiler_flag:'`
15900 (eval echo "\"\$as_me:15900: $lt_compile\"" >&5)
15901 (eval "$lt_compile" 2>conftest.err)
15903 cat conftest.err >&5
15904 echo "$as_me:15904: \$? = $ac_status" >&5
15905 if (exit $ac_status) && test -s "$ac_outfile"; then
15906 # The compiler can only warn and ignore the option if not recognized
15907 # So say no if there are warnings
15908 if test ! -s conftest.err; then
15909 lt_cv_prog_compiler_rtti_exceptions=yes
15915 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15916 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15919 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15926 lt_prog_compiler_wl_GCJ=
15927 lt_prog_compiler_pic_GCJ=
15928 lt_prog_compiler_static_GCJ=
15930 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15933 if test "$GCC" = yes; then
15934 lt_prog_compiler_wl_GCJ='-Wl,'
15935 lt_prog_compiler_static_GCJ='-static'
15939 # All AIX code is PIC.
15940 if test "$host_cpu" = ia64; then
15941 # AIX 5 now supports IA64 processor
15942 lt_prog_compiler_static_GCJ='-Bstatic'
15947 # FIXME: we need at least 68020 code to build shared libraries, but
15948 # adding the `-m68020' flag to GCC prevents building anything better,
15950 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15953 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15954 # PIC is the default for these OSes.
15957 mingw* | pw32* | os2*)
15958 # This hack is so that the source file can tell whether it is being
15959 # built for inclusion in a dll (and should export symbols for example).
15960 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15963 darwin* | rhapsody*)
15964 # PIC is the default on this platform
15965 # Common symbols not allowed in MH_DYLIB files
15966 lt_prog_compiler_pic_GCJ='-fno-common'
15970 # Just because we use GCC doesn't mean we suddenly get shared libraries
15971 # on systems that don't support them.
15972 lt_prog_compiler_can_build_shared_GCJ=no
15977 if test -d /usr/nec; then
15978 lt_prog_compiler_pic_GCJ=-Kconform_pic
15983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15984 # not for PA HP-UX.
15985 case "$host_cpu" in
15990 lt_prog_compiler_pic_GCJ='-fPIC'
15996 lt_prog_compiler_pic_GCJ='-fPIC'
16000 # PORTME Check for flag to pass linker flags through the system compiler.
16003 lt_prog_compiler_wl_GCJ='-Wl,'
16004 if test "$host_cpu" = ia64; then
16005 # AIX 5 now supports IA64 processor
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16008 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16012 mingw* | pw32* | os2*)
16013 # This hack is so that the source file can tell whether it is being
16014 # built for inclusion in a dll (and should export symbols for example).
16015 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16018 hpux9* | hpux10* | hpux11*)
16019 lt_prog_compiler_wl_GCJ='-Wl,'
16020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16021 # not for PA HP-UX.
16022 case "$host_cpu" in
16027 lt_prog_compiler_pic_GCJ='+Z'
16030 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16031 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16034 irix5* | irix6* | nonstopux*)
16035 lt_prog_compiler_wl_GCJ='-Wl,'
16036 # PIC (with -KPIC) is the default.
16037 lt_prog_compiler_static_GCJ='-non_shared'
16041 lt_prog_compiler_pic_GCJ='-KPIC'
16042 lt_prog_compiler_static_GCJ='-Bstatic'
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 lt_prog_compiler_pic_GCJ='-KPIC'
16050 lt_prog_compiler_static_GCJ='-static'
16053 lt_prog_compiler_wl_GCJ='-Wl,'
16054 # All Alpha code is PIC.
16055 lt_prog_compiler_static_GCJ='-non_shared'
16060 osf3* | osf4* | osf5*)
16061 lt_prog_compiler_wl_GCJ='-Wl,'
16062 # All OSF/1 code is PIC.
16063 lt_prog_compiler_static_GCJ='-non_shared'
16067 lt_prog_compiler_pic_GCJ='-Kpic'
16068 lt_prog_compiler_static_GCJ='-dn'
16072 lt_prog_compiler_wl_GCJ='-Wl,'
16073 lt_prog_compiler_pic_GCJ='-KPIC'
16074 lt_prog_compiler_static_GCJ='-Bstatic'
16078 lt_prog_compiler_wl_GCJ='-Qoption ld '
16079 lt_prog_compiler_pic_GCJ='-PIC'
16080 lt_prog_compiler_static_GCJ='-Bstatic'
16083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16084 lt_prog_compiler_wl_GCJ='-Wl,'
16085 lt_prog_compiler_pic_GCJ='-KPIC'
16086 lt_prog_compiler_static_GCJ='-Bstatic'
16090 if test -d /usr/nec ;then
16091 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16092 lt_prog_compiler_static_GCJ='-Bstatic'
16097 lt_prog_compiler_pic_GCJ='-pic'
16098 lt_prog_compiler_static_GCJ='-Bstatic'
16102 lt_prog_compiler_can_build_shared_GCJ=no
16107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16108 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16111 # Check to make sure the PIC flag actually works.
16113 if test -n "$lt_prog_compiler_pic_GCJ"; then
16115 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16117 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 lt_prog_compiler_pic_works_GCJ=no
16121 ac_outfile=conftest.$ac_objext
16122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16123 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16124 # Insert the option either (1) after the last *FLAGS variable, or
16125 # (2) before a word containing "conftest.", or (3) at the end.
16126 # Note that $ac_compile itself does not contain backslashes and begins
16127 # with a dollar sign (not a hyphen), so the echo should work correctly.
16128 # The option is referenced via a variable to avoid confusing sed.
16129 lt_compile=`echo "$ac_compile" | $SED \
16130 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16132 -e 's:$: $lt_compiler_flag:'`
16133 (eval echo "\"\$as_me:16133: $lt_compile\"" >&5)
16134 (eval "$lt_compile" 2>conftest.err)
16136 cat conftest.err >&5
16137 echo "$as_me:16137: \$? = $ac_status" >&5
16138 if (exit $ac_status) && test -s "$ac_outfile"; then
16139 # The compiler can only warn and ignore the option if not recognized
16140 # So say no if there are warnings
16141 if test ! -s conftest.err; then
16142 lt_prog_compiler_pic_works_GCJ=yes
16148 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16149 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16151 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16152 case $lt_prog_compiler_pic_GCJ in
16154 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_can_build_shared_GCJ=no
16163 # For platforms which do not support PIC, -DPIC is meaningless:
16165 lt_prog_compiler_pic_GCJ=
16168 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16172 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16173 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16174 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 lt_cv_prog_compiler_c_o_GCJ=no
16178 $rm -r conftest 2>/dev/null
16182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16184 lt_compiler_flag="-o out/conftest2.$ac_objext"
16185 # Insert the option either (1) after the last *FLAGS variable, or
16186 # (2) before a word containing "conftest.", or (3) at the end.
16187 # Note that $ac_compile itself does not contain backslashes and begins
16188 # with a dollar sign (not a hyphen), so the echo should work correctly.
16189 lt_compile=`echo "$ac_compile" | $SED \
16190 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16192 -e 's:$: $lt_compiler_flag:'`
16193 (eval echo "\"\$as_me:16193: $lt_compile\"" >&5)
16194 (eval "$lt_compile" 2>out/conftest.err)
16196 cat out/conftest.err >&5
16197 echo "$as_me:16197: \$? = $ac_status" >&5
16198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16200 # The compiler can only warn and ignore the option if not recognized
16201 # So say no if there are warnings
16202 if test ! -s out/conftest.err; then
16203 lt_cv_prog_compiler_c_o_GCJ=yes
16208 # SGI C++ compiler will create directory out/ii_files/ for
16209 # template instantiation
16210 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16211 $rm out/* && rmdir out
16217 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16221 hard_links="nottested"
16222 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16223 # do not overwrite the value of need_locks provided by the user
16224 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16230 ln conftest.a conftest.b 2>&5 || hard_links=no
16231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16232 { echo "$as_me:$LINENO: result: $hard_links" >&5
16233 echo "${ECHO_T}$hard_links" >&6; }
16234 if test "$hard_links" = no; then
16235 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16236 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16243 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16247 allow_undefined_flag_GCJ=
16248 enable_shared_with_static_runtimes_GCJ=no
16250 archive_expsym_cmds_GCJ=
16251 old_archive_From_new_cmds_GCJ=
16252 old_archive_from_expsyms_cmds_GCJ=
16253 export_dynamic_flag_spec_GCJ=
16254 whole_archive_flag_spec_GCJ=
16255 thread_safe_flag_spec_GCJ=
16256 hardcode_libdir_flag_spec_GCJ=
16257 hardcode_libdir_flag_spec_ld_GCJ=
16258 hardcode_libdir_separator_GCJ=
16259 hardcode_direct_GCJ=no
16260 hardcode_minus_L_GCJ=no
16261 hardcode_shlibpath_var_GCJ=unsupported
16262 link_all_deplibs_GCJ=unknown
16263 hardcode_automatic_GCJ=no
16265 module_expsym_cmds_GCJ=
16266 always_export_symbols_GCJ=no
16267 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16268 # include_expsyms should be a list of space-separated symbols to be *always*
16269 # included in the symbol list
16270 include_expsyms_GCJ=
16271 # exclude_expsyms can be an extended regexp of symbols to exclude
16272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16274 # as well as any symbol that contains `d'.
16275 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16277 # platforms (ab)use it in PIC code, but their linkers get confused if
16278 # the symbol is explicitly referenced. Since portable code cannot
16279 # rely on this symbol name, it's probably fine to never include it in
16280 # preloaded symbol tables.
16281 extract_expsyms_cmds=
16284 cygwin* | mingw* | pw32*)
16285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16286 # When not using gcc, we currently assume that we are using
16287 # Microsoft Visual C++.
16288 if test "$GCC" != yes; then
16298 if test "$with_gnu_ld" = yes; then
16299 # If archive_cmds runs LD, not CC, wlarc should be empty
16302 # See if GNU ld supports shared libraries.
16304 aix3* | aix4* | aix5*)
16305 # On AIX/PPC, the GNU linker is very broken
16306 if test "$host_cpu" != ia64; then
16310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16311 *** to be unable to reliably create shared libraries on AIX.
16312 *** Therefore, libtool is disabling shared libraries support. If you
16313 *** really care for shared libraries, you may want to modify your PATH
16314 *** so that a non-GNU linker is found, and then restart.
16321 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)'
16322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323 hardcode_minus_L_GCJ=yes
16325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16326 # that the semantics of dynamic libraries on AmigaOS, at least up
16327 # to version 4, is to share data among multiple programs linked
16328 # with the same dynamic library. Since this doesn't match the
16329 # behavior of shared libraries on other platforms, we can't use
16335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16336 allow_undefined_flag_GCJ=unsupported
16337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16338 # support --undefined. This deserves some investigation. FIXME
16339 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16345 cygwin* | mingw* | pw32*)
16346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16347 # as there is no search path for DLLs.
16348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16349 allow_undefined_flag_GCJ=unsupported
16350 always_export_symbols_GCJ=no
16351 enable_shared_with_static_runtimes_GCJ=yes
16352 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16355 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16356 # If the export-symbols file already is a .def file (1st line
16357 # is EXPORTS), use it as is; otherwise, prepend...
16358 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16359 cp $export_symbols $output_objdir/$soname.def;
16361 echo EXPORTS > $output_objdir/$soname.def;
16362 cat $export_symbols >> $output_objdir/$soname.def;
16364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16372 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16381 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16386 *** create shared libraries on Solaris systems. Therefore, libtool
16387 *** is disabling shared libraries support. We urge you to upgrade GNU
16388 *** binutils to release 2.9.1 or newer. Another option is to modify
16389 *** your PATH or compiler configuration so that the native linker is
16390 *** used, and then restart.
16393 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16395 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16402 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16404 hardcode_direct_GCJ=yes
16405 hardcode_shlibpath_var_GCJ=no
16409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16410 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411 archive_cmds_GCJ="$tmp_archive_cmds"
16412 supports_anon_versioning=no
16413 case `$LD -v 2>/dev/null` in
16414 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16417 *\ 2.11.*) ;; # other 2.11 versions
16418 *) supports_anon_versioning=yes ;;
16420 if test $supports_anon_versioning = yes; then
16421 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16423 $echo "local: *; };" >> $output_objdir/$libname.ver~
16424 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16426 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16443 if test "$ld_shlibs_GCJ" = yes; then
16444 runpath_var=LD_RUN_PATH
16445 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16446 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16447 # ancient GNU ld didn't support --whole-archive et. al.
16448 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16449 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16451 whole_archive_flag_spec_GCJ=
16455 # PORTME fill in a description of your system's linker (not GNU ld)
16458 allow_undefined_flag_GCJ=unsupported
16459 always_export_symbols_GCJ=yes
16460 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'
16461 # Note: this linker hardcodes the directories in LIBPATH if there
16462 # are no directories specified by -L.
16463 hardcode_minus_L_GCJ=yes
16464 if test "$GCC" = yes && test -z "$link_static_flag"; then
16465 # Neither direct hardcoding nor static linking is supported with a
16467 hardcode_direct_GCJ=unsupported
16472 if test "$host_cpu" = ia64; then
16473 # On IA64, the linker does run time linking by default, so we don't
16474 # have to do anything special.
16475 aix_use_runtimelinking=no
16476 exp_sym_flag='-Bexport'
16479 # If we're using GNU nm, then we don't want the "-C" option.
16480 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16481 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16482 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'
16484 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'
16486 aix_use_runtimelinking=no
16488 # Test if we are trying to use run time linking or normal
16489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16490 # need to do runtime linking.
16491 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16492 for ld_flag in $LDFLAGS; do
16493 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16494 aix_use_runtimelinking=yes
16500 exp_sym_flag='-bexport'
16501 no_entry_flag='-bnoentry'
16504 # When large executables or shared objects are built, AIX ld can
16505 # have problems creating the table of contents. If linking a library
16506 # or program results in "error TOC overflow" add -mminimal-toc to
16507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16510 archive_cmds_GCJ=''
16511 hardcode_direct_GCJ=yes
16512 hardcode_libdir_separator_GCJ=':'
16513 link_all_deplibs_GCJ=yes
16515 if test "$GCC" = yes; then
16516 case $host_os in aix4.012|aix4.012.*)
16517 # We only want to do this on AIX 4.2 and lower, the check
16518 # below for broken collect2 doesn't work under 4.3+
16519 collect2name=`${CC} -print-prog-name=collect2`
16520 if test -f "$collect2name" && \
16521 strings "$collect2name" | grep resolve_lib_name >/dev/null
16523 # We have reworked collect2
16524 hardcode_direct_GCJ=yes
16526 # We have old collect2
16527 hardcode_direct_GCJ=unsupported
16528 # It fails to find uninstalled libraries when the uninstalled
16529 # path is not listed in the libpath. Setting hardcode_minus_L
16530 # to unsupported forces relinking
16531 hardcode_minus_L_GCJ=yes
16532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16533 hardcode_libdir_separator_GCJ=
16536 shared_flag='-shared'
16539 if test "$host_cpu" = ia64; then
16540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16541 # chokes on -Wl,-G. The following line is correct:
16544 if test "$aix_use_runtimelinking" = yes; then
16545 shared_flag='${wl}-G'
16547 shared_flag='${wl}-bM:SRE'
16552 # It seems that -bexpall does not export symbols beginning with
16553 # underscore (_), so it is better to generate a list of symbols to export.
16554 always_export_symbols_GCJ=yes
16555 if test "$aix_use_runtimelinking" = yes; then
16556 # Warning - without using the other runtime loading flags (-brtl),
16557 # -berok will link without error, but may produce a broken library.
16558 allow_undefined_flag_GCJ='-berok'
16559 # Determine the default libpath from the value encoded in an empty executable.
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_link") 2>conftest.er1
16584 grep -v '^ *+' conftest.er1 >conftest.err
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && {
16589 test -z "$ac_c_werror_flag" ||
16590 test ! -s conftest.err
16591 } && test -s conftest$ac_exeext &&
16592 $as_test_x conftest$ac_exeext; then
16594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16596 # Check for a 64-bit object if we didn't find anything.
16597 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; }
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16607 conftest$ac_exeext conftest.$ac_ext
16608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16610 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16611 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"
16613 if test "$host_cpu" = ia64; then
16614 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16615 allow_undefined_flag_GCJ="-z nodefs"
16616 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"
16618 # Determine the default libpath from the value encoded in an empty executable.
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (ac_try="$ac_link"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_link") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1 >conftest.err
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest$ac_exeext &&
16651 $as_test_x conftest$ac_exeext; then
16653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16655 # Check for a 64-bit object if we didn't find anything.
16656 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; }
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666 conftest$ac_exeext conftest.$ac_ext
16667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16669 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16670 # Warning - without using the other run time loading flags,
16671 # -berok will link without error, but may produce a broken library.
16672 no_undefined_flag_GCJ=' ${wl}-bernotok'
16673 allow_undefined_flag_GCJ=' ${wl}-berok'
16674 # -bexpall does not export symbols beginning with underscore (_)
16675 always_export_symbols_GCJ=yes
16676 # Exported symbols can be pulled into shared objects from archives
16677 whole_archive_flag_spec_GCJ=' '
16678 archive_cmds_need_lc_GCJ=yes
16679 # This is similar to how AIX traditionally builds it's shared libraries.
16680 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'
16686 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)'
16687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16688 hardcode_minus_L_GCJ=yes
16689 # see comment about different semantics on the GNU ld section
16694 export_dynamic_flag_spec_GCJ=-rdynamic
16697 cygwin* | mingw* | pw32*)
16698 # When not using gcc, we currently assume that we are using
16699 # Microsoft Visual C++.
16700 # hardcode_libdir_flag_spec is actually meaningless, as there is
16701 # no search path for DLLs.
16702 hardcode_libdir_flag_spec_GCJ=' '
16703 allow_undefined_flag_GCJ=unsupported
16704 # Tell ltmain to make .lib files, not .a files.
16706 # Tell ltmain to make .dll files, not .so files.
16708 # FIXME: Setting linknames here is a bad hack.
16709 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16710 # The linker will automatically build a .lib file if we build a DLL.
16711 old_archive_From_new_cmds_GCJ='true'
16712 # FIXME: Should let the user specify the lib program.
16713 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16714 fix_srcfile_path='`cygpath -w "$srcfile"`'
16715 enable_shared_with_static_runtimes_GCJ=yes
16718 darwin* | rhapsody*)
16719 if test "$GXX" = yes ; then
16720 archive_cmds_need_lc_GCJ=no
16722 rhapsody* | darwin1.[012])
16723 allow_undefined_flag_GCJ='-undefined suppress'
16726 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16727 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16729 case ${MACOSX_DEPLOYMENT_TARGET} in
16731 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16734 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16740 lt_int_apple_cc_single_mod=no
16741 output_verbose_link_cmd='echo'
16742 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16743 lt_int_apple_cc_single_mod=yes
16745 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16746 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16748 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'
16750 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16751 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16752 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16753 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}'
16755 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}'
16757 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}'
16758 hardcode_direct_GCJ=no
16759 hardcode_automatic_GCJ=yes
16760 hardcode_shlibpath_var_GCJ=unsupported
16761 whole_archive_flag_spec_GCJ='-all_load $convenience'
16762 link_all_deplibs_GCJ=yes
16769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16771 hardcode_shlibpath_var_GCJ=no
16778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16779 # support. Future versions do this automatically, but an explicit c++rt0.o
16780 # does not break anything, and helps significantly (at the cost of a little
16783 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16785 hardcode_direct_GCJ=yes
16786 hardcode_shlibpath_var_GCJ=no
16789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16791 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16792 hardcode_direct_GCJ=yes
16793 hardcode_minus_L_GCJ=yes
16794 hardcode_shlibpath_var_GCJ=no
16797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16798 freebsd* | kfreebsd*-gnu)
16799 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16800 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16801 hardcode_direct_GCJ=yes
16802 hardcode_shlibpath_var_GCJ=no
16806 if test "$GCC" = yes; then
16807 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'
16809 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'
16811 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16812 hardcode_libdir_separator_GCJ=:
16813 hardcode_direct_GCJ=yes
16815 # hardcode_minus_L: Not really in the search PATH,
16816 # but as the default location of the library.
16817 hardcode_minus_L_GCJ=yes
16818 export_dynamic_flag_spec_GCJ='${wl}-E'
16822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16823 case "$host_cpu" in
16825 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16828 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16832 case "$host_cpu" in
16834 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16841 if test "$with_gnu_ld" = no; then
16842 case "$host_cpu" in
16844 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16845 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16846 hardcode_libdir_separator_GCJ=:
16847 hardcode_direct_GCJ=no
16848 hardcode_shlibpath_var_GCJ=no
16851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16852 hardcode_direct_GCJ=no
16853 hardcode_shlibpath_var_GCJ=no
16855 # hardcode_minus_L: Not really in the search PATH,
16856 # but as the default location of the library.
16857 hardcode_minus_L_GCJ=yes
16860 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16861 hardcode_libdir_separator_GCJ=:
16862 hardcode_direct_GCJ=yes
16863 export_dynamic_flag_spec_GCJ='${wl}-E'
16865 # hardcode_minus_L: Not really in the search PATH,
16866 # but as the default location of the library.
16867 hardcode_minus_L_GCJ=yes
16873 irix5* | irix6* | nonstopux*)
16874 if test "$GCC" = yes; then
16875 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'
16877 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'
16878 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16880 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16881 hardcode_libdir_separator_GCJ=:
16882 link_all_deplibs_GCJ=yes
16886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16887 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16889 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16891 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16892 hardcode_direct_GCJ=yes
16893 hardcode_shlibpath_var_GCJ=no
16897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_direct_GCJ=yes
16899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16900 hardcode_libdir_separator_GCJ=:
16901 hardcode_shlibpath_var_GCJ=no
16905 hardcode_direct_GCJ=yes
16906 hardcode_shlibpath_var_GCJ=no
16907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16908 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16910 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16914 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16918 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16919 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16927 hardcode_minus_L_GCJ=yes
16928 allow_undefined_flag_GCJ=unsupported
16929 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'
16930 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16934 if test "$GCC" = yes; then
16935 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16936 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'
16938 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16939 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'
16941 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16942 hardcode_libdir_separator_GCJ=:
16945 osf4* | osf5*) # as osf3* with the addition of -msym flag
16946 if test "$GCC" = yes; then
16947 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16948 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'
16949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16951 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16952 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'
16953 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~
16954 $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'
16956 # Both c and cxx compiler support -rpath directly
16957 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16959 hardcode_libdir_separator_GCJ=:
16963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964 hardcode_shlibpath_var_GCJ=no
16965 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16966 runpath_var=LD_RUN_PATH
16967 hardcode_runpath_var=yes
16971 no_undefined_flag_GCJ=' -z text'
16972 if test "$GCC" = yes; then
16973 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16977 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16978 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982 hardcode_shlibpath_var_GCJ=no
16984 solaris2.[0-5] | solaris2.[0-5].*) ;;
16985 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16986 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16988 link_all_deplibs_GCJ=yes
16992 if test "x$host_vendor" = xsequent; then
16993 # Use $CC to link under sequent, because it throws in some extra .o
16994 # files that make .init and .fini sections work.
16995 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16997 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16999 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17000 hardcode_direct_GCJ=yes
17001 hardcode_minus_L_GCJ=yes
17002 hardcode_shlibpath_var_GCJ=no
17006 case $host_vendor in
17008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17009 hardcode_direct_GCJ=yes # is this really true???
17012 ## LD is ld it makes a PLAMLIB
17013 ## CC just makes a GrossModule.
17014 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17015 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17016 hardcode_direct_GCJ=no
17019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17023 runpath_var='LD_RUN_PATH'
17024 hardcode_shlibpath_var_GCJ=no
17028 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17029 hardcode_shlibpath_var_GCJ=no
17030 export_dynamic_flag_spec_GCJ='-Bexport'
17034 if test -d /usr/nec; then
17035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_shlibpath_var_GCJ=no
17037 runpath_var=LD_RUN_PATH
17038 hardcode_runpath_var=yes
17044 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17045 hardcode_direct_GCJ=yes
17046 hardcode_minus_L_GCJ=no
17047 hardcode_shlibpath_var_GCJ=no
17048 hardcode_runpath_var=yes
17049 runpath_var=LD_RUN_PATH
17052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17053 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17054 if test "$GCC" = yes; then
17055 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 runpath_var='LD_RUN_PATH'
17060 hardcode_shlibpath_var_GCJ=no
17064 no_undefined_flag_GCJ=' -z text'
17065 # $CC -shared without GNU ld will not create a library from C++
17066 # object files and a static libstdc++, better avoid it by now
17067 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17070 hardcode_libdir_flag_spec_GCJ=
17071 hardcode_shlibpath_var_GCJ=no
17072 runpath_var='LD_RUN_PATH'
17076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17078 hardcode_shlibpath_var_GCJ=no
17087 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17088 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17089 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17092 if test "$GCC" = yes; then
17093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17097 # Do we need to explicitly link libc?
17099 case "x$archive_cmds_need_lc_GCJ" in
17101 # Assume -lc should be added
17102 archive_cmds_need_lc_GCJ=yes
17104 if test "$enable_shared" = yes && test "$GCC" = yes; then
17105 case $archive_cmds_GCJ in
17107 # FIXME: we may have to deal with multi-command sequences.
17110 # Test whether the compiler implicitly links with -lc since on some
17111 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17112 # to ld, don't add -lc before -lgcc.
17113 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17114 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } 2>conftest.err; then
17125 libobjs=conftest.$ac_objext
17127 wl=$lt_prog_compiler_wl_GCJ
17133 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17134 allow_undefined_flag_GCJ=
17135 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17136 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }
17141 archive_cmds_need_lc_GCJ=no
17143 archive_cmds_need_lc_GCJ=yes
17145 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17147 cat conftest.err 1>&5
17150 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17151 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17158 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17160 library_names_spec=
17161 libname_spec='lib$name'
17165 postuninstall_cmds=
17169 shlibpath_overrides_runpath=unknown
17171 dynamic_linker="$host_os ld.so"
17172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17173 if test "$GCC" = yes; then
17174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17175 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17176 # if the path contains ";" then we assume it to be the separator
17177 # otherwise default to the standard path separator (i.e. ":") - it is
17178 # assumed that no part of a normal pathname contains ";" but that should
17179 # okay in the real world where ";" in dirpaths is itself problematic.
17180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17187 need_lib_prefix=unknown
17188 hardcode_into_libs=no
17190 # when you set need_version to no, make sure it does not cause -set_version
17191 # flags to be left without arguments
17192 need_version=unknown
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17198 shlibpath_var=LIBPATH
17200 # AIX 3 has no versioning support, so we append a major version to the name.
17201 soname_spec='${libname}${release}${shared_ext}$major'
17208 hardcode_into_libs=yes
17209 if test "$host_cpu" = ia64; then
17210 # AIX 5 supports IA64
17211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17214 # With GCC up to 2.95.x, collect2 would create an import file
17215 # for dependence libraries. The import file would start with
17216 # the line `#! .'. This would cause the generated library to
17217 # depend on `.', always an invalid library. This was fixed in
17218 # development snapshots of GCC prior to 3.0.
17220 aix4 | aix4.[01] | aix4.[01].*)
17221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17226 can_build_shared=no
17230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17231 # soname into executable. Probably we can add versioning support to
17232 # collect2, so additional links can be useful in future.
17233 if test "$aix_use_runtimelinking" = yes; then
17234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17235 # instead of lib<name>.a to let people know that these are not
17236 # typical AIX shared libraries.
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 # We preserve .a as extension for shared libraries through AIX4.2
17240 # and later when we are not doing run time linking.
17241 library_names_spec='${libname}${release}.a $libname.a'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17244 shlibpath_var=LIBPATH
17249 library_names_spec='$libname.ixlibrary $libname.a'
17250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17251 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'
17255 library_names_spec='${libname}${shared_ext}'
17256 dynamic_linker="$host_os ld.so"
17257 shlibpath_var=LIBRARY_PATH
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17269 # the default ld.so.conf also contains /usr/contrib/lib and
17270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17271 # libtool to hard-code these into programs
17274 cygwin* | mingw* | pw32*)
17275 version_type=windows
17280 case $GCC,$host_os in
17281 yes,cygwin* | yes,mingw* | yes,pw32*)
17282 library_names_spec='$libname.dll.a'
17283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17284 postinstall_cmds='base_file=`basename \${file}`~
17285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17286 dldir=$destdir/`dirname \$dlpath`~
17287 test -d \$dldir || mkdir -p \$dldir~
17288 $install_prog $dir/$dlname \$dldir/$dlname'
17289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17290 dlpath=$dir/\$dldll~
17292 shlibpath_overrides_runpath=yes
17296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17301 # MinGW DLLs use traditional 'lib' prefix
17302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17303 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17304 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17305 # It is most probably a Windows format PATH printed by
17306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17307 # path with ; separators, and with drive letters. We can handle the
17308 # drive letters (cygwin fileutils understands them), so leave them,
17309 # especially as we might pass files found there to a mingw objdump,
17310 # which wouldn't understand a cygwinified path. Ahh.
17311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17317 # pw32 DLLs use 'pw' prefix rather than 'lib'
17318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17327 dynamic_linker='Win32 ld.exe'
17328 # FIXME: first we should search . and the directory the executable is in
17332 darwin* | rhapsody*)
17333 dynamic_linker="$host_os dyld"
17334 version_type=darwin
17337 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17338 soname_spec='${libname}${release}${major}$shared_ext'
17339 shlibpath_overrides_runpath=yes
17340 shlibpath_var=DYLD_LIBRARY_PATH
17341 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17342 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17343 if test "$GCC" = yes; then
17344 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"`
17346 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 shlibpath_var=LD_LIBRARY_PATH
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=no
17372 hardcode_into_libs=yes
17373 dynamic_linker='GNU ld.so'
17377 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17378 version_type=freebsd-$objformat
17379 case $version_type in
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17390 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=yes
17395 freebsd3.01* | freebsdelf3.01*)
17396 shlibpath_overrides_runpath=yes
17397 hardcode_into_libs=yes
17400 shlibpath_overrides_runpath=no
17401 hardcode_into_libs=yes
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17411 soname_spec='${libname}${release}${shared_ext}$major'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 hardcode_into_libs=yes
17416 hpux9* | hpux10* | hpux11*)
17417 # Give a soname corresponding to the major version so that dld.sl refuses to
17418 # link against other versions.
17422 case "$host_cpu" in
17425 hardcode_into_libs=yes
17426 dynamic_linker="$host_os dld.so"
17427 shlibpath_var=LD_LIBRARY_PATH
17428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 if test "X$HPUX_IA64_MODE" = X32; then
17432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17440 hardcode_into_libs=yes
17441 dynamic_linker="$host_os dld.sl"
17442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17451 dynamic_linker="$host_os dld.sl"
17452 shlibpath_var=SHLIB_PATH
17453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17458 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17459 postinstall_cmds='chmod 555 $lib'
17462 irix5* | irix6* | nonstopux*)
17464 nonstopux*) version_type=nonstopux ;;
17466 if test "$lt_cv_prog_gnu_ld" = yes; then
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17477 irix5* | nonstopux*)
17478 libsuff= shlibsuff=
17481 case $LD in # libtool.m4 will add one of these switches to LD
17482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17483 libsuff= shlibsuff= libmagic=32-bit;;
17484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17485 libsuff=32 shlibsuff=N32 libmagic=N32;;
17486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17488 *) libsuff= shlibsuff= libmagic=never-match;;
17492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17493 shlibpath_overrides_runpath=no
17494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17496 hardcode_into_libs=yes
17499 # No shared lib support for Linux oldld, aout, or coff.
17500 linux*oldld* | linux*aout* | linux*coff*)
17504 # This must be Linux ELF.
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=no
17514 # This implies no fast_install, which is unacceptable.
17515 # Some rework will be needed to allow for fast_install
17516 # before this can be enabled.
17517 hardcode_into_libs=yes
17519 # find out which ABI we are using
17521 case "$host_cpu" in
17522 x86_64*|s390x*|powerpc64*)
17523 echo '#line 17523 "configure"' > conftest.$ac_ext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; then
17529 case `/usr/bin/file conftest.$ac_objext` in
17532 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17540 # Append ld.so.conf contents to the search path
17541 if test -f /etc/ld.so.conf; then
17542 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17543 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17546 # We used to test for /lib/ld.so.1 and disable shared libraries on
17547 # powerpc, because MkLinux only supported shared libraries with the
17548 # GNU dynamic linker. Since this was broken with cross compilers,
17549 # most powerpc-linux boxes support dynamic linking these days and
17550 # people can always --disable-shared, the test was removed, and we
17551 # assume the GNU/Linux dynamic linker is in use.
17552 dynamic_linker='GNU/Linux ld.so'
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=no
17563 hardcode_into_libs=yes
17564 dynamic_linker='GNU ld.so'
17571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17574 dynamic_linker='NetBSD (a.out) ld.so'
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 dynamic_linker='NetBSD ld.elf_so'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes
17582 hardcode_into_libs=yes
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=yes
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 shlibpath_overrides_runpath=yes
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17611 openbsd2.[89] | openbsd2.[89].*)
17612 shlibpath_overrides_runpath=no
17615 shlibpath_overrides_runpath=yes
17619 shlibpath_overrides_runpath=yes
17624 libname_spec='$name'
17627 library_names_spec='$libname${shared_ext} $libname.a'
17628 dynamic_linker='OS/2 ld.exe'
17629 shlibpath_var=LIBPATH
17632 osf3* | osf4* | osf5*)
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647 shlibpath_var=LD_LIBRARY_PATH
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath=yes
17658 hardcode_into_libs=yes
17659 # ldd complains unless libraries are executable
17660 postinstall_cmds='chmod +x $lib'
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17667 shlibpath_var=LD_LIBRARY_PATH
17668 shlibpath_overrides_runpath=yes
17669 if test "$with_gnu_ld" = yes; then
17675 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678 soname_spec='${libname}${release}${shared_ext}$major'
17679 shlibpath_var=LD_LIBRARY_PATH
17680 case $host_vendor in
17682 shlibpath_overrides_runpath=no
17684 export_dynamic_flag_spec='${wl}-Blargedynsym'
17685 runpath_var=LD_RUN_PATH
17693 shlibpath_overrides_runpath=no
17694 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17700 if test -d /usr/nec ;then
17702 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17703 soname_spec='$libname${shared_ext}.$major'
17704 shlibpath_var=LD_LIBRARY_PATH
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17719 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17720 echo "${ECHO_T}$dynamic_linker" >&6; }
17721 test "$dynamic_linker" = no && can_build_shared=no
17723 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17724 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17725 hardcode_action_GCJ=
17726 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17727 test -n "$runpath_var GCJ" || \
17728 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17730 # We can hardcode non-existant directories.
17731 if test "$hardcode_direct_GCJ" != no &&
17732 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17733 # have to relink, otherwise we might link with an installed library
17734 # when we should be linking with a yet-to-be-installed one
17735 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17736 test "$hardcode_minus_L_GCJ" != no; then
17737 # Linking always hardcodes the temporary library directory.
17738 hardcode_action_GCJ=relink
17740 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17741 hardcode_action_GCJ=immediate
17744 # We cannot hardcode anything, or else we can only hardcode existing
17746 hardcode_action_GCJ=unsupported
17748 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17749 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17751 if test "$hardcode_action_GCJ" = relink; then
17752 # Fast installation is not supported
17753 enable_fast_install=no
17754 elif test "$shlibpath_overrides_runpath" = yes ||
17755 test "$enable_shared" = no; then
17756 # Fast installation is not necessary
17757 enable_fast_install=needless
17762 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17763 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17764 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17766 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17767 { echo "$as_me:$LINENO: result: yes" >&5
17768 echo "${ECHO_T}yes" >&6; }
17770 # FIXME - insert some real tests, host_os isn't really good enough
17773 if test -n "$STRIP" ; then
17774 striplib="$STRIP -x"
17775 { echo "$as_me:$LINENO: result: yes" >&5
17776 echo "${ECHO_T}yes" >&6; }
17778 { echo "$as_me:$LINENO: result: no" >&5
17779 echo "${ECHO_T}no" >&6; }
17783 { echo "$as_me:$LINENO: result: no" >&5
17784 echo "${ECHO_T}no" >&6; }
17789 if test "x$enable_dlopen" != xyes; then
17790 enable_dlopen=unknown
17791 enable_dlopen_self=unknown
17792 enable_dlopen_self_static=unknown
17799 lt_cv_dlopen="load_add_on"
17801 lt_cv_dlopen_self=yes
17805 lt_cv_dlopen="LoadLibrary"
17810 lt_cv_dlopen="dlopen"
17815 # if libdl is installed we need to link against it
17816 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17817 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 ac_check_lib_save_LIBS=$LIBS
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17830 /* Override any GCC internal prototype to avoid an error.
17831 Use char because int might match the return type of a GCC
17832 builtin and then its argument prototype would still apply. */
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (ac_try="$ac_link"
17847 case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_link") 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest$ac_exeext &&
17862 $as_test_x conftest$ac_exeext; then
17863 ac_cv_lib_dl_dlopen=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_lib_dl_dlopen=no
17871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17872 conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17876 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17877 if test $ac_cv_lib_dl_dlopen = yes; then
17878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17881 lt_cv_dlopen="dyld"
17883 lt_cv_dlopen_self=yes
17890 { echo "$as_me:$LINENO: checking for shl_load" >&5
17891 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17892 if test "${ac_cv_func_shl_load+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17903 #define shl_load innocuous_shl_load
17905 /* System header to define __stub macros and hopefully few prototypes,
17906 which can conflict with char shl_load (); below.
17907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17908 <limits.h> exists even on freestanding compilers. */
17911 # include <limits.h>
17913 # include <assert.h>
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17925 /* The GNU C library defines this for functions which it implements
17926 to always fail with ENOSYS. Some functions are actually named
17927 something starting with __ and the normal name is an alias. */
17928 #if defined __stub_shl_load || defined __stub___shl_load
17935 return shl_load ();
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (ac_try="$ac_link"
17942 case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_link") 2>conftest.er1
17949 grep -v '^ *+' conftest.er1 >conftest.err
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && {
17954 test -z "$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 } && test -s conftest$ac_exeext &&
17957 $as_test_x conftest$ac_exeext; then
17958 ac_cv_func_shl_load=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_func_shl_load=no
17966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17967 conftest$ac_exeext conftest.$ac_ext
17969 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17970 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17971 if test $ac_cv_func_shl_load = yes; then
17972 lt_cv_dlopen="shl_load"
17974 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17975 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17976 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 ac_check_lib_save_LIBS=$LIBS
17981 cat >conftest.$ac_ext <<_ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply. */
17998 return shl_load ();
18003 rm -f conftest.$ac_objext conftest$ac_exeext
18004 if { (ac_try="$ac_link"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_link") 2>conftest.er1
18012 grep -v '^ *+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } && {
18017 test -z "$ac_c_werror_flag" ||
18018 test ! -s conftest.err
18019 } && test -s conftest$ac_exeext &&
18020 $as_test_x conftest$ac_exeext; then
18021 ac_cv_lib_dld_shl_load=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_lib_dld_shl_load=no
18029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18034 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18035 if test $ac_cv_lib_dld_shl_load = yes; then
18036 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18038 { echo "$as_me:$LINENO: checking for dlopen" >&5
18039 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18040 if test "${ac_cv_func_dlopen+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18051 #define dlopen innocuous_dlopen
18053 /* System header to define __stub macros and hopefully few prototypes,
18054 which can conflict with char dlopen (); below.
18055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18056 <limits.h> exists even on freestanding compilers. */
18059 # include <limits.h>
18061 # include <assert.h>
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18073 /* The GNU C library defines this for functions which it implements
18074 to always fail with ENOSYS. Some functions are actually named
18075 something starting with __ and the normal name is an alias. */
18076 #if defined __stub_dlopen || defined __stub___dlopen
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_link") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest$ac_exeext &&
18105 $as_test_x conftest$ac_exeext; then
18106 ac_cv_func_dlopen=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_func_dlopen=no
18114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18115 conftest$ac_exeext conftest.$ac_ext
18117 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18118 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18119 if test $ac_cv_func_dlopen = yes; then
18120 lt_cv_dlopen="dlopen"
18122 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18123 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18124 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_check_lib_save_LIBS=$LIBS
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest$ac_exeext &&
18168 $as_test_x conftest$ac_exeext; then
18169 ac_cv_lib_dl_dlopen=yes
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 ac_cv_lib_dl_dlopen=no
18177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18178 conftest$ac_exeext conftest.$ac_ext
18179 LIBS=$ac_check_lib_save_LIBS
18181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18183 if test $ac_cv_lib_dl_dlopen = yes; then
18184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18186 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18187 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18188 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lsvld $LIBS"
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest$ac_exeext &&
18232 $as_test_x conftest$ac_exeext; then
18233 ac_cv_lib_svld_dlopen=yes
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 ac_cv_lib_svld_dlopen=no
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242 conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18245 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18246 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18247 if test $ac_cv_lib_svld_dlopen = yes; then
18248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18250 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18251 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18252 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18255 ac_check_lib_save_LIBS=$LIBS
18257 cat >conftest.$ac_ext <<_ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18264 /* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18274 return dld_link ();
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (ac_try="$ac_link"
18281 case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } && {
18293 test -z "$ac_c_werror_flag" ||
18294 test ! -s conftest.err
18295 } && test -s conftest$ac_exeext &&
18296 $as_test_x conftest$ac_exeext; then
18297 ac_cv_lib_dld_dld_link=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_lib_dld_dld_link=no
18305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18310 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18311 if test $ac_cv_lib_dld_dld_link = yes; then
18312 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18333 if test "x$lt_cv_dlopen" != xno; then
18339 case $lt_cv_dlopen in
18341 save_CPPFLAGS="$CPPFLAGS"
18342 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18344 save_LDFLAGS="$LDFLAGS"
18345 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18348 LIBS="$lt_cv_dlopen_libs $LIBS"
18350 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18351 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18352 if test "${lt_cv_dlopen_self+set}" = set; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 if test "$cross_compiling" = yes; then :
18356 lt_cv_dlopen_self=cross
18358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18359 lt_status=$lt_dlunknown
18360 cat > conftest.$ac_ext <<EOF
18361 #line 18361 "configure"
18362 #include "confdefs.h"
18371 # define LT_DLGLOBAL RTLD_GLOBAL
18374 # define LT_DLGLOBAL DL_GLOBAL
18376 # define LT_DLGLOBAL 0
18380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18381 find out it does not work in some platform. */
18382 #ifndef LT_DLLAZY_OR_NOW
18384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18387 # define LT_DLLAZY_OR_NOW DL_LAZY
18390 # define LT_DLLAZY_OR_NOW RTLD_NOW
18393 # define LT_DLLAZY_OR_NOW DL_NOW
18395 # define LT_DLLAZY_OR_NOW 0
18403 extern "C" void exit (int);
18406 void fnord() { int i=42;}
18409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18410 int status = $lt_dlunknown;
18414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18416 /* dlclose (self); */
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423 (eval $ac_link) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18427 (./conftest; exit; ) 2>/dev/null
18429 case x$lt_status in
18430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18432 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18435 # compilation failed
18436 lt_cv_dlopen_self=no
18443 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18444 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18446 if test "x$lt_cv_dlopen_self" = xyes; then
18447 LDFLAGS="$LDFLAGS $link_static_flag"
18448 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18449 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18450 if test "${lt_cv_dlopen_self_static+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 if test "$cross_compiling" = yes; then :
18454 lt_cv_dlopen_self_static=cross
18456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18457 lt_status=$lt_dlunknown
18458 cat > conftest.$ac_ext <<EOF
18459 #line 18459 "configure"
18460 #include "confdefs.h"
18469 # define LT_DLGLOBAL RTLD_GLOBAL
18472 # define LT_DLGLOBAL DL_GLOBAL
18474 # define LT_DLGLOBAL 0
18478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18479 find out it does not work in some platform. */
18480 #ifndef LT_DLLAZY_OR_NOW
18482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18485 # define LT_DLLAZY_OR_NOW DL_LAZY
18488 # define LT_DLLAZY_OR_NOW RTLD_NOW
18491 # define LT_DLLAZY_OR_NOW DL_NOW
18493 # define LT_DLLAZY_OR_NOW 0
18501 extern "C" void exit (int);
18504 void fnord() { int i=42;}
18507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18508 int status = $lt_dlunknown;
18512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18514 /* dlclose (self); */
18520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521 (eval $ac_link) 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18525 (./conftest; exit; ) 2>/dev/null
18527 case x$lt_status in
18528 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18529 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18530 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18533 # compilation failed
18534 lt_cv_dlopen_self_static=no
18541 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18542 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18545 CPPFLAGS="$save_CPPFLAGS"
18546 LDFLAGS="$save_LDFLAGS"
18551 case $lt_cv_dlopen_self in
18552 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18553 *) enable_dlopen_self=unknown ;;
18556 case $lt_cv_dlopen_self_static in
18557 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18558 *) enable_dlopen_self_static=unknown ;;
18563 # The else clause should only fire when bootstrapping the
18564 # libtool distribution, otherwise you forgot to ship ltmain.sh
18565 # with your package, and you will get complaints that there are
18566 # no rules to generate ltmain.sh.
18567 if test -f "$ltmain"; then
18568 # See if we are running on zsh, and set the options which allow our commands through
18569 # without removal of \ escapes.
18570 if test -n "${ZSH_VERSION+set}" ; then
18571 setopt NO_GLOB_SUBST
18573 # Now quote all the things that may contain metacharacters while being
18574 # careful not to overquote the AC_SUBSTed values. We take copies of the
18575 # variables and quote the copies for generation of the libtool script.
18576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18580 deplibs_check_method reload_flag reload_cmds need_locks \
18581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18582 lt_cv_sys_global_symbol_to_c_name_address \
18583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18584 old_postinstall_cmds old_postuninstall_cmds \
18588 lt_prog_compiler_wl_GCJ \
18589 lt_prog_compiler_pic_GCJ \
18590 lt_prog_compiler_static_GCJ \
18591 lt_prog_compiler_no_builtin_flag_GCJ \
18592 export_dynamic_flag_spec_GCJ \
18593 thread_safe_flag_spec_GCJ \
18594 whole_archive_flag_spec_GCJ \
18595 enable_shared_with_static_runtimes_GCJ \
18596 old_archive_cmds_GCJ \
18597 old_archive_from_new_cmds_GCJ \
18598 predep_objects_GCJ \
18599 postdep_objects_GCJ \
18602 compiler_lib_search_path_GCJ \
18604 archive_expsym_cmds_GCJ \
18605 postinstall_cmds_GCJ \
18606 postuninstall_cmds_GCJ \
18607 old_archive_from_expsyms_cmds_GCJ \
18608 allow_undefined_flag_GCJ \
18609 no_undefined_flag_GCJ \
18610 export_symbols_cmds_GCJ \
18611 hardcode_libdir_flag_spec_GCJ \
18612 hardcode_libdir_flag_spec_ld_GCJ \
18613 hardcode_libdir_separator_GCJ \
18614 hardcode_automatic_GCJ \
18616 module_expsym_cmds_GCJ \
18617 lt_cv_prog_compiler_c_o_GCJ \
18618 exclude_expsyms_GCJ \
18619 include_expsyms_GCJ; do
18622 old_archive_cmds_GCJ | \
18623 old_archive_from_new_cmds_GCJ | \
18624 archive_cmds_GCJ | \
18625 archive_expsym_cmds_GCJ | \
18626 module_cmds_GCJ | \
18627 module_expsym_cmds_GCJ | \
18628 old_archive_from_expsyms_cmds_GCJ | \
18629 export_symbols_cmds_GCJ | \
18630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18631 postinstall_cmds | postuninstall_cmds | \
18632 old_postinstall_cmds | old_postuninstall_cmds | \
18633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18634 # Double-quote double-evaled strings.
18635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18644 *'\$0 --fallback-echo"')
18645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18651 cat <<__EOF__ >> "$cfgfile"
18652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18656 # Shell to use when invoking shell scripts.
18659 # Whether or not to build shared libraries.
18660 build_libtool_libs=$enable_shared
18662 # Whether or not to build static libraries.
18663 build_old_libs=$enable_static
18665 # Whether or not to add -lc for building shared libraries.
18666 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18668 # Whether or not to disallow shared libs when runtime libs are static
18669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18671 # Whether or not to optimize for fast installation.
18672 fast_install=$enable_fast_install
18675 host_alias=$host_alias
18678 # An echo program that does not interpret backslashes.
18683 AR_FLAGS=$lt_AR_FLAGS
18688 # A language-specific compiler.
18689 CC=$lt_compiler_GCJ
18691 # Is the compiler the GNU C compiler?
18697 # The linker used to build libraries.
18700 # Whether we need hard or soft links.
18703 # A BSD-compatible nm program.
18706 # A symbol stripping program
18709 # Used to examine libraries when file_magic_cmd begins "file"
18710 MAGIC_CMD=$MAGIC_CMD
18712 # Used on cygwin: DLL creation program.
18715 # Used on cygwin: object dumper.
18718 # Used on cygwin: assembler.
18721 # The name of the directory that contains temporary libtool files.
18724 # How to create reloadable object files.
18725 reload_flag=$lt_reload_flag
18726 reload_cmds=$lt_reload_cmds
18728 # How to pass a linker flag through the compiler.
18729 wl=$lt_lt_prog_compiler_wl_GCJ
18731 # Object file suffix (normally "o").
18732 objext="$ac_objext"
18734 # Old archive suffix (normally "a").
18737 # Shared library suffix (normally ".so").
18738 shrext_cmds='$shrext_cmds'
18740 # Executable file suffix (normally "").
18743 # Additional compiler flags for building library objects.
18744 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18747 # What is the maximum length of a command?
18748 max_cmd_len=$lt_cv_sys_max_cmd_len
18750 # Does compiler simultaneously support -c and -o options?
18751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18753 # Must we lock files when doing compilation ?
18754 need_locks=$lt_need_locks
18756 # Do we need the lib prefix for modules?
18757 need_lib_prefix=$need_lib_prefix
18759 # Do we need a version for libraries?
18760 need_version=$need_version
18762 # Whether dlopen is supported.
18763 dlopen_support=$enable_dlopen
18765 # Whether dlopen of programs is supported.
18766 dlopen_self=$enable_dlopen_self
18768 # Whether dlopen of statically linked programs is supported.
18769 dlopen_self_static=$enable_dlopen_self_static
18771 # Compiler flag to prevent dynamic linking.
18772 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18774 # Compiler flag to turn off builtin functions.
18775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18777 # Compiler flag to allow reflexive dlopens.
18778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18780 # Compiler flag to generate shared objects directly from archives.
18781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18783 # Compiler flag to generate thread-safe objects.
18784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18786 # Library versioning type.
18787 version_type=$version_type
18789 # Format of library name prefix.
18790 libname_spec=$lt_libname_spec
18792 # List of archive names. First name is the real one, the rest are links.
18793 # The last name is the one that the linker finds with -lNAME.
18794 library_names_spec=$lt_library_names_spec
18796 # The coded name of the library, if different from the real name.
18797 soname_spec=$lt_soname_spec
18799 # Commands used to build and install an old-style archive.
18801 old_archive_cmds=$lt_old_archive_cmds_GCJ
18802 old_postinstall_cmds=$lt_old_postinstall_cmds
18803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18805 # Create an old-style archive from a shared archive.
18806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18808 # Create a temporary old-style archive to link instead of a shared archive.
18809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18811 # Commands used to build and install a shared archive.
18812 archive_cmds=$lt_archive_cmds_GCJ
18813 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18814 postinstall_cmds=$lt_postinstall_cmds
18815 postuninstall_cmds=$lt_postuninstall_cmds
18817 # Commands used to build a loadable module (assumed same as above if empty)
18818 module_cmds=$lt_module_cmds_GCJ
18819 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18821 # Commands to strip libraries.
18822 old_striplib=$lt_old_striplib
18823 striplib=$lt_striplib
18825 # Dependencies to place before the objects being linked to create a
18827 predep_objects=$lt_predep_objects_GCJ
18829 # Dependencies to place after the objects being linked to create a
18831 postdep_objects=$lt_postdep_objects_GCJ
18833 # Dependencies to place before the objects being linked to create a
18835 predeps=$lt_predeps_GCJ
18837 # Dependencies to place after the objects being linked to create a
18839 postdeps=$lt_postdeps_GCJ
18841 # The library search path used internally by the compiler when linking
18842 # a shared library.
18843 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18845 # Method to check whether dependent libraries are shared objects.
18846 deplibs_check_method=$lt_deplibs_check_method
18848 # Command to use when deplibs_check_method == file_magic.
18849 file_magic_cmd=$lt_file_magic_cmd
18851 # Flag that allows shared libraries with undefined symbols to be built.
18852 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18854 # Flag that forces no undefined symbols.
18855 no_undefined_flag=$lt_no_undefined_flag_GCJ
18857 # Commands used to finish a libtool library installation in a directory.
18858 finish_cmds=$lt_finish_cmds
18860 # Same as above, but a single script fragment to be evaled but not shown.
18861 finish_eval=$lt_finish_eval
18863 # Take the output of nm and produce a listing of raw symbols and C names.
18864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18866 # Transform the output of nm in a proper C declaration
18867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18869 # Transform the output of nm in a C name address pair
18870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18872 # This is the shared library runtime path variable.
18873 runpath_var=$runpath_var
18875 # This is the shared library path variable.
18876 shlibpath_var=$shlibpath_var
18878 # Is shlibpath searched before the hard-coded library search path?
18879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18881 # How to hardcode a shared library path into an executable.
18882 hardcode_action=$hardcode_action_GCJ
18884 # Whether we should hardcode library paths into libraries.
18885 hardcode_into_libs=$hardcode_into_libs
18887 # Flag to hardcode \$libdir into a binary during linking.
18888 # This must work even if \$libdir does not exist.
18889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18891 # If ld is used when linking, flag to hardcode \$libdir into
18892 # a binary during linking. This must work even if \$libdir does
18894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18896 # Whether we need a single -rpath flag with a separated argument.
18897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18900 # resulting binary.
18901 hardcode_direct=$hardcode_direct_GCJ
18903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18904 # resulting binary.
18905 hardcode_minus_L=$hardcode_minus_L_GCJ
18907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18908 # the resulting binary.
18909 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18911 # Set to yes if building a shared library automatically hardcodes DIR into the library
18912 # and all subsequent libraries and executables linked against it.
18913 hardcode_automatic=$hardcode_automatic_GCJ
18915 # Variables whose values should be saved in libtool wrapper scripts and
18916 # restored at relink time.
18917 variables_saved_for_relink="$variables_saved_for_relink"
18919 # Whether libtool must link a program against all its dependency libraries.
18920 link_all_deplibs=$link_all_deplibs_GCJ
18922 # Compile-time system search path for libraries
18923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18925 # Run-time system search path for libraries
18926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18928 # Fix the shell variable \$srcfile for the compiler.
18929 fix_srcfile_path="$fix_srcfile_path_GCJ"
18931 # Set to yes if exported symbols are required.
18932 always_export_symbols=$always_export_symbols_GCJ
18934 # The commands to list exported symbols.
18935 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18937 # The commands to extract the exported symbol list from a shared archive.
18938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18940 # Symbols that should not be listed in the preloaded symbols.
18941 exclude_expsyms=$lt_exclude_expsyms_GCJ
18943 # Symbols that must always be exported.
18944 include_expsyms=$lt_include_expsyms_GCJ
18946 # ### END LIBTOOL TAG CONFIG: $tagname
18952 # If there is no Makefile yet, we rely on a make rule to execute
18953 # `config.status --recheck' to rerun these tests and create the
18954 # libtool script then.
18955 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18956 if test -f "$ltmain_in"; then
18957 test -f Makefile && make "$ltmain"
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18978 # Source file extension for RC test sources.
18981 # Object file extension for compiled RC test sources.
18985 # Code to be used in simple compile tests
18986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18988 # Code to be used in simple link tests
18989 lt_simple_link_test_code="$lt_simple_compile_test_code"
18991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18993 # If no C compiler was specified, use CC.
18996 # Allow CC to be a program name with arguments.
19000 # Allow CC to be a program name with arguments.
19005 lt_cv_prog_compiler_c_o_RC=yes
19007 # The else clause should only fire when bootstrapping the
19008 # libtool distribution, otherwise you forgot to ship ltmain.sh
19009 # with your package, and you will get complaints that there are
19010 # no rules to generate ltmain.sh.
19011 if test -f "$ltmain"; then
19012 # See if we are running on zsh, and set the options which allow our commands through
19013 # without removal of \ escapes.
19014 if test -n "${ZSH_VERSION+set}" ; then
19015 setopt NO_GLOB_SUBST
19017 # Now quote all the things that may contain metacharacters while being
19018 # careful not to overquote the AC_SUBSTed values. We take copies of the
19019 # variables and quote the copies for generation of the libtool script.
19020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19022 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19023 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19024 deplibs_check_method reload_flag reload_cmds need_locks \
19025 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19026 lt_cv_sys_global_symbol_to_c_name_address \
19027 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19028 old_postinstall_cmds old_postuninstall_cmds \
19032 lt_prog_compiler_wl_RC \
19033 lt_prog_compiler_pic_RC \
19034 lt_prog_compiler_static_RC \
19035 lt_prog_compiler_no_builtin_flag_RC \
19036 export_dynamic_flag_spec_RC \
19037 thread_safe_flag_spec_RC \
19038 whole_archive_flag_spec_RC \
19039 enable_shared_with_static_runtimes_RC \
19040 old_archive_cmds_RC \
19041 old_archive_from_new_cmds_RC \
19042 predep_objects_RC \
19043 postdep_objects_RC \
19046 compiler_lib_search_path_RC \
19048 archive_expsym_cmds_RC \
19049 postinstall_cmds_RC \
19050 postuninstall_cmds_RC \
19051 old_archive_from_expsyms_cmds_RC \
19052 allow_undefined_flag_RC \
19053 no_undefined_flag_RC \
19054 export_symbols_cmds_RC \
19055 hardcode_libdir_flag_spec_RC \
19056 hardcode_libdir_flag_spec_ld_RC \
19057 hardcode_libdir_separator_RC \
19058 hardcode_automatic_RC \
19060 module_expsym_cmds_RC \
19061 lt_cv_prog_compiler_c_o_RC \
19062 exclude_expsyms_RC \
19063 include_expsyms_RC; do
19066 old_archive_cmds_RC | \
19067 old_archive_from_new_cmds_RC | \
19068 archive_cmds_RC | \
19069 archive_expsym_cmds_RC | \
19071 module_expsym_cmds_RC | \
19072 old_archive_from_expsyms_cmds_RC | \
19073 export_symbols_cmds_RC | \
19074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19075 postinstall_cmds | postuninstall_cmds | \
19076 old_postinstall_cmds | old_postuninstall_cmds | \
19077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19078 # Double-quote double-evaled strings.
19079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19088 *'\$0 --fallback-echo"')
19089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19095 cat <<__EOF__ >> "$cfgfile"
19096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19100 # Shell to use when invoking shell scripts.
19103 # Whether or not to build shared libraries.
19104 build_libtool_libs=$enable_shared
19106 # Whether or not to build static libraries.
19107 build_old_libs=$enable_static
19109 # Whether or not to add -lc for building shared libraries.
19110 build_libtool_need_lc=$archive_cmds_need_lc_RC
19112 # Whether or not to disallow shared libs when runtime libs are static
19113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19115 # Whether or not to optimize for fast installation.
19116 fast_install=$enable_fast_install
19119 host_alias=$host_alias
19122 # An echo program that does not interpret backslashes.
19127 AR_FLAGS=$lt_AR_FLAGS
19132 # A language-specific compiler.
19135 # Is the compiler the GNU C compiler?
19141 # The linker used to build libraries.
19144 # Whether we need hard or soft links.
19147 # A BSD-compatible nm program.
19150 # A symbol stripping program
19153 # Used to examine libraries when file_magic_cmd begins "file"
19154 MAGIC_CMD=$MAGIC_CMD
19156 # Used on cygwin: DLL creation program.
19159 # Used on cygwin: object dumper.
19162 # Used on cygwin: assembler.
19165 # The name of the directory that contains temporary libtool files.
19168 # How to create reloadable object files.
19169 reload_flag=$lt_reload_flag
19170 reload_cmds=$lt_reload_cmds
19172 # How to pass a linker flag through the compiler.
19173 wl=$lt_lt_prog_compiler_wl_RC
19175 # Object file suffix (normally "o").
19176 objext="$ac_objext"
19178 # Old archive suffix (normally "a").
19181 # Shared library suffix (normally ".so").
19182 shrext_cmds='$shrext_cmds'
19184 # Executable file suffix (normally "").
19187 # Additional compiler flags for building library objects.
19188 pic_flag=$lt_lt_prog_compiler_pic_RC
19191 # What is the maximum length of a command?
19192 max_cmd_len=$lt_cv_sys_max_cmd_len
19194 # Does compiler simultaneously support -c and -o options?
19195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19197 # Must we lock files when doing compilation ?
19198 need_locks=$lt_need_locks
19200 # Do we need the lib prefix for modules?
19201 need_lib_prefix=$need_lib_prefix
19203 # Do we need a version for libraries?
19204 need_version=$need_version
19206 # Whether dlopen is supported.
19207 dlopen_support=$enable_dlopen
19209 # Whether dlopen of programs is supported.
19210 dlopen_self=$enable_dlopen_self
19212 # Whether dlopen of statically linked programs is supported.
19213 dlopen_self_static=$enable_dlopen_self_static
19215 # Compiler flag to prevent dynamic linking.
19216 link_static_flag=$lt_lt_prog_compiler_static_RC
19218 # Compiler flag to turn off builtin functions.
19219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19221 # Compiler flag to allow reflexive dlopens.
19222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19224 # Compiler flag to generate shared objects directly from archives.
19225 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19227 # Compiler flag to generate thread-safe objects.
19228 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19230 # Library versioning type.
19231 version_type=$version_type
19233 # Format of library name prefix.
19234 libname_spec=$lt_libname_spec
19236 # List of archive names. First name is the real one, the rest are links.
19237 # The last name is the one that the linker finds with -lNAME.
19238 library_names_spec=$lt_library_names_spec
19240 # The coded name of the library, if different from the real name.
19241 soname_spec=$lt_soname_spec
19243 # Commands used to build and install an old-style archive.
19245 old_archive_cmds=$lt_old_archive_cmds_RC
19246 old_postinstall_cmds=$lt_old_postinstall_cmds
19247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19249 # Create an old-style archive from a shared archive.
19250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19252 # Create a temporary old-style archive to link instead of a shared archive.
19253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19255 # Commands used to build and install a shared archive.
19256 archive_cmds=$lt_archive_cmds_RC
19257 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19258 postinstall_cmds=$lt_postinstall_cmds
19259 postuninstall_cmds=$lt_postuninstall_cmds
19261 # Commands used to build a loadable module (assumed same as above if empty)
19262 module_cmds=$lt_module_cmds_RC
19263 module_expsym_cmds=$lt_module_expsym_cmds_RC
19265 # Commands to strip libraries.
19266 old_striplib=$lt_old_striplib
19267 striplib=$lt_striplib
19269 # Dependencies to place before the objects being linked to create a
19271 predep_objects=$lt_predep_objects_RC
19273 # Dependencies to place after the objects being linked to create a
19275 postdep_objects=$lt_postdep_objects_RC
19277 # Dependencies to place before the objects being linked to create a
19279 predeps=$lt_predeps_RC
19281 # Dependencies to place after the objects being linked to create a
19283 postdeps=$lt_postdeps_RC
19285 # The library search path used internally by the compiler when linking
19286 # a shared library.
19287 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19289 # Method to check whether dependent libraries are shared objects.
19290 deplibs_check_method=$lt_deplibs_check_method
19292 # Command to use when deplibs_check_method == file_magic.
19293 file_magic_cmd=$lt_file_magic_cmd
19295 # Flag that allows shared libraries with undefined symbols to be built.
19296 allow_undefined_flag=$lt_allow_undefined_flag_RC
19298 # Flag that forces no undefined symbols.
19299 no_undefined_flag=$lt_no_undefined_flag_RC
19301 # Commands used to finish a libtool library installation in a directory.
19302 finish_cmds=$lt_finish_cmds
19304 # Same as above, but a single script fragment to be evaled but not shown.
19305 finish_eval=$lt_finish_eval
19307 # Take the output of nm and produce a listing of raw symbols and C names.
19308 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19310 # Transform the output of nm in a proper C declaration
19311 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19313 # Transform the output of nm in a C name address pair
19314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19316 # This is the shared library runtime path variable.
19317 runpath_var=$runpath_var
19319 # This is the shared library path variable.
19320 shlibpath_var=$shlibpath_var
19322 # Is shlibpath searched before the hard-coded library search path?
19323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19325 # How to hardcode a shared library path into an executable.
19326 hardcode_action=$hardcode_action_RC
19328 # Whether we should hardcode library paths into libraries.
19329 hardcode_into_libs=$hardcode_into_libs
19331 # Flag to hardcode \$libdir into a binary during linking.
19332 # This must work even if \$libdir does not exist.
19333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19335 # If ld is used when linking, flag to hardcode \$libdir into
19336 # a binary during linking. This must work even if \$libdir does
19338 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19340 # Whether we need a single -rpath flag with a separated argument.
19341 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19343 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19344 # resulting binary.
19345 hardcode_direct=$hardcode_direct_RC
19347 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19348 # resulting binary.
19349 hardcode_minus_L=$hardcode_minus_L_RC
19351 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19352 # the resulting binary.
19353 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19355 # Set to yes if building a shared library automatically hardcodes DIR into the library
19356 # and all subsequent libraries and executables linked against it.
19357 hardcode_automatic=$hardcode_automatic_RC
19359 # Variables whose values should be saved in libtool wrapper scripts and
19360 # restored at relink time.
19361 variables_saved_for_relink="$variables_saved_for_relink"
19363 # Whether libtool must link a program against all its dependency libraries.
19364 link_all_deplibs=$link_all_deplibs_RC
19366 # Compile-time system search path for libraries
19367 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19369 # Run-time system search path for libraries
19370 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19372 # Fix the shell variable \$srcfile for the compiler.
19373 fix_srcfile_path="$fix_srcfile_path_RC"
19375 # Set to yes if exported symbols are required.
19376 always_export_symbols=$always_export_symbols_RC
19378 # The commands to list exported symbols.
19379 export_symbols_cmds=$lt_export_symbols_cmds_RC
19381 # The commands to extract the exported symbol list from a shared archive.
19382 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19384 # Symbols that should not be listed in the preloaded symbols.
19385 exclude_expsyms=$lt_exclude_expsyms_RC
19387 # Symbols that must always be exported.
19388 include_expsyms=$lt_include_expsyms_RC
19390 # ### END LIBTOOL TAG CONFIG: $tagname
19396 # If there is no Makefile yet, we rely on a make rule to execute
19397 # `config.status --recheck' to rerun these tests and create the
19398 # libtool script then.
19399 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19400 if test -f "$ltmain_in"; then
19401 test -f Makefile && make "$ltmain"
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19417 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19418 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19419 { (exit 1); exit 1; }; }
19423 # Append the new tag name to the list of available tags.
19424 if test -n "$tagname" ; then
19425 available_tags="$available_tags $tagname"
19431 # Now substitute the updated list of available tags.
19432 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19433 mv "${ofile}T" "$ofile"
19437 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19438 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19439 { (exit 1); exit 1; }; }
19445 # This can be used to rebuild libtool when needed
19446 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19448 # Always use our own libtool.
19449 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19451 # Prevent multiple expansion
19473 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19474 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19475 if test -d /var/tmp; then
19476 found_tmp=/var/tmp/
19477 elif test -d /usr/tmp; then
19478 found_tmp=/usr/tmp/
19482 cat >>confdefs.h <<_ACEOF
19483 #define FOUND_TMP "${found_tmp}"
19486 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19487 echo "${ECHO_T}${found_tmp}" >&6; }
19489 { echo "$as_me:$LINENO: checking for X" >&5
19490 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19493 # Check whether --with-x was given.
19494 if test "${with_x+set}" = set; then
19498 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19499 if test "x$with_x" = xno; then
19500 # The user explicitly disabled X.
19503 case $x_includes,$x_libraries in #(
19504 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19505 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19506 { (exit 1); exit 1; }; };; #(
19507 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 # One or both of the vars are not set, and there is no cached value.
19511 ac_x_includes=no ac_x_libraries=no
19512 rm -f -r conftest.dir
19513 if mkdir conftest.dir; then
19515 cat >Imakefile <<'_ACEOF'
19517 @echo incroot='${INCROOT}'
19519 @echo usrlibdir='${USRLIBDIR}'
19521 @echo libdir='${LIBDIR}'
19523 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19525 for ac_var in incroot usrlibdir libdir; do
19526 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19528 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19529 for ac_extension in a so sl; do
19530 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19531 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19532 ac_im_usrlibdir=$ac_im_libdir; break
19535 # Screen out bogus values from the imake configuration. They are
19536 # bogus both because they are the default anyway, and because
19537 # using them would break gcc on systems where it needs fixed includes.
19538 case $ac_im_incroot in
19539 /usr/include) ac_x_includes= ;;
19540 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19542 case $ac_im_usrlibdir in
19543 /usr/lib | /lib) ;;
19544 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19548 rm -f -r conftest.dir
19551 # Standard set of common directories for X headers.
19552 # Check X11 before X11Rn because it is often a symlink to the current release.
19564 /usr/local/X11/include
19565 /usr/local/X11R6/include
19566 /usr/local/X11R5/include
19567 /usr/local/X11R4/include
19569 /usr/local/include/X11
19570 /usr/local/include/X11R6
19571 /usr/local/include/X11R5
19572 /usr/local/include/X11R4
19576 /usr/XFree86/include/X11
19580 /usr/unsupported/include
19581 /usr/athena/include
19582 /usr/local/x11r5/include
19583 /usr/lpp/Xamples/include
19585 /usr/openwin/include
19586 /usr/openwin/share/include'
19588 if test "$ac_x_includes" = no; then
19589 # Guess where to find include files, by looking for Xlib.h.
19590 # First, try using that file with no special directory specified.
19591 cat >conftest.$ac_ext <<_ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 #include <X11/Xlib.h>
19599 if { (ac_try="$ac_cpp conftest.$ac_ext"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } >/dev/null && {
19612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19615 # We can compile using X headers with no special include directory.
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 for ac_dir in $ac_x_header_dirs; do
19622 if test -r "$ac_dir/X11/Xlib.h"; then
19623 ac_x_includes=$ac_dir
19629 rm -f conftest.err conftest.$ac_ext
19630 fi # $ac_x_includes = no
19632 if test "$ac_x_libraries" = no; then
19633 # Check for the libraries.
19634 # See if we find them without any special options.
19635 # Don't add to $LIBS permanently.
19638 cat >conftest.$ac_ext <<_ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 #include <X11/Xlib.h>
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (ac_try="$ac_link"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_link") 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && {
19667 test -z "$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 } && test -s conftest$ac_exeext &&
19670 $as_test_x conftest$ac_exeext; then
19672 # We can link X programs with no special library path.
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19679 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19681 # Don't even attempt the hair of trying to link an X program!
19682 for ac_extension in a so sl; do
19683 if test -r "$ac_dir/libX11.$ac_extension"; then
19684 ac_x_libraries=$ac_dir
19691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692 conftest$ac_exeext conftest.$ac_ext
19693 fi # $ac_x_libraries = no
19695 case $ac_x_includes,$ac_x_libraries in #(
19696 no,* | *,no | *\'*)
19697 # Didn't find X, or a directory has "'" in its name.
19698 ac_cv_have_x="have_x=no";; #(
19700 # Record where we found X for the cache.
19701 ac_cv_have_x="have_x=yes\
19702 ac_x_includes='$ac_x_includes'\
19703 ac_x_libraries='$ac_x_libraries'"
19709 eval "$ac_cv_have_x"
19712 if test "$have_x" != yes; then
19713 { echo "$as_me:$LINENO: result: $have_x" >&5
19714 echo "${ECHO_T}$have_x" >&6; }
19717 # If each of the values was on the command line, it overrides each guess.
19718 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19719 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19720 # Update the cache value to reflect the command line values.
19721 ac_cv_have_x="have_x=yes\
19722 ac_x_includes='$x_includes'\
19723 ac_x_libraries='$x_libraries'"
19724 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19725 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19728 if test "$no_x" = yes; then
19729 # Not all programs may use this symbol, but it does not hurt to define it.
19731 cat >>confdefs.h <<\_ACEOF
19732 #define X_DISPLAY_MISSING 1
19735 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19737 if test -n "$x_includes"; then
19738 X_CFLAGS="$X_CFLAGS -I$x_includes"
19741 # It would also be nice to do this for all -L options, not just this one.
19742 if test -n "$x_libraries"; then
19743 X_LIBS="$X_LIBS -L$x_libraries"
19744 # For Solaris; some versions of Sun CC require a space after -R and
19745 # others require no space. Words are not sufficient . . . .
19746 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19748 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19749 ac_xsave_c_werror_flag=$ac_c_werror_flag
19750 ac_c_werror_flag=yes
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_link") 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest$ac_exeext &&
19783 $as_test_x conftest$ac_exeext; then
19784 { echo "$as_me:$LINENO: result: no" >&5
19785 echo "${ECHO_T}no" >&6; }
19786 X_LIBS="$X_LIBS -R$x_libraries"
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 LIBS="$ac_xsave_LIBS -R $x_libraries"
19792 cat >conftest.$ac_ext <<_ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19807 rm -f conftest.$ac_objext conftest$ac_exeext
19808 if { (ac_try="$ac_link"
19809 case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_link") 2>conftest.er1
19816 grep -v '^ *+' conftest.er1 >conftest.err
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } && {
19821 test -z "$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19823 } && test -s conftest$ac_exeext &&
19824 $as_test_x conftest$ac_exeext; then
19825 { echo "$as_me:$LINENO: result: yes" >&5
19826 echo "${ECHO_T}yes" >&6; }
19827 X_LIBS="$X_LIBS -R $x_libraries"
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 { echo "$as_me:$LINENO: result: neither works" >&5
19833 echo "${ECHO_T}neither works" >&6; }
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837 conftest$ac_exeext conftest.$ac_ext
19840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841 conftest$ac_exeext conftest.$ac_ext
19842 ac_c_werror_flag=$ac_xsave_c_werror_flag
19843 LIBS=$ac_xsave_LIBS
19846 # Check for system-dependent libraries X programs must link with.
19847 # Do this before checking for the system-independent R6 libraries
19848 # (-lICE), since we may need -lsocket or whatever for X linking.
19850 if test "$ISC" = yes; then
19851 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19853 # Martyn Johnson says this is needed for Ultrix, if the X
19854 # libraries were built with DECnet support. And Karl Berry says
19855 # the Alpha needs dnet_stub (dnet does not exist).
19856 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19870 char XOpenDisplay ();
19874 return XOpenDisplay ();
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19903 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19904 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 ac_check_lib_save_LIBS=$LIBS
19908 LIBS="-ldnet $LIBS"
19909 cat >conftest.$ac_ext <<_ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19916 /* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19926 return dnet_ntoa ();
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (ac_try="$ac_link"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_link") 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest$ac_exeext &&
19948 $as_test_x conftest$ac_exeext; then
19949 ac_cv_lib_dnet_dnet_ntoa=yes
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 ac_cv_lib_dnet_dnet_ntoa=no
19957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19958 conftest$ac_exeext conftest.$ac_ext
19959 LIBS=$ac_check_lib_save_LIBS
19961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19962 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19963 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19964 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19967 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19968 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19969 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19970 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-ldnet_stub $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any GCC internal prototype to avoid an error.
19983 Use char because int might match the return type of a GCC
19984 builtin and then its argument prototype would still apply. */
19992 return dnet_ntoa ();
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_link") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && {
20011 test -z "$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20013 } && test -s conftest$ac_exeext &&
20014 $as_test_x conftest$ac_exeext; then
20015 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20020 ac_cv_lib_dnet_stub_dnet_ntoa=no
20023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20024 conftest$ac_exeext conftest.$ac_ext
20025 LIBS=$ac_check_lib_save_LIBS
20027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20028 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20029 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20030 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20038 LIBS="$ac_xsave_LIBS"
20040 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20041 # to get the SysV transport functions.
20042 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20044 # The nsl library prevents programs from opening the X display
20045 # on Irix 5.2, according to T.E. Dickey.
20046 # The functions gethostbyname, getservbyname, and inet_addr are
20047 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20048 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20049 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20050 if test "${ac_cv_func_gethostbyname+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20061 #define gethostbyname innocuous_gethostbyname
20063 /* System header to define __stub macros and hopefully few prototypes,
20064 which can conflict with char gethostbyname (); below.
20065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20066 <limits.h> exists even on freestanding compilers. */
20069 # include <limits.h>
20071 # include <assert.h>
20074 #undef gethostbyname
20076 /* Override any GCC internal prototype to avoid an error.
20077 Use char because int might match the return type of a GCC
20078 builtin and then its argument prototype would still apply. */
20082 char gethostbyname ();
20083 /* The GNU C library defines this for functions which it implements
20084 to always fail with ENOSYS. Some functions are actually named
20085 something starting with __ and the normal name is an alias. */
20086 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20093 return gethostbyname ();
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext &&
20115 $as_test_x conftest$ac_exeext; then
20116 ac_cv_func_gethostbyname=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_func_gethostbyname=no
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20127 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20128 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20130 if test $ac_cv_func_gethostbyname = no; then
20131 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20132 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20133 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 ac_check_lib_save_LIBS=$LIBS
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20145 /* Override any GCC internal prototype to avoid an error.
20146 Use char because int might match the return type of a GCC
20147 builtin and then its argument prototype would still apply. */
20151 char gethostbyname ();
20155 return gethostbyname ();
20160 rm -f conftest.$ac_objext conftest$ac_exeext
20161 if { (ac_try="$ac_link"
20162 case "(($ac_try" in
20163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164 *) ac_try_echo=$ac_try;;
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_link") 2>conftest.er1
20169 grep -v '^ *+' conftest.er1 >conftest.err
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && {
20174 test -z "$ac_c_werror_flag" ||
20175 test ! -s conftest.err
20176 } && test -s conftest$ac_exeext &&
20177 $as_test_x conftest$ac_exeext; then
20178 ac_cv_lib_nsl_gethostbyname=yes
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20183 ac_cv_lib_nsl_gethostbyname=no
20186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20187 conftest$ac_exeext conftest.$ac_ext
20188 LIBS=$ac_check_lib_save_LIBS
20190 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20191 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20192 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20193 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20196 if test $ac_cv_lib_nsl_gethostbyname = no; then
20197 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20198 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20199 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 ac_check_lib_save_LIBS=$LIBS
20204 cat >conftest.$ac_ext <<_ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20211 /* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20217 char gethostbyname ();
20221 return gethostbyname ();
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest$ac_exeext &&
20243 $as_test_x conftest$ac_exeext; then
20244 ac_cv_lib_bsd_gethostbyname=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_cv_lib_bsd_gethostbyname=no
20252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20253 conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20256 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20257 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20258 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20265 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20266 # socket/setsockopt and other routines are undefined under SCO ODT
20267 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20268 # on later versions), says Simon Leinen: it contains gethostby*
20269 # variants that don't use the name server (or something). -lsocket
20270 # must be given before -lnsl if both are needed. We assume that
20271 # if connect needs -lnsl, so does gethostbyname.
20272 { echo "$as_me:$LINENO: checking for connect" >&5
20273 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20274 if test "${ac_cv_func_connect+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20285 #define connect innocuous_connect
20287 /* System header to define __stub macros and hopefully few prototypes,
20288 which can conflict with char connect (); below.
20289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20290 <limits.h> exists even on freestanding compilers. */
20293 # include <limits.h>
20295 # include <assert.h>
20300 /* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20307 /* The GNU C library defines this for functions which it implements
20308 to always fail with ENOSYS. Some functions are actually named
20309 something starting with __ and the normal name is an alias. */
20310 #if defined __stub_connect || defined __stub___connect
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_link") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest$ac_exeext &&
20339 $as_test_x conftest$ac_exeext; then
20340 ac_cv_func_connect=yes
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_func_connect=no
20348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20349 conftest$ac_exeext conftest.$ac_ext
20351 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20352 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20354 if test $ac_cv_func_connect = no; then
20355 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20356 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20357 if test "${ac_cv_lib_socket_connect+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 ac_check_lib_save_LIBS=$LIBS
20361 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20369 /* Override any GCC internal prototype to avoid an error.
20370 Use char because int might match the return type of a GCC
20371 builtin and then its argument prototype would still apply. */
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>conftest.er1
20393 grep -v '^ *+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && {
20398 test -z "$ac_c_werror_flag" ||
20399 test ! -s conftest.err
20400 } && test -s conftest$ac_exeext &&
20401 $as_test_x conftest$ac_exeext; then
20402 ac_cv_lib_socket_connect=yes
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ac_cv_lib_socket_connect=no
20410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20411 conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20414 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20415 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20416 if test $ac_cv_lib_socket_connect = yes; then
20417 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20422 # Guillermo Gomez says -lposix is necessary on A/UX.
20423 { echo "$as_me:$LINENO: checking for remove" >&5
20424 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20425 if test "${ac_cv_func_remove+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20436 #define remove innocuous_remove
20438 /* System header to define __stub macros and hopefully few prototypes,
20439 which can conflict with char remove (); below.
20440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20441 <limits.h> exists even on freestanding compilers. */
20444 # include <limits.h>
20446 # include <assert.h>
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20458 /* The GNU C library defines this for functions which it implements
20459 to always fail with ENOSYS. Some functions are actually named
20460 something starting with __ and the normal name is an alias. */
20461 #if defined __stub_remove || defined __stub___remove
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } && {
20487 test -z "$ac_c_werror_flag" ||
20488 test ! -s conftest.err
20489 } && test -s conftest$ac_exeext &&
20490 $as_test_x conftest$ac_exeext; then
20491 ac_cv_func_remove=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_cv_func_remove=no
20499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20500 conftest$ac_exeext conftest.$ac_ext
20502 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20503 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20505 if test $ac_cv_func_remove = no; then
20506 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20507 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20508 if test "${ac_cv_lib_posix_remove+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 ac_check_lib_save_LIBS=$LIBS
20512 LIBS="-lposix $LIBS"
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20520 /* Override any GCC internal prototype to avoid an error.
20521 Use char because int might match the return type of a GCC
20522 builtin and then its argument prototype would still apply. */
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_link") 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && {
20549 test -z "$ac_c_werror_flag" ||
20550 test ! -s conftest.err
20551 } && test -s conftest$ac_exeext &&
20552 $as_test_x conftest$ac_exeext; then
20553 ac_cv_lib_posix_remove=yes
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 ac_cv_lib_posix_remove=no
20561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20562 conftest$ac_exeext conftest.$ac_ext
20563 LIBS=$ac_check_lib_save_LIBS
20565 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20566 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20567 if test $ac_cv_lib_posix_remove = yes; then
20568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20573 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20574 { echo "$as_me:$LINENO: checking for shmat" >&5
20575 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20576 if test "${ac_cv_func_shmat+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20587 #define shmat innocuous_shmat
20589 /* System header to define __stub macros and hopefully few prototypes,
20590 which can conflict with char shmat (); below.
20591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20592 <limits.h> exists even on freestanding compilers. */
20595 # include <limits.h>
20597 # include <assert.h>
20602 /* Override any GCC internal prototype to avoid an error.
20603 Use char because int might match the return type of a GCC
20604 builtin and then its argument prototype would still apply. */
20609 /* The GNU C library defines this for functions which it implements
20610 to always fail with ENOSYS. Some functions are actually named
20611 something starting with __ and the normal name is an alias. */
20612 #if defined __stub_shmat || defined __stub___shmat
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest$ac_exeext &&
20641 $as_test_x conftest$ac_exeext; then
20642 ac_cv_func_shmat=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_cv_func_shmat=no
20650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20651 conftest$ac_exeext conftest.$ac_ext
20653 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20654 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20656 if test $ac_cv_func_shmat = no; then
20657 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20658 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20659 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 ac_check_lib_save_LIBS=$LIBS
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20671 /* Override any GCC internal prototype to avoid an error.
20672 Use char because int might match the return type of a GCC
20673 builtin and then its argument prototype would still apply. */
20686 rm -f conftest.$ac_objext conftest$ac_exeext
20687 if { (ac_try="$ac_link"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_link") 2>conftest.er1
20695 grep -v '^ *+' conftest.er1 >conftest.err
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && {
20700 test -z "$ac_c_werror_flag" ||
20701 test ! -s conftest.err
20702 } && test -s conftest$ac_exeext &&
20703 $as_test_x conftest$ac_exeext; then
20704 ac_cv_lib_ipc_shmat=yes
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ac_cv_lib_ipc_shmat=no
20712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20713 conftest$ac_exeext conftest.$ac_ext
20714 LIBS=$ac_check_lib_save_LIBS
20716 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20717 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20718 if test $ac_cv_lib_ipc_shmat = yes; then
20719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20725 # Check for libraries that X11R6 Xt/Xaw programs need.
20726 ac_save_LDFLAGS=$LDFLAGS
20727 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20728 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20729 # check for ICE first), but we must link in the order -lSM -lICE or
20730 # we get undefined symbols. So assume we have SM if we have ICE.
20731 # These have to be linked with before -lX11, unlike the other
20732 # libraries we check for below, so use a different variable.
20733 # John Interrante, Karl Berry
20734 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20735 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20736 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20748 /* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20754 char IceConnectionNumber ();
20758 return IceConnectionNumber ();
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_link") 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && {
20777 test -z "$ac_c_werror_flag" ||
20778 test ! -s conftest.err
20779 } && test -s conftest$ac_exeext &&
20780 $as_test_x conftest$ac_exeext; then
20781 ac_cv_lib_ICE_IceConnectionNumber=yes
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ac_cv_lib_ICE_IceConnectionNumber=no
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20793 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20794 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20795 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20796 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20799 LDFLAGS=$ac_save_LDFLAGS
20803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20805 if test "${ac_cv_header_stdc+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20814 #include <stdlib.h>
20815 #include <stdarg.h>
20816 #include <string.h>
20827 rm -f conftest.$ac_objext
20828 if { (ac_try="$ac_compile"
20829 case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_compile") 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && {
20841 test -z "$ac_c_werror_flag" ||
20842 test ! -s conftest.err
20843 } && test -s conftest.$ac_objext; then
20844 ac_cv_header_stdc=yes
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_cv_header_stdc=no
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854 if test $ac_cv_header_stdc = yes; then
20855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20856 cat >conftest.$ac_ext <<_ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 #include <string.h>
20865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20866 $EGREP "memchr" >/dev/null 2>&1; then
20869 ac_cv_header_stdc=no
20875 if test $ac_cv_header_stdc = yes; then
20876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 #include <stdlib.h>
20886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20887 $EGREP "free" >/dev/null 2>&1; then
20890 ac_cv_header_stdc=no
20896 if test $ac_cv_header_stdc = yes; then
20897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20898 if test "$cross_compiling" = yes; then
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20908 #include <stdlib.h>
20909 #if ((' ' & 0x0FF) == 0x020)
20910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20913 # define ISLOWER(c) \
20914 (('a' <= (c) && (c) <= 'i') \
20915 || ('j' <= (c) && (c) <= 'r') \
20916 || ('s' <= (c) && (c) <= 'z'))
20917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20925 for (i = 0; i < 256; i++)
20926 if (XOR (islower (i), ISLOWER (i))
20927 || toupper (i) != TOUPPER (i))
20932 rm -f conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_link") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20943 { (case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_try") 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20954 echo "$as_me: program exited with status $ac_status" >&5
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ( exit $ac_status )
20959 ac_cv_header_stdc=no
20961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20967 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20968 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20969 if test $ac_cv_header_stdc = yes; then
20971 cat >>confdefs.h <<\_ACEOF
20972 #define STDC_HEADERS 1
20977 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20978 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20979 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 cat >conftest.$ac_ext <<_ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 #include <sys/types.h>
20989 #include <sys/wait.h>
20990 #ifndef WEXITSTATUS
20991 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20994 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21002 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21007 rm -f conftest.$ac_objext
21008 if { (ac_try="$ac_compile"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_compile") 2>conftest.er1
21016 grep -v '^ *+' conftest.er1 >conftest.err
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } && {
21021 test -z "$ac_c_werror_flag" ||
21022 test ! -s conftest.err
21023 } && test -s conftest.$ac_objext; then
21024 ac_cv_header_sys_wait_h=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_cv_header_sys_wait_h=no
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21035 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21036 if test $ac_cv_header_sys_wait_h = yes; then
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_SYS_WAIT_H 1
21051 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h term.h
21053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 ac_res=`eval echo '${'$as_ac_Header'}'`
21061 { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21064 # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21074 #include <$ac_header>
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } && {
21090 test -z "$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 } && test -s conftest.$ac_objext; then
21093 ac_header_compiler=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_header_compiler=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21103 echo "${ECHO_T}$ac_header_compiler" >&6; }
21105 # Is the header present?
21106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <$ac_header>
21116 if { (ac_try="$ac_cpp conftest.$ac_ext"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } >/dev/null && {
21129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21132 ac_header_preproc=yes
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 ac_header_preproc=no
21140 rm -f conftest.err conftest.$ac_ext
21141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21142 echo "${ECHO_T}$ac_header_preproc" >&6; }
21144 # So? What about this header?
21145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21151 ac_header_preproc=yes
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 eval "$as_ac_Header=\$ac_header_preproc"
21176 ac_res=`eval echo '${'$as_ac_Header'}'`
21177 { echo "$as_me:$LINENO: result: $ac_res" >&5
21178 echo "${ECHO_T}$ac_res" >&6; }
21181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21182 cat >>confdefs.h <<_ACEOF
21183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_res=`eval echo '${'$as_ac_Header'}'`
21205 { echo "$as_me:$LINENO: result: $ac_res" >&5
21206 echo "${ECHO_T}$ac_res" >&6; }
21208 # Is the header compilable?
21209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21218 #include <$ac_header>
21220 rm -f conftest.$ac_objext
21221 if { (ac_try="$ac_compile"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.$ac_objext; then
21237 ac_header_compiler=yes
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_header_compiler=no
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21247 echo "${ECHO_T}$ac_header_compiler" >&6; }
21249 # Is the header present?
21250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 #include <$ac_header>
21260 if { (ac_try="$ac_cpp conftest.$ac_ext"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1 >conftest.err
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } >/dev/null && {
21273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21276 ac_header_preproc=yes
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_header_preproc=no
21284 rm -f conftest.err conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21286 echo "${ECHO_T}$ac_header_preproc" >&6; }
21288 # So? What about this header?
21289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21295 ac_header_preproc=yes
21298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 eval "$as_ac_Header=\$ac_header_preproc"
21320 ac_res=`eval echo '${'$as_ac_Header'}'`
21321 { echo "$as_me:$LINENO: result: $ac_res" >&5
21322 echo "${ECHO_T}$ac_res" >&6; }
21325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21326 cat >>confdefs.h <<_ACEOF
21327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21339 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 ac_res=`eval echo '${'$as_ac_Header'}'`
21349 { echo "$as_me:$LINENO: result: $ac_res" >&5
21350 echo "${ECHO_T}$ac_res" >&6; }
21352 # Is the header compilable?
21353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21355 cat >conftest.$ac_ext <<_ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 $ac_includes_default
21362 #include <$ac_header>
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_compile") 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest.$ac_objext; then
21381 ac_header_compiler=yes
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ac_header_compiler=no
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21391 echo "${ECHO_T}$ac_header_compiler" >&6; }
21393 # Is the header present?
21394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 #include <$ac_header>
21404 if { (ac_try="$ac_cpp conftest.$ac_ext"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } >/dev/null && {
21417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21420 ac_header_preproc=yes
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ac_header_preproc=no
21428 rm -f conftest.err conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21430 echo "${ECHO_T}$ac_header_preproc" >&6; }
21432 # So? What about this header?
21433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21439 ac_header_preproc=yes
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 eval "$as_ac_Header=\$ac_header_preproc"
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21479 if test "$no_x" != "yes"; then
21485 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21486 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21487 if test "${ac_cv_type_signal+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 #include <sys/types.h>
21497 #include <signal.h>
21502 return *(signal (0, 0)) (0) == 1;
21507 rm -f conftest.$ac_objext
21508 if { (ac_try="$ac_compile"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_compile") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest.$ac_objext; then
21524 ac_cv_type_signal=int
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_cv_type_signal=void
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21535 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21537 cat >>confdefs.h <<_ACEOF
21538 #define RETSIGTYPE $ac_cv_type_signal
21542 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21543 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21544 if test "${ac_cv_type_uid_t+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 #include <sys/types.h>
21556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21557 $EGREP "uid_t" >/dev/null 2>&1; then
21558 ac_cv_type_uid_t=yes
21560 ac_cv_type_uid_t=no
21565 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21566 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21567 if test $ac_cv_type_uid_t = no; then
21569 cat >>confdefs.h <<\_ACEOF
21574 cat >>confdefs.h <<\_ACEOF
21580 { echo "$as_me:$LINENO: checking for short" >&5
21581 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21582 if test "${ac_cv_type_short+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21592 typedef short ac__type_new_;
21596 if ((ac__type_new_ *) 0)
21598 if (sizeof (ac__type_new_))
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611 (eval "$ac_compile") 2>conftest.er1
21613 grep -v '^ *+' conftest.er1 >conftest.err
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } && {
21618 test -z "$ac_c_werror_flag" ||
21619 test ! -s conftest.err
21620 } && test -s conftest.$ac_objext; then
21621 ac_cv_type_short=yes
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_cv_type_short=no
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21632 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21634 # The cast to long int works around a bug in the HP C Compiler
21635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21637 # This bug is HP SR number 8606223364.
21638 { echo "$as_me:$LINENO: checking size of short" >&5
21639 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21640 if test "${ac_cv_sizeof_short+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 if test "$cross_compiling" = yes; then
21644 # Depending upon the size, compute the lo and hi bounds.
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21652 typedef short ac__type_sizeof_;
21656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21663 rm -f conftest.$ac_objext
21664 if { (ac_try="$ac_compile"
21665 case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_compile") 2>conftest.er1
21672 grep -v '^ *+' conftest.er1 >conftest.err
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } && {
21677 test -z "$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 } && test -s conftest.$ac_objext; then
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21689 typedef short ac__type_sizeof_;
21693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21717 ac_hi=$ac_mid; break
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_lo=`expr $ac_mid + 1`
21723 if test $ac_lo -le $ac_mid; then
21727 ac_mid=`expr 2 '*' $ac_mid + 1`
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 $ac_includes_default
21743 typedef short ac__type_sizeof_;
21747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21754 rm -f conftest.$ac_objext
21755 if { (ac_try="$ac_compile"
21756 case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_compile") 2>conftest.er1
21763 grep -v '^ *+' conftest.er1 >conftest.err
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } && {
21768 test -z "$ac_c_werror_flag" ||
21769 test ! -s conftest.err
21770 } && test -s conftest.$ac_objext; then
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 $ac_includes_default
21780 typedef short ac__type_sizeof_;
21784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_compile") 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest.$ac_objext; then
21808 ac_lo=$ac_mid; break
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_hi=`expr '(' $ac_mid ')' - 1`
21814 if test $ac_mid -le $ac_hi; then
21818 ac_mid=`expr 2 '*' $ac_mid`
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21834 # Binary search between lo and hi bounds.
21835 while test "x$ac_lo" != "x$ac_hi"; do
21836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21837 cat >conftest.$ac_ext <<_ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 $ac_includes_default
21844 typedef short ac__type_sizeof_;
21848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_compile") 2>conftest.er1
21864 grep -v '^ *+' conftest.er1 >conftest.err
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest.$ac_objext; then
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_lo=`expr '(' $ac_mid ')' + 1`
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 ?*) ac_cv_sizeof_short=$ac_lo;;
21884 '') if test "$ac_cv_type_short" = yes; then
21885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21886 See \`config.log' for more details." >&5
21887 echo "$as_me: error: cannot compute sizeof (short)
21888 See \`config.log' for more details." >&2;}
21889 { (exit 77); exit 77; }; }
21891 ac_cv_sizeof_short=0
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21901 $ac_includes_default
21902 typedef short ac__type_sizeof_;
21903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21906 #include <stdlib.h>
21911 FILE *f = fopen ("conftest.val", "w");
21914 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21916 long int i = longval ();
21917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21919 fprintf (f, "%ld\n", i);
21923 unsigned long int i = ulongval ();
21924 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21926 fprintf (f, "%lu\n", i);
21928 return ferror (f) || fclose (f) != 0;
21934 rm -f conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21945 { (case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_try") 2>&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
21954 ac_cv_sizeof_short=`cat conftest.val`
21956 echo "$as_me: program exited with status $ac_status" >&5
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ( exit $ac_status )
21961 if test "$ac_cv_type_short" = yes; then
21962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21963 See \`config.log' for more details." >&5
21964 echo "$as_me: error: cannot compute sizeof (short)
21965 See \`config.log' for more details." >&2;}
21966 { (exit 77); exit 77; }; }
21968 ac_cv_sizeof_short=0
21971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21980 cat >>confdefs.h <<_ACEOF
21981 #define SIZEOF_SHORT $ac_cv_sizeof_short
21985 { echo "$as_me:$LINENO: checking for int" >&5
21986 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21987 if test "${ac_cv_type_int+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 cat >conftest.$ac_ext <<_ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
21997 typedef int ac__type_new_;
22001 if ((ac__type_new_ *) 0)
22003 if (sizeof (ac__type_new_))
22009 rm -f conftest.$ac_objext
22010 if { (ac_try="$ac_compile"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_compile") 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } && {
22023 test -z "$ac_c_werror_flag" ||
22024 test ! -s conftest.err
22025 } && test -s conftest.$ac_objext; then
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22036 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22037 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22039 # The cast to long int works around a bug in the HP C Compiler
22040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22042 # This bug is HP SR number 8606223364.
22043 { echo "$as_me:$LINENO: checking size of int" >&5
22044 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22045 if test "${ac_cv_sizeof_int+set}" = set; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 if test "$cross_compiling" = yes; then
22049 # Depending upon the size, compute the lo and hi bounds.
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 $ac_includes_default
22057 typedef int ac__type_sizeof_;
22061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.$ac_objext; then
22087 cat >conftest.$ac_ext <<_ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22093 $ac_includes_default
22094 typedef int ac__type_sizeof_;
22098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22114 grep -v '^ *+' conftest.er1 >conftest.err
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.$ac_objext; then
22122 ac_hi=$ac_mid; break
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_lo=`expr $ac_mid + 1`
22128 if test $ac_lo -le $ac_mid; then
22132 ac_mid=`expr 2 '*' $ac_mid + 1`
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138 echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 $ac_includes_default
22148 typedef int ac__type_sizeof_;
22152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
22178 cat >conftest.$ac_ext <<_ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184 $ac_includes_default
22185 typedef int ac__type_sizeof_;
22189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22196 rm -f conftest.$ac_objext
22197 if { (ac_try="$ac_compile"
22198 case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_compile") 2>conftest.er1
22205 grep -v '^ *+' conftest.er1 >conftest.err
22207 cat conftest.err >&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } && {
22210 test -z "$ac_c_werror_flag" ||
22211 test ! -s conftest.err
22212 } && test -s conftest.$ac_objext; then
22213 ac_lo=$ac_mid; break
22215 echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22218 ac_hi=`expr '(' $ac_mid ')' - 1`
22219 if test $ac_mid -le $ac_hi; then
22223 ac_mid=`expr 2 '*' $ac_mid`
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229 echo "$as_me: failed program was:" >&5
22230 sed 's/^/| /' conftest.$ac_ext >&5
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 # Binary search between lo and hi bounds.
22240 while test "x$ac_lo" != "x$ac_hi"; do
22241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 $ac_includes_default
22249 typedef int ac__type_sizeof_;
22253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_compile") 2>conftest.er1
22269 grep -v '^ *+' conftest.er1 >conftest.err
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest.$ac_objext; then
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22282 ac_lo=`expr '(' $ac_mid ')' + 1`
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 ?*) ac_cv_sizeof_int=$ac_lo;;
22289 '') if test "$ac_cv_type_int" = yes; then
22290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22291 See \`config.log' for more details." >&5
22292 echo "$as_me: error: cannot compute sizeof (int)
22293 See \`config.log' for more details." >&2;}
22294 { (exit 77); exit 77; }; }
22300 cat >conftest.$ac_ext <<_ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22306 $ac_includes_default
22307 typedef int ac__type_sizeof_;
22308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22311 #include <stdlib.h>
22316 FILE *f = fopen ("conftest.val", "w");
22319 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22321 long int i = longval ();
22322 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22324 fprintf (f, "%ld\n", i);
22328 unsigned long int i = ulongval ();
22329 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22331 fprintf (f, "%lu\n", i);
22333 return ferror (f) || fclose (f) != 0;
22339 rm -f conftest$ac_exeext
22340 if { (ac_try="$ac_link"
22341 case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_link") 2>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350 { (case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_try") 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_sizeof_int=`cat conftest.val`
22361 echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22365 ( exit $ac_status )
22366 if test "$ac_cv_type_int" = yes; then
22367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22368 See \`config.log' for more details." >&5
22369 echo "$as_me: error: cannot compute sizeof (int)
22370 See \`config.log' for more details." >&2;}
22371 { (exit 77); exit 77; }; }
22376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22385 cat >>confdefs.h <<_ACEOF
22386 #define SIZEOF_INT $ac_cv_sizeof_int
22390 { echo "$as_me:$LINENO: checking for long" >&5
22391 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22392 if test "${ac_cv_type_long+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 $ac_includes_default
22402 typedef long ac__type_new_;
22406 if ((ac__type_new_ *) 0)
22408 if (sizeof (ac__type_new_))
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_compile") 2>conftest.er1
22423 grep -v '^ *+' conftest.er1 >conftest.err
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && {
22428 test -z "$ac_c_werror_flag" ||
22429 test ! -s conftest.err
22430 } && test -s conftest.$ac_objext; then
22431 ac_cv_type_long=yes
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22442 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22444 # The cast to long int works around a bug in the HP C Compiler
22445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22447 # This bug is HP SR number 8606223364.
22448 { echo "$as_me:$LINENO: checking size of long" >&5
22449 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22450 if test "${ac_cv_sizeof_long+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22453 if test "$cross_compiling" = yes; then
22454 # Depending upon the size, compute the lo and hi bounds.
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 $ac_includes_default
22462 typedef long ac__type_sizeof_;
22466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_compile") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest.$ac_objext; then
22492 cat >conftest.$ac_ext <<_ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 $ac_includes_default
22499 typedef long ac__type_sizeof_;
22503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22510 rm -f conftest.$ac_objext
22511 if { (ac_try="$ac_compile"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_compile") 2>conftest.er1
22519 grep -v '^ *+' conftest.er1 >conftest.err
22521 cat conftest.err >&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && {
22524 test -z "$ac_c_werror_flag" ||
22525 test ! -s conftest.err
22526 } && test -s conftest.$ac_objext; then
22527 ac_hi=$ac_mid; break
22529 echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22532 ac_lo=`expr $ac_mid + 1`
22533 if test $ac_lo -le $ac_mid; then
22537 ac_mid=`expr 2 '*' $ac_mid + 1`
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 $ac_includes_default
22553 typedef long ac__type_sizeof_;
22557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 typedef long ac__type_sizeof_;
22594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_compile") 2>conftest.er1
22610 grep -v '^ *+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest.$ac_objext; then
22618 ac_lo=$ac_mid; break
22620 echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 ac_hi=`expr '(' $ac_mid ')' - 1`
22624 if test $ac_mid -le $ac_hi; then
22628 ac_mid=`expr 2 '*' $ac_mid`
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 # Binary search between lo and hi bounds.
22645 while test "x$ac_lo" != "x$ac_hi"; do
22646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22647 cat >conftest.$ac_ext <<_ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 $ac_includes_default
22654 typedef long ac__type_sizeof_;
22658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_compile") 2>conftest.er1
22674 grep -v '^ *+' conftest.er1 >conftest.err
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } && {
22679 test -z "$ac_c_werror_flag" ||
22680 test ! -s conftest.err
22681 } && test -s conftest.$ac_objext; then
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 ac_lo=`expr '(' $ac_mid ')' + 1`
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693 ?*) ac_cv_sizeof_long=$ac_lo;;
22694 '') if test "$ac_cv_type_long" = yes; then
22695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22696 See \`config.log' for more details." >&5
22697 echo "$as_me: error: cannot compute sizeof (long)
22698 See \`config.log' for more details." >&2;}
22699 { (exit 77); exit 77; }; }
22701 ac_cv_sizeof_long=0
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 $ac_includes_default
22712 typedef long ac__type_sizeof_;
22713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22716 #include <stdlib.h>
22721 FILE *f = fopen ("conftest.val", "w");
22724 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22726 long int i = longval ();
22727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22729 fprintf (f, "%ld\n", i);
22733 unsigned long int i = ulongval ();
22734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22736 fprintf (f, "%lu\n", i);
22738 return ferror (f) || fclose (f) != 0;
22744 rm -f conftest$ac_exeext
22745 if { (ac_try="$ac_link"
22746 case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_link") 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22755 { (case "(($ac_try" in
22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757 *) ac_try_echo=$ac_try;;
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_try") 2>&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; }; then
22764 ac_cv_sizeof_long=`cat conftest.val`
22766 echo "$as_me: program exited with status $ac_status" >&5
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 ( exit $ac_status )
22771 if test "$ac_cv_type_long" = yes; then
22772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22773 See \`config.log' for more details." >&5
22774 echo "$as_me: error: cannot compute sizeof (long)
22775 See \`config.log' for more details." >&2;}
22776 { (exit 77); exit 77; }; }
22778 ac_cv_sizeof_long=0
22781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22786 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22790 cat >>confdefs.h <<_ACEOF
22791 #define SIZEOF_LONG $ac_cv_sizeof_long
22795 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22796 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22797 if test "$ac_cv_sizeof_long" = 4; then
22799 elif test "$ac_cv_sizeof_int" = 4; then
22801 elif test "$ac_cv_sizeof_short" = 4; then
22804 { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22805 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22808 cat >>confdefs.h <<_ACEOF
22809 #define ZEPHYR_INT32 ${int32}
22812 { echo "$as_me:$LINENO: result: ${int32}" >&5
22813 echo "${ECHO_T}${int32}" >&6; }
22816 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22817 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22818 if test "${ac_cv_lib_w_wslen+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22821 ac_check_lib_save_LIBS=$LIBS
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22830 /* Override any GCC internal prototype to avoid an error.
22831 Use char because int might match the return type of a GCC
22832 builtin and then its argument prototype would still apply. */
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>conftest.er1
22854 grep -v '^ *+' conftest.er1 >conftest.err
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest$ac_exeext &&
22862 $as_test_x conftest$ac_exeext; then
22863 ac_cv_lib_w_wslen=yes
22865 echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22868 ac_cv_lib_w_wslen=no
22871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22872 conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22875 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22876 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22877 if test $ac_cv_lib_w_wslen = yes; then
22878 cat >>confdefs.h <<_ACEOF
22879 #define HAVE_LIBW 1
22887 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 ac_check_lib_save_LIBS=$LIBS
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22901 /* Override any GCC internal prototype to avoid an error.
22902 Use char because int might match the return type of a GCC
22903 builtin and then its argument prototype would still apply. */
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_link") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest$ac_exeext &&
22933 $as_test_x conftest$ac_exeext; then
22934 ac_cv_lib_dl_dlopen=yes
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_cv_lib_dl_dlopen=no
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22948 if test $ac_cv_lib_dl_dlopen = yes; then
22949 cat >>confdefs.h <<_ACEOF
22950 #define HAVE_LIBDL 1
22958 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22959 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22960 if test "${ac_cv_search_gethostbyname+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 ac_func_search_save_LIBS=$LIBS
22964 cat >conftest.$ac_ext <<_ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22971 /* Override any GCC internal prototype to avoid an error.
22972 Use char because int might match the return type of a GCC
22973 builtin and then its argument prototype would still apply. */
22977 char gethostbyname ();
22981 return gethostbyname ();
22986 for ac_lib in '' nsl; do
22987 if test -z "$ac_lib"; then
22988 ac_res="none required"
22991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_link") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext &&
23010 $as_test_x conftest$ac_exeext; then
23011 ac_cv_search_gethostbyname=$ac_res
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021 if test "${ac_cv_search_gethostbyname+set}" = set; then
23025 if test "${ac_cv_search_gethostbyname+set}" = set; then
23028 ac_cv_search_gethostbyname=no
23030 rm conftest.$ac_ext
23031 LIBS=$ac_func_search_save_LIBS
23033 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23034 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23035 ac_res=$ac_cv_search_gethostbyname
23036 if test "$ac_res" != no; then
23037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23041 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23042 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23043 if test "${ac_cv_search_socket+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 ac_func_search_save_LIBS=$LIBS
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23054 /* Override any GCC internal prototype to avoid an error.
23055 Use char because int might match the return type of a GCC
23056 builtin and then its argument prototype would still apply. */
23069 for ac_lib in '' socket; do
23070 if test -z "$ac_lib"; then
23071 ac_res="none required"
23074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23076 rm -f conftest.$ac_objext conftest$ac_exeext
23077 if { (ac_try="$ac_link"
23078 case "(($ac_try" in
23079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080 *) ac_try_echo=$ac_try;;
23082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083 (eval "$ac_link") 2>conftest.er1
23085 grep -v '^ *+' conftest.er1 >conftest.err
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } && {
23090 test -z "$ac_c_werror_flag" ||
23091 test ! -s conftest.err
23092 } && test -s conftest$ac_exeext &&
23093 $as_test_x conftest$ac_exeext; then
23094 ac_cv_search_socket=$ac_res
23096 echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23104 if test "${ac_cv_search_socket+set}" = set; then
23108 if test "${ac_cv_search_socket+set}" = set; then
23111 ac_cv_search_socket=no
23113 rm conftest.$ac_ext
23114 LIBS=$ac_func_search_save_LIBS
23116 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23117 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23118 ac_res=$ac_cv_search_socket
23119 if test "$ac_res" != no; then
23120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23125 # Hesiod needs -lresolv on Sun systems for res_send.
23126 if test "$hesiod" != "no"; then
23128 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23129 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23130 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23133 ac_check_lib_save_LIBS=$LIBS
23134 LIBS="-l44bsd $LIBS"
23135 cat >conftest.$ac_ext <<_ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h. */
23142 /* Override any GCC internal prototype to avoid an error.
23143 Use char because int might match the return type of a GCC
23144 builtin and then its argument prototype would still apply. */
23152 return strerror ();
23157 rm -f conftest.$ac_objext conftest$ac_exeext
23158 if { (ac_try="$ac_link"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_link") 2>conftest.er1
23166 grep -v '^ *+' conftest.er1 >conftest.err
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } && {
23171 test -z "$ac_c_werror_flag" ||
23172 test ! -s conftest.err
23173 } && test -s conftest$ac_exeext &&
23174 $as_test_x conftest$ac_exeext; then
23175 ac_cv_lib_44bsd_strerror=yes
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_cv_lib_44bsd_strerror=no
23183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23184 conftest$ac_exeext conftest.$ac_ext
23185 LIBS=$ac_check_lib_save_LIBS
23187 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23188 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23189 if test $ac_cv_lib_44bsd_strerror = yes; then
23190 cat >>confdefs.h <<_ACEOF
23191 #define HAVE_LIB44BSD 1
23194 LIBS="-l44bsd $LIBS"
23199 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23200 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23201 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 ac_check_lib_save_LIBS=$LIBS
23205 LIBS="-lresolv $LIBS"
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23213 /* Override any GCC internal prototype to avoid an error.
23214 Use char because int might match the return type of a GCC
23215 builtin and then its argument prototype would still apply. */
23223 return res_send ();
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (ac_try="$ac_link"
23230 case "(($ac_try" in
23231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232 *) ac_try_echo=$ac_try;;
23234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235 (eval "$ac_link") 2>conftest.er1
23237 grep -v '^ *+' conftest.er1 >conftest.err
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && {
23242 test -z "$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 } && test -s conftest$ac_exeext &&
23245 $as_test_x conftest$ac_exeext; then
23246 ac_cv_lib_resolv_res_send=yes
23248 echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23251 ac_cv_lib_resolv_res_send=no
23254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23255 conftest$ac_exeext conftest.$ac_ext
23256 LIBS=$ac_check_lib_save_LIBS
23258 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23259 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23260 if test $ac_cv_lib_resolv_res_send = yes; then
23261 cat >>confdefs.h <<_ACEOF
23262 #define HAVE_LIBRESOLV 1
23265 LIBS="-lresolv $LIBS"
23270 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23271 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23272 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 ac_check_lib_save_LIBS=$LIBS
23276 LIBS="-lresolv $LIBS"
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23284 /* Override any GCC internal prototype to avoid an error.
23285 Use char because int might match the return type of a GCC
23286 builtin and then its argument prototype would still apply. */
23290 char __res_send ();
23294 return __res_send ();
23299 rm -f conftest.$ac_objext conftest$ac_exeext
23300 if { (ac_try="$ac_link"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306 (eval "$ac_link") 2>conftest.er1
23308 grep -v '^ *+' conftest.er1 >conftest.err
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_c_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest$ac_exeext &&
23316 $as_test_x conftest$ac_exeext; then
23317 ac_cv_lib_resolv___res_send=yes
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ac_cv_lib_resolv___res_send=no
23325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23326 conftest$ac_exeext conftest.$ac_ext
23327 LIBS=$ac_check_lib_save_LIBS
23329 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23330 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23331 if test $ac_cv_lib_resolv___res_send = yes; then
23332 cat >>confdefs.h <<_ACEOF
23333 #define HAVE_LIBRESOLV 1
23336 LIBS="-lresolv $LIBS"
23342 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23343 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23344 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 ac_check_lib_save_LIBS=$LIBS
23348 LIBS="-lcurses $LIBS"
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23356 /* Override any GCC internal prototype to avoid an error.
23357 Use char because int might match the return type of a GCC
23358 builtin and then its argument prototype would still apply. */
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_link") 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest$ac_exeext &&
23388 $as_test_x conftest$ac_exeext; then
23389 ac_cv_lib_curses_tgetstr=yes
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_lib_curses_tgetstr=no
23397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23398 conftest$ac_exeext conftest.$ac_ext
23399 LIBS=$ac_check_lib_save_LIBS
23401 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23402 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23403 if test $ac_cv_lib_curses_tgetstr = yes; then
23409 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23410 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23411 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23412 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 ac_check_lib_save_LIBS=$LIBS
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23423 /* Override any GCC internal prototype to avoid an error.
23424 Use char because int might match the return type of a GCC
23425 builtin and then its argument prototype would still apply. */
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (ac_try="$ac_link"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_link") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest$ac_exeext &&
23455 $as_test_x conftest$ac_exeext; then
23456 ac_cv_lib_src_srcsrpy=yes
23458 echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23461 ac_cv_lib_src_srcsrpy=no
23464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23465 conftest$ac_exeext conftest.$ac_ext
23466 LIBS=$ac_check_lib_save_LIBS
23468 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23469 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23470 if test $ac_cv_lib_src_srcsrpy = yes; then
23471 SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23482 # Check whether --with-krb4 was given.
23483 if test "${with_krb4+set}" = set; then
23484 withval=$with_krb4; krb4="$withval"
23489 if test "$krb4" != no; then
23490 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23491 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23492 if test "${ac_cv_func_gethostbyname+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23495 cat >conftest.$ac_ext <<_ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23503 #define gethostbyname innocuous_gethostbyname
23505 /* System header to define __stub macros and hopefully few prototypes,
23506 which can conflict with char gethostbyname (); below.
23507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23508 <limits.h> exists even on freestanding compilers. */
23511 # include <limits.h>
23513 # include <assert.h>
23516 #undef gethostbyname
23518 /* Override any GCC internal prototype to avoid an error.
23519 Use char because int might match the return type of a GCC
23520 builtin and then its argument prototype would still apply. */
23524 char gethostbyname ();
23525 /* The GNU C library defines this for functions which it implements
23526 to always fail with ENOSYS. Some functions are actually named
23527 something starting with __ and the normal name is an alias. */
23528 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23535 return gethostbyname ();
23540 rm -f conftest.$ac_objext conftest$ac_exeext
23541 if { (ac_try="$ac_link"
23542 case "(($ac_try" in
23543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544 *) ac_try_echo=$ac_try;;
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547 (eval "$ac_link") 2>conftest.er1
23549 grep -v '^ *+' conftest.er1 >conftest.err
23551 cat conftest.err >&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } && {
23554 test -z "$ac_c_werror_flag" ||
23555 test ! -s conftest.err
23556 } && test -s conftest$ac_exeext &&
23557 $as_test_x conftest$ac_exeext; then
23558 ac_cv_func_gethostbyname=yes
23560 echo "$as_me: failed program was:" >&5
23561 sed 's/^/| /' conftest.$ac_ext >&5
23563 ac_cv_func_gethostbyname=no
23566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23567 conftest$ac_exeext conftest.$ac_ext
23569 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23570 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23571 if test $ac_cv_func_gethostbyname = yes; then
23575 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23576 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23577 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23580 ac_check_lib_save_LIBS=$LIBS
23582 cat >conftest.$ac_ext <<_ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23589 /* Override any GCC internal prototype to avoid an error.
23590 Use char because int might match the return type of a GCC
23591 builtin and then its argument prototype would still apply. */
23595 char gethostbyname ();
23599 return gethostbyname ();
23604 rm -f conftest.$ac_objext conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>conftest.er1
23613 grep -v '^ *+' conftest.er1 >conftest.err
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest$ac_exeext &&
23621 $as_test_x conftest$ac_exeext; then
23622 ac_cv_lib_nsl_gethostbyname=yes
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23627 ac_cv_lib_nsl_gethostbyname=no
23630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23631 conftest$ac_exeext conftest.$ac_ext
23632 LIBS=$ac_check_lib_save_LIBS
23634 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23635 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23636 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23637 cat >>confdefs.h <<_ACEOF
23638 #define HAVE_LIBNSL 1
23647 { echo "$as_me:$LINENO: checking for socket" >&5
23648 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23649 if test "${ac_cv_func_socket+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23658 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23660 #define socket innocuous_socket
23662 /* System header to define __stub macros and hopefully few prototypes,
23663 which can conflict with char socket (); below.
23664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23665 <limits.h> exists even on freestanding compilers. */
23668 # include <limits.h>
23670 # include <assert.h>
23675 /* Override any GCC internal prototype to avoid an error.
23676 Use char because int might match the return type of a GCC
23677 builtin and then its argument prototype would still apply. */
23682 /* The GNU C library defines this for functions which it implements
23683 to always fail with ENOSYS. Some functions are actually named
23684 something starting with __ and the normal name is an alias. */
23685 #if defined __stub_socket || defined __stub___socket
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_link") 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest$ac_exeext &&
23714 $as_test_x conftest$ac_exeext; then
23715 ac_cv_func_socket=yes
23717 echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_func_socket=no
23723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23724 conftest$ac_exeext conftest.$ac_ext
23726 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23727 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23728 if test $ac_cv_func_socket = yes; then
23732 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23733 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23734 if test "${ac_cv_lib_socket_socket+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23737 ac_check_lib_save_LIBS=$LIBS
23738 LIBS="-lsocket $LIBS"
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 /* Override any GCC internal prototype to avoid an error.
23747 Use char because int might match the return type of a GCC
23748 builtin and then its argument prototype would still apply. */
23761 rm -f conftest.$ac_objext conftest$ac_exeext
23762 if { (ac_try="$ac_link"
23763 case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_link") 2>conftest.er1
23770 grep -v '^ *+' conftest.er1 >conftest.err
23772 cat conftest.err >&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } && {
23775 test -z "$ac_c_werror_flag" ||
23776 test ! -s conftest.err
23777 } && test -s conftest$ac_exeext &&
23778 $as_test_x conftest$ac_exeext; then
23779 ac_cv_lib_socket_socket=yes
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_cv_lib_socket_socket=no
23787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23788 conftest$ac_exeext conftest.$ac_ext
23789 LIBS=$ac_check_lib_save_LIBS
23791 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23792 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23793 if test $ac_cv_lib_socket_socket = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_LIBSOCKET 1
23798 LIBS="-lsocket $LIBS"
23805 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23806 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23807 if test "${ac_cv_lib_gen_compile+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 ac_check_lib_save_LIBS=$LIBS
23812 cat >conftest.$ac_ext <<_ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23819 /* Override any GCC internal prototype to avoid an error.
23820 Use char because int might match the return type of a GCC
23821 builtin and then its argument prototype would still apply. */
23834 rm -f conftest.$ac_objext conftest$ac_exeext
23835 if { (ac_try="$ac_link"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_link") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest$ac_exeext &&
23851 $as_test_x conftest$ac_exeext; then
23852 ac_cv_lib_gen_compile=yes
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ac_cv_lib_gen_compile=no
23860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23861 conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23864 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23865 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23866 if test $ac_cv_lib_gen_compile = yes; then
23867 cat >>confdefs.h <<_ACEOF
23868 #define HAVE_LIBGEN 1
23875 if test "$krb4" != yes; then
23876 CPPFLAGS="$CPPFLAGS -I$krb4/include"
23877 if test -d "$krb4/include/kerberosIV"; then
23878 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23880 LDFLAGS="$LDFLAGS -L$krb4/lib"
23882 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23883 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23884 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23885 echo $ECHO_N "(cached) $ECHO_C" >&6
23887 ac_check_lib_save_LIBS=$LIBS
23888 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23896 /* Override any GCC internal prototype to avoid an error.
23897 Use char because int might match the return type of a GCC
23898 builtin and then its argument prototype would still apply. */
23902 char krb_rd_req ();
23906 return krb_rd_req ();
23911 rm -f conftest.$ac_objext conftest$ac_exeext
23912 if { (ac_try="$ac_link"
23913 case "(($ac_try" in
23914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918 (eval "$ac_link") 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } && {
23925 test -z "$ac_c_werror_flag" ||
23926 test ! -s conftest.err
23927 } && test -s conftest$ac_exeext &&
23928 $as_test_x conftest$ac_exeext; then
23929 ac_cv_lib_krb4_krb_rd_req=yes
23931 echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23934 ac_cv_lib_krb4_krb_rd_req=no
23937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23938 conftest$ac_exeext conftest.$ac_ext
23939 LIBS=$ac_check_lib_save_LIBS
23941 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23942 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23943 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23944 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23946 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23947 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23948 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23951 ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-lkrb -ldes $LIBS"
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23960 /* Override any GCC internal prototype to avoid an error.
23961 Use char because int might match the return type of a GCC
23962 builtin and then its argument prototype would still apply. */
23966 char krb_rd_req ();
23970 return krb_rd_req ();
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_link") 2>conftest.er1
23984 grep -v '^ *+' conftest.er1 >conftest.err
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } && {
23989 test -z "$ac_c_werror_flag" ||
23990 test ! -s conftest.err
23991 } && test -s conftest$ac_exeext &&
23992 $as_test_x conftest$ac_exeext; then
23993 ac_cv_lib_krb_krb_rd_req=yes
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 ac_cv_lib_krb_krb_rd_req=no
24001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24002 conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24005 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24006 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24007 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24008 KRB4_LIBS="-lkrb -ldes"
24010 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24011 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24012 { (exit 1); exit 1; }; }
24017 cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_KRB4 1
24025 # Check whether --with-krb5 was given.
24026 if test "${with_krb5+set}" = set; then
24027 withval=$with_krb5; krb5="$withval"
24032 if test "$krb5" != no; then
24033 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24034 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24035 if test "${ac_cv_search_gethostbyname+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24038 ac_func_search_save_LIBS=$LIBS
24039 cat >conftest.$ac_ext <<_ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24046 /* Override any GCC internal prototype to avoid an error.
24047 Use char because int might match the return type of a GCC
24048 builtin and then its argument prototype would still apply. */
24052 char gethostbyname ();
24056 return gethostbyname ();
24061 for ac_lib in '' nsl; do
24062 if test -z "$ac_lib"; then
24063 ac_res="none required"
24066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24068 rm -f conftest.$ac_objext conftest$ac_exeext
24069 if { (ac_try="$ac_link"
24070 case "(($ac_try" in
24071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072 *) ac_try_echo=$ac_try;;
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075 (eval "$ac_link") 2>conftest.er1
24077 grep -v '^ *+' conftest.er1 >conftest.err
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } && {
24082 test -z "$ac_c_werror_flag" ||
24083 test ! -s conftest.err
24084 } && test -s conftest$ac_exeext &&
24085 $as_test_x conftest$ac_exeext; then
24086 ac_cv_search_gethostbyname=$ac_res
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24096 if test "${ac_cv_search_gethostbyname+set}" = set; then
24100 if test "${ac_cv_search_gethostbyname+set}" = set; then
24103 ac_cv_search_gethostbyname=no
24105 rm conftest.$ac_ext
24106 LIBS=$ac_func_search_save_LIBS
24108 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24109 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24110 ac_res=$ac_cv_search_gethostbyname
24111 if test "$ac_res" != no; then
24112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24116 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24117 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24118 if test "${ac_cv_search_socket+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 ac_func_search_save_LIBS=$LIBS
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24129 /* Override any GCC internal prototype to avoid an error.
24130 Use char because int might match the return type of a GCC
24131 builtin and then its argument prototype would still apply. */
24144 for ac_lib in '' socket; do
24145 if test -z "$ac_lib"; then
24146 ac_res="none required"
24149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24151 rm -f conftest.$ac_objext conftest$ac_exeext
24152 if { (ac_try="$ac_link"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_link") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest$ac_exeext &&
24168 $as_test_x conftest$ac_exeext; then
24169 ac_cv_search_socket=$ac_res
24171 echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24179 if test "${ac_cv_search_socket+set}" = set; then
24183 if test "${ac_cv_search_socket+set}" = set; then
24186 ac_cv_search_socket=no
24188 rm conftest.$ac_ext
24189 LIBS=$ac_func_search_save_LIBS
24191 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24192 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24193 ac_res=$ac_cv_search_socket
24194 if test "$ac_res" != no; then
24195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24200 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24201 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24202 if test "${ac_cv_lib_gen_compile+set}" = set; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24205 ac_check_lib_save_LIBS=$LIBS
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24214 /* Override any GCC internal prototype to avoid an error.
24215 Use char because int might match the return type of a GCC
24216 builtin and then its argument prototype would still apply. */
24229 rm -f conftest.$ac_objext conftest$ac_exeext
24230 if { (ac_try="$ac_link"
24231 case "(($ac_try" in
24232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233 *) ac_try_echo=$ac_try;;
24235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236 (eval "$ac_link") 2>conftest.er1
24238 grep -v '^ *+' conftest.er1 >conftest.err
24240 cat conftest.err >&5
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); } && {
24243 test -z "$ac_c_werror_flag" ||
24244 test ! -s conftest.err
24245 } && test -s conftest$ac_exeext &&
24246 $as_test_x conftest$ac_exeext; then
24247 ac_cv_lib_gen_compile=yes
24249 echo "$as_me: failed program was:" >&5
24250 sed 's/^/| /' conftest.$ac_ext >&5
24252 ac_cv_lib_gen_compile=no
24255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256 conftest$ac_exeext conftest.$ac_ext
24257 LIBS=$ac_check_lib_save_LIBS
24259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24260 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24261 if test $ac_cv_lib_gen_compile = yes; then
24262 cat >>confdefs.h <<_ACEOF
24263 #define HAVE_LIBGEN 1
24270 if test "$krb5" != yes; then
24271 PATH="$PATH:$krb5/bin"
24273 # Extract the first word of "krb5-config", so it can be a program name with args.
24274 set dummy krb5-config; ac_word=$2
24275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24277 if test "${ac_cv_prog_krb5config+set}" = set; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24280 if test -n "$krb5config"; then
24281 ac_cv_prog_krb5config="$krb5config" # Let the user override the test.
24283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24284 for as_dir in $PATH
24287 test -z "$as_dir" && as_dir=.
24288 for ac_exec_ext in '' $ac_executable_extensions; do
24289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24290 ac_cv_prog_krb5config="yes"
24291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24300 krb5config=$ac_cv_prog_krb5config
24301 if test -n "$krb5config"; then
24302 { echo "$as_me:$LINENO: result: $krb5config" >&5
24303 echo "${ECHO_T}$krb5config" >&6; }
24305 { echo "$as_me:$LINENO: result: no" >&5
24306 echo "${ECHO_T}no" >&6; }
24310 if test "$krb5config" == yes; then
24311 CPPFLAGS="$CPPFLAGS $(krb5-config --cflags krb5)"
24312 KRB5_LIBS="$(krb5-config --libs krb5)"
24314 if test "$krb5" != yes; then
24315 CPPFLAGS="$CPPFLAGS -I$krb5/include"
24316 LDFLAGS="$LDFLAGS -L$krb5/lib"
24318 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24319 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24320 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24321 echo $ECHO_N "(cached) $ECHO_C" >&6
24323 ac_check_lib_save_LIBS=$LIBS
24324 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24332 /* Override any GCC internal prototype to avoid an error.
24333 Use char because int might match the return type of a GCC
24334 builtin and then its argument prototype would still apply. */
24338 char krb5_init_context ();
24342 return krb5_init_context ();
24347 rm -f conftest.$ac_objext conftest$ac_exeext
24348 if { (ac_try="$ac_link"
24349 case "(($ac_try" in
24350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351 *) ac_try_echo=$ac_try;;
24353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24354 (eval "$ac_link") 2>conftest.er1
24356 grep -v '^ *+' conftest.er1 >conftest.err
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } && {
24361 test -z "$ac_c_werror_flag" ||
24362 test ! -s conftest.err
24363 } && test -s conftest$ac_exeext &&
24364 $as_test_x conftest$ac_exeext; then
24365 ac_cv_lib_krb5_krb5_init_context=yes
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24370 ac_cv_lib_krb5_krb5_init_context=no
24373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24374 conftest$ac_exeext conftest.$ac_ext
24375 LIBS=$ac_check_lib_save_LIBS
24377 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24378 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24379 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24382 { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24383 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24384 { (exit 1); exit 1; }; }
24387 KRB5_LIBS="-lkrb5 -l5crypto -lcom_err"
24389 cat >>confdefs.h <<\_ACEOF
24390 #define HAVE_KRB5 1
24397 # Check whether --with-krb5 was given.
24398 if test "${with_krb5+set}" = set; then
24399 withval=$with_krb5; krb5="$withval"
24404 if test "$krb5" != no; then
24405 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24406 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24407 if test "${ac_cv_search_gethostbyname+set}" = set; then
24408 echo $ECHO_N "(cached) $ECHO_C" >&6
24410 ac_func_search_save_LIBS=$LIBS
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24418 /* Override any GCC internal prototype to avoid an error.
24419 Use char because int might match the return type of a GCC
24420 builtin and then its argument prototype would still apply. */
24424 char gethostbyname ();
24428 return gethostbyname ();
24433 for ac_lib in '' nsl; do
24434 if test -z "$ac_lib"; then
24435 ac_res="none required"
24438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24440 rm -f conftest.$ac_objext conftest$ac_exeext
24441 if { (ac_try="$ac_link"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_link") 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest$ac_exeext &&
24457 $as_test_x conftest$ac_exeext; then
24458 ac_cv_search_gethostbyname=$ac_res
24460 echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24468 if test "${ac_cv_search_gethostbyname+set}" = set; then
24472 if test "${ac_cv_search_gethostbyname+set}" = set; then
24475 ac_cv_search_gethostbyname=no
24477 rm conftest.$ac_ext
24478 LIBS=$ac_func_search_save_LIBS
24480 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24481 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24482 ac_res=$ac_cv_search_gethostbyname
24483 if test "$ac_res" != no; then
24484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24488 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24489 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24490 if test "${ac_cv_search_socket+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24493 ac_func_search_save_LIBS=$LIBS
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24501 /* Override any GCC internal prototype to avoid an error.
24502 Use char because int might match the return type of a GCC
24503 builtin and then its argument prototype would still apply. */
24516 for ac_lib in '' socket; do
24517 if test -z "$ac_lib"; then
24518 ac_res="none required"
24521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (ac_try="$ac_link"
24525 case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_link") 2>conftest.er1
24532 grep -v '^ *+' conftest.er1 >conftest.err
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } && {
24537 test -z "$ac_c_werror_flag" ||
24538 test ! -s conftest.err
24539 } && test -s conftest$ac_exeext &&
24540 $as_test_x conftest$ac_exeext; then
24541 ac_cv_search_socket=$ac_res
24543 echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24551 if test "${ac_cv_search_socket+set}" = set; then
24555 if test "${ac_cv_search_socket+set}" = set; then
24558 ac_cv_search_socket=no
24560 rm conftest.$ac_ext
24561 LIBS=$ac_func_search_save_LIBS
24563 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24564 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24565 ac_res=$ac_cv_search_socket
24566 if test "$ac_res" != no; then
24567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24572 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24573 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24574 if test "${ac_cv_lib_gen_compile+set}" = set; then
24575 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 ac_check_lib_save_LIBS=$LIBS
24579 cat >conftest.$ac_ext <<_ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24586 /* Override any GCC internal prototype to avoid an error.
24587 Use char because int might match the return type of a GCC
24588 builtin and then its argument prototype would still apply. */
24601 rm -f conftest.$ac_objext conftest$ac_exeext
24602 if { (ac_try="$ac_link"
24603 case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608 (eval "$ac_link") 2>conftest.er1
24610 grep -v '^ *+' conftest.er1 >conftest.err
24612 cat conftest.err >&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } && {
24615 test -z "$ac_c_werror_flag" ||
24616 test ! -s conftest.err
24617 } && test -s conftest$ac_exeext &&
24618 $as_test_x conftest$ac_exeext; then
24619 ac_cv_lib_gen_compile=yes
24621 echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24624 ac_cv_lib_gen_compile=no
24627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24628 conftest$ac_exeext conftest.$ac_ext
24629 LIBS=$ac_check_lib_save_LIBS
24631 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24632 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24633 if test $ac_cv_lib_gen_compile = yes; then
24634 cat >>confdefs.h <<_ACEOF
24635 #define HAVE_LIBGEN 1
24642 if test "$krb5" != yes; then
24643 CPPFLAGS="$CPPFLAGS -I$krb5/include"
24644 LDFLAGS="$LDFLAGS -L$krb5/lib"
24646 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24647 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24648 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 ac_check_lib_save_LIBS=$LIBS
24652 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24660 /* Override any GCC internal prototype to avoid an error.
24661 Use char because int might match the return type of a GCC
24662 builtin and then its argument prototype would still apply. */
24666 char krb5_init_context ();
24670 return krb5_init_context ();
24675 rm -f conftest.$ac_objext conftest$ac_exeext
24676 if { (ac_try="$ac_link"
24677 case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682 (eval "$ac_link") 2>conftest.er1
24684 grep -v '^ *+' conftest.er1 >conftest.err
24686 cat conftest.err >&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); } && {
24689 test -z "$ac_c_werror_flag" ||
24690 test ! -s conftest.err
24691 } && test -s conftest$ac_exeext &&
24692 $as_test_x conftest$ac_exeext; then
24693 ac_cv_lib_krb5_krb5_init_context=yes
24695 echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24698 ac_cv_lib_krb5_krb5_init_context=no
24701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24702 conftest$ac_exeext conftest.$ac_ext
24703 LIBS=$ac_check_lib_save_LIBS
24705 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24706 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24707 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24710 { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24711 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24712 { (exit 1); exit 1; }; }
24715 KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24716 cat >>confdefs.h <<\_ACEOF
24717 #define HAVE_KRB5 1
24723 # Check whether --with-hesiod was given.
24724 if test "${with_hesiod+set}" = set; then
24725 withval=$with_hesiod; hesiod="$withval"
24730 if test "$hesiod" != no; then
24731 { echo "$as_me:$LINENO: checking for res_send" >&5
24732 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24733 if test "${ac_cv_func_res_send+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24736 cat >conftest.$ac_ext <<_ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h. */
24742 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24744 #define res_send innocuous_res_send
24746 /* System header to define __stub macros and hopefully few prototypes,
24747 which can conflict with char res_send (); below.
24748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24749 <limits.h> exists even on freestanding compilers. */
24752 # include <limits.h>
24754 # include <assert.h>
24759 /* Override any GCC internal prototype to avoid an error.
24760 Use char because int might match the return type of a GCC
24761 builtin and then its argument prototype would still apply. */
24766 /* The GNU C library defines this for functions which it implements
24767 to always fail with ENOSYS. Some functions are actually named
24768 something starting with __ and the normal name is an alias. */
24769 #if defined __stub_res_send || defined __stub___res_send
24776 return res_send ();
24781 rm -f conftest.$ac_objext conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 *) ac_try_echo=$ac_try;;
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788 (eval "$ac_link") 2>conftest.er1
24790 grep -v '^ *+' conftest.er1 >conftest.err
24792 cat conftest.err >&5
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } && {
24795 test -z "$ac_c_werror_flag" ||
24796 test ! -s conftest.err
24797 } && test -s conftest$ac_exeext &&
24798 $as_test_x conftest$ac_exeext; then
24799 ac_cv_func_res_send=yes
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ac_cv_func_res_send=no
24807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24808 conftest$ac_exeext conftest.$ac_ext
24810 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24811 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24812 if test $ac_cv_func_res_send = yes; then
24816 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24817 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24818 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 ac_check_lib_save_LIBS=$LIBS
24822 LIBS="-lresolv $LIBS"
24823 cat >conftest.$ac_ext <<_ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24830 /* Override any GCC internal prototype to avoid an error.
24831 Use char because int might match the return type of a GCC
24832 builtin and then its argument prototype would still apply. */
24840 return res_send ();
24845 rm -f conftest.$ac_objext conftest$ac_exeext
24846 if { (ac_try="$ac_link"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_link") 2>conftest.er1
24854 grep -v '^ *+' conftest.er1 >conftest.err
24856 cat conftest.err >&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } && {
24859 test -z "$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24861 } && test -s conftest$ac_exeext &&
24862 $as_test_x conftest$ac_exeext; then
24863 ac_cv_lib_resolv_res_send=yes
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 ac_cv_lib_resolv_res_send=no
24871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24872 conftest$ac_exeext conftest.$ac_ext
24873 LIBS=$ac_check_lib_save_LIBS
24875 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24876 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24877 if test $ac_cv_lib_resolv_res_send = yes; then
24878 cat >>confdefs.h <<_ACEOF
24879 #define HAVE_LIBRESOLV 1
24882 LIBS="-lresolv $LIBS"
24888 if test "$hesiod" != yes; then
24889 CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24890 LDFLAGS="$LDFLAGS -L$hesiod/lib"
24892 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24893 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24894 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 ac_check_lib_save_LIBS=$LIBS
24898 LIBS="-lhesiod $LIBS $LIBS"
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24906 /* Override any GCC internal prototype to avoid an error.
24907 Use char because int might match the return type of a GCC
24908 builtin and then its argument prototype would still apply. */
24912 char hes_resolve ();
24916 return hes_resolve ();
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (ac_try="$ac_link"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_link") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest$ac_exeext &&
24938 $as_test_x conftest$ac_exeext; then
24939 ac_cv_lib_hesiod_hes_resolve=yes
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 ac_cv_lib_hesiod_hes_resolve=no
24947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24948 conftest$ac_exeext conftest.$ac_ext
24949 LIBS=$ac_check_lib_save_LIBS
24951 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24952 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24953 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24956 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24957 echo "$as_me: error: Hesiod library not found" >&2;}
24958 { (exit 1); exit 1; }; }
24961 HESIOD_LIBS="-lhesiod"
24962 cat >>confdefs.h <<\_ACEOF
24963 #define HAVE_HESIOD 1
24969 # Check whether --with-regex was given.
24970 if test "${with_regex+set}" = set; then
24971 withval=$with_regex; regex="$withval"
24976 if test "$regex" != no; then
24977 if test "$regex" != yes; then
24978 CPPFLAGS="$CPPFLAGS -I$regex/include"
24979 LDFLAGS="$LDFLAGS -L$regex/lib"
24981 { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24982 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24983 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 ac_check_lib_save_LIBS=$LIBS
24987 LIBS="-lregex $LIBS"
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24995 /* Override any GCC internal prototype to avoid an error.
24996 Use char because int might match the return type of a GCC
24997 builtin and then its argument prototype would still apply. */
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_link") 2>conftest.er1
25019 grep -v '^ *+' conftest.er1 >conftest.err
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } && {
25024 test -z "$ac_c_werror_flag" ||
25025 test ! -s conftest.err
25026 } && test -s conftest$ac_exeext &&
25027 $as_test_x conftest$ac_exeext; then
25028 ac_cv_lib_regex_regcomp=yes
25030 echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25033 ac_cv_lib_regex_regcomp=no
25036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25037 conftest$ac_exeext conftest.$ac_ext
25038 LIBS=$ac_check_lib_save_LIBS
25040 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
25041 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
25042 if test $ac_cv_lib_regex_regcomp = yes; then
25045 { { echo "$as_me:$LINENO: error: regex library not found" >&5
25046 echo "$as_me: error: regex library not found" >&2;}
25047 { (exit 1); exit 1; }; }
25051 { echo "$as_me:$LINENO: checking for regcomp" >&5
25052 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25053 if test "${ac_cv_func_regcomp+set}" = set; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
25063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25064 #define regcomp innocuous_regcomp
25066 /* System header to define __stub macros and hopefully few prototypes,
25067 which can conflict with char regcomp (); below.
25068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25069 <limits.h> exists even on freestanding compilers. */
25072 # include <limits.h>
25074 # include <assert.h>
25079 /* Override any GCC internal prototype to avoid an error.
25080 Use char because int might match the return type of a GCC
25081 builtin and then its argument prototype would still apply. */
25086 /* The GNU C library defines this for functions which it implements
25087 to always fail with ENOSYS. Some functions are actually named
25088 something starting with __ and the normal name is an alias. */
25089 #if defined __stub_regcomp || defined __stub___regcomp
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (ac_try="$ac_link"
25103 case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108 (eval "$ac_link") 2>conftest.er1
25110 grep -v '^ *+' conftest.er1 >conftest.err
25112 cat conftest.err >&5
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); } && {
25115 test -z "$ac_c_werror_flag" ||
25116 test ! -s conftest.err
25117 } && test -s conftest$ac_exeext &&
25118 $as_test_x conftest$ac_exeext; then
25119 ac_cv_func_regcomp=yes
25121 echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25124 ac_cv_func_regcomp=no
25127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25128 conftest$ac_exeext conftest.$ac_ext
25130 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25131 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25132 if test $ac_cv_func_regcomp = yes; then
25135 { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
25136 echo "$as_me: error: can't find POSIX regexp support" >&2;}
25137 { (exit 1); exit 1; }; }
25143 # Check whether --with-com_err was given.
25144 if test "${with_com_err+set}" = set; then
25145 withval=$with_com_err; com_err="$withval"
25150 if test "$com_err" != no; then
25151 if test "$com_err" != yes; then
25152 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25153 LDFLAGS="$LDFLAGS -L$com_err/lib"
25155 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25156 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25157 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25160 ac_check_lib_save_LIBS=$LIBS
25161 LIBS="-lcom_err $LIBS"
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25169 /* Override any GCC internal prototype to avoid an error.
25170 Use char because int might match the return type of a GCC
25171 builtin and then its argument prototype would still apply. */
25184 rm -f conftest.$ac_objext conftest$ac_exeext
25185 if { (ac_try="$ac_link"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191 (eval "$ac_link") 2>conftest.er1
25193 grep -v '^ *+' conftest.er1 >conftest.err
25195 cat conftest.err >&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } && {
25198 test -z "$ac_c_werror_flag" ||
25199 test ! -s conftest.err
25200 } && test -s conftest$ac_exeext &&
25201 $as_test_x conftest$ac_exeext; then
25202 ac_cv_lib_com_err_com_err=yes
25204 echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 ac_cv_lib_com_err_com_err=no
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211 conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS
25214 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25215 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25216 if test $ac_cv_lib_com_err_com_err = yes; then
25219 { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25220 echo "$as_me: error: com_err library not found" >&2;}
25221 { (exit 1); exit 1; }; }
25225 { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25226 echo "$as_me: error: This package requires com_err." >&2;}
25227 { (exit 1); exit 1; }; }
25230 # Check whether --with-ss was given.
25231 if test "${with_ss+set}" = set; then
25232 withval=$with_ss; ss="$withval"
25237 if test "$ss" != no; then
25238 if test "$ss" != yes; then
25239 CPPFLAGS="$CPPFLAGS -I$ss/include"
25240 LDFLAGS="$LDFLAGS -L$ss/lib"
25243 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25244 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25245 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25248 ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-lcurses $LIBS"
25250 cat >conftest.$ac_ext <<_ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25257 /* Override any GCC internal prototype to avoid an error.
25258 Use char because int might match the return type of a GCC
25259 builtin and then its argument prototype would still apply. */
25272 rm -f conftest.$ac_objext conftest$ac_exeext
25273 if { (ac_try="$ac_link"
25274 case "(($ac_try" in
25275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276 *) ac_try_echo=$ac_try;;
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279 (eval "$ac_link") 2>conftest.er1
25281 grep -v '^ *+' conftest.er1 >conftest.err
25283 cat conftest.err >&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } && {
25286 test -z "$ac_c_werror_flag" ||
25287 test ! -s conftest.err
25288 } && test -s conftest$ac_exeext &&
25289 $as_test_x conftest$ac_exeext; then
25290 ac_cv_lib_curses_initscr=yes
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ac_cv_lib_curses_initscr=no
25298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25299 conftest$ac_exeext conftest.$ac_ext
25300 LIBS=$ac_check_lib_save_LIBS
25302 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25303 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25304 if test $ac_cv_lib_curses_initscr = yes; then
25305 cat >>confdefs.h <<_ACEOF
25306 #define HAVE_LIBCURSES 1
25309 LIBS="-lcurses $LIBS"
25314 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25315 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25316 if test "${ac_cv_lib_readline_readline+set}" = set; then
25317 echo $ECHO_N "(cached) $ECHO_C" >&6
25319 ac_check_lib_save_LIBS=$LIBS
25320 LIBS="-lreadline $LIBS"
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25328 /* Override any GCC internal prototype to avoid an error.
25329 Use char because int might match the return type of a GCC
25330 builtin and then its argument prototype would still apply. */
25338 return readline ();
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (ac_try="$ac_link"
25345 case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350 (eval "$ac_link") 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } && {
25357 test -z "$ac_c_werror_flag" ||
25358 test ! -s conftest.err
25359 } && test -s conftest$ac_exeext &&
25360 $as_test_x conftest$ac_exeext; then
25361 ac_cv_lib_readline_readline=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_cv_lib_readline_readline=no
25369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25370 conftest$ac_exeext conftest.$ac_ext
25371 LIBS=$ac_check_lib_save_LIBS
25373 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25374 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25375 if test $ac_cv_lib_readline_readline = yes; then
25376 cat >>confdefs.h <<_ACEOF
25377 #define HAVE_LIBREADLINE 1
25380 LIBS="-lreadline $LIBS"
25384 { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25385 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25386 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25387 echo $ECHO_N "(cached) $ECHO_C" >&6
25389 ac_check_lib_save_LIBS=$LIBS
25390 LIBS="-lss -lcom_err $LIBS"
25391 cat >conftest.$ac_ext <<_ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h. */
25398 /* Override any GCC internal prototype to avoid an error.
25399 Use char because int might match the return type of a GCC
25400 builtin and then its argument prototype would still apply. */
25408 return ss_perror ();
25413 rm -f conftest.$ac_objext conftest$ac_exeext
25414 if { (ac_try="$ac_link"
25415 case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_link") 2>conftest.er1
25422 grep -v '^ *+' conftest.er1 >conftest.err
25424 cat conftest.err >&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } && {
25427 test -z "$ac_c_werror_flag" ||
25428 test ! -s conftest.err
25429 } && test -s conftest$ac_exeext &&
25430 $as_test_x conftest$ac_exeext; then
25431 ac_cv_lib_ss_ss_perror=yes
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 ac_cv_lib_ss_ss_perror=no
25439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25440 conftest$ac_exeext conftest.$ac_ext
25441 LIBS=$ac_check_lib_save_LIBS
25443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25444 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25445 if test $ac_cv_lib_ss_ss_perror = yes; then
25448 { { echo "$as_me:$LINENO: error: ss library not found" >&5
25449 echo "$as_me: error: ss library not found" >&2;}
25450 { (exit 1); exit 1; }; }
25454 { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25455 echo "$as_me: error: This package requires ss." >&2;}
25456 { (exit 1); exit 1; }; }
25458 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25460 { echo "$as_me:$LINENO: checking for res_send" >&5
25461 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
25462 if test "${ac_cv_func_res_send+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 cat >conftest.$ac_ext <<_ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
25472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25473 #define res_send innocuous_res_send
25475 /* System header to define __stub macros and hopefully few prototypes,
25476 which can conflict with char res_send (); below.
25477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25478 <limits.h> exists even on freestanding compilers. */
25481 # include <limits.h>
25483 # include <assert.h>
25488 /* Override any GCC internal prototype to avoid an error.
25489 Use char because int might match the return type of a GCC
25490 builtin and then its argument prototype would still apply. */
25495 /* The GNU C library defines this for functions which it implements
25496 to always fail with ENOSYS. Some functions are actually named
25497 something starting with __ and the normal name is an alias. */
25498 #if defined __stub_res_send || defined __stub___res_send
25505 return res_send ();
25510 rm -f conftest.$ac_objext conftest$ac_exeext
25511 if { (ac_try="$ac_link"
25512 case "(($ac_try" in
25513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514 *) ac_try_echo=$ac_try;;
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517 (eval "$ac_link") 2>conftest.er1
25519 grep -v '^ *+' conftest.er1 >conftest.err
25521 cat conftest.err >&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } && {
25524 test -z "$ac_c_werror_flag" ||
25525 test ! -s conftest.err
25526 } && test -s conftest$ac_exeext &&
25527 $as_test_x conftest$ac_exeext; then
25528 ac_cv_func_res_send=yes
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533 ac_cv_func_res_send=no
25536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25537 conftest$ac_exeext conftest.$ac_ext
25539 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
25540 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
25541 if test $ac_cv_func_res_send = yes; then
25545 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
25546 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
25547 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
25550 ac_check_lib_save_LIBS=$LIBS
25551 LIBS="-lresolv $LIBS"
25552 cat >conftest.$ac_ext <<_ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25559 /* Override any GCC internal prototype to avoid an error.
25560 Use char because int might match the return type of a GCC
25561 builtin and then its argument prototype would still apply. */
25569 return res_send ();
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (ac_try="$ac_link"
25576 case "(($ac_try" in
25577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581 (eval "$ac_link") 2>conftest.er1
25583 grep -v '^ *+' conftest.er1 >conftest.err
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } && {
25588 test -z "$ac_c_werror_flag" ||
25589 test ! -s conftest.err
25590 } && test -s conftest$ac_exeext &&
25591 $as_test_x conftest$ac_exeext; then
25592 ac_cv_lib_resolv_res_send=yes
25594 echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 ac_cv_lib_resolv_res_send=no
25600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25601 conftest$ac_exeext conftest.$ac_ext
25602 LIBS=$ac_check_lib_save_LIBS
25604 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
25605 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
25606 if test $ac_cv_lib_resolv_res_send = yes; then
25607 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_LIBRESOLV 1
25611 LIBS="-lresolv $LIBS"
25617 { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
25618 echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
25619 if test "${ac_cv_lib_cares_ares_init+set}" = set; then
25620 echo $ECHO_N "(cached) $ECHO_C" >&6
25622 ac_check_lib_save_LIBS=$LIBS
25623 LIBS="-lcares $LIBS"
25624 cat >conftest.$ac_ext <<_ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25631 /* Override any GCC internal prototype to avoid an error.
25632 Use char because int might match the return type of a GCC
25633 builtin and then its argument prototype would still apply. */
25641 return ares_init ();
25646 rm -f conftest.$ac_objext conftest$ac_exeext
25647 if { (ac_try="$ac_link"
25648 case "(($ac_try" in
25649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650 *) ac_try_echo=$ac_try;;
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653 (eval "$ac_link") 2>conftest.er1
25655 grep -v '^ *+' conftest.er1 >conftest.err
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } && {
25660 test -z "$ac_c_werror_flag" ||
25661 test ! -s conftest.err
25662 } && test -s conftest$ac_exeext &&
25663 $as_test_x conftest$ac_exeext; then
25664 ac_cv_lib_cares_ares_init=yes
25666 echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25669 ac_cv_lib_cares_ares_init=no
25672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25673 conftest$ac_exeext conftest.$ac_ext
25674 LIBS=$ac_check_lib_save_LIBS
25676 { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
25677 echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
25678 if test $ac_cv_lib_cares_ares_init = yes; then
25679 ARES_LIBS="-lcares"
25680 cat >>confdefs.h <<\_ACEOF
25681 #define HAVE_ARES 1
25685 { { echo "$as_me:$LINENO: error: libcares not found" >&5
25686 echo "$as_me: error: libcares not found" >&2;}
25687 { (exit 1); exit 1; }; }
25692 if test $ac_cv_c_compiler_gnu = yes; then
25693 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25694 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25695 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25696 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 ac_pattern="Autoconf.*'x'"
25699 cat >conftest.$ac_ext <<_ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25709 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25710 ac_cv_prog_gcc_traditional=yes
25712 ac_cv_prog_gcc_traditional=no
25717 if test $ac_cv_prog_gcc_traditional = no; then
25718 cat >conftest.$ac_ext <<_ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25724 #include <termio.h>
25727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25728 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25729 ac_cv_prog_gcc_traditional=yes
25735 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25736 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25737 if test $ac_cv_prog_gcc_traditional = yes; then
25738 CC="$CC -traditional"
25743 for ac_func in vprintf
25745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 cat >conftest.$ac_ext <<_ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h. */
25757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25759 #define $ac_func innocuous_$ac_func
25761 /* System header to define __stub macros and hopefully few prototypes,
25762 which can conflict with char $ac_func (); below.
25763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25764 <limits.h> exists even on freestanding compilers. */
25767 # include <limits.h>
25769 # include <assert.h>
25774 /* Override any GCC internal prototype to avoid an error.
25775 Use char because int might match the return type of a GCC
25776 builtin and then its argument prototype would still apply. */
25781 /* The GNU C library defines this for functions which it implements
25782 to always fail with ENOSYS. Some functions are actually named
25783 something starting with __ and the normal name is an alias. */
25784 #if defined __stub_$ac_func || defined __stub___$ac_func
25791 return $ac_func ();
25796 rm -f conftest.$ac_objext conftest$ac_exeext
25797 if { (ac_try="$ac_link"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_link") 2>conftest.er1
25805 grep -v '^ *+' conftest.er1 >conftest.err
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } && {
25810 test -z "$ac_c_werror_flag" ||
25811 test ! -s conftest.err
25812 } && test -s conftest$ac_exeext &&
25813 $as_test_x conftest$ac_exeext; then
25814 eval "$as_ac_var=yes"
25816 echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 eval "$as_ac_var=no"
25822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25823 conftest$ac_exeext conftest.$ac_ext
25825 ac_res=`eval echo '${'$as_ac_var'}'`
25826 { echo "$as_me:$LINENO: result: $ac_res" >&5
25827 echo "${ECHO_T}$ac_res" >&6; }
25828 if test `eval echo '${'$as_ac_var'}'` = yes; then
25829 cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25833 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25834 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25835 if test "${ac_cv_func__doprnt+set}" = set; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 cat >conftest.$ac_ext <<_ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25846 #define _doprnt innocuous__doprnt
25848 /* System header to define __stub macros and hopefully few prototypes,
25849 which can conflict with char _doprnt (); below.
25850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25851 <limits.h> exists even on freestanding compilers. */
25854 # include <limits.h>
25856 # include <assert.h>
25861 /* Override any GCC internal prototype to avoid an error.
25862 Use char because int might match the return type of a GCC
25863 builtin and then its argument prototype would still apply. */
25868 /* The GNU C library defines this for functions which it implements
25869 to always fail with ENOSYS. Some functions are actually named
25870 something starting with __ and the normal name is an alias. */
25871 #if defined __stub__doprnt || defined __stub____doprnt
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (ac_try="$ac_link"
25885 case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890 (eval "$ac_link") 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } && {
25897 test -z "$ac_c_werror_flag" ||
25898 test ! -s conftest.err
25899 } && test -s conftest$ac_exeext &&
25900 $as_test_x conftest$ac_exeext; then
25901 ac_cv_func__doprnt=yes
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_func__doprnt=no
25909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910 conftest$ac_exeext conftest.$ac_ext
25912 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25913 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25914 if test $ac_cv_func__doprnt = yes; then
25916 cat >>confdefs.h <<\_ACEOF
25917 #define HAVE_DOPRNT 1
25926 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25927 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25928 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
25931 # Use it with a single arg.
25932 cat >conftest.$ac_ext <<_ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 $ac_includes_default
25947 rm -f conftest.$ac_objext
25948 if { (ac_try="$ac_compile"
25949 case "(($ac_try" in
25950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25951 *) ac_try_echo=$ac_try;;
25953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25954 (eval "$ac_compile") 2>conftest.er1
25956 grep -v '^ *+' conftest.er1 >conftest.err
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } && {
25961 test -z "$ac_c_werror_flag" ||
25962 test ! -s conftest.err
25963 } && test -s conftest.$ac_objext; then
25964 ac_cv_func_getpgrp_void=no
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ac_cv_func_getpgrp_void=yes
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25975 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25976 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25977 if test $ac_cv_func_getpgrp_void = yes; then
25979 cat >>confdefs.h <<\_ACEOF
25980 #define GETPGRP_VOID 1
25985 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25986 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25987 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25988 echo $ECHO_N "(cached) $ECHO_C" >&6
25990 if test "$cross_compiling" = yes; then
25991 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25992 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25993 { (exit 1); exit 1; }; }
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 $ac_includes_default
26005 /* If this system has a BSD-style setpgrp which takes arguments,
26006 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
26007 exit successfully. */
26008 return setpgrp (1,1) != -1;
26013 rm -f conftest$ac_exeext
26014 if { (ac_try="$ac_link"
26015 case "(($ac_try" in
26016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26017 *) ac_try_echo=$ac_try;;
26019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26020 (eval "$ac_link") 2>&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26024 { (case "(($ac_try" in
26025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026 *) ac_try_echo=$ac_try;;
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029 (eval "$ac_try") 2>&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; }; then
26033 ac_cv_func_setpgrp_void=no
26035 echo "$as_me: program exited with status $ac_status" >&5
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ( exit $ac_status )
26040 ac_cv_func_setpgrp_void=yes
26042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26047 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
26048 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
26049 if test $ac_cv_func_setpgrp_void = yes; then
26051 cat >>confdefs.h <<\_ACEOF
26052 #define SETPGRP_VOID 1
26065 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
26067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26073 cat >conftest.$ac_ext <<_ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26081 #define $ac_func innocuous_$ac_func
26083 /* System header to define __stub macros and hopefully few prototypes,
26084 which can conflict with char $ac_func (); below.
26085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26086 <limits.h> exists even on freestanding compilers. */
26089 # include <limits.h>
26091 # include <assert.h>
26096 /* Override any GCC internal prototype to avoid an error.
26097 Use char because int might match the return type of a GCC
26098 builtin and then its argument prototype would still apply. */
26103 /* The GNU C library defines this for functions which it implements
26104 to always fail with ENOSYS. Some functions are actually named
26105 something starting with __ and the normal name is an alias. */
26106 #if defined __stub_$ac_func || defined __stub___$ac_func
26113 return $ac_func ();
26118 rm -f conftest.$ac_objext conftest$ac_exeext
26119 if { (ac_try="$ac_link"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125 (eval "$ac_link") 2>conftest.er1
26127 grep -v '^ *+' conftest.er1 >conftest.err
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } && {
26132 test -z "$ac_c_werror_flag" ||
26133 test ! -s conftest.err
26134 } && test -s conftest$ac_exeext &&
26135 $as_test_x conftest$ac_exeext; then
26136 eval "$as_ac_var=yes"
26138 echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 eval "$as_ac_var=no"
26144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26145 conftest$ac_exeext conftest.$ac_ext
26147 ac_res=`eval echo '${'$as_ac_var'}'`
26148 { echo "$as_me:$LINENO: result: $ac_res" >&5
26149 echo "${ECHO_T}$ac_res" >&6; }
26150 if test `eval echo '${'$as_ac_var'}'` = yes; then
26151 cat >>confdefs.h <<_ACEOF
26152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26164 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
26166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26170 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 cat >conftest.$ac_ext <<_ACEOF
26175 cat confdefs.h >>conftest.$ac_ext
26176 cat >>conftest.$ac_ext <<_ACEOF
26177 /* end confdefs.h. */
26178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26180 #define $ac_func innocuous_$ac_func
26182 /* System header to define __stub macros and hopefully few prototypes,
26183 which can conflict with char $ac_func (); below.
26184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26185 <limits.h> exists even on freestanding compilers. */
26188 # include <limits.h>
26190 # include <assert.h>
26195 /* Override any GCC internal prototype to avoid an error.
26196 Use char because int might match the return type of a GCC
26197 builtin and then its argument prototype would still apply. */
26202 /* The GNU C library defines this for functions which it implements
26203 to always fail with ENOSYS. Some functions are actually named
26204 something starting with __ and the normal name is an alias. */
26205 #if defined __stub_$ac_func || defined __stub___$ac_func
26212 return $ac_func ();
26217 rm -f conftest.$ac_objext conftest$ac_exeext
26218 if { (ac_try="$ac_link"
26219 case "(($ac_try" in
26220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26221 *) ac_try_echo=$ac_try;;
26223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26224 (eval "$ac_link") 2>conftest.er1
26226 grep -v '^ *+' conftest.er1 >conftest.err
26228 cat conftest.err >&5
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); } && {
26231 test -z "$ac_c_werror_flag" ||
26232 test ! -s conftest.err
26233 } && test -s conftest$ac_exeext &&
26234 $as_test_x conftest$ac_exeext; then
26235 eval "$as_ac_var=yes"
26237 echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26240 eval "$as_ac_var=no"
26243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26244 conftest$ac_exeext conftest.$ac_ext
26246 ac_res=`eval echo '${'$as_ac_var'}'`
26247 { echo "$as_me:$LINENO: result: $ac_res" >&5
26248 echo "${ECHO_T}$ac_res" >&6; }
26249 if test `eval echo '${'$as_ac_var'}'` = yes; then
26250 cat >>confdefs.h <<_ACEOF
26251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26260 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
26262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26266 echo $ECHO_N "(cached) $ECHO_C" >&6
26268 cat >conftest.$ac_ext <<_ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h. */
26274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26276 #define $ac_func innocuous_$ac_func
26278 /* System header to define __stub macros and hopefully few prototypes,
26279 which can conflict with char $ac_func (); below.
26280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26281 <limits.h> exists even on freestanding compilers. */
26284 # include <limits.h>
26286 # include <assert.h>
26291 /* Override any GCC internal prototype to avoid an error.
26292 Use char because int might match the return type of a GCC
26293 builtin and then its argument prototype would still apply. */
26298 /* The GNU C library defines this for functions which it implements
26299 to always fail with ENOSYS. Some functions are actually named
26300 something starting with __ and the normal name is an alias. */
26301 #if defined __stub_$ac_func || defined __stub___$ac_func
26308 return $ac_func ();
26313 rm -f conftest.$ac_objext conftest$ac_exeext
26314 if { (ac_try="$ac_link"
26315 case "(($ac_try" in
26316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317 *) ac_try_echo=$ac_try;;
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320 (eval "$ac_link") 2>conftest.er1
26322 grep -v '^ *+' conftest.er1 >conftest.err
26324 cat conftest.err >&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } && {
26327 test -z "$ac_c_werror_flag" ||
26328 test ! -s conftest.err
26329 } && test -s conftest$ac_exeext &&
26330 $as_test_x conftest$ac_exeext; then
26331 eval "$as_ac_var=yes"
26333 echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26336 eval "$as_ac_var=no"
26339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26340 conftest$ac_exeext conftest.$ac_ext
26342 ac_res=`eval echo '${'$as_ac_var'}'`
26343 { echo "$as_me:$LINENO: result: $ac_res" >&5
26344 echo "${ECHO_T}$ac_res" >&6; }
26345 if test `eval echo '${'$as_ac_var'}'` = yes; then
26346 cat >>confdefs.h <<_ACEOF
26347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26355 for ac_func in krb5_crypto_init krb5_c_decrypt
26357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26371 #define $ac_func innocuous_$ac_func
26373 /* System header to define __stub macros and hopefully few prototypes,
26374 which can conflict with char $ac_func (); below.
26375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376 <limits.h> exists even on freestanding compilers. */
26379 # include <limits.h>
26381 # include <assert.h>
26386 /* Override any GCC internal prototype to avoid an error.
26387 Use char because int might match the return type of a GCC
26388 builtin and then its argument prototype would still apply. */
26393 /* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396 #if defined __stub_$ac_func || defined __stub___$ac_func
26403 return $ac_func ();
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_link") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest$ac_exeext &&
26425 $as_test_x conftest$ac_exeext; then
26426 eval "$as_ac_var=yes"
26428 echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431 eval "$as_ac_var=no"
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435 conftest$ac_exeext conftest.$ac_ext
26437 ac_res=`eval echo '${'$as_ac_var'}'`
26438 { echo "$as_me:$LINENO: result: $ac_res" >&5
26439 echo "${ECHO_T}$ac_res" >&6; }
26440 if test `eval echo '${'$as_ac_var'}'` = yes; then
26441 cat >>confdefs.h <<_ACEOF
26442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26449 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
26450 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
26451 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26455 local_save_CPPFLAGS="$CPPFLAGS"
26456 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26457 cat >conftest.$ac_ext <<_ACEOF
26460 cat confdefs.h >>conftest.$ac_ext
26461 cat >>conftest.$ac_ext <<_ACEOF
26462 /* end confdefs.h. */
26463 #define socklen_t int
26464 #define ssize_t int
26467 krb5_auth_con_getauthenticator(krb5_context context,
26468 krb5_auth_context auth_context,
26469 krb5_authenticator *authenticator);
26473 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26478 rm -f conftest.$ac_objext
26479 if { (ac_try="$ac_compile"
26480 case "(($ac_try" in
26481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482 *) ac_try_echo=$ac_try;;
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485 (eval "$ac_compile") 2>conftest.er1
26487 grep -v '^ *+' conftest.er1 >conftest.err
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } && {
26492 test -z "$ac_c_werror_flag" ||
26493 test ! -s conftest.err
26494 } && test -s conftest.$ac_objext; then
26495 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26497 echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26500 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26507 CPPFLAGS="${local_save_CPPFLAGS}"
26508 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26509 cat >>confdefs.h <<\_ACEOF
26510 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26513 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26514 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26516 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26517 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26518 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26522 local_save_CPPFLAGS="$CPPFLAGS"
26523 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26534 krb5_ticket _tkt; _tkt.enc_part2;
26539 rm -f conftest.$ac_objext
26540 if { (ac_try="$ac_compile"
26541 case "(($ac_try" in
26542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26543 *) ac_try_echo=$ac_try;;
26545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26546 (eval "$ac_compile") 2>conftest.er1
26548 grep -v '^ *+' conftest.er1 >conftest.err
26550 cat conftest.err >&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } && {
26553 test -z "$ac_c_werror_flag" ||
26554 test ! -s conftest.err
26555 } && test -s conftest.$ac_objext; then
26556 ac_cv_have_krb5_ticket_enc_part2=yes
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 ac_cv_have_krb5_ticket_enc_part2=no
26564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 CPPFLAGS="${local_save_CPPFLAGS}"
26569 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26570 cat >>confdefs.h <<\_ACEOF
26571 #define HAVE_KRB5_TICKET_ENC_PART2 1
26574 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26575 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26577 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26578 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26579 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26580 echo $ECHO_N "(cached) $ECHO_C" >&6
26583 local_save_CPPFLAGS="$CPPFLAGS"
26584 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26585 cat >conftest.$ac_ext <<_ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h. */
26595 krb5_creds _creds; _creds.keyblock.enctype;
26600 rm -f conftest.$ac_objext
26601 if { (ac_try="$ac_compile"
26602 case "(($ac_try" in
26603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604 *) ac_try_echo=$ac_try;;
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607 (eval "$ac_compile") 2>conftest.er1
26609 grep -v '^ *+' conftest.er1 >conftest.err
26611 cat conftest.err >&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); } && {
26614 test -z "$ac_c_werror_flag" ||
26615 test ! -s conftest.err
26616 } && test -s conftest.$ac_objext; then
26617 ac_cv_have_krb5_creds_keyblock_enctype=yes
26619 echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26622 ac_cv_have_krb5_creds_keyblock_enctype=no
26625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26629 CPPFLAGS="${local_save_CPPFLAGS}"
26630 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26631 cat >>confdefs.h <<\_ACEOF
26632 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26635 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26636 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26638 # Check whether --enable-cmu-zwgcplus was given.
26639 if test "${enable_cmu_zwgcplus+set}" = set; then
26640 enableval=$enable_cmu_zwgcplus;
26641 if test "$enableval" = "yes"; then
26642 cat >>confdefs.h <<\_ACEOF
26643 #define CMU_ZWGCPLUS 1
26651 # Check whether --enable-cmu-zctl-punt was given.
26652 if test "${enable_cmu_zctl_punt+set}" = set; then
26653 enableval=$enable_cmu_zctl_punt;
26654 if test "$enableval" = "yes"; then
26655 cat >>confdefs.h <<\_ACEOF
26656 #define CMU_ZCTL_PUNT 1
26664 # Check whether --enable-cmu-hm-flush-restrict was given.
26665 if test "${enable_cmu_hm_flush_restrict+set}" = set; then
26666 enableval=$enable_cmu_hm_flush_restrict;
26667 if test "$enableval" = "yes"; then
26668 cat >>confdefs.h <<\_ACEOF
26669 #define HM_FLUSH_RESTRICT 1
26677 # Check whether --enable-cmu-opstaff-locate-self was given.
26678 if test "${enable_cmu_opstaff_locate_self+set}" = set; then
26679 enableval=$enable_cmu_opstaff_locate_self;
26680 if test "$enableval" = "yes"; then
26681 cat >>confdefs.h <<\_ACEOF
26682 #define OPSTAFF_LOCATE_SELF 1
26690 ac_config_headers="$ac_config_headers h/config.h"
26692 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"
26694 cat >confcache <<\_ACEOF
26695 # This file is a shell script that caches the results of configure
26696 # tests run on this system so they can be shared between configure
26697 # scripts and configure runs, see configure's option --config-cache.
26698 # It is not useful on other systems. If it contains results you don't
26699 # want to keep, you may remove or edit it.
26701 # config.status only pays attention to the cache file if you give it
26702 # the --recheck option to rerun configure.
26704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26706 # following values.
26710 # The following way of writing the cache mishandles newlines in values,
26711 # but we know of no workaround that is simple, portable, and efficient.
26712 # So, we kill variables containing newlines.
26713 # Ultrix sh set writes to stderr and can't be redirected directly,
26714 # and sets the high bit in the cache file unless we assign to the vars.
26716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26717 eval ac_val=\$$ac_var
26721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26725 _ | IFS | as_nl) ;; #(
26726 *) $as_unset $ac_var ;;
26732 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26733 *${as_nl}ac_space=\ *)
26734 # `set' does not quote correctly, so add quotes (double-quote
26735 # substitution turns \\\\ into \\, and sed turns \\ into \).
26738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26741 # `set' quotes correctly as required by POSIX, so do not add quotes.
26742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26755 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26756 if test -w "$cache_file"; then
26757 test "x$cache_file" != "x/dev/null" &&
26758 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26759 echo "$as_me: updating cache $cache_file" >&6;}
26760 cat confcache >$cache_file
26762 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26763 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26769 # Let make expand exec_prefix.
26770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26772 DEFS=-DHAVE_CONFIG_H
26776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26777 # 1. Remove the extension, and $U if already installed.
26778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26779 ac_i=`echo "$ac_i" | sed "$ac_script"`
26780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26781 # will be set to the directory where LIBOBJS objects are built.
26782 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26783 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26785 LIBOBJS=$ac_libobjs
26787 LTLIBOBJS=$ac_ltlibobjs
26791 : ${CONFIG_STATUS=./config.status}
26792 ac_clean_files_save=$ac_clean_files
26793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26794 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26795 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26796 cat >$CONFIG_STATUS <<_ACEOF
26798 # Generated by $as_me.
26799 # Run this file to recreate the current configuration.
26800 # Compiler output produced by configure, useful for debugging
26801 # configure, is in config.log if it exists.
26804 ac_cs_recheck=false
26806 SHELL=\${CONFIG_SHELL-$SHELL}
26809 cat >>$CONFIG_STATUS <<\_ACEOF
26810 ## --------------------- ##
26811 ## M4sh Initialization. ##
26812 ## --------------------- ##
26814 # Be more Bourne compatible
26815 DUALCASE=1; export DUALCASE # for MKS sh
26816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26819 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26820 # is contrary to our usage. Disable this feature.
26821 alias -g '${1+"$@"}'='"$@"'
26822 setopt NO_GLOB_SUBST
26824 case `(set -o) 2>/dev/null` in
26825 *posix*) set -o posix ;;
26834 # Avoid depending upon Character Ranges.
26835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26838 as_cr_digits='0123456789'
26839 as_cr_alnum=$as_cr_Letters$as_cr_digits
26841 # The user is always right.
26842 if test "${PATH_SEPARATOR+set}" != set; then
26843 echo "#! /bin/sh" >conf$$.sh
26844 echo "exit 0" >>conf$$.sh
26846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26854 # Support unset when possible.
26855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26863 # We need space, tab and new line, in precisely that order. Quoting is
26864 # there to prevent editors from complaining about space-tab.
26865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26866 # splitting by setting IFS to empty value.)
26871 # Find who we are. Look in the path if we contain no directory separator.
26873 *[\\/]* ) as_myself=$0 ;;
26874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26875 for as_dir in $PATH
26878 test -z "$as_dir" && as_dir=.
26879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26885 # We did not find ourselves, most probably we were run as `sh COMMAND'
26886 # in which case we are not to be found in the path.
26887 if test "x$as_myself" = x; then
26890 if test ! -f "$as_myself"; then
26891 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26892 { (exit 1); exit 1; }
26895 # Work around bugs in pre-3.0 UWIN ksh.
26896 for as_var in ENV MAIL MAILPATH
26897 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26905 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26906 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26907 LC_TELEPHONE LC_TIME
26909 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26910 eval $as_var=C; export $as_var
26912 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26916 # Required to use basename.
26917 if expr a : '\(a\)' >/dev/null 2>&1 &&
26918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26925 as_basename=basename
26931 # Name of the executable.
26932 as_me=`$as_basename -- "$0" ||
26933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26934 X"$0" : 'X\(//\)$' \| \
26935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26937 sed '/^.*\/\([^/][^/]*\)\/*$/{
26956 as_lineno_1=$LINENO
26957 as_lineno_2=$LINENO
26958 test "x$as_lineno_1" != "x$as_lineno_2" &&
26959 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26961 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26962 # uniformly replaced by the line number. The first 'sed' inserts a
26963 # line-number line after each line using $LINENO; the second 'sed'
26964 # does the real work. The second script uses 'N' to pair each
26965 # line-number line with the line containing $LINENO, and appends
26966 # trailing '-' during substitution so that $LINENO is not a special
26967 # case at line end.
26968 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26969 # scripts with optimization help from Paolo Bonzini. Blame Lee
26970 # E. McMahon (1931-1989) for sed's syntax. :-)
26982 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26985 ' >$as_me.lineno &&
26986 chmod +x "$as_me.lineno" ||
26987 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26988 { (exit 1); exit 1; }; }
26990 # Don't try to exec as it changes $[0], causing all sort of problems
26991 # (the dirname of $[0] is not the place where we might find the
26992 # original and so on. Autoconf is especially sensitive to this).
26993 . "./$as_me.lineno"
26994 # Exit status is that of the last command.
26999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27005 ECHO_C= ECHO_N= ECHO_T=
27006 case `echo -n x` in
27008 case `echo 'x\c'` in
27009 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27016 if expr a : '\(a\)' >/dev/null 2>&1 &&
27017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27023 rm -f conf$$ conf$$.exe conf$$.file
27024 if test -d conf$$.dir; then
27025 rm -f conf$$.dir/conf$$.file
27031 if ln -s conf$$.file conf$$ 2>/dev/null; then
27033 # ... but there are two gotchas:
27034 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27035 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27036 # In both cases, we have to default to `cp -p'.
27037 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27039 elif ln conf$$.file conf$$ 2>/dev/null; then
27044 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27045 rmdir conf$$.dir 2>/dev/null
27047 if mkdir -p . 2>/dev/null; then
27050 test -d ./-p && rmdir ./-p
27054 if test -x / >/dev/null 2>&1; then
27055 as_test_x='test -x'
27057 if ls -dL / >/dev/null 2>&1; then
27064 if test -d "$1"; then
27070 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27071 ???[sx]*):;;*)false;;esac;fi
27075 as_executable_p=$as_test_x
27077 # Sed expression to map a string onto a valid CPP name.
27078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27080 # Sed expression to map a string onto a valid variable name.
27081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27086 # Save the log message, to keep $[0] and so on meaningful, and to
27087 # report actual input values of CONFIG_FILES etc. instead of their
27088 # values after options handling.
27090 This file was extended by $as_me, which was
27091 generated by GNU Autoconf 2.61. Invocation command line was
27093 CONFIG_FILES = $CONFIG_FILES
27094 CONFIG_HEADERS = $CONFIG_HEADERS
27095 CONFIG_LINKS = $CONFIG_LINKS
27096 CONFIG_COMMANDS = $CONFIG_COMMANDS
27099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27104 cat >>$CONFIG_STATUS <<_ACEOF
27105 # Files that config.status was made for.
27106 config_files="$ac_config_files"
27107 config_headers="$ac_config_headers"
27111 cat >>$CONFIG_STATUS <<\_ACEOF
27113 \`$as_me' instantiates files from templates according to the
27114 current configuration.
27116 Usage: $0 [OPTIONS] [FILE]...
27118 -h, --help print this help, then exit
27119 -V, --version print version number and configuration settings, then exit
27120 -q, --quiet do not print progress messages
27121 -d, --debug don't remove temporary files
27122 --recheck update $as_me by reconfiguring in the same conditions
27123 --file=FILE[:TEMPLATE]
27124 instantiate the configuration file FILE
27125 --header=FILE[:TEMPLATE]
27126 instantiate the configuration header FILE
27128 Configuration files:
27131 Configuration headers:
27134 Report bugs to <bug-autoconf@gnu.org>."
27137 cat >>$CONFIG_STATUS <<_ACEOF
27140 configured by $0, generated by GNU Autoconf 2.61,
27141 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27143 Copyright (C) 2006 Free Software Foundation, Inc.
27144 This config.status script is free software; the Free Software Foundation
27145 gives unlimited permission to copy, distribute and modify it."
27152 cat >>$CONFIG_STATUS <<\_ACEOF
27153 # If no file are specified by the user, then we need to provide default
27154 # value. By we need to know if files were specified by the user.
27160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27172 # Handling of the options.
27173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27175 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27176 echo "$ac_cs_version"; exit ;;
27177 --debug | --debu | --deb | --de | --d | -d )
27179 --file | --fil | --fi | --f )
27181 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27182 ac_need_defaults=false;;
27183 --header | --heade | --head | --hea )
27185 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27186 ac_need_defaults=false;;
27188 # Conflict between --help and --header
27189 { echo "$as_me: error: ambiguous option: $1
27190 Try \`$0 --help' for more information." >&2
27191 { (exit 1); exit 1; }; };;
27192 --help | --hel | -h )
27193 echo "$ac_cs_usage"; exit ;;
27194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27198 # This is an error.
27199 -*) { echo "$as_me: error: unrecognized option: $1
27200 Try \`$0 --help' for more information." >&2
27201 { (exit 1); exit 1; }; } ;;
27203 *) ac_config_targets="$ac_config_targets $1"
27204 ac_need_defaults=false ;;
27210 ac_configure_extra_args=
27212 if $ac_cs_silent; then
27214 ac_configure_extra_args="$ac_configure_extra_args --silent"
27218 cat >>$CONFIG_STATUS <<_ACEOF
27219 if \$ac_cs_recheck; then
27220 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27221 CONFIG_SHELL=$SHELL
27222 export CONFIG_SHELL
27223 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27227 cat >>$CONFIG_STATUS <<\_ACEOF
27231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27232 ## Running $as_me. ##
27238 cat >>$CONFIG_STATUS <<_ACEOF
27241 cat >>$CONFIG_STATUS <<\_ACEOF
27243 # Handling of arguments.
27244 for ac_config_target in $ac_config_targets
27246 case $ac_config_target in
27247 "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
27248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27249 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
27250 "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
27251 "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
27252 "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
27253 "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
27254 "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
27255 "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
27256 "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
27257 "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
27258 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27259 "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
27260 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
27261 "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
27262 "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
27264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27266 { (exit 1); exit 1; }; };;
27271 # If the user did not use the arguments to specify the items to instantiate,
27272 # then the envvar interface is used. Set only those that are not.
27273 # We use the long form for the default assignment because of an extremely
27274 # bizarre bug on SunOS 4.1.3.
27275 if $ac_need_defaults; then
27276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27280 # Have a temporary directory for convenience. Make it in the build tree
27281 # simply because there is no reason against having it here, and in addition,
27282 # creating and moving files from /tmp can sometimes cause problems.
27283 # Hook for its removal unless debugging.
27284 # Note that there is a small window in which the directory will not be cleaned:
27285 # after its creation but before its name has been assigned to `$tmp'.
27289 trap 'exit_status=$?
27290 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27292 trap '{ (exit 1); exit 1; }' 1 2 13 15
27294 # Create a (secure) tmp directory for tmp files.
27297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27298 test -n "$tmp" && test -d "$tmp"
27301 tmp=./conf$$-$RANDOM
27302 (umask 077 && mkdir "$tmp")
27305 echo "$me: cannot create a temporary directory in ." >&2
27306 { (exit 1); exit 1; }
27310 # Set up the sed scripts for CONFIG_FILES section.
27313 # No need to generate the scripts if there are no CONFIG_FILES.
27314 # This happens for instance when ./config.status config.h
27315 if test -n "$CONFIG_FILES"; then
27322 for ac_last_try in false false false false false :; do
27323 cat >conf$$subs.sed <<_ACEOF
27324 SHELL!$SHELL$ac_delim
27325 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27326 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27327 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27328 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27329 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27330 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27331 exec_prefix!$exec_prefix$ac_delim
27332 prefix!$prefix$ac_delim
27333 program_transform_name!$program_transform_name$ac_delim
27334 bindir!$bindir$ac_delim
27335 sbindir!$sbindir$ac_delim
27336 libexecdir!$libexecdir$ac_delim
27337 datarootdir!$datarootdir$ac_delim
27338 datadir!$datadir$ac_delim
27339 sysconfdir!$sysconfdir$ac_delim
27340 sharedstatedir!$sharedstatedir$ac_delim
27341 localstatedir!$localstatedir$ac_delim
27342 includedir!$includedir$ac_delim
27343 oldincludedir!$oldincludedir$ac_delim
27344 docdir!$docdir$ac_delim
27345 infodir!$infodir$ac_delim
27346 htmldir!$htmldir$ac_delim
27347 dvidir!$dvidir$ac_delim
27348 pdfdir!$pdfdir$ac_delim
27349 psdir!$psdir$ac_delim
27350 libdir!$libdir$ac_delim
27351 localedir!$localedir$ac_delim
27352 mandir!$mandir$ac_delim
27353 DEFS!$DEFS$ac_delim
27354 ECHO_C!$ECHO_C$ac_delim
27355 ECHO_N!$ECHO_N$ac_delim
27356 ECHO_T!$ECHO_T$ac_delim
27357 LIBS!$LIBS$ac_delim
27358 build_alias!$build_alias$ac_delim
27359 host_alias!$host_alias$ac_delim
27360 target_alias!$target_alias$ac_delim
27361 lbindir!$lbindir$ac_delim
27362 lsbindir!$lsbindir$ac_delim
27363 build!$build$ac_delim
27364 build_cpu!$build_cpu$ac_delim
27365 build_vendor!$build_vendor$ac_delim
27366 build_os!$build_os$ac_delim
27367 host!$host$ac_delim
27368 host_cpu!$host_cpu$ac_delim
27369 host_vendor!$host_vendor$ac_delim
27370 host_os!$host_os$ac_delim
27371 target!$target$ac_delim
27372 target_cpu!$target_cpu$ac_delim
27373 target_vendor!$target_vendor$ac_delim
27374 target_os!$target_os$ac_delim
27376 CFLAGS!$CFLAGS$ac_delim
27377 LDFLAGS!$LDFLAGS$ac_delim
27378 CPPFLAGS!$CPPFLAGS$ac_delim
27379 ac_ct_CC!$ac_ct_CC$ac_delim
27380 EXEEXT!$EXEEXT$ac_delim
27381 OBJEXT!$OBJEXT$ac_delim
27382 YACC!$YACC$ac_delim
27383 YFLAGS!$YFLAGS$ac_delim
27385 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27386 LEXLIB!$LEXLIB$ac_delim
27387 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27388 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27389 INSTALL_DATA!$INSTALL_DATA$ac_delim
27390 RANLIB!$RANLIB$ac_delim
27391 GREP!$GREP$ac_delim
27392 EGREP!$EGREP$ac_delim
27393 LN_S!$LN_S$ac_delim
27394 ECHO!$ECHO$ac_delim
27396 STRIP!$STRIP$ac_delim
27399 CXXFLAGS!$CXXFLAGS$ac_delim
27400 ac_ct_CXX!$ac_ct_CXX$ac_delim
27401 CXXCPP!$CXXCPP$ac_delim
27403 FFLAGS!$FFLAGS$ac_delim
27404 ac_ct_F77!$ac_ct_F77$ac_delim
27405 LIBTOOL!$LIBTOOL$ac_delim
27406 XMKMF!$XMKMF$ac_delim
27407 X_CFLAGS!$X_CFLAGS$ac_delim
27408 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27409 X_LIBS!$X_LIBS$ac_delim
27410 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27411 XCLIENTS!$XCLIENTS$ac_delim
27412 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
27413 TLIB!$TLIB$ac_delim
27414 RLIB!$RLIB$ac_delim
27415 SLIB!$SLIB$ac_delim
27416 KRB4_LIBS!$KRB4_LIBS$ac_delim
27417 krb5config!$krb5config$ac_delim
27418 KRB5_LIBS!$KRB5_LIBS$ac_delim
27419 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
27420 REGEX_LIBS!$REGEX_LIBS$ac_delim
27423 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27425 elif $ac_last_try; then
27426 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27428 { (exit 1); exit 1; }; }
27430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27435 if test -n "$ac_eof"; then
27436 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27437 ac_eof=`expr $ac_eof + 1`
27440 cat >>$CONFIG_STATUS <<_ACEOF
27441 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27446 s/^/s,@/; s/!/@,|#_!!_#|/
27449 s/'"$ac_delim"'$/,g/; t
27451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27452 ' >>$CONFIG_STATUS <conf$$subs.sed
27453 rm -f conf$$subs.sed
27454 cat >>$CONFIG_STATUS <<_ACEOF
27460 for ac_last_try in false false false false false :; do
27461 cat >conf$$subs.sed <<_ACEOF
27462 ARES_LIBS!$ARES_LIBS$ac_delim
27463 LIBOBJS!$LIBOBJS$ac_delim
27464 LTLIBOBJS!$LTLIBOBJS$ac_delim
27467 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
27469 elif $ac_last_try; then
27470 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27471 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27472 { (exit 1); exit 1; }; }
27474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27478 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27479 if test -n "$ac_eof"; then
27480 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27481 ac_eof=`expr $ac_eof + 1`
27484 cat >>$CONFIG_STATUS <<_ACEOF
27485 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27489 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27490 s/^/s,@/; s/!/@,|#_!!_#|/
27493 s/'"$ac_delim"'$/,g/; t
27495 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27496 ' >>$CONFIG_STATUS <conf$$subs.sed
27497 rm -f conf$$subs.sed
27498 cat >>$CONFIG_STATUS <<_ACEOF
27505 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27506 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27507 # trailing colons and then remove the whole line if VPATH becomes empty
27508 # (actually we leave an empty line to preserve line numbers).
27509 if test "x$srcdir" = x.; then
27510 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27511 s/:*\$(srcdir):*/:/
27512 s/:*\${srcdir}:*/:/
27514 s/^\([^=]*=[ ]*\):*/\1/
27520 cat >>$CONFIG_STATUS <<\_ACEOF
27521 fi # test -n "$CONFIG_FILES"
27524 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27527 :[FHLC]) ac_mode=$ac_tag; continue;;
27529 case $ac_mode$ac_tag in
27531 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27532 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27533 { (exit 1); exit 1; }; };;
27534 :[FH]-) ac_tag=-:-;;
27535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27552 -) ac_f="$tmp/stdin";;
27553 *) # Look for the file first in the build tree, then in the source tree
27554 # (if the path is not absolute). The absolute path cannot be DOS-style,
27555 # because $ac_f cannot contain `:'.
27559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27561 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27562 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27563 { (exit 1); exit 1; }; };;
27565 ac_file_inputs="$ac_file_inputs $ac_f"
27568 # Let's still pretend it is `configure' which instantiates (i.e., don't
27569 # use $as_me), people would be surprised to read:
27570 # /* config.h. Generated by config.status. */
27571 configure_input="Generated from "`IFS=:
27572 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27573 if test x"$ac_file" != x-; then
27574 configure_input="$ac_file. $configure_input"
27575 { echo "$as_me:$LINENO: creating $ac_file" >&5
27576 echo "$as_me: creating $ac_file" >&6;}
27580 *:-:* | *:-) cat >"$tmp/stdin";;
27585 ac_dir=`$as_dirname -- "$ac_file" ||
27586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587 X"$ac_file" : 'X\(//\)[^/]' \| \
27588 X"$ac_file" : 'X\(//\)$' \| \
27589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27595 /^X\(\/\/\)[^/].*/{
27610 -*) as_dir=./$as_dir;;
27612 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27616 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27617 *) as_qdir=$as_dir;;
27619 as_dirs="'$as_qdir' $as_dirs"
27620 as_dir=`$as_dirname -- "$as_dir" ||
27621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27622 X"$as_dir" : 'X\(//\)[^/]' \| \
27623 X"$as_dir" : 'X\(//\)$' \| \
27624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27630 /^X\(\/\/\)[^/].*/{
27643 test -d "$as_dir" && break
27645 test -z "$as_dirs" || eval "mkdir $as_dirs"
27646 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27647 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27648 { (exit 1); exit 1; }; }; }
27652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27654 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27655 # A ".." for each directory in $ac_dir_suffix.
27656 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27657 case $ac_top_builddir_sub in
27658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27662 ac_abs_top_builddir=$ac_pwd
27663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27664 # for backward compatibility:
27665 ac_top_builddir=$ac_top_build_prefix
27668 .) # We are building in place.
27670 ac_top_srcdir=$ac_top_builddir_sub
27671 ac_abs_top_srcdir=$ac_pwd ;;
27672 [\\/]* | ?:[\\/]* ) # Absolute name.
27673 ac_srcdir=$srcdir$ac_dir_suffix;
27674 ac_top_srcdir=$srcdir
27675 ac_abs_top_srcdir=$srcdir ;;
27676 *) # Relative name.
27677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27678 ac_top_srcdir=$ac_top_build_prefix$srcdir
27679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27696 cat >>$CONFIG_STATUS <<\_ACEOF
27697 # If the template does not know about datarootdir, expand it.
27698 # FIXME: This hack should be removed a few years after 2.60.
27699 ac_datarootdir_hack=; ac_datarootdir_seen=
27701 case `sed -n '/datarootdir/ {
27710 ' $ac_file_inputs` in
27711 *datarootdir*) ac_datarootdir_seen=yes;;
27712 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27713 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27714 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27716 cat >>$CONFIG_STATUS <<_ACEOF
27717 ac_datarootdir_hack='
27718 s&@datadir@&$datadir&g
27719 s&@docdir@&$docdir&g
27720 s&@infodir@&$infodir&g
27721 s&@localedir@&$localedir&g
27722 s&@mandir@&$mandir&g
27723 s&\\\${datarootdir}&$datarootdir&g' ;;
27727 # Neutralize VPATH when `$srcdir' = `.'.
27728 # Shell code in configure.ac might set extrasub.
27729 # FIXME: do we really want to maintain this feature?
27730 cat >>$CONFIG_STATUS <<_ACEOF
27734 cat >>$CONFIG_STATUS <<\_ACEOF
27736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27737 s&@configure_input@&$configure_input&;t t
27738 s&@top_builddir@&$ac_top_builddir_sub&;t t
27739 s&@srcdir@&$ac_srcdir&;t t
27740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27741 s&@top_srcdir@&$ac_top_srcdir&;t t
27742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27743 s&@builddir@&$ac_builddir&;t t
27744 s&@abs_builddir@&$ac_abs_builddir&;t t
27745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27746 s&@INSTALL@&$ac_INSTALL&;t t
27747 $ac_datarootdir_hack
27748 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27750 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27751 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27752 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27753 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27754 which seems to be undefined. Please make sure it is defined." >&5
27755 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27756 which seems to be undefined. Please make sure it is defined." >&2;}
27760 -) cat "$tmp/out"; rm -f "$tmp/out";;
27761 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27770 # Transform confdefs.h into a sed script `conftest.defines', that
27771 # substitutes the proper values into config.h.in to produce config.h.
27772 rm -f conftest.defines conftest.tail
27773 # First, append a space to every undef/define line, to ease matching.
27774 echo 's/$/ /' >conftest.defines
27775 # Then, protect against being on the right side of a sed subst, or in
27776 # an unquoted here document, in config.status. If some macros were
27777 # called several times there might be several #defines for the same
27778 # symbol, which is useless. But do not sort them, since the last
27779 # AC_DEFINE must be honored.
27780 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27781 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27782 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27783 # PARAMS is the parameter list in the macro definition--in most cases, it's
27784 # just an empty string.
27785 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27786 ac_dB='\\)[ (].*,\\1define\\2'
27794 s/^[ ]*#[ ]*define[ ][ ]*//
27799 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27800 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27801 ' >>conftest.defines
27803 # Remove the space that was appended to ease matching.
27804 # Then replace #undef with comments. This is necessary, for
27805 # example, in the case of _POSIX_SOURCE, which is predefined and required
27806 # on some systems where configure will not decide to define it.
27807 # (The regexp can be short, since the line contains either #define or #undef.)
27809 s,^[ #]*u.*,/* & */,' >>conftest.defines
27811 # Break up conftest.defines:
27812 ac_max_sed_lines=50
27814 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27815 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27816 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27818 ac_in='$ac_file_inputs'
27819 ac_out='"$tmp/out1"'
27820 ac_nxt='"$tmp/out2"'
27824 # Write a here document:
27825 cat >>$CONFIG_STATUS <<_ACEOF
27826 # First, check the format of the line:
27827 cat >"\$tmp/defines.sed" <<\\CEOF
27828 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27829 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27833 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27835 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27836 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27837 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27838 grep . conftest.tail >/dev/null || break
27839 rm -f conftest.defines
27840 mv conftest.tail conftest.defines
27842 rm -f conftest.defines conftest.tail
27844 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27845 cat >>$CONFIG_STATUS <<\_ACEOF
27846 if test x"$ac_file" != x-; then
27847 echo "/* $configure_input */" >"$tmp/config.h"
27848 cat "$ac_result" >>"$tmp/config.h"
27849 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27850 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27851 echo "$as_me: $ac_file is unchanged" >&6;}
27854 mv "$tmp/config.h" $ac_file
27857 echo "/* $configure_input */"
27869 { (exit 0); exit 0; }
27871 chmod +x $CONFIG_STATUS
27872 ac_clean_files=$ac_clean_files_save
27875 # configure is writing to config.log, and then calls config.status.
27876 # config.status does its own redirection, appending to config.log.
27877 # Unfortunately, on DOS this fails, as config.log is still kept open
27878 # by configure, so config.status won't be able to write to it; its
27879 # output is simply discarded. So we exec the FD to /dev/null,
27880 # effectively closing config.log, so it can be properly (re)opened and
27881 # appended to by config.status. When coming back to configure, we
27882 # need to make the FD available again.
27883 if test "$no_create" != yes; then
27885 ac_config_status_args=
27886 test "$silent" = yes &&
27887 ac_config_status_args="$ac_config_status_args --quiet"
27889 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27891 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27892 # would make configure fail if this is the last instruction.
27893 $ac_cs_success || { (exit 1); exit 1; }