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
874 ac_precious_vars='build_alias
894 # Initialize some variables set by options.
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
906 program_transform_name=s,x,x,
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1184 -site=* | --site=* | --sit=*)
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 { echo "$as_me: error: invalid package name: $ac_package" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217 eval with_$ac_package=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248 { (exit 1); exit 1; }; }
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256 { (exit 1); exit 1; }; }
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 { echo "$as_me: error: missing argument to $ac_option" >&2
1274 { (exit 1); exit 1; }; }
1277 # Be sure to have absolute directory names.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { echo "$as_me: error: Working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$0" : 'X\(//\)[^/]' \| \
1333 X"$0" : 'X\(//\)$' \| \
1334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --x-includes=DIR X include files are in DIR
1453 --x-libraries=DIR X library files are in DIR
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1462 if test -n "$ac_init_help"; then
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-cmu-zwgcplus enable CMU zwgcplus extensions
1475 --enable-cmu-zctl-punt enable CMU zctl punt extensions
1476 --enable-cmu-hm-flush-restrict enable CMU zctl hm flush restriction
1477 --enable-cmu-opstaff-locate-self enable CMU opstaff locate-self ability
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1485 --with-tags[=TAGS] include additional configurations [automatic]
1486 --with-x use the X Window System
1487 --with-krb4=PREFIX Use Kerberos 4
1488 --with-krb5=PREFIX Use Kerberos 5
1489 --with-hesiod=PREFIX Use Hesiod
1490 --with-regex=PREFIX Use installed regex library
1491 --with-com_err=PREFIX Specify location of com_err
1492 --with-ss=PREFIX Specify location of ss (requires com_err)
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1503 the first program found out of: `bison -y', `byacc', `yacc'.
1504 YFLAGS The list of arguments that will be passed by default to $YACC.
1505 This script will default YFLAGS to the empty string to avoid a
1506 default value of `-d' given by some make applications.
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 CXXCPP C++ preprocessor
1511 F77 Fortran 77 compiler command
1512 FFLAGS Fortran 77 compiler flags
1513 XMKMF Path to xmkmf, Makefile generator for X Window System
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" || continue
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1579 generated by GNU Autoconf 2.61
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61. Invocation command line was
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 echo "PATH: $as_dir"
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_must_keep_next=false
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1664 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 -* ) ac_must_keep_next=true ;;
1685 ac_configure_args="$ac_configure_args '$ac_arg'"
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1709 # The following way of writing the cache mishandles newlines in values,
1711 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712 eval ac_val=\$$ac_var
1716 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720 _ | IFS | as_nl) ;; #(
1721 *) $as_unset $ac_var ;;
1726 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727 *${as_nl}ac_space=\ *)
1729 "s/'\''/'\''\\\\'\'''\''/g;
1730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1746 for ac_var in $ac_subst_vars
1748 eval ac_val=\$$ac_var
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 echo "$ac_var='\''$ac_val'\''"
1756 if test -n "$ac_subst_files"; then
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1763 for ac_var in $ac_subst_files
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1774 if test -s confdefs.h; then
1784 test "$ac_signal" != 0 &&
1785 echo "$as_me: caught signal $ac_signal"
1786 echo "$as_me: exit $exit_status"
1788 rm -f core *.core core.conftest.* &&
1789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792 for ac_signal in 1 2 13 15; do
1793 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1800 # Predefined preprocessor variables.
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 set x "$ac_default_prefix/share/config.site" \
1835 "$ac_default_prefix/etc/config.site"
1840 if test -r "$ac_site_file"; then
1841 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843 sed 's/^/| /' "$ac_site_file" >&5
1848 if test -r "$cache_file"; then
1849 # Some versions of bash will fail to source /dev/null (special
1850 # files actually), so we avoid doing that.
1851 if test -f "$cache_file"; then
1852 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1855 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856 *) . "./$cache_file";;
1860 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1865 # Check that the precious variables saved in the cache have kept the same
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870 eval ac_new_set=\$ac_env_${ac_var}_set
1871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872 eval ac_new_val=\$ac_env_${ac_var}_value
1873 case $ac_old_set,$ac_new_set in
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1884 if test "x$ac_old_val" != "x$ac_new_val"; then
1885 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888 echo "$as_me: former value: $ac_old_val" >&2;}
1889 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890 echo "$as_me: current value: $ac_new_val" >&2;}
1891 ac_cache_corrupted=:
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1897 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 if $ac_cache_corrupted; then
1907 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 test -d h || mkdir h
1939 test -d h/zephyr || mkdir h/zephyr
1941 test -z "$lbindir" && lbindir='${bindir}'
1942 test -z "$lsbindir" && lsbindir='${sbindir}'
1947 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1948 if test -f "$ac_dir/install-sh"; then
1950 ac_install_sh="$ac_aux_dir/install-sh -c"
1952 elif test -f "$ac_dir/install.sh"; then
1954 ac_install_sh="$ac_aux_dir/install.sh -c"
1956 elif test -f "$ac_dir/shtool"; then
1958 ac_install_sh="$ac_aux_dir/shtool install -c"
1962 if test -z "$ac_aux_dir"; then
1963 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1964 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1965 { (exit 1); exit 1; }; }
1968 # These three variables are undocumented and unsupported,
1969 # and are intended to be withdrawn in a future Autoconf release.
1970 # They can cause serious problems if a builder's source tree is in a directory
1971 # whose full name contains unusual characters.
1972 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1973 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1974 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1977 # Make sure we can run config.sub.
1978 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1979 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1980 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1981 { (exit 1); exit 1; }; }
1983 { echo "$as_me:$LINENO: checking build system type" >&5
1984 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_build+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 ac_build_alias=$build_alias
1989 test "x$ac_build_alias" = x &&
1990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1991 test "x$ac_build_alias" = x &&
1992 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1993 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1994 { (exit 1); exit 1; }; }
1995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1996 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1998 { (exit 1); exit 1; }; }
2001 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2002 echo "${ECHO_T}$ac_cv_build" >&6; }
2003 case $ac_cv_build in
2005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2006 echo "$as_me: error: invalid value of canonical build" >&2;}
2007 { (exit 1); exit 1; }; };;
2010 ac_save_IFS=$IFS; IFS='-'
2016 # Remember, the first character of IFS is used to create $*,
2017 # except with old shells:
2020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2023 { echo "$as_me:$LINENO: checking host system type" >&5
2024 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_host+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test "x$host_alias" = x; then
2029 ac_cv_host=$ac_cv_build
2031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2032 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2033 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2034 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2039 echo "${ECHO_T}$ac_cv_host" >&6; }
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2043 echo "$as_me: error: invalid value of canonical host" >&2;}
2044 { (exit 1); exit 1; }; };;
2047 ac_save_IFS=$IFS; IFS='-'
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2060 { echo "$as_me:$LINENO: checking target system type" >&5
2061 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_target+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test "x$target_alias" = x; then
2066 ac_cv_target=$ac_cv_host
2068 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2075 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2076 echo "${ECHO_T}$ac_cv_target" >&6; }
2077 case $ac_cv_target in
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2080 echo "$as_me: error: invalid value of canonical target" >&2;}
2081 { (exit 1); exit 1; }; };;
2083 target=$ac_cv_target
2084 ac_save_IFS=$IFS; IFS='-'
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2094 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2097 # The aliases save the names the user supplied, while $host etc.
2098 # will get canonicalized.
2099 test -n "$target_alias" &&
2100 test "$program_prefix$program_suffix$program_transform_name" = \
2102 program_prefix=${target_alias}-
2103 { echo "$as_me:$LINENO: checking target system type" >&5
2104 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test "x$target_alias" = x; then
2109 ac_cv_target=$ac_cv_host
2111 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2119 echo "${ECHO_T}$ac_cv_target" >&6; }
2120 case $ac_cv_target in
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2123 echo "$as_me: error: invalid value of canonical target" >&2;}
2124 { (exit 1); exit 1; }; };;
2126 target=$ac_cv_target
2127 ac_save_IFS=$IFS; IFS='-'
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2137 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2140 # The aliases save the names the user supplied, while $host etc.
2141 # will get canonicalized.
2142 test -n "$target_alias" &&
2143 test "$program_prefix$program_suffix$program_transform_name" = \
2145 program_prefix=${target_alias}-
2146 cat >>confdefs.h <<_ACEOF
2147 #define MACHINE_TYPE "$host"
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test -n "$CC"; then
2186 { echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6; }
2189 { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2195 if test -z "$ac_cv_prog_CC"; then
2197 # Extract the first word of "gcc", so it can be a program name with args.
2198 set dummy gcc; ac_word=$2
2199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2214 ac_cv_prog_ac_ct_CC="gcc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6; }
2229 { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2233 if test "x$ac_ct_CC" = x; then
2236 case $cross_compiling:$ac_tool_warned in
2238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2239 whose name does not start with the host triplet. If you think this
2240 configuration is useful to you, please write to autoconf@gnu.org." >&5
2241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet. If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2244 ac_tool_warned=yes ;;
2252 if test -z "$CC"; then
2253 if test -n "$ac_tool_prefix"; then
2254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2255 set dummy ${ac_tool_prefix}cc; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_CC="${ac_tool_prefix}cc"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 if test -n "$CC"; then
2283 { echo "$as_me:$LINENO: result: $CC" >&5
2284 echo "${ECHO_T}$CC" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2293 if test -z "$CC"; then
2294 # Extract the first word of "cc", so it can be a program name with args.
2295 set dummy cc; ac_word=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2313 ac_prog_rejected=yes
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 if test $ac_prog_rejected = yes; then
2325 # We found a bogon in the path, so make sure we never use it.
2326 set dummy $ac_cv_prog_CC
2328 if test $# != 0; then
2329 # We chose a different compiler from the bogus one.
2330 # However, it has the same basename, so the bogon will be chosen
2331 # first if we set CC to just the basename; use the full file name.
2333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2339 if test -n "$CC"; then
2340 { echo "$as_me:$LINENO: result: $CC" >&5
2341 echo "${ECHO_T}$CC" >&6; }
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2349 if test -z "$CC"; then
2350 if test -n "$ac_tool_prefix"; then
2351 for ac_prog in cl.exe
2353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test -n "$CC"; then
2382 { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2390 test -n "$CC" && break
2393 if test -z "$CC"; then
2395 for ac_prog in cl.exe
2397 # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_CC="$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427 echo "${ECHO_T}$ac_ct_CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2434 test -n "$ac_ct_CC" && break
2437 if test "x$ac_ct_CC" = x; then
2440 case $cross_compiling:$ac_tool_warned in
2442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet. If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&5
2445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet. If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2448 ac_tool_warned=yes ;;
2457 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: no acceptable C compiler found in \$PATH
2460 See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2463 # Provide some information about the compiler.
2464 echo "$as_me:$LINENO: checking for C compiler version" >&5
2465 ac_compiler=`set X $ac_compile; echo $2`
2466 { (ac_try="$ac_compiler --version >&5"
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_compiler --version >&5") 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2476 { (ac_try="$ac_compiler -v >&5"
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_compiler -v >&5") 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }
2486 { (ac_try="$ac_compiler -V >&5"
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compiler -V >&5") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2517 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2521 # List of possible output files, starting from the most likely.
2522 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2523 # only as a last resort. b.out is created by i960 compilers.
2524 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2526 # The IRIX 6 linker writes into existing files which may not be
2527 # executable, retaining their permissions. Remove them first so a
2528 # subsequent execution test works.
2530 for ac_file in $ac_files
2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2534 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2539 if { (ac_try="$ac_link_default"
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_link_default") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2551 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2552 # so that the user can short-circuit this test for compilers unknown to
2554 for ac_file in $ac_files ''
2556 test -f "$ac_file" || continue
2558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2561 # We found the default executable, but exeext='' is most
2565 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2567 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2569 # We set ac_cv_exeext here because the later test for it is not
2570 # safe: cross compilers may not add the suffix if given an `-o'
2571 # argument, so we may need to know it at that point already.
2572 # Even if this section looks crufty: it has the advantage of
2579 test "$ac_cv_exeext" = no && ac_cv_exeext=
2585 { echo "$as_me:$LINENO: result: $ac_file" >&5
2586 echo "${ECHO_T}$ac_file" >&6; }
2587 if test -z "$ac_file"; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595 { (exit 77); exit 77; }; }
2598 ac_exeext=$ac_cv_exeext
2600 # Check that the compiler produces executables we can run. If not, either
2601 # the compiler is broken, or we cross compile.
2602 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2603 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2605 # If not cross compiling, check that we can run a simple program.
2606 if test "$cross_compiling" != yes; then
2607 if { ac_try='./$ac_file'
2608 { (case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_try") 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 if test "$cross_compiling" = maybe; then
2622 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: cannot run C compiled programs.
2626 If you meant to cross compile, use \`--host'.
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2632 { echo "$as_me:$LINENO: result: yes" >&5
2633 echo "${ECHO_T}yes" >&6; }
2635 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2636 ac_clean_files=$ac_clean_files_save
2637 # Check that the compiler produces executables we can run. If not, either
2638 # the compiler is broken, or we cross compile.
2639 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2640 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2641 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2642 echo "${ECHO_T}$cross_compiling" >&6; }
2644 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2645 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2646 if { (ac_try="$ac_link"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_link") 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; then
2656 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2657 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2658 # work properly (i.e., refer to `conftest.exe'), while it won't with
2660 for ac_file in conftest.exe conftest conftest.*; do
2661 test -f "$ac_file" || continue
2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2664 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2670 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2673 See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }
2677 rm -f conftest$ac_cv_exeext
2678 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2679 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2681 rm -f conftest.$ac_ext
2682 EXEEXT=$ac_cv_exeext
2684 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2685 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2686 if test "${ac_cv_objext+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2704 rm -f conftest.o conftest.obj
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; then
2715 for ac_file in conftest.o conftest.obj conftest.*; do
2716 test -f "$ac_file" || continue;
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2719 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2728 See \`config.log' for more details." >&5
2729 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }
2734 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2736 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2737 echo "${ECHO_T}$ac_cv_objext" >&6; }
2738 OBJEXT=$ac_cv_objext
2740 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2741 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2742 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 cat >conftest.$ac_ext <<_ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (ac_try="$ac_compile"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compile") 2>conftest.er1
2772 grep -v '^ *+' conftest.er1 >conftest.err
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } && {
2777 test -z "$ac_c_werror_flag" ||
2778 test ! -s conftest.err
2779 } && test -s conftest.$ac_objext; then
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2792 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2793 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2794 GCC=`test $ac_compiler_gnu = yes && echo yes`
2795 ac_test_CFLAGS=${CFLAGS+set}
2796 ac_save_CFLAGS=$CFLAGS
2797 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2798 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_cc_g+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 ac_save_c_werror_flag=$ac_c_werror_flag
2803 ac_c_werror_flag=yes
2806 cat >conftest.$ac_ext <<_ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compile") 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } && {
2835 test -z "$ac_c_werror_flag" ||
2836 test ! -s conftest.err
2837 } && test -s conftest.$ac_objext; then
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2859 rm -f conftest.$ac_objext
2860 if { (ac_try="$ac_compile"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_compile") 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } && {
2873 test -z "$ac_c_werror_flag" ||
2874 test ! -s conftest.err
2875 } && test -s conftest.$ac_objext; then
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 ac_c_werror_flag=$ac_save_c_werror_flag
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_c_werror_flag=$ac_save_c_werror_flag
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2933 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2934 if test "$ac_test_CFLAGS" = set; then
2935 CFLAGS=$ac_save_CFLAGS
2936 elif test $ac_cv_prog_cc_g = yes; then
2937 if test "$GCC" = yes; then
2943 if test "$GCC" = yes; then
2949 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2950 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_cc_c89+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 ac_cv_prog_cc_c89=no
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2964 #include <sys/types.h>
2965 #include <sys/stat.h>
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2980 s = g (p, va_arg (v,int));
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2986 function prototypes and stuff, but not '\xHH' hex character constants.
2987 These don't provoke an error unfortunately, instead are silently treated
2988 as 'x'. The following induces an error, until -std is added to get
2989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2990 array size at least. It's necessary to write '\x00'==0 to get something
2991 that's true only with -std. */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995 inside strings and character constants. */
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3016 CC="$ac_save_CC $ac_arg"
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3034 ac_cv_prog_cc_c89=$ac_arg
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f core conftest.err conftest.$ac_objext
3043 test "x$ac_cv_prog_cc_c89" != "xno" && break
3045 rm -f conftest.$ac_ext
3050 case "x$ac_cv_prog_cc_c89" in
3052 { echo "$as_me:$LINENO: result: none needed" >&5
3053 echo "${ECHO_T}none needed" >&6; } ;;
3055 { echo "$as_me:$LINENO: result: unsupported" >&5
3056 echo "${ECHO_T}unsupported" >&6; } ;;
3058 CC="$CC $ac_cv_prog_cc_c89"
3059 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3060 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 for ac_prog in 'bison -y' byacc
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_YACC+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 if test -n "$YACC"; then
3080 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_YACC="$ac_prog"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 YACC=$ac_cv_prog_YACC
3100 if test -n "$YACC"; then
3101 { echo "$as_me:$LINENO: result: $YACC" >&5
3102 echo "${ECHO_T}$YACC" >&6; }
3104 { echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6; }
3109 test -n "$YACC" && break
3111 test -n "$YACC" || YACC="yacc"
3114 for ac_prog in flex lex
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_LEX+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$LEX"; then
3124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_LEX="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 if test -n "$LEX"; then
3145 { echo "$as_me:$LINENO: result: $LEX" >&5
3146 echo "${ECHO_T}$LEX" >&6; }
3148 { echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6; }
3153 test -n "$LEX" && break
3155 test -n "$LEX" || LEX=":"
3157 if test "x$LEX" != "x:"; then
3158 cat >conftest.l <<_ACEOF
3164 e { yyless (input () != 0); }
3165 f { unput (yytext[0]); }
3166 . { BEGIN INITIAL; }
3168 #ifdef YYTEXT_POINTER
3169 extern char *yytext;
3174 return ! yylex () + ! yywrap ();
3177 { (ac_try="$LEX conftest.l"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$LEX conftest.l") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }
3187 { echo "$as_me:$LINENO: checking lex output file root" >&5
3188 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3189 if test "${ac_cv_prog_lex_root+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -f lex.yy.c; then
3194 ac_cv_prog_lex_root=lex.yy
3195 elif test -f lexyy.c; then
3196 ac_cv_prog_lex_root=lexyy
3198 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3199 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3200 { (exit 1); exit 1; }; }
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3204 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3205 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3207 if test -z "${LEXLIB+set}"; then
3208 { echo "$as_me:$LINENO: checking lex library" >&5
3209 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3210 if test "${ac_cv_lib_lex+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 ac_cv_lib_lex='none needed'
3216 for ac_lib in '' -lfl -ll; do
3217 LIBS="$ac_lib $ac_save_LIBS"
3218 cat >conftest.$ac_ext <<_ACEOF
3219 `cat $LEX_OUTPUT_ROOT.c`
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (ac_try="$ac_link"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_link") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest$ac_exeext &&
3238 $as_test_x conftest$ac_exeext; then
3239 ac_cv_lib_lex=$ac_lib
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3248 conftest$ac_exeext conftest.$ac_ext
3249 test "$ac_cv_lib_lex" != 'none needed' && break
3254 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3255 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3256 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3260 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3261 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 # POSIX says lex can declare yytext either as a pointer or an array; the
3266 # default is implementation-dependent. Figure out which it is, since
3267 # not all implementations provide the %pointer and %array declarations.
3268 ac_cv_prog_lex_yytext_pointer=no
3270 LIBS="$LEXLIB $ac_save_LIBS"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #define YYTEXT_POINTER 1
3273 `cat $LEX_OUTPUT_ROOT.c`
3275 rm -f conftest.$ac_objext conftest$ac_exeext
3276 if { (ac_try="$ac_link"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_link") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest$ac_exeext &&
3292 $as_test_x conftest$ac_exeext; then
3293 ac_cv_prog_lex_yytext_pointer=yes
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3302 conftest$ac_exeext conftest.$ac_ext
3306 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3307 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3308 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3310 cat >>confdefs.h <<\_ACEOF
3311 #define YYTEXT_POINTER 1
3315 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3318 # Find a good install program. We prefer a C program (faster),
3319 # so one script is as good as another. But avoid the broken or
3320 # incompatible versions:
3321 # SysV /etc/install, /usr/sbin/install
3322 # SunOS /usr/etc/install
3323 # IRIX /sbin/install
3325 # AmigaOS /C/install, which installs bootblocks on floppy discs
3326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3329 # OS/2's system install, which has a completely different semantic
3330 # ./install, which can be erroneously created by make from ./install.sh.
3331 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3332 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3333 if test -z "$INSTALL"; then
3334 if test "${ac_cv_path_install+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 # Account for people who put trailing slashes in PATH elements.
3344 ./ | .// | /cC/* | \
3345 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3346 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3349 # OSF1 and SCO ODT 3.0 have their own names for install.
3350 # Don't use installbsd from OSF since it installs stuff as root
3352 for ac_prog in ginstall scoinst install; do
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3355 if test $ac_prog = install &&
3356 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3357 # AIX install. It has an incompatible calling convention.
3359 elif test $ac_prog = install &&
3360 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3361 # program-specific install script used by HP pwplus--don't use.
3364 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3377 if test "${ac_cv_path_install+set}" = set; then
3378 INSTALL=$ac_cv_path_install
3380 # As a last resort, use the slow shell script. Don't cache a
3381 # value for INSTALL within a source directory, because that will
3382 # break other packages using the cache if that directory is
3383 # removed, or if the value is a relative name.
3384 INSTALL=$ac_install_sh
3387 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3388 echo "${ECHO_T}$INSTALL" >&6; }
3390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3391 # It thinks the first close brace ends the variable substitution.
3392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3398 if test -n "$ac_tool_prefix"; then
3399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3403 if test "${ac_cv_prog_RANLIB+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 if test -n "$RANLIB"; then
3407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 RANLIB=$ac_cv_prog_RANLIB
3427 if test -n "$RANLIB"; then
3428 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3429 echo "${ECHO_T}$RANLIB" >&6; }
3431 { echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6; }
3437 if test -z "$ac_cv_prog_RANLIB"; then
3438 ac_ct_RANLIB=$RANLIB
3439 # Extract the first word of "ranlib", so it can be a program name with args.
3440 set dummy ranlib; ac_word=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$ac_ct_RANLIB"; then
3447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_ac_ct_RANLIB="ranlib"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3467 if test -n "$ac_ct_RANLIB"; then
3468 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3469 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3475 if test "x$ac_ct_RANLIB" = x; then
3478 case $cross_compiling:$ac_tool_warned in
3480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3481 whose name does not start with the host triplet. If you think this
3482 configuration is useful to you, please write to autoconf@gnu.org." >&5
3483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3484 whose name does not start with the host triplet. If you think this
3485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3486 ac_tool_warned=yes ;;
3488 RANLIB=$ac_ct_RANLIB
3491 RANLIB="$ac_cv_prog_RANLIB"
3494 # Check whether --enable-shared was given.
3495 if test "${enable_shared+set}" = set; then
3496 enableval=$enable_shared; p=${PACKAGE-default}
3498 yes) enable_shared=yes ;;
3499 no) enable_shared=no ;;
3502 # Look at the argument we got. We use all the common list separators.
3503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504 for pkg in $enableval; do
3506 if test "X$pkg" = "X$p"; then
3518 # Check whether --enable-static was given.
3519 if test "${enable_static+set}" = set; then
3520 enableval=$enable_static; p=${PACKAGE-default}
3522 yes) enable_static=yes ;;
3523 no) enable_static=no ;;
3526 # Look at the argument we got. We use all the common list separators.
3527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3528 for pkg in $enableval; do
3530 if test "X$pkg" = "X$p"; then
3542 # Check whether --enable-fast-install was given.
3543 if test "${enable_fast_install+set}" = set; then
3544 enableval=$enable_fast_install; p=${PACKAGE-default}
3546 yes) enable_fast_install=yes ;;
3547 no) enable_fast_install=no ;;
3549 enable_fast_install=no
3550 # Look at the argument we got. We use all the common list separators.
3551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3552 for pkg in $enableval; do
3554 if test "X$pkg" = "X$p"; then
3555 enable_fast_install=yes
3562 enable_fast_install=yes
3566 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3567 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3568 if test "${lt_cv_path_SED+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 # Loop through the user's path and test for sed and gsed.
3572 # Then use that list of sed's as ones to test for truncation.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for lt_ac_prog in sed gsed; do
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3581 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3588 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3589 # along with /bin/sed that truncates output.
3590 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3591 test ! -f $lt_ac_sed && break
3592 cat /dev/null > conftest.in
3594 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3595 # Check for GNU sed and select it if it is found.
3596 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3597 lt_cv_path_SED=$lt_ac_sed
3601 cat conftest.in conftest.in >conftest.tmp
3602 mv conftest.tmp conftest.in
3603 cp conftest.in conftest.nl
3605 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3606 cmp -s conftest.out conftest.nl || break
3607 # 10000 chars as input seems more than enough
3608 test $lt_ac_count -gt 10 && break
3609 lt_ac_count=`expr $lt_ac_count + 1`
3610 if test $lt_ac_count -gt $lt_ac_max; then
3611 lt_ac_max=$lt_ac_count
3612 lt_cv_path_SED=$lt_ac_sed
3620 { echo "$as_me:$LINENO: result: $SED" >&5
3621 echo "${ECHO_T}$SED" >&6; }
3623 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3624 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 # Extract the first word of "grep ggrep" to use in msg output
3629 if test -z "$GREP"; then
3630 set dummy grep ggrep; ac_prog_name=$2
3631 if test "${ac_cv_path_GREP+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 ac_path_GREP_found=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3640 test -z "$as_dir" && as_dir=.
3641 for ac_prog in grep ggrep; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3644 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3645 # Check for GNU ac_path_GREP and select it if it is found.
3646 # Check for GNU $ac_path_GREP
3647 case `"$ac_path_GREP" --version 2>&1` in
3649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3652 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 echo 'GREP' >> "conftest.nl"
3659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 ac_count=`expr $ac_count + 1`
3662 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_GREP="$ac_path_GREP"
3665 ac_path_GREP_max=$ac_count
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3674 $ac_path_GREP_found && break 3
3684 GREP="$ac_cv_path_GREP"
3685 if test -z "$GREP"; then
3686 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3687 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3688 { (exit 1); exit 1; }; }
3692 ac_cv_path_GREP=$GREP
3697 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3698 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3699 GREP="$ac_cv_path_GREP"
3702 { echo "$as_me:$LINENO: checking for egrep" >&5
3703 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3708 then ac_cv_path_EGREP="$GREP -E"
3710 # Extract the first word of "egrep" to use in msg output
3711 if test -z "$EGREP"; then
3712 set dummy egrep; ac_prog_name=$2
3713 if test "${ac_cv_path_EGREP+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 ac_path_EGREP_found=false
3717 # Loop through the user's path and test for each of PROGNAME-LIST
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3722 test -z "$as_dir" && as_dir=.
3723 for ac_prog in egrep; do
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3726 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3727 # Check for GNU ac_path_EGREP and select it if it is found.
3728 # Check for GNU $ac_path_EGREP
3729 case `"$ac_path_EGREP" --version 2>&1` in
3731 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3734 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3737 cat "conftest.in" "conftest.in" >"conftest.tmp"
3738 mv "conftest.tmp" "conftest.in"
3739 cp "conftest.in" "conftest.nl"
3740 echo 'EGREP' >> "conftest.nl"
3741 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3743 ac_count=`expr $ac_count + 1`
3744 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3745 # Best one so far, save it but keep looking for a better one
3746 ac_cv_path_EGREP="$ac_path_EGREP"
3747 ac_path_EGREP_max=$ac_count
3749 # 10*(2^10) chars as input seems more than enough
3750 test $ac_count -gt 10 && break
3752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756 $ac_path_EGREP_found && break 3
3766 EGREP="$ac_cv_path_EGREP"
3767 if test -z "$EGREP"; then
3768 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3769 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3770 { (exit 1); exit 1; }; }
3774 ac_cv_path_EGREP=$EGREP
3780 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3781 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3782 EGREP="$ac_cv_path_EGREP"
3786 # Check whether --with-gnu-ld was given.
3787 if test "${with_gnu_ld+set}" = set; then
3788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3794 if test "$GCC" = yes; then
3795 # Check if gcc -print-prog-name=ld gives a path.
3796 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3797 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3800 # gcc leaves a trailing carriage return which upsets mingw
3801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3806 # Accept absolute paths.
3808 re_direlt='/[^/][^/]*/\.\./'
3809 # Canonicalize the pathname of ld
3810 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3812 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3814 test -z "$LD" && LD="$ac_prog"
3817 # If it fails, then pretend we aren't using GCC.
3821 # If it is relative, then search for the first ld in PATH.
3825 elif test "$with_gnu_ld" = yes; then
3826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3827 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3830 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3832 if test "${lt_cv_path_LD+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test -z "$LD"; then
3836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3837 for ac_dir in $PATH; do
3839 test -z "$ac_dir" && ac_dir=.
3840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3841 lt_cv_path_LD="$ac_dir/$ac_prog"
3842 # Check to see if the program is GNU ld. I'd rather use --version,
3843 # but apparently some GNU ld's only accept -v.
3844 # Break only if it was the GNU/non-GNU ld that we prefer.
3845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3846 *GNU* | *'with BFD'*)
3847 test "$with_gnu_ld" != no && break
3850 test "$with_gnu_ld" != yes && break
3857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3862 if test -n "$LD"; then
3863 { echo "$as_me:$LINENO: result: $LD" >&5
3864 echo "${ECHO_T}$LD" >&6; }
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3871 { (exit 1); exit 1; }; }
3872 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3874 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3878 case `$LD -v 2>&1 </dev/null` in
3879 *GNU* | *'with BFD'*)
3880 lt_cv_prog_gnu_ld=yes
3883 lt_cv_prog_gnu_ld=no
3887 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3888 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3889 with_gnu_ld=$lt_cv_prog_gnu_ld
3892 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3893 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3894 if test "${lt_cv_ld_reload_flag+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 lt_cv_ld_reload_flag='-r'
3899 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3900 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3901 reload_flag=$lt_cv_ld_reload_flag
3902 case $reload_flag in
3904 *) reload_flag=" $reload_flag" ;;
3906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3909 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3910 if test "${lt_cv_path_NM+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 if test -n "$NM"; then
3914 # Let the user override the test.
3917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3918 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3920 test -z "$ac_dir" && ac_dir=.
3921 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3923 # Check to see if the nm accepts a BSD-compat flag.
3924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925 # nm: unknown option "B" ignored
3926 # Tru64's nm complains that /dev/null is an invalid object file
3927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928 */dev/null* | *'Invalid file or object type'*)
3929 lt_cv_path_NM="$tmp_nm -B"
3933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3935 lt_cv_path_NM="$tmp_nm -p"
3939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940 continue # so that we can try to find one that supports BSD flags
3947 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3950 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3951 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3954 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3957 if test "$LN_S" = "ln -s"; then
3958 { echo "$as_me:$LINENO: result: yes" >&5
3959 echo "${ECHO_T}yes" >&6; }
3961 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3962 echo "${ECHO_T}no, using $LN_S" >&6; }
3965 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3966 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3967 if test "${lt_cv_deplibs_check_method+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 lt_cv_file_magic_cmd='$MAGIC_CMD'
3971 lt_cv_file_magic_test_file=
3972 lt_cv_deplibs_check_method='unknown'
3973 # Need to set the preceding variable on all platforms that support
3974 # interlibrary dependencies.
3975 # 'none' -- dependencies not supported.
3976 # `unknown' -- same as none, but documents that we really don't know.
3977 # 'pass_all' -- all dependencies passed with no checks.
3978 # 'test_compile' -- check by making test program.
3979 # 'file_magic [[regex]]' -- check by looking for files in library path
3980 # which responds to the $file_magic_cmd with a given extended regex.
3981 # If you have `file' or equivalent on your system and you're not sure
3982 # whether `pass_all' will *always* work, you probably want this one.
3986 lt_cv_deplibs_check_method=pass_all
3990 lt_cv_deplibs_check_method=pass_all
3994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3995 lt_cv_file_magic_cmd='/usr/bin/file -L'
3996 lt_cv_file_magic_test_file=/shlib/libc.so
4000 # func_win32_libid is a shell function defined in ltmain.sh
4001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4002 lt_cv_file_magic_cmd='func_win32_libid'
4006 # Base MSYS/MinGW do not provide the 'file' command needed by
4007 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
4012 darwin* | rhapsody*)
4013 lt_cv_deplibs_check_method=pass_all
4016 freebsd* | kfreebsd*-gnu)
4017 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4020 # Not sure whether the presence of OpenBSD here was a mistake.
4021 # Let's accept both of them until this is cleared up.
4022 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4023 lt_cv_file_magic_cmd=/usr/bin/file
4024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 lt_cv_deplibs_check_method=pass_all
4033 lt_cv_deplibs_check_method=pass_all
4036 hpux10.20* | hpux11*)
4037 lt_cv_file_magic_cmd=/usr/bin/file
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4044 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]'
4045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4054 irix5* | irix6* | nonstopux*)
4056 *-32|*"-32 ") libmagic=32-bit;;
4057 *-n32|*"-n32 ") libmagic=N32;;
4058 *-64|*"-64 ") libmagic=64-bit;;
4059 *) libmagic=never-match;;
4061 lt_cv_deplibs_check_method=pass_all
4064 # This must be Linux ELF.
4067 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4068 lt_cv_deplibs_check_method=pass_all ;;
4070 # glibc up to 2.1.1 does not perform some relocations on ARM
4071 # this will be overridden with pass_all, but let us keep it just in case
4072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4074 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4075 lt_cv_deplibs_check_method=pass_all
4079 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4088 lt_cv_file_magic_cmd=/usr/bin/file
4089 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4093 lt_cv_deplibs_check_method=unknown
4097 lt_cv_file_magic_cmd=/usr/bin/file
4098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4102 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4106 osf3* | osf4* | osf5*)
4107 lt_cv_deplibs_check_method=pass_all
4111 lt_cv_deplibs_check_method=pass_all
4115 lt_cv_deplibs_check_method=pass_all
4118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4119 case $host_vendor in
4121 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]'
4122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4125 lt_cv_deplibs_check_method=pass_all
4128 lt_cv_file_magic_cmd='/bin/file'
4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4132 lt_cv_file_magic_cmd='/bin/file'
4133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4134 lt_cv_file_magic_test_file=/lib/libc.so
4137 lt_cv_deplibs_check_method=pass_all
4142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4143 lt_cv_deplibs_check_method=pass_all
4148 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4149 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4150 file_magic_cmd=$lt_cv_file_magic_cmd
4151 deplibs_check_method=$lt_cv_deplibs_check_method
4152 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4157 # If no C compiler was specified, use CC.
4160 # Allow CC to be a program name with arguments.
4163 # Check whether --enable-libtool-lock was given.
4164 if test "${enable_libtool_lock+set}" = set; then
4165 enableval=$enable_libtool_lock;
4168 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4170 # Some flags need to be propagated to the compiler or linker for good
4174 # Find out which ABI we are using.
4175 echo 'int i;' > conftest.$ac_ext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; then
4181 case `/usr/bin/file conftest.$ac_objext` in
4193 # Find out which ABI we are using.
4194 echo '#line 4194 "configure"' > conftest.$ac_ext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; then
4200 if test "$lt_cv_prog_gnu_ld" = yes; then
4201 case `/usr/bin/file conftest.$ac_objext` in
4203 LD="${LD-ld} -melf32bsmip"
4206 LD="${LD-ld} -melf32bmipn32"
4209 LD="${LD-ld} -melf64bmip"
4213 case `/usr/bin/file conftest.$ac_objext` in
4229 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4230 # Find out which ABI we are using.
4231 echo 'int i;' > conftest.$ac_ext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; then
4237 case "`/usr/bin/file conftest.o`" in
4241 LD="${LD-ld} -m elf_i386"
4243 ppc64-*linux*|powerpc64-*linux*)
4244 LD="${LD-ld} -m elf32ppclinux"
4247 LD="${LD-ld} -m elf_s390"
4250 LD="${LD-ld} -m elf32_sparc"
4257 LD="${LD-ld} -m elf_x86_64"
4259 ppc*-*linux*|powerpc*-*linux*)
4260 LD="${LD-ld} -m elf64ppc"
4263 LD="${LD-ld} -m elf64_s390"
4266 LD="${LD-ld} -m elf64_sparc"
4276 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4277 SAVE_CFLAGS="$CFLAGS"
4278 CFLAGS="$CFLAGS -belf"
4279 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4280 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4281 if test "${lt_cv_cc_needs_belf+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (ac_try="$ac_link"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_link") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && {
4319 test -z "$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4321 } && test -s conftest$ac_exeext &&
4322 $as_test_x conftest$ac_exeext; then
4323 lt_cv_cc_needs_belf=yes
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 lt_cv_cc_needs_belf=no
4331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4332 conftest$ac_exeext conftest.$ac_ext
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4341 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4344 CFLAGS="$SAVE_CFLAGS"
4350 need_locks="$enable_libtool_lock"
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4360 # On Suns, sometimes $CPP names a directory.
4361 if test -n "$CPP" && test -d "$CPP"; then
4364 if test -z "$CPP"; then
4365 if test "${ac_cv_prog_CPP+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 # Double quotes because CPP needs to be expanded
4369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4372 for ac_c_preproc_warn_flag in '' yes
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
4380 cat >conftest.$ac_ext <<_ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4387 # include <limits.h>
4389 # include <assert.h>
4393 if { (ac_try="$ac_cpp conftest.$ac_ext"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null && {
4406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4407 test ! -s conftest.err
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 # Broken: fails on valid input.
4418 rm -f conftest.err conftest.$ac_ext
4420 # OK, works on sane cases. Now check whether nonexistent headers
4421 # can be detected and how.
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <ac_nonexistent.h>
4430 if { (ac_try="$ac_cpp conftest.$ac_ext"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } >/dev/null && {
4443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4446 # Broken: success on invalid input.
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 # Passes both tests.
4457 rm -f conftest.err conftest.$ac_ext
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then
4474 { echo "$as_me:$LINENO: result: $CPP" >&5
4475 echo "${ECHO_T}$CPP" >&6; }
4477 for ac_c_preproc_warn_flag in '' yes
4479 # Use a header file that comes with gcc, so configuring glibc
4480 # with a fresh cross-compiler works.
4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 # <limits.h> exists even on freestanding compilers.
4483 # On the NeXT, cc -E runs the code through the compiler's parser,
4484 # not just through cpp. "Syntax error" is here to catch this case.
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 # include <limits.h>
4494 # include <assert.h>
4498 if { (ac_try="$ac_cpp conftest.$ac_ext"
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null && {
4511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # Broken: fails on valid input.
4523 rm -f conftest.err conftest.$ac_ext
4525 # OK, works on sane cases. Now check whether nonexistent headers
4526 # can be detected and how.
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <ac_nonexistent.h>
4535 if { (ac_try="$ac_cpp conftest.$ac_ext"
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } >/dev/null && {
4548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4549 test ! -s conftest.err
4551 # Broken: success on invalid input.
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 # Passes both tests.
4562 rm -f conftest.err conftest.$ac_ext
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then
4570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4573 See \`config.log' for more details." >&2;}
4574 { (exit 1); exit 1; }; }
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4585 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4586 if test "${ac_cv_header_stdc+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4625 ac_cv_header_stdc=yes
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_cv_header_stdc=no
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test $ac_cv_header_stdc = yes; then
4636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "memchr" >/dev/null 2>&1; then
4650 ac_cv_header_stdc=no
4656 if test $ac_cv_header_stdc = yes; then
4657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4658 cat >conftest.$ac_ext <<_ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4668 $EGREP "free" >/dev/null 2>&1; then
4671 ac_cv_header_stdc=no
4677 if test $ac_cv_header_stdc = yes; then
4678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4679 if test "$cross_compiling" = yes; then
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4690 #if ((' ' & 0x0FF) == 0x020)
4691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4694 # define ISLOWER(c) \
4695 (('a' <= (c) && (c) <= 'i') \
4696 || ('j' <= (c) && (c) <= 'r') \
4697 || ('s' <= (c) && (c) <= 'z'))
4698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4706 for (i = 0; i < 256; i++)
4707 if (XOR (islower (i), ISLOWER (i))
4708 || toupper (i) != TOUPPER (i))
4713 rm -f conftest$ac_exeext
4714 if { (ac_try="$ac_link"
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_link") 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4724 { (case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_try") 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4735 echo "$as_me: program exited with status $ac_status" >&5
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4740 ac_cv_header_stdc=no
4742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4748 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4749 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4750 if test $ac_cv_header_stdc = yes; then
4752 cat >>confdefs.h <<\_ACEOF
4753 #define STDC_HEADERS 1
4758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4769 inttypes.h stdint.h unistd.h
4771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_includes_default
4785 #include <$ac_header>
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4804 eval "$as_ac_Header=yes"
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 eval "$as_ac_Header=no"
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_res=`eval echo '${'$as_ac_Header'}'`
4815 { echo "$as_me:$LINENO: result: $ac_res" >&5
4816 echo "${ECHO_T}$ac_res" >&6; }
4817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4828 for ac_header in dlfcn.h
4830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 ac_res=`eval echo '${'$as_ac_Header'}'`
4838 { echo "$as_me:$LINENO: result: $ac_res" >&5
4839 echo "${ECHO_T}$ac_res" >&6; }
4841 # Is the header compilable?
4842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4851 #include <$ac_header>
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4870 ac_header_compiler=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_header_compiler=no
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4880 echo "${ECHO_T}$ac_header_compiler" >&6; }
4882 # Is the header present?
4883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4885 cat >conftest.$ac_ext <<_ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #include <$ac_header>
4893 if { (ac_try="$ac_cpp conftest.$ac_ext"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } >/dev/null && {
4906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4909 ac_header_preproc=yes
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_header_preproc=no
4917 rm -f conftest.err conftest.$ac_ext
4918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4919 echo "${ECHO_T}$ac_header_preproc" >&6; }
4921 # So? What about this header?
4922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4928 ac_header_preproc=yes
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 eval "$as_ac_Header=\$ac_header_preproc"
4953 ac_res=`eval echo '${'$as_ac_Header'}'`
4954 { echo "$as_me:$LINENO: result: $ac_res" >&5
4955 echo "${ECHO_T}$ac_res" >&6; }
4958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4959 cat >>confdefs.h <<_ACEOF
4960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 if test -z "$CXX"; then
4973 if test -n "$CCC"; then
4976 if test -n "$ac_tool_prefix"; then
4977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_CXX+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$CXX"; then
4987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 if test -n "$CXX"; then
5008 { echo "$as_me:$LINENO: result: $CXX" >&5
5009 echo "${ECHO_T}$CXX" >&6; }
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5016 test -n "$CXX" && break
5019 if test -z "$CXX"; then
5021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test -n "$ac_ct_CXX"; then
5031 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ac_ct_CXX="$ac_prog"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5051 if test -n "$ac_ct_CXX"; then
5052 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5053 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 test -n "$ac_ct_CXX" && break
5063 if test "x$ac_ct_CXX" = x; then
5066 case $cross_compiling:$ac_tool_warned in
5068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5069 whose name does not start with the host triplet. If you think this
5070 configuration is useful to you, please write to autoconf@gnu.org." >&5
5071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5072 whose name does not start with the host triplet. If you think this
5073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5074 ac_tool_warned=yes ;;
5082 # Provide some information about the compiler.
5083 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5084 ac_compiler=`set X $ac_compile; echo $2`
5085 { (ac_try="$ac_compiler --version >&5"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compiler --version >&5") 2>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }
5095 { (ac_try="$ac_compiler -v >&5"
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_compiler -v >&5") 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }
5105 { (ac_try="$ac_compiler -V >&5"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_compiler -V >&5") 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }
5116 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5117 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5118 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_cxx_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5168 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5169 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5170 GXX=`test $ac_compiler_gnu = yes && echo yes`
5171 ac_test_CXXFLAGS=${CXXFLAGS+set}
5172 ac_save_CXXFLAGS=$CXXFLAGS
5173 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5174 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5175 if test "${ac_cv_prog_cxx_g+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5179 ac_cxx_werror_flag=yes
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5197 rm -f conftest.$ac_objext
5198 if { (ac_try="$ac_compile"
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_compile") 2>conftest.er1
5206 grep -v '^ *+' conftest.er1 >conftest.err
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } && {
5211 test -z "$ac_cxx_werror_flag" ||
5212 test ! -s conftest.err
5213 } && test -s conftest.$ac_objext; then
5214 ac_cv_prog_cxx_g=yes
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5235 rm -f conftest.$ac_objext
5236 if { (ac_try="$ac_compile"
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_cxx_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compile") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_cxx_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest.$ac_objext; then
5291 ac_cv_prog_cxx_g=yes
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5308 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5309 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5310 if test "$ac_test_CXXFLAGS" = set; then
5311 CXXFLAGS=$ac_save_CXXFLAGS
5312 elif test $ac_cv_prog_cxx_g = yes; then
5313 if test "$GXX" = yes; then
5319 if test "$GXX" = yes; then
5326 ac_cpp='$CXXCPP $CPPFLAGS'
5327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5332 ac_cpp='$CXXCPP $CPPFLAGS'
5333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5336 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5337 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5338 if test -z "$CXXCPP"; then
5339 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 # Double quotes because CXXCPP needs to be expanded
5343 for CXXCPP in "$CXX -E" "/lib/cpp"
5346 for ac_cxx_preproc_warn_flag in '' yes
5348 # Use a header file that comes with gcc, so configuring glibc
5349 # with a fresh cross-compiler works.
5350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5351 # <limits.h> exists even on freestanding compilers.
5352 # On the NeXT, cc -E runs the code through the compiler's parser,
5353 # not just through cpp. "Syntax error" is here to catch this case.
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5361 # include <limits.h>
5363 # include <assert.h>
5367 if { (ac_try="$ac_cpp conftest.$ac_ext"
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null && {
5380 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5381 test ! -s conftest.err
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 # Broken: fails on valid input.
5392 rm -f conftest.err conftest.$ac_ext
5394 # OK, works on sane cases. Now check whether nonexistent headers
5395 # can be detected and how.
5396 cat >conftest.$ac_ext <<_ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <ac_nonexistent.h>
5404 if { (ac_try="$ac_cpp conftest.$ac_ext"
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null && {
5417 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5418 test ! -s conftest.err
5420 # Broken: success on invalid input.
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 # Passes both tests.
5431 rm -f conftest.err conftest.$ac_ext
5434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5435 rm -f conftest.err conftest.$ac_ext
5436 if $ac_preproc_ok; then
5441 ac_cv_prog_CXXCPP=$CXXCPP
5444 CXXCPP=$ac_cv_prog_CXXCPP
5446 ac_cv_prog_CXXCPP=$CXXCPP
5448 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5449 echo "${ECHO_T}$CXXCPP" >&6; }
5451 for ac_cxx_preproc_warn_flag in '' yes
5453 # Use a header file that comes with gcc, so configuring glibc
5454 # with a fresh cross-compiler works.
5455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5456 # <limits.h> exists even on freestanding compilers.
5457 # On the NeXT, cc -E runs the code through the compiler's parser,
5458 # not just through cpp. "Syntax error" is here to catch this case.
5459 cat >conftest.$ac_ext <<_ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5466 # include <limits.h>
5468 # include <assert.h>
5472 if { (ac_try="$ac_cpp conftest.$ac_ext"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } >/dev/null && {
5485 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5486 test ! -s conftest.err
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 # Broken: fails on valid input.
5497 rm -f conftest.err conftest.$ac_ext
5499 # OK, works on sane cases. Now check whether nonexistent headers
5500 # can be detected and how.
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <ac_nonexistent.h>
5509 if { (ac_try="$ac_cpp conftest.$ac_ext"
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } >/dev/null && {
5522 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5523 test ! -s conftest.err
5525 # Broken: success on invalid input.
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 # Passes both tests.
5536 rm -f conftest.err conftest.$ac_ext
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then
5544 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5552 ac_cpp='$CXXCPP $CPPFLAGS'
5553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5559 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5560 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5562 if test -n "$ac_tool_prefix"; then
5563 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
5565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5569 if test "${ac_cv_prog_F77+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 if test -n "$F77"; then
5573 ac_cv_prog_F77="$F77" # Let the user override the test.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 if test -n "$F77"; then
5594 { echo "$as_me:$LINENO: result: $F77" >&5
5595 echo "${ECHO_T}$F77" >&6; }
5597 { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5602 test -n "$F77" && break
5605 if test -z "$F77"; then
5607 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
5609 # Extract the first word of "$ac_prog", so it can be a program name with args.
5610 set dummy $ac_prog; ac_word=$2
5611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5613 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 if test -n "$ac_ct_F77"; then
5617 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_ac_ct_F77="$ac_prog"
5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5637 if test -n "$ac_ct_F77"; then
5638 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5639 echo "${ECHO_T}$ac_ct_F77" >&6; }
5641 { echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6; }
5646 test -n "$ac_ct_F77" && break
5649 if test "x$ac_ct_F77" = x; then
5652 case $cross_compiling:$ac_tool_warned in
5654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5655 whose name does not start with the host triplet. If you think this
5656 configuration is useful to you, please write to autoconf@gnu.org." >&5
5657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5658 whose name does not start with the host triplet. If you think this
5659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5660 ac_tool_warned=yes ;;
5667 # Provide some information about the compiler.
5668 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5669 ac_compiler=`set X $ac_compile; echo $2`
5670 { (ac_try="$ac_compiler --version >&5"
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compiler --version >&5") 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }
5680 { (ac_try="$ac_compiler -v >&5"
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compiler -v >&5") 2>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }
5690 { (ac_try="$ac_compiler -V >&5"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compiler -V >&5") 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }
5702 # If we don't use `.F' as extension, the preprocessor is not run on the
5703 # input file. (Note that this only needs to work for GNU compilers.)
5706 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5707 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5708 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 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
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
5745 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5748 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5749 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5751 ac_test_FFLAGS=${FFLAGS+set}
5752 ac_save_FFLAGS=$FFLAGS
5754 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5755 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_f77_g+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (ac_try="$ac_compile"
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compile") 2>conftest.er1
5774 grep -v '^ *+' conftest.er1 >conftest.err
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && {
5779 test -z "$ac_f77_werror_flag" ||
5780 test ! -s conftest.err
5781 } && test -s conftest.$ac_objext; then
5782 ac_cv_prog_f77_g=yes
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5794 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5795 if test "$ac_test_FFLAGS" = set; then
5796 FFLAGS=$ac_save_FFLAGS
5797 elif test $ac_cv_prog_f77_g = yes; then
5798 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5804 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5811 G77=`test $ac_compiler_gnu = yes && echo yes`
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5822 # find the maximum length of command line arguments
5823 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5824 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5825 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 # On DJGPP, this test can blow up pretty badly due to problems in libc
5834 # (any single argument exceeding 2000 bytes causes a buffer overrun
5835 # during glob expansion). Even if it were fixed, the result of this
5836 # check would be larger than it should be.
5837 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5841 # Under GNU Hurd, this test is not required because there is
5842 # no limit to the length of command line arguments.
5843 # Libtool will interpret -1 as no limit whatsoever
5844 lt_cv_sys_max_cmd_len=-1;
5848 # On Win9x/ME, this test blows up -- it succeeds, but takes
5849 # about 5 minutes as the teststring grows exponentially.
5850 # Worse, since 9x/ME are not pre-emptively multitasking,
5851 # you end up with a "frozen" computer, even though with patience
5852 # the test eventually succeeds (with a max line length of 256k).
5853 # Instead, let's just punt: use the minimum linelength reported by
5854 # all of the supported platforms: 8192 (on NT/2K/XP).
5855 lt_cv_sys_max_cmd_len=8192;
5859 # On AmigaOS with pdksh, this test takes hours, literally.
5860 # So we just punt and use a minimum line length of 8192.
5861 lt_cv_sys_max_cmd_len=8192;
5865 # If test is not a shell built-in, we'll probably end up computing a
5866 # maximum length that is only half of the actual maximum length, but
5868 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5869 = "XX$teststring") >/dev/null 2>&1 &&
5870 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5871 lt_cv_sys_max_cmd_len=$new_result &&
5872 test $i != 17 # 1/2 MB should be enough
5875 teststring=$teststring$teststring
5878 # Add a significant safety factor because C++ compilers can tack on massive
5879 # amounts of additional arguments before passing them to the linker.
5880 # It appears as though 1/2 is a usable value.
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5887 if test -n $lt_cv_sys_max_cmd_len ; then
5888 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5889 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5891 { echo "$as_me:$LINENO: result: none" >&5
5892 echo "${ECHO_T}none" >&6; }
5898 # Check for command to grab the raw symbol name followed by C symbol from nm.
5899 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5900 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5901 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 # These are sane defaults that work on at least a few old systems.
5906 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5908 # Character class describing NM global symbol codes.
5909 symcode='[BCDEGRST]'
5911 # Regexp to match symbols that can be accessed directly from C.
5912 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5914 # Transform the above into a raw symbol and a C symbol.
5915 symxfrm='\1 \2\3 \3'
5917 # Transform an extracted symbol line into a proper C declaration
5918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5920 # Transform an extracted symbol line into symbol name and symbol address
5921 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'"
5923 # Define system-specific variables.
5928 cygwin* | mingw* | pw32*)
5929 symcode='[ABCDGISTW]'
5931 hpux*) # Its linker distinguishes data from code symbols
5932 if test "$host_cpu" = ia64; then
5933 symcode='[ABCDEGRST]'
5935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936 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'"
5939 symcode='[BCDEGRST]'
5942 symcode='[BCDEGQRST]'
5952 # Handle CRLF in mingw tool chain
5956 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5960 # If we're using GNU nm, then use its standard symbol codes.
5961 case `$NM -V 2>&1` in
5962 *GNU* | *'with BFD'*)
5963 symcode='[ABCDGIRSTW]' ;;
5966 # Try without a prefix undercore, then with it.
5967 for ac_symprfx in "" "_"; do
5969 # Write the raw and C identifiers.
5970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5972 # Check to see that the pipe works correctly.
5976 cat > conftest.$ac_ext <<EOF
5981 void nm_test_func(){}
5985 int main(){nm_test_var='a';nm_test_func();return(0);}
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; then
5993 # Now try to grab the symbols.
5995 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5996 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && test -s "$nlist"; then
6000 # Try sorting and uniquifying the output.
6001 if sort "$nlist" | uniq > "$nlist"T; then
6002 mv -f "$nlist"T "$nlist"
6007 # Make sure that we snagged all the symbols we need.
6008 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6009 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6010 cat <<EOF > conftest.$ac_ext
6016 # Now generate the symbol file.
6017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6019 cat <<EOF >> conftest.$ac_ext
6020 #if defined (__STDC__) && __STDC__
6021 # define lt_ptr_t void *
6023 # define lt_ptr_t char *
6027 /* The mapping between symbol names and symbols. */
6032 lt_preloaded_symbols[] =
6035 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6036 cat <<\EOF >> conftest.$ac_ext
6044 # Now try linking the two files.
6045 mv conftest.$ac_objext conftstm.$ac_objext
6046 lt_save_LIBS="$LIBS"
6047 lt_save_CFLAGS="$CFLAGS"
6048 LIBS="conftstm.$ac_objext"
6049 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6057 LIBS="$lt_save_LIBS"
6058 CFLAGS="$lt_save_CFLAGS"
6060 echo "cannot find nm_test_func in $nlist" >&5
6063 echo "cannot find nm_test_var in $nlist" >&5
6066 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6069 echo "$progname: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 rm -f conftest* conftst*
6074 # Do not use the global_symbol_pipe unless it works.
6075 if test "$pipe_works" = yes; then
6078 lt_cv_sys_global_symbol_pipe=
6084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6085 lt_cv_sys_global_symbol_to_cdecl=
6087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088 { echo "$as_me:$LINENO: result: failed" >&5
6089 echo "${ECHO_T}failed" >&6; }
6091 { echo "$as_me:$LINENO: result: ok" >&5
6092 echo "${ECHO_T}ok" >&6; }
6095 { echo "$as_me:$LINENO: checking for objdir" >&5
6096 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6097 if test "${lt_cv_objdir+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 rm -f .libs 2>/dev/null
6101 mkdir .libs 2>/dev/null
6102 if test -d .libs; then
6105 # MS-DOS does not allow filenames that begin with a dot.
6108 rmdir .libs 2>/dev/null
6110 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6111 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6112 objdir=$lt_cv_objdir
6120 # AIX sometimes has problems with the GCC collect2 program. For some
6121 # reason, if we set the COLLECT_NAMES environment variable, the problems
6122 # vanish in a puff of smoke.
6123 if test "X${COLLECT_NAMES+set}" != Xset; then
6125 export COLLECT_NAMES
6130 # Sed substitution that helps us do robust quoting. It backslashifies
6131 # metacharacters that are still active within double-quoted strings.
6132 Xsed='sed -e s/^X//'
6133 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6135 # Same as above, but do not quote variable references.
6136 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6138 # Sed substitution to delay expansion of an escaped shell variable in a
6139 # double_quote_subst'ed string.
6140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6142 # Sed substitution to avoid accidental globbing in evaled expressions
6143 no_glob_subst='s/\*/\\\*/g'
6149 default_ofile=libtool
6150 can_build_shared=yes
6152 # All known linkers require a `.a' archive for static linking (except M$VC,
6153 # which needs '.lib').
6155 ltmain="$ac_aux_dir/ltmain.sh"
6156 ofile="$default_ofile"
6157 with_gnu_ld="$lt_cv_prog_gnu_ld"
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}ar; ac_word=$2
6162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6164 if test "${ac_cv_prog_AR+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 if test -n "$AR"; then
6168 ac_cv_prog_AR="$AR" # Let the user override the test.
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_AR="${ac_tool_prefix}ar"
6178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 if test -n "$AR"; then
6189 { echo "$as_me:$LINENO: result: $AR" >&5
6190 echo "${ECHO_T}$AR" >&6; }
6192 { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6198 if test -z "$ac_cv_prog_AR"; then
6200 # Extract the first word of "ar", so it can be a program name with args.
6201 set dummy ar; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 if test -n "$ac_ct_AR"; then
6208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_AR="ar"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6228 if test -n "$ac_ct_AR"; then
6229 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6230 echo "${ECHO_T}$ac_ct_AR" >&6; }
6232 { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6236 if test "x$ac_ct_AR" = x; then
6239 case $cross_compiling:$ac_tool_warned in
6241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6242 whose name does not start with the host triplet. If you think this
6243 configuration is useful to you, please write to autoconf@gnu.org." >&5
6244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6245 whose name does not start with the host triplet. If you think this
6246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6247 ac_tool_warned=yes ;;
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_prog_RANLIB+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 if test -n "$RANLIB"; then
6264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 RANLIB=$ac_cv_prog_RANLIB
6284 if test -n "$RANLIB"; then
6285 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6286 echo "${ECHO_T}$RANLIB" >&6; }
6288 { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6294 if test -z "$ac_cv_prog_RANLIB"; then
6295 ac_ct_RANLIB=$RANLIB
6296 # Extract the first word of "ranlib", so it can be a program name with args.
6297 set dummy ranlib; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 if test -n "$ac_ct_RANLIB"; then
6304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_ac_ct_RANLIB="ranlib"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6324 if test -n "$ac_ct_RANLIB"; then
6325 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6326 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6332 if test "x$ac_ct_RANLIB" = x; then
6335 case $cross_compiling:$ac_tool_warned in
6337 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6338 whose name does not start with the host triplet. If you think this
6339 configuration is useful to you, please write to autoconf@gnu.org." >&5
6340 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6341 whose name does not start with the host triplet. If you think this
6342 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6343 ac_tool_warned=yes ;;
6345 RANLIB=$ac_ct_RANLIB
6348 RANLIB="$ac_cv_prog_RANLIB"
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}strip; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_STRIP+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 if test -n "$STRIP"; then
6360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 STRIP=$ac_cv_prog_STRIP
6380 if test -n "$STRIP"; then
6381 { echo "$as_me:$LINENO: result: $STRIP" >&5
6382 echo "${ECHO_T}$STRIP" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6390 if test -z "$ac_cv_prog_STRIP"; then
6392 # Extract the first word of "strip", so it can be a program name with args.
6393 set dummy strip; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 if test -n "$ac_ct_STRIP"; then
6400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_STRIP="strip"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6420 if test -n "$ac_ct_STRIP"; then
6421 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6422 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6428 if test "x$ac_ct_STRIP" = x; then
6431 case $cross_compiling:$ac_tool_warned in
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet. If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6444 STRIP="$ac_cv_prog_STRIP"
6449 old_CFLAGS="$CFLAGS"
6451 # Set sane defaults for various variables
6452 test -z "$AR" && AR=ar
6453 test -z "$AR_FLAGS" && AR_FLAGS=cru
6454 test -z "$AS" && AS=as
6455 test -z "$CC" && CC=cc
6456 test -z "$LTCC" && LTCC=$CC
6457 test -z "$DLLTOOL" && DLLTOOL=dlltool
6458 test -z "$LD" && LD=ld
6459 test -z "$LN_S" && LN_S="ln -s"
6460 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6461 test -z "$NM" && NM=nm
6462 test -z "$SED" && SED=sed
6463 test -z "$OBJDUMP" && OBJDUMP=objdump
6464 test -z "$RANLIB" && RANLIB=:
6465 test -z "$STRIP" && STRIP=:
6466 test -z "$ac_objext" && ac_objext=o
6468 # Determine commands to create old-style static archives.
6469 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6470 old_postinstall_cmds='chmod 644 $oldlib'
6471 old_postuninstall_cmds=
6473 if test -n "$RANLIB"; then
6476 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6479 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6482 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6485 # Only perform the check for file, if the check method requires it
6486 case $deplibs_check_method in
6488 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6489 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6490 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6499 lt_save_MAGIC_CMD="$MAGIC_CMD"
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502 for ac_dir in $ac_dummy; do
6504 test -z "$ac_dir" && ac_dir=.
6505 if test -f $ac_dir/${ac_tool_prefix}file; then
6506 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6507 if test -n "$file_magic_test_file"; then
6508 case $deplibs_check_method in
6510 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513 $EGREP "$file_magic_regex" > /dev/null; then
6518 *** Warning: the command libtool uses to detect shared libraries,
6519 *** $file_magic_cmd, produces output that libtool cannot recognize.
6520 *** The result is that libtool may fail to recognize shared libraries
6521 *** as such. This will affect the creation of libtool libraries that
6522 *** depend on shared libraries, but programs linked with such libtool
6523 *** libraries will work regardless of this problem. Nevertheless, you
6524 *** may want to report the problem to your system manager and/or to
6525 *** bug-libtool@gnu.org
6535 MAGIC_CMD="$lt_save_MAGIC_CMD"
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if test -n "$MAGIC_CMD"; then
6542 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6549 if test -z "$lt_cv_path_MAGIC_CMD"; then
6550 if test -n "$ac_tool_prefix"; then
6551 { echo "$as_me:$LINENO: checking for file" >&5
6552 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6561 lt_save_MAGIC_CMD="$MAGIC_CMD"
6562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6564 for ac_dir in $ac_dummy; do
6566 test -z "$ac_dir" && ac_dir=.
6567 if test -f $ac_dir/file; then
6568 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6569 if test -n "$file_magic_test_file"; then
6570 case $deplibs_check_method in
6572 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6575 $EGREP "$file_magic_regex" > /dev/null; then
6580 *** Warning: the command libtool uses to detect shared libraries,
6581 *** $file_magic_cmd, produces output that libtool cannot recognize.
6582 *** The result is that libtool may fail to recognize shared libraries
6583 *** as such. This will affect the creation of libtool libraries that
6584 *** depend on shared libraries, but programs linked with such libtool
6585 *** libraries will work regardless of this problem. Nevertheless, you
6586 *** may want to report the problem to your system manager and/or to
6587 *** bug-libtool@gnu.org
6597 MAGIC_CMD="$lt_save_MAGIC_CMD"
6602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6603 if test -n "$MAGIC_CMD"; then
6604 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6605 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6623 # Check whether --enable-libtool-lock was given.
6624 if test "${enable_libtool_lock+set}" = set; then
6625 enableval=$enable_libtool_lock;
6628 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6631 # Check whether --with-pic was given.
6632 if test "${with_pic+set}" = set; then
6633 withval=$with_pic; pic_mode="$withval"
6638 test -z "$pic_mode" && pic_mode=default
6640 # Use C for the default configuration in the libtool script
6644 ac_cpp='$CPP $CPPFLAGS'
6645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650 # Source file extension for C test sources.
6653 # Object file extension for compiled C test sources.
6657 # Code to be used in simple compile tests
6658 lt_simple_compile_test_code="int some_variable = 0;\n"
6660 # Code to be used in simple link tests
6661 lt_simple_link_test_code='int main(){return(0);}\n'
6664 # If no C compiler was specified, use CC.
6667 # Allow CC to be a program name with arguments.
6672 # Check for any special shared library compilation flags.
6675 if test "$GCC" = no; then
6678 lt_prog_cc_shlib='-belf'
6682 if test -n "$lt_prog_cc_shlib"; then
6683 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6684 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6685 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6687 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6688 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6689 lt_cv_prog_cc_can_build_shared=no
6695 # Check to make sure the static flag actually works.
6697 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6698 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6699 if test "${lt_prog_compiler_static_works+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 lt_prog_compiler_static_works=no
6703 save_LDFLAGS="$LDFLAGS"
6704 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6705 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6707 # The compiler can only warn and ignore the option if not recognized
6708 # So say no if there are warnings
6709 if test -s conftest.err; then
6710 # Append any errors to the config.log.
6711 cat conftest.err 1>&5
6713 lt_prog_compiler_static_works=yes
6717 LDFLAGS="$save_LDFLAGS"
6720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6721 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6723 if test x"$lt_prog_compiler_static_works" = xyes; then
6726 lt_prog_compiler_static=
6732 ## There is no encapsulation within the following macros, do not change
6733 ## the running order or otherwise move them around unless you know exactly
6734 ## what you are doing...
6736 lt_prog_compiler_no_builtin_flag=
6738 if test "$GCC" = yes; then
6739 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6742 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6743 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6744 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 lt_cv_prog_compiler_rtti_exceptions=no
6748 ac_outfile=conftest.$ac_objext
6749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6750 lt_compiler_flag="-fno-rtti -fno-exceptions"
6751 # Insert the option either (1) after the last *FLAGS variable, or
6752 # (2) before a word containing "conftest.", or (3) at the end.
6753 # Note that $ac_compile itself does not contain backslashes and begins
6754 # with a dollar sign (not a hyphen), so the echo should work correctly.
6755 # The option is referenced via a variable to avoid confusing sed.
6756 lt_compile=`echo "$ac_compile" | $SED \
6757 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6759 -e 's:$: $lt_compiler_flag:'`
6760 (eval echo "\"\$as_me:6760: $lt_compile\"" >&5)
6761 (eval "$lt_compile" 2>conftest.err)
6763 cat conftest.err >&5
6764 echo "$as_me:6764: \$? = $ac_status" >&5
6765 if (exit $ac_status) && test -s "$ac_outfile"; then
6766 # The compiler can only warn and ignore the option if not recognized
6767 # So say no if there are warnings
6768 if test ! -s conftest.err; then
6769 lt_cv_prog_compiler_rtti_exceptions=yes
6775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6776 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6778 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6779 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6786 lt_prog_compiler_wl=
6787 lt_prog_compiler_pic=
6788 lt_prog_compiler_static=
6790 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6791 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6793 if test "$GCC" = yes; then
6794 lt_prog_compiler_wl='-Wl,'
6795 lt_prog_compiler_static='-static'
6799 # All AIX code is PIC.
6800 if test "$host_cpu" = ia64; then
6801 # AIX 5 now supports IA64 processor
6802 lt_prog_compiler_static='-Bstatic'
6807 # FIXME: we need at least 68020 code to build shared libraries, but
6808 # adding the `-m68020' flag to GCC prevents building anything better,
6810 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6813 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6814 # PIC is the default for these OSes.
6817 mingw* | pw32* | os2*)
6818 # This hack is so that the source file can tell whether it is being
6819 # built for inclusion in a dll (and should export symbols for example).
6820 lt_prog_compiler_pic='-DDLL_EXPORT'
6823 darwin* | rhapsody*)
6824 # PIC is the default on this platform
6825 # Common symbols not allowed in MH_DYLIB files
6826 lt_prog_compiler_pic='-fno-common'
6830 # Just because we use GCC doesn't mean we suddenly get shared libraries
6831 # on systems that don't support them.
6832 lt_prog_compiler_can_build_shared=no
6837 if test -d /usr/nec; then
6838 lt_prog_compiler_pic=-Kconform_pic
6843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6850 lt_prog_compiler_pic='-fPIC'
6856 lt_prog_compiler_pic='-fPIC'
6860 # PORTME Check for flag to pass linker flags through the system compiler.
6863 lt_prog_compiler_wl='-Wl,'
6864 if test "$host_cpu" = ia64; then
6865 # AIX 5 now supports IA64 processor
6866 lt_prog_compiler_static='-Bstatic'
6868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6872 mingw* | pw32* | os2*)
6873 # This hack is so that the source file can tell whether it is being
6874 # built for inclusion in a dll (and should export symbols for example).
6875 lt_prog_compiler_pic='-DDLL_EXPORT'
6878 hpux9* | hpux10* | hpux11*)
6879 lt_prog_compiler_wl='-Wl,'
6880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6887 lt_prog_compiler_pic='+Z'
6890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6891 lt_prog_compiler_static='${wl}-a ${wl}archive'
6894 irix5* | irix6* | nonstopux*)
6895 lt_prog_compiler_wl='-Wl,'
6896 # PIC (with -KPIC) is the default.
6897 lt_prog_compiler_static='-non_shared'
6901 lt_prog_compiler_pic='-KPIC'
6902 lt_prog_compiler_static='-Bstatic'
6908 lt_prog_compiler_wl='-Wl,'
6909 lt_prog_compiler_pic='-KPIC'
6910 lt_prog_compiler_static='-static'
6913 lt_prog_compiler_wl='-Wl,'
6914 # All Alpha code is PIC.
6915 lt_prog_compiler_static='-non_shared'
6920 osf3* | osf4* | osf5*)
6921 lt_prog_compiler_wl='-Wl,'
6922 # All OSF/1 code is PIC.
6923 lt_prog_compiler_static='-non_shared'
6927 lt_prog_compiler_pic='-Kpic'
6928 lt_prog_compiler_static='-dn'
6932 lt_prog_compiler_wl='-Wl,'
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
6938 lt_prog_compiler_wl='-Qoption ld '
6939 lt_prog_compiler_pic='-PIC'
6940 lt_prog_compiler_static='-Bstatic'
6943 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_pic='-KPIC'
6946 lt_prog_compiler_static='-Bstatic'
6950 if test -d /usr/nec ;then
6951 lt_prog_compiler_pic='-Kconform_pic'
6952 lt_prog_compiler_static='-Bstatic'
6957 lt_prog_compiler_pic='-pic'
6958 lt_prog_compiler_static='-Bstatic'
6962 lt_prog_compiler_can_build_shared=no
6967 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6968 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6971 # Check to make sure the PIC flag actually works.
6973 if test -n "$lt_prog_compiler_pic"; then
6975 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6976 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6977 if test "${lt_prog_compiler_pic_works+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 lt_prog_compiler_pic_works=no
6981 ac_outfile=conftest.$ac_objext
6982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6983 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6984 # Insert the option either (1) after the last *FLAGS variable, or
6985 # (2) before a word containing "conftest.", or (3) at the end.
6986 # Note that $ac_compile itself does not contain backslashes and begins
6987 # with a dollar sign (not a hyphen), so the echo should work correctly.
6988 # The option is referenced via a variable to avoid confusing sed.
6989 lt_compile=`echo "$ac_compile" | $SED \
6990 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6992 -e 's:$: $lt_compiler_flag:'`
6993 (eval echo "\"\$as_me:6993: $lt_compile\"" >&5)
6994 (eval "$lt_compile" 2>conftest.err)
6996 cat conftest.err >&5
6997 echo "$as_me:6997: \$? = $ac_status" >&5
6998 if (exit $ac_status) && test -s "$ac_outfile"; then
6999 # The compiler can only warn and ignore the option if not recognized
7000 # So say no if there are warnings
7001 if test ! -s conftest.err; then
7002 lt_prog_compiler_pic_works=yes
7008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7009 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7011 if test x"$lt_prog_compiler_pic_works" = xyes; then
7012 case $lt_prog_compiler_pic in
7014 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7017 lt_prog_compiler_pic=
7018 lt_prog_compiler_can_build_shared=no
7023 # For platforms which do not support PIC, -DPIC is meaningless:
7025 lt_prog_compiler_pic=
7028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7032 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7034 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 lt_cv_prog_compiler_c_o=no
7038 $rm -r conftest 2>/dev/null
7042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7044 lt_compiler_flag="-o out/conftest2.$ac_objext"
7045 # Insert the option either (1) after the last *FLAGS variable, or
7046 # (2) before a word containing "conftest.", or (3) at the end.
7047 # Note that $ac_compile itself does not contain backslashes and begins
7048 # with a dollar sign (not a hyphen), so the echo should work correctly.
7049 lt_compile=`echo "$ac_compile" | $SED \
7050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7052 -e 's:$: $lt_compiler_flag:'`
7053 (eval echo "\"\$as_me:7053: $lt_compile\"" >&5)
7054 (eval "$lt_compile" 2>out/conftest.err)
7056 cat out/conftest.err >&5
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7060 # The compiler can only warn and ignore the option if not recognized
7061 # So say no if there are warnings
7062 if test ! -s out/conftest.err; then
7063 lt_cv_prog_compiler_c_o=yes
7068 # SGI C++ compiler will create directory out/ii_files/ for
7069 # template instantiation
7070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7071 $rm out/* && rmdir out
7077 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7081 hard_links="nottested"
7082 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7083 # do not overwrite the value of need_locks provided by the user
7084 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7090 ln conftest.a conftest.b 2>&5 || hard_links=no
7091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7092 { echo "$as_me:$LINENO: result: $hard_links" >&5
7093 echo "${ECHO_T}$hard_links" >&6; }
7094 if test "$hard_links" = no; then
7095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7103 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7107 allow_undefined_flag=
7108 enable_shared_with_static_runtimes=no
7110 archive_expsym_cmds=
7111 old_archive_From_new_cmds=
7112 old_archive_from_expsyms_cmds=
7113 export_dynamic_flag_spec=
7114 whole_archive_flag_spec=
7115 thread_safe_flag_spec=
7116 hardcode_libdir_flag_spec=
7117 hardcode_libdir_flag_spec_ld=
7118 hardcode_libdir_separator=
7121 hardcode_shlibpath_var=unsupported
7122 link_all_deplibs=unknown
7123 hardcode_automatic=no
7126 always_export_symbols=no
7127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7128 # include_expsyms should be a list of space-separated symbols to be *always*
7129 # included in the symbol list
7131 # exclude_expsyms can be an extended regexp of symbols to exclude
7132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7134 # as well as any symbol that contains `d'.
7135 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7137 # platforms (ab)use it in PIC code, but their linkers get confused if
7138 # the symbol is explicitly referenced. Since portable code cannot
7139 # rely on this symbol name, it's probably fine to never include it in
7140 # preloaded symbol tables.
7141 extract_expsyms_cmds=
7144 cygwin* | mingw* | pw32*)
7145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7146 # When not using gcc, we currently assume that we are using
7147 # Microsoft Visual C++.
7148 if test "$GCC" != yes; then
7158 if test "$with_gnu_ld" = yes; then
7159 # If archive_cmds runs LD, not CC, wlarc should be empty
7162 # See if GNU ld supports shared libraries.
7164 aix3* | aix4* | aix5*)
7165 # On AIX/PPC, the GNU linker is very broken
7166 if test "$host_cpu" != ia64; then
7170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7171 *** to be unable to reliably create shared libraries on AIX.
7172 *** Therefore, libtool is disabling shared libraries support. If you
7173 *** really care for shared libraries, you may want to modify your PATH
7174 *** so that a non-GNU linker is found, and then restart.
7181 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)'
7182 hardcode_libdir_flag_spec='-L$libdir'
7183 hardcode_minus_L=yes
7185 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7186 # that the semantics of dynamic libraries on AmigaOS, at least up
7187 # to version 4, is to share data among multiple programs linked
7188 # with the same dynamic library. Since this doesn't match the
7189 # behavior of shared libraries on other platforms, we can't use
7195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7196 allow_undefined_flag=unsupported
7197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7198 # support --undefined. This deserves some investigation. FIXME
7199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7205 cygwin* | mingw* | pw32*)
7206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7207 # as there is no search path for DLLs.
7208 hardcode_libdir_flag_spec='-L$libdir'
7209 allow_undefined_flag=unsupported
7210 always_export_symbols=no
7211 enable_shared_with_static_runtimes=yes
7212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7214 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7216 # If the export-symbols file already is a .def file (1st line
7217 # is EXPORTS), use it as is; otherwise, prepend...
7218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7219 cp $export_symbols $output_objdir/$soname.def;
7221 echo EXPORTS > $output_objdir/$soname.def;
7222 cat $export_symbols >> $output_objdir/$soname.def;
7224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7232 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7241 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7246 *** create shared libraries on Solaris systems. Therefore, libtool
7247 *** is disabling shared libraries support. We urge you to upgrade GNU
7248 *** binutils to release 2.9.1 or newer. Another option is to modify
7249 *** your PATH or compiler configuration so that the native linker is
7250 *** used, and then restart.
7253 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7262 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7270 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7271 archive_cmds="$tmp_archive_cmds"
7272 supports_anon_versioning=no
7273 case `$LD -v 2>/dev/null` in
7274 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7275 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7276 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7277 *\ 2.11.*) ;; # other 2.11 versions
7278 *) supports_anon_versioning=yes ;;
7280 if test $supports_anon_versioning = yes; then
7281 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7283 $echo "local: *; };" >> $output_objdir/$libname.ver~
7284 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7286 archive_expsym_cmds="$tmp_archive_cmds"
7294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7303 if test "$ld_shlibs" = yes; then
7304 runpath_var=LD_RUN_PATH
7305 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7306 export_dynamic_flag_spec='${wl}--export-dynamic'
7307 # ancient GNU ld didn't support --whole-archive et. al.
7308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7311 whole_archive_flag_spec=
7315 # PORTME fill in a description of your system's linker (not GNU ld)
7318 allow_undefined_flag=unsupported
7319 always_export_symbols=yes
7320 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'
7321 # Note: this linker hardcodes the directories in LIBPATH if there
7322 # are no directories specified by -L.
7323 hardcode_minus_L=yes
7324 if test "$GCC" = yes && test -z "$link_static_flag"; then
7325 # Neither direct hardcoding nor static linking is supported with a
7327 hardcode_direct=unsupported
7332 if test "$host_cpu" = ia64; then
7333 # On IA64, the linker does run time linking by default, so we don't
7334 # have to do anything special.
7335 aix_use_runtimelinking=no
7336 exp_sym_flag='-Bexport'
7339 # If we're using GNU nm, then we don't want the "-C" option.
7340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7342 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'
7344 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'
7346 aix_use_runtimelinking=no
7348 # Test if we are trying to use run time linking or normal
7349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7350 # need to do runtime linking.
7351 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7352 for ld_flag in $LDFLAGS; do
7353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7354 aix_use_runtimelinking=yes
7360 exp_sym_flag='-bexport'
7361 no_entry_flag='-bnoentry'
7364 # When large executables or shared objects are built, AIX ld can
7365 # have problems creating the table of contents. If linking a library
7366 # or program results in "error TOC overflow" add -mminimal-toc to
7367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7372 hardcode_libdir_separator=':'
7373 link_all_deplibs=yes
7375 if test "$GCC" = yes; then
7376 case $host_os in aix4.012|aix4.012.*)
7377 # We only want to do this on AIX 4.2 and lower, the check
7378 # below for broken collect2 doesn't work under 4.3+
7379 collect2name=`${CC} -print-prog-name=collect2`
7380 if test -f "$collect2name" && \
7381 strings "$collect2name" | grep resolve_lib_name >/dev/null
7383 # We have reworked collect2
7386 # We have old collect2
7387 hardcode_direct=unsupported
7388 # It fails to find uninstalled libraries when the uninstalled
7389 # path is not listed in the libpath. Setting hardcode_minus_L
7390 # to unsupported forces relinking
7391 hardcode_minus_L=yes
7392 hardcode_libdir_flag_spec='-L$libdir'
7393 hardcode_libdir_separator=
7396 shared_flag='-shared'
7399 if test "$host_cpu" = ia64; then
7400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7401 # chokes on -Wl,-G. The following line is correct:
7404 if test "$aix_use_runtimelinking" = yes; then
7405 shared_flag='${wl}-G'
7407 shared_flag='${wl}-bM:SRE'
7412 # It seems that -bexpall does not export symbols beginning with
7413 # underscore (_), so it is better to generate a list of symbols to export.
7414 always_export_symbols=yes
7415 if test "$aix_use_runtimelinking" = yes; then
7416 # Warning - without using the other runtime loading flags (-brtl),
7417 # -berok will link without error, but may produce a broken library.
7418 allow_undefined_flag='-berok'
7419 # Determine the default libpath from the value encoded in an empty executable.
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (ac_try="$ac_link"
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_link") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest$ac_exeext &&
7452 $as_test_x conftest$ac_exeext; then
7454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7456 # Check for a 64-bit object if we didn't find anything.
7457 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; }
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7467 conftest$ac_exeext conftest.$ac_ext
7468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7471 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"
7473 if test "$host_cpu" = ia64; then
7474 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7475 allow_undefined_flag="-z nodefs"
7476 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"
7478 # Determine the default libpath from the value encoded in an empty executable.
7479 cat >conftest.$ac_ext <<_ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (ac_try="$ac_link"
7497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_link") 2>conftest.er1
7503 grep -v '^ *+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest$ac_exeext &&
7511 $as_test_x conftest$ac_exeext; then
7513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7515 # Check for a 64-bit object if we didn't find anything.
7516 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; }
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7526 conftest$ac_exeext conftest.$ac_ext
7527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7530 # Warning - without using the other run time loading flags,
7531 # -berok will link without error, but may produce a broken library.
7532 no_undefined_flag=' ${wl}-bernotok'
7533 allow_undefined_flag=' ${wl}-berok'
7534 # -bexpall does not export symbols beginning with underscore (_)
7535 always_export_symbols=yes
7536 # Exported symbols can be pulled into shared objects from archives
7537 whole_archive_flag_spec=' '
7538 archive_cmds_need_lc=yes
7539 # This is similar to how AIX traditionally builds it's shared libraries.
7540 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'
7546 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)'
7547 hardcode_libdir_flag_spec='-L$libdir'
7548 hardcode_minus_L=yes
7549 # see comment about different semantics on the GNU ld section
7554 export_dynamic_flag_spec=-rdynamic
7557 cygwin* | mingw* | pw32*)
7558 # When not using gcc, we currently assume that we are using
7559 # Microsoft Visual C++.
7560 # hardcode_libdir_flag_spec is actually meaningless, as there is
7561 # no search path for DLLs.
7562 hardcode_libdir_flag_spec=' '
7563 allow_undefined_flag=unsupported
7564 # Tell ltmain to make .lib files, not .a files.
7566 # Tell ltmain to make .dll files, not .so files.
7568 # FIXME: Setting linknames here is a bad hack.
7569 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7570 # The linker will automatically build a .lib file if we build a DLL.
7571 old_archive_From_new_cmds='true'
7572 # FIXME: Should let the user specify the lib program.
7573 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7574 fix_srcfile_path='`cygpath -w "$srcfile"`'
7575 enable_shared_with_static_runtimes=yes
7578 darwin* | rhapsody*)
7579 if test "$GXX" = yes ; then
7580 archive_cmds_need_lc=no
7582 rhapsody* | darwin1.[012])
7583 allow_undefined_flag='-undefined suppress'
7586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7587 allow_undefined_flag='-flat_namespace -undefined suppress'
7589 case ${MACOSX_DEPLOYMENT_TARGET} in
7591 allow_undefined_flag='-flat_namespace -undefined suppress'
7594 allow_undefined_flag='-undefined dynamic_lookup'
7600 lt_int_apple_cc_single_mod=no
7601 output_verbose_link_cmd='echo'
7602 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7603 lt_int_apple_cc_single_mod=yes
7605 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7606 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7608 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'
7610 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7611 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7612 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7613 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}'
7615 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}'
7617 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}'
7619 hardcode_automatic=yes
7620 hardcode_shlibpath_var=unsupported
7621 whole_archive_flag_spec='-all_load $convenience'
7622 link_all_deplibs=yes
7629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630 hardcode_libdir_flag_spec='-L$libdir'
7631 hardcode_shlibpath_var=no
7638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7639 # support. Future versions do this automatically, but an explicit c++rt0.o
7640 # does not break anything, and helps significantly (at the cost of a little
7643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7644 hardcode_libdir_flag_spec='-R$libdir'
7646 hardcode_shlibpath_var=no
7649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7653 hardcode_minus_L=yes
7654 hardcode_shlibpath_var=no
7657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7658 freebsd* | kfreebsd*-gnu)
7659 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7660 hardcode_libdir_flag_spec='-R$libdir'
7662 hardcode_shlibpath_var=no
7666 if test "$GCC" = yes; then
7667 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'
7669 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'
7671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7672 hardcode_libdir_separator=:
7675 # hardcode_minus_L: Not really in the search PATH,
7676 # but as the default location of the library.
7677 hardcode_minus_L=yes
7678 export_dynamic_flag_spec='${wl}-E'
7682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7694 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7701 if test "$with_gnu_ld" = no; then
7704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7705 hardcode_libdir_flag_spec_ld='+b $libdir'
7706 hardcode_libdir_separator=:
7708 hardcode_shlibpath_var=no
7711 hardcode_libdir_flag_spec='-L$libdir'
7713 hardcode_shlibpath_var=no
7715 # hardcode_minus_L: Not really in the search PATH,
7716 # but as the default location of the library.
7717 hardcode_minus_L=yes
7720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7721 hardcode_libdir_separator=:
7723 export_dynamic_flag_spec='${wl}-E'
7725 # hardcode_minus_L: Not really in the search PATH,
7726 # but as the default location of the library.
7727 hardcode_minus_L=yes
7733 irix5* | irix6* | nonstopux*)
7734 if test "$GCC" = yes; then
7735 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'
7737 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'
7738 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7741 hardcode_libdir_separator=:
7742 link_all_deplibs=yes
7746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7751 hardcode_libdir_flag_spec='-R$libdir'
7753 hardcode_shlibpath_var=no
7757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7760 hardcode_libdir_separator=:
7761 hardcode_shlibpath_var=no
7766 hardcode_shlibpath_var=no
7767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7770 export_dynamic_flag_spec='${wl}-E'
7773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_libdir_flag_spec='-R$libdir'
7778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7786 hardcode_libdir_flag_spec='-L$libdir'
7787 hardcode_minus_L=yes
7788 allow_undefined_flag=unsupported
7789 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'
7790 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7794 if test "$GCC" = yes; then
7795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7796 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'
7798 allow_undefined_flag=' -expect_unresolved \*'
7799 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'
7801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7802 hardcode_libdir_separator=:
7805 osf4* | osf5*) # as osf3* with the addition of -msym flag
7806 if test "$GCC" = yes; then
7807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7808 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'
7809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7811 allow_undefined_flag=' -expect_unresolved \*'
7812 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'
7813 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7814 $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'
7816 # Both c and cxx compiler support -rpath directly
7817 hardcode_libdir_flag_spec='-rpath $libdir'
7819 hardcode_libdir_separator=:
7823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7824 hardcode_shlibpath_var=no
7825 export_dynamic_flag_spec='${wl}-Bexport'
7826 runpath_var=LD_RUN_PATH
7827 hardcode_runpath_var=yes
7831 no_undefined_flag=' -z text'
7832 if test "$GCC" = yes; then
7833 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7835 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7837 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7838 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7841 hardcode_libdir_flag_spec='-R$libdir'
7842 hardcode_shlibpath_var=no
7844 solaris2.[0-5] | solaris2.[0-5].*) ;;
7845 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7848 link_all_deplibs=yes
7852 if test "x$host_vendor" = xsequent; then
7853 # Use $CC to link under sequent, because it throws in some extra .o
7854 # files that make .init and .fini sections work.
7855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7859 hardcode_libdir_flag_spec='-L$libdir'
7861 hardcode_minus_L=yes
7862 hardcode_shlibpath_var=no
7866 case $host_vendor in
7868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7869 hardcode_direct=yes # is this really true???
7872 ## LD is ld it makes a PLAMLIB
7873 ## CC just makes a GrossModule.
7874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7875 reload_cmds='$CC -r -o $output$reload_objs'
7879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7883 runpath_var='LD_RUN_PATH'
7884 hardcode_shlibpath_var=no
7888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7889 hardcode_shlibpath_var=no
7890 export_dynamic_flag_spec='-Bexport'
7894 if test -d /usr/nec; then
7895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7896 hardcode_shlibpath_var=no
7897 runpath_var=LD_RUN_PATH
7898 hardcode_runpath_var=yes
7904 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7907 hardcode_shlibpath_var=no
7908 hardcode_runpath_var=yes
7909 runpath_var=LD_RUN_PATH
7912 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7913 no_undefined_flag='${wl}-z ${wl}text'
7914 if test "$GCC" = yes; then
7915 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7917 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7919 runpath_var='LD_RUN_PATH'
7920 hardcode_shlibpath_var=no
7924 no_undefined_flag=' -z text'
7925 # $CC -shared without GNU ld will not create a library from C++
7926 # object files and a static libstdc++, better avoid it by now
7927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7930 hardcode_libdir_flag_spec=
7931 hardcode_shlibpath_var=no
7932 runpath_var='LD_RUN_PATH'
7936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937 hardcode_libdir_flag_spec='-L$libdir'
7938 hardcode_shlibpath_var=no
7947 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7948 echo "${ECHO_T}$ld_shlibs" >&6; }
7949 test "$ld_shlibs" = no && can_build_shared=no
7951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7952 if test "$GCC" = yes; then
7953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7957 # Do we need to explicitly link libc?
7959 case "x$archive_cmds_need_lc" in
7961 # Assume -lc should be added
7962 archive_cmds_need_lc=yes
7964 if test "$enable_shared" = yes && test "$GCC" = yes; then
7965 case $archive_cmds in
7967 # FIXME: we may have to deal with multi-command sequences.
7970 # Test whether the compiler implicitly links with -lc since on some
7971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7972 # to ld, don't add -lc before -lgcc.
7973 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } 2>conftest.err; then
7985 libobjs=conftest.$ac_objext
7987 wl=$lt_prog_compiler_wl
7993 lt_save_allow_undefined_flag=$allow_undefined_flag
7994 allow_undefined_flag=
7995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7996 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }
8001 archive_cmds_need_lc=no
8003 archive_cmds_need_lc=yes
8005 allow_undefined_flag=$lt_save_allow_undefined_flag
8007 cat conftest.err 1>&5
8010 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8011 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8018 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8021 libname_spec='lib$name'
8029 shlibpath_overrides_runpath=unknown
8031 dynamic_linker="$host_os ld.so"
8032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8033 if test "$GCC" = yes; then
8034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8036 # if the path contains ";" then we assume it to be the separator
8037 # otherwise default to the standard path separator (i.e. ":") - it is
8038 # assumed that no part of a normal pathname contains ";" but that should
8039 # okay in the real world where ";" in dirpaths is itself problematic.
8040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8047 need_lib_prefix=unknown
8048 hardcode_into_libs=no
8050 # when you set need_version to no, make sure it does not cause -set_version
8051 # flags to be left without arguments
8052 need_version=unknown
8057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8058 shlibpath_var=LIBPATH
8060 # AIX 3 has no versioning support, so we append a major version to the name.
8061 soname_spec='${libname}${release}${shared_ext}$major'
8068 hardcode_into_libs=yes
8069 if test "$host_cpu" = ia64; then
8070 # AIX 5 supports IA64
8071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8072 shlibpath_var=LD_LIBRARY_PATH
8074 # With GCC up to 2.95.x, collect2 would create an import file
8075 # for dependence libraries. The import file would start with
8076 # the line `#! .'. This would cause the generated library to
8077 # depend on `.', always an invalid library. This was fixed in
8078 # development snapshots of GCC prior to 3.0.
8080 aix4 | aix4.[01] | aix4.[01].*)
8081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8091 # soname into executable. Probably we can add versioning support to
8092 # collect2, so additional links can be useful in future.
8093 if test "$aix_use_runtimelinking" = yes; then
8094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8095 # instead of lib<name>.a to let people know that these are not
8096 # typical AIX shared libraries.
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099 # We preserve .a as extension for shared libraries through AIX4.2
8100 # and later when we are not doing run time linking.
8101 library_names_spec='${libname}${release}.a $libname.a'
8102 soname_spec='${libname}${release}${shared_ext}$major'
8104 shlibpath_var=LIBPATH
8109 library_names_spec='$libname.ixlibrary $libname.a'
8110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8111 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'
8115 library_names_spec='${libname}${shared_ext}'
8116 dynamic_linker="$host_os ld.so"
8117 shlibpath_var=LIBRARY_PATH
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124 soname_spec='${libname}${release}${shared_ext}$major'
8125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8126 shlibpath_var=LD_LIBRARY_PATH
8127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8129 # the default ld.so.conf also contains /usr/contrib/lib and
8130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8131 # libtool to hard-code these into programs
8134 cygwin* | mingw* | pw32*)
8135 version_type=windows
8140 case $GCC,$host_os in
8141 yes,cygwin* | yes,mingw* | yes,pw32*)
8142 library_names_spec='$libname.dll.a'
8143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8144 postinstall_cmds='base_file=`basename \${file}`~
8145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8146 dldir=$destdir/`dirname \$dlpath`~
8147 test -d \$dldir || mkdir -p \$dldir~
8148 $install_prog $dir/$dlname \$dldir/$dlname'
8149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8150 dlpath=$dir/\$dldll~
8152 shlibpath_overrides_runpath=yes
8156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8158 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8161 # MinGW DLLs use traditional 'lib' prefix
8162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8165 # It is most probably a Windows format PATH printed by
8166 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8167 # path with ; separators, and with drive letters. We can handle the
8168 # drive letters (cygwin fileutils understands them), so leave them,
8169 # especially as we might pass files found there to a mingw objdump,
8170 # which wouldn't understand a cygwinified path. Ahh.
8171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8177 # pw32 DLLs use 'pw' prefix rather than 'lib'
8178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8187 dynamic_linker='Win32 ld.exe'
8188 # FIXME: first we should search . and the directory the executable is in
8192 darwin* | rhapsody*)
8193 dynamic_linker="$host_os dyld"
8197 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8198 soname_spec='${libname}${release}${major}$shared_ext'
8199 shlibpath_overrides_runpath=yes
8200 shlibpath_var=DYLD_LIBRARY_PATH
8201 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8202 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8203 if test "$GCC" = yes; then
8204 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"`
8206 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8216 soname_spec='${libname}${release}${shared_ext}$major'
8217 shlibpath_var=LD_LIBRARY_PATH
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 shlibpath_var=LD_LIBRARY_PATH
8231 shlibpath_overrides_runpath=no
8232 hardcode_into_libs=yes
8233 dynamic_linker='GNU ld.so'
8237 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8238 version_type=freebsd-$objformat
8239 case $version_type in
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8250 shlibpath_var=LD_LIBRARY_PATH
8253 shlibpath_overrides_runpath=yes
8255 freebsd3.01* | freebsdelf3.01*)
8256 shlibpath_overrides_runpath=yes
8257 hardcode_into_libs=yes
8260 shlibpath_overrides_runpath=no
8261 hardcode_into_libs=yes
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8271 soname_spec='${libname}${release}${shared_ext}$major'
8272 shlibpath_var=LD_LIBRARY_PATH
8273 hardcode_into_libs=yes
8276 hpux9* | hpux10* | hpux11*)
8277 # Give a soname corresponding to the major version so that dld.sl refuses to
8278 # link against other versions.
8285 hardcode_into_libs=yes
8286 dynamic_linker="$host_os dld.so"
8287 shlibpath_var=LD_LIBRARY_PATH
8288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 if test "X$HPUX_IA64_MODE" = X32; then
8292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8294 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300 hardcode_into_libs=yes
8301 dynamic_linker="$host_os dld.sl"
8302 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
8306 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8311 dynamic_linker="$host_os dld.sl"
8312 shlibpath_var=SHLIB_PATH
8313 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8315 soname_spec='${libname}${release}${shared_ext}$major'
8318 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8319 postinstall_cmds='chmod 555 $lib'
8322 irix5* | irix6* | nonstopux*)
8324 nonstopux*) version_type=nonstopux ;;
8326 if test "$lt_cv_prog_gnu_ld" = yes; then
8334 soname_spec='${libname}${release}${shared_ext}$major'
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8337 irix5* | nonstopux*)
8341 case $LD in # libtool.m4 will add one of these switches to LD
8342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8343 libsuff= shlibsuff= libmagic=32-bit;;
8344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8345 libsuff=32 shlibsuff=N32 libmagic=N32;;
8346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8348 *) libsuff= shlibsuff= libmagic=never-match;;
8352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8353 shlibpath_overrides_runpath=no
8354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8356 hardcode_into_libs=yes
8359 # No shared lib support for Linux oldld, aout, or coff.
8360 linux*oldld* | linux*aout* | linux*coff*)
8364 # This must be Linux ELF.
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8372 shlibpath_var=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath=no
8374 # This implies no fast_install, which is unacceptable.
8375 # Some rework will be needed to allow for fast_install
8376 # before this can be enabled.
8377 hardcode_into_libs=yes
8379 # find out which ABI we are using
8382 x86_64*|s390x*|powerpc64*)
8383 echo '#line 8383 "configure"' > conftest.$ac_ext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; then
8389 case `/usr/bin/file conftest.$ac_objext` in
8392 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8400 # Append ld.so.conf contents to the search path
8401 if test -f /etc/ld.so.conf; then
8402 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8403 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8406 # We used to test for /lib/ld.so.1 and disable shared libraries on
8407 # powerpc, because MkLinux only supported shared libraries with the
8408 # GNU dynamic linker. Since this was broken with cross compilers,
8409 # most powerpc-linux boxes support dynamic linking these days and
8410 # people can always --disable-shared, the test was removed, and we
8411 # assume the GNU/Linux dynamic linker is in use.
8412 dynamic_linker='GNU/Linux ld.so'
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8420 soname_spec='${libname}${release}${shared_ext}$major'
8421 shlibpath_var=LD_LIBRARY_PATH
8422 shlibpath_overrides_runpath=no
8423 hardcode_into_libs=yes
8424 dynamic_linker='GNU ld.so'
8431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8434 dynamic_linker='NetBSD (a.out) ld.so'
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8437 soname_spec='${libname}${release}${shared_ext}$major'
8438 dynamic_linker='NetBSD ld.elf_so'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 shlibpath_overrides_runpath=yes
8442 hardcode_into_libs=yes
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 shlibpath_var=LD_LIBRARY_PATH
8449 shlibpath_overrides_runpath=yes
8456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8457 soname_spec='${libname}${release}${shared_ext}$major'
8458 shlibpath_var=LD_LIBRARY_PATH
8459 shlibpath_overrides_runpath=yes
8466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8468 shlibpath_var=LD_LIBRARY_PATH
8469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8471 openbsd2.[89] | openbsd2.[89].*)
8472 shlibpath_overrides_runpath=no
8475 shlibpath_overrides_runpath=yes
8479 shlibpath_overrides_runpath=yes
8484 libname_spec='$name'
8487 library_names_spec='$libname${shared_ext} $libname.a'
8488 dynamic_linker='OS/2 ld.exe'
8489 shlibpath_var=LIBPATH
8492 osf3* | osf4* | osf5*)
8496 soname_spec='${libname}${release}${shared_ext}$major'
8497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8498 shlibpath_var=LD_LIBRARY_PATH
8499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8505 soname_spec='${libname}${release}${shared_ext}$major'
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507 shlibpath_var=LD_LIBRARY_PATH
8514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8515 soname_spec='${libname}${release}${shared_ext}$major'
8516 shlibpath_var=LD_LIBRARY_PATH
8517 shlibpath_overrides_runpath=yes
8518 hardcode_into_libs=yes
8519 # ldd complains unless libraries are executable
8520 postinstall_cmds='chmod +x $lib'
8525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8527 shlibpath_var=LD_LIBRARY_PATH
8528 shlibpath_overrides_runpath=yes
8529 if test "$with_gnu_ld" = yes; then
8535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8538 soname_spec='${libname}${release}${shared_ext}$major'
8539 shlibpath_var=LD_LIBRARY_PATH
8540 case $host_vendor in
8542 shlibpath_overrides_runpath=no
8544 export_dynamic_flag_spec='${wl}-Blargedynsym'
8545 runpath_var=LD_RUN_PATH
8553 shlibpath_overrides_runpath=no
8554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8560 if test -d /usr/nec ;then
8562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8563 soname_spec='$libname${shared_ext}.$major'
8564 shlibpath_var=LD_LIBRARY_PATH
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 shlibpath_var=LD_LIBRARY_PATH
8579 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8580 echo "${ECHO_T}$dynamic_linker" >&6; }
8581 test "$dynamic_linker" = no && can_build_shared=no
8583 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8584 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8586 if test -n "$hardcode_libdir_flag_spec" || \
8587 test -n "$runpath_var " || \
8588 test "X$hardcode_automatic"="Xyes" ; then
8590 # We can hardcode non-existant directories.
8591 if test "$hardcode_direct" != no &&
8592 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8593 # have to relink, otherwise we might link with an installed library
8594 # when we should be linking with a yet-to-be-installed one
8595 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8596 test "$hardcode_minus_L" != no; then
8597 # Linking always hardcodes the temporary library directory.
8598 hardcode_action=relink
8600 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8601 hardcode_action=immediate
8604 # We cannot hardcode anything, or else we can only hardcode existing
8606 hardcode_action=unsupported
8608 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8609 echo "${ECHO_T}$hardcode_action" >&6; }
8611 if test "$hardcode_action" = relink; then
8612 # Fast installation is not supported
8613 enable_fast_install=no
8614 elif test "$shlibpath_overrides_runpath" = yes ||
8615 test "$enable_shared" = no; then
8616 # Fast installation is not necessary
8617 enable_fast_install=needless
8622 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8623 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8624 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8625 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8626 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8627 { echo "$as_me:$LINENO: result: yes" >&5
8628 echo "${ECHO_T}yes" >&6; }
8630 # FIXME - insert some real tests, host_os isn't really good enough
8633 if test -n "$STRIP" ; then
8634 striplib="$STRIP -x"
8635 { echo "$as_me:$LINENO: result: yes" >&5
8636 echo "${ECHO_T}yes" >&6; }
8638 { echo "$as_me:$LINENO: result: no" >&5
8639 echo "${ECHO_T}no" >&6; }
8643 { echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6; }
8649 if test "x$enable_dlopen" != xyes; then
8650 enable_dlopen=unknown
8651 enable_dlopen_self=unknown
8652 enable_dlopen_self_static=unknown
8659 lt_cv_dlopen="load_add_on"
8661 lt_cv_dlopen_self=yes
8665 lt_cv_dlopen="LoadLibrary"
8670 lt_cv_dlopen="dlopen"
8675 # if libdl is installed we need to link against it
8676 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8677 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_check_lib_save_LIBS=$LIBS
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8690 /* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (ac_try="$ac_link"
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_link") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest$ac_exeext &&
8722 $as_test_x conftest$ac_exeext; then
8723 ac_cv_lib_dl_dlopen=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_lib_dl_dlopen=no
8731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8732 conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_lib_save_LIBS
8735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8737 if test $ac_cv_lib_dl_dlopen = yes; then
8738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8743 lt_cv_dlopen_self=yes
8750 { echo "$as_me:$LINENO: checking for shl_load" >&5
8751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8752 if test "${ac_cv_func_shl_load+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8763 #define shl_load innocuous_shl_load
8765 /* System header to define __stub macros and hopefully few prototypes,
8766 which can conflict with char shl_load (); below.
8767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 <limits.h> exists even on freestanding compilers. */
8771 # include <limits.h>
8773 # include <assert.h>
8778 /* Override any GCC internal prototype to avoid an error.
8779 Use char because int might match the return type of a GCC
8780 builtin and then its argument prototype would still apply. */
8785 /* The GNU C library defines this for functions which it implements
8786 to always fail with ENOSYS. Some functions are actually named
8787 something starting with __ and the normal name is an alias. */
8788 #if defined __stub_shl_load || defined __stub___shl_load
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (ac_try="$ac_link"
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_link") 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_c_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest$ac_exeext &&
8817 $as_test_x conftest$ac_exeext; then
8818 ac_cv_func_shl_load=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_cv_func_shl_load=no
8826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8827 conftest$ac_exeext conftest.$ac_ext
8829 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8830 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8831 if test $ac_cv_func_shl_load = yes; then
8832 lt_cv_dlopen="shl_load"
8834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 ac_check_lib_save_LIBS=$LIBS
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8848 /* Override any GCC internal prototype to avoid an error.
8849 Use char because int might match the return type of a GCC
8850 builtin and then its argument prototype would still apply. */
8863 rm -f conftest.$ac_objext conftest$ac_exeext
8864 if { (ac_try="$ac_link"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_link") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest$ac_exeext &&
8880 $as_test_x conftest$ac_exeext; then
8881 ac_cv_lib_dld_shl_load=yes
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_lib_dld_shl_load=no
8889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8890 conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8894 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8895 if test $ac_cv_lib_dld_shl_load = yes; then
8896 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8898 { echo "$as_me:$LINENO: checking for dlopen" >&5
8899 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8900 if test "${ac_cv_func_dlopen+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8911 #define dlopen innocuous_dlopen
8913 /* System header to define __stub macros and hopefully few prototypes,
8914 which can conflict with char dlopen (); below.
8915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8916 <limits.h> exists even on freestanding compilers. */
8919 # include <limits.h>
8921 # include <assert.h>
8926 /* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
8933 /* The GNU C library defines this for functions which it implements
8934 to always fail with ENOSYS. Some functions are actually named
8935 something starting with __ and the normal name is an alias. */
8936 #if defined __stub_dlopen || defined __stub___dlopen
8948 rm -f conftest.$ac_objext conftest$ac_exeext
8949 if { (ac_try="$ac_link"
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_link") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest$ac_exeext &&
8965 $as_test_x conftest$ac_exeext; then
8966 ac_cv_func_dlopen=yes
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8971 ac_cv_func_dlopen=no
8974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8975 conftest$ac_exeext conftest.$ac_ext
8977 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8978 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8979 if test $ac_cv_func_dlopen = yes; then
8980 lt_cv_dlopen="dlopen"
8982 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 ac_check_lib_save_LIBS=$LIBS
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_link") 2>conftest.er1
9020 grep -v '^ *+' conftest.er1 >conftest.err
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } && {
9025 test -z "$ac_c_werror_flag" ||
9026 test ! -s conftest.err
9027 } && test -s conftest$ac_exeext &&
9028 $as_test_x conftest$ac_exeext; then
9029 ac_cv_lib_dl_dlopen=yes
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9034 ac_cv_lib_dl_dlopen=no
9037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9038 conftest$ac_exeext conftest.$ac_ext
9039 LIBS=$ac_check_lib_save_LIBS
9041 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9043 if test $ac_cv_lib_dl_dlopen = yes; then
9044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_check_lib_save_LIBS=$LIBS
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9060 /* Override any GCC internal prototype to avoid an error.
9061 Use char because int might match the return type of a GCC
9062 builtin and then its argument prototype would still apply. */
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_link") 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } && {
9089 test -z "$ac_c_werror_flag" ||
9090 test ! -s conftest.err
9091 } && test -s conftest$ac_exeext &&
9092 $as_test_x conftest$ac_exeext; then
9093 ac_cv_lib_svld_dlopen=yes
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_cv_lib_svld_dlopen=no
9101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9102 conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9105 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9106 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9107 if test $ac_cv_lib_svld_dlopen = yes; then
9108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9110 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9111 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9112 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_check_lib_save_LIBS=$LIBS
9117 cat >conftest.$ac_ext <<_ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9124 /* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (ac_try="$ac_link"
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_link") 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } && {
9153 test -z "$ac_c_werror_flag" ||
9154 test ! -s conftest.err
9155 } && test -s conftest$ac_exeext &&
9156 $as_test_x conftest$ac_exeext; then
9157 ac_cv_lib_dld_dld_link=yes
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_cv_lib_dld_dld_link=no
9165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9166 conftest$ac_exeext conftest.$ac_ext
9167 LIBS=$ac_check_lib_save_LIBS
9169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9171 if test $ac_cv_lib_dld_dld_link = yes; then
9172 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9193 if test "x$lt_cv_dlopen" != xno; then
9199 case $lt_cv_dlopen in
9201 save_CPPFLAGS="$CPPFLAGS"
9202 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9204 save_LDFLAGS="$LDFLAGS"
9205 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9208 LIBS="$lt_cv_dlopen_libs $LIBS"
9210 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9211 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9212 if test "${lt_cv_dlopen_self+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 if test "$cross_compiling" = yes; then :
9216 lt_cv_dlopen_self=cross
9218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9219 lt_status=$lt_dlunknown
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9221 "configure"
9222 #include "confdefs.h"
9231 # define LT_DLGLOBAL RTLD_GLOBAL
9234 # define LT_DLGLOBAL DL_GLOBAL
9236 # define LT_DLGLOBAL 0
9240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9241 find out it does not work in some platform. */
9242 #ifndef LT_DLLAZY_OR_NOW
9244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9247 # define LT_DLLAZY_OR_NOW DL_LAZY
9250 # define LT_DLLAZY_OR_NOW RTLD_NOW
9253 # define LT_DLLAZY_OR_NOW DL_NOW
9255 # define LT_DLLAZY_OR_NOW 0
9263 extern "C" void exit (int);
9266 void fnord() { int i=42;}
9269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9270 int status = $lt_dlunknown;
9274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9276 /* dlclose (self); */
9282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283 (eval $ac_link) 2>&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9287 (./conftest; exit; ) 2>/dev/null
9290 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9291 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9292 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9295 # compilation failed
9296 lt_cv_dlopen_self=no
9303 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9304 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9306 if test "x$lt_cv_dlopen_self" = xyes; then
9307 LDFLAGS="$LDFLAGS $link_static_flag"
9308 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9309 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9310 if test "${lt_cv_dlopen_self_static+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 if test "$cross_compiling" = yes; then :
9314 lt_cv_dlopen_self_static=cross
9316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9317 lt_status=$lt_dlunknown
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9319 "configure"
9320 #include "confdefs.h"
9329 # define LT_DLGLOBAL RTLD_GLOBAL
9332 # define LT_DLGLOBAL DL_GLOBAL
9334 # define LT_DLGLOBAL 0
9338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9339 find out it does not work in some platform. */
9340 #ifndef LT_DLLAZY_OR_NOW
9342 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9345 # define LT_DLLAZY_OR_NOW DL_LAZY
9348 # define LT_DLLAZY_OR_NOW RTLD_NOW
9351 # define LT_DLLAZY_OR_NOW DL_NOW
9353 # define LT_DLLAZY_OR_NOW 0
9361 extern "C" void exit (int);
9364 void fnord() { int i=42;}
9367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9368 int status = $lt_dlunknown;
9372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9374 /* dlclose (self); */
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381 (eval $ac_link) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9385 (./conftest; exit; ) 2>/dev/null
9388 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9389 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9390 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9393 # compilation failed
9394 lt_cv_dlopen_self_static=no
9401 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9402 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9405 CPPFLAGS="$save_CPPFLAGS"
9406 LDFLAGS="$save_LDFLAGS"
9411 case $lt_cv_dlopen_self in
9412 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9413 *) enable_dlopen_self=unknown ;;
9416 case $lt_cv_dlopen_self_static in
9417 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9418 *) enable_dlopen_self_static=unknown ;;
9423 # Report which librarie types wil actually be built
9424 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9425 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9426 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9427 echo "${ECHO_T}$can_build_shared" >&6; }
9429 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9430 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9431 test "$can_build_shared" = "no" && enable_shared=no
9433 # On AIX, shared libraries and static libraries use the same namespace, and
9434 # are all built from PIC.
9437 test "$enable_shared" = yes && enable_static=no
9438 if test -n "$RANLIB"; then
9439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9440 postinstall_cmds='$RANLIB $lib'
9445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9446 test "$enable_shared" = yes && enable_static=no
9449 darwin* | rhapsody*)
9450 if test "$GCC" = yes; then
9451 archive_cmds_need_lc=no
9453 rhapsody* | darwin1.[012])
9454 allow_undefined_flag='-undefined suppress'
9457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9458 allow_undefined_flag='-flat_namespace -undefined suppress'
9460 case ${MACOSX_DEPLOYMENT_TARGET} in
9462 allow_undefined_flag='-flat_namespace -undefined suppress'
9465 allow_undefined_flag='-undefined dynamic_lookup'
9471 output_verbose_link_cmd='echo'
9472 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9473 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9475 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}'
9476 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}'
9478 hardcode_automatic=yes
9479 hardcode_shlibpath_var=unsupported
9480 whole_archive_flag_spec='-all_load $convenience'
9481 link_all_deplibs=yes
9487 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9488 echo "${ECHO_T}$enable_shared" >&6; }
9490 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9491 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9492 # Make sure either enable_shared or enable_static is yes.
9493 test "$enable_shared" = yes || enable_static=yes
9494 { echo "$as_me:$LINENO: result: $enable_static" >&5
9495 echo "${ECHO_T}$enable_static" >&6; }
9497 # The else clause should only fire when bootstrapping the
9498 # libtool distribution, otherwise you forgot to ship ltmain.sh
9499 # with your package, and you will get complaints that there are
9500 # no rules to generate ltmain.sh.
9501 if test -f "$ltmain"; then
9502 # See if we are running on zsh, and set the options which allow our commands through
9503 # without removal of \ escapes.
9504 if test -n "${ZSH_VERSION+set}" ; then
9505 setopt NO_GLOB_SUBST
9507 # Now quote all the things that may contain metacharacters while being
9508 # careful not to overquote the AC_SUBSTed values. We take copies of the
9509 # variables and quote the copies for generation of the libtool script.
9510 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9512 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9513 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9514 deplibs_check_method reload_flag reload_cmds need_locks \
9515 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9516 lt_cv_sys_global_symbol_to_c_name_address \
9517 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9518 old_postinstall_cmds old_postuninstall_cmds \
9522 lt_prog_compiler_wl \
9523 lt_prog_compiler_pic \
9524 lt_prog_compiler_static \
9525 lt_prog_compiler_no_builtin_flag \
9526 export_dynamic_flag_spec \
9527 thread_safe_flag_spec \
9528 whole_archive_flag_spec \
9529 enable_shared_with_static_runtimes \
9531 old_archive_from_new_cmds \
9536 compiler_lib_search_path \
9538 archive_expsym_cmds \
9540 postuninstall_cmds \
9541 old_archive_from_expsyms_cmds \
9542 allow_undefined_flag \
9544 export_symbols_cmds \
9545 hardcode_libdir_flag_spec \
9546 hardcode_libdir_flag_spec_ld \
9547 hardcode_libdir_separator \
9548 hardcode_automatic \
9550 module_expsym_cmds \
9551 lt_cv_prog_compiler_c_o \
9556 old_archive_cmds | \
9557 old_archive_from_new_cmds | \
9559 archive_expsym_cmds | \
9561 module_expsym_cmds | \
9562 old_archive_from_expsyms_cmds | \
9563 export_symbols_cmds | \
9564 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9565 postinstall_cmds | postuninstall_cmds | \
9566 old_postinstall_cmds | old_postuninstall_cmds | \
9567 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9568 # Double-quote double-evaled strings.
9569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9578 *'\$0 --fallback-echo"')
9579 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9584 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9586 { echo "$as_me:$LINENO: creating $ofile" >&5
9587 echo "$as_me: creating $ofile" >&6;}
9589 cat <<__EOF__ >> "$cfgfile"
9592 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9593 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9594 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9596 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9597 # Free Software Foundation, Inc.
9599 # This file is part of GNU Libtool:
9600 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9602 # This program is free software; you can redistribute it and/or modify
9603 # it under the terms of the GNU General Public License as published by
9604 # the Free Software Foundation; either version 2 of the License, or
9605 # (at your option) any later version.
9607 # This program is distributed in the hope that it will be useful, but
9608 # WITHOUT ANY WARRANTY; without even the implied warranty of
9609 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9610 # General Public License for more details.
9612 # You should have received a copy of the GNU General Public License
9613 # along with this program; if not, write to the Free Software
9614 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9616 # As a special exception to the GNU General Public License, if you
9617 # distribute this file as part of a program that contains a
9618 # configuration script generated by Autoconf, you may include it under
9619 # the same distribution terms that you use for the rest of that program.
9621 # A sed program that does not truncate output.
9624 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9625 Xsed="$SED -e s/^X//"
9627 # The HP-UX ksh and POSIX shell print the target directory to stdout
9629 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9631 # The names of the tagged configurations supported by this script.
9634 # ### BEGIN LIBTOOL CONFIG
9636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9638 # Shell to use when invoking shell scripts.
9641 # Whether or not to build shared libraries.
9642 build_libtool_libs=$enable_shared
9644 # Whether or not to build static libraries.
9645 build_old_libs=$enable_static
9647 # Whether or not to add -lc for building shared libraries.
9648 build_libtool_need_lc=$archive_cmds_need_lc
9650 # Whether or not to disallow shared libs when runtime libs are static
9651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9653 # Whether or not to optimize for fast installation.
9654 fast_install=$enable_fast_install
9657 host_alias=$host_alias
9660 # An echo program that does not interpret backslashes.
9665 AR_FLAGS=$lt_AR_FLAGS
9670 # A language-specific compiler.
9673 # Is the compiler the GNU C compiler?
9679 # The linker used to build libraries.
9682 # Whether we need hard or soft links.
9685 # A BSD-compatible nm program.
9688 # A symbol stripping program
9691 # Used to examine libraries when file_magic_cmd begins "file"
9692 MAGIC_CMD=$MAGIC_CMD
9694 # Used on cygwin: DLL creation program.
9697 # Used on cygwin: object dumper.
9700 # Used on cygwin: assembler.
9703 # The name of the directory that contains temporary libtool files.
9706 # How to create reloadable object files.
9707 reload_flag=$lt_reload_flag
9708 reload_cmds=$lt_reload_cmds
9710 # How to pass a linker flag through the compiler.
9711 wl=$lt_lt_prog_compiler_wl
9713 # Object file suffix (normally "o").
9716 # Old archive suffix (normally "a").
9719 # Shared library suffix (normally ".so").
9720 shrext_cmds='$shrext_cmds'
9722 # Executable file suffix (normally "").
9725 # Additional compiler flags for building library objects.
9726 pic_flag=$lt_lt_prog_compiler_pic
9729 # What is the maximum length of a command?
9730 max_cmd_len=$lt_cv_sys_max_cmd_len
9732 # Does compiler simultaneously support -c and -o options?
9733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9735 # Must we lock files when doing compilation ?
9736 need_locks=$lt_need_locks
9738 # Do we need the lib prefix for modules?
9739 need_lib_prefix=$need_lib_prefix
9741 # Do we need a version for libraries?
9742 need_version=$need_version
9744 # Whether dlopen is supported.
9745 dlopen_support=$enable_dlopen
9747 # Whether dlopen of programs is supported.
9748 dlopen_self=$enable_dlopen_self
9750 # Whether dlopen of statically linked programs is supported.
9751 dlopen_self_static=$enable_dlopen_self_static
9753 # Compiler flag to prevent dynamic linking.
9754 link_static_flag=$lt_lt_prog_compiler_static
9756 # Compiler flag to turn off builtin functions.
9757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9759 # Compiler flag to allow reflexive dlopens.
9760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9762 # Compiler flag to generate shared objects directly from archives.
9763 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9765 # Compiler flag to generate thread-safe objects.
9766 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9768 # Library versioning type.
9769 version_type=$version_type
9771 # Format of library name prefix.
9772 libname_spec=$lt_libname_spec
9774 # List of archive names. First name is the real one, the rest are links.
9775 # The last name is the one that the linker finds with -lNAME.
9776 library_names_spec=$lt_library_names_spec
9778 # The coded name of the library, if different from the real name.
9779 soname_spec=$lt_soname_spec
9781 # Commands used to build and install an old-style archive.
9783 old_archive_cmds=$lt_old_archive_cmds
9784 old_postinstall_cmds=$lt_old_postinstall_cmds
9785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9787 # Create an old-style archive from a shared archive.
9788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9790 # Create a temporary old-style archive to link instead of a shared archive.
9791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9793 # Commands used to build and install a shared archive.
9794 archive_cmds=$lt_archive_cmds
9795 archive_expsym_cmds=$lt_archive_expsym_cmds
9796 postinstall_cmds=$lt_postinstall_cmds
9797 postuninstall_cmds=$lt_postuninstall_cmds
9799 # Commands used to build a loadable module (assumed same as above if empty)
9800 module_cmds=$lt_module_cmds
9801 module_expsym_cmds=$lt_module_expsym_cmds
9803 # Commands to strip libraries.
9804 old_striplib=$lt_old_striplib
9805 striplib=$lt_striplib
9807 # Dependencies to place before the objects being linked to create a
9809 predep_objects=$lt_predep_objects
9811 # Dependencies to place after the objects being linked to create a
9813 postdep_objects=$lt_postdep_objects
9815 # Dependencies to place before the objects being linked to create a
9819 # Dependencies to place after the objects being linked to create a
9821 postdeps=$lt_postdeps
9823 # The library search path used internally by the compiler when linking
9825 compiler_lib_search_path=$lt_compiler_lib_search_path
9827 # Method to check whether dependent libraries are shared objects.
9828 deplibs_check_method=$lt_deplibs_check_method
9830 # Command to use when deplibs_check_method == file_magic.
9831 file_magic_cmd=$lt_file_magic_cmd
9833 # Flag that allows shared libraries with undefined symbols to be built.
9834 allow_undefined_flag=$lt_allow_undefined_flag
9836 # Flag that forces no undefined symbols.
9837 no_undefined_flag=$lt_no_undefined_flag
9839 # Commands used to finish a libtool library installation in a directory.
9840 finish_cmds=$lt_finish_cmds
9842 # Same as above, but a single script fragment to be evaled but not shown.
9843 finish_eval=$lt_finish_eval
9845 # Take the output of nm and produce a listing of raw symbols and C names.
9846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9848 # Transform the output of nm in a proper C declaration
9849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9851 # Transform the output of nm in a C name address pair
9852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9854 # This is the shared library runtime path variable.
9855 runpath_var=$runpath_var
9857 # This is the shared library path variable.
9858 shlibpath_var=$shlibpath_var
9860 # Is shlibpath searched before the hard-coded library search path?
9861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9863 # How to hardcode a shared library path into an executable.
9864 hardcode_action=$hardcode_action
9866 # Whether we should hardcode library paths into libraries.
9867 hardcode_into_libs=$hardcode_into_libs
9869 # Flag to hardcode \$libdir into a binary during linking.
9870 # This must work even if \$libdir does not exist.
9871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9873 # If ld is used when linking, flag to hardcode \$libdir into
9874 # a binary during linking. This must work even if \$libdir does
9876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9878 # Whether we need a single -rpath flag with a separated argument.
9879 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9883 hardcode_direct=$hardcode_direct
9885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9887 hardcode_minus_L=$hardcode_minus_L
9889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9890 # the resulting binary.
9891 hardcode_shlibpath_var=$hardcode_shlibpath_var
9893 # Set to yes if building a shared library automatically hardcodes DIR into the library
9894 # and all subsequent libraries and executables linked against it.
9895 hardcode_automatic=$hardcode_automatic
9897 # Variables whose values should be saved in libtool wrapper scripts and
9898 # restored at relink time.
9899 variables_saved_for_relink="$variables_saved_for_relink"
9901 # Whether libtool must link a program against all its dependency libraries.
9902 link_all_deplibs=$link_all_deplibs
9904 # Compile-time system search path for libraries
9905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9907 # Run-time system search path for libraries
9908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9910 # Fix the shell variable \$srcfile for the compiler.
9911 fix_srcfile_path="$fix_srcfile_path"
9913 # Set to yes if exported symbols are required.
9914 always_export_symbols=$always_export_symbols
9916 # The commands to list exported symbols.
9917 export_symbols_cmds=$lt_export_symbols_cmds
9919 # The commands to extract the exported symbol list from a shared archive.
9920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9922 # Symbols that should not be listed in the preloaded symbols.
9923 exclude_expsyms=$lt_exclude_expsyms
9925 # Symbols that must always be exported.
9926 include_expsyms=$lt_include_expsyms
9928 # ### END LIBTOOL CONFIG
9935 cat <<\EOF >> "$cfgfile"
9937 # AIX sometimes has problems with the GCC collect2 program. For some
9938 # reason, if we set the COLLECT_NAMES environment variable, the problems
9939 # vanish in a puff of smoke.
9940 if test "X${COLLECT_NAMES+set}" != Xset; then
9942 export COLLECT_NAMES
9948 # We use sed instead of cat because bash on DJGPP gets confused if
9949 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9950 # text mode, it properly converts lines to CR/LF. This bash problem
9951 # is reportedly fixed, but why not run on old versions too?
9952 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9954 mv -f "$cfgfile" "$ofile" || \
9955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9959 # If there is no Makefile yet, we rely on a make rule to execute
9960 # `config.status --recheck' to rerun these tests and create the
9961 # libtool script then.
9962 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9963 if test -f "$ltmain_in"; then
9964 test -f Makefile && make "$ltmain"
9970 ac_cpp='$CPP $CPPFLAGS'
9971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9978 # Check whether --with-tags was given.
9979 if test "${with_tags+set}" = set; then
9980 withval=$with_tags; tagnames="$withval"
9984 if test -f "$ltmain" && test -n "$tagnames"; then
9985 if test ! -f "${ofile}"; then
9986 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9987 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9990 if test -z "$LTCC"; then
9991 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9992 if test -z "$LTCC"; then
9993 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9994 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9997 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10001 # Extract list of available tagged configurations in $ofile.
10002 # Note that this assumes the entire list is on one line.
10003 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10006 for tagname in $tagnames; do
10008 # Check whether tagname contains only valid characters
10009 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10011 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10012 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10013 { (exit 1); exit 1; }; }
10017 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10019 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10020 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10021 { (exit 1); exit 1; }; }
10024 # Update the list of available tags.
10025 if test -n "$tagname"; then
10026 echo appending configuration tag \"$tagname\" to $ofile
10030 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10032 ac_cpp='$CXXCPP $CPPFLAGS'
10033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10040 archive_cmds_need_lc_CXX=no
10041 allow_undefined_flag_CXX=
10042 always_export_symbols_CXX=no
10043 archive_expsym_cmds_CXX=
10044 export_dynamic_flag_spec_CXX=
10045 hardcode_direct_CXX=no
10046 hardcode_libdir_flag_spec_CXX=
10047 hardcode_libdir_flag_spec_ld_CXX=
10048 hardcode_libdir_separator_CXX=
10049 hardcode_minus_L_CXX=no
10050 hardcode_automatic_CXX=no
10052 module_expsym_cmds_CXX=
10053 link_all_deplibs_CXX=unknown
10054 old_archive_cmds_CXX=$old_archive_cmds
10055 no_undefined_flag_CXX=
10056 whole_archive_flag_spec_CXX=
10057 enable_shared_with_static_runtimes_CXX=no
10059 # Dependencies to place before and after the object being linked:
10060 predep_objects_CXX=
10061 postdep_objects_CXX=
10064 compiler_lib_search_path_CXX=
10066 # Source file extension for C++ test sources.
10069 # Object file extension for compiled C++ test sources.
10073 # Code to be used in simple compile tests
10074 lt_simple_compile_test_code="int some_variable = 0;\n"
10076 # Code to be used in simple link tests
10077 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10081 # If no C compiler was specified, use CC.
10084 # Allow CC to be a program name with arguments.
10088 # Allow CC to be a program name with arguments.
10093 lt_save_with_gnu_ld=$with_gnu_ld
10094 lt_save_path_LD=$lt_cv_path_LD
10095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10098 unset lt_cv_prog_gnu_ld
10100 if test -n "${lt_cv_path_LDCXX+set}"; then
10101 lt_cv_path_LD=$lt_cv_path_LDCXX
10103 unset lt_cv_path_LD
10105 test -z "${LDCXX+set}" || LD=$LDCXX
10109 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10111 # We don't want -fno-exception wen compiling C++ code, so set the
10112 # no_builtin_flag separately
10113 if test "$GXX" = yes; then
10114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10116 lt_prog_compiler_no_builtin_flag_CXX=
10119 if test "$GXX" = yes; then
10120 # Set up default GNU C++ configuration
10123 # Check whether --with-gnu-ld was given.
10124 if test "${with_gnu_ld+set}" = set; then
10125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10131 if test "$GCC" = yes; then
10132 # Check if gcc -print-prog-name=ld gives a path.
10133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10137 # gcc leaves a trailing carriage return which upsets mingw
10138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10143 # Accept absolute paths.
10145 re_direlt='/[^/][^/]*/\.\./'
10146 # Canonicalize the pathname of ld
10147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10151 test -z "$LD" && LD="$ac_prog"
10154 # If it fails, then pretend we aren't using GCC.
10158 # If it is relative, then search for the first ld in PATH.
10159 with_gnu_ld=unknown
10162 elif test "$with_gnu_ld" = yes; then
10163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10169 if test "${lt_cv_path_LD+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 if test -z "$LD"; then
10173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10174 for ac_dir in $PATH; do
10176 test -z "$ac_dir" && ac_dir=.
10177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10178 lt_cv_path_LD="$ac_dir/$ac_prog"
10179 # Check to see if the program is GNU ld. I'd rather use --version,
10180 # but apparently some GNU ld's only accept -v.
10181 # Break only if it was the GNU/non-GNU ld that we prefer.
10182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10183 *GNU* | *'with BFD'*)
10184 test "$with_gnu_ld" != no && break
10187 test "$with_gnu_ld" != yes && break
10194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10198 LD="$lt_cv_path_LD"
10199 if test -n "$LD"; then
10200 { echo "$as_me:$LINENO: result: $LD" >&5
10201 echo "${ECHO_T}$LD" >&6; }
10203 { echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6; }
10206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10208 { (exit 1); exit 1; }; }
10209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10215 case `$LD -v 2>&1 </dev/null` in
10216 *GNU* | *'with BFD'*)
10217 lt_cv_prog_gnu_ld=yes
10220 lt_cv_prog_gnu_ld=no
10224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10226 with_gnu_ld=$lt_cv_prog_gnu_ld
10230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10231 # archiving commands below assume that GNU ld is being used.
10232 if test "$with_gnu_ld" = yes; then
10233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234 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'
10236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10239 # If archive_cmds runs LD, not CC, wlarc should be empty
10240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10241 # investigate it a little bit more. (MM)
10244 # ancient GNU ld didn't support --whole-archive et. al.
10245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10246 grep 'no-whole-archive' > /dev/null; then
10247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10249 whole_archive_flag_spec_CXX=
10255 # A generic and very simple default shared library creation
10256 # command for GNU C++ for the case where it uses the native
10257 # linker, instead of GNU ld. If possible, this setting should
10258 # overridden to take advantage of the native linker features on
10259 # the platform it is being used on.
10260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10263 # Commands to make compiler produce verbose output that lists
10264 # what "hidden" libraries, object files and flags are used when
10265 # linking a shared library.
10266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10274 # PORTME: fill in a description of your system's C++ link characteristics
10275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10280 # FIXME: insert proper C++ library support
10284 if test "$host_cpu" = ia64; then
10285 # On IA64, the linker does run time linking by default, so we don't
10286 # have to do anything special.
10287 aix_use_runtimelinking=no
10288 exp_sym_flag='-Bexport'
10291 aix_use_runtimelinking=no
10293 # Test if we are trying to use run time linking or normal
10294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10295 # need to do runtime linking.
10296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10297 for ld_flag in $LDFLAGS; do
10300 aix_use_runtimelinking=yes
10307 exp_sym_flag='-bexport'
10308 no_entry_flag='-bnoentry'
10311 # When large executables or shared objects are built, AIX ld can
10312 # have problems creating the table of contents. If linking a library
10313 # or program results in "error TOC overflow" add -mminimal-toc to
10314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10317 archive_cmds_CXX=''
10318 hardcode_direct_CXX=yes
10319 hardcode_libdir_separator_CXX=':'
10320 link_all_deplibs_CXX=yes
10322 if test "$GXX" = yes; then
10323 case $host_os in aix4.012|aix4.012.*)
10324 # We only want to do this on AIX 4.2 and lower, the check
10325 # below for broken collect2 doesn't work under 4.3+
10326 collect2name=`${CC} -print-prog-name=collect2`
10327 if test -f "$collect2name" && \
10328 strings "$collect2name" | grep resolve_lib_name >/dev/null
10330 # We have reworked collect2
10331 hardcode_direct_CXX=yes
10333 # We have old collect2
10334 hardcode_direct_CXX=unsupported
10335 # It fails to find uninstalled libraries when the uninstalled
10336 # path is not listed in the libpath. Setting hardcode_minus_L
10337 # to unsupported forces relinking
10338 hardcode_minus_L_CXX=yes
10339 hardcode_libdir_flag_spec_CXX='-L$libdir'
10340 hardcode_libdir_separator_CXX=
10343 shared_flag='-shared'
10346 if test "$host_cpu" = ia64; then
10347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10348 # chokes on -Wl,-G. The following line is correct:
10351 if test "$aix_use_runtimelinking" = yes; then
10352 shared_flag='${wl}-G'
10354 shared_flag='${wl}-bM:SRE'
10359 # It seems that -bexpall does not export symbols beginning with
10360 # underscore (_), so it is better to generate a list of symbols to export.
10361 always_export_symbols_CXX=yes
10362 if test "$aix_use_runtimelinking" = yes; then
10363 # Warning - without using the other runtime loading flags (-brtl),
10364 # -berok will link without error, but may produce a broken library.
10365 allow_undefined_flag_CXX='-berok'
10366 # Determine the default libpath from the value encoded in an empty executable.
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_link") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_cxx_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest$ac_exeext &&
10399 $as_test_x conftest$ac_exeext; then
10401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10403 # Check for a 64-bit object if we didn't find anything.
10404 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; }
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414 conftest$ac_exeext conftest.$ac_ext
10415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10417 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10419 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"
10421 if test "$host_cpu" = ia64; then
10422 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10423 allow_undefined_flag_CXX="-z nodefs"
10424 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"
10426 # Determine the default libpath from the value encoded in an empty executable.
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_link") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_cxx_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest$ac_exeext &&
10459 $as_test_x conftest$ac_exeext; then
10461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10463 # Check for a 64-bit object if we didn't find anything.
10464 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; }
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10477 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10478 # Warning - without using the other run time loading flags,
10479 # -berok will link without error, but may produce a broken library.
10480 no_undefined_flag_CXX=' ${wl}-bernotok'
10481 allow_undefined_flag_CXX=' ${wl}-berok'
10482 # -bexpall does not export symbols beginning with underscore (_)
10483 always_export_symbols_CXX=yes
10484 # Exported symbols can be pulled into shared objects from archives
10485 whole_archive_flag_spec_CXX=' '
10486 archive_cmds_need_lc_CXX=yes
10487 # This is similar to how AIX traditionally builds it's shared libraries.
10488 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'
10493 case $cc_basename in
10495 # FIXME: insert proper C++ library support
10501 cygwin* | mingw* | pw32*)
10502 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10503 # as there is no search path for DLLs.
10504 hardcode_libdir_flag_spec_CXX='-L$libdir'
10505 allow_undefined_flag_CXX=unsupported
10506 always_export_symbols_CXX=no
10507 enable_shared_with_static_runtimes_CXX=yes
10509 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10510 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'
10511 # If the export-symbols file already is a .def file (1st line
10512 # is EXPORTS), use it as is; otherwise, prepend...
10513 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10514 cp $export_symbols $output_objdir/$soname.def;
10516 echo EXPORTS > $output_objdir/$soname.def;
10517 cat $export_symbols >> $output_objdir/$soname.def;
10519 $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'
10525 darwin* | rhapsody*)
10526 if test "$GXX" = yes; then
10527 archive_cmds_need_lc_CXX=no
10529 rhapsody* | darwin1.[012])
10530 allow_undefined_flag_CXX='-undefined suppress'
10533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10534 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10536 case ${MACOSX_DEPLOYMENT_TARGET} in
10538 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10541 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10547 lt_int_apple_cc_single_mod=no
10548 output_verbose_link_cmd='echo'
10549 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10550 lt_int_apple_cc_single_mod=yes
10552 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10553 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10555 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'
10557 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10559 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10560 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10561 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}'
10563 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}'
10565 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}'
10566 hardcode_direct_CXX=no
10567 hardcode_automatic_CXX=yes
10568 hardcode_shlibpath_var_CXX=unsupported
10569 whole_archive_flag_spec_CXX='-all_load $convenience'
10570 link_all_deplibs_CXX=yes
10577 case $cc_basename in
10579 # FIXME: insert proper C++ library support
10583 # Green Hills C++ Compiler
10584 # FIXME: insert proper C++ library support
10588 # FIXME: insert proper C++ library support
10594 # C++ shared libraries reported to be fairly broken before switch to ELF
10598 archive_cmds_need_lc_CXX=no
10600 freebsd* | kfreebsd*-gnu)
10601 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10609 hardcode_libdir_separator_CXX=:
10610 export_dynamic_flag_spec_CXX='${wl}-E'
10611 hardcode_direct_CXX=yes
10612 hardcode_minus_L_CXX=yes # Not in the search PATH,
10613 # but as the default
10614 # location of the library.
10616 case $cc_basename in
10618 # FIXME: insert proper C++ library support
10622 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'
10623 # Commands to make compiler produce verbose output that lists
10624 # what "hidden" libraries, object files and flags are used when
10625 # linking a shared library.
10627 # There doesn't appear to be a way to prevent this compiler from
10628 # explicitly linking system object files so we need to strip them
10629 # from the output so that they don't get included in the library
10631 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'
10634 if test "$GXX" = yes; then
10635 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'
10637 # FIXME: insert proper C++ library support
10644 if test $with_gnu_ld = no; then
10645 case "$host_cpu" in
10647 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10648 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10649 hardcode_libdir_separator_CXX=:
10652 hardcode_libdir_flag_spec_CXX='-L$libdir'
10655 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10656 hardcode_libdir_separator_CXX=:
10657 export_dynamic_flag_spec_CXX='${wl}-E'
10661 case "$host_cpu" in
10663 hardcode_direct_CXX=no
10664 hardcode_shlibpath_var_CXX=no
10667 hardcode_direct_CXX=no
10668 hardcode_shlibpath_var_CXX=no
10669 hardcode_minus_L_CXX=yes # Not in the search PATH,
10670 # but as the default
10671 # location of the library.
10674 hardcode_direct_CXX=yes
10675 hardcode_minus_L_CXX=yes # Not in the search PATH,
10676 # but as the default
10677 # location of the library.
10681 case $cc_basename in
10683 # FIXME: insert proper C++ library support
10687 case "$host_cpu" in
10689 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10695 # Commands to make compiler produce verbose output that lists
10696 # what "hidden" libraries, object files and flags are used when
10697 # linking a shared library.
10699 # There doesn't appear to be a way to prevent this compiler from
10700 # explicitly linking system object files so we need to strip them
10701 # from the output so that they don't get included in the library
10703 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'
10706 if test "$GXX" = yes; then
10707 if test $with_gnu_ld = no; then
10708 case "$host_cpu" in
10710 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10713 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'
10718 # FIXME: insert proper C++ library support
10725 case $cc_basename in
10728 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'
10730 # Archives containing C++ object files must be created using
10731 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10732 # necessary to make sure instantiated templates are included
10734 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10737 if test "$GXX" = yes; then
10738 if test "$with_gnu_ld" = no; then
10739 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'
10741 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'
10744 link_all_deplibs_CXX=yes
10747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator_CXX=:
10751 case $cc_basename in
10753 # Kuck and Associates, Inc. (KAI) C++ Compiler
10755 # KCC will only create a shared library if the output file
10756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10757 # to its proper name (with version) after linking.
10758 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'
10759 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'
10760 # Commands to make compiler produce verbose output that lists
10761 # what "hidden" libraries, object files and flags are used when
10762 # linking a shared library.
10764 # There doesn't appear to be a way to prevent this compiler from
10765 # explicitly linking system object files so we need to strip them
10766 # from the output so that they don't get included in the library
10768 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'
10770 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10773 # Archives containing C++ object files must be created using
10774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10780 archive_cmds_need_lc_CXX=no
10781 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782 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'
10783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10785 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790 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'
10792 runpath_var=LD_RUN_PATH
10793 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10794 hardcode_libdir_separator_CXX=:
10796 # Commands to make compiler produce verbose output that lists
10797 # what "hidden" libraries, object files and flags are used when
10798 # linking a shared library.
10800 # There doesn't appear to be a way to prevent this compiler from
10801 # explicitly linking system object files so we need to strip them
10802 # from the output so that they don't get included in the library
10804 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'
10809 # FIXME: insert proper C++ library support
10813 # FIXME: insert proper C++ library support
10817 case $cc_basename in
10819 # FIXME: insert proper C++ library support
10823 # FIXME: insert proper C++ library support
10829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10830 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10832 hardcode_libdir_flag_spec_CXX='-R$libdir'
10833 hardcode_direct_CXX=yes
10834 hardcode_shlibpath_var_CXX=no
10836 # Workaround some broken pre-1.5 toolchains
10837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10840 case $cc_basename in
10842 # Kuck and Associates, Inc. (KAI) C++ Compiler
10844 # KCC will only create a shared library if the output file
10845 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10846 # to its proper name (with version) after linking.
10847 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'
10849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10850 hardcode_libdir_separator_CXX=:
10852 # Archives containing C++ object files must be created using
10853 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10854 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10858 # Rational C++ 2.4.1
10859 # FIXME: insert proper C++ library support
10863 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864 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'
10866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867 hardcode_libdir_separator_CXX=:
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10873 # There doesn't appear to be a way to prevent this compiler from
10874 # explicitly linking system object files so we need to strip them
10875 # from the output so that they don't get included in the library
10877 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'
10880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882 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'
10884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885 hardcode_libdir_separator_CXX=:
10887 # Commands to make compiler produce verbose output that lists
10888 # what "hidden" libraries, object files and flags are used when
10889 # linking a shared library.
10890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10893 # FIXME: insert proper C++ library support
10900 case $cc_basename in
10902 # Kuck and Associates, Inc. (KAI) C++ Compiler
10904 # KCC will only create a shared library if the output file
10905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10906 # to its proper name (with version) after linking.
10907 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'
10909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10910 hardcode_libdir_separator_CXX=:
10912 # Archives containing C++ object files must be created using
10913 # the KAI C++ compiler.
10914 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10917 # Rational C++ 2.4.1
10918 # FIXME: insert proper C++ library support
10922 allow_undefined_flag_CXX=' -expect_unresolved \*'
10923 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'
10924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10925 echo "-hidden">> $lib.exp~
10926 $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~
10929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10930 hardcode_libdir_separator_CXX=:
10932 # Commands to make compiler produce verbose output that lists
10933 # what "hidden" libraries, object files and flags are used when
10934 # linking a shared library.
10936 # There doesn't appear to be a way to prevent this compiler from
10937 # explicitly linking system object files so we need to strip them
10938 # from the output so that they don't get included in the library
10940 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'
10943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10945 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'
10947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10948 hardcode_libdir_separator_CXX=:
10950 # Commands to make compiler produce verbose output that lists
10951 # what "hidden" libraries, object files and flags are used when
10952 # linking a shared library.
10953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10956 # FIXME: insert proper C++ library support
10963 # FIXME: insert proper C++ library support
10967 archive_cmds_need_lc_CXX=no
10968 case $cc_basename in
10970 # FIXME: insert proper C++ library support
10974 # FIXME: insert proper C++ library support
10980 case $cc_basename in
10983 # FIXME: insert proper C++ library support
10988 # FIXME: insert proper C++ library support
10992 # FIXME: insert proper C++ library support
10998 case $cc_basename in
11000 # Sun C++ 4.2, 5.x and Centerline C++
11001 no_undefined_flag_CXX=' -zdefs'
11002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11003 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11004 $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'
11006 hardcode_libdir_flag_spec_CXX='-R$libdir'
11007 hardcode_shlibpath_var_CXX=no
11009 solaris2.0-5 | solaris2.0-5.*) ;;
11011 # The C++ compiler is used as linker so we must use $wl
11012 # flag to pass the commands to the underlying system
11014 # Supported since Solaris 2.6 (maybe 2.5.1?)
11015 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11018 link_all_deplibs_CXX=yes
11020 # Commands to make compiler produce verbose output that lists
11021 # what "hidden" libraries, object files and flags are used when
11022 # linking a shared library.
11024 # There doesn't appear to be a way to prevent this compiler from
11025 # explicitly linking system object files so we need to strip them
11026 # from the output so that they don't get included in the library
11028 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'
11030 # Archives containing C++ object files must be created using
11031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11032 # necessary to make sure instantiated templates are included
11034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11037 # Green Hills C++ Compiler
11038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11040 # The C++ compiler must be used to create the archive.
11041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11044 # GNU C++ compiler with Solaris linker
11045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11046 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11047 if $CC --version | grep -v '^2\.7' > /dev/null; then
11048 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11049 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11050 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11052 # Commands to make compiler produce verbose output that lists
11053 # what "hidden" libraries, object files and flags are used when
11054 # linking a shared library.
11055 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11057 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11059 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11061 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11063 # Commands to make compiler produce verbose output that lists
11064 # what "hidden" libraries, object files and flags are used when
11065 # linking a shared library.
11066 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11069 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11074 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11075 archive_cmds_need_lc_CXX=no
11078 case $cc_basename in
11080 # NonStop-UX NCC 3.20
11081 # FIXME: insert proper C++ library support
11085 # FIXME: insert proper C++ library support
11091 # FIXME: insert proper C++ library support
11095 # FIXME: insert proper C++ library support
11099 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11100 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11101 test "$ld_shlibs_CXX" = no && can_build_shared=no
11107 ## There is no encapsulation within the following macros, do not change
11108 ## the running order or otherwise move them around unless you know exactly
11109 ## what you are doing...
11111 cat > conftest.$ac_ext <<EOF
11115 Foo (void) { a = 0; }
11121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122 (eval $ac_compile) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; then
11126 # Parse the compiler output and extract the necessary
11127 # objects, libraries and library flags.
11129 # Sentinel used to keep track of whether or not we are before
11130 # the conftest object file.
11131 pre_test_object_deps_done=no
11133 # The `*' in the case matches for architectures that use `case' in
11134 # $output_verbose_cmd can trigger glob expansion during the loop
11135 # eval without this substitution.
11136 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11138 for p in `eval $output_verbose_link_cmd`; do
11142 # Some compilers place space between "-{L,R}" and the path.
11143 # Remove the space.
11144 if test $p = "-L" \
11145 || test $p = "-R"; then
11152 if test "$pre_test_object_deps_done" = no; then
11155 # Internal compiler library paths should come after those
11156 # provided the user. The postdeps already come after the
11157 # user supplied libs so there is no need to process them.
11158 if test -z "$compiler_lib_search_path_CXX"; then
11159 compiler_lib_search_path_CXX="${prev}${p}"
11161 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11164 # The "-l" case would never come before the object being
11165 # linked, so don't bother handling this case.
11168 if test -z "$postdeps_CXX"; then
11169 postdeps_CXX="${prev}${p}"
11171 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11177 # This assumes that the test object file only shows up
11178 # once in the compiler output.
11179 if test "$p" = "conftest.$objext"; then
11180 pre_test_object_deps_done=yes
11184 if test "$pre_test_object_deps_done" = no; then
11185 if test -z "$predep_objects_CXX"; then
11186 predep_objects_CXX="$p"
11188 predep_objects_CXX="$predep_objects_CXX $p"
11191 if test -z "$postdep_objects_CXX"; then
11192 postdep_objects_CXX="$p"
11194 postdep_objects_CXX="$postdep_objects_CXX $p"
11199 *) ;; # Ignore the rest.
11207 echo "libtool.m4: error: problem compiling CXX test program"
11210 $rm -f confest.$objext
11212 case " $postdeps_CXX " in
11213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11216 lt_prog_compiler_wl_CXX=
11217 lt_prog_compiler_pic_CXX=
11218 lt_prog_compiler_static_CXX=
11220 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11223 # C++ specific cases for pic, static, wl, etc.
11224 if test "$GXX" = yes; then
11225 lt_prog_compiler_wl_CXX='-Wl,'
11226 lt_prog_compiler_static_CXX='-static'
11230 # All AIX code is PIC.
11231 if test "$host_cpu" = ia64; then
11232 # AIX 5 now supports IA64 processor
11233 lt_prog_compiler_static_CXX='-Bstatic'
11237 # FIXME: we need at least 68020 code to build shared libraries, but
11238 # adding the `-m68020' flag to GCC prevents building anything better,
11240 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11242 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11243 # PIC is the default for these OSes.
11245 mingw* | os2* | pw32*)
11246 # This hack is so that the source file can tell whether it is being
11247 # built for inclusion in a dll (and should export symbols for example).
11248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11250 darwin* | rhapsody*)
11251 # PIC is the default on this platform
11252 # Common symbols not allowed in MH_DYLIB files
11253 lt_prog_compiler_pic_CXX='-fno-common'
11256 # DJGPP does not support shared libraries at all
11257 lt_prog_compiler_pic_CXX=
11260 if test -d /usr/nec; then
11261 lt_prog_compiler_pic_CXX=-Kconform_pic
11265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11266 # not for PA HP-UX.
11267 case "$host_cpu" in
11271 lt_prog_compiler_pic_CXX='-fPIC'
11276 lt_prog_compiler_pic_CXX='-fPIC'
11282 # All AIX code is PIC.
11283 if test "$host_cpu" = ia64; then
11284 # AIX 5 now supports IA64 processor
11285 lt_prog_compiler_static_CXX='-Bstatic'
11287 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11291 case $cc_basename in
11293 # Green Hills C++ Compiler
11294 # _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"
11299 case $cc_basename in
11301 lt_prog_compiler_pic_CXX='-KPIC'
11304 # Green Hills C++ Compiler
11305 lt_prog_compiler_pic_CXX='-pic'
11311 freebsd* | kfreebsd*-gnu)
11312 # FreeBSD uses GNU C++
11314 hpux9* | hpux10* | hpux11*)
11315 case $cc_basename in
11317 lt_prog_compiler_wl_CXX='-Wl,'
11318 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11319 if test "$host_cpu" != ia64; then
11320 lt_prog_compiler_pic_CXX='+Z'
11324 lt_prog_compiler_wl_CXX='-Wl,'
11325 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11326 case "$host_cpu" in
11331 lt_prog_compiler_pic_CXX='+Z'
11339 irix5* | irix6* | nonstopux*)
11340 case $cc_basename in
11342 lt_prog_compiler_wl_CXX='-Wl,'
11343 lt_prog_compiler_static_CXX='-non_shared'
11344 # CC pic flag -KPIC is the default.
11351 case $cc_basename in
11354 lt_prog_compiler_wl_CXX='--backend -Wl,'
11355 lt_prog_compiler_pic_CXX='-fPIC'
11359 lt_prog_compiler_wl_CXX='-Wl,'
11360 lt_prog_compiler_pic_CXX='-KPIC'
11361 lt_prog_compiler_static_CXX='-static'
11365 # Make sure the PIC flag is empty. It appears that all Alpha
11366 # Linux and Compaq Tru64 Unix objects are PIC.
11367 lt_prog_compiler_pic_CXX=
11368 lt_prog_compiler_static_CXX='-non_shared'
11379 case $cc_basename in
11381 lt_prog_compiler_pic_CXX='-W c,exportall'
11389 osf3* | osf4* | osf5*)
11390 case $cc_basename in
11392 lt_prog_compiler_wl_CXX='--backend -Wl,'
11395 # Rational C++ 2.4.1
11396 lt_prog_compiler_pic_CXX='-pic'
11399 # Digital/Compaq C++
11400 lt_prog_compiler_wl_CXX='-Wl,'
11401 # Make sure the PIC flag is empty. It appears that all Alpha
11402 # Linux and Compaq Tru64 Unix objects are PIC.
11403 lt_prog_compiler_pic_CXX=
11404 lt_prog_compiler_static_CXX='-non_shared'
11413 case $cc_basename in
11415 lt_prog_compiler_pic_CXX='-fPIC'
11422 case $cc_basename in
11424 # Sun C++ 4.2, 5.x and Centerline C++
11425 lt_prog_compiler_pic_CXX='-KPIC'
11426 lt_prog_compiler_static_CXX='-Bstatic'
11427 lt_prog_compiler_wl_CXX='-Qoption ld '
11430 # Green Hills C++ Compiler
11431 lt_prog_compiler_pic_CXX='-PIC'
11438 case $cc_basename in
11441 lt_prog_compiler_pic_CXX='-pic'
11442 lt_prog_compiler_static_CXX='-Bstatic'
11446 lt_prog_compiler_pic_CXX='-pic'
11453 case $cc_basename in
11455 # NonStop-UX NCC 3.20
11456 lt_prog_compiler_pic_CXX='-KPIC'
11467 lt_prog_compiler_can_build_shared_CXX=no
11472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11473 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11476 # Check to make sure the PIC flag actually works.
11478 if test -n "$lt_prog_compiler_pic_CXX"; then
11480 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11481 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11482 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 lt_prog_compiler_pic_works_CXX=no
11486 ac_outfile=conftest.$ac_objext
11487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11488 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11489 # Insert the option either (1) after the last *FLAGS variable, or
11490 # (2) before a word containing "conftest.", or (3) at the end.
11491 # Note that $ac_compile itself does not contain backslashes and begins
11492 # with a dollar sign (not a hyphen), so the echo should work correctly.
11493 # The option is referenced via a variable to avoid confusing sed.
11494 lt_compile=`echo "$ac_compile" | $SED \
11495 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11497 -e 's:$: $lt_compiler_flag:'`
11498 (eval echo "\"\$as_me:11498: $lt_compile\"" >&5)
11499 (eval "$lt_compile" 2>conftest.err)
11501 cat conftest.err >&5
11502 echo "$as_me:11502: \$? = $ac_status" >&5
11503 if (exit $ac_status) && test -s "$ac_outfile"; then
11504 # The compiler can only warn and ignore the option if not recognized
11505 # So say no if there are warnings
11506 if test ! -s conftest.err; then
11507 lt_prog_compiler_pic_works_CXX=yes
11513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11514 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11516 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11517 case $lt_prog_compiler_pic_CXX in
11519 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11522 lt_prog_compiler_pic_CXX=
11523 lt_prog_compiler_can_build_shared_CXX=no
11528 # For platforms which do not support PIC, -DPIC is meaningless:
11530 lt_prog_compiler_pic_CXX=
11533 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11537 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11538 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11539 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 lt_cv_prog_compiler_c_o_CXX=no
11543 $rm -r conftest 2>/dev/null
11547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11549 lt_compiler_flag="-o out/conftest2.$ac_objext"
11550 # Insert the option either (1) after the last *FLAGS variable, or
11551 # (2) before a word containing "conftest.", or (3) at the end.
11552 # Note that $ac_compile itself does not contain backslashes and begins
11553 # with a dollar sign (not a hyphen), so the echo should work correctly.
11554 lt_compile=`echo "$ac_compile" | $SED \
11555 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557 -e 's:$: $lt_compiler_flag:'`
11558 (eval echo "\"\$as_me:11558: $lt_compile\"" >&5)
11559 (eval "$lt_compile" 2>out/conftest.err)
11561 cat out/conftest.err >&5
11562 echo "$as_me:11562: \$? = $ac_status" >&5
11563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11565 # The compiler can only warn and ignore the option if not recognized
11566 # So say no if there are warnings
11567 if test ! -s out/conftest.err; then
11568 lt_cv_prog_compiler_c_o_CXX=yes
11573 # SGI C++ compiler will create directory out/ii_files/ for
11574 # template instantiation
11575 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11576 $rm out/* && rmdir out
11582 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11583 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11586 hard_links="nottested"
11587 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11588 # do not overwrite the value of need_locks provided by the user
11589 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11590 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11595 ln conftest.a conftest.b 2>&5 || hard_links=no
11596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11597 { echo "$as_me:$LINENO: result: $hard_links" >&5
11598 echo "${ECHO_T}$hard_links" >&6; }
11599 if test "$hard_links" = no; then
11600 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11601 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11608 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11609 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11611 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11614 # If we're using GNU nm, then we don't want the "-C" option.
11615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11616 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11617 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'
11619 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'
11623 export_symbols_cmds_CXX="$ltdll_cmds"
11626 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11633 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11634 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11635 test "$ld_shlibs_CXX" = no && can_build_shared=no
11637 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11638 if test "$GCC" = yes; then
11639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11643 # Do we need to explicitly link libc?
11645 case "x$archive_cmds_need_lc_CXX" in
11647 # Assume -lc should be added
11648 archive_cmds_need_lc_CXX=yes
11650 if test "$enable_shared" = yes && test "$GCC" = yes; then
11651 case $archive_cmds_CXX in
11653 # FIXME: we may have to deal with multi-command sequences.
11656 # Test whether the compiler implicitly links with -lc since on some
11657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11658 # to ld, don't add -lc before -lgcc.
11659 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11660 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665 (eval $ac_compile) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } 2>conftest.err; then
11671 libobjs=conftest.$ac_objext
11673 wl=$lt_prog_compiler_wl_CXX
11679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11680 allow_undefined_flag_CXX=
11681 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11682 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }
11687 archive_cmds_need_lc_CXX=no
11689 archive_cmds_need_lc_CXX=yes
11691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11693 cat conftest.err 1>&5
11696 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11704 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11706 library_names_spec=
11707 libname_spec='lib$name'
11711 postuninstall_cmds=
11715 shlibpath_overrides_runpath=unknown
11717 dynamic_linker="$host_os ld.so"
11718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11719 if test "$GCC" = yes; then
11720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11721 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11722 # if the path contains ";" then we assume it to be the separator
11723 # otherwise default to the standard path separator (i.e. ":") - it is
11724 # assumed that no part of a normal pathname contains ";" but that should
11725 # okay in the real world where ";" in dirpaths is itself problematic.
11726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733 need_lib_prefix=unknown
11734 hardcode_into_libs=no
11736 # when you set need_version to no, make sure it does not cause -set_version
11737 # flags to be left without arguments
11738 need_version=unknown
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11744 shlibpath_var=LIBPATH
11746 # AIX 3 has no versioning support, so we append a major version to the name.
11747 soname_spec='${libname}${release}${shared_ext}$major'
11754 hardcode_into_libs=yes
11755 if test "$host_cpu" = ia64; then
11756 # AIX 5 supports IA64
11757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11758 shlibpath_var=LD_LIBRARY_PATH
11760 # With GCC up to 2.95.x, collect2 would create an import file
11761 # for dependence libraries. The import file would start with
11762 # the line `#! .'. This would cause the generated library to
11763 # depend on `.', always an invalid library. This was fixed in
11764 # development snapshots of GCC prior to 3.0.
11766 aix4 | aix4.[01] | aix4.[01].*)
11767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11769 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11772 can_build_shared=no
11776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11777 # soname into executable. Probably we can add versioning support to
11778 # collect2, so additional links can be useful in future.
11779 if test "$aix_use_runtimelinking" = yes; then
11780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11781 # instead of lib<name>.a to let people know that these are not
11782 # typical AIX shared libraries.
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 # We preserve .a as extension for shared libraries through AIX4.2
11786 # and later when we are not doing run time linking.
11787 library_names_spec='${libname}${release}.a $libname.a'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LIBPATH
11795 library_names_spec='$libname.ixlibrary $libname.a'
11796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11797 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'
11801 library_names_spec='${libname}${shared_ext}'
11802 dynamic_linker="$host_os ld.so"
11803 shlibpath_var=LIBRARY_PATH
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11815 # the default ld.so.conf also contains /usr/contrib/lib and
11816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11817 # libtool to hard-code these into programs
11820 cygwin* | mingw* | pw32*)
11821 version_type=windows
11826 case $GCC,$host_os in
11827 yes,cygwin* | yes,mingw* | yes,pw32*)
11828 library_names_spec='$libname.dll.a'
11829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830 postinstall_cmds='base_file=`basename \${file}`~
11831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11832 dldir=$destdir/`dirname \$dlpath`~
11833 test -d \$dldir || mkdir -p \$dldir~
11834 $install_prog $dir/$dlname \$dldir/$dlname'
11835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11836 dlpath=$dir/\$dldll~
11838 shlibpath_overrides_runpath=yes
11842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11847 # MinGW DLLs use traditional 'lib' prefix
11848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11851 # It is most probably a Windows format PATH printed by
11852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11853 # path with ; separators, and with drive letters. We can handle the
11854 # drive letters (cygwin fileutils understands them), so leave them,
11855 # especially as we might pass files found there to a mingw objdump,
11856 # which wouldn't understand a cygwinified path. Ahh.
11857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11863 # pw32 DLLs use 'pw' prefix rather than 'lib'
11864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11873 dynamic_linker='Win32 ld.exe'
11874 # FIXME: first we should search . and the directory the executable is in
11878 darwin* | rhapsody*)
11879 dynamic_linker="$host_os dyld"
11880 version_type=darwin
11883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11884 soname_spec='${libname}${release}${major}$shared_ext'
11885 shlibpath_overrides_runpath=yes
11886 shlibpath_var=DYLD_LIBRARY_PATH
11887 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11889 if test "$GCC" = yes; then
11890 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"`
11892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11902 soname_spec='${libname}${release}${shared_ext}$major'
11903 shlibpath_var=LD_LIBRARY_PATH
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 shlibpath_var=LD_LIBRARY_PATH
11917 shlibpath_overrides_runpath=no
11918 hardcode_into_libs=yes
11919 dynamic_linker='GNU ld.so'
11923 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11924 version_type=freebsd-$objformat
11925 case $version_type in
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11936 shlibpath_var=LD_LIBRARY_PATH
11939 shlibpath_overrides_runpath=yes
11941 freebsd3.01* | freebsdelf3.01*)
11942 shlibpath_overrides_runpath=yes
11943 hardcode_into_libs=yes
11946 shlibpath_overrides_runpath=no
11947 hardcode_into_libs=yes
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11957 soname_spec='${libname}${release}${shared_ext}$major'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 hardcode_into_libs=yes
11962 hpux9* | hpux10* | hpux11*)
11963 # Give a soname corresponding to the major version so that dld.sl refuses to
11964 # link against other versions.
11968 case "$host_cpu" in
11971 hardcode_into_libs=yes
11972 dynamic_linker="$host_os dld.so"
11973 shlibpath_var=LD_LIBRARY_PATH
11974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 if test "X$HPUX_IA64_MODE" = X32; then
11978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11986 hardcode_into_libs=yes
11987 dynamic_linker="$host_os dld.sl"
11988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997 dynamic_linker="$host_os dld.sl"
11998 shlibpath_var=SHLIB_PATH
11999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001 soname_spec='${libname}${release}${shared_ext}$major'
12004 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12005 postinstall_cmds='chmod 555 $lib'
12008 irix5* | irix6* | nonstopux*)
12010 nonstopux*) version_type=nonstopux ;;
12012 if test "$lt_cv_prog_gnu_ld" = yes; then
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12023 irix5* | nonstopux*)
12024 libsuff= shlibsuff=
12027 case $LD in # libtool.m4 will add one of these switches to LD
12028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12029 libsuff= shlibsuff= libmagic=32-bit;;
12030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12031 libsuff=32 shlibsuff=N32 libmagic=N32;;
12032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12034 *) libsuff= shlibsuff= libmagic=never-match;;
12038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12039 shlibpath_overrides_runpath=no
12040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12042 hardcode_into_libs=yes
12045 # No shared lib support for Linux oldld, aout, or coff.
12046 linux*oldld* | linux*aout* | linux*coff*)
12050 # This must be Linux ELF.
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=no
12060 # This implies no fast_install, which is unacceptable.
12061 # Some rework will be needed to allow for fast_install
12062 # before this can be enabled.
12063 hardcode_into_libs=yes
12065 # find out which ABI we are using
12067 case "$host_cpu" in
12068 x86_64*|s390x*|powerpc64*)
12069 echo '#line 12069 "configure"' > conftest.$ac_ext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; then
12075 case `/usr/bin/file conftest.$ac_objext` in
12078 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12086 # Append ld.so.conf contents to the search path
12087 if test -f /etc/ld.so.conf; then
12088 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12089 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12092 # We used to test for /lib/ld.so.1 and disable shared libraries on
12093 # powerpc, because MkLinux only supported shared libraries with the
12094 # GNU dynamic linker. Since this was broken with cross compilers,
12095 # most powerpc-linux boxes support dynamic linking these days and
12096 # people can always --disable-shared, the test was removed, and we
12097 # assume the GNU/Linux dynamic linker is in use.
12098 dynamic_linker='GNU/Linux ld.so'
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=no
12109 hardcode_into_libs=yes
12110 dynamic_linker='GNU ld.so'
12117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12120 dynamic_linker='NetBSD (a.out) ld.so'
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 dynamic_linker='NetBSD ld.elf_so'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=yes
12128 hardcode_into_libs=yes
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath=yes
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=yes
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12157 openbsd2.[89] | openbsd2.[89].*)
12158 shlibpath_overrides_runpath=no
12161 shlibpath_overrides_runpath=yes
12165 shlibpath_overrides_runpath=yes
12170 libname_spec='$name'
12173 library_names_spec='$libname${shared_ext} $libname.a'
12174 dynamic_linker='OS/2 ld.exe'
12175 shlibpath_var=LIBPATH
12178 osf3* | osf4* | osf5*)
12182 soname_spec='${libname}${release}${shared_ext}$major'
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12186 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193 shlibpath_var=LD_LIBRARY_PATH
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=yes
12204 hardcode_into_libs=yes
12205 # ldd complains unless libraries are executable
12206 postinstall_cmds='chmod +x $lib'
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 shlibpath_overrides_runpath=yes
12215 if test "$with_gnu_ld" = yes; then
12221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 case $host_vendor in
12228 shlibpath_overrides_runpath=no
12230 export_dynamic_flag_spec='${wl}-Blargedynsym'
12231 runpath_var=LD_RUN_PATH
12239 shlibpath_overrides_runpath=no
12240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12246 if test -d /usr/nec ;then
12248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12249 soname_spec='$libname${shared_ext}.$major'
12250 shlibpath_var=LD_LIBRARY_PATH
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 shlibpath_var=LD_LIBRARY_PATH
12265 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12266 echo "${ECHO_T}$dynamic_linker" >&6; }
12267 test "$dynamic_linker" = no && can_build_shared=no
12269 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12270 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12271 hardcode_action_CXX=
12272 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12273 test -n "$runpath_var CXX" || \
12274 test "X$hardcode_automatic_CXX"="Xyes" ; then
12276 # We can hardcode non-existant directories.
12277 if test "$hardcode_direct_CXX" != no &&
12278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12279 # have to relink, otherwise we might link with an installed library
12280 # when we should be linking with a yet-to-be-installed one
12281 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12282 test "$hardcode_minus_L_CXX" != no; then
12283 # Linking always hardcodes the temporary library directory.
12284 hardcode_action_CXX=relink
12286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12287 hardcode_action_CXX=immediate
12290 # We cannot hardcode anything, or else we can only hardcode existing
12292 hardcode_action_CXX=unsupported
12294 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12295 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12297 if test "$hardcode_action_CXX" = relink; then
12298 # Fast installation is not supported
12299 enable_fast_install=no
12300 elif test "$shlibpath_overrides_runpath" = yes ||
12301 test "$enable_shared" = no; then
12302 # Fast installation is not necessary
12303 enable_fast_install=needless
12308 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12309 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12310 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12311 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12312 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12313 { echo "$as_me:$LINENO: result: yes" >&5
12314 echo "${ECHO_T}yes" >&6; }
12316 # FIXME - insert some real tests, host_os isn't really good enough
12319 if test -n "$STRIP" ; then
12320 striplib="$STRIP -x"
12321 { echo "$as_me:$LINENO: result: yes" >&5
12322 echo "${ECHO_T}yes" >&6; }
12324 { echo "$as_me:$LINENO: result: no" >&5
12325 echo "${ECHO_T}no" >&6; }
12329 { echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6; }
12335 if test "x$enable_dlopen" != xyes; then
12336 enable_dlopen=unknown
12337 enable_dlopen_self=unknown
12338 enable_dlopen_self_static=unknown
12345 lt_cv_dlopen="load_add_on"
12347 lt_cv_dlopen_self=yes
12351 lt_cv_dlopen="LoadLibrary"
12356 lt_cv_dlopen="dlopen"
12361 # if libdl is installed we need to link against it
12362 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12363 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 ac_check_lib_save_LIBS=$LIBS
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_link") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_cxx_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext &&
12408 $as_test_x conftest$ac_exeext; then
12409 ac_cv_lib_dl_dlopen=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_lib_dl_dlopen=no
12417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12418 conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12423 if test $ac_cv_lib_dl_dlopen = yes; then
12424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12427 lt_cv_dlopen="dyld"
12429 lt_cv_dlopen_self=yes
12436 { echo "$as_me:$LINENO: checking for shl_load" >&5
12437 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12438 if test "${ac_cv_func_shl_load+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12449 #define shl_load innocuous_shl_load
12451 /* System header to define __stub macros and hopefully few prototypes,
12452 which can conflict with char shl_load (); below.
12453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12454 <limits.h> exists even on freestanding compilers. */
12457 # include <limits.h>
12459 # include <assert.h>
12464 /* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12471 /* The GNU C library defines this for functions which it implements
12472 to always fail with ENOSYS. Some functions are actually named
12473 something starting with __ and the normal name is an alias. */
12474 #if defined __stub_shl_load || defined __stub___shl_load
12481 return shl_load ();
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_link") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && {
12500 test -z "$ac_cxx_werror_flag" ||
12501 test ! -s conftest.err
12502 } && test -s conftest$ac_exeext &&
12503 $as_test_x conftest$ac_exeext; then
12504 ac_cv_func_shl_load=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_cv_func_shl_load=no
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513 conftest$ac_exeext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12517 if test $ac_cv_func_shl_load = yes; then
12518 lt_cv_dlopen="shl_load"
12520 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12544 return shl_load ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_cxx_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_dld_shl_load=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_dld_shl_load=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12581 if test $ac_cv_lib_dld_shl_load = yes; then
12582 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12584 { echo "$as_me:$LINENO: checking for dlopen" >&5
12585 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12586 if test "${ac_cv_func_dlopen+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12597 #define dlopen innocuous_dlopen
12599 /* System header to define __stub macros and hopefully few prototypes,
12600 which can conflict with char dlopen (); below.
12601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12602 <limits.h> exists even on freestanding compilers. */
12605 # include <limits.h>
12607 # include <assert.h>
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined __stub_dlopen || defined __stub___dlopen
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_link") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_cxx_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest$ac_exeext &&
12651 $as_test_x conftest$ac_exeext; then
12652 ac_cv_func_dlopen=yes
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ac_cv_func_dlopen=no
12660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12661 conftest$ac_exeext conftest.$ac_ext
12663 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12664 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12665 if test $ac_cv_func_dlopen = yes; then
12666 lt_cv_dlopen="dlopen"
12668 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_check_lib_save_LIBS=$LIBS
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_link") 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && {
12711 test -z "$ac_cxx_werror_flag" ||
12712 test ! -s conftest.err
12713 } && test -s conftest$ac_exeext &&
12714 $as_test_x conftest$ac_exeext; then
12715 ac_cv_lib_dl_dlopen=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_cv_lib_dl_dlopen=no
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12729 if test $ac_cv_lib_dl_dlopen = yes; then
12730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12732 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12733 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12734 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lsvld $LIBS"
12739 cat >conftest.$ac_ext <<_ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12770 grep -v '^ *+' conftest.er1 >conftest.err
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } && {
12775 test -z "$ac_cxx_werror_flag" ||
12776 test ! -s conftest.err
12777 } && test -s conftest$ac_exeext &&
12778 $as_test_x conftest$ac_exeext; then
12779 ac_cv_lib_svld_dlopen=yes
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_cv_lib_svld_dlopen=no
12787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12788 conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12791 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12792 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12793 if test $ac_cv_lib_svld_dlopen = yes; then
12794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12796 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12797 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12798 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_check_lib_save_LIBS=$LIBS
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12820 return dld_link ();
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1 >conftest.err
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && {
12839 test -z "$ac_cxx_werror_flag" ||
12840 test ! -s conftest.err
12841 } && test -s conftest$ac_exeext &&
12842 $as_test_x conftest$ac_exeext; then
12843 ac_cv_lib_dld_dld_link=yes
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_cv_lib_dld_dld_link=no
12851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12852 conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12857 if test $ac_cv_lib_dld_dld_link = yes; then
12858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12879 if test "x$lt_cv_dlopen" != xno; then
12885 case $lt_cv_dlopen in
12887 save_CPPFLAGS="$CPPFLAGS"
12888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12890 save_LDFLAGS="$LDFLAGS"
12891 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12894 LIBS="$lt_cv_dlopen_libs $LIBS"
12896 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12897 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12898 if test "${lt_cv_dlopen_self+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 if test "$cross_compiling" = yes; then :
12902 lt_cv_dlopen_self=cross
12904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12905 lt_status=$lt_dlunknown
12906 cat > conftest.$ac_ext <<EOF
12907 #line 12907 "configure"
12908 #include "confdefs.h"
12917 # define LT_DLGLOBAL RTLD_GLOBAL
12920 # define LT_DLGLOBAL DL_GLOBAL
12922 # define LT_DLGLOBAL 0
12926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12927 find out it does not work in some platform. */
12928 #ifndef LT_DLLAZY_OR_NOW
12930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12933 # define LT_DLLAZY_OR_NOW DL_LAZY
12936 # define LT_DLLAZY_OR_NOW RTLD_NOW
12939 # define LT_DLLAZY_OR_NOW DL_NOW
12941 # define LT_DLLAZY_OR_NOW 0
12949 extern "C" void exit (int);
12952 void fnord() { int i=42;}
12955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12956 int status = $lt_dlunknown;
12960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12962 /* dlclose (self); */
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969 (eval $ac_link) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12973 (./conftest; exit; ) 2>/dev/null
12975 case x$lt_status in
12976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12978 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12981 # compilation failed
12982 lt_cv_dlopen_self=no
12989 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12990 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12992 if test "x$lt_cv_dlopen_self" = xyes; then
12993 LDFLAGS="$LDFLAGS $link_static_flag"
12994 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12995 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12996 if test "${lt_cv_dlopen_self_static+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 if test "$cross_compiling" = yes; then :
13000 lt_cv_dlopen_self_static=cross
13002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13003 lt_status=$lt_dlunknown
13004 cat > conftest.$ac_ext <<EOF
13005 #line 13005 "configure"
13006 #include "confdefs.h"
13015 # define LT_DLGLOBAL RTLD_GLOBAL
13018 # define LT_DLGLOBAL DL_GLOBAL
13020 # define LT_DLGLOBAL 0
13024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13025 find out it does not work in some platform. */
13026 #ifndef LT_DLLAZY_OR_NOW
13028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13031 # define LT_DLLAZY_OR_NOW DL_LAZY
13034 # define LT_DLLAZY_OR_NOW RTLD_NOW
13037 # define LT_DLLAZY_OR_NOW DL_NOW
13039 # define LT_DLLAZY_OR_NOW 0
13047 extern "C" void exit (int);
13050 void fnord() { int i=42;}
13053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13054 int status = $lt_dlunknown;
13058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13060 /* dlclose (self); */
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13071 (./conftest; exit; ) 2>/dev/null
13073 case x$lt_status in
13074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13076 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13079 # compilation failed
13080 lt_cv_dlopen_self_static=no
13087 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13088 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13091 CPPFLAGS="$save_CPPFLAGS"
13092 LDFLAGS="$save_LDFLAGS"
13097 case $lt_cv_dlopen_self in
13098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13099 *) enable_dlopen_self=unknown ;;
13102 case $lt_cv_dlopen_self_static in
13103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13104 *) enable_dlopen_self_static=unknown ;;
13109 # The else clause should only fire when bootstrapping the
13110 # libtool distribution, otherwise you forgot to ship ltmain.sh
13111 # with your package, and you will get complaints that there are
13112 # no rules to generate ltmain.sh.
13113 if test -f "$ltmain"; then
13114 # See if we are running on zsh, and set the options which allow our commands through
13115 # without removal of \ escapes.
13116 if test -n "${ZSH_VERSION+set}" ; then
13117 setopt NO_GLOB_SUBST
13119 # Now quote all the things that may contain metacharacters while being
13120 # careful not to overquote the AC_SUBSTed values. We take copies of the
13121 # variables and quote the copies for generation of the libtool script.
13122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13126 deplibs_check_method reload_flag reload_cmds need_locks \
13127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13128 lt_cv_sys_global_symbol_to_c_name_address \
13129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13130 old_postinstall_cmds old_postuninstall_cmds \
13134 lt_prog_compiler_wl_CXX \
13135 lt_prog_compiler_pic_CXX \
13136 lt_prog_compiler_static_CXX \
13137 lt_prog_compiler_no_builtin_flag_CXX \
13138 export_dynamic_flag_spec_CXX \
13139 thread_safe_flag_spec_CXX \
13140 whole_archive_flag_spec_CXX \
13141 enable_shared_with_static_runtimes_CXX \
13142 old_archive_cmds_CXX \
13143 old_archive_from_new_cmds_CXX \
13144 predep_objects_CXX \
13145 postdep_objects_CXX \
13148 compiler_lib_search_path_CXX \
13150 archive_expsym_cmds_CXX \
13151 postinstall_cmds_CXX \
13152 postuninstall_cmds_CXX \
13153 old_archive_from_expsyms_cmds_CXX \
13154 allow_undefined_flag_CXX \
13155 no_undefined_flag_CXX \
13156 export_symbols_cmds_CXX \
13157 hardcode_libdir_flag_spec_CXX \
13158 hardcode_libdir_flag_spec_ld_CXX \
13159 hardcode_libdir_separator_CXX \
13160 hardcode_automatic_CXX \
13162 module_expsym_cmds_CXX \
13163 lt_cv_prog_compiler_c_o_CXX \
13164 exclude_expsyms_CXX \
13165 include_expsyms_CXX; do
13168 old_archive_cmds_CXX | \
13169 old_archive_from_new_cmds_CXX | \
13170 archive_cmds_CXX | \
13171 archive_expsym_cmds_CXX | \
13172 module_cmds_CXX | \
13173 module_expsym_cmds_CXX | \
13174 old_archive_from_expsyms_cmds_CXX | \
13175 export_symbols_cmds_CXX | \
13176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13177 postinstall_cmds | postuninstall_cmds | \
13178 old_postinstall_cmds | old_postuninstall_cmds | \
13179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13180 # Double-quote double-evaled strings.
13181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13190 *'\$0 --fallback-echo"')
13191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13197 cat <<__EOF__ >> "$cfgfile"
13198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13202 # Shell to use when invoking shell scripts.
13205 # Whether or not to build shared libraries.
13206 build_libtool_libs=$enable_shared
13208 # Whether or not to build static libraries.
13209 build_old_libs=$enable_static
13211 # Whether or not to add -lc for building shared libraries.
13212 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13214 # Whether or not to disallow shared libs when runtime libs are static
13215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13217 # Whether or not to optimize for fast installation.
13218 fast_install=$enable_fast_install
13221 host_alias=$host_alias
13224 # An echo program that does not interpret backslashes.
13229 AR_FLAGS=$lt_AR_FLAGS
13234 # A language-specific compiler.
13235 CC=$lt_compiler_CXX
13237 # Is the compiler the GNU C compiler?
13243 # The linker used to build libraries.
13246 # Whether we need hard or soft links.
13249 # A BSD-compatible nm program.
13252 # A symbol stripping program
13255 # Used to examine libraries when file_magic_cmd begins "file"
13256 MAGIC_CMD=$MAGIC_CMD
13258 # Used on cygwin: DLL creation program.
13261 # Used on cygwin: object dumper.
13264 # Used on cygwin: assembler.
13267 # The name of the directory that contains temporary libtool files.
13270 # How to create reloadable object files.
13271 reload_flag=$lt_reload_flag
13272 reload_cmds=$lt_reload_cmds
13274 # How to pass a linker flag through the compiler.
13275 wl=$lt_lt_prog_compiler_wl_CXX
13277 # Object file suffix (normally "o").
13278 objext="$ac_objext"
13280 # Old archive suffix (normally "a").
13283 # Shared library suffix (normally ".so").
13284 shrext_cmds='$shrext_cmds'
13286 # Executable file suffix (normally "").
13289 # Additional compiler flags for building library objects.
13290 pic_flag=$lt_lt_prog_compiler_pic_CXX
13293 # What is the maximum length of a command?
13294 max_cmd_len=$lt_cv_sys_max_cmd_len
13296 # Does compiler simultaneously support -c and -o options?
13297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13299 # Must we lock files when doing compilation ?
13300 need_locks=$lt_need_locks
13302 # Do we need the lib prefix for modules?
13303 need_lib_prefix=$need_lib_prefix
13305 # Do we need a version for libraries?
13306 need_version=$need_version
13308 # Whether dlopen is supported.
13309 dlopen_support=$enable_dlopen
13311 # Whether dlopen of programs is supported.
13312 dlopen_self=$enable_dlopen_self
13314 # Whether dlopen of statically linked programs is supported.
13315 dlopen_self_static=$enable_dlopen_self_static
13317 # Compiler flag to prevent dynamic linking.
13318 link_static_flag=$lt_lt_prog_compiler_static_CXX
13320 # Compiler flag to turn off builtin functions.
13321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13323 # Compiler flag to allow reflexive dlopens.
13324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13326 # Compiler flag to generate shared objects directly from archives.
13327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13329 # Compiler flag to generate thread-safe objects.
13330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13332 # Library versioning type.
13333 version_type=$version_type
13335 # Format of library name prefix.
13336 libname_spec=$lt_libname_spec
13338 # List of archive names. First name is the real one, the rest are links.
13339 # The last name is the one that the linker finds with -lNAME.
13340 library_names_spec=$lt_library_names_spec
13342 # The coded name of the library, if different from the real name.
13343 soname_spec=$lt_soname_spec
13345 # Commands used to build and install an old-style archive.
13347 old_archive_cmds=$lt_old_archive_cmds_CXX
13348 old_postinstall_cmds=$lt_old_postinstall_cmds
13349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13351 # Create an old-style archive from a shared archive.
13352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13354 # Create a temporary old-style archive to link instead of a shared archive.
13355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13357 # Commands used to build and install a shared archive.
13358 archive_cmds=$lt_archive_cmds_CXX
13359 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13360 postinstall_cmds=$lt_postinstall_cmds
13361 postuninstall_cmds=$lt_postuninstall_cmds
13363 # Commands used to build a loadable module (assumed same as above if empty)
13364 module_cmds=$lt_module_cmds_CXX
13365 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13367 # Commands to strip libraries.
13368 old_striplib=$lt_old_striplib
13369 striplib=$lt_striplib
13371 # Dependencies to place before the objects being linked to create a
13373 predep_objects=$lt_predep_objects_CXX
13375 # Dependencies to place after the objects being linked to create a
13377 postdep_objects=$lt_postdep_objects_CXX
13379 # Dependencies to place before the objects being linked to create a
13381 predeps=$lt_predeps_CXX
13383 # Dependencies to place after the objects being linked to create a
13385 postdeps=$lt_postdeps_CXX
13387 # The library search path used internally by the compiler when linking
13388 # a shared library.
13389 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13391 # Method to check whether dependent libraries are shared objects.
13392 deplibs_check_method=$lt_deplibs_check_method
13394 # Command to use when deplibs_check_method == file_magic.
13395 file_magic_cmd=$lt_file_magic_cmd
13397 # Flag that allows shared libraries with undefined symbols to be built.
13398 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13400 # Flag that forces no undefined symbols.
13401 no_undefined_flag=$lt_no_undefined_flag_CXX
13403 # Commands used to finish a libtool library installation in a directory.
13404 finish_cmds=$lt_finish_cmds
13406 # Same as above, but a single script fragment to be evaled but not shown.
13407 finish_eval=$lt_finish_eval
13409 # Take the output of nm and produce a listing of raw symbols and C names.
13410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13412 # Transform the output of nm in a proper C declaration
13413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13415 # Transform the output of nm in a C name address pair
13416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13418 # This is the shared library runtime path variable.
13419 runpath_var=$runpath_var
13421 # This is the shared library path variable.
13422 shlibpath_var=$shlibpath_var
13424 # Is shlibpath searched before the hard-coded library search path?
13425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13427 # How to hardcode a shared library path into an executable.
13428 hardcode_action=$hardcode_action_CXX
13430 # Whether we should hardcode library paths into libraries.
13431 hardcode_into_libs=$hardcode_into_libs
13433 # Flag to hardcode \$libdir into a binary during linking.
13434 # This must work even if \$libdir does not exist.
13435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13437 # If ld is used when linking, flag to hardcode \$libdir into
13438 # a binary during linking. This must work even if \$libdir does
13440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13442 # Whether we need a single -rpath flag with a separated argument.
13443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13446 # resulting binary.
13447 hardcode_direct=$hardcode_direct_CXX
13449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13450 # resulting binary.
13451 hardcode_minus_L=$hardcode_minus_L_CXX
13453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13454 # the resulting binary.
13455 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13457 # Set to yes if building a shared library automatically hardcodes DIR into the library
13458 # and all subsequent libraries and executables linked against it.
13459 hardcode_automatic=$hardcode_automatic_CXX
13461 # Variables whose values should be saved in libtool wrapper scripts and
13462 # restored at relink time.
13463 variables_saved_for_relink="$variables_saved_for_relink"
13465 # Whether libtool must link a program against all its dependency libraries.
13466 link_all_deplibs=$link_all_deplibs_CXX
13468 # Compile-time system search path for libraries
13469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13471 # Run-time system search path for libraries
13472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13474 # Fix the shell variable \$srcfile for the compiler.
13475 fix_srcfile_path="$fix_srcfile_path_CXX"
13477 # Set to yes if exported symbols are required.
13478 always_export_symbols=$always_export_symbols_CXX
13480 # The commands to list exported symbols.
13481 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13483 # The commands to extract the exported symbol list from a shared archive.
13484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13486 # Symbols that should not be listed in the preloaded symbols.
13487 exclude_expsyms=$lt_exclude_expsyms_CXX
13489 # Symbols that must always be exported.
13490 include_expsyms=$lt_include_expsyms_CXX
13492 # ### END LIBTOOL TAG CONFIG: $tagname
13498 # If there is no Makefile yet, we rely on a make rule to execute
13499 # `config.status --recheck' to rerun these tests and create the
13500 # libtool script then.
13501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13502 if test -f "$ltmain_in"; then
13503 test -f Makefile && make "$ltmain"
13509 ac_cpp='$CPP $CPPFLAGS'
13510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13518 with_gnu_ldcxx=$with_gnu_ld
13519 with_gnu_ld=$lt_save_with_gnu_ld
13520 lt_cv_path_LDCXX=$lt_cv_path_LD
13521 lt_cv_path_LD=$lt_save_path_LD
13522 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13523 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13531 if test -n "$F77" && test "X$F77" != "Xno"; then
13534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13539 archive_cmds_need_lc_F77=no
13540 allow_undefined_flag_F77=
13541 always_export_symbols_F77=no
13542 archive_expsym_cmds_F77=
13543 export_dynamic_flag_spec_F77=
13544 hardcode_direct_F77=no
13545 hardcode_libdir_flag_spec_F77=
13546 hardcode_libdir_flag_spec_ld_F77=
13547 hardcode_libdir_separator_F77=
13548 hardcode_minus_L_F77=no
13549 hardcode_automatic_F77=no
13551 module_expsym_cmds_F77=
13552 link_all_deplibs_F77=unknown
13553 old_archive_cmds_F77=$old_archive_cmds
13554 no_undefined_flag_F77=
13555 whole_archive_flag_spec_F77=
13556 enable_shared_with_static_runtimes_F77=no
13558 # Source file extension for f77 test sources.
13561 # Object file extension for compiled f77 test sources.
13565 # Code to be used in simple compile tests
13566 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13568 # Code to be used in simple link tests
13569 lt_simple_link_test_code=" program t\n end\n"
13571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13573 # If no C compiler was specified, use CC.
13576 # Allow CC to be a program name with arguments.
13580 # Allow CC to be a program name with arguments.
13585 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13587 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13588 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13589 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13590 echo "${ECHO_T}$can_build_shared" >&6; }
13592 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13593 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13594 test "$can_build_shared" = "no" && enable_shared=no
13596 # On AIX, shared libraries and static libraries use the same namespace, and
13597 # are all built from PIC.
13600 test "$enable_shared" = yes && enable_static=no
13601 if test -n "$RANLIB"; then
13602 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13603 postinstall_cmds='$RANLIB $lib'
13607 test "$enable_shared" = yes && enable_static=no
13610 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13611 echo "${ECHO_T}$enable_shared" >&6; }
13613 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13614 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13615 # Make sure either enable_shared or enable_static is yes.
13616 test "$enable_shared" = yes || enable_static=yes
13617 { echo "$as_me:$LINENO: result: $enable_static" >&5
13618 echo "${ECHO_T}$enable_static" >&6; }
13620 test "$ld_shlibs_F77" = no && can_build_shared=no
13625 lt_prog_compiler_wl_F77=
13626 lt_prog_compiler_pic_F77=
13627 lt_prog_compiler_static_F77=
13629 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13632 if test "$GCC" = yes; then
13633 lt_prog_compiler_wl_F77='-Wl,'
13634 lt_prog_compiler_static_F77='-static'
13638 # All AIX code is PIC.
13639 if test "$host_cpu" = ia64; then
13640 # AIX 5 now supports IA64 processor
13641 lt_prog_compiler_static_F77='-Bstatic'
13646 # FIXME: we need at least 68020 code to build shared libraries, but
13647 # adding the `-m68020' flag to GCC prevents building anything better,
13649 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13652 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13653 # PIC is the default for these OSes.
13656 mingw* | pw32* | os2*)
13657 # This hack is so that the source file can tell whether it is being
13658 # built for inclusion in a dll (and should export symbols for example).
13659 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13662 darwin* | rhapsody*)
13663 # PIC is the default on this platform
13664 # Common symbols not allowed in MH_DYLIB files
13665 lt_prog_compiler_pic_F77='-fno-common'
13669 # Just because we use GCC doesn't mean we suddenly get shared libraries
13670 # on systems that don't support them.
13671 lt_prog_compiler_can_build_shared_F77=no
13676 if test -d /usr/nec; then
13677 lt_prog_compiler_pic_F77=-Kconform_pic
13682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683 # not for PA HP-UX.
13684 case "$host_cpu" in
13689 lt_prog_compiler_pic_F77='-fPIC'
13695 lt_prog_compiler_pic_F77='-fPIC'
13699 # PORTME Check for flag to pass linker flags through the system compiler.
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_F77='-Bstatic'
13707 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13711 mingw* | pw32* | os2*)
13712 # This hack is so that the source file can tell whether it is being
13713 # built for inclusion in a dll (and should export symbols for example).
13714 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13717 hpux9* | hpux10* | hpux11*)
13718 lt_prog_compiler_wl_F77='-Wl,'
13719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13720 # not for PA HP-UX.
13721 case "$host_cpu" in
13726 lt_prog_compiler_pic_F77='+Z'
13729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13730 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13733 irix5* | irix6* | nonstopux*)
13734 lt_prog_compiler_wl_F77='-Wl,'
13735 # PIC (with -KPIC) is the default.
13736 lt_prog_compiler_static_F77='-non_shared'
13740 lt_prog_compiler_pic_F77='-KPIC'
13741 lt_prog_compiler_static_F77='-Bstatic'
13747 lt_prog_compiler_wl_F77='-Wl,'
13748 lt_prog_compiler_pic_F77='-KPIC'
13749 lt_prog_compiler_static_F77='-static'
13752 lt_prog_compiler_wl_F77='-Wl,'
13753 # All Alpha code is PIC.
13754 lt_prog_compiler_static_F77='-non_shared'
13759 osf3* | osf4* | osf5*)
13760 lt_prog_compiler_wl_F77='-Wl,'
13761 # All OSF/1 code is PIC.
13762 lt_prog_compiler_static_F77='-non_shared'
13766 lt_prog_compiler_pic_F77='-Kpic'
13767 lt_prog_compiler_static_F77='-dn'
13771 lt_prog_compiler_wl_F77='-Wl,'
13772 lt_prog_compiler_pic_F77='-KPIC'
13773 lt_prog_compiler_static_F77='-Bstatic'
13777 lt_prog_compiler_wl_F77='-Qoption ld '
13778 lt_prog_compiler_pic_F77='-PIC'
13779 lt_prog_compiler_static_F77='-Bstatic'
13782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13783 lt_prog_compiler_wl_F77='-Wl,'
13784 lt_prog_compiler_pic_F77='-KPIC'
13785 lt_prog_compiler_static_F77='-Bstatic'
13789 if test -d /usr/nec ;then
13790 lt_prog_compiler_pic_F77='-Kconform_pic'
13791 lt_prog_compiler_static_F77='-Bstatic'
13796 lt_prog_compiler_pic_F77='-pic'
13797 lt_prog_compiler_static_F77='-Bstatic'
13801 lt_prog_compiler_can_build_shared_F77=no
13806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13807 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13810 # Check to make sure the PIC flag actually works.
13812 if test -n "$lt_prog_compiler_pic_F77"; then
13814 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13816 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 lt_prog_compiler_pic_works_F77=no
13820 ac_outfile=conftest.$ac_objext
13821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13822 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 # The option is referenced via a variable to avoid confusing sed.
13828 lt_compile=`echo "$ac_compile" | $SED \
13829 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13831 -e 's:$: $lt_compiler_flag:'`
13832 (eval echo "\"\$as_me:13832: $lt_compile\"" >&5)
13833 (eval "$lt_compile" 2>conftest.err)
13835 cat conftest.err >&5
13836 echo "$as_me:13836: \$? = $ac_status" >&5
13837 if (exit $ac_status) && test -s "$ac_outfile"; then
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings
13840 if test ! -s conftest.err; then
13841 lt_prog_compiler_pic_works_F77=yes
13847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13848 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13850 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13851 case $lt_prog_compiler_pic_F77 in
13853 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13856 lt_prog_compiler_pic_F77=
13857 lt_prog_compiler_can_build_shared_F77=no
13862 # For platforms which do not support PIC, -DPIC is meaningless:
13864 lt_prog_compiler_pic_F77=
13867 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13873 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 lt_cv_prog_compiler_c_o_F77=no
13877 $rm -r conftest 2>/dev/null
13881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13883 lt_compiler_flag="-o out/conftest2.$ac_objext"
13884 # Insert the option either (1) after the last *FLAGS variable, or
13885 # (2) before a word containing "conftest.", or (3) at the end.
13886 # Note that $ac_compile itself does not contain backslashes and begins
13887 # with a dollar sign (not a hyphen), so the echo should work correctly.
13888 lt_compile=`echo "$ac_compile" | $SED \
13889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13891 -e 's:$: $lt_compiler_flag:'`
13892 (eval echo "\"\$as_me:13892: $lt_compile\"" >&5)
13893 (eval "$lt_compile" 2>out/conftest.err)
13895 cat out/conftest.err >&5
13896 echo "$as_me:13896: \$? = $ac_status" >&5
13897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13899 # The compiler can only warn and ignore the option if not recognized
13900 # So say no if there are warnings
13901 if test ! -s out/conftest.err; then
13902 lt_cv_prog_compiler_c_o_F77=yes
13907 # SGI C++ compiler will create directory out/ii_files/ for
13908 # template instantiation
13909 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13910 $rm out/* && rmdir out
13916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13920 hard_links="nottested"
13921 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13922 # do not overwrite the value of need_locks provided by the user
13923 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13929 ln conftest.a conftest.b 2>&5 || hard_links=no
13930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13931 { echo "$as_me:$LINENO: result: $hard_links" >&5
13932 echo "${ECHO_T}$hard_links" >&6; }
13933 if test "$hard_links" = no; then
13934 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13942 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13946 allow_undefined_flag_F77=
13947 enable_shared_with_static_runtimes_F77=no
13949 archive_expsym_cmds_F77=
13950 old_archive_From_new_cmds_F77=
13951 old_archive_from_expsyms_cmds_F77=
13952 export_dynamic_flag_spec_F77=
13953 whole_archive_flag_spec_F77=
13954 thread_safe_flag_spec_F77=
13955 hardcode_libdir_flag_spec_F77=
13956 hardcode_libdir_flag_spec_ld_F77=
13957 hardcode_libdir_separator_F77=
13958 hardcode_direct_F77=no
13959 hardcode_minus_L_F77=no
13960 hardcode_shlibpath_var_F77=unsupported
13961 link_all_deplibs_F77=unknown
13962 hardcode_automatic_F77=no
13964 module_expsym_cmds_F77=
13965 always_export_symbols_F77=no
13966 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13967 # include_expsyms should be a list of space-separated symbols to be *always*
13968 # included in the symbol list
13969 include_expsyms_F77=
13970 # exclude_expsyms can be an extended regexp of symbols to exclude
13971 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13972 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13973 # as well as any symbol that contains `d'.
13974 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13975 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13976 # platforms (ab)use it in PIC code, but their linkers get confused if
13977 # the symbol is explicitly referenced. Since portable code cannot
13978 # rely on this symbol name, it's probably fine to never include it in
13979 # preloaded symbol tables.
13980 extract_expsyms_cmds=
13983 cygwin* | mingw* | pw32*)
13984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13985 # When not using gcc, we currently assume that we are using
13986 # Microsoft Visual C++.
13987 if test "$GCC" != yes; then
13997 if test "$with_gnu_ld" = yes; then
13998 # If archive_cmds runs LD, not CC, wlarc should be empty
14001 # See if GNU ld supports shared libraries.
14003 aix3* | aix4* | aix5*)
14004 # On AIX/PPC, the GNU linker is very broken
14005 if test "$host_cpu" != ia64; then
14009 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14010 *** to be unable to reliably create shared libraries on AIX.
14011 *** Therefore, libtool is disabling shared libraries support. If you
14012 *** really care for shared libraries, you may want to modify your PATH
14013 *** so that a non-GNU linker is found, and then restart.
14020 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)'
14021 hardcode_libdir_flag_spec_F77='-L$libdir'
14022 hardcode_minus_L_F77=yes
14024 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14025 # that the semantics of dynamic libraries on AmigaOS, at least up
14026 # to version 4, is to share data among multiple programs linked
14027 # with the same dynamic library. Since this doesn't match the
14028 # behavior of shared libraries on other platforms, we can't use
14034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14035 allow_undefined_flag_F77=unsupported
14036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14037 # support --undefined. This deserves some investigation. FIXME
14038 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14044 cygwin* | mingw* | pw32*)
14045 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14046 # as there is no search path for DLLs.
14047 hardcode_libdir_flag_spec_F77='-L$libdir'
14048 allow_undefined_flag_F77=unsupported
14049 always_export_symbols_F77=no
14050 enable_shared_with_static_runtimes_F77=yes
14051 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14053 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14054 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14055 # If the export-symbols file already is a .def file (1st line
14056 # is EXPORTS), use it as is; otherwise, prepend...
14057 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14058 cp $export_symbols $output_objdir/$soname.def;
14060 echo EXPORTS > $output_objdir/$soname.def;
14061 cat $export_symbols >> $output_objdir/$soname.def;
14063 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14071 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14085 *** create shared libraries on Solaris systems. Therefore, libtool
14086 *** is disabling shared libraries support. We urge you to upgrade GNU
14087 *** binutils to release 2.9.1 or newer. Another option is to modify
14088 *** your PATH or compiler configuration so that the native linker is
14089 *** used, and then restart.
14092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14093 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14101 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14103 hardcode_direct_F77=yes
14104 hardcode_shlibpath_var_F77=no
14108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14109 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14110 archive_cmds_F77="$tmp_archive_cmds"
14111 supports_anon_versioning=no
14112 case `$LD -v 2>/dev/null` in
14113 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14116 *\ 2.11.*) ;; # other 2.11 versions
14117 *) supports_anon_versioning=yes ;;
14119 if test $supports_anon_versioning = yes; then
14120 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14122 $echo "local: *; };" >> $output_objdir/$libname.ver~
14123 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14125 archive_expsym_cmds_F77="$tmp_archive_cmds"
14133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14134 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14142 if test "$ld_shlibs_F77" = yes; then
14143 runpath_var=LD_RUN_PATH
14144 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14145 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14146 # ancient GNU ld didn't support --whole-archive et. al.
14147 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14148 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14150 whole_archive_flag_spec_F77=
14154 # PORTME fill in a description of your system's linker (not GNU ld)
14157 allow_undefined_flag_F77=unsupported
14158 always_export_symbols_F77=yes
14159 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'
14160 # Note: this linker hardcodes the directories in LIBPATH if there
14161 # are no directories specified by -L.
14162 hardcode_minus_L_F77=yes
14163 if test "$GCC" = yes && test -z "$link_static_flag"; then
14164 # Neither direct hardcoding nor static linking is supported with a
14166 hardcode_direct_F77=unsupported
14171 if test "$host_cpu" = ia64; then
14172 # On IA64, the linker does run time linking by default, so we don't
14173 # have to do anything special.
14174 aix_use_runtimelinking=no
14175 exp_sym_flag='-Bexport'
14178 # If we're using GNU nm, then we don't want the "-C" option.
14179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14180 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14181 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'
14183 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'
14185 aix_use_runtimelinking=no
14187 # Test if we are trying to use run time linking or normal
14188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14189 # need to do runtime linking.
14190 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14191 for ld_flag in $LDFLAGS; do
14192 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14193 aix_use_runtimelinking=yes
14199 exp_sym_flag='-bexport'
14200 no_entry_flag='-bnoentry'
14203 # When large executables or shared objects are built, AIX ld can
14204 # have problems creating the table of contents. If linking a library
14205 # or program results in "error TOC overflow" add -mminimal-toc to
14206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14209 archive_cmds_F77=''
14210 hardcode_direct_F77=yes
14211 hardcode_libdir_separator_F77=':'
14212 link_all_deplibs_F77=yes
14214 if test "$GCC" = yes; then
14215 case $host_os in aix4.012|aix4.012.*)
14216 # We only want to do this on AIX 4.2 and lower, the check
14217 # below for broken collect2 doesn't work under 4.3+
14218 collect2name=`${CC} -print-prog-name=collect2`
14219 if test -f "$collect2name" && \
14220 strings "$collect2name" | grep resolve_lib_name >/dev/null
14222 # We have reworked collect2
14223 hardcode_direct_F77=yes
14225 # We have old collect2
14226 hardcode_direct_F77=unsupported
14227 # It fails to find uninstalled libraries when the uninstalled
14228 # path is not listed in the libpath. Setting hardcode_minus_L
14229 # to unsupported forces relinking
14230 hardcode_minus_L_F77=yes
14231 hardcode_libdir_flag_spec_F77='-L$libdir'
14232 hardcode_libdir_separator_F77=
14235 shared_flag='-shared'
14238 if test "$host_cpu" = ia64; then
14239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14240 # chokes on -Wl,-G. The following line is correct:
14243 if test "$aix_use_runtimelinking" = yes; then
14244 shared_flag='${wl}-G'
14246 shared_flag='${wl}-bM:SRE'
14251 # It seems that -bexpall does not export symbols beginning with
14252 # underscore (_), so it is better to generate a list of symbols to export.
14253 always_export_symbols_F77=yes
14254 if test "$aix_use_runtimelinking" = yes; then
14255 # Warning - without using the other runtime loading flags (-brtl),
14256 # -berok will link without error, but may produce a broken library.
14257 allow_undefined_flag_F77='-berok'
14258 # Determine the default libpath from the value encoded in an empty executable.
14259 cat >conftest.$ac_ext <<_ACEOF
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_link") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_f77_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest$ac_exeext &&
14281 $as_test_x conftest$ac_exeext; then
14283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14285 # Check for a 64-bit object if we didn't find anything.
14286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14299 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14300 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"
14302 if test "$host_cpu" = ia64; then
14303 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14304 allow_undefined_flag_F77="-z nodefs"
14305 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"
14307 # Determine the default libpath from the value encoded in an empty executable.
14308 cat >conftest.$ac_ext <<_ACEOF
14313 rm -f conftest.$ac_objext conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_link") 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_f77_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest$ac_exeext &&
14330 $as_test_x conftest$ac_exeext; then
14332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14334 # Check for a 64-bit object if we didn't find anything.
14335 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; }
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14345 conftest$ac_exeext conftest.$ac_ext
14346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14348 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14349 # Warning - without using the other run time loading flags,
14350 # -berok will link without error, but may produce a broken library.
14351 no_undefined_flag_F77=' ${wl}-bernotok'
14352 allow_undefined_flag_F77=' ${wl}-berok'
14353 # -bexpall does not export symbols beginning with underscore (_)
14354 always_export_symbols_F77=yes
14355 # Exported symbols can be pulled into shared objects from archives
14356 whole_archive_flag_spec_F77=' '
14357 archive_cmds_need_lc_F77=yes
14358 # This is similar to how AIX traditionally builds it's shared libraries.
14359 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'
14365 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)'
14366 hardcode_libdir_flag_spec_F77='-L$libdir'
14367 hardcode_minus_L_F77=yes
14368 # see comment about different semantics on the GNU ld section
14373 export_dynamic_flag_spec_F77=-rdynamic
14376 cygwin* | mingw* | pw32*)
14377 # When not using gcc, we currently assume that we are using
14378 # Microsoft Visual C++.
14379 # hardcode_libdir_flag_spec is actually meaningless, as there is
14380 # no search path for DLLs.
14381 hardcode_libdir_flag_spec_F77=' '
14382 allow_undefined_flag_F77=unsupported
14383 # Tell ltmain to make .lib files, not .a files.
14385 # Tell ltmain to make .dll files, not .so files.
14387 # FIXME: Setting linknames here is a bad hack.
14388 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14389 # The linker will automatically build a .lib file if we build a DLL.
14390 old_archive_From_new_cmds_F77='true'
14391 # FIXME: Should let the user specify the lib program.
14392 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14393 fix_srcfile_path='`cygpath -w "$srcfile"`'
14394 enable_shared_with_static_runtimes_F77=yes
14397 darwin* | rhapsody*)
14398 if test "$GXX" = yes ; then
14399 archive_cmds_need_lc_F77=no
14401 rhapsody* | darwin1.[012])
14402 allow_undefined_flag_F77='-undefined suppress'
14405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14406 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14408 case ${MACOSX_DEPLOYMENT_TARGET} in
14410 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14413 allow_undefined_flag_F77='-undefined dynamic_lookup'
14419 lt_int_apple_cc_single_mod=no
14420 output_verbose_link_cmd='echo'
14421 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14422 lt_int_apple_cc_single_mod=yes
14424 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14425 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14427 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'
14429 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14431 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14432 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}'
14434 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}'
14436 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}'
14437 hardcode_direct_F77=no
14438 hardcode_automatic_F77=yes
14439 hardcode_shlibpath_var_F77=unsupported
14440 whole_archive_flag_spec_F77='-all_load $convenience'
14441 link_all_deplibs_F77=yes
14448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_libdir_flag_spec_F77='-L$libdir'
14450 hardcode_shlibpath_var_F77=no
14457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14458 # support. Future versions do this automatically, but an explicit c++rt0.o
14459 # does not break anything, and helps significantly (at the cost of a little
14462 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14463 hardcode_libdir_flag_spec_F77='-R$libdir'
14464 hardcode_direct_F77=yes
14465 hardcode_shlibpath_var_F77=no
14468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14470 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14471 hardcode_direct_F77=yes
14472 hardcode_minus_L_F77=yes
14473 hardcode_shlibpath_var_F77=no
14476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14477 freebsd* | kfreebsd*-gnu)
14478 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14479 hardcode_libdir_flag_spec_F77='-R$libdir'
14480 hardcode_direct_F77=yes
14481 hardcode_shlibpath_var_F77=no
14485 if test "$GCC" = yes; then
14486 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'
14488 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'
14490 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14491 hardcode_libdir_separator_F77=:
14492 hardcode_direct_F77=yes
14494 # hardcode_minus_L: Not really in the search PATH,
14495 # but as the default location of the library.
14496 hardcode_minus_L_F77=yes
14497 export_dynamic_flag_spec_F77='${wl}-E'
14501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14502 case "$host_cpu" in
14504 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14511 case "$host_cpu" in
14513 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14516 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14520 if test "$with_gnu_ld" = no; then
14521 case "$host_cpu" in
14523 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14524 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14525 hardcode_libdir_separator_F77=:
14526 hardcode_direct_F77=no
14527 hardcode_shlibpath_var_F77=no
14530 hardcode_libdir_flag_spec_F77='-L$libdir'
14531 hardcode_direct_F77=no
14532 hardcode_shlibpath_var_F77=no
14534 # hardcode_minus_L: Not really in the search PATH,
14535 # but as the default location of the library.
14536 hardcode_minus_L_F77=yes
14539 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14540 hardcode_libdir_separator_F77=:
14541 hardcode_direct_F77=yes
14542 export_dynamic_flag_spec_F77='${wl}-E'
14544 # hardcode_minus_L: Not really in the search PATH,
14545 # but as the default location of the library.
14546 hardcode_minus_L_F77=yes
14552 irix5* | irix6* | nonstopux*)
14553 if test "$GCC" = yes; then
14554 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'
14556 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'
14557 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14559 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14560 hardcode_libdir_separator_F77=:
14561 link_all_deplibs_F77=yes
14565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14568 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14570 hardcode_libdir_flag_spec_F77='-R$libdir'
14571 hardcode_direct_F77=yes
14572 hardcode_shlibpath_var_F77=no
14576 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14577 hardcode_direct_F77=yes
14578 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14579 hardcode_libdir_separator_F77=:
14580 hardcode_shlibpath_var_F77=no
14584 hardcode_direct_F77=yes
14585 hardcode_shlibpath_var_F77=no
14586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14587 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14588 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14589 export_dynamic_flag_spec_F77='${wl}-E'
14592 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14593 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14594 hardcode_libdir_flag_spec_F77='-R$libdir'
14597 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14598 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14605 hardcode_libdir_flag_spec_F77='-L$libdir'
14606 hardcode_minus_L_F77=yes
14607 allow_undefined_flag_F77=unsupported
14608 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'
14609 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14613 if test "$GCC" = yes; then
14614 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14615 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'
14617 allow_undefined_flag_F77=' -expect_unresolved \*'
14618 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'
14620 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14621 hardcode_libdir_separator_F77=:
14624 osf4* | osf5*) # as osf3* with the addition of -msym flag
14625 if test "$GCC" = yes; then
14626 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14627 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'
14628 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14630 allow_undefined_flag_F77=' -expect_unresolved \*'
14631 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'
14632 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~
14633 $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'
14635 # Both c and cxx compiler support -rpath directly
14636 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14638 hardcode_libdir_separator_F77=:
14642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_shlibpath_var_F77=no
14644 export_dynamic_flag_spec_F77='${wl}-Bexport'
14645 runpath_var=LD_RUN_PATH
14646 hardcode_runpath_var=yes
14650 no_undefined_flag_F77=' -z text'
14651 if test "$GCC" = yes; then
14652 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14654 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14656 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14657 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14661 hardcode_shlibpath_var_F77=no
14663 solaris2.[0-5] | solaris2.[0-5].*) ;;
14664 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14665 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14667 link_all_deplibs_F77=yes
14671 if test "x$host_vendor" = xsequent; then
14672 # Use $CC to link under sequent, because it throws in some extra .o
14673 # files that make .init and .fini sections work.
14674 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14676 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 hardcode_direct_F77=yes
14680 hardcode_minus_L_F77=yes
14681 hardcode_shlibpath_var_F77=no
14685 case $host_vendor in
14687 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688 hardcode_direct_F77=yes # is this really true???
14691 ## LD is ld it makes a PLAMLIB
14692 ## CC just makes a GrossModule.
14693 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14694 reload_cmds_F77='$CC -r -o $output$reload_objs'
14695 hardcode_direct_F77=no
14698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14702 runpath_var='LD_RUN_PATH'
14703 hardcode_shlibpath_var_F77=no
14707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708 hardcode_shlibpath_var_F77=no
14709 export_dynamic_flag_spec_F77='-Bexport'
14713 if test -d /usr/nec; then
14714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715 hardcode_shlibpath_var_F77=no
14716 runpath_var=LD_RUN_PATH
14717 hardcode_runpath_var=yes
14723 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14724 hardcode_direct_F77=yes
14725 hardcode_minus_L_F77=no
14726 hardcode_shlibpath_var_F77=no
14727 hardcode_runpath_var=yes
14728 runpath_var=LD_RUN_PATH
14731 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14732 no_undefined_flag_F77='${wl}-z ${wl}text'
14733 if test "$GCC" = yes; then
14734 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14736 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 runpath_var='LD_RUN_PATH'
14739 hardcode_shlibpath_var_F77=no
14743 no_undefined_flag_F77=' -z text'
14744 # $CC -shared without GNU ld will not create a library from C++
14745 # object files and a static libstdc++, better avoid it by now
14746 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14749 hardcode_libdir_flag_spec_F77=
14750 hardcode_shlibpath_var_F77=no
14751 runpath_var='LD_RUN_PATH'
14755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_libdir_flag_spec_F77='-L$libdir'
14757 hardcode_shlibpath_var_F77=no
14766 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14767 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14768 test "$ld_shlibs_F77" = no && can_build_shared=no
14770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14771 if test "$GCC" = yes; then
14772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14776 # Do we need to explicitly link libc?
14778 case "x$archive_cmds_need_lc_F77" in
14780 # Assume -lc should be added
14781 archive_cmds_need_lc_F77=yes
14783 if test "$enable_shared" = yes && test "$GCC" = yes; then
14784 case $archive_cmds_F77 in
14786 # FIXME: we may have to deal with multi-command sequences.
14789 # Test whether the compiler implicitly links with -lc since on some
14790 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14791 # to ld, don't add -lc before -lgcc.
14792 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14793 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14798 (eval $ac_compile) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } 2>conftest.err; then
14804 libobjs=conftest.$ac_objext
14806 wl=$lt_prog_compiler_wl_F77
14812 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14813 allow_undefined_flag_F77=
14814 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14815 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }
14820 archive_cmds_need_lc_F77=no
14822 archive_cmds_need_lc_F77=yes
14824 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14826 cat conftest.err 1>&5
14829 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14830 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14837 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14838 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14839 library_names_spec=
14840 libname_spec='lib$name'
14844 postuninstall_cmds=
14848 shlibpath_overrides_runpath=unknown
14850 dynamic_linker="$host_os ld.so"
14851 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14852 if test "$GCC" = yes; then
14853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14854 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14855 # if the path contains ";" then we assume it to be the separator
14856 # otherwise default to the standard path separator (i.e. ":") - it is
14857 # assumed that no part of a normal pathname contains ";" but that should
14858 # okay in the real world where ";" in dirpaths is itself problematic.
14859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14866 need_lib_prefix=unknown
14867 hardcode_into_libs=no
14869 # when you set need_version to no, make sure it does not cause -set_version
14870 # flags to be left without arguments
14871 need_version=unknown
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14877 shlibpath_var=LIBPATH
14879 # AIX 3 has no versioning support, so we append a major version to the name.
14880 soname_spec='${libname}${release}${shared_ext}$major'
14887 hardcode_into_libs=yes
14888 if test "$host_cpu" = ia64; then
14889 # AIX 5 supports IA64
14890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14891 shlibpath_var=LD_LIBRARY_PATH
14893 # With GCC up to 2.95.x, collect2 would create an import file
14894 # for dependence libraries. The import file would start with
14895 # the line `#! .'. This would cause the generated library to
14896 # depend on `.', always an invalid library. This was fixed in
14897 # development snapshots of GCC prior to 3.0.
14899 aix4 | aix4.[01] | aix4.[01].*)
14900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14902 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14905 can_build_shared=no
14909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14910 # soname into executable. Probably we can add versioning support to
14911 # collect2, so additional links can be useful in future.
14912 if test "$aix_use_runtimelinking" = yes; then
14913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14914 # instead of lib<name>.a to let people know that these are not
14915 # typical AIX shared libraries.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 # We preserve .a as extension for shared libraries through AIX4.2
14919 # and later when we are not doing run time linking.
14920 library_names_spec='${libname}${release}.a $libname.a'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LIBPATH
14928 library_names_spec='$libname.ixlibrary $libname.a'
14929 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14930 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'
14934 library_names_spec='${libname}${shared_ext}'
14935 dynamic_linker="$host_os ld.so"
14936 shlibpath_var=LIBRARY_PATH
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14948 # the default ld.so.conf also contains /usr/contrib/lib and
14949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14950 # libtool to hard-code these into programs
14953 cygwin* | mingw* | pw32*)
14954 version_type=windows
14959 case $GCC,$host_os in
14960 yes,cygwin* | yes,mingw* | yes,pw32*)
14961 library_names_spec='$libname.dll.a'
14962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14963 postinstall_cmds='base_file=`basename \${file}`~
14964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14965 dldir=$destdir/`dirname \$dlpath`~
14966 test -d \$dldir || mkdir -p \$dldir~
14967 $install_prog $dir/$dlname \$dldir/$dlname'
14968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14969 dlpath=$dir/\$dldll~
14971 shlibpath_overrides_runpath=yes
14975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14977 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14980 # MinGW DLLs use traditional 'lib' prefix
14981 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14982 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14983 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14984 # It is most probably a Windows format PATH printed by
14985 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14986 # path with ; separators, and with drive letters. We can handle the
14987 # drive letters (cygwin fileutils understands them), so leave them,
14988 # especially as we might pass files found there to a mingw objdump,
14989 # which wouldn't understand a cygwinified path. Ahh.
14990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14996 # pw32 DLLs use 'pw' prefix rather than 'lib'
14997 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15006 dynamic_linker='Win32 ld.exe'
15007 # FIXME: first we should search . and the directory the executable is in
15011 darwin* | rhapsody*)
15012 dynamic_linker="$host_os dyld"
15013 version_type=darwin
15016 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15017 soname_spec='${libname}${release}${major}$shared_ext'
15018 shlibpath_overrides_runpath=yes
15019 shlibpath_var=DYLD_LIBRARY_PATH
15020 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15021 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15022 if test "$GCC" = yes; then
15023 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"`
15025 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15027 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 shlibpath_var=LD_LIBRARY_PATH
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=no
15051 hardcode_into_libs=yes
15052 dynamic_linker='GNU ld.so'
15056 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15057 version_type=freebsd-$objformat
15058 case $version_type in
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15069 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15074 freebsd3.01* | freebsdelf3.01*)
15075 shlibpath_overrides_runpath=yes
15076 hardcode_into_libs=yes
15079 shlibpath_overrides_runpath=no
15080 hardcode_into_libs=yes
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 hardcode_into_libs=yes
15095 hpux9* | hpux10* | hpux11*)
15096 # Give a soname corresponding to the major version so that dld.sl refuses to
15097 # link against other versions.
15101 case "$host_cpu" in
15104 hardcode_into_libs=yes
15105 dynamic_linker="$host_os dld.so"
15106 shlibpath_var=LD_LIBRARY_PATH
15107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 if test "X$HPUX_IA64_MODE" = X32; then
15111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15119 hardcode_into_libs=yes
15120 dynamic_linker="$host_os dld.sl"
15121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15130 dynamic_linker="$host_os dld.sl"
15131 shlibpath_var=SHLIB_PATH
15132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15138 postinstall_cmds='chmod 555 $lib'
15141 irix5* | irix6* | nonstopux*)
15143 nonstopux*) version_type=nonstopux ;;
15145 if test "$lt_cv_prog_gnu_ld" = yes; then
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15156 irix5* | nonstopux*)
15157 libsuff= shlibsuff=
15160 case $LD in # libtool.m4 will add one of these switches to LD
15161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15162 libsuff= shlibsuff= libmagic=32-bit;;
15163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15164 libsuff=32 shlibsuff=N32 libmagic=N32;;
15165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15167 *) libsuff= shlibsuff= libmagic=never-match;;
15171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15172 shlibpath_overrides_runpath=no
15173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15175 hardcode_into_libs=yes
15178 # No shared lib support for Linux oldld, aout, or coff.
15179 linux*oldld* | linux*aout* | linux*coff*)
15183 # This must be Linux ELF.
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=no
15193 # This implies no fast_install, which is unacceptable.
15194 # Some rework will be needed to allow for fast_install
15195 # before this can be enabled.
15196 hardcode_into_libs=yes
15198 # find out which ABI we are using
15200 case "$host_cpu" in
15201 x86_64*|s390x*|powerpc64*)
15202 echo '#line 15202 "configure"' > conftest.$ac_ext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; then
15208 case `/usr/bin/file conftest.$ac_objext` in
15211 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15219 # Append ld.so.conf contents to the search path
15220 if test -f /etc/ld.so.conf; then
15221 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15222 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15225 # We used to test for /lib/ld.so.1 and disable shared libraries on
15226 # powerpc, because MkLinux only supported shared libraries with the
15227 # GNU dynamic linker. Since this was broken with cross compilers,
15228 # most powerpc-linux boxes support dynamic linking these days and
15229 # people can always --disable-shared, the test was removed, and we
15230 # assume the GNU/Linux dynamic linker is in use.
15231 dynamic_linker='GNU/Linux ld.so'
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 shlibpath_overrides_runpath=no
15242 hardcode_into_libs=yes
15243 dynamic_linker='GNU ld.so'
15250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15253 dynamic_linker='NetBSD (a.out) ld.so'
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 dynamic_linker='NetBSD ld.elf_so'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 shlibpath_overrides_runpath=yes
15261 hardcode_into_libs=yes
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=yes
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15290 openbsd2.[89] | openbsd2.[89].*)
15291 shlibpath_overrides_runpath=no
15294 shlibpath_overrides_runpath=yes
15298 shlibpath_overrides_runpath=yes
15303 libname_spec='$name'
15306 library_names_spec='$libname${shared_ext} $libname.a'
15307 dynamic_linker='OS/2 ld.exe'
15308 shlibpath_var=LIBPATH
15311 osf3* | osf4* | osf5*)
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15319 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15337 hardcode_into_libs=yes
15338 # ldd complains unless libraries are executable
15339 postinstall_cmds='chmod +x $lib'
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=yes
15348 if test "$with_gnu_ld" = yes; then
15354 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 case $host_vendor in
15361 shlibpath_overrides_runpath=no
15363 export_dynamic_flag_spec='${wl}-Blargedynsym'
15364 runpath_var=LD_RUN_PATH
15372 shlibpath_overrides_runpath=no
15373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15379 if test -d /usr/nec ;then
15381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15382 soname_spec='$libname${shared_ext}.$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 shlibpath_var=LD_LIBRARY_PATH
15398 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15399 echo "${ECHO_T}$dynamic_linker" >&6; }
15400 test "$dynamic_linker" = no && can_build_shared=no
15402 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15403 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15404 hardcode_action_F77=
15405 if test -n "$hardcode_libdir_flag_spec_F77" || \
15406 test -n "$runpath_var F77" || \
15407 test "X$hardcode_automatic_F77"="Xyes" ; then
15409 # We can hardcode non-existant directories.
15410 if test "$hardcode_direct_F77" != no &&
15411 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15412 # have to relink, otherwise we might link with an installed library
15413 # when we should be linking with a yet-to-be-installed one
15414 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15415 test "$hardcode_minus_L_F77" != no; then
15416 # Linking always hardcodes the temporary library directory.
15417 hardcode_action_F77=relink
15419 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15420 hardcode_action_F77=immediate
15423 # We cannot hardcode anything, or else we can only hardcode existing
15425 hardcode_action_F77=unsupported
15427 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15428 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15430 if test "$hardcode_action_F77" = relink; then
15431 # Fast installation is not supported
15432 enable_fast_install=no
15433 elif test "$shlibpath_overrides_runpath" = yes ||
15434 test "$enable_shared" = no; then
15435 # Fast installation is not necessary
15436 enable_fast_install=needless
15441 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15442 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15443 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15444 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15445 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15446 { echo "$as_me:$LINENO: result: yes" >&5
15447 echo "${ECHO_T}yes" >&6; }
15449 # FIXME - insert some real tests, host_os isn't really good enough
15452 if test -n "$STRIP" ; then
15453 striplib="$STRIP -x"
15454 { echo "$as_me:$LINENO: result: yes" >&5
15455 echo "${ECHO_T}yes" >&6; }
15457 { echo "$as_me:$LINENO: result: no" >&5
15458 echo "${ECHO_T}no" >&6; }
15462 { echo "$as_me:$LINENO: result: no" >&5
15463 echo "${ECHO_T}no" >&6; }
15470 # The else clause should only fire when bootstrapping the
15471 # libtool distribution, otherwise you forgot to ship ltmain.sh
15472 # with your package, and you will get complaints that there are
15473 # no rules to generate ltmain.sh.
15474 if test -f "$ltmain"; then
15475 # See if we are running on zsh, and set the options which allow our commands through
15476 # without removal of \ escapes.
15477 if test -n "${ZSH_VERSION+set}" ; then
15478 setopt NO_GLOB_SUBST
15480 # Now quote all the things that may contain metacharacters while being
15481 # careful not to overquote the AC_SUBSTed values. We take copies of the
15482 # variables and quote the copies for generation of the libtool script.
15483 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15487 deplibs_check_method reload_flag reload_cmds need_locks \
15488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15489 lt_cv_sys_global_symbol_to_c_name_address \
15490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15491 old_postinstall_cmds old_postuninstall_cmds \
15495 lt_prog_compiler_wl_F77 \
15496 lt_prog_compiler_pic_F77 \
15497 lt_prog_compiler_static_F77 \
15498 lt_prog_compiler_no_builtin_flag_F77 \
15499 export_dynamic_flag_spec_F77 \
15500 thread_safe_flag_spec_F77 \
15501 whole_archive_flag_spec_F77 \
15502 enable_shared_with_static_runtimes_F77 \
15503 old_archive_cmds_F77 \
15504 old_archive_from_new_cmds_F77 \
15505 predep_objects_F77 \
15506 postdep_objects_F77 \
15509 compiler_lib_search_path_F77 \
15511 archive_expsym_cmds_F77 \
15512 postinstall_cmds_F77 \
15513 postuninstall_cmds_F77 \
15514 old_archive_from_expsyms_cmds_F77 \
15515 allow_undefined_flag_F77 \
15516 no_undefined_flag_F77 \
15517 export_symbols_cmds_F77 \
15518 hardcode_libdir_flag_spec_F77 \
15519 hardcode_libdir_flag_spec_ld_F77 \
15520 hardcode_libdir_separator_F77 \
15521 hardcode_automatic_F77 \
15523 module_expsym_cmds_F77 \
15524 lt_cv_prog_compiler_c_o_F77 \
15525 exclude_expsyms_F77 \
15526 include_expsyms_F77; do
15529 old_archive_cmds_F77 | \
15530 old_archive_from_new_cmds_F77 | \
15531 archive_cmds_F77 | \
15532 archive_expsym_cmds_F77 | \
15533 module_cmds_F77 | \
15534 module_expsym_cmds_F77 | \
15535 old_archive_from_expsyms_cmds_F77 | \
15536 export_symbols_cmds_F77 | \
15537 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15538 postinstall_cmds | postuninstall_cmds | \
15539 old_postinstall_cmds | old_postuninstall_cmds | \
15540 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15541 # Double-quote double-evaled strings.
15542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15551 *'\$0 --fallback-echo"')
15552 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15558 cat <<__EOF__ >> "$cfgfile"
15559 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15561 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15563 # Shell to use when invoking shell scripts.
15566 # Whether or not to build shared libraries.
15567 build_libtool_libs=$enable_shared
15569 # Whether or not to build static libraries.
15570 build_old_libs=$enable_static
15572 # Whether or not to add -lc for building shared libraries.
15573 build_libtool_need_lc=$archive_cmds_need_lc_F77
15575 # Whether or not to disallow shared libs when runtime libs are static
15576 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15578 # Whether or not to optimize for fast installation.
15579 fast_install=$enable_fast_install
15582 host_alias=$host_alias
15585 # An echo program that does not interpret backslashes.
15590 AR_FLAGS=$lt_AR_FLAGS
15595 # A language-specific compiler.
15596 CC=$lt_compiler_F77
15598 # Is the compiler the GNU C compiler?
15604 # The linker used to build libraries.
15607 # Whether we need hard or soft links.
15610 # A BSD-compatible nm program.
15613 # A symbol stripping program
15616 # Used to examine libraries when file_magic_cmd begins "file"
15617 MAGIC_CMD=$MAGIC_CMD
15619 # Used on cygwin: DLL creation program.
15622 # Used on cygwin: object dumper.
15625 # Used on cygwin: assembler.
15628 # The name of the directory that contains temporary libtool files.
15631 # How to create reloadable object files.
15632 reload_flag=$lt_reload_flag
15633 reload_cmds=$lt_reload_cmds
15635 # How to pass a linker flag through the compiler.
15636 wl=$lt_lt_prog_compiler_wl_F77
15638 # Object file suffix (normally "o").
15639 objext="$ac_objext"
15641 # Old archive suffix (normally "a").
15644 # Shared library suffix (normally ".so").
15645 shrext_cmds='$shrext_cmds'
15647 # Executable file suffix (normally "").
15650 # Additional compiler flags for building library objects.
15651 pic_flag=$lt_lt_prog_compiler_pic_F77
15654 # What is the maximum length of a command?
15655 max_cmd_len=$lt_cv_sys_max_cmd_len
15657 # Does compiler simultaneously support -c and -o options?
15658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15660 # Must we lock files when doing compilation ?
15661 need_locks=$lt_need_locks
15663 # Do we need the lib prefix for modules?
15664 need_lib_prefix=$need_lib_prefix
15666 # Do we need a version for libraries?
15667 need_version=$need_version
15669 # Whether dlopen is supported.
15670 dlopen_support=$enable_dlopen
15672 # Whether dlopen of programs is supported.
15673 dlopen_self=$enable_dlopen_self
15675 # Whether dlopen of statically linked programs is supported.
15676 dlopen_self_static=$enable_dlopen_self_static
15678 # Compiler flag to prevent dynamic linking.
15679 link_static_flag=$lt_lt_prog_compiler_static_F77
15681 # Compiler flag to turn off builtin functions.
15682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15684 # Compiler flag to allow reflexive dlopens.
15685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15687 # Compiler flag to generate shared objects directly from archives.
15688 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15690 # Compiler flag to generate thread-safe objects.
15691 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15693 # Library versioning type.
15694 version_type=$version_type
15696 # Format of library name prefix.
15697 libname_spec=$lt_libname_spec
15699 # List of archive names. First name is the real one, the rest are links.
15700 # The last name is the one that the linker finds with -lNAME.
15701 library_names_spec=$lt_library_names_spec
15703 # The coded name of the library, if different from the real name.
15704 soname_spec=$lt_soname_spec
15706 # Commands used to build and install an old-style archive.
15708 old_archive_cmds=$lt_old_archive_cmds_F77
15709 old_postinstall_cmds=$lt_old_postinstall_cmds
15710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15712 # Create an old-style archive from a shared archive.
15713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15715 # Create a temporary old-style archive to link instead of a shared archive.
15716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15718 # Commands used to build and install a shared archive.
15719 archive_cmds=$lt_archive_cmds_F77
15720 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15721 postinstall_cmds=$lt_postinstall_cmds
15722 postuninstall_cmds=$lt_postuninstall_cmds
15724 # Commands used to build a loadable module (assumed same as above if empty)
15725 module_cmds=$lt_module_cmds_F77
15726 module_expsym_cmds=$lt_module_expsym_cmds_F77
15728 # Commands to strip libraries.
15729 old_striplib=$lt_old_striplib
15730 striplib=$lt_striplib
15732 # Dependencies to place before the objects being linked to create a
15734 predep_objects=$lt_predep_objects_F77
15736 # Dependencies to place after the objects being linked to create a
15738 postdep_objects=$lt_postdep_objects_F77
15740 # Dependencies to place before the objects being linked to create a
15742 predeps=$lt_predeps_F77
15744 # Dependencies to place after the objects being linked to create a
15746 postdeps=$lt_postdeps_F77
15748 # The library search path used internally by the compiler when linking
15749 # a shared library.
15750 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15752 # Method to check whether dependent libraries are shared objects.
15753 deplibs_check_method=$lt_deplibs_check_method
15755 # Command to use when deplibs_check_method == file_magic.
15756 file_magic_cmd=$lt_file_magic_cmd
15758 # Flag that allows shared libraries with undefined symbols to be built.
15759 allow_undefined_flag=$lt_allow_undefined_flag_F77
15761 # Flag that forces no undefined symbols.
15762 no_undefined_flag=$lt_no_undefined_flag_F77
15764 # Commands used to finish a libtool library installation in a directory.
15765 finish_cmds=$lt_finish_cmds
15767 # Same as above, but a single script fragment to be evaled but not shown.
15768 finish_eval=$lt_finish_eval
15770 # Take the output of nm and produce a listing of raw symbols and C names.
15771 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15773 # Transform the output of nm in a proper C declaration
15774 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15776 # Transform the output of nm in a C name address pair
15777 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15779 # This is the shared library runtime path variable.
15780 runpath_var=$runpath_var
15782 # This is the shared library path variable.
15783 shlibpath_var=$shlibpath_var
15785 # Is shlibpath searched before the hard-coded library search path?
15786 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15788 # How to hardcode a shared library path into an executable.
15789 hardcode_action=$hardcode_action_F77
15791 # Whether we should hardcode library paths into libraries.
15792 hardcode_into_libs=$hardcode_into_libs
15794 # Flag to hardcode \$libdir into a binary during linking.
15795 # This must work even if \$libdir does not exist.
15796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15798 # If ld is used when linking, flag to hardcode \$libdir into
15799 # a binary during linking. This must work even if \$libdir does
15801 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15803 # Whether we need a single -rpath flag with a separated argument.
15804 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15806 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15807 # resulting binary.
15808 hardcode_direct=$hardcode_direct_F77
15810 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15811 # resulting binary.
15812 hardcode_minus_L=$hardcode_minus_L_F77
15814 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15815 # the resulting binary.
15816 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15818 # Set to yes if building a shared library automatically hardcodes DIR into the library
15819 # and all subsequent libraries and executables linked against it.
15820 hardcode_automatic=$hardcode_automatic_F77
15822 # Variables whose values should be saved in libtool wrapper scripts and
15823 # restored at relink time.
15824 variables_saved_for_relink="$variables_saved_for_relink"
15826 # Whether libtool must link a program against all its dependency libraries.
15827 link_all_deplibs=$link_all_deplibs_F77
15829 # Compile-time system search path for libraries
15830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15832 # Run-time system search path for libraries
15833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15835 # Fix the shell variable \$srcfile for the compiler.
15836 fix_srcfile_path="$fix_srcfile_path_F77"
15838 # Set to yes if exported symbols are required.
15839 always_export_symbols=$always_export_symbols_F77
15841 # The commands to list exported symbols.
15842 export_symbols_cmds=$lt_export_symbols_cmds_F77
15844 # The commands to extract the exported symbol list from a shared archive.
15845 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15847 # Symbols that should not be listed in the preloaded symbols.
15848 exclude_expsyms=$lt_exclude_expsyms_F77
15850 # Symbols that must always be exported.
15851 include_expsyms=$lt_include_expsyms_F77
15853 # ### END LIBTOOL TAG CONFIG: $tagname
15859 # If there is no Makefile yet, we rely on a make rule to execute
15860 # `config.status --recheck' to rerun these tests and create the
15861 # libtool script then.
15862 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15863 if test -f "$ltmain_in"; then
15864 test -f Makefile && make "$ltmain"
15870 ac_cpp='$CPP $CPPFLAGS'
15871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15883 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15886 # Source file extension for Java test sources.
15889 # Object file extension for compiled Java test sources.
15893 # Code to be used in simple compile tests
15894 lt_simple_compile_test_code="class foo {}\n"
15896 # Code to be used in simple link tests
15897 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15901 # If no C compiler was specified, use CC.
15904 # Allow CC to be a program name with arguments.
15908 # Allow CC to be a program name with arguments.
15914 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15915 archive_cmds_need_lc_GCJ=no
15918 ## There is no encapsulation within the following macros, do not change
15919 ## the running order or otherwise move them around unless you know exactly
15920 ## what you are doing...
15922 lt_prog_compiler_no_builtin_flag_GCJ=
15924 if test "$GCC" = yes; then
15925 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15928 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15929 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15930 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 lt_cv_prog_compiler_rtti_exceptions=no
15934 ac_outfile=conftest.$ac_objext
15935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936 lt_compiler_flag="-fno-rtti -fno-exceptions"
15937 # Insert the option either (1) after the last *FLAGS variable, or
15938 # (2) before a word containing "conftest.", or (3) at the end.
15939 # Note that $ac_compile itself does not contain backslashes and begins
15940 # with a dollar sign (not a hyphen), so the echo should work correctly.
15941 # The option is referenced via a variable to avoid confusing sed.
15942 lt_compile=`echo "$ac_compile" | $SED \
15943 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15945 -e 's:$: $lt_compiler_flag:'`
15946 (eval echo "\"\$as_me:15946: $lt_compile\"" >&5)
15947 (eval "$lt_compile" 2>conftest.err)
15949 cat conftest.err >&5
15950 echo "$as_me:15950: \$? = $ac_status" >&5
15951 if (exit $ac_status) && test -s "$ac_outfile"; then
15952 # The compiler can only warn and ignore the option if not recognized
15953 # So say no if there are warnings
15954 if test ! -s conftest.err; then
15955 lt_cv_prog_compiler_rtti_exceptions=yes
15961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15962 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15965 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15972 lt_prog_compiler_wl_GCJ=
15973 lt_prog_compiler_pic_GCJ=
15974 lt_prog_compiler_static_GCJ=
15976 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15977 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15979 if test "$GCC" = yes; then
15980 lt_prog_compiler_wl_GCJ='-Wl,'
15981 lt_prog_compiler_static_GCJ='-static'
15985 # All AIX code is PIC.
15986 if test "$host_cpu" = ia64; then
15987 # AIX 5 now supports IA64 processor
15988 lt_prog_compiler_static_GCJ='-Bstatic'
15993 # FIXME: we need at least 68020 code to build shared libraries, but
15994 # adding the `-m68020' flag to GCC prevents building anything better,
15996 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15999 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16000 # PIC is the default for these OSes.
16003 mingw* | pw32* | os2*)
16004 # This hack is so that the source file can tell whether it is being
16005 # built for inclusion in a dll (and should export symbols for example).
16006 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16009 darwin* | rhapsody*)
16010 # PIC is the default on this platform
16011 # Common symbols not allowed in MH_DYLIB files
16012 lt_prog_compiler_pic_GCJ='-fno-common'
16016 # Just because we use GCC doesn't mean we suddenly get shared libraries
16017 # on systems that don't support them.
16018 lt_prog_compiler_can_build_shared_GCJ=no
16023 if test -d /usr/nec; then
16024 lt_prog_compiler_pic_GCJ=-Kconform_pic
16029 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16030 # not for PA HP-UX.
16031 case "$host_cpu" in
16036 lt_prog_compiler_pic_GCJ='-fPIC'
16042 lt_prog_compiler_pic_GCJ='-fPIC'
16046 # PORTME Check for flag to pass linker flags through the system compiler.
16049 lt_prog_compiler_wl_GCJ='-Wl,'
16050 if test "$host_cpu" = ia64; then
16051 # AIX 5 now supports IA64 processor
16052 lt_prog_compiler_static_GCJ='-Bstatic'
16054 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16058 mingw* | pw32* | os2*)
16059 # This hack is so that the source file can tell whether it is being
16060 # built for inclusion in a dll (and should export symbols for example).
16061 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16064 hpux9* | hpux10* | hpux11*)
16065 lt_prog_compiler_wl_GCJ='-Wl,'
16066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16067 # not for PA HP-UX.
16068 case "$host_cpu" in
16073 lt_prog_compiler_pic_GCJ='+Z'
16076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16077 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16080 irix5* | irix6* | nonstopux*)
16081 lt_prog_compiler_wl_GCJ='-Wl,'
16082 # PIC (with -KPIC) is the default.
16083 lt_prog_compiler_static_GCJ='-non_shared'
16087 lt_prog_compiler_pic_GCJ='-KPIC'
16088 lt_prog_compiler_static_GCJ='-Bstatic'
16094 lt_prog_compiler_wl_GCJ='-Wl,'
16095 lt_prog_compiler_pic_GCJ='-KPIC'
16096 lt_prog_compiler_static_GCJ='-static'
16099 lt_prog_compiler_wl_GCJ='-Wl,'
16100 # All Alpha code is PIC.
16101 lt_prog_compiler_static_GCJ='-non_shared'
16106 osf3* | osf4* | osf5*)
16107 lt_prog_compiler_wl_GCJ='-Wl,'
16108 # All OSF/1 code is PIC.
16109 lt_prog_compiler_static_GCJ='-non_shared'
16113 lt_prog_compiler_pic_GCJ='-Kpic'
16114 lt_prog_compiler_static_GCJ='-dn'
16118 lt_prog_compiler_wl_GCJ='-Wl,'
16119 lt_prog_compiler_pic_GCJ='-KPIC'
16120 lt_prog_compiler_static_GCJ='-Bstatic'
16124 lt_prog_compiler_wl_GCJ='-Qoption ld '
16125 lt_prog_compiler_pic_GCJ='-PIC'
16126 lt_prog_compiler_static_GCJ='-Bstatic'
16129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16130 lt_prog_compiler_wl_GCJ='-Wl,'
16131 lt_prog_compiler_pic_GCJ='-KPIC'
16132 lt_prog_compiler_static_GCJ='-Bstatic'
16136 if test -d /usr/nec ;then
16137 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16138 lt_prog_compiler_static_GCJ='-Bstatic'
16143 lt_prog_compiler_pic_GCJ='-pic'
16144 lt_prog_compiler_static_GCJ='-Bstatic'
16148 lt_prog_compiler_can_build_shared_GCJ=no
16153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16154 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16157 # Check to make sure the PIC flag actually works.
16159 if test -n "$lt_prog_compiler_pic_GCJ"; then
16161 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16162 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16163 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 lt_prog_compiler_pic_works_GCJ=no
16167 ac_outfile=conftest.$ac_objext
16168 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16169 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16170 # Insert the option either (1) after the last *FLAGS variable, or
16171 # (2) before a word containing "conftest.", or (3) at the end.
16172 # Note that $ac_compile itself does not contain backslashes and begins
16173 # with a dollar sign (not a hyphen), so the echo should work correctly.
16174 # The option is referenced via a variable to avoid confusing sed.
16175 lt_compile=`echo "$ac_compile" | $SED \
16176 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16178 -e 's:$: $lt_compiler_flag:'`
16179 (eval echo "\"\$as_me:16179: $lt_compile\"" >&5)
16180 (eval "$lt_compile" 2>conftest.err)
16182 cat conftest.err >&5
16183 echo "$as_me:16183: \$? = $ac_status" >&5
16184 if (exit $ac_status) && test -s "$ac_outfile"; then
16185 # The compiler can only warn and ignore the option if not recognized
16186 # So say no if there are warnings
16187 if test ! -s conftest.err; then
16188 lt_prog_compiler_pic_works_GCJ=yes
16194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16197 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16198 case $lt_prog_compiler_pic_GCJ in
16200 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16203 lt_prog_compiler_pic_GCJ=
16204 lt_prog_compiler_can_build_shared_GCJ=no
16209 # For platforms which do not support PIC, -DPIC is meaningless:
16211 lt_prog_compiler_pic_GCJ=
16214 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16218 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16220 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 lt_cv_prog_compiler_c_o_GCJ=no
16224 $rm -r conftest 2>/dev/null
16228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16230 lt_compiler_flag="-o out/conftest2.$ac_objext"
16231 # Insert the option either (1) after the last *FLAGS variable, or
16232 # (2) before a word containing "conftest.", or (3) at the end.
16233 # Note that $ac_compile itself does not contain backslashes and begins
16234 # with a dollar sign (not a hyphen), so the echo should work correctly.
16235 lt_compile=`echo "$ac_compile" | $SED \
16236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16238 -e 's:$: $lt_compiler_flag:'`
16239 (eval echo "\"\$as_me:16239: $lt_compile\"" >&5)
16240 (eval "$lt_compile" 2>out/conftest.err)
16242 cat out/conftest.err >&5
16243 echo "$as_me:16243: \$? = $ac_status" >&5
16244 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16246 # The compiler can only warn and ignore the option if not recognized
16247 # So say no if there are warnings
16248 if test ! -s out/conftest.err; then
16249 lt_cv_prog_compiler_c_o_GCJ=yes
16254 # SGI C++ compiler will create directory out/ii_files/ for
16255 # template instantiation
16256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16257 $rm out/* && rmdir out
16263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16267 hard_links="nottested"
16268 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16269 # do not overwrite the value of need_locks provided by the user
16270 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16276 ln conftest.a conftest.b 2>&5 || hard_links=no
16277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278 { echo "$as_me:$LINENO: result: $hard_links" >&5
16279 echo "${ECHO_T}$hard_links" >&6; }
16280 if test "$hard_links" = no; then
16281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16289 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16293 allow_undefined_flag_GCJ=
16294 enable_shared_with_static_runtimes_GCJ=no
16296 archive_expsym_cmds_GCJ=
16297 old_archive_From_new_cmds_GCJ=
16298 old_archive_from_expsyms_cmds_GCJ=
16299 export_dynamic_flag_spec_GCJ=
16300 whole_archive_flag_spec_GCJ=
16301 thread_safe_flag_spec_GCJ=
16302 hardcode_libdir_flag_spec_GCJ=
16303 hardcode_libdir_flag_spec_ld_GCJ=
16304 hardcode_libdir_separator_GCJ=
16305 hardcode_direct_GCJ=no
16306 hardcode_minus_L_GCJ=no
16307 hardcode_shlibpath_var_GCJ=unsupported
16308 link_all_deplibs_GCJ=unknown
16309 hardcode_automatic_GCJ=no
16311 module_expsym_cmds_GCJ=
16312 always_export_symbols_GCJ=no
16313 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16314 # include_expsyms should be a list of space-separated symbols to be *always*
16315 # included in the symbol list
16316 include_expsyms_GCJ=
16317 # exclude_expsyms can be an extended regexp of symbols to exclude
16318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16320 # as well as any symbol that contains `d'.
16321 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16323 # platforms (ab)use it in PIC code, but their linkers get confused if
16324 # the symbol is explicitly referenced. Since portable code cannot
16325 # rely on this symbol name, it's probably fine to never include it in
16326 # preloaded symbol tables.
16327 extract_expsyms_cmds=
16330 cygwin* | mingw* | pw32*)
16331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16332 # When not using gcc, we currently assume that we are using
16333 # Microsoft Visual C++.
16334 if test "$GCC" != yes; then
16344 if test "$with_gnu_ld" = yes; then
16345 # If archive_cmds runs LD, not CC, wlarc should be empty
16348 # See if GNU ld supports shared libraries.
16350 aix3* | aix4* | aix5*)
16351 # On AIX/PPC, the GNU linker is very broken
16352 if test "$host_cpu" != ia64; then
16356 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16357 *** to be unable to reliably create shared libraries on AIX.
16358 *** Therefore, libtool is disabling shared libraries support. If you
16359 *** really care for shared libraries, you may want to modify your PATH
16360 *** so that a non-GNU linker is found, and then restart.
16367 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)'
16368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16369 hardcode_minus_L_GCJ=yes
16371 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16372 # that the semantics of dynamic libraries on AmigaOS, at least up
16373 # to version 4, is to share data among multiple programs linked
16374 # with the same dynamic library. Since this doesn't match the
16375 # behavior of shared libraries on other platforms, we can't use
16381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16382 allow_undefined_flag_GCJ=unsupported
16383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16384 # support --undefined. This deserves some investigation. FIXME
16385 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 cygwin* | mingw* | pw32*)
16392 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16393 # as there is no search path for DLLs.
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 allow_undefined_flag_GCJ=unsupported
16396 always_export_symbols_GCJ=no
16397 enable_shared_with_static_runtimes_GCJ=yes
16398 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16400 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16402 # If the export-symbols file already is a .def file (1st line
16403 # is EXPORTS), use it as is; otherwise, prepend...
16404 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16405 cp $export_symbols $output_objdir/$soname.def;
16407 echo EXPORTS > $output_objdir/$soname.def;
16408 cat $export_symbols >> $output_objdir/$soname.def;
16410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16418 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16427 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16432 *** create shared libraries on Solaris systems. Therefore, libtool
16433 *** is disabling shared libraries support. We urge you to upgrade GNU
16434 *** binutils to release 2.9.1 or newer. Another option is to modify
16435 *** your PATH or compiler configuration so that the native linker is
16436 *** used, and then restart.
16439 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16440 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16441 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16448 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_direct_GCJ=yes
16451 hardcode_shlibpath_var_GCJ=no
16455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16456 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16457 archive_cmds_GCJ="$tmp_archive_cmds"
16458 supports_anon_versioning=no
16459 case `$LD -v 2>/dev/null` in
16460 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16461 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16462 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16463 *\ 2.11.*) ;; # other 2.11 versions
16464 *) supports_anon_versioning=yes ;;
16466 if test $supports_anon_versioning = yes; then
16467 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16469 $echo "local: *; };" >> $output_objdir/$libname.ver~
16470 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16472 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16489 if test "$ld_shlibs_GCJ" = yes; then
16490 runpath_var=LD_RUN_PATH
16491 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16492 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16493 # ancient GNU ld didn't support --whole-archive et. al.
16494 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16495 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16497 whole_archive_flag_spec_GCJ=
16501 # PORTME fill in a description of your system's linker (not GNU ld)
16504 allow_undefined_flag_GCJ=unsupported
16505 always_export_symbols_GCJ=yes
16506 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'
16507 # Note: this linker hardcodes the directories in LIBPATH if there
16508 # are no directories specified by -L.
16509 hardcode_minus_L_GCJ=yes
16510 if test "$GCC" = yes && test -z "$link_static_flag"; then
16511 # Neither direct hardcoding nor static linking is supported with a
16513 hardcode_direct_GCJ=unsupported
16518 if test "$host_cpu" = ia64; then
16519 # On IA64, the linker does run time linking by default, so we don't
16520 # have to do anything special.
16521 aix_use_runtimelinking=no
16522 exp_sym_flag='-Bexport'
16525 # If we're using GNU nm, then we don't want the "-C" option.
16526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16527 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16528 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'
16530 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'
16532 aix_use_runtimelinking=no
16534 # Test if we are trying to use run time linking or normal
16535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16536 # need to do runtime linking.
16537 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16538 for ld_flag in $LDFLAGS; do
16539 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16540 aix_use_runtimelinking=yes
16546 exp_sym_flag='-bexport'
16547 no_entry_flag='-bnoentry'
16550 # When large executables or shared objects are built, AIX ld can
16551 # have problems creating the table of contents. If linking a library
16552 # or program results in "error TOC overflow" add -mminimal-toc to
16553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16556 archive_cmds_GCJ=''
16557 hardcode_direct_GCJ=yes
16558 hardcode_libdir_separator_GCJ=':'
16559 link_all_deplibs_GCJ=yes
16561 if test "$GCC" = yes; then
16562 case $host_os in aix4.012|aix4.012.*)
16563 # We only want to do this on AIX 4.2 and lower, the check
16564 # below for broken collect2 doesn't work under 4.3+
16565 collect2name=`${CC} -print-prog-name=collect2`
16566 if test -f "$collect2name" && \
16567 strings "$collect2name" | grep resolve_lib_name >/dev/null
16569 # We have reworked collect2
16570 hardcode_direct_GCJ=yes
16572 # We have old collect2
16573 hardcode_direct_GCJ=unsupported
16574 # It fails to find uninstalled libraries when the uninstalled
16575 # path is not listed in the libpath. Setting hardcode_minus_L
16576 # to unsupported forces relinking
16577 hardcode_minus_L_GCJ=yes
16578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579 hardcode_libdir_separator_GCJ=
16582 shared_flag='-shared'
16585 if test "$host_cpu" = ia64; then
16586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16587 # chokes on -Wl,-G. The following line is correct:
16590 if test "$aix_use_runtimelinking" = yes; then
16591 shared_flag='${wl}-G'
16593 shared_flag='${wl}-bM:SRE'
16598 # It seems that -bexpall does not export symbols beginning with
16599 # underscore (_), so it is better to generate a list of symbols to export.
16600 always_export_symbols_GCJ=yes
16601 if test "$aix_use_runtimelinking" = yes; then
16602 # Warning - without using the other runtime loading flags (-brtl),
16603 # -berok will link without error, but may produce a broken library.
16604 allow_undefined_flag_GCJ='-berok'
16605 # Determine the default libpath from the value encoded in an empty executable.
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } && {
16635 test -z "$ac_c_werror_flag" ||
16636 test ! -s conftest.err
16637 } && test -s conftest$ac_exeext &&
16638 $as_test_x conftest$ac_exeext; then
16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16642 # Check for a 64-bit object if we didn't find anything.
16643 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; }
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653 conftest$ac_exeext conftest.$ac_ext
16654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16656 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16657 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"
16659 if test "$host_cpu" = ia64; then
16660 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16661 allow_undefined_flag_GCJ="-z nodefs"
16662 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"
16664 # Determine the default libpath from the value encoded in an empty executable.
16665 cat >conftest.$ac_ext <<_ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_link") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && {
16694 test -z "$ac_c_werror_flag" ||
16695 test ! -s conftest.err
16696 } && test -s conftest$ac_exeext &&
16697 $as_test_x conftest$ac_exeext; then
16699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16701 # Check for a 64-bit object if we didn't find anything.
16702 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; }
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712 conftest$ac_exeext conftest.$ac_ext
16713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16715 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16716 # Warning - without using the other run time loading flags,
16717 # -berok will link without error, but may produce a broken library.
16718 no_undefined_flag_GCJ=' ${wl}-bernotok'
16719 allow_undefined_flag_GCJ=' ${wl}-berok'
16720 # -bexpall does not export symbols beginning with underscore (_)
16721 always_export_symbols_GCJ=yes
16722 # Exported symbols can be pulled into shared objects from archives
16723 whole_archive_flag_spec_GCJ=' '
16724 archive_cmds_need_lc_GCJ=yes
16725 # This is similar to how AIX traditionally builds it's shared libraries.
16726 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'
16732 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)'
16733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16734 hardcode_minus_L_GCJ=yes
16735 # see comment about different semantics on the GNU ld section
16740 export_dynamic_flag_spec_GCJ=-rdynamic
16743 cygwin* | mingw* | pw32*)
16744 # When not using gcc, we currently assume that we are using
16745 # Microsoft Visual C++.
16746 # hardcode_libdir_flag_spec is actually meaningless, as there is
16747 # no search path for DLLs.
16748 hardcode_libdir_flag_spec_GCJ=' '
16749 allow_undefined_flag_GCJ=unsupported
16750 # Tell ltmain to make .lib files, not .a files.
16752 # Tell ltmain to make .dll files, not .so files.
16754 # FIXME: Setting linknames here is a bad hack.
16755 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16756 # The linker will automatically build a .lib file if we build a DLL.
16757 old_archive_From_new_cmds_GCJ='true'
16758 # FIXME: Should let the user specify the lib program.
16759 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16760 fix_srcfile_path='`cygpath -w "$srcfile"`'
16761 enable_shared_with_static_runtimes_GCJ=yes
16764 darwin* | rhapsody*)
16765 if test "$GXX" = yes ; then
16766 archive_cmds_need_lc_GCJ=no
16768 rhapsody* | darwin1.[012])
16769 allow_undefined_flag_GCJ='-undefined suppress'
16772 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16773 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16775 case ${MACOSX_DEPLOYMENT_TARGET} in
16777 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16780 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16786 lt_int_apple_cc_single_mod=no
16787 output_verbose_link_cmd='echo'
16788 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16789 lt_int_apple_cc_single_mod=yes
16791 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16792 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16794 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'
16796 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16797 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16798 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16799 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}'
16801 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}'
16803 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}'
16804 hardcode_direct_GCJ=no
16805 hardcode_automatic_GCJ=yes
16806 hardcode_shlibpath_var_GCJ=unsupported
16807 whole_archive_flag_spec_GCJ='-all_load $convenience'
16808 link_all_deplibs_GCJ=yes
16815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817 hardcode_shlibpath_var_GCJ=no
16824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16825 # support. Future versions do this automatically, but an explicit c++rt0.o
16826 # does not break anything, and helps significantly (at the cost of a little
16829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16830 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16831 hardcode_direct_GCJ=yes
16832 hardcode_shlibpath_var_GCJ=no
16835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16837 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16838 hardcode_direct_GCJ=yes
16839 hardcode_minus_L_GCJ=yes
16840 hardcode_shlibpath_var_GCJ=no
16843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16844 freebsd* | kfreebsd*-gnu)
16845 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16847 hardcode_direct_GCJ=yes
16848 hardcode_shlibpath_var_GCJ=no
16852 if test "$GCC" = yes; then
16853 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'
16855 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'
16857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16858 hardcode_libdir_separator_GCJ=:
16859 hardcode_direct_GCJ=yes
16861 # hardcode_minus_L: Not really in the search PATH,
16862 # but as the default location of the library.
16863 hardcode_minus_L_GCJ=yes
16864 export_dynamic_flag_spec_GCJ='${wl}-E'
16868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16869 case "$host_cpu" in
16871 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16878 case "$host_cpu" in
16880 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16883 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16887 if test "$with_gnu_ld" = no; then
16888 case "$host_cpu" in
16890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16891 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16892 hardcode_libdir_separator_GCJ=:
16893 hardcode_direct_GCJ=no
16894 hardcode_shlibpath_var_GCJ=no
16897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898 hardcode_direct_GCJ=no
16899 hardcode_shlibpath_var_GCJ=no
16901 # hardcode_minus_L: Not really in the search PATH,
16902 # but as the default location of the library.
16903 hardcode_minus_L_GCJ=yes
16906 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16907 hardcode_libdir_separator_GCJ=:
16908 hardcode_direct_GCJ=yes
16909 export_dynamic_flag_spec_GCJ='${wl}-E'
16911 # hardcode_minus_L: Not really in the search PATH,
16912 # but as the default location of the library.
16913 hardcode_minus_L_GCJ=yes
16919 irix5* | irix6* | nonstopux*)
16920 if test "$GCC" = yes; then
16921 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'
16923 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'
16924 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16927 hardcode_libdir_separator_GCJ=:
16928 link_all_deplibs_GCJ=yes
16932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16933 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16935 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16937 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16938 hardcode_direct_GCJ=yes
16939 hardcode_shlibpath_var_GCJ=no
16943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944 hardcode_direct_GCJ=yes
16945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16946 hardcode_libdir_separator_GCJ=:
16947 hardcode_shlibpath_var_GCJ=no
16951 hardcode_direct_GCJ=yes
16952 hardcode_shlibpath_var_GCJ=no
16953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16954 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16956 export_dynamic_flag_spec_GCJ='${wl}-E'
16959 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16964 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16973 hardcode_minus_L_GCJ=yes
16974 allow_undefined_flag_GCJ=unsupported
16975 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'
16976 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16980 if test "$GCC" = yes; then
16981 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16982 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'
16984 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16985 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'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16988 hardcode_libdir_separator_GCJ=:
16991 osf4* | osf5*) # as osf3* with the addition of -msym flag
16992 if test "$GCC" = yes; then
16993 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16994 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'
16995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16997 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16998 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'
16999 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~
17000 $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'
17002 # Both c and cxx compiler support -rpath directly
17003 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17005 hardcode_libdir_separator_GCJ=:
17009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 hardcode_shlibpath_var_GCJ=no
17011 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17012 runpath_var=LD_RUN_PATH
17013 hardcode_runpath_var=yes
17017 no_undefined_flag_GCJ=' -z text'
17018 if test "$GCC" = yes; then
17019 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17020 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17021 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17023 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17027 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17028 hardcode_shlibpath_var_GCJ=no
17030 solaris2.[0-5] | solaris2.[0-5].*) ;;
17031 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17032 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17034 link_all_deplibs_GCJ=yes
17038 if test "x$host_vendor" = xsequent; then
17039 # Use $CC to link under sequent, because it throws in some extra .o
17040 # files that make .init and .fini sections work.
17041 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17046 hardcode_direct_GCJ=yes
17047 hardcode_minus_L_GCJ=yes
17048 hardcode_shlibpath_var_GCJ=no
17052 case $host_vendor in
17054 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055 hardcode_direct_GCJ=yes # is this really true???
17058 ## LD is ld it makes a PLAMLIB
17059 ## CC just makes a GrossModule.
17060 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17061 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17062 hardcode_direct_GCJ=no
17065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17066 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17069 runpath_var='LD_RUN_PATH'
17070 hardcode_shlibpath_var_GCJ=no
17074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075 hardcode_shlibpath_var_GCJ=no
17076 export_dynamic_flag_spec_GCJ='-Bexport'
17080 if test -d /usr/nec; then
17081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_shlibpath_var_GCJ=no
17083 runpath_var=LD_RUN_PATH
17084 hardcode_runpath_var=yes
17090 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17091 hardcode_direct_GCJ=yes
17092 hardcode_minus_L_GCJ=no
17093 hardcode_shlibpath_var_GCJ=no
17094 hardcode_runpath_var=yes
17095 runpath_var=LD_RUN_PATH
17098 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17099 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17100 if test "$GCC" = yes; then
17101 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 runpath_var='LD_RUN_PATH'
17106 hardcode_shlibpath_var_GCJ=no
17110 no_undefined_flag_GCJ=' -z text'
17111 # $CC -shared without GNU ld will not create a library from C++
17112 # object files and a static libstdc++, better avoid it by now
17113 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17116 hardcode_libdir_flag_spec_GCJ=
17117 hardcode_shlibpath_var_GCJ=no
17118 runpath_var='LD_RUN_PATH'
17122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_shlibpath_var_GCJ=no
17133 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17134 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17135 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17138 if test "$GCC" = yes; then
17139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17143 # Do we need to explicitly link libc?
17145 case "x$archive_cmds_need_lc_GCJ" in
17147 # Assume -lc should be added
17148 archive_cmds_need_lc_GCJ=yes
17150 if test "$enable_shared" = yes && test "$GCC" = yes; then
17151 case $archive_cmds_GCJ in
17153 # FIXME: we may have to deal with multi-command sequences.
17156 # Test whether the compiler implicitly links with -lc since on some
17157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17158 # to ld, don't add -lc before -lgcc.
17159 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165 (eval $ac_compile) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } 2>conftest.err; then
17171 libobjs=conftest.$ac_objext
17173 wl=$lt_prog_compiler_wl_GCJ
17179 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17180 allow_undefined_flag_GCJ=
17181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17182 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }
17187 archive_cmds_need_lc_GCJ=no
17189 archive_cmds_need_lc_GCJ=yes
17191 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17193 cat conftest.err 1>&5
17196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17197 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17206 library_names_spec=
17207 libname_spec='lib$name'
17211 postuninstall_cmds=
17215 shlibpath_overrides_runpath=unknown
17217 dynamic_linker="$host_os ld.so"
17218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17219 if test "$GCC" = yes; then
17220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17221 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17222 # if the path contains ";" then we assume it to be the separator
17223 # otherwise default to the standard path separator (i.e. ":") - it is
17224 # assumed that no part of a normal pathname contains ";" but that should
17225 # okay in the real world where ";" in dirpaths is itself problematic.
17226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17233 need_lib_prefix=unknown
17234 hardcode_into_libs=no
17236 # when you set need_version to no, make sure it does not cause -set_version
17237 # flags to be left without arguments
17238 need_version=unknown
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17244 shlibpath_var=LIBPATH
17246 # AIX 3 has no versioning support, so we append a major version to the name.
17247 soname_spec='${libname}${release}${shared_ext}$major'
17254 hardcode_into_libs=yes
17255 if test "$host_cpu" = ia64; then
17256 # AIX 5 supports IA64
17257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17258 shlibpath_var=LD_LIBRARY_PATH
17260 # With GCC up to 2.95.x, collect2 would create an import file
17261 # for dependence libraries. The import file would start with
17262 # the line `#! .'. This would cause the generated library to
17263 # depend on `.', always an invalid library. This was fixed in
17264 # development snapshots of GCC prior to 3.0.
17266 aix4 | aix4.[01] | aix4.[01].*)
17267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17272 can_build_shared=no
17276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17277 # soname into executable. Probably we can add versioning support to
17278 # collect2, so additional links can be useful in future.
17279 if test "$aix_use_runtimelinking" = yes; then
17280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17281 # instead of lib<name>.a to let people know that these are not
17282 # typical AIX shared libraries.
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 # We preserve .a as extension for shared libraries through AIX4.2
17286 # and later when we are not doing run time linking.
17287 library_names_spec='${libname}${release}.a $libname.a'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LIBPATH
17295 library_names_spec='$libname.ixlibrary $libname.a'
17296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17297 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'
17301 library_names_spec='${libname}${shared_ext}'
17302 dynamic_linker="$host_os ld.so"
17303 shlibpath_var=LIBRARY_PATH
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17315 # the default ld.so.conf also contains /usr/contrib/lib and
17316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17317 # libtool to hard-code these into programs
17320 cygwin* | mingw* | pw32*)
17321 version_type=windows
17326 case $GCC,$host_os in
17327 yes,cygwin* | yes,mingw* | yes,pw32*)
17328 library_names_spec='$libname.dll.a'
17329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17330 postinstall_cmds='base_file=`basename \${file}`~
17331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17332 dldir=$destdir/`dirname \$dlpath`~
17333 test -d \$dldir || mkdir -p \$dldir~
17334 $install_prog $dir/$dlname \$dldir/$dlname'
17335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17336 dlpath=$dir/\$dldll~
17338 shlibpath_overrides_runpath=yes
17342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17347 # MinGW DLLs use traditional 'lib' prefix
17348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17351 # It is most probably a Windows format PATH printed by
17352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17353 # path with ; separators, and with drive letters. We can handle the
17354 # drive letters (cygwin fileutils understands them), so leave them,
17355 # especially as we might pass files found there to a mingw objdump,
17356 # which wouldn't understand a cygwinified path. Ahh.
17357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17363 # pw32 DLLs use 'pw' prefix rather than 'lib'
17364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17373 dynamic_linker='Win32 ld.exe'
17374 # FIXME: first we should search . and the directory the executable is in
17378 darwin* | rhapsody*)
17379 dynamic_linker="$host_os dyld"
17380 version_type=darwin
17383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17384 soname_spec='${libname}${release}${major}$shared_ext'
17385 shlibpath_overrides_runpath=yes
17386 shlibpath_var=DYLD_LIBRARY_PATH
17387 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17389 if test "$GCC" = yes; then
17390 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"`
17392 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 shlibpath_overrides_runpath=no
17418 hardcode_into_libs=yes
17419 dynamic_linker='GNU ld.so'
17423 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17424 version_type=freebsd-$objformat
17425 case $version_type in
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17436 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17441 freebsd3.01* | freebsdelf3.01*)
17442 shlibpath_overrides_runpath=yes
17443 hardcode_into_libs=yes
17446 shlibpath_overrides_runpath=no
17447 hardcode_into_libs=yes
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 hardcode_into_libs=yes
17462 hpux9* | hpux10* | hpux11*)
17463 # Give a soname corresponding to the major version so that dld.sl refuses to
17464 # link against other versions.
17468 case "$host_cpu" in
17471 hardcode_into_libs=yes
17472 dynamic_linker="$host_os dld.so"
17473 shlibpath_var=LD_LIBRARY_PATH
17474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 if test "X$HPUX_IA64_MODE" = X32; then
17478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17486 hardcode_into_libs=yes
17487 dynamic_linker="$host_os dld.sl"
17488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17491 soname_spec='${libname}${release}${shared_ext}$major'
17492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17497 dynamic_linker="$host_os dld.sl"
17498 shlibpath_var=SHLIB_PATH
17499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17504 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17505 postinstall_cmds='chmod 555 $lib'
17508 irix5* | irix6* | nonstopux*)
17510 nonstopux*) version_type=nonstopux ;;
17512 if test "$lt_cv_prog_gnu_ld" = yes; then
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17523 irix5* | nonstopux*)
17524 libsuff= shlibsuff=
17527 case $LD in # libtool.m4 will add one of these switches to LD
17528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17529 libsuff= shlibsuff= libmagic=32-bit;;
17530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17531 libsuff=32 shlibsuff=N32 libmagic=N32;;
17532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17534 *) libsuff= shlibsuff= libmagic=never-match;;
17538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17539 shlibpath_overrides_runpath=no
17540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17542 hardcode_into_libs=yes
17545 # No shared lib support for Linux oldld, aout, or coff.
17546 linux*oldld* | linux*aout* | linux*coff*)
17550 # This must be Linux ELF.
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=no
17560 # This implies no fast_install, which is unacceptable.
17561 # Some rework will be needed to allow for fast_install
17562 # before this can be enabled.
17563 hardcode_into_libs=yes
17565 # find out which ABI we are using
17567 case "$host_cpu" in
17568 x86_64*|s390x*|powerpc64*)
17569 echo '#line 17569 "configure"' > conftest.$ac_ext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17571 (eval $ac_compile) 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; then
17575 case `/usr/bin/file conftest.$ac_objext` in
17578 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17586 # Append ld.so.conf contents to the search path
17587 if test -f /etc/ld.so.conf; then
17588 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17589 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17592 # We used to test for /lib/ld.so.1 and disable shared libraries on
17593 # powerpc, because MkLinux only supported shared libraries with the
17594 # GNU dynamic linker. Since this was broken with cross compilers,
17595 # most powerpc-linux boxes support dynamic linking these days and
17596 # people can always --disable-shared, the test was removed, and we
17597 # assume the GNU/Linux dynamic linker is in use.
17598 dynamic_linker='GNU/Linux ld.so'
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 shlibpath_var=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath=no
17609 hardcode_into_libs=yes
17610 dynamic_linker='GNU ld.so'
17617 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17620 dynamic_linker='NetBSD (a.out) ld.so'
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 dynamic_linker='NetBSD ld.elf_so'
17626 shlibpath_var=LD_LIBRARY_PATH
17627 shlibpath_overrides_runpath=yes
17628 hardcode_into_libs=yes
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 shlibpath_overrides_runpath=yes
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 soname_spec='${libname}${release}${shared_ext}$major'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=yes
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17657 openbsd2.[89] | openbsd2.[89].*)
17658 shlibpath_overrides_runpath=no
17661 shlibpath_overrides_runpath=yes
17665 shlibpath_overrides_runpath=yes
17670 libname_spec='$name'
17673 library_names_spec='$libname${shared_ext} $libname.a'
17674 dynamic_linker='OS/2 ld.exe'
17675 shlibpath_var=LIBPATH
17678 osf3* | osf4* | osf5*)
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693 shlibpath_var=LD_LIBRARY_PATH
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 shlibpath_var=LD_LIBRARY_PATH
17703 shlibpath_overrides_runpath=yes
17704 hardcode_into_libs=yes
17705 # ldd complains unless libraries are executable
17706 postinstall_cmds='chmod +x $lib'
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=yes
17715 if test "$with_gnu_ld" = yes; then
17721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 case $host_vendor in
17728 shlibpath_overrides_runpath=no
17730 export_dynamic_flag_spec='${wl}-Blargedynsym'
17731 runpath_var=LD_RUN_PATH
17739 shlibpath_overrides_runpath=no
17740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17746 if test -d /usr/nec ;then
17748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17749 soname_spec='$libname${shared_ext}.$major'
17750 shlibpath_var=LD_LIBRARY_PATH
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757 soname_spec='${libname}${release}${shared_ext}$major'
17758 shlibpath_var=LD_LIBRARY_PATH
17765 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17766 echo "${ECHO_T}$dynamic_linker" >&6; }
17767 test "$dynamic_linker" = no && can_build_shared=no
17769 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17770 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17771 hardcode_action_GCJ=
17772 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17773 test -n "$runpath_var GCJ" || \
17774 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17776 # We can hardcode non-existant directories.
17777 if test "$hardcode_direct_GCJ" != no &&
17778 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17779 # have to relink, otherwise we might link with an installed library
17780 # when we should be linking with a yet-to-be-installed one
17781 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17782 test "$hardcode_minus_L_GCJ" != no; then
17783 # Linking always hardcodes the temporary library directory.
17784 hardcode_action_GCJ=relink
17786 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17787 hardcode_action_GCJ=immediate
17790 # We cannot hardcode anything, or else we can only hardcode existing
17792 hardcode_action_GCJ=unsupported
17794 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17795 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17797 if test "$hardcode_action_GCJ" = relink; then
17798 # Fast installation is not supported
17799 enable_fast_install=no
17800 elif test "$shlibpath_overrides_runpath" = yes ||
17801 test "$enable_shared" = no; then
17802 # Fast installation is not necessary
17803 enable_fast_install=needless
17808 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17809 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17810 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17811 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17812 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17813 { echo "$as_me:$LINENO: result: yes" >&5
17814 echo "${ECHO_T}yes" >&6; }
17816 # FIXME - insert some real tests, host_os isn't really good enough
17819 if test -n "$STRIP" ; then
17820 striplib="$STRIP -x"
17821 { echo "$as_me:$LINENO: result: yes" >&5
17822 echo "${ECHO_T}yes" >&6; }
17824 { echo "$as_me:$LINENO: result: no" >&5
17825 echo "${ECHO_T}no" >&6; }
17829 { echo "$as_me:$LINENO: result: no" >&5
17830 echo "${ECHO_T}no" >&6; }
17835 if test "x$enable_dlopen" != xyes; then
17836 enable_dlopen=unknown
17837 enable_dlopen_self=unknown
17838 enable_dlopen_self_static=unknown
17845 lt_cv_dlopen="load_add_on"
17847 lt_cv_dlopen_self=yes
17851 lt_cv_dlopen="LoadLibrary"
17856 lt_cv_dlopen="dlopen"
17861 # if libdl is installed we need to link against it
17862 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 ac_check_lib_save_LIBS=$LIBS
17869 cat >conftest.$ac_ext <<_ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17876 /* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (ac_try="$ac_link"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_link") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } && {
17905 test -z "$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 } && test -s conftest$ac_exeext &&
17908 $as_test_x conftest$ac_exeext; then
17909 ac_cv_lib_dl_dlopen=yes
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_cv_lib_dl_dlopen=no
17917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17918 conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17923 if test $ac_cv_lib_dl_dlopen = yes; then
17924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17927 lt_cv_dlopen="dyld"
17929 lt_cv_dlopen_self=yes
17936 { echo "$as_me:$LINENO: checking for shl_load" >&5
17937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17938 if test "${ac_cv_func_shl_load+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949 #define shl_load innocuous_shl_load
17951 /* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char shl_load (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17957 # include <limits.h>
17959 # include <assert.h>
17964 /* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17971 /* The GNU C library defines this for functions which it implements
17972 to always fail with ENOSYS. Some functions are actually named
17973 something starting with __ and the normal name is an alias. */
17974 #if defined __stub_shl_load || defined __stub___shl_load
17981 return shl_load ();
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17995 grep -v '^ *+' conftest.er1 >conftest.err
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && {
18000 test -z "$ac_c_werror_flag" ||
18001 test ! -s conftest.err
18002 } && test -s conftest$ac_exeext &&
18003 $as_test_x conftest$ac_exeext; then
18004 ac_cv_func_shl_load=yes
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_cv_func_shl_load=no
18012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18013 conftest$ac_exeext conftest.$ac_ext
18015 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18016 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18017 if test $ac_cv_func_shl_load = yes; then
18018 lt_cv_dlopen="shl_load"
18020 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18021 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 ac_check_lib_save_LIBS=$LIBS
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18044 return shl_load ();
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest$ac_exeext &&
18066 $as_test_x conftest$ac_exeext; then
18067 ac_cv_lib_dld_shl_load=yes
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 ac_cv_lib_dld_shl_load=no
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076 conftest$ac_exeext conftest.$ac_ext
18077 LIBS=$ac_check_lib_save_LIBS
18079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18080 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18081 if test $ac_cv_lib_dld_shl_load = yes; then
18082 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18084 { echo "$as_me:$LINENO: checking for dlopen" >&5
18085 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18086 if test "${ac_cv_func_dlopen+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18097 #define dlopen innocuous_dlopen
18099 /* System header to define __stub macros and hopefully few prototypes,
18100 which can conflict with char dlopen (); below.
18101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102 <limits.h> exists even on freestanding compilers. */
18105 # include <limits.h>
18107 # include <assert.h>
18112 /* Override any GCC internal prototype to avoid an error.
18113 Use char because int might match the return type of a GCC
18114 builtin and then its argument prototype would still apply. */
18119 /* The GNU C library defines this for functions which it implements
18120 to always fail with ENOSYS. Some functions are actually named
18121 something starting with __ and the normal name is an alias. */
18122 #if defined __stub_dlopen || defined __stub___dlopen
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (ac_try="$ac_link"
18136 case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_link") 2>conftest.er1
18143 grep -v '^ *+' conftest.er1 >conftest.err
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } && {
18148 test -z "$ac_c_werror_flag" ||
18149 test ! -s conftest.err
18150 } && test -s conftest$ac_exeext &&
18151 $as_test_x conftest$ac_exeext; then
18152 ac_cv_func_dlopen=yes
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 ac_cv_func_dlopen=no
18160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18161 conftest$ac_exeext conftest.$ac_ext
18163 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18164 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18165 if test $ac_cv_func_dlopen = yes; then
18166 lt_cv_dlopen="dlopen"
18168 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18169 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 ac_check_lib_save_LIBS=$LIBS
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18182 /* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (ac_try="$ac_link"
18199 case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_link") 2>conftest.er1
18206 grep -v '^ *+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } && {
18211 test -z "$ac_c_werror_flag" ||
18212 test ! -s conftest.err
18213 } && test -s conftest$ac_exeext &&
18214 $as_test_x conftest$ac_exeext; then
18215 ac_cv_lib_dl_dlopen=yes
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 ac_cv_lib_dl_dlopen=no
18223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18224 conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18229 if test $ac_cv_lib_dl_dlopen = yes; then
18230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18232 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 ac_check_lib_save_LIBS=$LIBS
18238 LIBS="-lsvld $LIBS"
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (ac_try="$ac_link"
18263 case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_link") 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } && {
18275 test -z "$ac_c_werror_flag" ||
18276 test ! -s conftest.err
18277 } && test -s conftest$ac_exeext &&
18278 $as_test_x conftest$ac_exeext; then
18279 ac_cv_lib_svld_dlopen=yes
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18284 ac_cv_lib_svld_dlopen=no
18287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18288 conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18291 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18292 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18293 if test $ac_cv_lib_svld_dlopen = yes; then
18294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18296 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18297 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18298 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 ac_check_lib_save_LIBS=$LIBS
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18320 return dld_link ();
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1 >conftest.err
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } && {
18339 test -z "$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18341 } && test -s conftest$ac_exeext &&
18342 $as_test_x conftest$ac_exeext; then
18343 ac_cv_lib_dld_dld_link=yes
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_cv_lib_dld_dld_link=no
18351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18352 conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18356 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18357 if test $ac_cv_lib_dld_dld_link = yes; then
18358 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18379 if test "x$lt_cv_dlopen" != xno; then
18385 case $lt_cv_dlopen in
18387 save_CPPFLAGS="$CPPFLAGS"
18388 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18390 save_LDFLAGS="$LDFLAGS"
18391 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18394 LIBS="$lt_cv_dlopen_libs $LIBS"
18396 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18397 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18398 if test "${lt_cv_dlopen_self+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 if test "$cross_compiling" = yes; then :
18402 lt_cv_dlopen_self=cross
18404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18405 lt_status=$lt_dlunknown
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18407 "configure"
18408 #include "confdefs.h"
18417 # define LT_DLGLOBAL RTLD_GLOBAL
18420 # define LT_DLGLOBAL DL_GLOBAL
18422 # define LT_DLGLOBAL 0
18426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18427 find out it does not work in some platform. */
18428 #ifndef LT_DLLAZY_OR_NOW
18430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18433 # define LT_DLLAZY_OR_NOW DL_LAZY
18436 # define LT_DLLAZY_OR_NOW RTLD_NOW
18439 # define LT_DLLAZY_OR_NOW DL_NOW
18441 # define LT_DLLAZY_OR_NOW 0
18449 extern "C" void exit (int);
18452 void fnord() { int i=42;}
18455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18456 int status = $lt_dlunknown;
18460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18461 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18462 /* dlclose (self); */
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18473 (./conftest; exit; ) 2>/dev/null
18475 case x$lt_status in
18476 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18477 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18478 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18481 # compilation failed
18482 lt_cv_dlopen_self=no
18489 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18490 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18492 if test "x$lt_cv_dlopen_self" = xyes; then
18493 LDFLAGS="$LDFLAGS $link_static_flag"
18494 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18495 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18496 if test "${lt_cv_dlopen_self_static+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 if test "$cross_compiling" = yes; then :
18500 lt_cv_dlopen_self_static=cross
18502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18503 lt_status=$lt_dlunknown
18504 cat > conftest.$ac_ext <<EOF
18505 #line 18505 "configure"
18506 #include "confdefs.h"
18515 # define LT_DLGLOBAL RTLD_GLOBAL
18518 # define LT_DLGLOBAL DL_GLOBAL
18520 # define LT_DLGLOBAL 0
18524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18525 find out it does not work in some platform. */
18526 #ifndef LT_DLLAZY_OR_NOW
18528 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18531 # define LT_DLLAZY_OR_NOW DL_LAZY
18534 # define LT_DLLAZY_OR_NOW RTLD_NOW
18537 # define LT_DLLAZY_OR_NOW DL_NOW
18539 # define LT_DLLAZY_OR_NOW 0
18547 extern "C" void exit (int);
18550 void fnord() { int i=42;}
18553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18554 int status = $lt_dlunknown;
18558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18559 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18560 /* dlclose (self); */
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18571 (./conftest; exit; ) 2>/dev/null
18573 case x$lt_status in
18574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18576 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18579 # compilation failed
18580 lt_cv_dlopen_self_static=no
18587 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18588 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18591 CPPFLAGS="$save_CPPFLAGS"
18592 LDFLAGS="$save_LDFLAGS"
18597 case $lt_cv_dlopen_self in
18598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18599 *) enable_dlopen_self=unknown ;;
18602 case $lt_cv_dlopen_self_static in
18603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18604 *) enable_dlopen_self_static=unknown ;;
18609 # The else clause should only fire when bootstrapping the
18610 # libtool distribution, otherwise you forgot to ship ltmain.sh
18611 # with your package, and you will get complaints that there are
18612 # no rules to generate ltmain.sh.
18613 if test -f "$ltmain"; then
18614 # See if we are running on zsh, and set the options which allow our commands through
18615 # without removal of \ escapes.
18616 if test -n "${ZSH_VERSION+set}" ; then
18617 setopt NO_GLOB_SUBST
18619 # Now quote all the things that may contain metacharacters while being
18620 # careful not to overquote the AC_SUBSTed values. We take copies of the
18621 # variables and quote the copies for generation of the libtool script.
18622 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18626 deplibs_check_method reload_flag reload_cmds need_locks \
18627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18628 lt_cv_sys_global_symbol_to_c_name_address \
18629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18630 old_postinstall_cmds old_postuninstall_cmds \
18634 lt_prog_compiler_wl_GCJ \
18635 lt_prog_compiler_pic_GCJ \
18636 lt_prog_compiler_static_GCJ \
18637 lt_prog_compiler_no_builtin_flag_GCJ \
18638 export_dynamic_flag_spec_GCJ \
18639 thread_safe_flag_spec_GCJ \
18640 whole_archive_flag_spec_GCJ \
18641 enable_shared_with_static_runtimes_GCJ \
18642 old_archive_cmds_GCJ \
18643 old_archive_from_new_cmds_GCJ \
18644 predep_objects_GCJ \
18645 postdep_objects_GCJ \
18648 compiler_lib_search_path_GCJ \
18650 archive_expsym_cmds_GCJ \
18651 postinstall_cmds_GCJ \
18652 postuninstall_cmds_GCJ \
18653 old_archive_from_expsyms_cmds_GCJ \
18654 allow_undefined_flag_GCJ \
18655 no_undefined_flag_GCJ \
18656 export_symbols_cmds_GCJ \
18657 hardcode_libdir_flag_spec_GCJ \
18658 hardcode_libdir_flag_spec_ld_GCJ \
18659 hardcode_libdir_separator_GCJ \
18660 hardcode_automatic_GCJ \
18662 module_expsym_cmds_GCJ \
18663 lt_cv_prog_compiler_c_o_GCJ \
18664 exclude_expsyms_GCJ \
18665 include_expsyms_GCJ; do
18668 old_archive_cmds_GCJ | \
18669 old_archive_from_new_cmds_GCJ | \
18670 archive_cmds_GCJ | \
18671 archive_expsym_cmds_GCJ | \
18672 module_cmds_GCJ | \
18673 module_expsym_cmds_GCJ | \
18674 old_archive_from_expsyms_cmds_GCJ | \
18675 export_symbols_cmds_GCJ | \
18676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18677 postinstall_cmds | postuninstall_cmds | \
18678 old_postinstall_cmds | old_postuninstall_cmds | \
18679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18680 # Double-quote double-evaled strings.
18681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18690 *'\$0 --fallback-echo"')
18691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18697 cat <<__EOF__ >> "$cfgfile"
18698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18702 # Shell to use when invoking shell scripts.
18705 # Whether or not to build shared libraries.
18706 build_libtool_libs=$enable_shared
18708 # Whether or not to build static libraries.
18709 build_old_libs=$enable_static
18711 # Whether or not to add -lc for building shared libraries.
18712 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18714 # Whether or not to disallow shared libs when runtime libs are static
18715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18717 # Whether or not to optimize for fast installation.
18718 fast_install=$enable_fast_install
18721 host_alias=$host_alias
18724 # An echo program that does not interpret backslashes.
18729 AR_FLAGS=$lt_AR_FLAGS
18734 # A language-specific compiler.
18735 CC=$lt_compiler_GCJ
18737 # Is the compiler the GNU C compiler?
18743 # The linker used to build libraries.
18746 # Whether we need hard or soft links.
18749 # A BSD-compatible nm program.
18752 # A symbol stripping program
18755 # Used to examine libraries when file_magic_cmd begins "file"
18756 MAGIC_CMD=$MAGIC_CMD
18758 # Used on cygwin: DLL creation program.
18761 # Used on cygwin: object dumper.
18764 # Used on cygwin: assembler.
18767 # The name of the directory that contains temporary libtool files.
18770 # How to create reloadable object files.
18771 reload_flag=$lt_reload_flag
18772 reload_cmds=$lt_reload_cmds
18774 # How to pass a linker flag through the compiler.
18775 wl=$lt_lt_prog_compiler_wl_GCJ
18777 # Object file suffix (normally "o").
18778 objext="$ac_objext"
18780 # Old archive suffix (normally "a").
18783 # Shared library suffix (normally ".so").
18784 shrext_cmds='$shrext_cmds'
18786 # Executable file suffix (normally "").
18789 # Additional compiler flags for building library objects.
18790 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18793 # What is the maximum length of a command?
18794 max_cmd_len=$lt_cv_sys_max_cmd_len
18796 # Does compiler simultaneously support -c and -o options?
18797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18799 # Must we lock files when doing compilation ?
18800 need_locks=$lt_need_locks
18802 # Do we need the lib prefix for modules?
18803 need_lib_prefix=$need_lib_prefix
18805 # Do we need a version for libraries?
18806 need_version=$need_version
18808 # Whether dlopen is supported.
18809 dlopen_support=$enable_dlopen
18811 # Whether dlopen of programs is supported.
18812 dlopen_self=$enable_dlopen_self
18814 # Whether dlopen of statically linked programs is supported.
18815 dlopen_self_static=$enable_dlopen_self_static
18817 # Compiler flag to prevent dynamic linking.
18818 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18820 # Compiler flag to turn off builtin functions.
18821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18823 # Compiler flag to allow reflexive dlopens.
18824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18826 # Compiler flag to generate shared objects directly from archives.
18827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18829 # Compiler flag to generate thread-safe objects.
18830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18832 # Library versioning type.
18833 version_type=$version_type
18835 # Format of library name prefix.
18836 libname_spec=$lt_libname_spec
18838 # List of archive names. First name is the real one, the rest are links.
18839 # The last name is the one that the linker finds with -lNAME.
18840 library_names_spec=$lt_library_names_spec
18842 # The coded name of the library, if different from the real name.
18843 soname_spec=$lt_soname_spec
18845 # Commands used to build and install an old-style archive.
18847 old_archive_cmds=$lt_old_archive_cmds_GCJ
18848 old_postinstall_cmds=$lt_old_postinstall_cmds
18849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18851 # Create an old-style archive from a shared archive.
18852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18854 # Create a temporary old-style archive to link instead of a shared archive.
18855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18857 # Commands used to build and install a shared archive.
18858 archive_cmds=$lt_archive_cmds_GCJ
18859 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18860 postinstall_cmds=$lt_postinstall_cmds
18861 postuninstall_cmds=$lt_postuninstall_cmds
18863 # Commands used to build a loadable module (assumed same as above if empty)
18864 module_cmds=$lt_module_cmds_GCJ
18865 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18867 # Commands to strip libraries.
18868 old_striplib=$lt_old_striplib
18869 striplib=$lt_striplib
18871 # Dependencies to place before the objects being linked to create a
18873 predep_objects=$lt_predep_objects_GCJ
18875 # Dependencies to place after the objects being linked to create a
18877 postdep_objects=$lt_postdep_objects_GCJ
18879 # Dependencies to place before the objects being linked to create a
18881 predeps=$lt_predeps_GCJ
18883 # Dependencies to place after the objects being linked to create a
18885 postdeps=$lt_postdeps_GCJ
18887 # The library search path used internally by the compiler when linking
18888 # a shared library.
18889 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18891 # Method to check whether dependent libraries are shared objects.
18892 deplibs_check_method=$lt_deplibs_check_method
18894 # Command to use when deplibs_check_method == file_magic.
18895 file_magic_cmd=$lt_file_magic_cmd
18897 # Flag that allows shared libraries with undefined symbols to be built.
18898 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18900 # Flag that forces no undefined symbols.
18901 no_undefined_flag=$lt_no_undefined_flag_GCJ
18903 # Commands used to finish a libtool library installation in a directory.
18904 finish_cmds=$lt_finish_cmds
18906 # Same as above, but a single script fragment to be evaled but not shown.
18907 finish_eval=$lt_finish_eval
18909 # Take the output of nm and produce a listing of raw symbols and C names.
18910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18912 # Transform the output of nm in a proper C declaration
18913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18915 # Transform the output of nm in a C name address pair
18916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18918 # This is the shared library runtime path variable.
18919 runpath_var=$runpath_var
18921 # This is the shared library path variable.
18922 shlibpath_var=$shlibpath_var
18924 # Is shlibpath searched before the hard-coded library search path?
18925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18927 # How to hardcode a shared library path into an executable.
18928 hardcode_action=$hardcode_action_GCJ
18930 # Whether we should hardcode library paths into libraries.
18931 hardcode_into_libs=$hardcode_into_libs
18933 # Flag to hardcode \$libdir into a binary during linking.
18934 # This must work even if \$libdir does not exist.
18935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18937 # If ld is used when linking, flag to hardcode \$libdir into
18938 # a binary during linking. This must work even if \$libdir does
18940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18942 # Whether we need a single -rpath flag with a separated argument.
18943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18946 # resulting binary.
18947 hardcode_direct=$hardcode_direct_GCJ
18949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18950 # resulting binary.
18951 hardcode_minus_L=$hardcode_minus_L_GCJ
18953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18954 # the resulting binary.
18955 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18957 # Set to yes if building a shared library automatically hardcodes DIR into the library
18958 # and all subsequent libraries and executables linked against it.
18959 hardcode_automatic=$hardcode_automatic_GCJ
18961 # Variables whose values should be saved in libtool wrapper scripts and
18962 # restored at relink time.
18963 variables_saved_for_relink="$variables_saved_for_relink"
18965 # Whether libtool must link a program against all its dependency libraries.
18966 link_all_deplibs=$link_all_deplibs_GCJ
18968 # Compile-time system search path for libraries
18969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18971 # Run-time system search path for libraries
18972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18974 # Fix the shell variable \$srcfile for the compiler.
18975 fix_srcfile_path="$fix_srcfile_path_GCJ"
18977 # Set to yes if exported symbols are required.
18978 always_export_symbols=$always_export_symbols_GCJ
18980 # The commands to list exported symbols.
18981 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18983 # The commands to extract the exported symbol list from a shared archive.
18984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18986 # Symbols that should not be listed in the preloaded symbols.
18987 exclude_expsyms=$lt_exclude_expsyms_GCJ
18989 # Symbols that must always be exported.
18990 include_expsyms=$lt_include_expsyms_GCJ
18992 # ### END LIBTOOL TAG CONFIG: $tagname
18998 # If there is no Makefile yet, we rely on a make rule to execute
18999 # `config.status --recheck' to rerun these tests and create the
19000 # libtool script then.
19001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19002 if test -f "$ltmain_in"; then
19003 test -f Makefile && make "$ltmain"
19009 ac_cpp='$CPP $CPPFLAGS'
19010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19024 # Source file extension for RC test sources.
19027 # Object file extension for compiled RC test sources.
19031 # Code to be used in simple compile tests
19032 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19034 # Code to be used in simple link tests
19035 lt_simple_link_test_code="$lt_simple_compile_test_code"
19037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19039 # If no C compiler was specified, use CC.
19042 # Allow CC to be a program name with arguments.
19046 # Allow CC to be a program name with arguments.
19051 lt_cv_prog_compiler_c_o_RC=yes
19053 # The else clause should only fire when bootstrapping the
19054 # libtool distribution, otherwise you forgot to ship ltmain.sh
19055 # with your package, and you will get complaints that there are
19056 # no rules to generate ltmain.sh.
19057 if test -f "$ltmain"; then
19058 # See if we are running on zsh, and set the options which allow our commands through
19059 # without removal of \ escapes.
19060 if test -n "${ZSH_VERSION+set}" ; then
19061 setopt NO_GLOB_SUBST
19063 # Now quote all the things that may contain metacharacters while being
19064 # careful not to overquote the AC_SUBSTed values. We take copies of the
19065 # variables and quote the copies for generation of the libtool script.
19066 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19070 deplibs_check_method reload_flag reload_cmds need_locks \
19071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19072 lt_cv_sys_global_symbol_to_c_name_address \
19073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19074 old_postinstall_cmds old_postuninstall_cmds \
19078 lt_prog_compiler_wl_RC \
19079 lt_prog_compiler_pic_RC \
19080 lt_prog_compiler_static_RC \
19081 lt_prog_compiler_no_builtin_flag_RC \
19082 export_dynamic_flag_spec_RC \
19083 thread_safe_flag_spec_RC \
19084 whole_archive_flag_spec_RC \
19085 enable_shared_with_static_runtimes_RC \
19086 old_archive_cmds_RC \
19087 old_archive_from_new_cmds_RC \
19088 predep_objects_RC \
19089 postdep_objects_RC \
19092 compiler_lib_search_path_RC \
19094 archive_expsym_cmds_RC \
19095 postinstall_cmds_RC \
19096 postuninstall_cmds_RC \
19097 old_archive_from_expsyms_cmds_RC \
19098 allow_undefined_flag_RC \
19099 no_undefined_flag_RC \
19100 export_symbols_cmds_RC \
19101 hardcode_libdir_flag_spec_RC \
19102 hardcode_libdir_flag_spec_ld_RC \
19103 hardcode_libdir_separator_RC \
19104 hardcode_automatic_RC \
19106 module_expsym_cmds_RC \
19107 lt_cv_prog_compiler_c_o_RC \
19108 exclude_expsyms_RC \
19109 include_expsyms_RC; do
19112 old_archive_cmds_RC | \
19113 old_archive_from_new_cmds_RC | \
19114 archive_cmds_RC | \
19115 archive_expsym_cmds_RC | \
19117 module_expsym_cmds_RC | \
19118 old_archive_from_expsyms_cmds_RC | \
19119 export_symbols_cmds_RC | \
19120 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19121 postinstall_cmds | postuninstall_cmds | \
19122 old_postinstall_cmds | old_postuninstall_cmds | \
19123 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19124 # Double-quote double-evaled strings.
19125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19134 *'\$0 --fallback-echo"')
19135 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19141 cat <<__EOF__ >> "$cfgfile"
19142 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19146 # Shell to use when invoking shell scripts.
19149 # Whether or not to build shared libraries.
19150 build_libtool_libs=$enable_shared
19152 # Whether or not to build static libraries.
19153 build_old_libs=$enable_static
19155 # Whether or not to add -lc for building shared libraries.
19156 build_libtool_need_lc=$archive_cmds_need_lc_RC
19158 # Whether or not to disallow shared libs when runtime libs are static
19159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19161 # Whether or not to optimize for fast installation.
19162 fast_install=$enable_fast_install
19165 host_alias=$host_alias
19168 # An echo program that does not interpret backslashes.
19173 AR_FLAGS=$lt_AR_FLAGS
19178 # A language-specific compiler.
19181 # Is the compiler the GNU C compiler?
19187 # The linker used to build libraries.
19190 # Whether we need hard or soft links.
19193 # A BSD-compatible nm program.
19196 # A symbol stripping program
19199 # Used to examine libraries when file_magic_cmd begins "file"
19200 MAGIC_CMD=$MAGIC_CMD
19202 # Used on cygwin: DLL creation program.
19205 # Used on cygwin: object dumper.
19208 # Used on cygwin: assembler.
19211 # The name of the directory that contains temporary libtool files.
19214 # How to create reloadable object files.
19215 reload_flag=$lt_reload_flag
19216 reload_cmds=$lt_reload_cmds
19218 # How to pass a linker flag through the compiler.
19219 wl=$lt_lt_prog_compiler_wl_RC
19221 # Object file suffix (normally "o").
19222 objext="$ac_objext"
19224 # Old archive suffix (normally "a").
19227 # Shared library suffix (normally ".so").
19228 shrext_cmds='$shrext_cmds'
19230 # Executable file suffix (normally "").
19233 # Additional compiler flags for building library objects.
19234 pic_flag=$lt_lt_prog_compiler_pic_RC
19237 # What is the maximum length of a command?
19238 max_cmd_len=$lt_cv_sys_max_cmd_len
19240 # Does compiler simultaneously support -c and -o options?
19241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19243 # Must we lock files when doing compilation ?
19244 need_locks=$lt_need_locks
19246 # Do we need the lib prefix for modules?
19247 need_lib_prefix=$need_lib_prefix
19249 # Do we need a version for libraries?
19250 need_version=$need_version
19252 # Whether dlopen is supported.
19253 dlopen_support=$enable_dlopen
19255 # Whether dlopen of programs is supported.
19256 dlopen_self=$enable_dlopen_self
19258 # Whether dlopen of statically linked programs is supported.
19259 dlopen_self_static=$enable_dlopen_self_static
19261 # Compiler flag to prevent dynamic linking.
19262 link_static_flag=$lt_lt_prog_compiler_static_RC
19264 # Compiler flag to turn off builtin functions.
19265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19267 # Compiler flag to allow reflexive dlopens.
19268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19270 # Compiler flag to generate shared objects directly from archives.
19271 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19273 # Compiler flag to generate thread-safe objects.
19274 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19276 # Library versioning type.
19277 version_type=$version_type
19279 # Format of library name prefix.
19280 libname_spec=$lt_libname_spec
19282 # List of archive names. First name is the real one, the rest are links.
19283 # The last name is the one that the linker finds with -lNAME.
19284 library_names_spec=$lt_library_names_spec
19286 # The coded name of the library, if different from the real name.
19287 soname_spec=$lt_soname_spec
19289 # Commands used to build and install an old-style archive.
19291 old_archive_cmds=$lt_old_archive_cmds_RC
19292 old_postinstall_cmds=$lt_old_postinstall_cmds
19293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19295 # Create an old-style archive from a shared archive.
19296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19298 # Create a temporary old-style archive to link instead of a shared archive.
19299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19301 # Commands used to build and install a shared archive.
19302 archive_cmds=$lt_archive_cmds_RC
19303 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19304 postinstall_cmds=$lt_postinstall_cmds
19305 postuninstall_cmds=$lt_postuninstall_cmds
19307 # Commands used to build a loadable module (assumed same as above if empty)
19308 module_cmds=$lt_module_cmds_RC
19309 module_expsym_cmds=$lt_module_expsym_cmds_RC
19311 # Commands to strip libraries.
19312 old_striplib=$lt_old_striplib
19313 striplib=$lt_striplib
19315 # Dependencies to place before the objects being linked to create a
19317 predep_objects=$lt_predep_objects_RC
19319 # Dependencies to place after the objects being linked to create a
19321 postdep_objects=$lt_postdep_objects_RC
19323 # Dependencies to place before the objects being linked to create a
19325 predeps=$lt_predeps_RC
19327 # Dependencies to place after the objects being linked to create a
19329 postdeps=$lt_postdeps_RC
19331 # The library search path used internally by the compiler when linking
19332 # a shared library.
19333 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19335 # Method to check whether dependent libraries are shared objects.
19336 deplibs_check_method=$lt_deplibs_check_method
19338 # Command to use when deplibs_check_method == file_magic.
19339 file_magic_cmd=$lt_file_magic_cmd
19341 # Flag that allows shared libraries with undefined symbols to be built.
19342 allow_undefined_flag=$lt_allow_undefined_flag_RC
19344 # Flag that forces no undefined symbols.
19345 no_undefined_flag=$lt_no_undefined_flag_RC
19347 # Commands used to finish a libtool library installation in a directory.
19348 finish_cmds=$lt_finish_cmds
19350 # Same as above, but a single script fragment to be evaled but not shown.
19351 finish_eval=$lt_finish_eval
19353 # Take the output of nm and produce a listing of raw symbols and C names.
19354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19356 # Transform the output of nm in a proper C declaration
19357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19359 # Transform the output of nm in a C name address pair
19360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19362 # This is the shared library runtime path variable.
19363 runpath_var=$runpath_var
19365 # This is the shared library path variable.
19366 shlibpath_var=$shlibpath_var
19368 # Is shlibpath searched before the hard-coded library search path?
19369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19371 # How to hardcode a shared library path into an executable.
19372 hardcode_action=$hardcode_action_RC
19374 # Whether we should hardcode library paths into libraries.
19375 hardcode_into_libs=$hardcode_into_libs
19377 # Flag to hardcode \$libdir into a binary during linking.
19378 # This must work even if \$libdir does not exist.
19379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19381 # If ld is used when linking, flag to hardcode \$libdir into
19382 # a binary during linking. This must work even if \$libdir does
19384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19386 # Whether we need a single -rpath flag with a separated argument.
19387 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19390 # resulting binary.
19391 hardcode_direct=$hardcode_direct_RC
19393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19394 # resulting binary.
19395 hardcode_minus_L=$hardcode_minus_L_RC
19397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19398 # the resulting binary.
19399 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19401 # Set to yes if building a shared library automatically hardcodes DIR into the library
19402 # and all subsequent libraries and executables linked against it.
19403 hardcode_automatic=$hardcode_automatic_RC
19405 # Variables whose values should be saved in libtool wrapper scripts and
19406 # restored at relink time.
19407 variables_saved_for_relink="$variables_saved_for_relink"
19409 # Whether libtool must link a program against all its dependency libraries.
19410 link_all_deplibs=$link_all_deplibs_RC
19412 # Compile-time system search path for libraries
19413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19415 # Run-time system search path for libraries
19416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19418 # Fix the shell variable \$srcfile for the compiler.
19419 fix_srcfile_path="$fix_srcfile_path_RC"
19421 # Set to yes if exported symbols are required.
19422 always_export_symbols=$always_export_symbols_RC
19424 # The commands to list exported symbols.
19425 export_symbols_cmds=$lt_export_symbols_cmds_RC
19427 # The commands to extract the exported symbol list from a shared archive.
19428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19430 # Symbols that should not be listed in the preloaded symbols.
19431 exclude_expsyms=$lt_exclude_expsyms_RC
19433 # Symbols that must always be exported.
19434 include_expsyms=$lt_include_expsyms_RC
19436 # ### END LIBTOOL TAG CONFIG: $tagname
19442 # If there is no Makefile yet, we rely on a make rule to execute
19443 # `config.status --recheck' to rerun these tests and create the
19444 # libtool script then.
19445 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19446 if test -f "$ltmain_in"; then
19447 test -f Makefile && make "$ltmain"
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19463 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19464 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19465 { (exit 1); exit 1; }; }
19469 # Append the new tag name to the list of available tags.
19470 if test -n "$tagname" ; then
19471 available_tags="$available_tags $tagname"
19477 # Now substitute the updated list of available tags.
19478 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19479 mv "${ofile}T" "$ofile"
19483 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19484 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19485 { (exit 1); exit 1; }; }
19491 # This can be used to rebuild libtool when needed
19492 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19494 # Always use our own libtool.
19495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19497 # Prevent multiple expansion
19519 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19520 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19521 if test -d /var/tmp; then
19522 found_tmp=/var/tmp/
19523 elif test -d /usr/tmp; then
19524 found_tmp=/usr/tmp/
19528 cat >>confdefs.h <<_ACEOF
19529 #define FOUND_TMP "${found_tmp}"
19532 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19533 echo "${ECHO_T}${found_tmp}" >&6; }
19535 { echo "$as_me:$LINENO: checking for X" >&5
19536 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19539 # Check whether --with-x was given.
19540 if test "${with_x+set}" = set; then
19544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19545 if test "x$with_x" = xno; then
19546 # The user explicitly disabled X.
19549 case $x_includes,$x_libraries in #(
19550 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19551 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19552 { (exit 1); exit 1; }; };; #(
19553 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 # One or both of the vars are not set, and there is no cached value.
19557 ac_x_includes=no ac_x_libraries=no
19558 rm -f -r conftest.dir
19559 if mkdir conftest.dir; then
19561 cat >Imakefile <<'_ACEOF'
19563 @echo incroot='${INCROOT}'
19565 @echo usrlibdir='${USRLIBDIR}'
19567 @echo libdir='${LIBDIR}'
19569 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19571 for ac_var in incroot usrlibdir libdir; do
19572 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19574 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19575 for ac_extension in a so sl; do
19576 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19577 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19578 ac_im_usrlibdir=$ac_im_libdir; break
19581 # Screen out bogus values from the imake configuration. They are
19582 # bogus both because they are the default anyway, and because
19583 # using them would break gcc on systems where it needs fixed includes.
19584 case $ac_im_incroot in
19585 /usr/include) ac_x_includes= ;;
19586 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19588 case $ac_im_usrlibdir in
19589 /usr/lib | /lib) ;;
19590 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19594 rm -f -r conftest.dir
19597 # Standard set of common directories for X headers.
19598 # Check X11 before X11Rn because it is often a symlink to the current release.
19610 /usr/local/X11/include
19611 /usr/local/X11R6/include
19612 /usr/local/X11R5/include
19613 /usr/local/X11R4/include
19615 /usr/local/include/X11
19616 /usr/local/include/X11R6
19617 /usr/local/include/X11R5
19618 /usr/local/include/X11R4
19622 /usr/XFree86/include/X11
19626 /usr/unsupported/include
19627 /usr/athena/include
19628 /usr/local/x11r5/include
19629 /usr/lpp/Xamples/include
19631 /usr/openwin/include
19632 /usr/openwin/share/include'
19634 if test "$ac_x_includes" = no; then
19635 # Guess where to find include files, by looking for Xlib.h.
19636 # First, try using that file with no special directory specified.
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 #include <X11/Xlib.h>
19645 if { (ac_try="$ac_cpp conftest.$ac_ext"
19646 case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } >/dev/null && {
19658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19659 test ! -s conftest.err
19661 # We can compile using X headers with no special include directory.
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 for ac_dir in $ac_x_header_dirs; do
19668 if test -r "$ac_dir/X11/Xlib.h"; then
19669 ac_x_includes=$ac_dir
19675 rm -f conftest.err conftest.$ac_ext
19676 fi # $ac_x_includes = no
19678 if test "$ac_x_libraries" = no; then
19679 # Check for the libraries.
19680 # See if we find them without any special options.
19681 # Don't add to $LIBS permanently.
19684 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <X11/Xlib.h>
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext &&
19716 $as_test_x conftest$ac_exeext; then
19718 # We can link X programs with no special library path.
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19727 # Don't even attempt the hair of trying to link an X program!
19728 for ac_extension in a so sl; do
19729 if test -r "$ac_dir/libX11.$ac_extension"; then
19730 ac_x_libraries=$ac_dir
19737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19738 conftest$ac_exeext conftest.$ac_ext
19739 fi # $ac_x_libraries = no
19741 case $ac_x_includes,$ac_x_libraries in #(
19742 no,* | *,no | *\'*)
19743 # Didn't find X, or a directory has "'" in its name.
19744 ac_cv_have_x="have_x=no";; #(
19746 # Record where we found X for the cache.
19747 ac_cv_have_x="have_x=yes\
19748 ac_x_includes='$ac_x_includes'\
19749 ac_x_libraries='$ac_x_libraries'"
19755 eval "$ac_cv_have_x"
19758 if test "$have_x" != yes; then
19759 { echo "$as_me:$LINENO: result: $have_x" >&5
19760 echo "${ECHO_T}$have_x" >&6; }
19763 # If each of the values was on the command line, it overrides each guess.
19764 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19765 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19766 # Update the cache value to reflect the command line values.
19767 ac_cv_have_x="have_x=yes\
19768 ac_x_includes='$x_includes'\
19769 ac_x_libraries='$x_libraries'"
19770 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19771 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19774 if test "$no_x" = yes; then
19775 # Not all programs may use this symbol, but it does not hurt to define it.
19777 cat >>confdefs.h <<\_ACEOF
19778 #define X_DISPLAY_MISSING 1
19781 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19783 if test -n "$x_includes"; then
19784 X_CFLAGS="$X_CFLAGS -I$x_includes"
19787 # It would also be nice to do this for all -L options, not just this one.
19788 if test -n "$x_libraries"; then
19789 X_LIBS="$X_LIBS -L$x_libraries"
19790 # For Solaris; some versions of Sun CC require a space after -R and
19791 # others require no space. Words are not sufficient . . . .
19792 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19793 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19794 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19795 ac_xsave_c_werror_flag=$ac_c_werror_flag
19796 ac_c_werror_flag=yes
19797 cat >conftest.$ac_ext <<_ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19812 rm -f conftest.$ac_objext conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_link") 2>conftest.er1
19821 grep -v '^ *+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest$ac_exeext &&
19829 $as_test_x conftest$ac_exeext; then
19830 { echo "$as_me:$LINENO: result: no" >&5
19831 echo "${ECHO_T}no" >&6; }
19832 X_LIBS="$X_LIBS -R$x_libraries"
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 LIBS="$ac_xsave_LIBS -R $x_libraries"
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } && {
19867 test -z "$ac_c_werror_flag" ||
19868 test ! -s conftest.err
19869 } && test -s conftest$ac_exeext &&
19870 $as_test_x conftest$ac_exeext; then
19871 { echo "$as_me:$LINENO: result: yes" >&5
19872 echo "${ECHO_T}yes" >&6; }
19873 X_LIBS="$X_LIBS -R $x_libraries"
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 { echo "$as_me:$LINENO: result: neither works" >&5
19879 echo "${ECHO_T}neither works" >&6; }
19882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19883 conftest$ac_exeext conftest.$ac_ext
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19888 ac_c_werror_flag=$ac_xsave_c_werror_flag
19889 LIBS=$ac_xsave_LIBS
19892 # Check for system-dependent libraries X programs must link with.
19893 # Do this before checking for the system-independent R6 libraries
19894 # (-lICE), since we may need -lsocket or whatever for X linking.
19896 if test "$ISC" = yes; then
19897 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19899 # Martyn Johnson says this is needed for Ultrix, if the X
19900 # libraries were built with DECnet support. And Karl Berry says
19901 # the Alpha needs dnet_stub (dnet does not exist).
19902 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19916 char XOpenDisplay ();
19920 return XOpenDisplay ();
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (ac_try="$ac_link"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_link") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest$ac_exeext &&
19942 $as_test_x conftest$ac_exeext; then
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19949 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19950 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-ldnet $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19972 return dnet_ntoa ();
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_dnet_dnet_ntoa=yes
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_dnet_dnet_ntoa=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20008 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20009 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20013 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20014 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20015 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-ldnet_stub $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20038 return dnet_ntoa ();
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
20052 grep -v '^ *+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest$ac_exeext &&
20060 $as_test_x conftest$ac_exeext; then
20061 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_dnet_stub_dnet_ntoa=no
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20074 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20075 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20076 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS="$ac_xsave_LIBS"
20086 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20087 # to get the SysV transport functions.
20088 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20090 # The nsl library prevents programs from opening the X display
20091 # on Irix 5.2, according to T.E. Dickey.
20092 # The functions gethostbyname, getservbyname, and inet_addr are
20093 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20094 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20095 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20096 if test "${ac_cv_func_gethostbyname+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20107 #define gethostbyname innocuous_gethostbyname
20109 /* System header to define __stub macros and hopefully few prototypes,
20110 which can conflict with char gethostbyname (); below.
20111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20112 <limits.h> exists even on freestanding compilers. */
20115 # include <limits.h>
20117 # include <assert.h>
20120 #undef gethostbyname
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20128 char gethostbyname ();
20129 /* The GNU C library defines this for functions which it implements
20130 to always fail with ENOSYS. Some functions are actually named
20131 something starting with __ and the normal name is an alias. */
20132 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20139 return gethostbyname ();
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_link") 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } && {
20158 test -z "$ac_c_werror_flag" ||
20159 test ! -s conftest.err
20160 } && test -s conftest$ac_exeext &&
20161 $as_test_x conftest$ac_exeext; then
20162 ac_cv_func_gethostbyname=yes
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ac_cv_func_gethostbyname=no
20170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171 conftest$ac_exeext conftest.$ac_ext
20173 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20174 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20176 if test $ac_cv_func_gethostbyname = no; then
20177 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20178 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20179 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 ac_check_lib_save_LIBS=$LIBS
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20197 char gethostbyname ();
20201 return gethostbyname ();
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
20224 ac_cv_lib_nsl_gethostbyname=yes
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ac_cv_lib_nsl_gethostbyname=no
20232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20236 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20237 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20238 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20242 if test $ac_cv_lib_nsl_gethostbyname = no; then
20243 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20244 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20245 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 ac_check_lib_save_LIBS=$LIBS
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20263 char gethostbyname ();
20267 return gethostbyname ();
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_link") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest$ac_exeext &&
20289 $as_test_x conftest$ac_exeext; then
20290 ac_cv_lib_bsd_gethostbyname=yes
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_cv_lib_bsd_gethostbyname=no
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20303 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20304 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20311 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20312 # socket/setsockopt and other routines are undefined under SCO ODT
20313 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20314 # on later versions), says Simon Leinen: it contains gethostby*
20315 # variants that don't use the name server (or something). -lsocket
20316 # must be given before -lnsl if both are needed. We assume that
20317 # if connect needs -lnsl, so does gethostbyname.
20318 { echo "$as_me:$LINENO: checking for connect" >&5
20319 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20320 if test "${ac_cv_func_connect+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20331 #define connect innocuous_connect
20333 /* System header to define __stub macros and hopefully few prototypes,
20334 which can conflict with char connect (); below.
20335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20336 <limits.h> exists even on freestanding compilers. */
20339 # include <limits.h>
20341 # include <assert.h>
20346 /* Override any GCC internal prototype to avoid an error.
20347 Use char because int might match the return type of a GCC
20348 builtin and then its argument prototype would still apply. */
20353 /* The GNU C library defines this for functions which it implements
20354 to always fail with ENOSYS. Some functions are actually named
20355 something starting with __ and the normal name is an alias. */
20356 #if defined __stub_connect || defined __stub___connect
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20377 grep -v '^ *+' conftest.er1 >conftest.err
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && {
20382 test -z "$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20384 } && test -s conftest$ac_exeext &&
20385 $as_test_x conftest$ac_exeext; then
20386 ac_cv_func_connect=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_cv_func_connect=no
20394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20395 conftest$ac_exeext conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20398 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20400 if test $ac_cv_func_connect = no; then
20401 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20402 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20403 if test "${ac_cv_lib_socket_connect+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 /* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply. */
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (ac_try="$ac_link"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_link") 2>conftest.er1
20439 grep -v '^ *+' conftest.er1 >conftest.err
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && {
20444 test -z "$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20446 } && test -s conftest$ac_exeext &&
20447 $as_test_x conftest$ac_exeext; then
20448 ac_cv_lib_socket_connect=yes
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 ac_cv_lib_socket_connect=no
20456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20457 conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20460 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20462 if test $ac_cv_lib_socket_connect = yes; then
20463 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20468 # Guillermo Gomez says -lposix is necessary on A/UX.
20469 { echo "$as_me:$LINENO: checking for remove" >&5
20470 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20471 if test "${ac_cv_func_remove+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20482 #define remove innocuous_remove
20484 /* System header to define __stub macros and hopefully few prototypes,
20485 which can conflict with char remove (); below.
20486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20487 <limits.h> exists even on freestanding compilers. */
20490 # include <limits.h>
20492 # include <assert.h>
20497 /* Override any GCC internal prototype to avoid an error.
20498 Use char because int might match the return type of a GCC
20499 builtin and then its argument prototype would still apply. */
20504 /* The GNU C library defines this for functions which it implements
20505 to always fail with ENOSYS. Some functions are actually named
20506 something starting with __ and the normal name is an alias. */
20507 #if defined __stub_remove || defined __stub___remove
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_link") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest$ac_exeext &&
20536 $as_test_x conftest$ac_exeext; then
20537 ac_cv_func_remove=yes
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 ac_cv_func_remove=no
20545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20546 conftest$ac_exeext conftest.$ac_ext
20548 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20549 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20551 if test $ac_cv_func_remove = no; then
20552 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20553 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20554 if test "${ac_cv_lib_posix_remove+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 ac_check_lib_save_LIBS=$LIBS
20558 LIBS="-lposix $LIBS"
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20566 /* Override any GCC internal prototype to avoid an error.
20567 Use char because int might match the return type of a GCC
20568 builtin and then its argument prototype would still apply. */
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (ac_try="$ac_link"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_link") 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest$ac_exeext &&
20598 $as_test_x conftest$ac_exeext; then
20599 ac_cv_lib_posix_remove=yes
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_cv_lib_posix_remove=no
20607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20608 conftest$ac_exeext conftest.$ac_ext
20609 LIBS=$ac_check_lib_save_LIBS
20611 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20612 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20613 if test $ac_cv_lib_posix_remove = yes; then
20614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20619 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20620 { echo "$as_me:$LINENO: checking for shmat" >&5
20621 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20622 if test "${ac_cv_func_shmat+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20633 #define shmat innocuous_shmat
20635 /* System header to define __stub macros and hopefully few prototypes,
20636 which can conflict with char shmat (); below.
20637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20638 <limits.h> exists even on freestanding compilers. */
20641 # include <limits.h>
20643 # include <assert.h>
20648 /* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20655 /* The GNU C library defines this for functions which it implements
20656 to always fail with ENOSYS. Some functions are actually named
20657 something starting with __ and the normal name is an alias. */
20658 #if defined __stub_shmat || defined __stub___shmat
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (ac_try="$ac_link"
20672 case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677 (eval "$ac_link") 2>conftest.er1
20679 grep -v '^ *+' conftest.er1 >conftest.err
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } && {
20684 test -z "$ac_c_werror_flag" ||
20685 test ! -s conftest.err
20686 } && test -s conftest$ac_exeext &&
20687 $as_test_x conftest$ac_exeext; then
20688 ac_cv_func_shmat=yes
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_cv_func_shmat=no
20696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20697 conftest$ac_exeext conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20700 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20702 if test $ac_cv_func_shmat = no; then
20703 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20704 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20705 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 ac_check_lib_save_LIBS=$LIBS
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20717 /* Override any GCC internal prototype to avoid an error.
20718 Use char because int might match the return type of a GCC
20719 builtin and then its argument prototype would still apply. */
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_link") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext &&
20749 $as_test_x conftest$ac_exeext; then
20750 ac_cv_lib_ipc_shmat=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_cv_lib_ipc_shmat=no
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759 conftest$ac_exeext conftest.$ac_ext
20760 LIBS=$ac_check_lib_save_LIBS
20762 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20763 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20764 if test $ac_cv_lib_ipc_shmat = yes; then
20765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20771 # Check for libraries that X11R6 Xt/Xaw programs need.
20772 ac_save_LDFLAGS=$LDFLAGS
20773 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20774 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20775 # check for ICE first), but we must link in the order -lSM -lICE or
20776 # we get undefined symbols. So assume we have SM if we have ICE.
20777 # These have to be linked with before -lX11, unlike the other
20778 # libraries we check for below, so use a different variable.
20779 # John Interrante, Karl Berry
20780 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20781 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20782 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 ac_check_lib_save_LIBS=$LIBS
20786 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20794 /* Override any GCC internal prototype to avoid an error.
20795 Use char because int might match the return type of a GCC
20796 builtin and then its argument prototype would still apply. */
20800 char IceConnectionNumber ();
20804 return IceConnectionNumber ();
20809 rm -f conftest.$ac_objext conftest$ac_exeext
20810 if { (ac_try="$ac_link"
20811 case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_link") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } && {
20823 test -z "$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20825 } && test -s conftest$ac_exeext &&
20826 $as_test_x conftest$ac_exeext; then
20827 ac_cv_lib_ICE_IceConnectionNumber=yes
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 ac_cv_lib_ICE_IceConnectionNumber=no
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
20837 LIBS=$ac_check_lib_save_LIBS
20839 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20840 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20841 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20842 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20845 LDFLAGS=$ac_save_LDFLAGS
20849 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20851 if test "${ac_cv_header_stdc+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 #include <stdlib.h>
20861 #include <stdarg.h>
20862 #include <string.h>
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_cv_header_stdc=yes
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_cv_header_stdc=no
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 if test $ac_cv_header_stdc = yes; then
20901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20902 cat >conftest.$ac_ext <<_ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20908 #include <string.h>
20911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20912 $EGREP "memchr" >/dev/null 2>&1; then
20915 ac_cv_header_stdc=no
20921 if test $ac_cv_header_stdc = yes; then
20922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <stdlib.h>
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933 $EGREP "free" >/dev/null 2>&1; then
20936 ac_cv_header_stdc=no
20942 if test $ac_cv_header_stdc = yes; then
20943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20944 if test "$cross_compiling" = yes; then
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20954 #include <stdlib.h>
20955 #if ((' ' & 0x0FF) == 0x020)
20956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20959 # define ISLOWER(c) \
20960 (('a' <= (c) && (c) <= 'i') \
20961 || ('j' <= (c) && (c) <= 'r') \
20962 || ('s' <= (c) && (c) <= 'z'))
20963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20971 for (i = 0; i < 256; i++)
20972 if (XOR (islower (i), ISLOWER (i))
20973 || toupper (i) != TOUPPER (i))
20978 rm -f conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_link") 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20989 { (case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_try") 2>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
21000 echo "$as_me: program exited with status $ac_status" >&5
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ( exit $ac_status )
21005 ac_cv_header_stdc=no
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21015 if test $ac_cv_header_stdc = yes; then
21017 cat >>confdefs.h <<\_ACEOF
21018 #define STDC_HEADERS 1
21023 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21024 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21025 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 #include <sys/types.h>
21035 #include <sys/wait.h>
21036 #ifndef WEXITSTATUS
21037 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21040 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21048 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_compile") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest.$ac_objext; then
21070 ac_cv_header_sys_wait_h=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_header_sys_wait_h=no
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21081 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21082 if test $ac_cv_header_sys_wait_h = yes; then
21084 cat >>confdefs.h <<\_ACEOF
21085 #define HAVE_SYS_WAIT_H 1
21096 for ac_header in fcntl.h paths.h sgtty.h unistd.h malloc.h term.h
21098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 ac_res=`eval echo '${'$as_ac_Header'}'`
21106 { echo "$as_me:$LINENO: result: $ac_res" >&5
21107 echo "${ECHO_T}$ac_res" >&6; }
21109 # Is the header compilable?
21110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 $ac_includes_default
21119 #include <$ac_header>
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
21138 ac_header_compiler=yes
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_compiler=no
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148 echo "${ECHO_T}$ac_header_compiler" >&6; }
21150 # Is the header present?
21151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21153 cat >conftest.$ac_ext <<_ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 #include <$ac_header>
21161 if { (ac_try="$ac_cpp conftest.$ac_ext"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } >/dev/null && {
21174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21177 ac_header_preproc=yes
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 ac_header_preproc=no
21185 rm -f conftest.err conftest.$ac_ext
21186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21187 echo "${ECHO_T}$ac_header_preproc" >&6; }
21189 # So? What about this header?
21190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21196 ac_header_preproc=yes
21199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 eval "$as_ac_Header=\$ac_header_preproc"
21221 ac_res=`eval echo '${'$as_ac_Header'}'`
21222 { echo "$as_me:$LINENO: result: $ac_res" >&5
21223 echo "${ECHO_T}$ac_res" >&6; }
21226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21227 cat >>confdefs.h <<_ACEOF
21228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21240 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 ac_res=`eval echo '${'$as_ac_Header'}'`
21250 { echo "$as_me:$LINENO: result: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21253 # Is the header compilable?
21254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 $ac_includes_default
21263 #include <$ac_header>
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest.$ac_objext; then
21282 ac_header_compiler=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_header_compiler=no
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21292 echo "${ECHO_T}$ac_header_compiler" >&6; }
21294 # Is the header present?
21295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <$ac_header>
21305 if { (ac_try="$ac_cpp conftest.$ac_ext"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21313 grep -v '^ *+' conftest.er1 >conftest.err
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } >/dev/null && {
21318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21319 test ! -s conftest.err
21321 ac_header_preproc=yes
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21326 ac_header_preproc=no
21329 rm -f conftest.err conftest.$ac_ext
21330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21331 echo "${ECHO_T}$ac_header_preproc" >&6; }
21333 # So? What about this header?
21334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21340 ac_header_preproc=yes
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 eval "$as_ac_Header=\$ac_header_preproc"
21365 ac_res=`eval echo '${'$as_ac_Header'}'`
21366 { echo "$as_me:$LINENO: result: $ac_res" >&5
21367 echo "${ECHO_T}$ac_res" >&6; }
21370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21371 cat >>confdefs.h <<_ACEOF
21372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21384 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 ac_res=`eval echo '${'$as_ac_Header'}'`
21394 { echo "$as_me:$LINENO: result: $ac_res" >&5
21395 echo "${ECHO_T}$ac_res" >&6; }
21397 # Is the header compilable?
21398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21400 cat >conftest.$ac_ext <<_ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 $ac_includes_default
21407 #include <$ac_header>
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest.$ac_objext; then
21426 ac_header_compiler=yes
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_header_compiler=no
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6; }
21438 # Is the header present?
21439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <$ac_header>
21449 if { (ac_try="$ac_cpp conftest.$ac_ext"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } >/dev/null && {
21462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21465 ac_header_preproc=yes
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ac_header_preproc=no
21473 rm -f conftest.err conftest.$ac_ext
21474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21475 echo "${ECHO_T}$ac_header_preproc" >&6; }
21477 # So? What about this header?
21478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21484 ac_header_preproc=yes
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 eval "$as_ac_Header=\$ac_header_preproc"
21509 ac_res=`eval echo '${'$as_ac_Header'}'`
21510 { echo "$as_me:$LINENO: result: $ac_res" >&5
21511 echo "${ECHO_T}$ac_res" >&6; }
21514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21515 cat >>confdefs.h <<_ACEOF
21516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21527 for ac_header in arpa/nameser_compat.h stdbool.h termio.h curses.h
21529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 ac_res=`eval echo '${'$as_ac_Header'}'`
21537 { echo "$as_me:$LINENO: result: $ac_res" >&5
21538 echo "${ECHO_T}$ac_res" >&6; }
21540 # Is the header compilable?
21541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 $ac_includes_default
21550 #include <$ac_header>
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556 *) ac_try_echo=$ac_try;;
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.$ac_objext; then
21569 ac_header_compiler=yes
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_header_compiler=no
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21579 echo "${ECHO_T}$ac_header_compiler" >&6; }
21581 # Is the header present?
21582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <$ac_header>
21592 if { (ac_try="$ac_cpp conftest.$ac_ext"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21600 grep -v '^ *+' conftest.er1 >conftest.err
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } >/dev/null && {
21605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21606 test ! -s conftest.err
21608 ac_header_preproc=yes
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21613 ac_header_preproc=no
21616 rm -f conftest.err conftest.$ac_ext
21617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21618 echo "${ECHO_T}$ac_header_preproc" >&6; }
21620 # So? What about this header?
21621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21627 ac_header_preproc=yes
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 eval "$as_ac_Header=\$ac_header_preproc"
21652 ac_res=`eval echo '${'$as_ac_Header'}'`
21653 { echo "$as_me:$LINENO: result: $ac_res" >&5
21654 echo "${ECHO_T}$ac_res" >&6; }
21657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21658 cat >>confdefs.h <<_ACEOF
21659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21667 if test "$no_x" != "yes"; then
21673 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21674 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21675 if test "${ac_cv_type_signal+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 #include <sys/types.h>
21685 #include <signal.h>
21690 return *(signal (0, 0)) (0) == 1;
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21704 grep -v '^ *+' conftest.er1 >conftest.err
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712 ac_cv_type_signal=int
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ac_cv_type_signal=void
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21723 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21725 cat >>confdefs.h <<_ACEOF
21726 #define RETSIGTYPE $ac_cv_type_signal
21730 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21731 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21732 if test "${ac_cv_type_uid_t+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 cat >conftest.$ac_ext <<_ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 #include <sys/types.h>
21744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21745 $EGREP "uid_t" >/dev/null 2>&1; then
21746 ac_cv_type_uid_t=yes
21748 ac_cv_type_uid_t=no
21753 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21754 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21755 if test $ac_cv_type_uid_t = no; then
21757 cat >>confdefs.h <<\_ACEOF
21762 cat >>confdefs.h <<\_ACEOF
21768 { echo "$as_me:$LINENO: checking for short" >&5
21769 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21770 if test "${ac_cv_type_short+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
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_new_;
21784 if ((ac__type_new_ *) 0)
21786 if (sizeof (ac__type_new_))
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_compile") 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && {
21806 test -z "$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 } && test -s conftest.$ac_objext; then
21809 ac_cv_type_short=yes
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_cv_type_short=no
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21820 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21822 # The cast to long int works around a bug in the HP C Compiler
21823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21825 # This bug is HP SR number 8606223364.
21826 { echo "$as_me:$LINENO: checking size of short" >&5
21827 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21828 if test "${ac_cv_sizeof_short+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 if test "$cross_compiling" = yes; then
21832 # Depending upon the size, compute the lo and hi bounds.
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21840 typedef short ac__type_sizeof_;
21844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21851 rm -f conftest.$ac_objext
21852 if { (ac_try="$ac_compile"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_compile") 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } && {
21865 test -z "$ac_c_werror_flag" ||
21866 test ! -s conftest.err
21867 } && test -s conftest.$ac_objext; then
21870 cat >conftest.$ac_ext <<_ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21876 $ac_includes_default
21877 typedef short ac__type_sizeof_;
21881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21888 rm -f conftest.$ac_objext
21889 if { (ac_try="$ac_compile"
21890 case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_compile") 2>conftest.er1
21897 grep -v '^ *+' conftest.er1 >conftest.err
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && {
21902 test -z "$ac_c_werror_flag" ||
21903 test ! -s conftest.err
21904 } && test -s conftest.$ac_objext; then
21905 ac_hi=$ac_mid; break
21907 echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21910 ac_lo=`expr $ac_mid + 1`
21911 if test $ac_lo -le $ac_mid; then
21915 ac_mid=`expr 2 '*' $ac_mid + 1`
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 $ac_includes_default
21931 typedef short ac__type_sizeof_;
21935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21942 rm -f conftest.$ac_objext
21943 if { (ac_try="$ac_compile"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_compile") 2>conftest.er1
21951 grep -v '^ *+' conftest.er1 >conftest.err
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest.$ac_objext; then
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 typedef short ac__type_sizeof_;
21972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_compile") 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest.$ac_objext; then
21996 ac_lo=$ac_mid; break
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_hi=`expr '(' $ac_mid ')' - 1`
22002 if test $ac_mid -le $ac_hi; then
22006 ac_mid=`expr 2 '*' $ac_mid`
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 # Binary search between lo and hi bounds.
22023 while test "x$ac_lo" != "x$ac_hi"; do
22024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22031 $ac_includes_default
22032 typedef short ac__type_sizeof_;
22036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.$ac_objext; then
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_lo=`expr '(' $ac_mid ')' + 1`
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 ?*) ac_cv_sizeof_short=$ac_lo;;
22072 '') if test "$ac_cv_type_short" = yes; then
22073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22074 See \`config.log' for more details." >&5
22075 echo "$as_me: error: cannot compute sizeof (short)
22076 See \`config.log' for more details." >&2;}
22077 { (exit 77); exit 77; }; }
22079 ac_cv_sizeof_short=0
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 $ac_includes_default
22090 typedef short ac__type_sizeof_;
22091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22094 #include <stdlib.h>
22099 FILE *f = fopen ("conftest.val", "w");
22102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22104 long int i = longval ();
22105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22107 fprintf (f, "%ld\n", i);
22111 unsigned long int i = ulongval ();
22112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22114 fprintf (f, "%lu\n", i);
22116 return ferror (f) || fclose (f) != 0;
22122 rm -f conftest$ac_exeext
22123 if { (ac_try="$ac_link"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_link") 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22133 { (case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_try") 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 ac_cv_sizeof_short=`cat conftest.val`
22144 echo "$as_me: program exited with status $ac_status" >&5
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ( exit $ac_status )
22149 if test "$ac_cv_type_short" = yes; then
22150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22151 See \`config.log' for more details." >&5
22152 echo "$as_me: error: cannot compute sizeof (short)
22153 See \`config.log' for more details." >&2;}
22154 { (exit 77); exit 77; }; }
22156 ac_cv_sizeof_short=0
22159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22164 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22168 cat >>confdefs.h <<_ACEOF
22169 #define SIZEOF_SHORT $ac_cv_sizeof_short
22173 { echo "$as_me:$LINENO: checking for int" >&5
22174 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22175 if test "${ac_cv_type_int+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
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_new_;
22189 if ((ac__type_new_ *) 0)
22191 if (sizeof (ac__type_new_))
22197 rm -f conftest.$ac_objext
22198 if { (ac_try="$ac_compile"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_compile") 2>conftest.er1
22206 grep -v '^ *+' conftest.er1 >conftest.err
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } && {
22211 test -z "$ac_c_werror_flag" ||
22212 test ! -s conftest.err
22213 } && test -s conftest.$ac_objext; then
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22225 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22227 # The cast to long int works around a bug in the HP C Compiler
22228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22230 # This bug is HP SR number 8606223364.
22231 { echo "$as_me:$LINENO: checking size of int" >&5
22232 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22233 if test "${ac_cv_sizeof_int+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 if test "$cross_compiling" = yes; then
22237 # Depending upon the size, compute the lo and hi bounds.
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 $ac_includes_default
22245 typedef int ac__type_sizeof_;
22249 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 $ac_includes_default
22282 typedef int ac__type_sizeof_;
22286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_hi=$ac_mid; break
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_lo=`expr $ac_mid + 1`
22316 if test $ac_lo -le $ac_mid; then
22320 ac_mid=`expr 2 '*' $ac_mid + 1`
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 cat >conftest.$ac_ext <<_ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22336 typedef int ac__type_sizeof_;
22340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354 (eval "$ac_compile") 2>conftest.er1
22356 grep -v '^ *+' conftest.er1 >conftest.err
22358 cat conftest.err >&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && {
22361 test -z "$ac_c_werror_flag" ||
22362 test ! -s conftest.err
22363 } && test -s conftest.$ac_objext; then
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 $ac_includes_default
22373 typedef int ac__type_sizeof_;
22377 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22384 rm -f conftest.$ac_objext
22385 if { (ac_try="$ac_compile"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_compile") 2>conftest.er1
22393 grep -v '^ *+' conftest.er1 >conftest.err
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && {
22398 test -z "$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 } && test -s conftest.$ac_objext; then
22401 ac_lo=$ac_mid; break
22403 echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22406 ac_hi=`expr '(' $ac_mid ')' - 1`
22407 if test $ac_mid -le $ac_hi; then
22411 ac_mid=`expr 2 '*' $ac_mid`
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 # Binary search between lo and hi bounds.
22428 while test "x$ac_lo" != "x$ac_hi"; do
22429 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 $ac_includes_default
22437 typedef int ac__type_sizeof_;
22441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ac_lo=`expr '(' $ac_mid ')' + 1`
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 ?*) ac_cv_sizeof_int=$ac_lo;;
22477 '') if test "$ac_cv_type_int" = yes; then
22478 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22479 See \`config.log' for more details." >&5
22480 echo "$as_me: error: cannot compute sizeof (int)
22481 See \`config.log' for more details." >&2;}
22482 { (exit 77); exit 77; }; }
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 $ac_includes_default
22495 typedef int ac__type_sizeof_;
22496 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22497 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22499 #include <stdlib.h>
22504 FILE *f = fopen ("conftest.val", "w");
22507 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22509 long int i = longval ();
22510 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22512 fprintf (f, "%ld\n", i);
22516 unsigned long int i = ulongval ();
22517 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22519 fprintf (f, "%lu\n", i);
22521 return ferror (f) || fclose (f) != 0;
22527 rm -f conftest$ac_exeext
22528 if { (ac_try="$ac_link"
22529 case "(($ac_try" in
22530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531 *) ac_try_echo=$ac_try;;
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534 (eval "$ac_link") 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22538 { (case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_try") 2>&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; }; then
22547 ac_cv_sizeof_int=`cat conftest.val`
22549 echo "$as_me: program exited with status $ac_status" >&5
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22553 ( exit $ac_status )
22554 if test "$ac_cv_type_int" = yes; then
22555 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22556 See \`config.log' for more details." >&5
22557 echo "$as_me: error: cannot compute sizeof (int)
22558 See \`config.log' for more details." >&2;}
22559 { (exit 77); exit 77; }; }
22564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22568 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22569 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22573 cat >>confdefs.h <<_ACEOF
22574 #define SIZEOF_INT $ac_cv_sizeof_int
22578 { echo "$as_me:$LINENO: checking for long" >&5
22579 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22580 if test "${ac_cv_type_long+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
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_new_;
22594 if ((ac__type_new_ *) 0)
22596 if (sizeof (ac__type_new_))
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_compile") 2>conftest.er1
22611 grep -v '^ *+' conftest.er1 >conftest.err
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } && {
22616 test -z "$ac_c_werror_flag" ||
22617 test ! -s conftest.err
22618 } && test -s conftest.$ac_objext; then
22619 ac_cv_type_long=yes
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22630 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22632 # The cast to long int works around a bug in the HP C Compiler
22633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22635 # This bug is HP SR number 8606223364.
22636 { echo "$as_me:$LINENO: checking size of long" >&5
22637 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22638 if test "${ac_cv_sizeof_long+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 if test "$cross_compiling" = yes; then
22642 # Depending upon the size, compute the lo and hi bounds.
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 $ac_includes_default
22650 typedef long ac__type_sizeof_;
22654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22680 cat >conftest.$ac_ext <<_ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 $ac_includes_default
22687 typedef long ac__type_sizeof_;
22691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest.$ac_objext; then
22715 ac_hi=$ac_mid; break
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_lo=`expr $ac_mid + 1`
22721 if test $ac_lo -le $ac_mid; then
22725 ac_mid=`expr 2 '*' $ac_mid + 1`
22728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 $ac_includes_default
22741 typedef long ac__type_sizeof_;
22745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_compile") 2>conftest.er1
22761 grep -v '^ *+' conftest.er1 >conftest.err
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest.$ac_objext; then
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 $ac_includes_default
22778 typedef long ac__type_sizeof_;
22782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22798 grep -v '^ *+' conftest.er1 >conftest.err
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest.$ac_objext; then
22806 ac_lo=$ac_mid; break
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 ac_hi=`expr '(' $ac_mid ')' - 1`
22812 if test $ac_mid -le $ac_hi; then
22816 ac_mid=`expr 2 '*' $ac_mid`
22819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 # Binary search between lo and hi bounds.
22833 while test "x$ac_lo" != "x$ac_hi"; do
22834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 $ac_includes_default
22842 typedef long ac__type_sizeof_;
22846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22853 rm -f conftest.$ac_objext
22854 if { (ac_try="$ac_compile"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_compile") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest.$ac_objext; then
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 ac_lo=`expr '(' $ac_mid ')' + 1`
22878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881 ?*) ac_cv_sizeof_long=$ac_lo;;
22882 '') if test "$ac_cv_type_long" = yes; then
22883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22884 See \`config.log' for more details." >&5
22885 echo "$as_me: error: cannot compute sizeof (long)
22886 See \`config.log' for more details." >&2;}
22887 { (exit 77); exit 77; }; }
22889 ac_cv_sizeof_long=0
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22900 typedef long ac__type_sizeof_;
22901 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22902 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22904 #include <stdlib.h>
22909 FILE *f = fopen ("conftest.val", "w");
22912 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22914 long int i = longval ();
22915 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22917 fprintf (f, "%ld\n", i);
22921 unsigned long int i = ulongval ();
22922 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22924 fprintf (f, "%lu\n", i);
22926 return ferror (f) || fclose (f) != 0;
22932 rm -f conftest$ac_exeext
22933 if { (ac_try="$ac_link"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_link") 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22943 { (case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_try") 2>&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }; then
22952 ac_cv_sizeof_long=`cat conftest.val`
22954 echo "$as_me: program exited with status $ac_status" >&5
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ( exit $ac_status )
22959 if test "$ac_cv_type_long" = yes; then
22960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22961 See \`config.log' for more details." >&5
22962 echo "$as_me: error: cannot compute sizeof (long)
22963 See \`config.log' for more details." >&2;}
22964 { (exit 77); exit 77; }; }
22966 ac_cv_sizeof_long=0
22969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22973 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22974 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22978 cat >>confdefs.h <<_ACEOF
22979 #define SIZEOF_LONG $ac_cv_sizeof_long
22983 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22984 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22985 if test "$ac_cv_sizeof_long" = 4; then
22987 elif test "$ac_cv_sizeof_int" = 4; then
22989 elif test "$ac_cv_sizeof_short" = 4; then
22992 { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22993 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22996 cat >>confdefs.h <<_ACEOF
22997 #define ZEPHYR_INT32 ${int32}
23000 { echo "$as_me:$LINENO: result: ${int32}" >&5
23001 echo "${ECHO_T}${int32}" >&6; }
23004 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
23005 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
23006 if test "${ac_cv_lib_w_wslen+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 ac_check_lib_save_LIBS=$LIBS
23011 cat >conftest.$ac_ext <<_ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23018 /* Override any GCC internal prototype to avoid an error.
23019 Use char because int might match the return type of a GCC
23020 builtin and then its argument prototype would still apply. */
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_link") 2>conftest.er1
23042 grep -v '^ *+' conftest.er1 >conftest.err
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest$ac_exeext &&
23050 $as_test_x conftest$ac_exeext; then
23051 ac_cv_lib_w_wslen=yes
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23056 ac_cv_lib_w_wslen=no
23059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23060 conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23063 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
23064 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
23065 if test $ac_cv_lib_w_wslen = yes; then
23066 cat >>confdefs.h <<_ACEOF
23067 #define HAVE_LIBW 1
23074 # XXX? AC_CHECK_LIB(dl, dlopen)
23076 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
23077 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
23078 if test "${ac_cv_search_gethostbyname+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23081 ac_func_search_save_LIBS=$LIBS
23082 cat >conftest.$ac_ext <<_ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23089 /* Override any GCC internal prototype to avoid an error.
23090 Use char because int might match the return type of a GCC
23091 builtin and then its argument prototype would still apply. */
23095 char gethostbyname ();
23099 return gethostbyname ();
23104 for ac_lib in '' nsl; do
23105 if test -z "$ac_lib"; then
23106 ac_res="none required"
23109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (ac_try="$ac_link"
23113 case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_link") 2>conftest.er1
23120 grep -v '^ *+' conftest.er1 >conftest.err
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest$ac_exeext &&
23128 $as_test_x conftest$ac_exeext; then
23129 ac_cv_search_gethostbyname=$ac_res
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23139 if test "${ac_cv_search_gethostbyname+set}" = set; then
23143 if test "${ac_cv_search_gethostbyname+set}" = set; then
23146 ac_cv_search_gethostbyname=no
23148 rm conftest.$ac_ext
23149 LIBS=$ac_func_search_save_LIBS
23151 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23152 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23153 ac_res=$ac_cv_search_gethostbyname
23154 if test "$ac_res" != no; then
23155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23159 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23160 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23161 if test "${ac_cv_search_socket+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 ac_func_search_save_LIBS=$LIBS
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23172 /* Override any GCC internal prototype to avoid an error.
23173 Use char because int might match the return type of a GCC
23174 builtin and then its argument prototype would still apply. */
23187 for ac_lib in '' socket; do
23188 if test -z "$ac_lib"; then
23189 ac_res="none required"
23192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (ac_try="$ac_link"
23196 case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201 (eval "$ac_link") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest$ac_exeext &&
23211 $as_test_x conftest$ac_exeext; then
23212 ac_cv_search_socket=$ac_res
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23222 if test "${ac_cv_search_socket+set}" = set; then
23226 if test "${ac_cv_search_socket+set}" = set; then
23229 ac_cv_search_socket=no
23231 rm conftest.$ac_ext
23232 LIBS=$ac_func_search_save_LIBS
23234 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23235 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23236 ac_res=$ac_cv_search_socket
23237 if test "$ac_res" != no; then
23238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23244 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23245 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23246 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 ac_check_lib_save_LIBS=$LIBS
23250 LIBS="-l44bsd $LIBS"
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23258 /* Override any GCC internal prototype to avoid an error.
23259 Use char because int might match the return type of a GCC
23260 builtin and then its argument prototype would still apply. */
23268 return strerror ();
23273 rm -f conftest.$ac_objext conftest$ac_exeext
23274 if { (ac_try="$ac_link"
23275 case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_link") 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && {
23287 test -z "$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 } && test -s conftest$ac_exeext &&
23290 $as_test_x conftest$ac_exeext; then
23291 ac_cv_lib_44bsd_strerror=yes
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_cv_lib_44bsd_strerror=no
23299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23300 conftest$ac_exeext conftest.$ac_ext
23301 LIBS=$ac_check_lib_save_LIBS
23303 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23304 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23305 if test $ac_cv_lib_44bsd_strerror = yes; then
23306 cat >>confdefs.h <<_ACEOF
23307 #define HAVE_LIB44BSD 1
23310 LIBS="-l44bsd $LIBS"
23315 { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
23316 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
23317 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 ac_check_lib_save_LIBS=$LIBS
23321 LIBS="-liconv $LIBS"
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23329 /* Override any GCC internal prototype to avoid an error.
23330 Use char because int might match the return type of a GCC
23331 builtin and then its argument prototype would still apply. */
23335 char libiconv_open ();
23339 return libiconv_open ();
23344 rm -f conftest.$ac_objext conftest$ac_exeext
23345 if { (ac_try="$ac_link"
23346 case "(($ac_try" in
23347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348 *) ac_try_echo=$ac_try;;
23350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23351 (eval "$ac_link") 2>conftest.er1
23353 grep -v '^ *+' conftest.er1 >conftest.err
23355 cat conftest.err >&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } && {
23358 test -z "$ac_c_werror_flag" ||
23359 test ! -s conftest.err
23360 } && test -s conftest$ac_exeext &&
23361 $as_test_x conftest$ac_exeext; then
23362 ac_cv_lib_iconv_libiconv_open=yes
23364 echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23367 ac_cv_lib_iconv_libiconv_open=no
23370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23371 conftest$ac_exeext conftest.$ac_ext
23372 LIBS=$ac_check_lib_save_LIBS
23374 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
23375 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
23376 if test $ac_cv_lib_iconv_libiconv_open = yes; then
23381 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23382 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23383 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23386 ac_check_lib_save_LIBS=$LIBS
23387 LIBS="-lcurses $LIBS"
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23395 /* Override any GCC internal prototype to avoid an error.
23396 Use char because int might match the return type of a GCC
23397 builtin and then its argument prototype would still apply. */
23410 rm -f conftest.$ac_objext conftest$ac_exeext
23411 if { (ac_try="$ac_link"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_link") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest$ac_exeext &&
23427 $as_test_x conftest$ac_exeext; then
23428 ac_cv_lib_curses_tgetstr=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ac_cv_lib_curses_tgetstr=no
23436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23437 conftest$ac_exeext conftest.$ac_ext
23438 LIBS=$ac_check_lib_save_LIBS
23440 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23441 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23442 if test $ac_cv_lib_curses_tgetstr = yes; then
23448 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23449 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23450 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23453 ac_check_lib_save_LIBS=$LIBS
23455 cat >conftest.$ac_ext <<_ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23462 /* Override any GCC internal prototype to avoid an error.
23463 Use char because int might match the return type of a GCC
23464 builtin and then its argument prototype would still apply. */
23477 rm -f conftest.$ac_objext conftest$ac_exeext
23478 if { (ac_try="$ac_link"
23479 case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_link") 2>conftest.er1
23486 grep -v '^ *+' conftest.er1 >conftest.err
23488 cat conftest.err >&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } && {
23491 test -z "$ac_c_werror_flag" ||
23492 test ! -s conftest.err
23493 } && test -s conftest$ac_exeext &&
23494 $as_test_x conftest$ac_exeext; then
23495 ac_cv_lib_src_srcsrpy=yes
23497 echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23500 ac_cv_lib_src_srcsrpy=no
23503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23504 conftest$ac_exeext conftest.$ac_ext
23505 LIBS=$ac_check_lib_save_LIBS
23507 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23508 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23509 if test $ac_cv_lib_src_srcsrpy = yes; then
23510 SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23521 # Check whether --with-krb4 was given.
23522 if test "${with_krb4+set}" = set; then
23523 withval=$with_krb4; krb4="$withval"
23528 if test "$krb4" != no; then
23529 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23530 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23531 if test "${ac_cv_func_gethostbyname+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23542 #define gethostbyname innocuous_gethostbyname
23544 /* System header to define __stub macros and hopefully few prototypes,
23545 which can conflict with char gethostbyname (); below.
23546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23547 <limits.h> exists even on freestanding compilers. */
23550 # include <limits.h>
23552 # include <assert.h>
23555 #undef gethostbyname
23557 /* Override any GCC internal prototype to avoid an error.
23558 Use char because int might match the return type of a GCC
23559 builtin and then its argument prototype would still apply. */
23563 char gethostbyname ();
23564 /* The GNU C library defines this for functions which it implements
23565 to always fail with ENOSYS. Some functions are actually named
23566 something starting with __ and the normal name is an alias. */
23567 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23574 return gethostbyname ();
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (ac_try="$ac_link"
23581 case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_link") 2>conftest.er1
23588 grep -v '^ *+' conftest.er1 >conftest.err
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest$ac_exeext &&
23596 $as_test_x conftest$ac_exeext; then
23597 ac_cv_func_gethostbyname=yes
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 ac_cv_func_gethostbyname=no
23605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23606 conftest$ac_exeext conftest.$ac_ext
23608 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23609 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23610 if test $ac_cv_func_gethostbyname = yes; then
23614 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23615 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23616 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23619 ac_check_lib_save_LIBS=$LIBS
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23628 /* Override any GCC internal prototype to avoid an error.
23629 Use char because int might match the return type of a GCC
23630 builtin and then its argument prototype would still apply. */
23634 char gethostbyname ();
23638 return gethostbyname ();
23643 rm -f conftest.$ac_objext conftest$ac_exeext
23644 if { (ac_try="$ac_link"
23645 case "(($ac_try" in
23646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647 *) ac_try_echo=$ac_try;;
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650 (eval "$ac_link") 2>conftest.er1
23652 grep -v '^ *+' conftest.er1 >conftest.err
23654 cat conftest.err >&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && {
23657 test -z "$ac_c_werror_flag" ||
23658 test ! -s conftest.err
23659 } && test -s conftest$ac_exeext &&
23660 $as_test_x conftest$ac_exeext; then
23661 ac_cv_lib_nsl_gethostbyname=yes
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23666 ac_cv_lib_nsl_gethostbyname=no
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670 conftest$ac_exeext conftest.$ac_ext
23671 LIBS=$ac_check_lib_save_LIBS
23673 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23674 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23675 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23676 cat >>confdefs.h <<_ACEOF
23677 #define HAVE_LIBNSL 1
23686 { echo "$as_me:$LINENO: checking for socket" >&5
23687 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23688 if test "${ac_cv_func_socket+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 cat >conftest.$ac_ext <<_ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23697 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23699 #define socket innocuous_socket
23701 /* System header to define __stub macros and hopefully few prototypes,
23702 which can conflict with char socket (); below.
23703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23704 <limits.h> exists even on freestanding compilers. */
23707 # include <limits.h>
23709 # include <assert.h>
23714 /* Override any GCC internal prototype to avoid an error.
23715 Use char because int might match the return type of a GCC
23716 builtin and then its argument prototype would still apply. */
23721 /* The GNU C library defines this for functions which it implements
23722 to always fail with ENOSYS. Some functions are actually named
23723 something starting with __ and the normal name is an alias. */
23724 #if defined __stub_socket || defined __stub___socket
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (ac_try="$ac_link"
23738 case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743 (eval "$ac_link") 2>conftest.er1
23745 grep -v '^ *+' conftest.er1 >conftest.err
23747 cat conftest.err >&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); } && {
23750 test -z "$ac_c_werror_flag" ||
23751 test ! -s conftest.err
23752 } && test -s conftest$ac_exeext &&
23753 $as_test_x conftest$ac_exeext; then
23754 ac_cv_func_socket=yes
23756 echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23759 ac_cv_func_socket=no
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763 conftest$ac_exeext conftest.$ac_ext
23765 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23766 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23767 if test $ac_cv_func_socket = yes; then
23771 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23772 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23773 if test "${ac_cv_lib_socket_socket+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 ac_check_lib_save_LIBS=$LIBS
23777 LIBS="-lsocket $LIBS"
23778 cat >conftest.$ac_ext <<_ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23785 /* Override any GCC internal prototype to avoid an error.
23786 Use char because int might match the return type of a GCC
23787 builtin and then its argument prototype would still apply. */
23800 rm -f conftest.$ac_objext conftest$ac_exeext
23801 if { (ac_try="$ac_link"
23802 case "(($ac_try" in
23803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_link") 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest$ac_exeext &&
23817 $as_test_x conftest$ac_exeext; then
23818 ac_cv_lib_socket_socket=yes
23820 echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23823 ac_cv_lib_socket_socket=no
23826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23827 conftest$ac_exeext conftest.$ac_ext
23828 LIBS=$ac_check_lib_save_LIBS
23830 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23831 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23832 if test $ac_cv_lib_socket_socket = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define HAVE_LIBSOCKET 1
23837 LIBS="-lsocket $LIBS"
23844 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23845 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23846 if test "${ac_cv_lib_gen_compile+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23849 ac_check_lib_save_LIBS=$LIBS
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23858 /* Override any GCC internal prototype to avoid an error.
23859 Use char because int might match the return type of a GCC
23860 builtin and then its argument prototype would still apply. */
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877 *) ac_try_echo=$ac_try;;
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880 (eval "$ac_link") 2>conftest.er1
23882 grep -v '^ *+' conftest.er1 >conftest.err
23884 cat conftest.err >&5
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } && {
23887 test -z "$ac_c_werror_flag" ||
23888 test ! -s conftest.err
23889 } && test -s conftest$ac_exeext &&
23890 $as_test_x conftest$ac_exeext; then
23891 ac_cv_lib_gen_compile=yes
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_cv_lib_gen_compile=no
23899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23900 conftest$ac_exeext conftest.$ac_ext
23901 LIBS=$ac_check_lib_save_LIBS
23903 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23904 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23905 if test $ac_cv_lib_gen_compile = yes; then
23906 cat >>confdefs.h <<_ACEOF
23907 #define HAVE_LIBGEN 1
23914 if test "$krb4" != yes; then
23915 CPPFLAGS="$CPPFLAGS -I$krb4/include"
23916 if test -d "$krb4/include/kerberosIV"; then
23917 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23919 LDFLAGS="$LDFLAGS -L$krb4/lib"
23921 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23922 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23923 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23926 ac_check_lib_save_LIBS=$LIBS
23927 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23935 /* Override any GCC internal prototype to avoid an error.
23936 Use char because int might match the return type of a GCC
23937 builtin and then its argument prototype would still apply. */
23941 char krb_rd_req ();
23945 return krb_rd_req ();
23950 rm -f conftest.$ac_objext conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_link") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest$ac_exeext &&
23967 $as_test_x conftest$ac_exeext; then
23968 ac_cv_lib_krb4_krb_rd_req=yes
23970 echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 ac_cv_lib_krb4_krb_rd_req=no
23976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23977 conftest$ac_exeext conftest.$ac_ext
23978 LIBS=$ac_check_lib_save_LIBS
23980 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23981 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23982 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23983 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23985 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23986 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23987 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23988 echo $ECHO_N "(cached) $ECHO_C" >&6
23990 ac_check_lib_save_LIBS=$LIBS
23991 LIBS="-lkrb -ldes $LIBS"
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23999 /* Override any GCC internal prototype to avoid an error.
24000 Use char because int might match the return type of a GCC
24001 builtin and then its argument prototype would still apply. */
24005 char krb_rd_req ();
24009 return krb_rd_req ();
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_link") 2>conftest.er1
24023 grep -v '^ *+' conftest.er1 >conftest.err
24025 cat conftest.err >&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && {
24028 test -z "$ac_c_werror_flag" ||
24029 test ! -s conftest.err
24030 } && test -s conftest$ac_exeext &&
24031 $as_test_x conftest$ac_exeext; then
24032 ac_cv_lib_krb_krb_rd_req=yes
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24037 ac_cv_lib_krb_krb_rd_req=no
24040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24041 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24044 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24045 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24046 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24047 KRB4_LIBS="-lkrb -ldes"
24049 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24050 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24051 { (exit 1); exit 1; }; }
24056 cat >>confdefs.h <<\_ACEOF
24057 #define HAVE_KRB4 1
24060 LIBZEPHYR_LIBS="$LIBZEPHYR_LIBS $KRB4_LIBS"
24065 # Check whether --with-krb5 was given.
24066 if test "${with_krb5+set}" = set; then
24067 withval=$with_krb5; krb5="$withval"
24072 if test "$krb5" != no; then
24073 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24074 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24075 if test "${ac_cv_search_gethostbyname+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 ac_func_search_save_LIBS=$LIBS
24079 cat >conftest.$ac_ext <<_ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24086 /* Override any GCC internal prototype to avoid an error.
24087 Use char because int might match the return type of a GCC
24088 builtin and then its argument prototype would still apply. */
24092 char gethostbyname ();
24096 return gethostbyname ();
24101 for ac_lib in '' nsl; do
24102 if test -z "$ac_lib"; then
24103 ac_res="none required"
24106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24108 rm -f conftest.$ac_objext conftest$ac_exeext
24109 if { (ac_try="$ac_link"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115 (eval "$ac_link") 2>conftest.er1
24117 grep -v '^ *+' conftest.er1 >conftest.err
24119 cat conftest.err >&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); } && {
24122 test -z "$ac_c_werror_flag" ||
24123 test ! -s conftest.err
24124 } && test -s conftest$ac_exeext &&
24125 $as_test_x conftest$ac_exeext; then
24126 ac_cv_search_gethostbyname=$ac_res
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24136 if test "${ac_cv_search_gethostbyname+set}" = set; then
24140 if test "${ac_cv_search_gethostbyname+set}" = set; then
24143 ac_cv_search_gethostbyname=no
24145 rm conftest.$ac_ext
24146 LIBS=$ac_func_search_save_LIBS
24148 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24149 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24150 ac_res=$ac_cv_search_gethostbyname
24151 if test "$ac_res" != no; then
24152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24156 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24157 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24158 if test "${ac_cv_search_socket+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 ac_func_search_save_LIBS=$LIBS
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24169 /* Override any GCC internal prototype to avoid an error.
24170 Use char because int might match the return type of a GCC
24171 builtin and then its argument prototype would still apply. */
24184 for ac_lib in '' socket; do
24185 if test -z "$ac_lib"; then
24186 ac_res="none required"
24189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24191 rm -f conftest.$ac_objext conftest$ac_exeext
24192 if { (ac_try="$ac_link"
24193 case "(($ac_try" in
24194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195 *) ac_try_echo=$ac_try;;
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198 (eval "$ac_link") 2>conftest.er1
24200 grep -v '^ *+' conftest.er1 >conftest.err
24202 cat conftest.err >&5
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } && {
24205 test -z "$ac_c_werror_flag" ||
24206 test ! -s conftest.err
24207 } && test -s conftest$ac_exeext &&
24208 $as_test_x conftest$ac_exeext; then
24209 ac_cv_search_socket=$ac_res
24211 echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24219 if test "${ac_cv_search_socket+set}" = set; then
24223 if test "${ac_cv_search_socket+set}" = set; then
24226 ac_cv_search_socket=no
24228 rm conftest.$ac_ext
24229 LIBS=$ac_func_search_save_LIBS
24231 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24232 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24233 ac_res=$ac_cv_search_socket
24234 if test "$ac_res" != no; then
24235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24240 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24241 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24242 if test "${ac_cv_lib_gen_compile+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24245 ac_check_lib_save_LIBS=$LIBS
24247 cat >conftest.$ac_ext <<_ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24254 /* Override any GCC internal prototype to avoid an error.
24255 Use char because int might match the return type of a GCC
24256 builtin and then its argument prototype would still apply. */
24269 rm -f conftest.$ac_objext conftest$ac_exeext
24270 if { (ac_try="$ac_link"
24271 case "(($ac_try" in
24272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24273 *) ac_try_echo=$ac_try;;
24275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24276 (eval "$ac_link") 2>conftest.er1
24278 grep -v '^ *+' conftest.er1 >conftest.err
24280 cat conftest.err >&5
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } && {
24283 test -z "$ac_c_werror_flag" ||
24284 test ! -s conftest.err
24285 } && test -s conftest$ac_exeext &&
24286 $as_test_x conftest$ac_exeext; then
24287 ac_cv_lib_gen_compile=yes
24289 echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24292 ac_cv_lib_gen_compile=no
24295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24296 conftest$ac_exeext conftest.$ac_ext
24297 LIBS=$ac_check_lib_save_LIBS
24299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24300 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24301 if test $ac_cv_lib_gen_compile = yes; then
24302 cat >>confdefs.h <<_ACEOF
24303 #define HAVE_LIBGEN 1
24310 if test "$krb5" != yes; then
24311 PATH="$PATH:$krb5/bin"
24313 # Extract the first word of "krb5-config", so it can be a program name with args.
24314 set dummy krb5-config; ac_word=$2
24315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24317 if test "${ac_cv_prog_krb5config+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 if test -n "$krb5config"; then
24321 ac_cv_prog_krb5config="$krb5config" # Let the user override the test.
24323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24324 for as_dir in $PATH
24327 test -z "$as_dir" && as_dir=.
24328 for ac_exec_ext in '' $ac_executable_extensions; do
24329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24330 ac_cv_prog_krb5config="yes"
24331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24340 krb5config=$ac_cv_prog_krb5config
24341 if test -n "$krb5config"; then
24342 { echo "$as_me:$LINENO: result: $krb5config" >&5
24343 echo "${ECHO_T}$krb5config" >&6; }
24345 { echo "$as_me:$LINENO: result: no" >&5
24346 echo "${ECHO_T}no" >&6; }
24350 if test "$krb5config" = yes; then
24351 CPPFLAGS="$CPPFLAGS $(krb5-config --cflags krb5)"
24352 KRB5_LIBS="$(krb5-config --libs krb5)"
24354 if test "$krb5" != yes; then
24355 CPPFLAGS="$CPPFLAGS -I$krb5/include"
24356 LDFLAGS="$LDFLAGS -L$krb5/lib"
24358 KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24360 if test "${ac_cv_header_krb5_h+set}" = set; then
24361 { echo "$as_me:$LINENO: checking for krb5.h" >&5
24362 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
24363 if test "${ac_cv_header_krb5_h+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24366 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
24367 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
24369 # Is the header compilable?
24370 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
24371 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24378 $ac_includes_default
24381 rm -f conftest.$ac_objext
24382 if { (ac_try="$ac_compile"
24383 case "(($ac_try" in
24384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385 *) ac_try_echo=$ac_try;;
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388 (eval "$ac_compile") 2>conftest.er1
24390 grep -v '^ *+' conftest.er1 >conftest.err
24392 cat conftest.err >&5
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } && {
24395 test -z "$ac_c_werror_flag" ||
24396 test ! -s conftest.err
24397 } && test -s conftest.$ac_objext; then
24398 ac_header_compiler=yes
24400 echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24403 ac_header_compiler=no
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24408 echo "${ECHO_T}$ac_header_compiler" >&6; }
24410 # Is the header present?
24411 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
24412 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24421 if { (ac_try="$ac_cpp conftest.$ac_ext"
24422 case "(($ac_try" in
24423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424 *) ac_try_echo=$ac_try;;
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24429 grep -v '^ *+' conftest.er1 >conftest.err
24431 cat conftest.err >&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } >/dev/null && {
24434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24435 test ! -s conftest.err
24437 ac_header_preproc=yes
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 ac_header_preproc=no
24445 rm -f conftest.err conftest.$ac_ext
24446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24447 echo "${ECHO_T}$ac_header_preproc" >&6; }
24449 # So? What about this header?
24450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24452 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
24453 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24454 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
24455 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
24456 ac_header_preproc=yes
24459 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
24460 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
24462 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
24464 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
24466 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
24467 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
24468 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
24469 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
24470 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
24474 { echo "$as_me:$LINENO: checking for krb5.h" >&5
24475 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
24476 if test "${ac_cv_header_krb5_h+set}" = set; then
24477 echo $ECHO_N "(cached) $ECHO_C" >&6
24479 ac_cv_header_krb5_h=$ac_header_preproc
24481 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
24482 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
24485 if test $ac_cv_header_krb5_h = yes; then
24488 { { echo "$as_me:$LINENO: error: Kerberos 5 headers not found" >&5
24489 echo "$as_me: error: Kerberos 5 headers not found" >&2;}
24490 { (exit 1); exit 1; }; }
24494 local_save_LIBS=$LIBS
24495 LIBS="$libs $KRB5_LIBS"
24496 { echo "$as_me:$LINENO: checking for krb5_init_context" >&5
24497 echo $ECHO_N "checking for krb5_init_context... $ECHO_C" >&6; }
24498 if test "${ac_cv_func_krb5_init_context+set}" = set; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24501 cat >conftest.$ac_ext <<_ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h. */
24507 /* Define krb5_init_context to an innocuous variant, in case <limits.h> declares krb5_init_context.
24508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24509 #define krb5_init_context innocuous_krb5_init_context
24511 /* System header to define __stub macros and hopefully few prototypes,
24512 which can conflict with char krb5_init_context (); below.
24513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24514 <limits.h> exists even on freestanding compilers. */
24517 # include <limits.h>
24519 # include <assert.h>
24522 #undef krb5_init_context
24524 /* Override any GCC internal prototype to avoid an error.
24525 Use char because int might match the return type of a GCC
24526 builtin and then its argument prototype would still apply. */
24530 char krb5_init_context ();
24531 /* The GNU C library defines this for functions which it implements
24532 to always fail with ENOSYS. Some functions are actually named
24533 something starting with __ and the normal name is an alias. */
24534 #if defined __stub_krb5_init_context || defined __stub___krb5_init_context
24541 return krb5_init_context ();
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (ac_try="$ac_link"
24548 case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_link") 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest$ac_exeext &&
24563 $as_test_x conftest$ac_exeext; then
24564 ac_cv_func_krb5_init_context=yes
24566 echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24569 ac_cv_func_krb5_init_context=no
24572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24573 conftest$ac_exeext conftest.$ac_ext
24575 { echo "$as_me:$LINENO: result: $ac_cv_func_krb5_init_context" >&5
24576 echo "${ECHO_T}$ac_cv_func_krb5_init_context" >&6; }
24577 if test $ac_cv_func_krb5_init_context = yes; then
24580 { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24581 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24582 { (exit 1); exit 1; }; }
24585 LIBS="$local_save_LIBS"
24586 cat >>confdefs.h <<\_ACEOF
24587 #define HAVE_KRB5 1
24590 LIBZEPHYR_LIBS="$LIBZEPHYR_LIBS $KRB5_LIBS"
24591 # the zephyr library needs -lresolv if it's built with krb5
24592 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24593 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24594 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 ac_check_lib_save_LIBS=$LIBS
24598 LIBS="-lresolv $LIBS"
24599 cat >conftest.$ac_ext <<_ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24606 /* Override any GCC internal prototype to avoid an error.
24607 Use char because int might match the return type of a GCC
24608 builtin and then its argument prototype would still apply. */
24616 return res_send ();
24621 rm -f conftest.$ac_objext conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_link") 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest$ac_exeext &&
24638 $as_test_x conftest$ac_exeext; then
24639 ac_cv_lib_resolv_res_send=yes
24641 echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24644 ac_cv_lib_resolv_res_send=no
24647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24648 conftest$ac_exeext conftest.$ac_ext
24649 LIBS=$ac_check_lib_save_LIBS
24651 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24652 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24653 if test $ac_cv_lib_resolv_res_send = yes; then
24654 LIBZEPHYR_LIBS="-lresolv $LIBZEPHYR_LIBS"
24656 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
24657 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
24658 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
24659 echo $ECHO_N "(cached) $ECHO_C" >&6
24661 ac_check_lib_save_LIBS=$LIBS
24662 LIBS="-lresolv $LIBS"
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24670 /* Override any GCC internal prototype to avoid an error.
24671 Use char because int might match the return type of a GCC
24672 builtin and then its argument prototype would still apply. */
24676 char __res_send ();
24680 return __res_send ();
24685 rm -f conftest.$ac_objext conftest$ac_exeext
24686 if { (ac_try="$ac_link"
24687 case "(($ac_try" in
24688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689 *) ac_try_echo=$ac_try;;
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692 (eval "$ac_link") 2>conftest.er1
24694 grep -v '^ *+' conftest.er1 >conftest.err
24696 cat conftest.err >&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } && {
24699 test -z "$ac_c_werror_flag" ||
24700 test ! -s conftest.err
24701 } && test -s conftest$ac_exeext &&
24702 $as_test_x conftest$ac_exeext; then
24703 ac_cv_lib_resolv___res_send=yes
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_cv_lib_resolv___res_send=no
24711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24712 conftest$ac_exeext conftest.$ac_ext
24713 LIBS=$ac_check_lib_save_LIBS
24715 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
24716 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
24717 if test $ac_cv_lib_resolv___res_send = yes; then
24718 LIBZEPHYR_LIBS="-lresolv $LIBZEPHYR_LIBS"
24720 { { echo "$as_me:$LINENO: error: Zephyr requires libresolv along with Kerberos V." >&5
24721 echo "$as_me: error: Zephyr requires libresolv along with Kerberos V." >&2;}
24722 { (exit 1); exit 1; }; }
24727 case "$target_os" in
24728 darwin*) KRB5_LIBS="$KRB5_LIBS -framework Kerberos" ;;
24736 # Check whether --with-hesiod was given.
24737 if test "${with_hesiod+set}" = set; then
24738 withval=$with_hesiod; hesiod="$withval"
24743 if test "$hesiod" != no; then
24744 { echo "$as_me:$LINENO: checking for res_send" >&5
24745 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24746 if test "${ac_cv_func_res_send+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24757 #define res_send innocuous_res_send
24759 /* System header to define __stub macros and hopefully few prototypes,
24760 which can conflict with char res_send (); below.
24761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24762 <limits.h> exists even on freestanding compilers. */
24765 # include <limits.h>
24767 # include <assert.h>
24772 /* Override any GCC internal prototype to avoid an error.
24773 Use char because int might match the return type of a GCC
24774 builtin and then its argument prototype would still apply. */
24779 /* The GNU C library defines this for functions which it implements
24780 to always fail with ENOSYS. Some functions are actually named
24781 something starting with __ and the normal name is an alias. */
24782 #if defined __stub_res_send || defined __stub___res_send
24789 return res_send ();
24794 rm -f conftest.$ac_objext conftest$ac_exeext
24795 if { (ac_try="$ac_link"
24796 case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_link") 2>conftest.er1
24803 grep -v '^ *+' conftest.er1 >conftest.err
24805 cat conftest.err >&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } && {
24808 test -z "$ac_c_werror_flag" ||
24809 test ! -s conftest.err
24810 } && test -s conftest$ac_exeext &&
24811 $as_test_x conftest$ac_exeext; then
24812 ac_cv_func_res_send=yes
24814 echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24817 ac_cv_func_res_send=no
24820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24821 conftest$ac_exeext conftest.$ac_ext
24823 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24824 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24825 if test $ac_cv_func_res_send = yes; then
24829 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24830 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24831 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 ac_check_lib_save_LIBS=$LIBS
24835 LIBS="-lresolv $LIBS"
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24843 /* Override any GCC internal prototype to avoid an error.
24844 Use char because int might match the return type of a GCC
24845 builtin and then its argument prototype would still apply. */
24853 return res_send ();
24858 rm -f conftest.$ac_objext conftest$ac_exeext
24859 if { (ac_try="$ac_link"
24860 case "(($ac_try" in
24861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862 *) ac_try_echo=$ac_try;;
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865 (eval "$ac_link") 2>conftest.er1
24867 grep -v '^ *+' conftest.er1 >conftest.err
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } && {
24872 test -z "$ac_c_werror_flag" ||
24873 test ! -s conftest.err
24874 } && test -s conftest$ac_exeext &&
24875 $as_test_x conftest$ac_exeext; then
24876 ac_cv_lib_resolv_res_send=yes
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24881 ac_cv_lib_resolv_res_send=no
24884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24885 conftest$ac_exeext conftest.$ac_ext
24886 LIBS=$ac_check_lib_save_LIBS
24888 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24889 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24890 if test $ac_cv_lib_resolv_res_send = yes; then
24891 cat >>confdefs.h <<_ACEOF
24892 #define HAVE_LIBRESOLV 1
24895 LIBS="-lresolv $LIBS"
24901 if test "$hesiod" != yes; then
24902 CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24903 LDFLAGS="$LDFLAGS -L$hesiod/lib"
24905 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24906 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24907 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 ac_check_lib_save_LIBS=$LIBS
24911 LIBS="-lhesiod $LIBS $LIBS"
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24919 /* Override any GCC internal prototype to avoid an error.
24920 Use char because int might match the return type of a GCC
24921 builtin and then its argument prototype would still apply. */
24925 char hes_resolve ();
24929 return hes_resolve ();
24934 rm -f conftest.$ac_objext conftest$ac_exeext
24935 if { (ac_try="$ac_link"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_link") 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } && {
24948 test -z "$ac_c_werror_flag" ||
24949 test ! -s conftest.err
24950 } && test -s conftest$ac_exeext &&
24951 $as_test_x conftest$ac_exeext; then
24952 ac_cv_lib_hesiod_hes_resolve=yes
24954 echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ac_cv_lib_hesiod_hes_resolve=no
24960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24961 conftest$ac_exeext conftest.$ac_ext
24962 LIBS=$ac_check_lib_save_LIBS
24964 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24965 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24966 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24969 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24970 echo "$as_me: error: Hesiod library not found" >&2;}
24971 { (exit 1); exit 1; }; }
24974 HESIOD_LIBS="-lhesiod"
24975 cat >>confdefs.h <<\_ACEOF
24976 #define HAVE_HESIOD 1
24982 # Check whether --with-regex was given.
24983 if test "${with_regex+set}" = set; then
24984 withval=$with_regex; regex="$withval"
24989 if test "$regex" != no; then
24990 if test "$regex" != yes; then
24991 CPPFLAGS="$CPPFLAGS -I$regex/include"
24992 LDFLAGS="$LDFLAGS -L$regex/lib"
24994 { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24995 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24996 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
24999 ac_check_lib_save_LIBS=$LIBS
25000 LIBS="-lregex $LIBS"
25001 cat >conftest.$ac_ext <<_ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h. */
25008 /* Override any GCC internal prototype to avoid an error.
25009 Use char because int might match the return type of a GCC
25010 builtin and then its argument prototype would still apply. */
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (ac_try="$ac_link"
25025 case "(($ac_try" in
25026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030 (eval "$ac_link") 2>conftest.er1
25032 grep -v '^ *+' conftest.er1 >conftest.err
25034 cat conftest.err >&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } && {
25037 test -z "$ac_c_werror_flag" ||
25038 test ! -s conftest.err
25039 } && test -s conftest$ac_exeext &&
25040 $as_test_x conftest$ac_exeext; then
25041 ac_cv_lib_regex_regcomp=yes
25043 echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ac_cv_lib_regex_regcomp=no
25049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25050 conftest$ac_exeext conftest.$ac_ext
25051 LIBS=$ac_check_lib_save_LIBS
25053 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
25054 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
25055 if test $ac_cv_lib_regex_regcomp = yes; then
25058 { { echo "$as_me:$LINENO: error: regex library not found" >&5
25059 echo "$as_me: error: regex library not found" >&2;}
25060 { (exit 1); exit 1; }; }
25064 { echo "$as_me:$LINENO: checking for regcomp" >&5
25065 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25066 if test "${ac_cv_func_regcomp+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 cat >conftest.$ac_ext <<_ACEOF
25072 cat confdefs.h >>conftest.$ac_ext
25073 cat >>conftest.$ac_ext <<_ACEOF
25074 /* end confdefs.h. */
25075 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
25076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25077 #define regcomp innocuous_regcomp
25079 /* System header to define __stub macros and hopefully few prototypes,
25080 which can conflict with char regcomp (); below.
25081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25082 <limits.h> exists even on freestanding compilers. */
25085 # include <limits.h>
25087 # include <assert.h>
25092 /* Override any GCC internal prototype to avoid an error.
25093 Use char because int might match the return type of a GCC
25094 builtin and then its argument prototype would still apply. */
25099 /* The GNU C library defines this for functions which it implements
25100 to always fail with ENOSYS. Some functions are actually named
25101 something starting with __ and the normal name is an alias. */
25102 #if defined __stub_regcomp || defined __stub___regcomp
25114 rm -f conftest.$ac_objext conftest$ac_exeext
25115 if { (ac_try="$ac_link"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_link") 2>conftest.er1
25123 grep -v '^ *+' conftest.er1 >conftest.err
25125 cat conftest.err >&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } && {
25128 test -z "$ac_c_werror_flag" ||
25129 test ! -s conftest.err
25130 } && test -s conftest$ac_exeext &&
25131 $as_test_x conftest$ac_exeext; then
25132 ac_cv_func_regcomp=yes
25134 echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25137 ac_cv_func_regcomp=no
25140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25141 conftest$ac_exeext conftest.$ac_ext
25143 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25144 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25145 if test $ac_cv_func_regcomp = yes; then
25148 { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
25149 echo "$as_me: error: can't find POSIX regexp support" >&2;}
25150 { (exit 1); exit 1; }; }
25156 # Check whether --with-com_err was given.
25157 if test "${with_com_err+set}" = set; then
25158 withval=$with_com_err; com_err="$withval"
25163 if test "$com_err" != no; then
25164 if test "$com_err" != yes; then
25165 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25166 LDFLAGS="$LDFLAGS -L$com_err/lib"
25168 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25169 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25170 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 ac_check_lib_save_LIBS=$LIBS
25174 LIBS="-lcom_err $LIBS"
25175 cat >conftest.$ac_ext <<_ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25182 /* Override any GCC internal prototype to avoid an error.
25183 Use char because int might match the return type of a GCC
25184 builtin and then its argument prototype would still apply. */
25197 rm -f conftest.$ac_objext conftest$ac_exeext
25198 if { (ac_try="$ac_link"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204 (eval "$ac_link") 2>conftest.er1
25206 grep -v '^ *+' conftest.er1 >conftest.err
25208 cat conftest.err >&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } && {
25211 test -z "$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25213 } && test -s conftest$ac_exeext &&
25214 $as_test_x conftest$ac_exeext; then
25215 ac_cv_lib_com_err_com_err=yes
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25220 ac_cv_lib_com_err_com_err=no
25223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25224 conftest$ac_exeext conftest.$ac_ext
25225 LIBS=$ac_check_lib_save_LIBS
25227 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25228 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25229 if test $ac_cv_lib_com_err_com_err = yes; then
25232 { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25233 echo "$as_me: error: com_err library not found" >&2;}
25234 { (exit 1); exit 1; }; }
25238 { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25239 echo "$as_me: error: This package requires com_err." >&2;}
25240 { (exit 1); exit 1; }; }
25244 # Check whether --with-ss was given.
25245 if test "${with_ss+set}" = set; then
25246 withval=$with_ss; ss="$withval"
25251 if test "$ss" != no; then
25252 if test "$ss" != yes; then
25253 CPPFLAGS="$CPPFLAGS -I$ss/include"
25254 LDFLAGS="$LDFLAGS -L$ss/lib"
25256 { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25257 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25258 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25261 ac_check_lib_save_LIBS=$LIBS
25262 LIBS="-lss -lcom_err -lreadline -lcurses $LIBS"
25263 cat >conftest.$ac_ext <<_ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25270 /* Override any GCC internal prototype to avoid an error.
25271 Use char because int might match the return type of a GCC
25272 builtin and then its argument prototype would still apply. */
25280 return ss_perror ();
25285 rm -f conftest.$ac_objext conftest$ac_exeext
25286 if { (ac_try="$ac_link"
25287 case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25292 (eval "$ac_link") 2>conftest.er1
25294 grep -v '^ *+' conftest.er1 >conftest.err
25296 cat conftest.err >&5
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } && {
25299 test -z "$ac_c_werror_flag" ||
25300 test ! -s conftest.err
25301 } && test -s conftest$ac_exeext &&
25302 $as_test_x conftest$ac_exeext; then
25303 ac_cv_lib_ss_ss_perror=yes
25305 echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25308 ac_cv_lib_ss_ss_perror=no
25311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25312 conftest$ac_exeext conftest.$ac_ext
25313 LIBS=$ac_check_lib_save_LIBS
25315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25316 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25317 if test $ac_cv_lib_ss_ss_perror = yes; then
25318 SS_LIBS="-lss -lreadline -lcurses"
25320 { { echo "$as_me:$LINENO: error: ss library not found" >&5
25321 echo "$as_me: error: ss library not found" >&2;}
25322 { (exit 1); exit 1; }; }
25327 { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25328 echo "$as_me: error: This package requires ss." >&2;}
25329 { (exit 1); exit 1; }; }
25332 LIBS="$KRB5_LIBS $KRB4_LIBS $LIBS"
25334 #XXX more looking for res_send
25335 #AC_CHECK_FUNC(res_send, :, AC_CHECK_LIB(resolv, res_send))
25336 { echo "$as_me:$LINENO: checking for ares_getnameinfo in -lcares" >&5
25337 echo $ECHO_N "checking for ares_getnameinfo in -lcares... $ECHO_C" >&6; }
25338 if test "${ac_cv_lib_cares_ares_getnameinfo+set}" = set; then
25339 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 ac_check_lib_save_LIBS=$LIBS
25342 LIBS="-lcares $LIBS"
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25350 /* Override any GCC internal prototype to avoid an error.
25351 Use char because int might match the return type of a GCC
25352 builtin and then its argument prototype would still apply. */
25356 char ares_getnameinfo ();
25360 return ares_getnameinfo ();
25365 rm -f conftest.$ac_objext conftest$ac_exeext
25366 if { (ac_try="$ac_link"
25367 case "(($ac_try" in
25368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25369 *) ac_try_echo=$ac_try;;
25371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25372 (eval "$ac_link") 2>conftest.er1
25374 grep -v '^ *+' conftest.er1 >conftest.err
25376 cat conftest.err >&5
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); } && {
25379 test -z "$ac_c_werror_flag" ||
25380 test ! -s conftest.err
25381 } && test -s conftest$ac_exeext &&
25382 $as_test_x conftest$ac_exeext; then
25383 ac_cv_lib_cares_ares_getnameinfo=yes
25385 echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25388 ac_cv_lib_cares_ares_getnameinfo=no
25391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25392 conftest$ac_exeext conftest.$ac_ext
25393 LIBS=$ac_check_lib_save_LIBS
25395 { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_getnameinfo" >&5
25396 echo "${ECHO_T}$ac_cv_lib_cares_ares_getnameinfo" >&6; }
25397 if test $ac_cv_lib_cares_ares_getnameinfo = yes; then
25398 ARES_LIBS="-lcares"
25399 cat >>confdefs.h <<\_ACEOF
25400 #define HAVE_ARES 1
25409 if test $ac_cv_c_compiler_gnu = yes; then
25410 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25411 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25412 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25413 echo $ECHO_N "(cached) $ECHO_C" >&6
25415 ac_pattern="Autoconf.*'x'"
25416 cat >conftest.$ac_ext <<_ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25426 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25427 ac_cv_prog_gcc_traditional=yes
25429 ac_cv_prog_gcc_traditional=no
25434 if test $ac_cv_prog_gcc_traditional = no; then
25435 cat >conftest.$ac_ext <<_ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h. */
25441 #include <termio.h>
25444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25445 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25446 ac_cv_prog_gcc_traditional=yes
25452 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25454 if test $ac_cv_prog_gcc_traditional = yes; then
25455 CC="$CC -traditional"
25460 for ac_func in vprintf
25462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25476 #define $ac_func innocuous_$ac_func
25478 /* System header to define __stub macros and hopefully few prototypes,
25479 which can conflict with char $ac_func (); below.
25480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25481 <limits.h> exists even on freestanding compilers. */
25484 # include <limits.h>
25486 # include <assert.h>
25491 /* Override any GCC internal prototype to avoid an error.
25492 Use char because int might match the return type of a GCC
25493 builtin and then its argument prototype would still apply. */
25498 /* The GNU C library defines this for functions which it implements
25499 to always fail with ENOSYS. Some functions are actually named
25500 something starting with __ and the normal name is an alias. */
25501 #if defined __stub_$ac_func || defined __stub___$ac_func
25508 return $ac_func ();
25513 rm -f conftest.$ac_objext conftest$ac_exeext
25514 if { (ac_try="$ac_link"
25515 case "(($ac_try" in
25516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517 *) ac_try_echo=$ac_try;;
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520 (eval "$ac_link") 2>conftest.er1
25522 grep -v '^ *+' conftest.er1 >conftest.err
25524 cat conftest.err >&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } && {
25527 test -z "$ac_c_werror_flag" ||
25528 test ! -s conftest.err
25529 } && test -s conftest$ac_exeext &&
25530 $as_test_x conftest$ac_exeext; then
25531 eval "$as_ac_var=yes"
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 eval "$as_ac_var=no"
25539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25540 conftest$ac_exeext conftest.$ac_ext
25542 ac_res=`eval echo '${'$as_ac_var'}'`
25543 { echo "$as_me:$LINENO: result: $ac_res" >&5
25544 echo "${ECHO_T}$ac_res" >&6; }
25545 if test `eval echo '${'$as_ac_var'}'` = yes; then
25546 cat >>confdefs.h <<_ACEOF
25547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25550 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25551 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25552 if test "${ac_cv_func__doprnt+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 cat >conftest.$ac_ext <<_ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25563 #define _doprnt innocuous__doprnt
25565 /* System header to define __stub macros and hopefully few prototypes,
25566 which can conflict with char _doprnt (); below.
25567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25568 <limits.h> exists even on freestanding compilers. */
25571 # include <limits.h>
25573 # include <assert.h>
25578 /* Override any GCC internal prototype to avoid an error.
25579 Use char because int might match the return type of a GCC
25580 builtin and then its argument prototype would still apply. */
25585 /* The GNU C library defines this for functions which it implements
25586 to always fail with ENOSYS. Some functions are actually named
25587 something starting with __ and the normal name is an alias. */
25588 #if defined __stub__doprnt || defined __stub____doprnt
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (ac_try="$ac_link"
25602 case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607 (eval "$ac_link") 2>conftest.er1
25609 grep -v '^ *+' conftest.er1 >conftest.err
25611 cat conftest.err >&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } && {
25614 test -z "$ac_c_werror_flag" ||
25615 test ! -s conftest.err
25616 } && test -s conftest$ac_exeext &&
25617 $as_test_x conftest$ac_exeext; then
25618 ac_cv_func__doprnt=yes
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25623 ac_cv_func__doprnt=no
25626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25627 conftest$ac_exeext conftest.$ac_ext
25629 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25630 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25631 if test $ac_cv_func__doprnt = yes; then
25633 cat >>confdefs.h <<\_ACEOF
25634 #define HAVE_DOPRNT 1
25643 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25644 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25645 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25646 echo $ECHO_N "(cached) $ECHO_C" >&6
25648 # Use it with a single arg.
25649 cat >conftest.$ac_ext <<_ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h. */
25655 $ac_includes_default
25664 rm -f conftest.$ac_objext
25665 if { (ac_try="$ac_compile"
25666 case "(($ac_try" in
25667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668 *) ac_try_echo=$ac_try;;
25670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25671 (eval "$ac_compile") 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } && {
25678 test -z "$ac_c_werror_flag" ||
25679 test ! -s conftest.err
25680 } && test -s conftest.$ac_objext; then
25681 ac_cv_func_getpgrp_void=no
25683 echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 ac_cv_func_getpgrp_void=yes
25689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25693 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25694 if test $ac_cv_func_getpgrp_void = yes; then
25696 cat >>confdefs.h <<\_ACEOF
25697 #define GETPGRP_VOID 1
25702 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25703 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25704 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25707 if test "$cross_compiling" = yes; then
25708 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25709 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25710 { (exit 1); exit 1; }; }
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25722 /* If this system has a BSD-style setpgrp which takes arguments,
25723 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
25724 exit successfully. */
25725 return setpgrp (1,1) != -1;
25730 rm -f conftest$ac_exeext
25731 if { (ac_try="$ac_link"
25732 case "(($ac_try" in
25733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734 *) ac_try_echo=$ac_try;;
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737 (eval "$ac_link") 2>&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25741 { (case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_try") 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 ac_cv_func_setpgrp_void=no
25752 echo "$as_me: program exited with status $ac_status" >&5
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25756 ( exit $ac_status )
25757 ac_cv_func_setpgrp_void=yes
25759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25764 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
25765 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
25766 if test $ac_cv_func_setpgrp_void = yes; then
25768 cat >>confdefs.h <<\_ACEOF
25769 #define SETPGRP_VOID 1
25782 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
25784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25790 cat >conftest.$ac_ext <<_ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h. */
25796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25798 #define $ac_func innocuous_$ac_func
25800 /* System header to define __stub macros and hopefully few prototypes,
25801 which can conflict with char $ac_func (); below.
25802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25803 <limits.h> exists even on freestanding compilers. */
25806 # include <limits.h>
25808 # include <assert.h>
25813 /* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25820 /* The GNU C library defines this for functions which it implements
25821 to always fail with ENOSYS. Some functions are actually named
25822 something starting with __ and the normal name is an alias. */
25823 #if defined __stub_$ac_func || defined __stub___$ac_func
25830 return $ac_func ();
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (ac_try="$ac_link"
25837 case "(($ac_try" in
25838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25842 (eval "$ac_link") 2>conftest.er1
25844 grep -v '^ *+' conftest.er1 >conftest.err
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } && {
25849 test -z "$ac_c_werror_flag" ||
25850 test ! -s conftest.err
25851 } && test -s conftest$ac_exeext &&
25852 $as_test_x conftest$ac_exeext; then
25853 eval "$as_ac_var=yes"
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 eval "$as_ac_var=no"
25861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25862 conftest$ac_exeext conftest.$ac_ext
25864 ac_res=`eval echo '${'$as_ac_var'}'`
25865 { echo "$as_me:$LINENO: result: $ac_res" >&5
25866 echo "${ECHO_T}$ac_res" >&6; }
25867 if test `eval echo '${'$as_ac_var'}'` = yes; then
25868 cat >>confdefs.h <<_ACEOF
25869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25881 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
25883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25897 #define $ac_func innocuous_$ac_func
25899 /* System header to define __stub macros and hopefully few prototypes,
25900 which can conflict with char $ac_func (); below.
25901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25902 <limits.h> exists even on freestanding compilers. */
25905 # include <limits.h>
25907 # include <assert.h>
25912 /* Override any GCC internal prototype to avoid an error.
25913 Use char because int might match the return type of a GCC
25914 builtin and then its argument prototype would still apply. */
25919 /* The GNU C library defines this for functions which it implements
25920 to always fail with ENOSYS. Some functions are actually named
25921 something starting with __ and the normal name is an alias. */
25922 #if defined __stub_$ac_func || defined __stub___$ac_func
25929 return $ac_func ();
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (ac_try="$ac_link"
25936 case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_link") 2>conftest.er1
25943 grep -v '^ *+' conftest.er1 >conftest.err
25945 cat conftest.err >&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } && {
25948 test -z "$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25950 } && test -s conftest$ac_exeext &&
25951 $as_test_x conftest$ac_exeext; then
25952 eval "$as_ac_var=yes"
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 eval "$as_ac_var=no"
25960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25961 conftest$ac_exeext conftest.$ac_ext
25963 ac_res=`eval echo '${'$as_ac_var'}'`
25964 { echo "$as_me:$LINENO: result: $ac_res" >&5
25965 echo "${ECHO_T}$ac_res" >&6; }
25966 if test `eval echo '${'$as_ac_var'}'` = yes; then
25967 cat >>confdefs.h <<_ACEOF
25968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25977 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
25979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25983 echo $ECHO_N "(cached) $ECHO_C" >&6
25985 cat >conftest.$ac_ext <<_ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h. */
25991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25993 #define $ac_func innocuous_$ac_func
25995 /* System header to define __stub macros and hopefully few prototypes,
25996 which can conflict with char $ac_func (); below.
25997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25998 <limits.h> exists even on freestanding compilers. */
26001 # include <limits.h>
26003 # include <assert.h>
26008 /* Override any GCC internal prototype to avoid an error.
26009 Use char because int might match the return type of a GCC
26010 builtin and then its argument prototype would still apply. */
26015 /* The GNU C library defines this for functions which it implements
26016 to always fail with ENOSYS. Some functions are actually named
26017 something starting with __ and the normal name is an alias. */
26018 #if defined __stub_$ac_func || defined __stub___$ac_func
26025 return $ac_func ();
26030 rm -f conftest.$ac_objext conftest$ac_exeext
26031 if { (ac_try="$ac_link"
26032 case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037 (eval "$ac_link") 2>conftest.er1
26039 grep -v '^ *+' conftest.er1 >conftest.err
26041 cat conftest.err >&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } && {
26044 test -z "$ac_c_werror_flag" ||
26045 test ! -s conftest.err
26046 } && test -s conftest$ac_exeext &&
26047 $as_test_x conftest$ac_exeext; then
26048 eval "$as_ac_var=yes"
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 eval "$as_ac_var=no"
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057 conftest$ac_exeext conftest.$ac_ext
26059 ac_res=`eval echo '${'$as_ac_var'}'`
26060 { echo "$as_me:$LINENO: result: $ac_res" >&5
26061 echo "${ECHO_T}$ac_res" >&6; }
26062 if test `eval echo '${'$as_ac_var'}'` = yes; then
26063 cat >>confdefs.h <<_ACEOF
26064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26072 for ac_func in krb5_crypto_init krb5_c_decrypt
26074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26078 echo $ECHO_N "(cached) $ECHO_C" >&6
26080 cat >conftest.$ac_ext <<_ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h. */
26086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26088 #define $ac_func innocuous_$ac_func
26090 /* System header to define __stub macros and hopefully few prototypes,
26091 which can conflict with char $ac_func (); below.
26092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26093 <limits.h> exists even on freestanding compilers. */
26096 # include <limits.h>
26098 # include <assert.h>
26103 /* Override any GCC internal prototype to avoid an error.
26104 Use char because int might match the return type of a GCC
26105 builtin and then its argument prototype would still apply. */
26110 /* The GNU C library defines this for functions which it implements
26111 to always fail with ENOSYS. Some functions are actually named
26112 something starting with __ and the normal name is an alias. */
26113 #if defined __stub_$ac_func || defined __stub___$ac_func
26120 return $ac_func ();
26125 rm -f conftest.$ac_objext conftest$ac_exeext
26126 if { (ac_try="$ac_link"
26127 case "(($ac_try" in
26128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129 *) ac_try_echo=$ac_try;;
26131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132 (eval "$ac_link") 2>conftest.er1
26134 grep -v '^ *+' conftest.er1 >conftest.err
26136 cat conftest.err >&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } && {
26139 test -z "$ac_c_werror_flag" ||
26140 test ! -s conftest.err
26141 } && test -s conftest$ac_exeext &&
26142 $as_test_x conftest$ac_exeext; then
26143 eval "$as_ac_var=yes"
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26148 eval "$as_ac_var=no"
26151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26152 conftest$ac_exeext conftest.$ac_ext
26154 ac_res=`eval echo '${'$as_ac_var'}'`
26155 { echo "$as_me:$LINENO: result: $ac_res" >&5
26156 echo "${ECHO_T}$ac_res" >&6; }
26157 if test `eval echo '${'$as_ac_var'}'` = yes; then
26158 cat >>confdefs.h <<_ACEOF
26159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26166 { echo "$as_me:$LINENO: checking krb5_auth_con_getauthenticator out argument type" >&5
26167 echo $ECHO_N "checking krb5_auth_con_getauthenticator out argument type... $ECHO_C" >&6; }
26168 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
26169 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 local_save_CPPFLAGS="$CPPFLAGS"
26173 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26174 cat >conftest.$ac_ext <<_ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h. */
26182 krb5_auth_con_getauthenticator(krb5_context context,
26183 krb5_auth_context auth_context,
26184 krb5_authenticator *authenticator);
26188 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26193 rm -f conftest.$ac_objext
26194 if { (ac_try="$ac_compile"
26195 case "(($ac_try" in
26196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197 *) ac_try_echo=$ac_try;;
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200 (eval "$ac_compile") 2>conftest.er1
26202 grep -v '^ *+' conftest.er1 >conftest.err
26204 cat conftest.err >&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } && {
26207 test -z "$ac_c_werror_flag" ||
26208 test ! -s conftest.err
26209 } && test -s conftest.$ac_objext; then
26210 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26212 echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26215 cat >conftest.$ac_ext <<_ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26223 krb5_auth_con_getauthenticator(krb5_context context,
26224 krb5_auth_context auth_context,
26225 krb5_authenticator **authenticator);
26229 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26234 rm -f conftest.$ac_objext
26235 if { (ac_try="$ac_compile"
26236 case "(($ac_try" in
26237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238 *) ac_try_echo=$ac_try;;
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241 (eval "$ac_compile") 2>conftest.er1
26243 grep -v '^ *+' conftest.er1 >conftest.err
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } && {
26248 test -z "$ac_c_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest.$ac_objext; then
26251 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 { { echo "$as_me:$LINENO: error: Cannot identify krb5_auth_con_getauthenticator function signature" >&5
26257 echo "$as_me: error: Cannot identify krb5_auth_con_getauthenticator function signature" >&2;}
26258 { (exit 1); exit 1; }; }
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 CPPFLAGS="${local_save_CPPFLAGS}"
26270 krb5_authent_type='krb5_authenticator *'
26271 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26272 cat >>confdefs.h <<\_ACEOF
26273 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26275 krb5_authent_type='krb5_authenticator **'
26277 { echo "$as_me:$LINENO: result: $krb5_authent_type" >&5
26278 echo "${ECHO_T}$krb5_authent_type" >&6; }
26280 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26281 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26282 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 local_save_CPPFLAGS="$CPPFLAGS"
26287 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26288 cat >conftest.$ac_ext <<_ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h. */
26298 krb5_ticket _tkt; _tkt.enc_part2;
26303 rm -f conftest.$ac_objext
26304 if { (ac_try="$ac_compile"
26305 case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_compile") 2>conftest.er1
26312 grep -v '^ *+' conftest.er1 >conftest.err
26314 cat conftest.err >&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } && {
26317 test -z "$ac_c_werror_flag" ||
26318 test ! -s conftest.err
26319 } && test -s conftest.$ac_objext; then
26320 ac_cv_have_krb5_ticket_enc_part2=yes
26322 echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26325 ac_cv_have_krb5_ticket_enc_part2=no
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26332 CPPFLAGS="${local_save_CPPFLAGS}"
26333 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26334 cat >>confdefs.h <<\_ACEOF
26335 #define HAVE_KRB5_TICKET_ENC_PART2 1
26338 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26339 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26341 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26342 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26343 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26344 echo $ECHO_N "(cached) $ECHO_C" >&6
26347 local_save_CPPFLAGS="$CPPFLAGS"
26348 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26349 cat >conftest.$ac_ext <<_ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h. */
26359 krb5_creds _creds; _creds.keyblock.enctype;
26364 rm -f conftest.$ac_objext
26365 if { (ac_try="$ac_compile"
26366 case "(($ac_try" in
26367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26368 *) ac_try_echo=$ac_try;;
26370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26371 (eval "$ac_compile") 2>conftest.er1
26373 grep -v '^ *+' conftest.er1 >conftest.err
26375 cat conftest.err >&5
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } && {
26378 test -z "$ac_c_werror_flag" ||
26379 test ! -s conftest.err
26380 } && test -s conftest.$ac_objext; then
26381 ac_cv_have_krb5_creds_keyblock_enctype=yes
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26386 ac_cv_have_krb5_creds_keyblock_enctype=no
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393 CPPFLAGS="${local_save_CPPFLAGS}"
26394 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26395 cat >>confdefs.h <<\_ACEOF
26396 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26399 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26400 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26402 # Check whether --enable-cmu-zwgcplus was given.
26403 if test "${enable_cmu_zwgcplus+set}" = set; then
26404 enableval=$enable_cmu_zwgcplus;
26405 if test "$enableval" = "yes"; then
26406 cat >>confdefs.h <<\_ACEOF
26407 #define CMU_ZWGCPLUS 1
26415 # Check whether --enable-cmu-zctl-punt was given.
26416 if test "${enable_cmu_zctl_punt+set}" = set; then
26417 enableval=$enable_cmu_zctl_punt;
26418 if test "$enableval" = "yes"; then
26419 cat >>confdefs.h <<\_ACEOF
26420 #define CMU_ZCTL_PUNT 1
26428 # Check whether --enable-cmu-hm-flush-restrict was given.
26429 if test "${enable_cmu_hm_flush_restrict+set}" = set; then
26430 enableval=$enable_cmu_hm_flush_restrict;
26431 if test "$enableval" = "yes"; then
26432 cat >>confdefs.h <<\_ACEOF
26433 #define HM_FLUSH_RESTRICT 1
26441 # Check whether --enable-cmu-opstaff-locate-self was given.
26442 if test "${enable_cmu_opstaff_locate_self+set}" = set; then
26443 enableval=$enable_cmu_opstaff_locate_self;
26444 if test "$enableval" = "yes"; then
26445 cat >>confdefs.h <<\_ACEOF
26446 #define OPSTAFF_LOCATE_SELF 1
26454 ac_config_headers="$ac_config_headers h/config.h"
26456 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"
26458 cat >confcache <<\_ACEOF
26459 # This file is a shell script that caches the results of configure
26460 # tests run on this system so they can be shared between configure
26461 # scripts and configure runs, see configure's option --config-cache.
26462 # It is not useful on other systems. If it contains results you don't
26463 # want to keep, you may remove or edit it.
26465 # config.status only pays attention to the cache file if you give it
26466 # the --recheck option to rerun configure.
26468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26470 # following values.
26474 # The following way of writing the cache mishandles newlines in values,
26475 # but we know of no workaround that is simple, portable, and efficient.
26476 # So, we kill variables containing newlines.
26477 # Ultrix sh set writes to stderr and can't be redirected directly,
26478 # and sets the high bit in the cache file unless we assign to the vars.
26480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26481 eval ac_val=\$$ac_var
26485 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26486 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26489 _ | IFS | as_nl) ;; #(
26490 *) $as_unset $ac_var ;;
26496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26497 *${as_nl}ac_space=\ *)
26498 # `set' does not quote correctly, so add quotes (double-quote
26499 # substitution turns \\\\ into \\, and sed turns \\ into \).
26502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26505 # `set' quotes correctly as required by POSIX, so do not add quotes.
26506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26520 if test -w "$cache_file"; then
26521 test "x$cache_file" != "x/dev/null" &&
26522 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26523 echo "$as_me: updating cache $cache_file" >&6;}
26524 cat confcache >$cache_file
26526 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26527 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26533 # Let make expand exec_prefix.
26534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26536 DEFS=-DHAVE_CONFIG_H
26540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26541 # 1. Remove the extension, and $U if already installed.
26542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26543 ac_i=`echo "$ac_i" | sed "$ac_script"`
26544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26545 # will be set to the directory where LIBOBJS objects are built.
26546 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26547 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26549 LIBOBJS=$ac_libobjs
26551 LTLIBOBJS=$ac_ltlibobjs
26555 : ${CONFIG_STATUS=./config.status}
26556 ac_clean_files_save=$ac_clean_files
26557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26560 cat >$CONFIG_STATUS <<_ACEOF
26562 # Generated by $as_me.
26563 # Run this file to recreate the current configuration.
26564 # Compiler output produced by configure, useful for debugging
26565 # configure, is in config.log if it exists.
26568 ac_cs_recheck=false
26570 SHELL=\${CONFIG_SHELL-$SHELL}
26573 cat >>$CONFIG_STATUS <<\_ACEOF
26574 ## --------------------- ##
26575 ## M4sh Initialization. ##
26576 ## --------------------- ##
26578 # Be more Bourne compatible
26579 DUALCASE=1; export DUALCASE # for MKS sh
26580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26584 # is contrary to our usage. Disable this feature.
26585 alias -g '${1+"$@"}'='"$@"'
26586 setopt NO_GLOB_SUBST
26588 case `(set -o) 2>/dev/null` in
26589 *posix*) set -o posix ;;
26598 # Avoid depending upon Character Ranges.
26599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26602 as_cr_digits='0123456789'
26603 as_cr_alnum=$as_cr_Letters$as_cr_digits
26605 # The user is always right.
26606 if test "${PATH_SEPARATOR+set}" != set; then
26607 echo "#! /bin/sh" >conf$$.sh
26608 echo "exit 0" >>conf$$.sh
26610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26618 # Support unset when possible.
26619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26627 # We need space, tab and new line, in precisely that order. Quoting is
26628 # there to prevent editors from complaining about space-tab.
26629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26630 # splitting by setting IFS to empty value.)
26635 # Find who we are. Look in the path if we contain no directory separator.
26637 *[\\/]* ) as_myself=$0 ;;
26638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26639 for as_dir in $PATH
26642 test -z "$as_dir" && as_dir=.
26643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26649 # We did not find ourselves, most probably we were run as `sh COMMAND'
26650 # in which case we are not to be found in the path.
26651 if test "x$as_myself" = x; then
26654 if test ! -f "$as_myself"; then
26655 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26656 { (exit 1); exit 1; }
26659 # Work around bugs in pre-3.0 UWIN ksh.
26660 for as_var in ENV MAIL MAILPATH
26661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26671 LC_TELEPHONE LC_TIME
26673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26674 eval $as_var=C; export $as_var
26676 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26680 # Required to use basename.
26681 if expr a : '\(a\)' >/dev/null 2>&1 &&
26682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26689 as_basename=basename
26695 # Name of the executable.
26696 as_me=`$as_basename -- "$0" ||
26697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26698 X"$0" : 'X\(//\)$' \| \
26699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26701 sed '/^.*\/\([^/][^/]*\)\/*$/{
26720 as_lineno_1=$LINENO
26721 as_lineno_2=$LINENO
26722 test "x$as_lineno_1" != "x$as_lineno_2" &&
26723 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26726 # uniformly replaced by the line number. The first 'sed' inserts a
26727 # line-number line after each line using $LINENO; the second 'sed'
26728 # does the real work. The second script uses 'N' to pair each
26729 # line-number line with the line containing $LINENO, and appends
26730 # trailing '-' during substitution so that $LINENO is not a special
26731 # case at line end.
26732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26733 # scripts with optimization help from Paolo Bonzini. Blame Lee
26734 # E. McMahon (1931-1989) for sed's syntax. :-)
26746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26749 ' >$as_me.lineno &&
26750 chmod +x "$as_me.lineno" ||
26751 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26752 { (exit 1); exit 1; }; }
26754 # Don't try to exec as it changes $[0], causing all sort of problems
26755 # (the dirname of $[0] is not the place where we might find the
26756 # original and so on. Autoconf is especially sensitive to this).
26757 . "./$as_me.lineno"
26758 # Exit status is that of the last command.
26763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26769 ECHO_C= ECHO_N= ECHO_T=
26770 case `echo -n x` in
26772 case `echo 'x\c'` in
26773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26780 if expr a : '\(a\)' >/dev/null 2>&1 &&
26781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26787 rm -f conf$$ conf$$.exe conf$$.file
26788 if test -d conf$$.dir; then
26789 rm -f conf$$.dir/conf$$.file
26795 if ln -s conf$$.file conf$$ 2>/dev/null; then
26797 # ... but there are two gotchas:
26798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26800 # In both cases, we have to default to `cp -p'.
26801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26803 elif ln conf$$.file conf$$ 2>/dev/null; then
26808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26809 rmdir conf$$.dir 2>/dev/null
26811 if mkdir -p . 2>/dev/null; then
26814 test -d ./-p && rmdir ./-p
26818 if test -x / >/dev/null 2>&1; then
26819 as_test_x='test -x'
26821 if ls -dL / >/dev/null 2>&1; then
26828 if test -d "$1"; then
26834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26835 ???[sx]*):;;*)false;;esac;fi
26839 as_executable_p=$as_test_x
26841 # Sed expression to map a string onto a valid CPP name.
26842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26844 # Sed expression to map a string onto a valid variable name.
26845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26850 # Save the log message, to keep $[0] and so on meaningful, and to
26851 # report actual input values of CONFIG_FILES etc. instead of their
26852 # values after options handling.
26854 This file was extended by $as_me, which was
26855 generated by GNU Autoconf 2.61. Invocation command line was
26857 CONFIG_FILES = $CONFIG_FILES
26858 CONFIG_HEADERS = $CONFIG_HEADERS
26859 CONFIG_LINKS = $CONFIG_LINKS
26860 CONFIG_COMMANDS = $CONFIG_COMMANDS
26863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26868 cat >>$CONFIG_STATUS <<_ACEOF
26869 # Files that config.status was made for.
26870 config_files="$ac_config_files"
26871 config_headers="$ac_config_headers"
26875 cat >>$CONFIG_STATUS <<\_ACEOF
26877 \`$as_me' instantiates files from templates according to the
26878 current configuration.
26880 Usage: $0 [OPTIONS] [FILE]...
26882 -h, --help print this help, then exit
26883 -V, --version print version number and configuration settings, then exit
26884 -q, --quiet do not print progress messages
26885 -d, --debug don't remove temporary files
26886 --recheck update $as_me by reconfiguring in the same conditions
26887 --file=FILE[:TEMPLATE]
26888 instantiate the configuration file FILE
26889 --header=FILE[:TEMPLATE]
26890 instantiate the configuration header FILE
26892 Configuration files:
26895 Configuration headers:
26898 Report bugs to <bug-autoconf@gnu.org>."
26901 cat >>$CONFIG_STATUS <<_ACEOF
26904 configured by $0, generated by GNU Autoconf 2.61,
26905 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26907 Copyright (C) 2006 Free Software Foundation, Inc.
26908 This config.status script is free software; the Free Software Foundation
26909 gives unlimited permission to copy, distribute and modify it."
26916 cat >>$CONFIG_STATUS <<\_ACEOF
26917 # If no file are specified by the user, then we need to provide default
26918 # value. By we need to know if files were specified by the user.
26924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26936 # Handling of the options.
26937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26940 echo "$ac_cs_version"; exit ;;
26941 --debug | --debu | --deb | --de | --d | -d )
26943 --file | --fil | --fi | --f )
26945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26946 ac_need_defaults=false;;
26947 --header | --heade | --head | --hea )
26949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26950 ac_need_defaults=false;;
26952 # Conflict between --help and --header
26953 { echo "$as_me: error: ambiguous option: $1
26954 Try \`$0 --help' for more information." >&2
26955 { (exit 1); exit 1; }; };;
26956 --help | --hel | -h )
26957 echo "$ac_cs_usage"; exit ;;
26958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26962 # This is an error.
26963 -*) { echo "$as_me: error: unrecognized option: $1
26964 Try \`$0 --help' for more information." >&2
26965 { (exit 1); exit 1; }; } ;;
26967 *) ac_config_targets="$ac_config_targets $1"
26968 ac_need_defaults=false ;;
26974 ac_configure_extra_args=
26976 if $ac_cs_silent; then
26978 ac_configure_extra_args="$ac_configure_extra_args --silent"
26982 cat >>$CONFIG_STATUS <<_ACEOF
26983 if \$ac_cs_recheck; then
26984 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26985 CONFIG_SHELL=$SHELL
26986 export CONFIG_SHELL
26987 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26991 cat >>$CONFIG_STATUS <<\_ACEOF
26995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26996 ## Running $as_me. ##
27002 cat >>$CONFIG_STATUS <<_ACEOF
27005 cat >>$CONFIG_STATUS <<\_ACEOF
27007 # Handling of arguments.
27008 for ac_config_target in $ac_config_targets
27010 case $ac_config_target in
27011 "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
27012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27013 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
27014 "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
27015 "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
27016 "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
27017 "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
27018 "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
27019 "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
27020 "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
27021 "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
27022 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27023 "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
27024 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
27025 "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
27026 "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
27028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27030 { (exit 1); exit 1; }; };;
27035 # If the user did not use the arguments to specify the items to instantiate,
27036 # then the envvar interface is used. Set only those that are not.
27037 # We use the long form for the default assignment because of an extremely
27038 # bizarre bug on SunOS 4.1.3.
27039 if $ac_need_defaults; then
27040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27044 # Have a temporary directory for convenience. Make it in the build tree
27045 # simply because there is no reason against having it here, and in addition,
27046 # creating and moving files from /tmp can sometimes cause problems.
27047 # Hook for its removal unless debugging.
27048 # Note that there is a small window in which the directory will not be cleaned:
27049 # after its creation but before its name has been assigned to `$tmp'.
27053 trap 'exit_status=$?
27054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27056 trap '{ (exit 1); exit 1; }' 1 2 13 15
27058 # Create a (secure) tmp directory for tmp files.
27061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27062 test -n "$tmp" && test -d "$tmp"
27065 tmp=./conf$$-$RANDOM
27066 (umask 077 && mkdir "$tmp")
27069 echo "$me: cannot create a temporary directory in ." >&2
27070 { (exit 1); exit 1; }
27074 # Set up the sed scripts for CONFIG_FILES section.
27077 # No need to generate the scripts if there are no CONFIG_FILES.
27078 # This happens for instance when ./config.status config.h
27079 if test -n "$CONFIG_FILES"; then
27086 for ac_last_try in false false false false false :; do
27087 cat >conf$$subs.sed <<_ACEOF
27088 SHELL!$SHELL$ac_delim
27089 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27090 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27091 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27092 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27093 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27094 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27095 exec_prefix!$exec_prefix$ac_delim
27096 prefix!$prefix$ac_delim
27097 program_transform_name!$program_transform_name$ac_delim
27098 bindir!$bindir$ac_delim
27099 sbindir!$sbindir$ac_delim
27100 libexecdir!$libexecdir$ac_delim
27101 datarootdir!$datarootdir$ac_delim
27102 datadir!$datadir$ac_delim
27103 sysconfdir!$sysconfdir$ac_delim
27104 sharedstatedir!$sharedstatedir$ac_delim
27105 localstatedir!$localstatedir$ac_delim
27106 includedir!$includedir$ac_delim
27107 oldincludedir!$oldincludedir$ac_delim
27108 docdir!$docdir$ac_delim
27109 infodir!$infodir$ac_delim
27110 htmldir!$htmldir$ac_delim
27111 dvidir!$dvidir$ac_delim
27112 pdfdir!$pdfdir$ac_delim
27113 psdir!$psdir$ac_delim
27114 libdir!$libdir$ac_delim
27115 localedir!$localedir$ac_delim
27116 mandir!$mandir$ac_delim
27117 DEFS!$DEFS$ac_delim
27118 ECHO_C!$ECHO_C$ac_delim
27119 ECHO_N!$ECHO_N$ac_delim
27120 ECHO_T!$ECHO_T$ac_delim
27121 LIBS!$LIBS$ac_delim
27122 build_alias!$build_alias$ac_delim
27123 host_alias!$host_alias$ac_delim
27124 target_alias!$target_alias$ac_delim
27125 lbindir!$lbindir$ac_delim
27126 lsbindir!$lsbindir$ac_delim
27127 build!$build$ac_delim
27128 build_cpu!$build_cpu$ac_delim
27129 build_vendor!$build_vendor$ac_delim
27130 build_os!$build_os$ac_delim
27131 host!$host$ac_delim
27132 host_cpu!$host_cpu$ac_delim
27133 host_vendor!$host_vendor$ac_delim
27134 host_os!$host_os$ac_delim
27135 target!$target$ac_delim
27136 target_cpu!$target_cpu$ac_delim
27137 target_vendor!$target_vendor$ac_delim
27138 target_os!$target_os$ac_delim
27140 CFLAGS!$CFLAGS$ac_delim
27141 LDFLAGS!$LDFLAGS$ac_delim
27142 CPPFLAGS!$CPPFLAGS$ac_delim
27143 ac_ct_CC!$ac_ct_CC$ac_delim
27144 EXEEXT!$EXEEXT$ac_delim
27145 OBJEXT!$OBJEXT$ac_delim
27146 YACC!$YACC$ac_delim
27147 YFLAGS!$YFLAGS$ac_delim
27149 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27150 LEXLIB!$LEXLIB$ac_delim
27151 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27152 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27153 INSTALL_DATA!$INSTALL_DATA$ac_delim
27154 RANLIB!$RANLIB$ac_delim
27155 GREP!$GREP$ac_delim
27156 EGREP!$EGREP$ac_delim
27157 LN_S!$LN_S$ac_delim
27158 ECHO!$ECHO$ac_delim
27160 STRIP!$STRIP$ac_delim
27163 CXXFLAGS!$CXXFLAGS$ac_delim
27164 ac_ct_CXX!$ac_ct_CXX$ac_delim
27165 CXXCPP!$CXXCPP$ac_delim
27167 FFLAGS!$FFLAGS$ac_delim
27168 ac_ct_F77!$ac_ct_F77$ac_delim
27169 LIBTOOL!$LIBTOOL$ac_delim
27170 XMKMF!$XMKMF$ac_delim
27171 X_CFLAGS!$X_CFLAGS$ac_delim
27172 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27173 X_LIBS!$X_LIBS$ac_delim
27174 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27175 XCLIENTS!$XCLIENTS$ac_delim
27176 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
27177 LIBICONV!$LIBICONV$ac_delim
27178 TLIB!$TLIB$ac_delim
27179 RLIB!$RLIB$ac_delim
27180 SLIB!$SLIB$ac_delim
27181 KRB4_LIBS!$KRB4_LIBS$ac_delim
27182 krb5config!$krb5config$ac_delim
27183 KRB5_LIBS!$KRB5_LIBS$ac_delim
27184 LIBZEPHYR_LIBS!$LIBZEPHYR_LIBS$ac_delim
27187 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27189 elif $ac_last_try; then
27190 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27191 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27192 { (exit 1); exit 1; }; }
27194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27198 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27199 if test -n "$ac_eof"; then
27200 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27201 ac_eof=`expr $ac_eof + 1`
27204 cat >>$CONFIG_STATUS <<_ACEOF
27205 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27209 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27210 s/^/s,@/; s/!/@,|#_!!_#|/
27213 s/'"$ac_delim"'$/,g/; t
27215 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27216 ' >>$CONFIG_STATUS <conf$$subs.sed
27217 rm -f conf$$subs.sed
27218 cat >>$CONFIG_STATUS <<_ACEOF
27224 for ac_last_try in false false false false false :; do
27225 cat >conf$$subs.sed <<_ACEOF
27226 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
27227 REGEX_LIBS!$REGEX_LIBS$ac_delim
27228 SS_LIBS!$SS_LIBS$ac_delim
27229 ARES_LIBS!$ARES_LIBS$ac_delim
27230 LIBOBJS!$LIBOBJS$ac_delim
27231 LTLIBOBJS!$LTLIBOBJS$ac_delim
27234 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
27236 elif $ac_last_try; then
27237 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27238 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27239 { (exit 1); exit 1; }; }
27241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27245 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27246 if test -n "$ac_eof"; then
27247 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27248 ac_eof=`expr $ac_eof + 1`
27251 cat >>$CONFIG_STATUS <<_ACEOF
27252 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27256 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27257 s/^/s,@/; s/!/@,|#_!!_#|/
27260 s/'"$ac_delim"'$/,g/; t
27262 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27263 ' >>$CONFIG_STATUS <conf$$subs.sed
27264 rm -f conf$$subs.sed
27265 cat >>$CONFIG_STATUS <<_ACEOF
27272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27274 # trailing colons and then remove the whole line if VPATH becomes empty
27275 # (actually we leave an empty line to preserve line numbers).
27276 if test "x$srcdir" = x.; then
27277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27278 s/:*\$(srcdir):*/:/
27279 s/:*\${srcdir}:*/:/
27281 s/^\([^=]*=[ ]*\):*/\1/
27287 cat >>$CONFIG_STATUS <<\_ACEOF
27288 fi # test -n "$CONFIG_FILES"
27291 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27294 :[FHLC]) ac_mode=$ac_tag; continue;;
27296 case $ac_mode$ac_tag in
27298 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27299 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27300 { (exit 1); exit 1; }; };;
27301 :[FH]-) ac_tag=-:-;;
27302 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27319 -) ac_f="$tmp/stdin";;
27320 *) # Look for the file first in the build tree, then in the source tree
27321 # (if the path is not absolute). The absolute path cannot be DOS-style,
27322 # because $ac_f cannot contain `:'.
27326 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27328 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27329 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27330 { (exit 1); exit 1; }; };;
27332 ac_file_inputs="$ac_file_inputs $ac_f"
27335 # Let's still pretend it is `configure' which instantiates (i.e., don't
27336 # use $as_me), people would be surprised to read:
27337 # /* config.h. Generated by config.status. */
27338 configure_input="Generated from "`IFS=:
27339 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27340 if test x"$ac_file" != x-; then
27341 configure_input="$ac_file. $configure_input"
27342 { echo "$as_me:$LINENO: creating $ac_file" >&5
27343 echo "$as_me: creating $ac_file" >&6;}
27347 *:-:* | *:-) cat >"$tmp/stdin";;
27352 ac_dir=`$as_dirname -- "$ac_file" ||
27353 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27354 X"$ac_file" : 'X\(//\)[^/]' \| \
27355 X"$ac_file" : 'X\(//\)$' \| \
27356 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27362 /^X\(\/\/\)[^/].*/{
27377 -*) as_dir=./$as_dir;;
27379 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27383 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27384 *) as_qdir=$as_dir;;
27386 as_dirs="'$as_qdir' $as_dirs"
27387 as_dir=`$as_dirname -- "$as_dir" ||
27388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27389 X"$as_dir" : 'X\(//\)[^/]' \| \
27390 X"$as_dir" : 'X\(//\)$' \| \
27391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27397 /^X\(\/\/\)[^/].*/{
27410 test -d "$as_dir" && break
27412 test -z "$as_dirs" || eval "mkdir $as_dirs"
27413 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27414 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27415 { (exit 1); exit 1; }; }; }
27419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27422 # A ".." for each directory in $ac_dir_suffix.
27423 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27424 case $ac_top_builddir_sub in
27425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27429 ac_abs_top_builddir=$ac_pwd
27430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27431 # for backward compatibility:
27432 ac_top_builddir=$ac_top_build_prefix
27435 .) # We are building in place.
27437 ac_top_srcdir=$ac_top_builddir_sub
27438 ac_abs_top_srcdir=$ac_pwd ;;
27439 [\\/]* | ?:[\\/]* ) # Absolute name.
27440 ac_srcdir=$srcdir$ac_dir_suffix;
27441 ac_top_srcdir=$srcdir
27442 ac_abs_top_srcdir=$srcdir ;;
27443 *) # Relative name.
27444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27445 ac_top_srcdir=$ac_top_build_prefix$srcdir
27446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27463 cat >>$CONFIG_STATUS <<\_ACEOF
27464 # If the template does not know about datarootdir, expand it.
27465 # FIXME: This hack should be removed a few years after 2.60.
27466 ac_datarootdir_hack=; ac_datarootdir_seen=
27468 case `sed -n '/datarootdir/ {
27477 ' $ac_file_inputs` in
27478 *datarootdir*) ac_datarootdir_seen=yes;;
27479 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27480 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27481 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27483 cat >>$CONFIG_STATUS <<_ACEOF
27484 ac_datarootdir_hack='
27485 s&@datadir@&$datadir&g
27486 s&@docdir@&$docdir&g
27487 s&@infodir@&$infodir&g
27488 s&@localedir@&$localedir&g
27489 s&@mandir@&$mandir&g
27490 s&\\\${datarootdir}&$datarootdir&g' ;;
27494 # Neutralize VPATH when `$srcdir' = `.'.
27495 # Shell code in configure.ac might set extrasub.
27496 # FIXME: do we really want to maintain this feature?
27497 cat >>$CONFIG_STATUS <<_ACEOF
27501 cat >>$CONFIG_STATUS <<\_ACEOF
27503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27504 s&@configure_input@&$configure_input&;t t
27505 s&@top_builddir@&$ac_top_builddir_sub&;t t
27506 s&@srcdir@&$ac_srcdir&;t t
27507 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27508 s&@top_srcdir@&$ac_top_srcdir&;t t
27509 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27510 s&@builddir@&$ac_builddir&;t t
27511 s&@abs_builddir@&$ac_abs_builddir&;t t
27512 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27513 s&@INSTALL@&$ac_INSTALL&;t t
27514 $ac_datarootdir_hack
27515 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27517 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27518 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27519 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27520 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27521 which seems to be undefined. Please make sure it is defined." >&5
27522 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27523 which seems to be undefined. Please make sure it is defined." >&2;}
27527 -) cat "$tmp/out"; rm -f "$tmp/out";;
27528 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27537 # Transform confdefs.h into a sed script `conftest.defines', that
27538 # substitutes the proper values into config.h.in to produce config.h.
27539 rm -f conftest.defines conftest.tail
27540 # First, append a space to every undef/define line, to ease matching.
27541 echo 's/$/ /' >conftest.defines
27542 # Then, protect against being on the right side of a sed subst, or in
27543 # an unquoted here document, in config.status. If some macros were
27544 # called several times there might be several #defines for the same
27545 # symbol, which is useless. But do not sort them, since the last
27546 # AC_DEFINE must be honored.
27547 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27548 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27549 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27550 # PARAMS is the parameter list in the macro definition--in most cases, it's
27551 # just an empty string.
27552 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27553 ac_dB='\\)[ (].*,\\1define\\2'
27561 s/^[ ]*#[ ]*define[ ][ ]*//
27566 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27567 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27568 ' >>conftest.defines
27570 # Remove the space that was appended to ease matching.
27571 # Then replace #undef with comments. This is necessary, for
27572 # example, in the case of _POSIX_SOURCE, which is predefined and required
27573 # on some systems where configure will not decide to define it.
27574 # (The regexp can be short, since the line contains either #define or #undef.)
27576 s,^[ #]*u.*,/* & */,' >>conftest.defines
27578 # Break up conftest.defines:
27579 ac_max_sed_lines=50
27581 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27582 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27583 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27585 ac_in='$ac_file_inputs'
27586 ac_out='"$tmp/out1"'
27587 ac_nxt='"$tmp/out2"'
27591 # Write a here document:
27592 cat >>$CONFIG_STATUS <<_ACEOF
27593 # First, check the format of the line:
27594 cat >"\$tmp/defines.sed" <<\\CEOF
27595 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27596 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27600 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27602 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27603 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27604 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27605 grep . conftest.tail >/dev/null || break
27606 rm -f conftest.defines
27607 mv conftest.tail conftest.defines
27609 rm -f conftest.defines conftest.tail
27611 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27612 cat >>$CONFIG_STATUS <<\_ACEOF
27613 if test x"$ac_file" != x-; then
27614 echo "/* $configure_input */" >"$tmp/config.h"
27615 cat "$ac_result" >>"$tmp/config.h"
27616 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27617 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27618 echo "$as_me: $ac_file is unchanged" >&6;}
27621 mv "$tmp/config.h" $ac_file
27624 echo "/* $configure_input */"
27636 { (exit 0); exit 0; }
27638 chmod +x $CONFIG_STATUS
27639 ac_clean_files=$ac_clean_files_save
27642 # configure is writing to config.log, and then calls config.status.
27643 # config.status does its own redirection, appending to config.log.
27644 # Unfortunately, on DOS this fails, as config.log is still kept open
27645 # by configure, so config.status won't be able to write to it; its
27646 # output is simply discarded. So we exec the FD to /dev/null,
27647 # effectively closing config.log, so it can be properly (re)opened and
27648 # appended to by config.status. When coming back to configure, we
27649 # need to make the FD available again.
27650 if test "$no_create" != yes; then
27652 ac_config_status_args=
27653 test "$silent" = yes &&
27654 ac_config_status_args="$ac_config_status_args --quiet"
27656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27659 # would make configure fail if this is the last instruction.
27660 $ac_cs_success || { (exit 1); exit 1; }