2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="README"
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
820 INSTALL_STRIP_PROGRAM
829 MAINTAINER_MODE_FALSE
882 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1189 -site=* | --site=* | --sit=*)
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 if test -n "$ac_init_help"; then
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-maintainer-mode enable make rules and dependencies not useful
1475 (and sometimes confusing) to the casual installer
1476 --disable-dependency-tracking speeds up one-time build
1477 --enable-dependency-tracking do not reject slow dependency extractors
1478 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1479 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1480 --enable-fast-install@<:@=PKGS@:>@
1481 optimize for fast installation @<:@default=yes@:>@
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1488 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1490 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1491 --with-darts=DIR specify a path for the header file of Darts
1492 --with-libiconv=DIR use libiconv in DIR
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 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1505 CXXCPP C++ preprocessor
1506 F77 Fortran 77 compiler command
1507 FFLAGS Fortran 77 compiler flags
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" || continue
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1539 .) # We are building in place.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1563 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1573 generated by GNU Autoconf 2.61
1575 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1576 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1586 It was created by $as_me, which was
1587 generated by GNU Autoconf 2.61. Invocation command line was
1595 @%:@@%:@ --------- @%:@@%:@
1596 @%:@@%:@ Platform. @%:@@%:@
1597 @%:@@%:@ --------- @%:@@%:@
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1609 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1612 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1613 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1614 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1632 @%:@@%:@ ----------- @%:@@%:@
1633 @%:@@%:@ Core tests. @%:@@%:@
1634 @%:@@%:@ ----------- @%:@@%:@
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_must_keep_next=false
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1658 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676 -* ) ac_must_keep_next=true ;;
1679 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log. We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1698 @%:@@%:@ ---------------- @%:@@%:@
1699 @%:@@%:@ Cache variables. @%:@@%:@
1700 @%:@@%:@ ---------------- @%:@@%:@
1703 # The following way of writing the cache mishandles newlines in values,
1705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706 eval ac_val=\$$ac_var
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
1723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 @%:@@%:@ ----------------- @%:@@%:@
1736 @%:@@%:@ Output variables. @%:@@%:@
1737 @%:@@%:@ ----------------- @%:@@%:@
1740 for ac_var in $ac_subst_vars
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1750 if test -n "$ac_subst_files"; then
1752 @%:@@%:@ ------------------- @%:@@%:@
1753 @%:@@%:@ File substitutions. @%:@@%:@
1754 @%:@@%:@ ------------------- @%:@@%:@
1757 for ac_var in $ac_subst_files
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1768 if test -s confdefs.h; then
1770 @%:@@%:@ ----------- @%:@@%:@
1771 @%:@@%:@ confdefs.h. @%:@@%:@
1772 @%:@@%:@ ----------- @%:@@%:@
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786 for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1794 # Predefined preprocessor variables.
1796 cat >>confdefs.h <<_ACEOF
1797 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1801 cat >>confdefs.h <<_ACEOF
1802 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 cat >>confdefs.h <<_ACEOF
1807 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 cat >>confdefs.h <<_ACEOF
1812 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1816 cat >>confdefs.h <<_ACEOF
1817 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
1834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1842 if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1859 # Check that the precious variables saved in the cache have kept the same
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
1867 case $ac_old_set,$ac_new_set in
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1882 echo "$as_me: former value: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1884 echo "$as_me: current value: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 *) ac_arg=$ac_var=$ac_new_val ;;
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 am__api_version="1.9"
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935 if test -f "$ac_dir/install-sh"; then
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 elif test -f "$ac_dir/install.sh"; then
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 elif test -f "$ac_dir/shtool"; then
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952 { (exit 1); exit 1; }; }
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 # Find a good install program. We prefer a C program (faster),
1965 # so one script is as good as another. But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1971 # AmigaOS /C/install, which installs bootblocks on floppy discs
1972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1975 # OS/2's system install, which has a completely different semantic
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1979 if test -z "$INSTALL"; then
1980 if test "${ac_cv_path_install+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 # Account for people who put trailing slashes in PATH elements.
1990 ./ | .// | /cC/* | \
1991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1992 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1995 # OSF1 and SCO ODT 3.0 have their own names for install.
1996 # Don't use installbsd from OSF since it installs stuff as root
1998 for ac_prog in ginstall scoinst install; do
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2001 if test $ac_prog = install &&
2002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003 # AIX install. It has an incompatible calling convention.
2005 elif test $ac_prog = install &&
2006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # program-specific install script used by HP pwplus--don't use.
2010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 if test "${ac_cv_path_install+set}" = set; then
2024 INSTALL=$ac_cv_path_install
2026 # As a last resort, use the slow shell script. Don't cache a
2027 # value for INSTALL within a source directory, because that will
2028 # break other packages using the cache if that directory is
2029 # removed, or if the value is a relative name.
2030 INSTALL=$ac_install_sh
2033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2034 echo "${ECHO_T}$INSTALL" >&6; }
2036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2037 # It thinks the first close brace ends the variable substitution.
2038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2044 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2045 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2048 echo timestamp > conftest.file
2049 # Do `set' in a subshell so we don't clobber the current shell's
2050 # arguments. Must try -L first in case configure is actually a
2051 # symlink; some systems play weird games with the mod time of symlinks
2052 # (eg FreeBSD returns the mod time of the symlink's containing
2055 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2056 if test "$*" = "X"; then
2058 set X `ls -t $srcdir/configure conftest.file`
2061 if test "$*" != "X $srcdir/configure conftest.file" \
2062 && test "$*" != "X conftest.file $srcdir/configure"; then
2064 # If neither matched, then we have a broken ls. This can happen
2065 # if, for instance, CONFIG_SHELL is bash and it inherits a
2066 # broken ls alias from the environment. This has actually
2067 # happened. Such a system could not be considered "sane".
2068 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&5
2070 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2071 alias in your environment" >&2;}
2072 { (exit 1); exit 1; }; }
2075 test "$2" = conftest.file
2081 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2082 Check your system clock" >&5
2083 echo "$as_me: error: newly created file is older than distributed files!
2084 Check your system clock" >&2;}
2085 { (exit 1); exit 1; }; }
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 test "$program_prefix" != NONE &&
2090 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2091 # Use a double $ so make ignores it.
2092 test "$program_suffix" != NONE &&
2093 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2094 # Double any \ or $. echo might interpret backslashes.
2095 # By default was `s,x,x', remove it if useless.
2096 cat <<\_ACEOF >conftest.sed
2097 s/[\\$]/&&/g;s/;s,x,x,$//
2099 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2102 # expand $ac_aux_dir to an absolute path
2103 am_aux_dir=`cd $ac_aux_dir && pwd`
2105 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2106 # Use eval to expand $SHELL
2107 if eval "$MISSING --run true"; then
2108 am_missing_run="$MISSING --run "
2111 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2115 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2116 # We used to keeping the `.' as first argument, in order to
2117 # allow $(mkdir_p) to be used without argument. As in
2118 # $(mkdir_p) $(somedir)
2119 # where $(somedir) is conditionally defined. However this is wrong
2121 # 1. if the package is installed by a user who cannot write `.'
2122 # make install will fail,
2123 # 2. the above comment should most certainly read
2124 # $(mkdir_p) $(DESTDIR)$(somedir)
2125 # so it does not work when $(somedir) is undefined and
2126 # $(DESTDIR) is not.
2127 # To support the latter case, we have to write
2128 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2129 # so the `.' trick is pointless.
2130 mkdir_p='mkdir -p --'
2132 # On NextStep and OpenStep, the `mkdir' command does not
2133 # recognize any option. It will interpret all options as
2134 # directories to create, and then abort because `.' already
2136 for d in ./-p ./--version;
2138 test -d $d && rmdir $d
2140 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2141 if test -f "$ac_aux_dir/mkinstalldirs"; then
2142 mkdir_p='$(mkinstalldirs)'
2144 mkdir_p='$(install_sh) -d'
2148 for ac_prog in gawk mawk nawk awk
2150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_AWK+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$AWK"; then
2158 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_AWK="$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test -n "$AWK"; then
2179 { echo "$as_me:$LINENO: result: $AWK" >&5
2180 echo "${ECHO_T}$AWK" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2187 test -n "$AWK" && break
2190 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2191 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2192 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2193 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 cat >conftest.make <<\_ACEOF
2199 @echo '@@@%%%=$(MAKE)=@@@%%%'
2201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2202 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2204 eval ac_cv_prog_make_${ac_make}_set=yes;;
2206 eval ac_cv_prog_make_${ac_make}_set=no;;
2210 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2211 { echo "$as_me:$LINENO: result: yes" >&5
2212 echo "${ECHO_T}yes" >&6; }
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 SET_MAKE="MAKE=${MAKE-make}"
2220 rm -rf .tst 2>/dev/null
2221 mkdir .tst 2>/dev/null
2222 if test -d .tst; then
2227 rmdir .tst 2>/dev/null
2229 # test to see if srcdir already configured
2230 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2231 test -f $srcdir/config.status; then
2232 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2233 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2234 { (exit 1); exit 1; }; }
2237 # test whether we have cygpath
2238 if test -z "$CYGPATH_W"; then
2239 if (cygpath --version) >/dev/null 2>/dev/null; then
2240 CYGPATH_W='cygpath -w'
2247 # Define the identity of the package.
2249 VERSION=2.4.0-preview5
2252 cat >>confdefs.h <<_ACEOF
2253 @%:@define PACKAGE "$PACKAGE"
2257 cat >>confdefs.h <<_ACEOF
2258 @%:@define VERSION "$VERSION"
2261 # Some tools Automake needs.
2263 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2266 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2269 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2272 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2275 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2277 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2279 # Installed binaries are usually stripped using `strip' when the user
2280 # run `make install-strip'. However `strip' might not be the right
2281 # tool to use in cross-compilation environments, therefore Automake
2282 # will honor the `STRIP' environment variable to overrule this program.
2283 if test "$cross_compiling" != no; then
2284 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_STRIP+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$STRIP"; then
2293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 STRIP=$ac_cv_prog_STRIP
2313 if test -n "$STRIP"; then
2314 { echo "$as_me:$LINENO: result: $STRIP" >&5
2315 echo "${ECHO_T}$STRIP" >&6; }
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2323 if test -z "$ac_cv_prog_STRIP"; then
2325 # Extract the first word of "strip", so it can be a program name with args.
2326 set dummy strip; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 if test -n "$ac_ct_STRIP"; then
2333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342 ac_cv_prog_ac_ct_STRIP="strip"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2353 if test -n "$ac_ct_STRIP"; then
2354 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2355 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2357 { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2361 if test "x$ac_ct_STRIP" = x; then
2364 case $cross_compiling:$ac_tool_warned in
2366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&5
2369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2370 whose name does not start with the host triplet. If you think this
2371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2372 ac_tool_warned=yes ;;
2377 STRIP="$ac_cv_prog_STRIP"
2381 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2383 # We need awk for the "check" target. The system "awk" is bad on
2385 # Always define AMTAR for backward compatibility.
2387 AMTAR=${AMTAR-"${am_missing_run}tar"}
2389 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2395 ac_config_headers="$ac_config_headers config.h"
2397 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2398 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2399 # Check whether --enable-maintainer-mode was given.
2400 if test "${enable_maintainer_mode+set}" = set; then
2401 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2403 USE_MAINTAINER_MODE=no
2406 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2407 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2410 if test $USE_MAINTAINER_MODE = yes; then
2411 MAINTAINER_MODE_TRUE=
2412 MAINTAINER_MODE_FALSE='#'
2414 MAINTAINER_MODE_TRUE='#'
2415 MAINTAINER_MODE_FALSE=
2418 MAINT=$MAINTAINER_MODE_TRUE
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2466 if test -z "$ac_cv_prog_CC"; then
2468 # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_CC="gcc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6; }
2500 { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2504 if test "x$ac_ct_CC" = x; then
2507 case $cross_compiling:$ac_tool_warned in
2509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet. If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="${ac_tool_prefix}cc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2564 if test -z "$CC"; then
2565 # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584 ac_prog_rejected=yes
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test $ac_prog_rejected = yes; then
2596 # We found a bogon in the path, so make sure we never use it.
2597 set dummy $ac_cv_prog_CC
2599 if test $@%:@ != 0; then
2600 # We chose a different compiler from the bogus one.
2601 # However, it has the same basename, so the bogon will be chosen
2602 # first if we set CC to just the basename; use the full file name.
2604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 for ac_prog in cl.exe
2624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 if test -n "$CC"; then
2653 { echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2661 test -n "$CC" && break
2664 if test -z "$CC"; then
2666 for ac_prog in cl.exe
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_CC="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2705 test -n "$ac_ct_CC" && break
2708 if test "x$ac_ct_CC" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet. If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2734 # Provide some information about the compiler.
2735 echo "$as_me:$LINENO: checking for C compiler version" >&5
2736 ac_compiler=`set X $ac_compile; echo $2`
2737 { (ac_try="$ac_compiler --version >&5"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compiler --version >&5") 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler -v >&5") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -V >&5"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -V >&5") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2788 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 # List of possible output files, starting from the most likely.
2793 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794 # only as a last resort. b.out is created by i960 compilers.
2795 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797 # The IRIX 6 linker writes into existing files which may not be
2798 # executable, retaining their permissions. Remove them first so a
2799 # subsequent execution test works.
2801 for ac_file in $ac_files
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 if { (ac_try="$ac_link_default"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_link_default") 2>&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; then
2820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2825 for ac_file in $ac_files ''
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2832 # We found the default executable, but exeext='' is most
2836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 # We set ac_cv_exeext here because the later test for it is not
2841 # safe: cross compilers may not add the suffix if given an `-o'
2842 # argument, so we may need to know it at that point already.
2843 # Even if this section looks crufty: it has the advantage of
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856 { echo "$as_me:$LINENO: result: $ac_file" >&5
2857 echo "${ECHO_T}$ac_file" >&6; }
2858 if test -z "$ac_file"; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&2;}
2866 { (exit 77); exit 77; }; }
2869 ac_exeext=$ac_cv_exeext
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878 if { ac_try='./$ac_file'
2879 { (case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_try") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2890 if test "$cross_compiling" = maybe; then
2893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 echo "${ECHO_T}$cross_compiling" >&6; }
2915 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917 if { (ac_try="$ac_link"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_link") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2929 # work properly (i.e., refer to `conftest.exe'), while it won't with
2931 for ac_file in conftest.exe conftest conftest.*; do
2932 test -f "$ac_file" || continue
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }
2948 rm -f conftest$ac_cv_exeext
2949 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2955 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2957 if test "${ac_cv_objext+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.o conftest.obj
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; then
2986 for ac_file in conftest.o conftest.obj conftest.*; do
2987 test -f "$ac_file" || continue;
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008 echo "${ECHO_T}$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3011 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3065 GCC=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 ac_c_werror_flag=$ac_save_c_werror_flag
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3214 if test "$GCC" = yes; then
3220 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3221 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_cc_c89+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_cv_prog_cc_c89=no
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3235 #include <sys/types.h>
3236 #include <sys/stat.h>
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3251 s = g (p, va_arg (v,int));
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 CC="$ac_save_CC $ac_arg"
3288 rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_compile") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } && {
3302 test -z "$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3304 } && test -s conftest.$ac_objext; then
3305 ac_cv_prog_cc_c89=$ac_arg
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3313 rm -f core conftest.err conftest.$ac_objext
3314 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 rm -f conftest.$ac_ext
3321 case "x$ac_cv_prog_cc_c89" in
3323 { echo "$as_me:$LINENO: result: none needed" >&5
3324 echo "${ECHO_T}none needed" >&6; } ;;
3326 { echo "$as_me:$LINENO: result: unsupported" >&5
3327 echo "${ECHO_T}unsupported" >&6; } ;;
3329 CC="$CC $ac_cv_prog_cc_c89"
3330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 DEPDIR="${am__leading_dot}deps"
3342 ac_config_commands="$ac_config_commands depfiles"
3345 am_make=${MAKE-make}
3346 cat > confinc << 'END'
3351 # If we don't find an include directive, just comment out the code.
3352 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3353 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3357 # First try GNU make style include.
3358 echo "include confinc" > confmf
3359 # We grep out `Entering directory' and `Leaving directory'
3360 # messages which can occur if `w' ends up in MAKEFLAGS.
3361 # In particular we don't look at `^make:' because GNU make might
3362 # be invoked under some other name (usually "gmake"), in which
3363 # case it prints its new name instead of `make'.
3364 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3369 # Now try BSD make style include.
3370 if test "$am__include" = "#"; then
3371 echo '.include "confinc"' > confmf
3372 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3373 am__include=.include
3380 { echo "$as_me:$LINENO: result: $_am_result" >&5
3381 echo "${ECHO_T}$_am_result" >&6; }
3382 rm -f confinc confmf
3384 # Check whether --enable-dependency-tracking was given.
3385 if test "${enable_dependency_tracking+set}" = set; then
3386 enableval=$enable_dependency_tracking;
3389 if test "x$enable_dependency_tracking" != xno; then
3390 am_depcomp="$ac_aux_dir/depcomp"
3395 if test "x$enable_dependency_tracking" != xno; then
3406 depcc="$CC" am_compiler_list=
3408 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3432 am_cv_CC_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type=$depmode
3494 am_cv_CC_dependencies_compiler_type=none
3498 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_FALSE='#'
3510 am__fastdepCC_TRUE='#'
3511 am__fastdepCC_FALSE=
3516 ac_cpp='$CXXCPP $CPPFLAGS'
3517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3520 if test -z "$CXX"; then
3521 if test -n "$CCC"; then
3524 if test -n "$ac_tool_prefix"; then
3525 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3531 if test "${ac_cv_prog_CXX+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 if test -n "$CXX"; then
3535 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 if test -n "$CXX"; then
3556 { echo "$as_me:$LINENO: result: $CXX" >&5
3557 echo "${ECHO_T}$CXX" >&6; }
3559 { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3564 test -n "$CXX" && break
3567 if test -z "$CXX"; then
3569 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if test -n "$ac_ct_CXX"; then
3579 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 ac_cv_prog_ac_ct_CXX="$ac_prog"
3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3599 if test -n "$ac_ct_CXX"; then
3600 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3601 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3603 { echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6; }
3608 test -n "$ac_ct_CXX" && break
3611 if test "x$ac_ct_CXX" = x; then
3614 case $cross_compiling:$ac_tool_warned in
3616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3617 whose name does not start with the host triplet. If you think this
3618 configuration is useful to you, please write to autoconf@gnu.org." >&5
3619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3620 whose name does not start with the host triplet. If you think this
3621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3622 ac_tool_warned=yes ;;
3630 # Provide some information about the compiler.
3631 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3632 ac_compiler=`set X $ac_compile; echo $2`
3633 { (ac_try="$ac_compiler --version >&5"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_compiler --version >&5") 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }
3643 { (ac_try="$ac_compiler -v >&5"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_compiler -v >&5") 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }
3653 { (ac_try="$ac_compiler -V >&5"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_compiler -V >&5") 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }
3664 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3665 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3666 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3687 rm -f conftest.$ac_objext
3688 if { (ac_try="$ac_compile"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_compile") 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } && {
3701 test -z "$ac_cxx_werror_flag" ||
3702 test ! -s conftest.err
3703 } && test -s conftest.$ac_objext; then
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3716 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3717 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3718 GXX=`test $ac_compiler_gnu = yes && echo yes`
3719 ac_test_CXXFLAGS=${CXXFLAGS+set}
3720 ac_save_CXXFLAGS=$CXXFLAGS
3721 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3722 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_cxx_g+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3727 ac_cxx_werror_flag=yes
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_cxx_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 ac_cv_prog_cxx_g=yes
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_cxx_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_compile") 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } && {
3836 test -z "$ac_cxx_werror_flag" ||
3837 test ! -s conftest.err
3838 } && test -s conftest.$ac_objext; then
3839 ac_cv_prog_cxx_g=yes
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3857 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3858 if test "$ac_test_CXXFLAGS" = set; then
3859 CXXFLAGS=$ac_save_CXXFLAGS
3860 elif test $ac_cv_prog_cxx_g = yes; then
3861 if test "$GXX" = yes; then
3867 if test "$GXX" = yes; then
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879 depcc="$CXX" am_compiler_list=
3881 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3882 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3883 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3887 # We make a subdir and do the tests there. Otherwise we can end up
3888 # making bogus files that we don't know about and never remove. For
3889 # instance it was reported that on HP-UX the gcc test will end up
3890 # making a dummy file named `D' -- because `-MD' means `put the output
3893 # Copy depcomp to subdir because otherwise we won't find it if we're
3894 # using a relative directory.
3895 cp "$am_depcomp" conftest.dir
3897 # We will build objects and dependencies in a subdirectory because
3898 # it helps to detect inapplicable dependency modes. For instance
3899 # both Tru64's cc and ICC support -MD to output dependencies as a
3900 # side effect of compilation, but ICC will put the dependencies in
3901 # the current directory while Tru64 will put them in the object
3905 am_cv_CXX_dependencies_compiler_type=none
3906 if test "$am_compiler_list" = ""; then
3907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3909 for depmode in $am_compiler_list; do
3910 # Setup a source with many dependencies, because some compilers
3911 # like to wrap large dependency lists on column 80 (with \), and
3912 # we should not choose a depcomp mode which is confused by this.
3914 # We need to recreate these files for each test, as the compiler may
3915 # overwrite some of them when testing with obscure command lines.
3916 # This happens at least with the AIX C compiler.
3918 for i in 1 2 3 4 5 6; do
3919 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3920 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3921 # Solaris 8's {/usr,}/bin/sh.
3922 touch sub/conftst$i.h
3924 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3928 # after this tag, mechanisms are not by side-effect, so they'll
3929 # only be used when explicitly requested
3930 if test "x$enable_dependency_tracking" = xyes; then
3938 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3939 # mode. It turns out that the SunPro C++ compiler does not properly
3940 # handle `-M -o', and we need to detect this.
3941 if depmode=$depmode \
3942 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3943 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3944 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3945 >/dev/null 2>conftest.err &&
3946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949 # icc doesn't choke on unknown options, it will just issue warnings
3950 # or remarks (even with -Werror). So we grep stderr for any message
3951 # that says an option was ignored or not supported.
3952 # When given -MP, icc 7.0 and 7.1 complain thusly:
3953 # icc: Command line warning: ignoring option '-M'; no argument required
3954 # The diagnosis changed in icc 8.0:
3955 # icc: Command line remark: option '-MP' not supported
3956 if (grep 'ignoring option' conftest.err ||
3957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958 am_cv_CXX_dependencies_compiler_type=$depmode
3967 am_cv_CXX_dependencies_compiler_type=none
3971 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3972 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3973 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3978 test "x$enable_dependency_tracking" != xno \
3979 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3980 am__fastdepCXX_TRUE=
3981 am__fastdepCXX_FALSE='#'
3983 am__fastdepCXX_TRUE='#'
3984 am__fastdepCXX_FALSE=
3988 # Check whether --enable-shared was given.
3989 if test "${enable_shared+set}" = set; then
3990 enableval=$enable_shared; p=${PACKAGE-default}
3992 yes) enable_shared=yes ;;
3993 no) enable_shared=no ;;
3996 # Look at the argument we got. We use all the common list separators.
3997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3998 for pkg in $enableval; do
4000 if test "X$pkg" = "X$p"; then
4012 # Check whether --enable-static was given.
4013 if test "${enable_static+set}" = set; then
4014 enableval=$enable_static; p=${PACKAGE-default}
4016 yes) enable_static=yes ;;
4017 no) enable_static=no ;;
4020 # Look at the argument we got. We use all the common list separators.
4021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4022 for pkg in $enableval; do
4024 if test "X$pkg" = "X$p"; then
4036 # Check whether --enable-fast-install was given.
4037 if test "${enable_fast_install+set}" = set; then
4038 enableval=$enable_fast_install; p=${PACKAGE-default}
4040 yes) enable_fast_install=yes ;;
4041 no) enable_fast_install=no ;;
4043 enable_fast_install=no
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4048 if test "X$pkg" = "X$p"; then
4049 enable_fast_install=yes
4056 enable_fast_install=yes
4060 # Make sure we can run config.sub.
4061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4064 { (exit 1); exit 1; }; }
4066 { echo "$as_me:$LINENO: checking build system type" >&5
4067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4068 if test "${ac_cv_build+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 ac_build_alias=$build_alias
4072 test "x$ac_build_alias" = x &&
4073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4074 test "x$ac_build_alias" = x &&
4075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4077 { (exit 1); exit 1; }; }
4078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4081 { (exit 1); exit 1; }; }
4084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4085 echo "${ECHO_T}$ac_cv_build" >&6; }
4086 case $ac_cv_build in
4088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4089 echo "$as_me: error: invalid value of canonical build" >&2;}
4090 { (exit 1); exit 1; }; };;
4093 ac_save_IFS=$IFS; IFS='-'
4099 # Remember, the first character of IFS is used to create $*,
4100 # except with old shells:
4103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4106 { echo "$as_me:$LINENO: checking host system type" >&5
4107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4108 if test "${ac_cv_host+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test "x$host_alias" = x; then
4112 ac_cv_host=$ac_cv_build
4114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4117 { (exit 1); exit 1; }; }
4121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4122 echo "${ECHO_T}$ac_cv_host" >&6; }
4125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4126 echo "$as_me: error: invalid value of canonical host" >&2;}
4127 { (exit 1); exit 1; }; };;
4130 ac_save_IFS=$IFS; IFS='-'
4136 # Remember, the first character of IFS is used to create $*,
4137 # except with old shells:
4140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4143 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4144 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4145 if test "${lt_cv_path_SED+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 # Loop through the user's path and test for sed and gsed.
4149 # Then use that list of sed's as ones to test for truncation.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for lt_ac_prog in sed gsed; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4158 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4166 # along with /bin/sed that truncates output.
4167 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4168 test ! -f $lt_ac_sed && continue
4169 cat /dev/null > conftest.in
4171 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4172 # Check for GNU sed and select it if it is found.
4173 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4174 lt_cv_path_SED=$lt_ac_sed
4178 cat conftest.in conftest.in >conftest.tmp
4179 mv conftest.tmp conftest.in
4180 cp conftest.in conftest.nl
4182 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4183 cmp -s conftest.out conftest.nl || break
4184 # 10000 chars as input seems more than enough
4185 test $lt_ac_count -gt 10 && break
4186 lt_ac_count=`expr $lt_ac_count + 1`
4187 if test $lt_ac_count -gt $lt_ac_max; then
4188 lt_ac_max=$lt_ac_count
4189 lt_cv_path_SED=$lt_ac_sed
4197 { echo "$as_me:$LINENO: result: $SED" >&5
4198 echo "${ECHO_T}$SED" >&6; }
4200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4202 if test "${ac_cv_path_GREP+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 # Extract the first word of "grep ggrep" to use in msg output
4206 if test -z "$GREP"; then
4207 set dummy grep ggrep; ac_prog_name=$2
4208 if test "${ac_cv_path_GREP+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 ac_count=`expr $ac_count + 1`
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251 $ac_path_GREP_found && break 3
4261 GREP="$ac_cv_path_GREP"
4262 if test -z "$GREP"; then
4263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4269 ac_cv_path_GREP=$GREP
4274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4279 { echo "$as_me:$LINENO: checking for egrep" >&5
4280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4281 if test "${ac_cv_path_EGREP+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4287 # Extract the first word of "egrep" to use in msg output
4288 if test -z "$EGREP"; then
4289 set dummy egrep; ac_prog_name=$2
4290 if test "${ac_cv_path_EGREP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 ac_path_EGREP_found=false
4294 # Loop through the user's path and test for each of PROGNAME-LIST
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299 test -z "$as_dir" && as_dir=.
4300 for ac_prog in egrep; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4304 # Check for GNU ac_path_EGREP and select it if it is found.
4305 # Check for GNU $ac_path_EGREP
4306 case `"$ac_path_EGREP" --version 2>&1` in
4308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4314 cat "conftest.in" "conftest.in" >"conftest.tmp"
4315 mv "conftest.tmp" "conftest.in"
4316 cp "conftest.in" "conftest.nl"
4317 echo 'EGREP' >> "conftest.nl"
4318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320 ac_count=`expr $ac_count + 1`
4321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4322 # Best one so far, save it but keep looking for a better one
4323 ac_cv_path_EGREP="$ac_path_EGREP"
4324 ac_path_EGREP_max=$ac_count
4326 # 10*(2^10) chars as input seems more than enough
4327 test $ac_count -gt 10 && break
4329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 $ac_path_EGREP_found && break 3
4343 EGREP="$ac_cv_path_EGREP"
4344 if test -z "$EGREP"; then
4345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4347 { (exit 1); exit 1; }; }
4351 ac_cv_path_EGREP=$EGREP
4357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4359 EGREP="$ac_cv_path_EGREP"
4363 # Check whether --with-gnu-ld was given.
4364 if test "${with_gnu_ld+set}" = set; then
4365 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4371 if test "$GCC" = yes; then
4372 # Check if gcc -print-prog-name=ld gives a path.
4373 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4374 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4377 # gcc leaves a trailing carriage return which upsets mingw
4378 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4380 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4383 # Accept absolute paths.
4385 re_direlt='/[^/][^/]*/\.\./'
4386 # Canonicalize the pathname of ld
4387 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4388 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4389 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4391 test -z "$LD" && LD="$ac_prog"
4394 # If it fails, then pretend we aren't using GCC.
4398 # If it is relative, then search for the first ld in PATH.
4402 elif test "$with_gnu_ld" = yes; then
4403 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4404 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4406 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4407 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4409 if test "${lt_cv_path_LD+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 if test -z "$LD"; then
4413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4414 for ac_dir in $PATH; do
4416 test -z "$ac_dir" && ac_dir=.
4417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4418 lt_cv_path_LD="$ac_dir/$ac_prog"
4419 # Check to see if the program is GNU ld. I'd rather use --version,
4420 # but apparently some variants of GNU ld only accept -v.
4421 # Break only if it was the GNU/non-GNU ld that we prefer.
4422 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4423 *GNU* | *'with BFD'*)
4424 test "$with_gnu_ld" != no && break
4427 test "$with_gnu_ld" != yes && break
4434 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4439 if test -n "$LD"; then
4440 { echo "$as_me:$LINENO: result: $LD" >&5
4441 echo "${ECHO_T}$LD" >&6; }
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4446 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4447 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4448 { (exit 1); exit 1; }; }
4449 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4450 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4451 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4455 case `$LD -v 2>&1 </dev/null` in
4456 *GNU* | *'with BFD'*)
4457 lt_cv_prog_gnu_ld=yes
4460 lt_cv_prog_gnu_ld=no
4464 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4465 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4466 with_gnu_ld=$lt_cv_prog_gnu_ld
4469 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4470 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4471 if test "${lt_cv_ld_reload_flag+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 lt_cv_ld_reload_flag='-r'
4476 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4477 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4478 reload_flag=$lt_cv_ld_reload_flag
4479 case $reload_flag in
4481 *) reload_flag=" $reload_flag" ;;
4483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4486 if test "$GCC" = yes; then
4487 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4494 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4495 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4496 if test "${lt_cv_path_NM+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 if test -n "$NM"; then
4500 # Let the user override the test.
4503 lt_nm_to_check="${ac_tool_prefix}nm"
4504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4505 lt_nm_to_check="$lt_nm_to_check nm"
4507 for lt_tmp_nm in $lt_nm_to_check; do
4508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4511 test -z "$ac_dir" && ac_dir=.
4512 tmp_nm="$ac_dir/$lt_tmp_nm"
4513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4514 # Check to see if the nm accepts a BSD-compat flag.
4515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4516 # nm: unknown option "B" ignored
4517 # Tru64's nm complains that /dev/null is an invalid object file
4518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4519 */dev/null* | *'Invalid file or object type'*)
4520 lt_cv_path_NM="$tmp_nm -B"
4524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4526 lt_cv_path_NM="$tmp_nm -p"
4530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531 continue # so that we can try to find one that supports BSD flags
4540 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4543 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4544 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4547 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4550 if test "$LN_S" = "ln -s"; then
4551 { echo "$as_me:$LINENO: result: yes" >&5
4552 echo "${ECHO_T}yes" >&6; }
4554 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4555 echo "${ECHO_T}no, using $LN_S" >&6; }
4558 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4559 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4560 if test "${lt_cv_deplibs_check_method+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 lt_cv_file_magic_cmd='$MAGIC_CMD'
4564 lt_cv_file_magic_test_file=
4565 lt_cv_deplibs_check_method='unknown'
4566 # Need to set the preceding variable on all platforms that support
4567 # interlibrary dependencies.
4568 # 'none' -- dependencies not supported.
4569 # `unknown' -- same as none, but documents that we really don't know.
4570 # 'pass_all' -- all dependencies passed with no checks.
4571 # 'test_compile' -- check by making test program.
4572 # 'file_magic [[regex]]' -- check by looking for files in library path
4573 # which responds to the $file_magic_cmd with a given extended regex.
4574 # If you have `file' or equivalent on your system and you're not sure
4575 # whether `pass_all' will *always* work, you probably want this one.
4579 lt_cv_deplibs_check_method=pass_all
4583 lt_cv_deplibs_check_method=pass_all
4587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4588 lt_cv_file_magic_cmd='/usr/bin/file -L'
4589 lt_cv_file_magic_test_file=/shlib/libc.so
4593 # func_win32_libid is a shell function defined in ltmain.sh
4594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4595 lt_cv_file_magic_cmd='func_win32_libid'
4599 # Base MSYS/MinGW do not provide the 'file' command needed by
4600 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4601 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4602 lt_cv_file_magic_cmd='$OBJDUMP -f'
4605 darwin* | rhapsody*)
4606 lt_cv_deplibs_check_method=pass_all
4609 freebsd* | kfreebsd*-gnu | dragonfly*)
4610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4613 # Not sure whether the presence of OpenBSD here was a mistake.
4614 # Let's accept both of them until this is cleared up.
4615 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4616 lt_cv_file_magic_cmd=/usr/bin/file
4617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4621 lt_cv_deplibs_check_method=pass_all
4626 lt_cv_deplibs_check_method=pass_all
4629 hpux10.20* | hpux11*)
4630 lt_cv_file_magic_cmd=/usr/bin/file
4633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4634 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4637 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]'
4638 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4648 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4652 irix5* | irix6* | nonstopux*)
4654 *-32|*"-32 ") libmagic=32-bit;;
4655 *-n32|*"-n32 ") libmagic=N32;;
4656 *-64|*"-64 ") libmagic=64-bit;;
4657 *) libmagic=never-match;;
4659 lt_cv_deplibs_check_method=pass_all
4662 # This must be Linux ELF.
4664 lt_cv_deplibs_check_method=pass_all
4668 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4677 lt_cv_file_magic_cmd=/usr/bin/file
4678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4682 lt_cv_deplibs_check_method=unknown
4686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4693 osf3* | osf4* | osf5*)
4694 lt_cv_deplibs_check_method=pass_all
4698 lt_cv_deplibs_check_method=pass_all
4702 case $host_vendor in
4704 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]'
4705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4708 lt_cv_deplibs_check_method=pass_all
4711 lt_cv_file_magic_cmd='/bin/file'
4712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4715 lt_cv_file_magic_cmd='/bin/file'
4716 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4717 lt_cv_file_magic_test_file=/lib/libc.so
4720 lt_cv_deplibs_check_method=pass_all
4723 lt_cv_deplibs_check_method=pass_all
4728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4729 lt_cv_deplibs_check_method=pass_all
4734 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4735 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4736 file_magic_cmd=$lt_cv_file_magic_cmd
4737 deplibs_check_method=$lt_cv_deplibs_check_method
4738 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4743 # If no C compiler was specified, use CC.
4746 # If no C compiler flags were specified, use CFLAGS.
4747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4749 # Allow CC to be a program name with arguments.
4753 # Check whether --enable-libtool-lock was given.
4754 if test "${enable_libtool_lock+set}" = set; then
4755 enableval=$enable_libtool_lock;
4758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4760 # Some flags need to be propagated to the compiler or linker for good
4764 # Find out which ABI we are using.
4765 echo 'int i;' > conftest.$ac_ext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; then
4771 case `/usr/bin/file conftest.$ac_objext` in
4783 # Find out which ABI we are using.
4784 echo '#line __oline__ "configure"' > conftest.$ac_ext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
4790 if test "$lt_cv_prog_gnu_ld" = yes; then
4791 case `/usr/bin/file conftest.$ac_objext` in
4793 LD="${LD-ld} -melf32bsmip"
4796 LD="${LD-ld} -melf32bmipn32"
4799 LD="${LD-ld} -melf64bmip"
4803 case `/usr/bin/file conftest.$ac_objext` in
4819 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4820 # Find out which ABI we are using.
4821 echo 'int i;' > conftest.$ac_ext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; then
4827 case `/usr/bin/file conftest.o` in
4831 LD="${LD-ld} -m elf_i386"
4833 ppc64-*linux*|powerpc64-*linux*)
4834 LD="${LD-ld} -m elf32ppclinux"
4837 LD="${LD-ld} -m elf_s390"
4840 LD="${LD-ld} -m elf32_sparc"
4847 LD="${LD-ld} -m elf_x86_64"
4849 ppc*-*linux*|powerpc*-*linux*)
4850 LD="${LD-ld} -m elf64ppc"
4853 LD="${LD-ld} -m elf64_s390"
4856 LD="${LD-ld} -m elf64_sparc"
4866 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4867 SAVE_CFLAGS="$CFLAGS"
4868 CFLAGS="$CFLAGS -belf"
4869 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4870 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4871 if test "${lt_cv_cc_needs_belf+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (ac_try="$ac_link"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_link") 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest$ac_exeext &&
4912 $as_test_x conftest$ac_exeext; then
4913 lt_cv_cc_needs_belf=yes
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 lt_cv_cc_needs_belf=no
4921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4922 conftest$ac_exeext conftest.$ac_ext
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4934 CFLAGS="$SAVE_CFLAGS"
4938 # Find out which ABI we are using.
4939 echo 'int i;' > conftest.$ac_ext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; then
4945 case `/usr/bin/file conftest.o` in
4947 case $lt_cv_prog_gnu_ld in
4948 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4949 *) LD="${LD-ld} -64" ;;
4960 need_locks="$enable_libtool_lock"
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 for ac_c_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 @%:@ include <limits.h>
4999 @%:@ include <assert.h>
5003 if { (ac_try="$ac_cpp conftest.$ac_ext"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } >/dev/null && {
5016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5017 test ! -s conftest.err
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 # Broken: fails on valid input.
5028 rm -f conftest.err conftest.$ac_ext
5030 # OK, works on sane cases. Now check whether nonexistent headers
5031 # can be detected and how.
5032 cat >conftest.$ac_ext <<_ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 @%:@include <ac_nonexistent.h>
5040 if { (ac_try="$ac_cpp conftest.$ac_ext"
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048 grep -v '^ *+' conftest.er1 >conftest.err
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null && {
5053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5056 # Broken: success on invalid input.
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 # Passes both tests.
5067 rm -f conftest.err conftest.$ac_ext
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then
5084 { echo "$as_me:$LINENO: result: $CPP" >&5
5085 echo "${ECHO_T}$CPP" >&6; }
5087 for ac_c_preproc_warn_flag in '' yes
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5102 @%:@ include <limits.h>
5104 @%:@ include <assert.h>
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null && {
5121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5122 test ! -s conftest.err
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Broken: fails on valid input.
5133 rm -f conftest.err conftest.$ac_ext
5135 # OK, works on sane cases. Now check whether nonexistent headers
5136 # can be detected and how.
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 @%:@include <ac_nonexistent.h>
5145 if { (ac_try="$ac_cpp conftest.$ac_ext"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null && {
5158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5161 # Broken: success on invalid input.
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 # Passes both tests.
5172 rm -f conftest.err conftest.$ac_ext
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5180 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5181 See \`config.log' for more details." >&5
5182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5183 See \`config.log' for more details." >&2;}
5184 { (exit 1); exit 1; }; }
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5196 if test "${ac_cv_header_stdc+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 cat >conftest.$ac_ext <<_ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5218 rm -f conftest.$ac_objext
5219 if { (ac_try="$ac_compile"
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_compile") 2>conftest.er1
5227 grep -v '^ *+' conftest.er1 >conftest.err
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && {
5232 test -z "$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 } && test -s conftest.$ac_objext; then
5235 ac_cv_header_stdc=yes
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_header_stdc=no
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245 if test $ac_cv_header_stdc = yes; then
5246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "memchr" >/dev/null 2>&1; then
5260 ac_cv_header_stdc=no
5266 if test $ac_cv_header_stdc = yes; then
5267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "free" >/dev/null 2>&1; then
5281 ac_cv_header_stdc=no
5287 if test $ac_cv_header_stdc = yes; then
5288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5289 if test "$cross_compiling" = yes; then
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5323 rm -f conftest$ac_exeext
5324 if { (ac_try="$ac_link"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_link") 2>&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5334 { (case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_try") 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5345 echo "$as_me: program exited with status $ac_status" >&5
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_cv_header_stdc=no
5352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5359 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5360 if test $ac_cv_header_stdc = yes; then
5362 cat >>confdefs.h <<\_ACEOF
5363 @%:@define STDC_HEADERS 1
5368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5379 inttypes.h stdint.h unistd.h
5381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 cat >conftest.$ac_ext <<_ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 $ac_includes_default
5395 @%:@include <$ac_header>
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5414 eval "$as_ac_Header=yes"
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 eval "$as_ac_Header=no"
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 ac_res=`eval echo '${'$as_ac_Header'}'`
5425 { echo "$as_me:$LINENO: result: $ac_res" >&5
5426 echo "${ECHO_T}$ac_res" >&6; }
5427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5428 cat >>confdefs.h <<_ACEOF
5429 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 for ac_header in dlfcn.h
5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448 { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5451 # Is the header compilable?
5452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5461 @%:@include <$ac_header>
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_header_compiler=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_header_compiler=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490 echo "${ECHO_T}$ac_header_compiler" >&6; }
5492 # Is the header present?
5493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 @%:@include <$ac_header>
5503 if { (ac_try="$ac_cpp conftest.$ac_ext"
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null && {
5516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5519 ac_header_preproc=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_header_preproc=no
5527 rm -f conftest.err conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6; }
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc=yes
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 eval "$as_ac_Header=\$ac_header_preproc"
5563 ac_res=`eval echo '${'$as_ac_Header'}'`
5564 { echo "$as_me:$LINENO: result: $ac_res" >&5
5565 echo "${ECHO_T}$ac_res" >&6; }
5568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5569 cat >>confdefs.h <<_ACEOF
5570 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5580 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5581 (test "X$CXX" != "Xg++"))) ; then
5583 ac_cpp='$CXXCPP $CPPFLAGS'
5584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5587 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5588 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5589 if test -z "$CXXCPP"; then
5590 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 # Double quotes because CXXCPP needs to be expanded
5594 for CXXCPP in "$CXX -E" "/lib/cpp"
5597 for ac_cxx_preproc_warn_flag in '' yes
5599 # Use a header file that comes with gcc, so configuring glibc
5600 # with a fresh cross-compiler works.
5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602 # <limits.h> exists even on freestanding compilers.
5603 # On the NeXT, cc -E runs the code through the compiler's parser,
5604 # not just through cpp. "Syntax error" is here to catch this case.
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5612 @%:@ include <limits.h>
5614 @%:@ include <assert.h>
5618 if { (ac_try="$ac_cpp conftest.$ac_ext"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } >/dev/null && {
5631 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5632 test ! -s conftest.err
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 # Broken: fails on valid input.
5643 rm -f conftest.err conftest.$ac_ext
5645 # OK, works on sane cases. Now check whether nonexistent headers
5646 # can be detected and how.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 @%:@include <ac_nonexistent.h>
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5669 test ! -s conftest.err
5671 # Broken: success on invalid input.
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 # Passes both tests.
5682 rm -f conftest.err conftest.$ac_ext
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then
5692 ac_cv_prog_CXXCPP=$CXXCPP
5695 CXXCPP=$ac_cv_prog_CXXCPP
5697 ac_cv_prog_CXXCPP=$CXXCPP
5699 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5700 echo "${ECHO_T}$CXXCPP" >&6; }
5702 for ac_cxx_preproc_warn_flag in '' yes
5704 # Use a header file that comes with gcc, so configuring glibc
5705 # with a fresh cross-compiler works.
5706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707 # <limits.h> exists even on freestanding compilers.
5708 # On the NeXT, cc -E runs the code through the compiler's parser,
5709 # not just through cpp. "Syntax error" is here to catch this case.
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5717 @%:@ include <limits.h>
5719 @%:@ include <assert.h>
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737 test ! -s conftest.err
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 # Broken: fails on valid input.
5748 rm -f conftest.err conftest.$ac_ext
5750 # OK, works on sane cases. Now check whether nonexistent headers
5751 # can be detected and how.
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 @%:@include <ac_nonexistent.h>
5760 if { (ac_try="$ac_cpp conftest.$ac_ext"
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } >/dev/null && {
5773 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774 test ! -s conftest.err
5776 # Broken: success on invalid input.
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 # Passes both tests.
5787 rm -f conftest.err conftest.$ac_ext
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5795 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5796 See \`config.log' for more details." >&5
5797 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798 See \`config.log' for more details." >&2;}
5799 { (exit 1); exit 1; }; }
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5815 if test -n "$ac_tool_prefix"; then
5816 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
5818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_F77+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 if test -n "$F77"; then
5826 ac_cv_prog_F77="$F77" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 if test -n "$F77"; then
5847 { echo "$as_me:$LINENO: result: $F77" >&5
5848 echo "${ECHO_T}$F77" >&6; }
5850 { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5855 test -n "$F77" && break
5858 if test -z "$F77"; then
5860 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
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$ac_ct_F77"; then
5870 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_F77="$ac_prog"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5890 if test -n "$ac_ct_F77"; then
5891 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5892 echo "${ECHO_T}$ac_ct_F77" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5899 test -n "$ac_ct_F77" && break
5902 if test "x$ac_ct_F77" = x; then
5905 case $cross_compiling:$ac_tool_warned in
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet. If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet. If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5920 # Provide some information about the compiler.
5921 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5922 ac_compiler=`set X $ac_compile; echo $2`
5923 { (ac_try="$ac_compiler --version >&5"
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_compiler --version >&5") 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }
5933 { (ac_try="$ac_compiler -v >&5"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compiler -v >&5") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }
5943 { (ac_try="$ac_compiler -V >&5"
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compiler -V >&5") 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }
5955 # If we don't use `.F' as extension, the preprocessor is not run on the
5956 # input file. (Note that this only needs to work for GNU compilers.)
5959 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5960 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5961 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_compile") 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_f77_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest.$ac_objext; then
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6001 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6002 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6004 ac_test_FFLAGS=${FFLAGS+set}
6005 ac_save_FFLAGS=$FFLAGS
6007 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6008 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6009 if test "${ac_cv_prog_f77_g+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 cat >conftest.$ac_ext <<_ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_f77_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 ac_cv_prog_f77_g=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6047 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6048 if test "$ac_test_FFLAGS" = set; then
6049 FFLAGS=$ac_save_FFLAGS
6050 elif test $ac_cv_prog_f77_g = yes; then
6051 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6057 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6064 G77=`test $ac_compiler_gnu = yes && echo yes`
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6075 # find the maximum length of command line arguments
6076 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6077 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6078 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 # On DJGPP, this test can blow up pretty badly due to problems in libc
6087 # (any single argument exceeding 2000 bytes causes a buffer overrun
6088 # during glob expansion). Even if it were fixed, the result of this
6089 # check would be larger than it should be.
6090 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6094 # Under GNU Hurd, this test is not required because there is
6095 # no limit to the length of command line arguments.
6096 # Libtool will interpret -1 as no limit whatsoever
6097 lt_cv_sys_max_cmd_len=-1;
6101 # On Win9x/ME, this test blows up -- it succeeds, but takes
6102 # about 5 minutes as the teststring grows exponentially.
6103 # Worse, since 9x/ME are not pre-emptively multitasking,
6104 # you end up with a "frozen" computer, even though with patience
6105 # the test eventually succeeds (with a max line length of 256k).
6106 # Instead, let's just punt: use the minimum linelength reported by
6107 # all of the supported platforms: 8192 (on NT/2K/XP).
6108 lt_cv_sys_max_cmd_len=8192;
6112 # On AmigaOS with pdksh, this test takes hours, literally.
6113 # So we just punt and use a minimum line length of 8192.
6114 lt_cv_sys_max_cmd_len=8192;
6117 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6118 # This has been around since 386BSD, at least. Likely further.
6119 if test -x /sbin/sysctl; then
6120 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6121 elif test -x /usr/sbin/sysctl; then
6122 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6124 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6126 # And add a safety zone
6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6132 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6133 lt_cv_sys_max_cmd_len=196608
6137 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6138 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6139 # nice to cause kernel panics so lets avoid the loop below.
6140 # First set a reasonable default.
6141 lt_cv_sys_max_cmd_len=16384
6143 if test -x /sbin/sysconfig; then
6144 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6145 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6150 lt_cv_sys_max_cmd_len=102400
6152 sysv5* | sco5v6* | sysv4.2uw2*)
6153 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6154 if test -n "$kargmax"; then
6155 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6157 lt_cv_sys_max_cmd_len=32768
6161 # If test is not a shell built-in, we'll probably end up computing a
6162 # maximum length that is only half of the actual maximum length, but
6164 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6165 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6166 = "XX$teststring") >/dev/null 2>&1 &&
6167 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6168 lt_cv_sys_max_cmd_len=$new_result &&
6169 test $i != 17 # 1/2 MB should be enough
6172 teststring=$teststring$teststring
6175 # Add a significant safety factor because C++ compilers can tack on massive
6176 # amounts of additional arguments before passing them to the linker.
6177 # It appears as though 1/2 is a usable value.
6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6184 if test -n $lt_cv_sys_max_cmd_len ; then
6185 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6186 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6188 { echo "$as_me:$LINENO: result: none" >&5
6189 echo "${ECHO_T}none" >&6; }
6195 # Check for command to grab the raw symbol name followed by C symbol from nm.
6196 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6197 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 # These are sane defaults that work on at least a few old systems.
6203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6205 # Character class describing NM global symbol codes.
6206 symcode='[BCDEGRST]'
6208 # Regexp to match symbols that can be accessed directly from C.
6209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6211 # Transform an extracted symbol line into a proper C declaration
6212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6214 # Transform an extracted symbol line into symbol name and symbol address
6215 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'"
6217 # Define system-specific variables.
6222 cygwin* | mingw* | pw32*)
6223 symcode='[ABCDGISTW]'
6225 hpux*) # Its linker distinguishes data from code symbols
6226 if test "$host_cpu" = ia64; then
6227 symcode='[ABCDEGRST]'
6229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6230 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'"
6233 if test "$host_cpu" = ia64; then
6234 symcode='[ABCDGIRSTW]'
6235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6236 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'"
6240 symcode='[BCDEGRST]'
6243 symcode='[BCDEGQRST]'
6254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6262 # Handle CRLF in mingw tool chain
6266 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6270 # If we're using GNU nm, then use its standard symbol codes.
6271 case `$NM -V 2>&1` in
6272 *GNU* | *'with BFD'*)
6273 symcode='[ABCDGIRSTW]' ;;
6276 # Try without a prefix undercore, then with it.
6277 for ac_symprfx in "" "_"; do
6279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6280 symxfrm="\\1 $ac_symprfx\\2 \\2"
6282 # Write the raw and C identifiers.
6283 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6285 # Check to see that the pipe works correctly.
6289 cat > conftest.$ac_ext <<EOF
6294 void nm_test_func(){}
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; then
6306 # Now try to grab the symbols.
6308 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6309 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && test -s "$nlist"; then
6313 # Try sorting and uniquifying the output.
6314 if sort "$nlist" | uniq > "$nlist"T; then
6315 mv -f "$nlist"T "$nlist"
6320 # Make sure that we snagged all the symbols we need.
6321 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6322 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6323 cat <<EOF > conftest.$ac_ext
6329 # Now generate the symbol file.
6330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6332 cat <<EOF >> conftest.$ac_ext
6333 #if defined (__STDC__) && __STDC__
6334 # define lt_ptr_t void *
6336 # define lt_ptr_t char *
6340 /* The mapping between symbol names and symbols. */
6345 lt_preloaded_symbols[] =
6348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6349 cat <<\EOF >> conftest.$ac_ext
6357 # Now try linking the two files.
6358 mv conftest.$ac_objext conftstm.$ac_objext
6359 lt_save_LIBS="$LIBS"
6360 lt_save_CFLAGS="$CFLAGS"
6361 LIBS="conftstm.$ac_objext"
6362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6370 LIBS="$lt_save_LIBS"
6371 CFLAGS="$lt_save_CFLAGS"
6373 echo "cannot find nm_test_func in $nlist" >&5
6376 echo "cannot find nm_test_var in $nlist" >&5
6379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6382 echo "$progname: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 rm -f conftest* conftst*
6387 # Do not use the global_symbol_pipe unless it works.
6388 if test "$pipe_works" = yes; then
6391 lt_cv_sys_global_symbol_pipe=
6397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398 lt_cv_sys_global_symbol_to_cdecl=
6400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401 { echo "$as_me:$LINENO: result: failed" >&5
6402 echo "${ECHO_T}failed" >&6; }
6404 { echo "$as_me:$LINENO: result: ok" >&5
6405 echo "${ECHO_T}ok" >&6; }
6408 { echo "$as_me:$LINENO: checking for objdir" >&5
6409 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6410 if test "${lt_cv_objdir+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 rm -f .libs 2>/dev/null
6414 mkdir .libs 2>/dev/null
6415 if test -d .libs; then
6418 # MS-DOS does not allow filenames that begin with a dot.
6421 rmdir .libs 2>/dev/null
6423 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6424 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6425 objdir=$lt_cv_objdir
6433 # AIX sometimes has problems with the GCC collect2 program. For some
6434 # reason, if we set the COLLECT_NAMES environment variable, the problems
6435 # vanish in a puff of smoke.
6436 if test "X${COLLECT_NAMES+set}" != Xset; then
6438 export COLLECT_NAMES
6443 # Sed substitution that helps us do robust quoting. It backslashifies
6444 # metacharacters that are still active within double-quoted strings.
6445 Xsed='sed -e 1s/^X//'
6446 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6448 # Same as above, but do not quote variable references.
6449 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6451 # Sed substitution to delay expansion of an escaped shell variable in a
6452 # double_quote_subst'ed string.
6453 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6455 # Sed substitution to avoid accidental globbing in evaled expressions
6456 no_glob_subst='s/\*/\\\*/g'
6462 default_ofile=libtool
6463 can_build_shared=yes
6465 # All known linkers require a `.a' archive for static linking (except MSVC,
6466 # which needs '.lib').
6468 ltmain="$ac_aux_dir/ltmain.sh"
6469 ofile="$default_ofile"
6470 with_gnu_ld="$lt_cv_prog_gnu_ld"
6472 if test -n "$ac_tool_prefix"; then
6473 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}ar; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_AR+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 if test -n "$AR"; then
6481 ac_cv_prog_AR="$AR" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_AR="${ac_tool_prefix}ar"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 if test -n "$AR"; then
6502 { echo "$as_me:$LINENO: result: $AR" >&5
6503 echo "${ECHO_T}$AR" >&6; }
6505 { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6511 if test -z "$ac_cv_prog_AR"; then
6513 # Extract the first word of "ar", so it can be a program name with args.
6514 set dummy ar; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 if test -n "$ac_ct_AR"; then
6521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_prog_ac_ct_AR="ar"
6531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6541 if test -n "$ac_ct_AR"; then
6542 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6543 echo "${ECHO_T}$ac_ct_AR" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6549 if test "x$ac_ct_AR" = x; then
6552 case $cross_compiling:$ac_tool_warned in
6554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6555 whose name does not start with the host triplet. If you think this
6556 configuration is useful to you, please write to autoconf@gnu.org." >&5
6557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6558 whose name does not start with the host triplet. If you think this
6559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6560 ac_tool_warned=yes ;;
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_prog_RANLIB+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 if test -n "$RANLIB"; then
6577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 RANLIB=$ac_cv_prog_RANLIB
6597 if test -n "$RANLIB"; then
6598 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6599 echo "${ECHO_T}$RANLIB" >&6; }
6601 { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6607 if test -z "$ac_cv_prog_RANLIB"; then
6608 ac_ct_RANLIB=$RANLIB
6609 # Extract the first word of "ranlib", so it can be a program name with args.
6610 set dummy ranlib; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 if test -n "$ac_ct_RANLIB"; then
6617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_ac_ct_RANLIB="ranlib"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637 if test -n "$ac_ct_RANLIB"; then
6638 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6639 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6645 if test "x$ac_ct_RANLIB" = x; then
6648 case $cross_compiling:$ac_tool_warned in
6650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6651 whose name does not start with the host triplet. If you think this
6652 configuration is useful to you, please write to autoconf@gnu.org." >&5
6653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6654 whose name does not start with the host triplet. If you think this
6655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6656 ac_tool_warned=yes ;;
6658 RANLIB=$ac_ct_RANLIB
6661 RANLIB="$ac_cv_prog_RANLIB"
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}strip; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_STRIP+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 if test -n "$STRIP"; then
6673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 STRIP=$ac_cv_prog_STRIP
6693 if test -n "$STRIP"; then
6694 { echo "$as_me:$LINENO: result: $STRIP" >&5
6695 echo "${ECHO_T}$STRIP" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6703 if test -z "$ac_cv_prog_STRIP"; then
6705 # Extract the first word of "strip", so it can be a program name with args.
6706 set dummy strip; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 if test -n "$ac_ct_STRIP"; then
6713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_STRIP="strip"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733 if test -n "$ac_ct_STRIP"; then
6734 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6735 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6741 if test "x$ac_ct_STRIP" = x; then
6744 case $cross_compiling:$ac_tool_warned in
6746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet. If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&5
6749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6752 ac_tool_warned=yes ;;
6757 STRIP="$ac_cv_prog_STRIP"
6762 old_CFLAGS="$CFLAGS"
6764 # Set sane defaults for various variables
6765 test -z "$AR" && AR=ar
6766 test -z "$AR_FLAGS" && AR_FLAGS=cru
6767 test -z "$AS" && AS=as
6768 test -z "$CC" && CC=cc
6769 test -z "$LTCC" && LTCC=$CC
6770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6771 test -z "$DLLTOOL" && DLLTOOL=dlltool
6772 test -z "$LD" && LD=ld
6773 test -z "$LN_S" && LN_S="ln -s"
6774 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6775 test -z "$NM" && NM=nm
6776 test -z "$SED" && SED=sed
6777 test -z "$OBJDUMP" && OBJDUMP=objdump
6778 test -z "$RANLIB" && RANLIB=:
6779 test -z "$STRIP" && STRIP=:
6780 test -z "$ac_objext" && ac_objext=o
6782 # Determine commands to create old-style static archives.
6783 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6784 old_postinstall_cmds='chmod 644 $oldlib'
6785 old_postuninstall_cmds=
6787 if test -n "$RANLIB"; then
6790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6799 for cc_temp in $compiler""; do
6801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6807 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6810 # Only perform the check for file, if the check method requires it
6811 case $deplibs_check_method in
6813 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6814 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6815 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6816 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6824 lt_save_MAGIC_CMD="$MAGIC_CMD"
6825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6827 for ac_dir in $ac_dummy; do
6829 test -z "$ac_dir" && ac_dir=.
6830 if test -f $ac_dir/${ac_tool_prefix}file; then
6831 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6832 if test -n "$file_magic_test_file"; then
6833 case $deplibs_check_method in
6835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6838 $EGREP "$file_magic_regex" > /dev/null; then
6843 *** Warning: the command libtool uses to detect shared libraries,
6844 *** $file_magic_cmd, produces output that libtool cannot recognize.
6845 *** The result is that libtool may fail to recognize shared libraries
6846 *** as such. This will affect the creation of libtool libraries that
6847 *** depend on shared libraries, but programs linked with such libtool
6848 *** libraries will work regardless of this problem. Nevertheless, you
6849 *** may want to report the problem to your system manager and/or to
6850 *** bug-libtool@gnu.org
6860 MAGIC_CMD="$lt_save_MAGIC_CMD"
6865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6866 if test -n "$MAGIC_CMD"; then
6867 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6868 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6874 if test -z "$lt_cv_path_MAGIC_CMD"; then
6875 if test -n "$ac_tool_prefix"; then
6876 { echo "$as_me:$LINENO: checking for file" >&5
6877 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6878 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6886 lt_save_MAGIC_CMD="$MAGIC_CMD"
6887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6888 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6889 for ac_dir in $ac_dummy; do
6891 test -z "$ac_dir" && ac_dir=.
6892 if test -f $ac_dir/file; then
6893 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6894 if test -n "$file_magic_test_file"; then
6895 case $deplibs_check_method in
6897 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6900 $EGREP "$file_magic_regex" > /dev/null; then
6905 *** Warning: the command libtool uses to detect shared libraries,
6906 *** $file_magic_cmd, produces output that libtool cannot recognize.
6907 *** The result is that libtool may fail to recognize shared libraries
6908 *** as such. This will affect the creation of libtool libraries that
6909 *** depend on shared libraries, but programs linked with such libtool
6910 *** libraries will work regardless of this problem. Nevertheless, you
6911 *** may want to report the problem to your system manager and/or to
6912 *** bug-libtool@gnu.org
6922 MAGIC_CMD="$lt_save_MAGIC_CMD"
6927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928 if test -n "$MAGIC_CMD"; then
6929 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6930 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6948 # Check whether --enable-libtool-lock was given.
6949 if test "${enable_libtool_lock+set}" = set; then
6950 enableval=$enable_libtool_lock;
6953 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6956 # Check whether --with-pic was given.
6957 if test "${with_pic+set}" = set; then
6958 withval=$with_pic; pic_mode="$withval"
6963 test -z "$pic_mode" && pic_mode=default
6965 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6967 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6968 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6969 # calls AC_LIBTOOL_CONFIG and creates libtool.
6971 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6972 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6973 if test "x$ltmain" = "x" ; then
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976 { { echo "$as_me:$LINENO: error:
6978 *** @<:@Gentoo@:>@ sanity check failed! ***
6979 *** \$ltmain is not defined, please check the patch for consistency! ***
6981 echo "$as_me: error:
6983 *** @<:@Gentoo@:>@ sanity check failed! ***
6984 *** \$ltmain is not defined, please check the patch for consistency! ***
6986 { (exit 1); exit 1; }; }
6988 gentoo_lt_version="1.5.22"
6989 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6990 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6991 { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6993 { { echo "$as_me:$LINENO: error:
6995 *** @<:@Gentoo@:>@ sanity check failed! ***
6996 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6997 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7001 libtoolize --copy --force
7003 if appropriate, please contact the maintainer of this
7004 package (or your distribution) for help.
7006 echo "$as_me: error:
7008 *** @<:@Gentoo@:>@ sanity check failed! ***
7009 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7010 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7014 libtoolize --copy --force
7016 if appropriate, please contact the maintainer of this
7017 package (or your distribution) for help.
7019 { (exit 1); exit 1; }; }
7021 { echo "$as_me:$LINENO: result: yes" >&5
7022 echo "${ECHO_T}yes" >&6; }
7026 # Use C for the default configuration in the libtool script
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036 # Source file extension for C test sources.
7039 # Object file extension for compiled C test sources.
7043 # Code to be used in simple compile tests
7044 lt_simple_compile_test_code="int some_variable = 0;\n"
7046 # Code to be used in simple link tests
7047 lt_simple_link_test_code='int main(){return(0);}\n'
7050 # If no C compiler was specified, use CC.
7053 # If no C compiler flags were specified, use CFLAGS.
7054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056 # Allow CC to be a program name with arguments.
7060 # save warnings/boilerplate of simple test code
7061 ac_outfile=conftest.$ac_objext
7062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7064 _lt_compiler_boilerplate=`cat conftest.err`
7067 ac_outfile=conftest.$ac_objext
7068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7070 _lt_linker_boilerplate=`cat conftest.err`
7075 lt_prog_compiler_no_builtin_flag=
7077 if test "$GCC" = yes; then
7078 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7081 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7082 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 lt_cv_prog_compiler_rtti_exceptions=no
7087 ac_outfile=conftest.$ac_objext
7088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089 lt_compiler_flag="-fno-rtti -fno-exceptions"
7090 # Insert the option either (1) after the last *FLAGS variable, or
7091 # (2) before a word containing "conftest.", or (3) at the end.
7092 # Note that $ac_compile itself does not contain backslashes and begins
7093 # with a dollar sign (not a hyphen), so the echo should work correctly.
7094 # The option is referenced via a variable to avoid confusing sed.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
7099 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7100 (eval "$lt_compile" 2>conftest.err)
7102 cat conftest.err >&5
7103 echo "$as_me:__oline__: \$? = $ac_status" >&5
7104 if (exit $ac_status) && test -s "$ac_outfile"; then
7105 # The compiler can only warn and ignore the option if not recognized
7106 # So say no if there are warnings other than the usual output.
7107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7110 lt_cv_prog_compiler_rtti_exceptions=yes
7116 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7117 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7127 lt_prog_compiler_wl=
7128 lt_prog_compiler_pic=
7129 lt_prog_compiler_static=
7131 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7132 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7134 if test "$GCC" = yes; then
7135 lt_prog_compiler_wl='-Wl,'
7136 lt_prog_compiler_static='-static'
7140 # All AIX code is PIC.
7141 if test "$host_cpu" = ia64; then
7142 # AIX 5 now supports IA64 processor
7143 lt_prog_compiler_static='-Bstatic'
7148 # FIXME: we need at least 68020 code to build shared libraries, but
7149 # adding the `-m68020' flag to GCC prevents building anything better,
7151 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7154 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7155 # PIC is the default for these OSes.
7158 mingw* | pw32* | os2*)
7159 # This hack is so that the source file can tell whether it is being
7160 # built for inclusion in a dll (and should export symbols for example).
7161 lt_prog_compiler_pic='-DDLL_EXPORT'
7164 darwin* | rhapsody*)
7165 # PIC is the default on this platform
7166 # Common symbols not allowed in MH_DYLIB files
7167 lt_prog_compiler_pic='-fno-common'
7171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7172 # Instead, we relocate shared libraries at runtime.
7176 # Just because we use GCC doesn't mean we suddenly get shared libraries
7177 # on systems that don't support them.
7178 lt_prog_compiler_can_build_shared=no
7183 if test -d /usr/nec; then
7184 lt_prog_compiler_pic=-Kconform_pic
7189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7196 lt_prog_compiler_pic='-fPIC'
7202 lt_prog_compiler_pic='-fPIC'
7206 # PORTME Check for flag to pass linker flags through the system compiler.
7209 lt_prog_compiler_wl='-Wl,'
7210 if test "$host_cpu" = ia64; then
7211 # AIX 5 now supports IA64 processor
7212 lt_prog_compiler_static='-Bstatic'
7214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7218 # PIC is the default on this platform
7219 # Common symbols not allowed in MH_DYLIB files
7220 case $cc_basename in
7222 lt_prog_compiler_pic='-qnocommon'
7223 lt_prog_compiler_wl='-Wl,'
7228 mingw* | pw32* | os2*)
7229 # This hack is so that the source file can tell whether it is being
7230 # built for inclusion in a dll (and should export symbols for example).
7231 lt_prog_compiler_pic='-DDLL_EXPORT'
7234 hpux9* | hpux10* | hpux11*)
7235 lt_prog_compiler_wl='-Wl,'
7236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7243 lt_prog_compiler_pic='+Z'
7246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7247 lt_prog_compiler_static='${wl}-a ${wl}archive'
7250 irix5* | irix6* | nonstopux*)
7251 lt_prog_compiler_wl='-Wl,'
7252 # PIC (with -KPIC) is the default.
7253 lt_prog_compiler_static='-non_shared'
7257 lt_prog_compiler_pic='-KPIC'
7258 lt_prog_compiler_static='-Bstatic'
7262 case $cc_basename in
7264 lt_prog_compiler_wl='-Wl,'
7265 lt_prog_compiler_pic='-KPIC'
7266 lt_prog_compiler_static='-static'
7268 pgcc* | pgf77* | pgf90* | pgf95*)
7269 # Portland Group compilers (*not* the Pentium gcc compiler,
7270 # which looks to be a dead project)
7271 lt_prog_compiler_wl='-Wl,'
7272 lt_prog_compiler_pic='-fpic'
7273 lt_prog_compiler_static='-Bstatic'
7276 lt_prog_compiler_wl='-Wl,'
7277 # All Alpha code is PIC.
7278 lt_prog_compiler_static='-non_shared'
7283 osf3* | osf4* | osf5*)
7284 lt_prog_compiler_wl='-Wl,'
7285 # All OSF/1 code is PIC.
7286 lt_prog_compiler_static='-non_shared'
7290 lt_prog_compiler_pic='-KPIC'
7291 lt_prog_compiler_static='-Bstatic'
7292 case $cc_basename in
7294 lt_prog_compiler_wl='-Qoption ld ';;
7296 lt_prog_compiler_wl='-Wl,';;
7301 lt_prog_compiler_wl='-Qoption ld '
7302 lt_prog_compiler_pic='-PIC'
7303 lt_prog_compiler_static='-Bstatic'
7306 sysv4 | sysv4.2uw2* | sysv4.3*)
7307 lt_prog_compiler_wl='-Wl,'
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7313 if test -d /usr/nec ;then
7314 lt_prog_compiler_pic='-Kconform_pic'
7315 lt_prog_compiler_static='-Bstatic'
7319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7320 lt_prog_compiler_wl='-Wl,'
7321 lt_prog_compiler_pic='-KPIC'
7322 lt_prog_compiler_static='-Bstatic'
7326 lt_prog_compiler_wl='-Wl,'
7327 lt_prog_compiler_can_build_shared=no
7331 lt_prog_compiler_pic='-pic'
7332 lt_prog_compiler_static='-Bstatic'
7336 lt_prog_compiler_can_build_shared=no
7341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7342 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7345 # Check to make sure the PIC flag actually works.
7347 if test -n "$lt_prog_compiler_pic"; then
7349 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7351 if test "${lt_prog_compiler_pic_works+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 lt_prog_compiler_pic_works=no
7355 ac_outfile=conftest.$ac_objext
7356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7357 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7358 # Insert the option either (1) after the last *FLAGS variable, or
7359 # (2) before a word containing "conftest.", or (3) at the end.
7360 # Note that $ac_compile itself does not contain backslashes and begins
7361 # with a dollar sign (not a hyphen), so the echo should work correctly.
7362 # The option is referenced via a variable to avoid confusing sed.
7363 lt_compile=`echo "$ac_compile" | $SED \
7364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7366 -e 's:$: $lt_compiler_flag:'`
7367 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7368 (eval "$lt_compile" 2>conftest.err)
7370 cat conftest.err >&5
7371 echo "$as_me:__oline__: \$? = $ac_status" >&5
7372 if (exit $ac_status) && test -s "$ac_outfile"; then
7373 # The compiler can only warn and ignore the option if not recognized
7374 # So say no if there are warnings other than the usual output.
7375 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7378 lt_prog_compiler_pic_works=yes
7384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7385 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7387 if test x"$lt_prog_compiler_pic_works" = xyes; then
7388 case $lt_prog_compiler_pic in
7390 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7393 lt_prog_compiler_pic=
7394 lt_prog_compiler_can_build_shared=no
7399 # For platforms which do not support PIC, -DPIC is meaningless:
7401 lt_prog_compiler_pic=
7404 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7409 # Check to make sure the static flag actually works.
7411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7412 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7413 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7414 if test "${lt_prog_compiler_static_works+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 lt_prog_compiler_static_works=no
7418 save_LDFLAGS="$LDFLAGS"
7419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7420 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7422 # The linker can only warn and ignore the option if not recognized
7423 # So say no if there are warnings
7424 if test -s conftest.err; then
7425 # Append any errors to the config.log.
7426 cat conftest.err 1>&5
7427 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7429 if diff conftest.exp conftest.er2 >/dev/null; then
7430 lt_prog_compiler_static_works=yes
7433 lt_prog_compiler_static_works=yes
7437 LDFLAGS="$save_LDFLAGS"
7440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7441 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7443 if test x"$lt_prog_compiler_static_works" = xyes; then
7446 lt_prog_compiler_static=
7450 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7451 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7452 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 lt_cv_prog_compiler_c_o=no
7456 $rm -r conftest 2>/dev/null
7460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7462 lt_compiler_flag="-o out/conftest2.$ac_objext"
7463 # Insert the option either (1) after the last *FLAGS variable, or
7464 # (2) before a word containing "conftest.", or (3) at the end.
7465 # Note that $ac_compile itself does not contain backslashes and begins
7466 # with a dollar sign (not a hyphen), so the echo should work correctly.
7467 lt_compile=`echo "$ac_compile" | $SED \
7468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7470 -e 's:$: $lt_compiler_flag:'`
7471 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7472 (eval "$lt_compile" 2>out/conftest.err)
7474 cat out/conftest.err >&5
7475 echo "$as_me:__oline__: \$? = $ac_status" >&5
7476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7478 # The compiler can only warn and ignore the option if not recognized
7479 # So say no if there are warnings
7480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7483 lt_cv_prog_compiler_c_o=yes
7488 # SGI C++ compiler will create directory out/ii_files/ for
7489 # template instantiation
7490 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7491 $rm out/* && rmdir out
7497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7498 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7501 hard_links="nottested"
7502 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7503 # do not overwrite the value of need_locks provided by the user
7504 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7505 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7510 ln conftest.a conftest.b 2>&5 || hard_links=no
7511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7512 { echo "$as_me:$LINENO: result: $hard_links" >&5
7513 echo "${ECHO_T}$hard_links" >&6; }
7514 if test "$hard_links" = no; then
7515 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7516 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7523 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7527 allow_undefined_flag=
7528 enable_shared_with_static_runtimes=no
7530 archive_expsym_cmds=
7531 old_archive_From_new_cmds=
7532 old_archive_from_expsyms_cmds=
7533 export_dynamic_flag_spec=
7534 whole_archive_flag_spec=
7535 thread_safe_flag_spec=
7536 hardcode_libdir_flag_spec=
7537 hardcode_libdir_flag_spec_ld=
7538 hardcode_libdir_separator=
7541 hardcode_shlibpath_var=unsupported
7542 link_all_deplibs=unknown
7543 hardcode_automatic=no
7546 always_export_symbols=no
7547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7548 # include_expsyms should be a list of space-separated symbols to be *always*
7549 # included in the symbol list
7551 # exclude_expsyms can be an extended regexp of symbols to exclude
7552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7554 # as well as any symbol that contains `d'.
7555 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7557 # platforms (ab)use it in PIC code, but their linkers get confused if
7558 # the symbol is explicitly referenced. Since portable code cannot
7559 # rely on this symbol name, it's probably fine to never include it in
7560 # preloaded symbol tables.
7561 extract_expsyms_cmds=
7562 # Just being paranoid about ensuring that cc_basename is set.
7563 for cc_temp in $compiler""; do
7565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7574 cygwin* | mingw* | pw32*)
7575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7576 # When not using gcc, we currently assume that we are using
7577 # Microsoft Visual C++.
7578 if test "$GCC" != yes; then
7583 # we just hope/assume this is gcc and not c89 (= MSVC++)
7592 if test "$with_gnu_ld" = yes; then
7593 # If archive_cmds runs LD, not CC, wlarc should be empty
7596 # Set some defaults for GNU ld with shared library support. These
7597 # are reset later if shared libraries are not supported. Putting them
7598 # here allows them to be overridden if necessary.
7599 runpath_var=LD_RUN_PATH
7600 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7601 export_dynamic_flag_spec='${wl}--export-dynamic'
7602 # ancient GNU ld didn't support --whole-archive et. al.
7603 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7604 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7606 whole_archive_flag_spec=
7608 supports_anon_versioning=no
7609 case `$LD -v 2>/dev/null` in
7610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7613 *\ 2.11.*) ;; # other 2.11 versions
7614 *) supports_anon_versioning=yes ;;
7617 # See if GNU ld supports shared libraries.
7619 aix3* | aix4* | aix5*)
7620 # On AIX/PPC, the GNU linker is very broken
7621 if test "$host_cpu" != ia64; then
7625 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7626 *** to be unable to reliably create shared libraries on AIX.
7627 *** Therefore, libtool is disabling shared libraries support. If you
7628 *** really care for shared libraries, you may want to modify your PATH
7629 *** so that a non-GNU linker is found, and then restart.
7636 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)'
7637 hardcode_libdir_flag_spec='-L$libdir'
7638 hardcode_minus_L=yes
7640 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7641 # that the semantics of dynamic libraries on AmigaOS, at least up
7642 # to version 4, is to share data among multiple programs linked
7643 # with the same dynamic library. Since this doesn't match the
7644 # behavior of shared libraries on other platforms, we can't use
7650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7651 allow_undefined_flag=unsupported
7652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7653 # support --undefined. This deserves some investigation. FIXME
7654 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 cygwin* | mingw* | pw32*)
7661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7662 # as there is no search path for DLLs.
7663 hardcode_libdir_flag_spec='-L$libdir'
7664 allow_undefined_flag=unsupported
7665 always_export_symbols=no
7666 enable_shared_with_static_runtimes=yes
7667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671 # If the export-symbols file already is a .def file (1st line
7672 # is EXPORTS), use it as is; otherwise, prepend...
7673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7674 cp $export_symbols $output_objdir/$soname.def;
7676 echo EXPORTS > $output_objdir/$soname.def;
7677 cat $export_symbols >> $output_objdir/$soname.def;
7679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7687 hardcode_shlibpath_var=no
7688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7689 export_dynamic_flag_spec='${wl}-E'
7690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7691 # Instead, shared libraries are loaded at an image base (0x10000000 by
7692 # default) and relocated if they conflict, which is a slow very memory
7693 # consuming and fragmenting process. To avoid this, we pick a random,
7694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7697 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7703 case $cc_basename,$host_cpu in
7704 pgcc*) # Portland Group C compiler
7705 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7706 tmp_addflag=' $pic_flag'
7708 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7709 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7710 tmp_addflag=' $pic_flag -Mnomain' ;;
7711 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7712 tmp_addflag=' -i_dynamic' ;;
7713 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7714 tmp_addflag=' -i_dynamic -nofor_main' ;;
7715 ifc* | ifort*) # Intel Fortran compiler
7716 tmp_addflag=' -nofor_main' ;;
7718 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720 if test $supports_anon_versioning = yes; then
7721 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7723 $echo "local: *; };" >> $output_objdir/$libname.ver~
7724 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7747 *** create shared libraries on Solaris systems. Therefore, libtool
7748 *** is disabling shared libraries support. We urge you to upgrade GNU
7749 *** binutils to release 2.9.1 or newer. Another option is to modify
7750 *** your PATH or compiler configuration so that the native linker is
7751 *** used, and then restart.
7754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7763 case `$LD -v 2>&1` in
7764 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7769 *** reliably create shared libraries on SCO systems. Therefore, libtool
7770 *** is disabling shared libraries support. We urge you to upgrade GNU
7771 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7772 *** your PATH or compiler configuration so that the native linker is
7773 *** used, and then restart.
7778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7793 hardcode_shlibpath_var=no
7797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7806 if test "$ld_shlibs" = no; then
7808 hardcode_libdir_flag_spec=
7809 export_dynamic_flag_spec=
7810 whole_archive_flag_spec=
7813 # PORTME fill in a description of your system's linker (not GNU ld)
7816 allow_undefined_flag=unsupported
7817 always_export_symbols=yes
7818 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'
7819 # Note: this linker hardcodes the directories in LIBPATH if there
7820 # are no directories specified by -L.
7821 hardcode_minus_L=yes
7822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7823 # Neither direct hardcoding nor static linking is supported with a
7825 hardcode_direct=unsupported
7830 if test "$host_cpu" = ia64; then
7831 # On IA64, the linker does run time linking by default, so we don't
7832 # have to do anything special.
7833 aix_use_runtimelinking=no
7834 exp_sym_flag='-Bexport'
7837 # If we're using GNU nm, then we don't want the "-C" option.
7838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7840 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'
7842 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'
7844 aix_use_runtimelinking=no
7846 # Test if we are trying to use run time linking or normal
7847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7848 # need to do runtime linking.
7849 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7850 for ld_flag in $LDFLAGS; do
7851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7852 aix_use_runtimelinking=yes
7859 exp_sym_flag='-bexport'
7860 no_entry_flag='-bnoentry'
7863 # When large executables or shared objects are built, AIX ld can
7864 # have problems creating the table of contents. If linking a library
7865 # or program results in "error TOC overflow" add -mminimal-toc to
7866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7871 hardcode_libdir_separator=':'
7872 link_all_deplibs=yes
7874 if test "$GCC" = yes; then
7875 case $host_os in aix4.[012]|aix4.[012].*)
7876 # We only want to do this on AIX 4.2 and lower, the check
7877 # below for broken collect2 doesn't work under 4.3+
7878 collect2name=`${CC} -print-prog-name=collect2`
7879 if test -f "$collect2name" && \
7880 strings "$collect2name" | grep resolve_lib_name >/dev/null
7882 # We have reworked collect2
7885 # We have old collect2
7886 hardcode_direct=unsupported
7887 # It fails to find uninstalled libraries when the uninstalled
7888 # path is not listed in the libpath. Setting hardcode_minus_L
7889 # to unsupported forces relinking
7890 hardcode_minus_L=yes
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_libdir_separator=
7896 shared_flag='-shared'
7897 if test "$aix_use_runtimelinking" = yes; then
7898 shared_flag="$shared_flag "'${wl}-G'
7902 if test "$host_cpu" = ia64; then
7903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7904 # chokes on -Wl,-G. The following line is correct:
7907 if test "$aix_use_runtimelinking" = yes; then
7908 shared_flag='${wl}-G'
7910 shared_flag='${wl}-bM:SRE'
7915 # It seems that -bexpall does not export symbols beginning with
7916 # underscore (_), so it is better to generate a list of symbols to export.
7917 always_export_symbols=yes
7918 if test "$aix_use_runtimelinking" = yes; then
7919 # Warning - without using the other runtime loading flags (-brtl),
7920 # -berok will link without error, but may produce a broken library.
7921 allow_undefined_flag='-berok'
7922 # Determine the default libpath from the value encoded in an empty executable.
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
7957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7959 # Check for a 64-bit object if we didn't find anything.
7960 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; }
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970 conftest$ac_exeext conftest.$ac_ext
7971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7974 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7976 if test "$host_cpu" = ia64; then
7977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7978 allow_undefined_flag="-z nodefs"
7979 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7981 # Determine the default libpath from the value encoded in an empty executable.
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext &&
8014 $as_test_x conftest$ac_exeext; then
8016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8018 # Check for a 64-bit object if we didn't find anything.
8019 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; }
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029 conftest$ac_exeext conftest.$ac_ext
8030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033 # Warning - without using the other run time loading flags,
8034 # -berok will link without error, but may produce a broken library.
8035 no_undefined_flag=' ${wl}-bernotok'
8036 allow_undefined_flag=' ${wl}-berok'
8037 # Exported symbols can be pulled into shared objects from archives
8038 whole_archive_flag_spec='$convenience'
8039 archive_cmds_need_lc=yes
8040 # This is similar to how AIX traditionally builds its shared libraries.
8041 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8047 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)'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_minus_L=yes
8050 # see comment about different semantics on the GNU ld section
8055 export_dynamic_flag_spec=-rdynamic
8058 cygwin* | mingw* | pw32*)
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 # hardcode_libdir_flag_spec is actually meaningless, as there is
8062 # no search path for DLLs.
8063 hardcode_libdir_flag_spec=' '
8064 allow_undefined_flag=unsupported
8065 # Tell ltmain to make .lib files, not .a files.
8067 # Tell ltmain to make .dll files, not .so files.
8069 # FIXME: Setting linknames here is a bad hack.
8070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071 # The linker will automatically build a .lib file if we build a DLL.
8072 old_archive_From_new_cmds='true'
8073 # FIXME: Should let the user specify the lib program.
8074 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8075 fix_srcfile_path='`cygpath -w "$srcfile"`'
8076 enable_shared_with_static_runtimes=yes
8079 darwin* | rhapsody*)
8081 rhapsody* | darwin1.[012])
8082 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8085 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8086 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088 case ${MACOSX_DEPLOYMENT_TARGET} in
8090 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8093 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8099 archive_cmds_need_lc=no
8101 hardcode_automatic=yes
8102 hardcode_shlibpath_var=unsupported
8103 whole_archive_flag_spec=''
8104 link_all_deplibs=yes
8105 if test "$GCC" = yes ; then
8106 output_verbose_link_cmd='echo'
8107 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8108 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8110 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}'
8111 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}'
8113 case $cc_basename in
8115 output_verbose_link_cmd='echo'
8116 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8117 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8119 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8120 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}'
8130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 hardcode_libdir_flag_spec='-L$libdir'
8132 hardcode_shlibpath_var=no
8139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8140 # support. Future versions do this automatically, but an explicit c++rt0.o
8141 # does not break anything, and helps significantly (at the cost of a little
8144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8145 hardcode_libdir_flag_spec='-R$libdir'
8147 hardcode_shlibpath_var=no
8150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8154 hardcode_minus_L=yes
8155 hardcode_shlibpath_var=no
8158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8159 freebsd* | kfreebsd*-gnu | dragonfly*)
8160 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8161 hardcode_libdir_flag_spec='-R$libdir'
8163 hardcode_shlibpath_var=no
8167 if test "$GCC" = yes; then
8168 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'
8170 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'
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8176 # hardcode_minus_L: Not really in the search PATH,
8177 # but as the default location of the library.
8178 hardcode_minus_L=yes
8179 export_dynamic_flag_spec='${wl}-E'
8183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8188 if test "$with_gnu_ld" = no; then
8189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190 hardcode_libdir_separator=:
8193 export_dynamic_flag_spec='${wl}-E'
8195 # hardcode_minus_L: Not really in the search PATH,
8196 # but as the default location of the library.
8197 hardcode_minus_L=yes
8202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8217 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8227 if test "$with_gnu_ld" = no; then
8228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8229 hardcode_libdir_separator=:
8233 hardcode_libdir_flag_spec_ld='+b $libdir'
8235 hardcode_shlibpath_var=no
8239 export_dynamic_flag_spec='${wl}-E'
8241 # hardcode_minus_L: Not really in the search PATH,
8242 # but as the default location of the library.
8243 hardcode_minus_L=yes
8249 irix5* | irix6* | nonstopux*)
8250 if test "$GCC" = yes; then
8251 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'
8253 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'
8254 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257 hardcode_libdir_separator=:
8258 link_all_deplibs=yes
8262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8265 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8267 hardcode_libdir_flag_spec='-R$libdir'
8269 hardcode_shlibpath_var=no
8273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276 hardcode_libdir_separator=:
8277 hardcode_shlibpath_var=no
8282 hardcode_shlibpath_var=no
8283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287 export_dynamic_flag_spec='${wl}-E'
8290 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292 hardcode_libdir_flag_spec='-R$libdir'
8295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8303 hardcode_libdir_flag_spec='-L$libdir'
8304 hardcode_minus_L=yes
8305 allow_undefined_flag=unsupported
8306 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'
8307 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8311 if test "$GCC" = yes; then
8312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8313 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'
8315 allow_undefined_flag=' -expect_unresolved \*'
8316 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'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8322 osf4* | osf5*) # as osf3* with the addition of -msym flag
8323 if test "$GCC" = yes; then
8324 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8325 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'
8326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8328 allow_undefined_flag=' -expect_unresolved \*'
8329 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'
8330 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8331 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8333 # Both c and cxx compiler support -rpath directly
8334 hardcode_libdir_flag_spec='-rpath $libdir'
8336 hardcode_libdir_separator=:
8340 no_undefined_flag=' -z text'
8341 if test "$GCC" = yes; then
8343 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8345 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8349 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8352 hardcode_libdir_flag_spec='-R$libdir'
8353 hardcode_shlibpath_var=no
8355 solaris2.[0-5] | solaris2.[0-5].*) ;;
8357 # The compiler driver will combine linker options so we
8358 # cannot just pass the convience library names through
8359 # without $wl, iff we do not link with $LD.
8360 # Luckily, gcc supports the same syntax we need for Sun Studio.
8361 # Supported since Solaris 2.6 (maybe 2.5.1?)
8364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8366 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8369 link_all_deplibs=yes
8373 if test "x$host_vendor" = xsequent; then
8374 # Use $CC to link under sequent, because it throws in some extra .o
8375 # files that make .init and .fini sections work.
8376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_libdir_flag_spec='-L$libdir'
8382 hardcode_minus_L=yes
8383 hardcode_shlibpath_var=no
8387 case $host_vendor in
8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_direct=yes # is this really true???
8393 ## LD is ld it makes a PLAMLIB
8394 ## CC just makes a GrossModule.
8395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8396 reload_cmds='$CC -r -o $output$reload_objs'
8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8404 runpath_var='LD_RUN_PATH'
8405 hardcode_shlibpath_var=no
8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_shlibpath_var=no
8411 export_dynamic_flag_spec='-Bexport'
8415 if test -d /usr/nec; then
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_shlibpath_var=no
8418 runpath_var=LD_RUN_PATH
8419 hardcode_runpath_var=yes
8424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8425 no_undefined_flag='${wl}-z,text'
8426 archive_cmds_need_lc=no
8427 hardcode_shlibpath_var=no
8428 runpath_var='LD_RUN_PATH'
8430 if test "$GCC" = yes; then
8431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 sysv5* | sco3.2v5* | sco5v6*)
8440 # Note: We can NOT use -z defs as we might desire, because we do not
8441 # link with -lc, and that would cause any symbols used from libc to
8442 # always be unresolved, which means just about no library would
8443 # ever link correctly. If we're not using GNU ld we use -z text
8444 # though, which does catch some bad symbols but isn't as heavy-handed
8446 no_undefined_flag='${wl}-z,text'
8447 allow_undefined_flag='${wl}-z,nodefs'
8448 archive_cmds_need_lc=no
8449 hardcode_shlibpath_var=no
8450 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8451 hardcode_libdir_separator=':'
8452 link_all_deplibs=yes
8453 export_dynamic_flag_spec='${wl}-Bexport'
8454 runpath_var='LD_RUN_PATH'
8456 if test "$GCC" = yes; then
8457 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 hardcode_shlibpath_var=no
8477 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8478 echo "${ECHO_T}$ld_shlibs" >&6; }
8479 test "$ld_shlibs" = no && can_build_shared=no
8482 # Do we need to explicitly link libc?
8484 case "x$archive_cmds_need_lc" in
8486 # Assume -lc should be added
8487 archive_cmds_need_lc=yes
8489 if test "$enable_shared" = yes && test "$GCC" = yes; then
8490 case $archive_cmds in
8492 # FIXME: we may have to deal with multi-command sequences.
8495 # Test whether the compiler implicitly links with -lc since on some
8496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8497 # to ld, don't add -lc before -lgcc.
8498 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } 2>conftest.err; then
8510 libobjs=conftest.$ac_objext
8512 wl=$lt_prog_compiler_wl
8513 pic_flag=$lt_prog_compiler_pic
8519 lt_save_allow_undefined_flag=$allow_undefined_flag
8520 allow_undefined_flag=
8521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8522 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }
8527 archive_cmds_need_lc=no
8529 archive_cmds_need_lc=yes
8531 allow_undefined_flag=$lt_save_allow_undefined_flag
8533 cat conftest.err 1>&5
8536 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8537 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547 libname_spec='lib$name'
8555 shlibpath_overrides_runpath=unknown
8557 dynamic_linker="$host_os ld.so"
8558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559 if test "$GCC" = yes; then
8560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562 # if the path contains ";" then we assume it to be the separator
8563 # otherwise default to the standard path separator (i.e. ":") - it is
8564 # assumed that no part of a normal pathname contains ";" but that should
8565 # okay in the real world where ";" in dirpaths is itself problematic.
8566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8573 need_lib_prefix=unknown
8574 hardcode_into_libs=no
8576 # when you set need_version to no, make sure it does not cause -set_version
8577 # flags to be left without arguments
8578 need_version=unknown
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584 shlibpath_var=LIBPATH
8586 # AIX 3 has no versioning support, so we append a major version to the name.
8587 soname_spec='${libname}${release}${shared_ext}$major'
8594 hardcode_into_libs=yes
8595 if test "$host_cpu" = ia64; then
8596 # AIX 5 supports IA64
8597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598 shlibpath_var=LD_LIBRARY_PATH
8600 # With GCC up to 2.95.x, collect2 would create an import file
8601 # for dependence libraries. The import file would start with
8602 # the line `#! .'. This would cause the generated library to
8603 # depend on `.', always an invalid library. This was fixed in
8604 # development snapshots of GCC prior to 3.0.
8606 aix4 | aix4.[01] | aix4.[01].*)
8607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617 # soname into executable. Probably we can add versioning support to
8618 # collect2, so additional links can be useful in future.
8619 if test "$aix_use_runtimelinking" = yes; then
8620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621 # instead of lib<name>.a to let people know that these are not
8622 # typical AIX shared libraries.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625 # We preserve .a as extension for shared libraries through AIX4.2
8626 # and later when we are not doing run time linking.
8627 library_names_spec='${libname}${release}.a $libname.a'
8628 soname_spec='${libname}${release}${shared_ext}$major'
8630 shlibpath_var=LIBPATH
8635 library_names_spec='$libname.ixlibrary $libname.a'
8636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8637 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'
8641 library_names_spec='${libname}${shared_ext}'
8642 dynamic_linker="$host_os ld.so"
8643 shlibpath_var=LIBRARY_PATH
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655 # the default ld.so.conf also contains /usr/contrib/lib and
8656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657 # libtool to hard-code these into programs
8660 cygwin* | mingw* | pw32*)
8661 version_type=windows
8666 case $GCC,$host_os in
8667 yes,cygwin* | yes,mingw* | yes,pw32*)
8668 library_names_spec='$libname.dll.a'
8669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8670 postinstall_cmds='base_file=`basename \${file}`~
8671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672 dldir=$destdir/`dirname \$dlpath`~
8673 test -d \$dldir || mkdir -p \$dldir~
8674 $install_prog $dir/$dlname \$dldir/$dlname~
8675 chmod a+x \$dldir/$dlname'
8676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677 dlpath=$dir/\$dldll~
8679 shlibpath_overrides_runpath=yes
8683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8688 # MinGW DLLs use traditional 'lib' prefix
8689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692 # It is most probably a Windows format PATH printed by
8693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8694 # path with ; separators, and with drive letters. We can handle the
8695 # drive letters (cygwin fileutils understands them), so leave them,
8696 # especially as we might pass files found there to a mingw objdump,
8697 # which wouldn't understand a cygwinified path. Ahh.
8698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8704 # pw32 DLLs use 'pw' prefix rather than 'lib'
8705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 supports_anon_versioning=no
8714 case `$LD -v 2>/dev/null` in
8715 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8718 *\ 2.11.*) ;; # other 2.11 versions
8719 *) supports_anon_versioning=yes ;;
8721 if test $supports_anon_versioning = yes; then
8722 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8724 $echo "local: *; };" >> $output_objdir/$libname.ver~
8725 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8727 $archive_expsym_cmds="$archive_cmds"
8735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8738 dynamic_linker='Win32 ld.exe'
8739 # FIXME: first we should search . and the directory the executable is in
8743 darwin* | rhapsody*)
8744 dynamic_linker="$host_os dyld"
8748 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8749 soname_spec='${libname}${release}${major}$shared_ext'
8750 shlibpath_overrides_runpath=yes
8751 shlibpath_var=DYLD_LIBRARY_PATH
8752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8753 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8754 if test "$GCC" = yes; then
8755 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"`
8757 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8759 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 hardcode_into_libs=yes
8784 dynamic_linker='GNU ld.so'
8787 freebsd* | dragonfly*)
8788 # DragonFly does not have aout. When/if they implement a new
8789 # versioning mechanism, adjust this.
8790 if test -x /usr/bin/objformat; then
8791 objformat=`/usr/bin/objformat`
8794 freebsd[123]*) objformat=aout ;;
8798 # Handle Gentoo/FreeBSD as it was Linux
8799 case $host_vendor in
8801 version_type=linux ;;
8803 version_type=freebsd-$objformat ;;
8806 case $version_type in
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes
8828 freebsd3.[01]* | freebsdelf3.[01]*)
8829 shlibpath_overrides_runpath=yes
8830 hardcode_into_libs=yes
8832 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8833 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8834 shlibpath_overrides_runpath=no
8835 hardcode_into_libs=yes
8837 freebsd*) # from 4.6 on
8838 shlibpath_overrides_runpath=yes
8839 hardcode_into_libs=yes
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 hardcode_into_libs=yes
8854 hpux9* | hpux10* | hpux11*)
8855 # Give a soname corresponding to the major version so that dld.sl refuses to
8856 # link against other versions.
8863 hardcode_into_libs=yes
8864 dynamic_linker="$host_os dld.so"
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 if test "X$HPUX_IA64_MODE" = X32; then
8870 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8872 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8878 hardcode_into_libs=yes
8879 dynamic_linker="$host_os dld.sl"
8880 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8889 dynamic_linker="$host_os dld.sl"
8890 shlibpath_var=SHLIB_PATH
8891 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8896 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8897 postinstall_cmds='chmod 555 $lib'
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=no
8909 hardcode_into_libs=yes
8912 irix5* | irix6* | nonstopux*)
8914 nonstopux*) version_type=nonstopux ;;
8916 if test "$lt_cv_prog_gnu_ld" = yes; then
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8927 irix5* | nonstopux*)
8931 case $LD in # libtool.m4 will add one of these switches to LD
8932 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8933 libsuff= shlibsuff= libmagic=32-bit;;
8934 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8935 libsuff=32 shlibsuff=N32 libmagic=N32;;
8936 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8937 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8938 *) libsuff= shlibsuff= libmagic=never-match;;
8942 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8943 shlibpath_overrides_runpath=no
8944 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8945 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8946 hardcode_into_libs=yes
8949 # No shared lib support for Linux oldld, aout, or coff.
8950 linux*oldld* | linux*aout* | linux*coff*)
8954 # This must be Linux ELF.
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=no
8964 # This implies no fast_install, which is unacceptable.
8965 # Some rework will be needed to allow for fast_install
8966 # before this can be enabled.
8967 hardcode_into_libs=yes
8969 # Append ld.so.conf contents to the search path
8970 if test -f /etc/ld.so.conf; then
8971 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8972 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8975 # We used to test for /lib/ld.so.1 and disable shared libraries on
8976 # powerpc, because MkLinux only supported shared libraries with the
8977 # GNU dynamic linker. Since this was broken with cross compilers,
8978 # most powerpc-linux boxes support dynamic linking these days and
8979 # people can always --disable-shared, the test was removed, and we
8980 # assume the GNU/Linux dynamic linker is in use.
8981 dynamic_linker='GNU/Linux ld.so'
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=no
8992 hardcode_into_libs=yes
8993 dynamic_linker='GNU ld.so'
9000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9003 dynamic_linker='NetBSD (a.out) ld.so'
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 dynamic_linker='NetBSD ld.elf_so'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 shlibpath_overrides_runpath=yes
9011 hardcode_into_libs=yes
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9033 sys_lib_dlsearch_path_spec="/usr/lib"
9035 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9037 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9038 *) need_version=no ;;
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9045 openbsd2.[89] | openbsd2.[89].*)
9046 shlibpath_overrides_runpath=no
9049 shlibpath_overrides_runpath=yes
9053 shlibpath_overrides_runpath=yes
9058 libname_spec='$name'
9061 library_names_spec='$libname${shared_ext} $libname.a'
9062 dynamic_linker='OS/2 ld.exe'
9063 shlibpath_var=LIBPATH
9066 osf3* | osf4* | osf5*)
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9074 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 hardcode_into_libs=yes
9086 # ldd complains unless libraries are executable
9087 postinstall_cmds='chmod +x $lib'
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9093 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=yes
9096 if test "$with_gnu_ld" = yes; then
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 case $host_vendor in
9109 shlibpath_overrides_runpath=no
9111 export_dynamic_flag_spec='${wl}-Blargedynsym'
9112 runpath_var=LD_RUN_PATH
9120 shlibpath_overrides_runpath=no
9121 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9127 if test -d /usr/nec ;then
9129 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9130 soname_spec='$libname${shared_ext}.$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9136 version_type=freebsd-elf
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 hardcode_into_libs=yes
9143 if test "$with_gnu_ld" = yes; then
9144 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9145 shlibpath_overrides_runpath=no
9147 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9148 shlibpath_overrides_runpath=yes
9151 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9155 sys_lib_dlsearch_path_spec='/usr/lib'
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9169 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9170 echo "${ECHO_T}$dynamic_linker" >&6; }
9171 test "$dynamic_linker" = no && can_build_shared=no
9173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9174 if test "$GCC" = yes; then
9175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9178 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9179 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9181 if test -n "$hardcode_libdir_flag_spec" || \
9182 test -n "$runpath_var" || \
9183 test "X$hardcode_automatic" = "Xyes" ; then
9185 # We can hardcode non-existant directories.
9186 if test "$hardcode_direct" != no &&
9187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9188 # have to relink, otherwise we might link with an installed library
9189 # when we should be linking with a yet-to-be-installed one
9190 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9191 test "$hardcode_minus_L" != no; then
9192 # Linking always hardcodes the temporary library directory.
9193 hardcode_action=relink
9195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9196 hardcode_action=immediate
9199 # We cannot hardcode anything, or else we can only hardcode existing
9201 hardcode_action=unsupported
9203 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9204 echo "${ECHO_T}$hardcode_action" >&6; }
9206 if test "$hardcode_action" = relink; then
9207 # Fast installation is not supported
9208 enable_fast_install=no
9209 elif test "$shlibpath_overrides_runpath" = yes ||
9210 test "$enable_shared" = no; then
9211 # Fast installation is not necessary
9212 enable_fast_install=needless
9217 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9218 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9219 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9220 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9221 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9222 { echo "$as_me:$LINENO: result: yes" >&5
9223 echo "${ECHO_T}yes" >&6; }
9225 # FIXME - insert some real tests, host_os isn't really good enough
9228 if test -n "$STRIP" ; then
9229 striplib="$STRIP -x"
9230 { echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6; }
9233 { echo "$as_me:$LINENO: result: no" >&5
9234 echo "${ECHO_T}no" >&6; }
9238 { echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6; }
9244 if test "x$enable_dlopen" != xyes; then
9245 enable_dlopen=unknown
9246 enable_dlopen_self=unknown
9247 enable_dlopen_self_static=unknown
9254 lt_cv_dlopen="load_add_on"
9256 lt_cv_dlopen_self=yes
9260 lt_cv_dlopen="LoadLibrary"
9265 lt_cv_dlopen="dlopen"
9270 # if libdl is installed we need to link against it
9271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_check_lib_save_LIBS=$LIBS
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_link") 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest$ac_exeext &&
9317 $as_test_x conftest$ac_exeext; then
9318 ac_cv_lib_dl_dlopen=yes
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_cv_lib_dl_dlopen=no
9326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9332 if test $ac_cv_lib_dl_dlopen = yes; then
9333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9338 lt_cv_dlopen_self=yes
9345 { echo "$as_me:$LINENO: checking for shl_load" >&5
9346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9347 if test "${ac_cv_func_shl_load+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9358 #define shl_load innocuous_shl_load
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char shl_load (); below.
9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363 <limits.h> exists even on freestanding compilers. */
9366 # include <limits.h>
9368 # include <assert.h>
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9380 /* The GNU C library defines this for functions which it implements
9381 to always fail with ENOSYS. Some functions are actually named
9382 something starting with __ and the normal name is an alias. */
9383 #if defined __stub_shl_load || defined __stub___shl_load
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9413 ac_cv_func_shl_load=yes
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_func_shl_load=no
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9424 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9426 if test $ac_cv_func_shl_load = yes; then
9427 lt_cv_dlopen="shl_load"
9429 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 ac_check_lib_save_LIBS=$LIBS
9436 cat >conftest.$ac_ext <<_ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9443 /* Override any GCC internal prototype to avoid an error.
9444 Use char because int might match the return type of a GCC
9445 builtin and then its argument prototype would still apply. */
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest$ac_exeext &&
9475 $as_test_x conftest$ac_exeext; then
9476 ac_cv_lib_dld_shl_load=yes
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_cv_lib_dld_shl_load=no
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485 conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9489 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9490 if test $ac_cv_lib_dld_shl_load = yes; then
9491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9493 { echo "$as_me:$LINENO: checking for dlopen" >&5
9494 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_dlopen+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define dlopen innocuous_dlopen
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char dlopen (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9514 # include <limits.h>
9516 # include <assert.h>
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_dlopen || defined __stub___dlopen
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_dlopen=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_func_dlopen=no
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9573 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9574 if test $ac_cv_func_dlopen = yes; then
9575 lt_cv_dlopen="dlopen"
9577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 ac_check_lib_save_LIBS=$LIBS
9584 cat >conftest.$ac_ext <<_ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_lib_dl_dlopen=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_lib_dl_dlopen=no
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9638 if test $ac_cv_lib_dl_dlopen = yes; then
9639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9641 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9642 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 ac_check_lib_save_LIBS=$LIBS
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest$ac_exeext &&
9687 $as_test_x conftest$ac_exeext; then
9688 ac_cv_lib_svld_dlopen=yes
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_cv_lib_svld_dlopen=no
9696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9700 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9702 if test $ac_cv_lib_svld_dlopen = yes; then
9703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9705 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9706 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9707 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 ac_check_lib_save_LIBS=$LIBS
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_lib_dld_dld_link=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_lib_dld_dld_link=no
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9766 if test $ac_cv_lib_dld_dld_link = yes; then
9767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9788 if test "x$lt_cv_dlopen" != xno; then
9794 case $lt_cv_dlopen in
9796 save_CPPFLAGS="$CPPFLAGS"
9797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9799 save_LDFLAGS="$LDFLAGS"
9800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9803 LIBS="$lt_cv_dlopen_libs $LIBS"
9805 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9807 if test "${lt_cv_dlopen_self+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 if test "$cross_compiling" = yes; then :
9811 lt_cv_dlopen_self=cross
9813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9814 lt_status=$lt_dlunknown
9815 cat > conftest.$ac_ext <<EOF
9816 #line __oline__ "configure"
9817 #include "confdefs.h"
9826 # define LT_DLGLOBAL RTLD_GLOBAL
9829 # define LT_DLGLOBAL DL_GLOBAL
9831 # define LT_DLGLOBAL 0
9835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9836 find out it does not work in some platform. */
9837 #ifndef LT_DLLAZY_OR_NOW
9839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9842 # define LT_DLLAZY_OR_NOW DL_LAZY
9845 # define LT_DLLAZY_OR_NOW RTLD_NOW
9848 # define LT_DLLAZY_OR_NOW DL_NOW
9850 # define LT_DLLAZY_OR_NOW 0
9858 extern "C" void exit (int);
9861 void fnord() { int i=42;}
9864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9865 int status = $lt_dlunknown;
9869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9871 /* dlclose (self); */
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9884 (./conftest; exit; ) >&5 2>/dev/null
9887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9889 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9892 # compilation failed
9893 lt_cv_dlopen_self=no
9900 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9901 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9903 if test "x$lt_cv_dlopen_self" = xyes; then
9904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9905 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9906 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9907 if test "${lt_cv_dlopen_self_static+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 if test "$cross_compiling" = yes; then :
9911 lt_cv_dlopen_self_static=cross
9913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9914 lt_status=$lt_dlunknown
9915 cat > conftest.$ac_ext <<EOF
9916 #line __oline__ "configure"
9917 #include "confdefs.h"
9926 # define LT_DLGLOBAL RTLD_GLOBAL
9929 # define LT_DLGLOBAL DL_GLOBAL
9931 # define LT_DLGLOBAL 0
9935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9936 find out it does not work in some platform. */
9937 #ifndef LT_DLLAZY_OR_NOW
9939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9942 # define LT_DLLAZY_OR_NOW DL_LAZY
9945 # define LT_DLLAZY_OR_NOW RTLD_NOW
9948 # define LT_DLLAZY_OR_NOW DL_NOW
9950 # define LT_DLLAZY_OR_NOW 0
9958 extern "C" void exit (int);
9961 void fnord() { int i=42;}
9964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9965 int status = $lt_dlunknown;
9969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9971 /* dlclose (self); */
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9984 (./conftest; exit; ) >&5 2>/dev/null
9987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9992 # compilation failed
9993 lt_cv_dlopen_self_static=no
10000 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10001 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10004 CPPFLAGS="$save_CPPFLAGS"
10005 LDFLAGS="$save_LDFLAGS"
10010 case $lt_cv_dlopen_self in
10011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10012 *) enable_dlopen_self=unknown ;;
10015 case $lt_cv_dlopen_self_static in
10016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10017 *) enable_dlopen_self_static=unknown ;;
10022 # Report which library types will actually be built
10023 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10025 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10026 echo "${ECHO_T}$can_build_shared" >&6; }
10028 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10030 test "$can_build_shared" = "no" && enable_shared=no
10032 # On AIX, shared libraries and static libraries use the same namespace, and
10033 # are all built from PIC.
10036 test "$enable_shared" = yes && enable_static=no
10037 if test -n "$RANLIB"; then
10038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10039 postinstall_cmds='$RANLIB $lib'
10044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10045 test "$enable_shared" = yes && enable_static=no
10049 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10050 echo "${ECHO_T}$enable_shared" >&6; }
10052 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10053 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10054 # Make sure either enable_shared or enable_static is yes.
10055 test "$enable_shared" = yes || enable_static=yes
10056 { echo "$as_me:$LINENO: result: $enable_static" >&5
10057 echo "${ECHO_T}$enable_static" >&6; }
10059 # The else clause should only fire when bootstrapping the
10060 # libtool distribution, otherwise you forgot to ship ltmain.sh
10061 # with your package, and you will get complaints that there are
10062 # no rules to generate ltmain.sh.
10063 if test -f "$ltmain"; then
10064 # See if we are running on zsh, and set the options which allow our commands through
10065 # without removal of \ escapes.
10066 if test -n "${ZSH_VERSION+set}" ; then
10067 setopt NO_GLOB_SUBST
10069 # Now quote all the things that may contain metacharacters while being
10070 # careful not to overquote the AC_SUBSTed values. We take copies of the
10071 # variables and quote the copies for generation of the libtool script.
10072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10076 deplibs_check_method reload_flag reload_cmds need_locks \
10077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10078 lt_cv_sys_global_symbol_to_c_name_address \
10079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10080 old_postinstall_cmds old_postuninstall_cmds \
10084 lt_prog_compiler_wl \
10085 lt_prog_compiler_pic \
10086 lt_prog_compiler_static \
10087 lt_prog_compiler_no_builtin_flag \
10088 export_dynamic_flag_spec \
10089 thread_safe_flag_spec \
10090 whole_archive_flag_spec \
10091 enable_shared_with_static_runtimes \
10093 old_archive_from_new_cmds \
10098 compiler_lib_search_path \
10100 archive_expsym_cmds \
10102 postuninstall_cmds \
10103 old_archive_from_expsyms_cmds \
10104 allow_undefined_flag \
10105 no_undefined_flag \
10106 export_symbols_cmds \
10107 hardcode_libdir_flag_spec \
10108 hardcode_libdir_flag_spec_ld \
10109 hardcode_libdir_separator \
10110 hardcode_automatic \
10112 module_expsym_cmds \
10113 lt_cv_prog_compiler_c_o \
10115 include_expsyms; do
10118 old_archive_cmds | \
10119 old_archive_from_new_cmds | \
10121 archive_expsym_cmds | \
10123 module_expsym_cmds | \
10124 old_archive_from_expsyms_cmds | \
10125 export_symbols_cmds | \
10126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10127 postinstall_cmds | postuninstall_cmds | \
10128 old_postinstall_cmds | old_postuninstall_cmds | \
10129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10130 # Double-quote double-evaled strings.
10131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10140 *'\$0 --fallback-echo"')
10141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10145 cfgfile="${ofile}T"
10146 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10148 { echo "$as_me:$LINENO: creating $ofile" >&5
10149 echo "$as_me: creating $ofile" >&6;}
10151 cat <<__EOF__ >> "$cfgfile"
10154 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10155 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10156 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10158 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10159 # Free Software Foundation, Inc.
10161 # This file is part of GNU Libtool:
10162 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10164 # This program is free software; you can redistribute it and/or modify
10165 # it under the terms of the GNU General Public License as published by
10166 # the Free Software Foundation; either version 2 of the License, or
10167 # (at your option) any later version.
10169 # This program is distributed in the hope that it will be useful, but
10170 # WITHOUT ANY WARRANTY; without even the implied warranty of
10171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10172 # General Public License for more details.
10174 # You should have received a copy of the GNU General Public License
10175 # along with this program; if not, write to the Free Software
10176 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10178 # As a special exception to the GNU General Public License, if you
10179 # distribute this file as part of a program that contains a
10180 # configuration script generated by Autoconf, you may include it under
10181 # the same distribution terms that you use for the rest of that program.
10183 # A sed program that does not truncate output.
10186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10187 Xsed="$SED -e 1s/^X//"
10189 # The HP-UX ksh and POSIX shell print the target directory to stdout
10190 # if CDPATH is set.
10191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10193 # The names of the tagged configurations supported by this script.
10196 # ### BEGIN LIBTOOL CONFIG
10198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10200 # Shell to use when invoking shell scripts.
10203 # Whether or not to build shared libraries.
10204 build_libtool_libs=$enable_shared
10206 # Whether or not to build static libraries.
10207 build_old_libs=$enable_static
10209 # Whether or not to add -lc for building shared libraries.
10210 build_libtool_need_lc=$archive_cmds_need_lc
10212 # Whether or not to disallow shared libs when runtime libs are static
10213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10215 # Whether or not to optimize for fast installation.
10216 fast_install=$enable_fast_install
10219 host_alias=$host_alias
10223 # The build system.
10224 build_alias=$build_alias
10228 # An echo program that does not interpret backslashes.
10233 AR_FLAGS=$lt_AR_FLAGS
10238 # LTCC compiler flags.
10239 LTCFLAGS=$lt_LTCFLAGS
10241 # A language-specific compiler.
10244 # Is the compiler the GNU C compiler?
10250 # The linker used to build libraries.
10253 # Whether we need hard or soft links.
10256 # A BSD-compatible nm program.
10259 # A symbol stripping program
10262 # Used to examine libraries when file_magic_cmd begins "file"
10263 MAGIC_CMD=$MAGIC_CMD
10265 # Used on cygwin: DLL creation program.
10268 # Used on cygwin: object dumper.
10271 # Used on cygwin: assembler.
10274 # The name of the directory that contains temporary libtool files.
10277 # How to create reloadable object files.
10278 reload_flag=$lt_reload_flag
10279 reload_cmds=$lt_reload_cmds
10281 # How to pass a linker flag through the compiler.
10282 wl=$lt_lt_prog_compiler_wl
10284 # Object file suffix (normally "o").
10285 objext="$ac_objext"
10287 # Old archive suffix (normally "a").
10290 # Shared library suffix (normally ".so").
10291 shrext_cmds='$shrext_cmds'
10293 # Executable file suffix (normally "").
10296 # Additional compiler flags for building library objects.
10297 pic_flag=$lt_lt_prog_compiler_pic
10300 # What is the maximum length of a command?
10301 max_cmd_len=$lt_cv_sys_max_cmd_len
10303 # Does compiler simultaneously support -c and -o options?
10304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10306 # Must we lock files when doing compilation?
10307 need_locks=$lt_need_locks
10309 # Do we need the lib prefix for modules?
10310 need_lib_prefix=$need_lib_prefix
10312 # Do we need a version for libraries?
10313 need_version=$need_version
10315 # Whether dlopen is supported.
10316 dlopen_support=$enable_dlopen
10318 # Whether dlopen of programs is supported.
10319 dlopen_self=$enable_dlopen_self
10321 # Whether dlopen of statically linked programs is supported.
10322 dlopen_self_static=$enable_dlopen_self_static
10324 # Compiler flag to prevent dynamic linking.
10325 link_static_flag=$lt_lt_prog_compiler_static
10327 # Compiler flag to turn off builtin functions.
10328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10330 # Compiler flag to allow reflexive dlopens.
10331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10333 # Compiler flag to generate shared objects directly from archives.
10334 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10336 # Compiler flag to generate thread-safe objects.
10337 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10339 # Library versioning type.
10340 version_type=$version_type
10342 # Format of library name prefix.
10343 libname_spec=$lt_libname_spec
10345 # List of archive names. First name is the real one, the rest are links.
10346 # The last name is the one that the linker finds with -lNAME.
10347 library_names_spec=$lt_library_names_spec
10349 # The coded name of the library, if different from the real name.
10350 soname_spec=$lt_soname_spec
10352 # Commands used to build and install an old-style archive.
10354 old_archive_cmds=$lt_old_archive_cmds
10355 old_postinstall_cmds=$lt_old_postinstall_cmds
10356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10358 # Create an old-style archive from a shared archive.
10359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10361 # Create a temporary old-style archive to link instead of a shared archive.
10362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10364 # Commands used to build and install a shared archive.
10365 archive_cmds=$lt_archive_cmds
10366 archive_expsym_cmds=$lt_archive_expsym_cmds
10367 postinstall_cmds=$lt_postinstall_cmds
10368 postuninstall_cmds=$lt_postuninstall_cmds
10370 # Commands used to build a loadable module (assumed same as above if empty)
10371 module_cmds=$lt_module_cmds
10372 module_expsym_cmds=$lt_module_expsym_cmds
10374 # Commands to strip libraries.
10375 old_striplib=$lt_old_striplib
10376 striplib=$lt_striplib
10378 # Dependencies to place before the objects being linked to create a
10380 predep_objects=$lt_predep_objects
10382 # Dependencies to place after the objects being linked to create a
10384 postdep_objects=$lt_postdep_objects
10386 # Dependencies to place before the objects being linked to create a
10388 predeps=$lt_predeps
10390 # Dependencies to place after the objects being linked to create a
10392 postdeps=$lt_postdeps
10394 # The library search path used internally by the compiler when linking
10395 # a shared library.
10396 compiler_lib_search_path=$lt_compiler_lib_search_path
10398 # Method to check whether dependent libraries are shared objects.
10399 deplibs_check_method=$lt_deplibs_check_method
10401 # Command to use when deplibs_check_method == file_magic.
10402 file_magic_cmd=$lt_file_magic_cmd
10404 # Flag that allows shared libraries with undefined symbols to be built.
10405 allow_undefined_flag=$lt_allow_undefined_flag
10407 # Flag that forces no undefined symbols.
10408 no_undefined_flag=$lt_no_undefined_flag
10410 # Commands used to finish a libtool library installation in a directory.
10411 finish_cmds=$lt_finish_cmds
10413 # Same as above, but a single script fragment to be evaled but not shown.
10414 finish_eval=$lt_finish_eval
10416 # Take the output of nm and produce a listing of raw symbols and C names.
10417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10419 # Transform the output of nm in a proper C declaration
10420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10422 # Transform the output of nm in a C name address pair
10423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10425 # This is the shared library runtime path variable.
10426 runpath_var=$runpath_var
10428 # This is the shared library path variable.
10429 shlibpath_var=$shlibpath_var
10431 # Is shlibpath searched before the hard-coded library search path?
10432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10434 # How to hardcode a shared library path into an executable.
10435 hardcode_action=$hardcode_action
10437 # Whether we should hardcode library paths into libraries.
10438 hardcode_into_libs=$hardcode_into_libs
10440 # Flag to hardcode \$libdir into a binary during linking.
10441 # This must work even if \$libdir does not exist.
10442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10444 # If ld is used when linking, flag to hardcode \$libdir into
10445 # a binary during linking. This must work even if \$libdir does
10447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10449 # Whether we need a single -rpath flag with a separated argument.
10450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10453 # resulting binary.
10454 hardcode_direct=$hardcode_direct
10456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10457 # resulting binary.
10458 hardcode_minus_L=$hardcode_minus_L
10460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10461 # the resulting binary.
10462 hardcode_shlibpath_var=$hardcode_shlibpath_var
10464 # Set to yes if building a shared library automatically hardcodes DIR into the library
10465 # and all subsequent libraries and executables linked against it.
10466 hardcode_automatic=$hardcode_automatic
10468 # Variables whose values should be saved in libtool wrapper scripts and
10469 # restored at relink time.
10470 variables_saved_for_relink="$variables_saved_for_relink"
10472 # Whether libtool must link a program against all its dependency libraries.
10473 link_all_deplibs=$link_all_deplibs
10475 # Compile-time system search path for libraries
10476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10478 # Run-time system search path for libraries
10479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10481 # Fix the shell variable \$srcfile for the compiler.
10482 fix_srcfile_path="$fix_srcfile_path"
10484 # Set to yes if exported symbols are required.
10485 always_export_symbols=$always_export_symbols
10487 # The commands to list exported symbols.
10488 export_symbols_cmds=$lt_export_symbols_cmds
10490 # The commands to extract the exported symbol list from a shared archive.
10491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10493 # Symbols that should not be listed in the preloaded symbols.
10494 exclude_expsyms=$lt_exclude_expsyms
10496 # Symbols that must always be exported.
10497 include_expsyms=$lt_include_expsyms
10499 # ### END LIBTOOL CONFIG
10506 cat <<\EOF >> "$cfgfile"
10508 # AIX sometimes has problems with the GCC collect2 program. For some
10509 # reason, if we set the COLLECT_NAMES environment variable, the problems
10510 # vanish in a puff of smoke.
10511 if test "X${COLLECT_NAMES+set}" != Xset; then
10513 export COLLECT_NAMES
10519 # We use sed instead of cat because bash on DJGPP gets confused if
10520 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10521 # text mode, it properly converts lines to CR/LF. This bash problem
10522 # is reportedly fixed, but why not run on old versions too?
10523 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10525 mv -f "$cfgfile" "$ofile" || \
10526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10530 # If there is no Makefile yet, we rely on a make rule to execute
10531 # `config.status --recheck' to rerun these tests and create the
10532 # libtool script then.
10533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10534 if test -f "$ltmain_in"; then
10535 test -f Makefile && make "$ltmain"
10541 ac_cpp='$CPP $CPPFLAGS'
10542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10549 # Check whether --with-tags was given.
10550 if test "${with_tags+set}" = set; then
10551 withval=$with_tags; tagnames="$withval"
10555 if test -f "$ltmain" && test -n "$tagnames"; then
10556 if test ! -f "${ofile}"; then
10557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10558 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10561 if test -z "$LTCC"; then
10562 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10563 if test -z "$LTCC"; then
10564 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10565 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10568 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10571 if test -z "$LTCFLAGS"; then
10572 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10575 # Extract list of available tagged configurations in $ofile.
10576 # Note that this assumes the entire list is on one line.
10577 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10580 for tagname in $tagnames; do
10582 # Check whether tagname contains only valid characters
10583 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10585 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10586 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10587 { (exit 1); exit 1; }; }
10591 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10593 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10594 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10595 { (exit 1); exit 1; }; }
10598 # Update the list of available tags.
10599 if test -n "$tagname"; then
10600 echo appending configuration tag \"$tagname\" to $ofile
10604 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10605 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10606 (test "X$CXX" != "Xg++"))) ; then
10608 ac_cpp='$CXXCPP $CPPFLAGS'
10609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10616 archive_cmds_need_lc_CXX=no
10617 allow_undefined_flag_CXX=
10618 always_export_symbols_CXX=no
10619 archive_expsym_cmds_CXX=
10620 export_dynamic_flag_spec_CXX=
10621 hardcode_direct_CXX=no
10622 hardcode_libdir_flag_spec_CXX=
10623 hardcode_libdir_flag_spec_ld_CXX=
10624 hardcode_libdir_separator_CXX=
10625 hardcode_minus_L_CXX=no
10626 hardcode_shlibpath_var_CXX=unsupported
10627 hardcode_automatic_CXX=no
10629 module_expsym_cmds_CXX=
10630 link_all_deplibs_CXX=unknown
10631 old_archive_cmds_CXX=$old_archive_cmds
10632 no_undefined_flag_CXX=
10633 whole_archive_flag_spec_CXX=
10634 enable_shared_with_static_runtimes_CXX=no
10636 # Dependencies to place before and after the object being linked:
10637 predep_objects_CXX=
10638 postdep_objects_CXX=
10641 compiler_lib_search_path_CXX=
10643 # Source file extension for C++ test sources.
10646 # Object file extension for compiled C++ test sources.
10650 # Code to be used in simple compile tests
10651 lt_simple_compile_test_code="int some_variable = 0;\n"
10653 # Code to be used in simple link tests
10654 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10658 # If no C compiler was specified, use CC.
10661 # If no C compiler flags were specified, use CFLAGS.
10662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10664 # Allow CC to be a program name with arguments.
10668 # save warnings/boilerplate of simple test code
10669 ac_outfile=conftest.$ac_objext
10670 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10672 _lt_compiler_boilerplate=`cat conftest.err`
10675 ac_outfile=conftest.$ac_objext
10676 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10678 _lt_linker_boilerplate=`cat conftest.err`
10682 # Allow CC to be a program name with arguments.
10687 lt_save_with_gnu_ld=$with_gnu_ld
10688 lt_save_path_LD=$lt_cv_path_LD
10689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10690 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10692 $as_unset lt_cv_prog_gnu_ld
10694 if test -n "${lt_cv_path_LDCXX+set}"; then
10695 lt_cv_path_LD=$lt_cv_path_LDCXX
10697 $as_unset lt_cv_path_LD
10699 test -z "${LDCXX+set}" || LD=$LDCXX
10703 for cc_temp in $compiler""; do
10705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10714 # We don't want -fno-exception wen compiling C++ code, so set the
10715 # no_builtin_flag separately
10716 if test "$GXX" = yes; then
10717 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10719 lt_prog_compiler_no_builtin_flag_CXX=
10722 if test "$GXX" = yes; then
10723 # Set up default GNU C++ configuration
10726 # Check whether --with-gnu-ld was given.
10727 if test "${with_gnu_ld+set}" = set; then
10728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10734 if test "$GCC" = yes; then
10735 # Check if gcc -print-prog-name=ld gives a path.
10736 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10737 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10740 # gcc leaves a trailing carriage return which upsets mingw
10741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10746 # Accept absolute paths.
10748 re_direlt='/[^/][^/]*/\.\./'
10749 # Canonicalize the pathname of ld
10750 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10751 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10752 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10754 test -z "$LD" && LD="$ac_prog"
10757 # If it fails, then pretend we aren't using GCC.
10761 # If it is relative, then search for the first ld in PATH.
10762 with_gnu_ld=unknown
10765 elif test "$with_gnu_ld" = yes; then
10766 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10767 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10769 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10770 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10772 if test "${lt_cv_path_LD+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 if test -z "$LD"; then
10776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10777 for ac_dir in $PATH; do
10779 test -z "$ac_dir" && ac_dir=.
10780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10781 lt_cv_path_LD="$ac_dir/$ac_prog"
10782 # Check to see if the program is GNU ld. I'd rather use --version,
10783 # but apparently some variants of GNU ld only accept -v.
10784 # Break only if it was the GNU/non-GNU ld that we prefer.
10785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10786 *GNU* | *'with BFD'*)
10787 test "$with_gnu_ld" != no && break
10790 test "$with_gnu_ld" != yes && break
10797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10801 LD="$lt_cv_path_LD"
10802 if test -n "$LD"; then
10803 { echo "$as_me:$LINENO: result: $LD" >&5
10804 echo "${ECHO_T}$LD" >&6; }
10806 { echo "$as_me:$LINENO: result: no" >&5
10807 echo "${ECHO_T}no" >&6; }
10809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10811 { (exit 1); exit 1; }; }
10812 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10814 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10818 case `$LD -v 2>&1 </dev/null` in
10819 *GNU* | *'with BFD'*)
10820 lt_cv_prog_gnu_ld=yes
10823 lt_cv_prog_gnu_ld=no
10827 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10828 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10829 with_gnu_ld=$lt_cv_prog_gnu_ld
10833 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10834 # archiving commands below assume that GNU ld is being used.
10835 if test "$with_gnu_ld" = yes; then
10836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10837 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'
10839 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10842 # If archive_cmds runs LD, not CC, wlarc should be empty
10843 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10844 # investigate it a little bit more. (MM)
10847 # ancient GNU ld didn't support --whole-archive et. al.
10848 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10849 grep 'no-whole-archive' > /dev/null; then
10850 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10852 whole_archive_flag_spec_CXX=
10858 # A generic and very simple default shared library creation
10859 # command for GNU C++ for the case where it uses the native
10860 # linker, instead of GNU ld. If possible, this setting should
10861 # overridden to take advantage of the native linker features on
10862 # the platform it is being used on.
10863 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10866 # Commands to make compiler produce verbose output that lists
10867 # what "hidden" libraries, object files and flags are used when
10868 # linking a shared library.
10869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10877 # PORTME: fill in a description of your system's C++ link characteristics
10878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10883 # FIXME: insert proper C++ library support
10887 if test "$host_cpu" = ia64; then
10888 # On IA64, the linker does run time linking by default, so we don't
10889 # have to do anything special.
10890 aix_use_runtimelinking=no
10891 exp_sym_flag='-Bexport'
10894 aix_use_runtimelinking=no
10896 # Test if we are trying to use run time linking or normal
10897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10898 # need to do runtime linking.
10899 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10900 for ld_flag in $LDFLAGS; do
10903 aix_use_runtimelinking=yes
10911 exp_sym_flag='-bexport'
10912 no_entry_flag='-bnoentry'
10915 # When large executables or shared objects are built, AIX ld can
10916 # have problems creating the table of contents. If linking a library
10917 # or program results in "error TOC overflow" add -mminimal-toc to
10918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10921 archive_cmds_CXX=''
10922 hardcode_direct_CXX=yes
10923 hardcode_libdir_separator_CXX=':'
10924 link_all_deplibs_CXX=yes
10926 if test "$GXX" = yes; then
10927 case $host_os in aix4.[012]|aix4.[012].*)
10928 # We only want to do this on AIX 4.2 and lower, the check
10929 # below for broken collect2 doesn't work under 4.3+
10930 collect2name=`${CC} -print-prog-name=collect2`
10931 if test -f "$collect2name" && \
10932 strings "$collect2name" | grep resolve_lib_name >/dev/null
10934 # We have reworked collect2
10935 hardcode_direct_CXX=yes
10937 # We have old collect2
10938 hardcode_direct_CXX=unsupported
10939 # It fails to find uninstalled libraries when the uninstalled
10940 # path is not listed in the libpath. Setting hardcode_minus_L
10941 # to unsupported forces relinking
10942 hardcode_minus_L_CXX=yes
10943 hardcode_libdir_flag_spec_CXX='-L$libdir'
10944 hardcode_libdir_separator_CXX=
10948 shared_flag='-shared'
10949 if test "$aix_use_runtimelinking" = yes; then
10950 shared_flag="$shared_flag "'${wl}-G'
10954 if test "$host_cpu" = ia64; then
10955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10956 # chokes on -Wl,-G. The following line is correct:
10959 if test "$aix_use_runtimelinking" = yes; then
10960 shared_flag='${wl}-G'
10962 shared_flag='${wl}-bM:SRE'
10967 # It seems that -bexpall does not export symbols beginning with
10968 # underscore (_), so it is better to generate a list of symbols to export.
10969 always_export_symbols_CXX=yes
10970 if test "$aix_use_runtimelinking" = yes; then
10971 # Warning - without using the other runtime loading flags (-brtl),
10972 # -berok will link without error, but may produce a broken library.
10973 allow_undefined_flag_CXX='-berok'
10974 # Determine the default libpath from the value encoded in an empty executable.
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_link") 2>conftest.er1
10999 grep -v '^ *+' conftest.er1 >conftest.err
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_cxx_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext &&
11007 $as_test_x conftest$ac_exeext; then
11009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11011 # Check for a 64-bit object if we didn't find anything.
11012 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; }
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11022 conftest$ac_exeext conftest.$ac_ext
11023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11027 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11029 if test "$host_cpu" = ia64; then
11030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11031 allow_undefined_flag_CXX="-z nodefs"
11032 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11034 # Determine the default libpath from the value encoded in an empty executable.
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_cxx_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
11069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11071 # Check for a 64-bit object if we didn't find anything.
11072 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; }
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11085 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11086 # Warning - without using the other run time loading flags,
11087 # -berok will link without error, but may produce a broken library.
11088 no_undefined_flag_CXX=' ${wl}-bernotok'
11089 allow_undefined_flag_CXX=' ${wl}-berok'
11090 # Exported symbols can be pulled into shared objects from archives
11091 whole_archive_flag_spec_CXX='$convenience'
11092 archive_cmds_need_lc_CXX=yes
11093 # This is similar to how AIX traditionally builds its shared libraries.
11094 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11101 allow_undefined_flag_CXX=unsupported
11102 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11103 # support --undefined. This deserves some investigation. FIXME
11104 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11111 case $cc_basename in
11113 # FIXME: insert proper C++ library support
11119 cygwin* | mingw* | pw32*)
11120 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11121 # as there is no search path for DLLs.
11122 hardcode_libdir_flag_spec_CXX='-L$libdir'
11123 allow_undefined_flag_CXX=unsupported
11124 always_export_symbols_CXX=no
11125 enable_shared_with_static_runtimes_CXX=yes
11127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11129 # If the export-symbols file already is a .def file (1st line
11130 # is EXPORTS), use it as is; otherwise, prepend...
11131 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11132 cp $export_symbols $output_objdir/$soname.def;
11134 echo EXPORTS > $output_objdir/$soname.def;
11135 cat $export_symbols >> $output_objdir/$soname.def;
11137 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11142 darwin* | rhapsody*)
11144 rhapsody* | darwin1.[012])
11145 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11149 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11151 case ${MACOSX_DEPLOYMENT_TARGET} in
11153 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11156 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11162 archive_cmds_need_lc_CXX=no
11163 hardcode_direct_CXX=no
11164 hardcode_automatic_CXX=yes
11165 hardcode_shlibpath_var_CXX=unsupported
11166 whole_archive_flag_spec_CXX=''
11167 link_all_deplibs_CXX=yes
11169 if test "$GXX" = yes ; then
11170 lt_int_apple_cc_single_mod=no
11171 output_verbose_link_cmd='echo'
11172 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11173 lt_int_apple_cc_single_mod=yes
11175 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11176 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11178 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11180 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11182 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11183 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}'
11185 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11187 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}'
11189 case $cc_basename in
11191 output_verbose_link_cmd='echo'
11192 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11193 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11195 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11196 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}'
11206 case $cc_basename in
11208 # FIXME: insert proper C++ library support
11212 # Green Hills C++ Compiler
11213 # FIXME: insert proper C++ library support
11217 # FIXME: insert proper C++ library support
11223 # C++ shared libraries reported to be fairly broken before switch to ELF
11227 archive_cmds_need_lc_CXX=no
11229 freebsd* | kfreebsd*-gnu | dragonfly*)
11230 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11238 hardcode_libdir_separator_CXX=:
11239 export_dynamic_flag_spec_CXX='${wl}-E'
11240 hardcode_direct_CXX=yes
11241 hardcode_minus_L_CXX=yes # Not in the search PATH,
11242 # but as the default
11243 # location of the library.
11245 case $cc_basename in
11247 # FIXME: insert proper C++ library support
11251 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'
11252 # Commands to make compiler produce verbose output that lists
11253 # what "hidden" libraries, object files and flags are used when
11254 # linking a shared library.
11256 # There doesn't appear to be a way to prevent this compiler from
11257 # explicitly linking system object files so we need to strip them
11258 # from the output so that they don't get included in the library
11260 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'
11263 if test "$GXX" = yes; then
11264 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'
11266 # FIXME: insert proper C++ library support
11273 if test $with_gnu_ld = no; then
11274 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11275 hardcode_libdir_separator_CXX=:
11279 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11282 export_dynamic_flag_spec_CXX='${wl}-E'
11288 hardcode_direct_CXX=no
11289 hardcode_shlibpath_var_CXX=no
11292 hardcode_direct_CXX=yes
11293 hardcode_minus_L_CXX=yes # Not in the search PATH,
11294 # but as the default
11295 # location of the library.
11299 case $cc_basename in
11301 # FIXME: insert proper C++ library support
11307 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316 # Commands to make compiler produce verbose output that lists
11317 # what "hidden" libraries, object files and flags are used when
11318 # linking a shared library.
11320 # There doesn't appear to be a way to prevent this compiler from
11321 # explicitly linking system object files so we need to strip them
11322 # from the output so that they don't get included in the library
11324 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'
11327 if test "$GXX" = yes; then
11328 if test $with_gnu_ld = no; then
11331 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11337 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'
11342 # FIXME: insert proper C++ library support
11349 hardcode_direct_CXX=no
11350 hardcode_shlibpath_var_CXX=no
11351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11352 export_dynamic_flag_spec_CXX='${wl}-E'
11353 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11354 # Instead, shared libraries are loaded at an image base (0x10000000 by
11355 # default) and relocated if they conflict, which is a slow very memory
11356 # consuming and fragmenting process. To avoid this, we pick a random,
11357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11358 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11359 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11360 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11363 case $cc_basename in
11366 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11368 # Archives containing C++ object files must be created using
11369 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11370 # necessary to make sure instantiated templates are included
11372 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11375 if test "$GXX" = yes; then
11376 if test "$with_gnu_ld" = no; then
11377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11379 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'
11382 link_all_deplibs_CXX=yes
11385 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11386 hardcode_libdir_separator_CXX=:
11389 case $cc_basename in
11391 # Kuck and Associates, Inc. (KAI) C++ Compiler
11393 # KCC will only create a shared library if the output file
11394 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11395 # to its proper name (with version) after linking.
11396 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'
11397 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'
11398 # Commands to make compiler produce verbose output that lists
11399 # what "hidden" libraries, object files and flags are used when
11400 # linking a shared library.
11402 # There doesn't appear to be a way to prevent this compiler from
11403 # explicitly linking system object files so we need to strip them
11404 # from the output so that they don't get included in the library
11406 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'
11408 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11411 # Archives containing C++ object files must be created using
11412 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11413 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11418 # version 8.0 and above of icpc choke on multiply defined symbols
11419 # if we add $predep_objects and $postdep_objects, however 7.1 and
11420 # earlier do not add the objects themselves.
11421 case `$CC -V 2>&1` in
11423 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424 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'
11426 *) # Version 8.0 or newer
11429 ia64*) tmp_idyn=' -i_dynamic';;
11431 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11435 archive_cmds_need_lc_CXX=no
11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11438 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11441 # Portland Group C++ compiler
11442 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11443 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11445 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11447 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11452 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'
11454 runpath_var=LD_RUN_PATH
11455 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11456 hardcode_libdir_separator_CXX=:
11458 # Commands to make compiler produce verbose output that lists
11459 # what "hidden" libraries, object files and flags are used when
11460 # linking a shared library.
11462 # There doesn't appear to be a way to prevent this compiler from
11463 # explicitly linking system object files so we need to strip them
11464 # from the output so that they don't get included in the library
11466 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'
11471 # FIXME: insert proper C++ library support
11475 # FIXME: insert proper C++ library support
11479 case $cc_basename in
11481 # FIXME: insert proper C++ library support
11485 # FIXME: insert proper C++ library support
11491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11492 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11494 hardcode_libdir_flag_spec_CXX='-R$libdir'
11495 hardcode_direct_CXX=yes
11496 hardcode_shlibpath_var_CXX=no
11498 # Workaround some broken pre-1.5 toolchains
11499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11502 # C++ shared libraries are fairly broken
11506 hardcode_direct_CXX=yes
11507 hardcode_shlibpath_var_CXX=no
11508 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11511 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11512 export_dynamic_flag_spec_CXX='${wl}-E'
11513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11515 output_verbose_link_cmd='echo'
11518 case $cc_basename in
11520 # Kuck and Associates, Inc. (KAI) C++ Compiler
11522 # KCC will only create a shared library if the output file
11523 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11524 # to its proper name (with version) after linking.
11525 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'
11527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11528 hardcode_libdir_separator_CXX=:
11530 # Archives containing C++ object files must be created using
11531 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11532 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11536 # Rational C++ 2.4.1
11537 # FIXME: insert proper C++ library support
11541 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11542 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11545 hardcode_libdir_separator_CXX=:
11547 # Commands to make compiler produce verbose output that lists
11548 # what "hidden" libraries, object files and flags are used when
11549 # linking a shared library.
11551 # There doesn't appear to be a way to prevent this compiler from
11552 # explicitly linking system object files so we need to strip them
11553 # from the output so that they don't get included in the library
11555 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'
11558 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11560 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563 hardcode_libdir_separator_CXX=:
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11571 # FIXME: insert proper C++ library support
11578 case $cc_basename in
11580 # Kuck and Associates, Inc. (KAI) C++ Compiler
11582 # KCC will only create a shared library if the output file
11583 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11584 # to its proper name (with version) after linking.
11585 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'
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588 hardcode_libdir_separator_CXX=:
11590 # Archives containing C++ object files must be created using
11591 # the KAI C++ compiler.
11592 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11595 # Rational C++ 2.4.1
11596 # FIXME: insert proper C++ library support
11600 allow_undefined_flag_CXX=' -expect_unresolved \*'
11601 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11602 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11603 echo "-hidden">> $lib.exp~
11604 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11607 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11608 hardcode_libdir_separator_CXX=:
11610 # Commands to make compiler produce verbose output that lists
11611 # what "hidden" libraries, object files and flags are used when
11612 # linking a shared library.
11614 # There doesn't appear to be a way to prevent this compiler from
11615 # explicitly linking system object files so we need to strip them
11616 # from the output so that they don't get included in the library
11618 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'
11621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11623 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11625 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11626 hardcode_libdir_separator_CXX=:
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11634 # FIXME: insert proper C++ library support
11641 # FIXME: insert proper C++ library support
11645 case $cc_basename in
11648 # FIXME: insert proper C++ library support
11653 # FIXME: insert proper C++ library support
11657 # FIXME: insert proper C++ library support
11663 case $cc_basename in
11665 # Sun C++ 4.2, 5.x and Centerline C++
11666 archive_cmds_need_lc_CXX=yes
11667 no_undefined_flag_CXX=' -zdefs'
11668 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11669 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11670 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11672 hardcode_libdir_flag_spec_CXX='-R$libdir'
11673 hardcode_shlibpath_var_CXX=no
11675 solaris2.[0-5] | solaris2.[0-5].*) ;;
11677 # The C++ compiler is used as linker so we must use $wl
11678 # flag to pass the commands to the underlying system
11679 # linker. We must also pass each convience library through
11680 # to the system linker between allextract/defaultextract.
11681 # The C++ compiler will combine linker options so we
11682 # cannot just pass the convience library names through
11684 # Supported since Solaris 2.6 (maybe 2.5.1?)
11685 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11688 link_all_deplibs_CXX=yes
11690 output_verbose_link_cmd='echo'
11692 # Archives containing C++ object files must be created using
11693 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11694 # necessary to make sure instantiated templates are included
11696 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11699 # Green Hills C++ Compiler
11700 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11702 # The C++ compiler must be used to create the archive.
11703 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11706 # GNU C++ compiler with Solaris linker
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11709 if $CC --version | grep -v '^2\.7' > /dev/null; then
11710 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11719 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11721 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11722 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11723 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11728 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11731 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11737 no_undefined_flag_CXX='${wl}-z,text'
11738 archive_cmds_need_lc_CXX=no
11739 hardcode_shlibpath_var_CXX=no
11740 runpath_var='LD_RUN_PATH'
11742 case $cc_basename in
11744 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11748 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753 sysv5* | sco3.2v5* | sco5v6*)
11754 # Note: We can NOT use -z defs as we might desire, because we do not
11755 # link with -lc, and that would cause any symbols used from libc to
11756 # always be unresolved, which means just about no library would
11757 # ever link correctly. If we're not using GNU ld we use -z text
11758 # though, which does catch some bad symbols but isn't as heavy-handed
11760 # For security reasons, it is highly recommended that you always
11761 # use absolute paths for naming shared libraries, and exclude the
11762 # DT_RUNPATH tag from executables and libraries. But doing so
11763 # requires that you compile everything twice, which is a pain.
11764 # So that behaviour is only enabled if SCOABSPATH is set to a
11765 # non-empty value in the environment. Most likely only useful for
11766 # creating official distributions of packages.
11767 # This is a hack until libtool officially supports absolute path
11768 # names for shared libraries.
11769 no_undefined_flag_CXX='${wl}-z,text'
11770 allow_undefined_flag_CXX='${wl}-z,nodefs'
11771 archive_cmds_need_lc_CXX=no
11772 hardcode_shlibpath_var_CXX=no
11773 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11774 hardcode_libdir_separator_CXX=':'
11775 link_all_deplibs_CXX=yes
11776 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11777 runpath_var='LD_RUN_PATH'
11779 case $cc_basename in
11781 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11791 case $cc_basename in
11793 # NonStop-UX NCC 3.20
11794 # FIXME: insert proper C++ library support
11798 # FIXME: insert proper C++ library support
11804 # FIXME: insert proper C++ library support
11808 # FIXME: insert proper C++ library support
11812 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11813 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11814 test "$ld_shlibs_CXX" = no && can_build_shared=no
11820 cat > conftest.$ac_ext <<EOF
11824 Foo (void) { a = 0; }
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831 (eval $ac_compile) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; then
11835 # Parse the compiler output and extract the necessary
11836 # objects, libraries and library flags.
11838 # Sentinel used to keep track of whether or not we are before
11839 # the conftest object file.
11840 pre_test_object_deps_done=no
11842 # The `*' in the case matches for architectures that use `case' in
11843 # $output_verbose_cmd can trigger glob expansion during the loop
11844 # eval without this substitution.
11845 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11847 for p in `eval $output_verbose_link_cmd`; do
11851 # Some compilers place space between "-{L,R}" and the path.
11852 # Remove the space.
11853 if test $p = "-L" \
11854 || test $p = "-R"; then
11861 if test "$pre_test_object_deps_done" = no; then
11864 # Internal compiler library paths should come after those
11865 # provided the user. The postdeps already come after the
11866 # user supplied libs so there is no need to process them.
11867 if test -z "$compiler_lib_search_path_CXX"; then
11868 compiler_lib_search_path_CXX="${prev}${p}"
11870 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11873 # The "-l" case would never come before the object being
11874 # linked, so don't bother handling this case.
11877 if test -z "$postdeps_CXX"; then
11878 postdeps_CXX="${prev}${p}"
11880 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11886 # This assumes that the test object file only shows up
11887 # once in the compiler output.
11888 if test "$p" = "conftest.$objext"; then
11889 pre_test_object_deps_done=yes
11893 if test "$pre_test_object_deps_done" = no; then
11894 if test -z "$predep_objects_CXX"; then
11895 predep_objects_CXX="$p"
11897 predep_objects_CXX="$predep_objects_CXX $p"
11900 if test -z "$postdep_objects_CXX"; then
11901 postdep_objects_CXX="$p"
11903 postdep_objects_CXX="$postdep_objects_CXX $p"
11908 *) ;; # Ignore the rest.
11916 echo "libtool.m4: error: problem compiling CXX test program"
11919 $rm -f confest.$objext
11921 # PORTME: override above test on systems where it is broken
11924 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11925 # hack all around it, let's just trust "g++" to DTRT.
11926 predep_objects_CXX=
11927 postdep_objects_CXX=
11932 case $cc_basename in
11934 # Adding this requires a known-good setup of shared libraries for
11935 # Sun compiler versions before 5.6, else PIC objects from an old
11936 # archive will be linked into the output, leading to subtle bugs.
11937 postdeps_CXX='-lCstd -lCrun'
11944 case " $postdeps_CXX " in
11945 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11948 lt_prog_compiler_wl_CXX=
11949 lt_prog_compiler_pic_CXX=
11950 lt_prog_compiler_static_CXX=
11952 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11953 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11955 # C++ specific cases for pic, static, wl, etc.
11956 if test "$GXX" = yes; then
11957 lt_prog_compiler_wl_CXX='-Wl,'
11958 lt_prog_compiler_static_CXX='-static'
11962 # All AIX code is PIC.
11963 if test "$host_cpu" = ia64; then
11964 # AIX 5 now supports IA64 processor
11965 lt_prog_compiler_static_CXX='-Bstatic'
11969 # FIXME: we need at least 68020 code to build shared libraries, but
11970 # adding the `-m68020' flag to GCC prevents building anything better,
11972 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11974 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11975 # PIC is the default for these OSes.
11977 mingw* | os2* | pw32*)
11978 # This hack is so that the source file can tell whether it is being
11979 # built for inclusion in a dll (and should export symbols for example).
11980 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11982 darwin* | rhapsody*)
11983 # PIC is the default on this platform
11984 # Common symbols not allowed in MH_DYLIB files
11985 lt_prog_compiler_pic_CXX='-fno-common'
11988 # DJGPP does not support shared libraries at all
11989 lt_prog_compiler_pic_CXX=
11992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11993 # Instead, we relocate shared libraries at runtime.
11996 if test -d /usr/nec; then
11997 lt_prog_compiler_pic_CXX=-Kconform_pic
12001 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12002 # not for PA HP-UX.
12007 lt_prog_compiler_pic_CXX='-fPIC'
12012 lt_prog_compiler_pic_CXX='-fPIC'
12018 # All AIX code is PIC.
12019 if test "$host_cpu" = ia64; then
12020 # AIX 5 now supports IA64 processor
12021 lt_prog_compiler_static_CXX='-Bstatic'
12023 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12027 case $cc_basename in
12029 # Green Hills C++ Compiler
12030 # _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"
12035 # PIC is the default on this platform
12036 # Common symbols not allowed in MH_DYLIB files
12037 case $cc_basename in
12039 lt_prog_compiler_pic_CXX='-qnocommon'
12040 lt_prog_compiler_wl_CXX='-Wl,'
12045 case $cc_basename in
12047 lt_prog_compiler_pic_CXX='-KPIC'
12050 # Green Hills C++ Compiler
12051 lt_prog_compiler_pic_CXX='-pic'
12057 freebsd* | kfreebsd*-gnu | dragonfly*)
12058 # FreeBSD uses GNU C++
12060 hpux9* | hpux10* | hpux11*)
12061 case $cc_basename in
12063 lt_prog_compiler_wl_CXX='-Wl,'
12064 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12065 if test "$host_cpu" != ia64; then
12066 lt_prog_compiler_pic_CXX='+Z'
12070 lt_prog_compiler_wl_CXX='-Wl,'
12071 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12077 lt_prog_compiler_pic_CXX='+Z'
12086 # This is c89, which is MS Visual C++ (no shared libs)
12087 # Anyone wants to do a port?
12089 irix5* | irix6* | nonstopux*)
12090 case $cc_basename in
12092 lt_prog_compiler_wl_CXX='-Wl,'
12093 lt_prog_compiler_static_CXX='-non_shared'
12094 # CC pic flag -KPIC is the default.
12101 case $cc_basename in
12104 lt_prog_compiler_wl_CXX='--backend -Wl,'
12105 lt_prog_compiler_pic_CXX='-fPIC'
12109 lt_prog_compiler_wl_CXX='-Wl,'
12110 lt_prog_compiler_pic_CXX='-KPIC'
12111 lt_prog_compiler_static_CXX='-static'
12114 # Portland Group C++ compiler.
12115 lt_prog_compiler_wl_CXX='-Wl,'
12116 lt_prog_compiler_pic_CXX='-fpic'
12117 lt_prog_compiler_static_CXX='-Bstatic'
12121 # Make sure the PIC flag is empty. It appears that all Alpha
12122 # Linux and Compaq Tru64 Unix objects are PIC.
12123 lt_prog_compiler_pic_CXX=
12124 lt_prog_compiler_static_CXX='-non_shared'
12135 case $cc_basename in
12137 lt_prog_compiler_pic_CXX='-W c,exportall'
12145 osf3* | osf4* | osf5*)
12146 case $cc_basename in
12148 lt_prog_compiler_wl_CXX='--backend -Wl,'
12151 # Rational C++ 2.4.1
12152 lt_prog_compiler_pic_CXX='-pic'
12155 # Digital/Compaq C++
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 # Make sure the PIC flag is empty. It appears that all Alpha
12158 # Linux and Compaq Tru64 Unix objects are PIC.
12159 lt_prog_compiler_pic_CXX=
12160 lt_prog_compiler_static_CXX='-non_shared'
12169 case $cc_basename in
12171 # Sun C++ 4.2, 5.x and Centerline C++
12172 lt_prog_compiler_pic_CXX='-KPIC'
12173 lt_prog_compiler_static_CXX='-Bstatic'
12174 lt_prog_compiler_wl_CXX='-Qoption ld '
12177 # Green Hills C++ Compiler
12178 lt_prog_compiler_pic_CXX='-PIC'
12185 case $cc_basename in
12188 lt_prog_compiler_pic_CXX='-pic'
12189 lt_prog_compiler_static_CXX='-Bstatic'
12193 lt_prog_compiler_pic_CXX='-pic'
12200 case $cc_basename in
12202 # NonStop-UX NCC 3.20
12203 lt_prog_compiler_pic_CXX='-KPIC'
12209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12210 case $cc_basename in
12212 lt_prog_compiler_wl_CXX='-Wl,'
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12221 lt_prog_compiler_can_build_shared_CXX=no
12226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12227 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12230 # Check to make sure the PIC flag actually works.
12232 if test -n "$lt_prog_compiler_pic_CXX"; then
12234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12236 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 lt_prog_compiler_pic_works_CXX=no
12240 ac_outfile=conftest.$ac_objext
12241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12242 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12243 # Insert the option either (1) after the last *FLAGS variable, or
12244 # (2) before a word containing "conftest.", or (3) at the end.
12245 # Note that $ac_compile itself does not contain backslashes and begins
12246 # with a dollar sign (not a hyphen), so the echo should work correctly.
12247 # The option is referenced via a variable to avoid confusing sed.
12248 lt_compile=`echo "$ac_compile" | $SED \
12249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12251 -e 's:$: $lt_compiler_flag:'`
12252 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12253 (eval "$lt_compile" 2>conftest.err)
12255 cat conftest.err >&5
12256 echo "$as_me:__oline__: \$? = $ac_status" >&5
12257 if (exit $ac_status) && test -s "$ac_outfile"; then
12258 # The compiler can only warn and ignore the option if not recognized
12259 # So say no if there are warnings other than the usual output.
12260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12263 lt_prog_compiler_pic_works_CXX=yes
12269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12270 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12272 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12273 case $lt_prog_compiler_pic_CXX in
12275 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12278 lt_prog_compiler_pic_CXX=
12279 lt_prog_compiler_can_build_shared_CXX=no
12284 # For platforms which do not support PIC, -DPIC is meaningless:
12286 lt_prog_compiler_pic_CXX=
12289 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12294 # Check to make sure the static flag actually works.
12296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12299 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 lt_prog_compiler_static_works_CXX=no
12303 save_LDFLAGS="$LDFLAGS"
12304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12305 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12307 # The linker can only warn and ignore the option if not recognized
12308 # So say no if there are warnings
12309 if test -s conftest.err; then
12310 # Append any errors to the config.log.
12311 cat conftest.err 1>&5
12312 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314 if diff conftest.exp conftest.er2 >/dev/null; then
12315 lt_prog_compiler_static_works_CXX=yes
12318 lt_prog_compiler_static_works_CXX=yes
12322 LDFLAGS="$save_LDFLAGS"
12325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12326 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12328 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12331 lt_prog_compiler_static_CXX=
12335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12337 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 lt_cv_prog_compiler_c_o_CXX=no
12341 $rm -r conftest 2>/dev/null
12345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12347 lt_compiler_flag="-o out/conftest2.$ac_objext"
12348 # Insert the option either (1) after the last *FLAGS variable, or
12349 # (2) before a word containing "conftest.", or (3) at the end.
12350 # Note that $ac_compile itself does not contain backslashes and begins
12351 # with a dollar sign (not a hyphen), so the echo should work correctly.
12352 lt_compile=`echo "$ac_compile" | $SED \
12353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12355 -e 's:$: $lt_compiler_flag:'`
12356 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12357 (eval "$lt_compile" 2>out/conftest.err)
12359 cat out/conftest.err >&5
12360 echo "$as_me:__oline__: \$? = $ac_status" >&5
12361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12363 # The compiler can only warn and ignore the option if not recognized
12364 # So say no if there are warnings
12365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12368 lt_cv_prog_compiler_c_o_CXX=yes
12373 # SGI C++ compiler will create directory out/ii_files/ for
12374 # template instantiation
12375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12376 $rm out/* && rmdir out
12382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12386 hard_links="nottested"
12387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12388 # do not overwrite the value of need_locks provided by the user
12389 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12395 ln conftest.a conftest.b 2>&5 || hard_links=no
12396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12397 { echo "$as_me:$LINENO: result: $hard_links" >&5
12398 echo "${ECHO_T}$hard_links" >&6; }
12399 if test "$hard_links" = no; then
12400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12411 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12414 # If we're using GNU nm, then we don't want the "-C" option.
12415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12417 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'
12419 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'
12423 export_symbols_cmds_CXX="$ltdll_cmds"
12426 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12433 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12434 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12435 test "$ld_shlibs_CXX" = no && can_build_shared=no
12438 # Do we need to explicitly link libc?
12440 case "x$archive_cmds_need_lc_CXX" in
12442 # Assume -lc should be added
12443 archive_cmds_need_lc_CXX=yes
12445 if test "$enable_shared" = yes && test "$GCC" = yes; then
12446 case $archive_cmds_CXX in
12448 # FIXME: we may have to deal with multi-command sequences.
12451 # Test whether the compiler implicitly links with -lc since on some
12452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12453 # to ld, don't add -lc before -lgcc.
12454 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12455 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } 2>conftest.err; then
12466 libobjs=conftest.$ac_objext
12468 wl=$lt_prog_compiler_wl_CXX
12469 pic_flag=$lt_prog_compiler_pic_CXX
12475 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12476 allow_undefined_flag_CXX=
12477 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12478 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }
12483 archive_cmds_need_lc_CXX=no
12485 archive_cmds_need_lc_CXX=yes
12487 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12489 cat conftest.err 1>&5
12492 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12493 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12500 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12502 library_names_spec=
12503 libname_spec='lib$name'
12507 postuninstall_cmds=
12511 shlibpath_overrides_runpath=unknown
12513 dynamic_linker="$host_os ld.so"
12514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12515 if test "$GCC" = yes; then
12516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12518 # if the path contains ";" then we assume it to be the separator
12519 # otherwise default to the standard path separator (i.e. ":") - it is
12520 # assumed that no part of a normal pathname contains ";" but that should
12521 # okay in the real world where ";" in dirpaths is itself problematic.
12522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12529 need_lib_prefix=unknown
12530 hardcode_into_libs=no
12532 # when you set need_version to no, make sure it does not cause -set_version
12533 # flags to be left without arguments
12534 need_version=unknown
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12540 shlibpath_var=LIBPATH
12542 # AIX 3 has no versioning support, so we append a major version to the name.
12543 soname_spec='${libname}${release}${shared_ext}$major'
12550 hardcode_into_libs=yes
12551 if test "$host_cpu" = ia64; then
12552 # AIX 5 supports IA64
12553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12554 shlibpath_var=LD_LIBRARY_PATH
12556 # With GCC up to 2.95.x, collect2 would create an import file
12557 # for dependence libraries. The import file would start with
12558 # the line `#! .'. This would cause the generated library to
12559 # depend on `.', always an invalid library. This was fixed in
12560 # development snapshots of GCC prior to 3.0.
12562 aix4 | aix4.[01] | aix4.[01].*)
12563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12568 can_build_shared=no
12572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12573 # soname into executable. Probably we can add versioning support to
12574 # collect2, so additional links can be useful in future.
12575 if test "$aix_use_runtimelinking" = yes; then
12576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12577 # instead of lib<name>.a to let people know that these are not
12578 # typical AIX shared libraries.
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581 # We preserve .a as extension for shared libraries through AIX4.2
12582 # and later when we are not doing run time linking.
12583 library_names_spec='${libname}${release}.a $libname.a'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12586 shlibpath_var=LIBPATH
12591 library_names_spec='$libname.ixlibrary $libname.a'
12592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12593 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'
12597 library_names_spec='${libname}${shared_ext}'
12598 dynamic_linker="$host_os ld.so"
12599 shlibpath_var=LIBRARY_PATH
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12611 # the default ld.so.conf also contains /usr/contrib/lib and
12612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12613 # libtool to hard-code these into programs
12616 cygwin* | mingw* | pw32*)
12617 version_type=windows
12622 case $GCC,$host_os in
12623 yes,cygwin* | yes,mingw* | yes,pw32*)
12624 library_names_spec='$libname.dll.a'
12625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12626 postinstall_cmds='base_file=`basename \${file}`~
12627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12628 dldir=$destdir/`dirname \$dlpath`~
12629 test -d \$dldir || mkdir -p \$dldir~
12630 $install_prog $dir/$dlname \$dldir/$dlname~
12631 chmod a+x \$dldir/$dlname'
12632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12633 dlpath=$dir/\$dldll~
12635 shlibpath_overrides_runpath=yes
12639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12644 # MinGW DLLs use traditional 'lib' prefix
12645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12648 # It is most probably a Windows format PATH printed by
12649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12650 # path with ; separators, and with drive letters. We can handle the
12651 # drive letters (cygwin fileutils understands them), so leave them,
12652 # especially as we might pass files found there to a mingw objdump,
12653 # which wouldn't understand a cygwinified path. Ahh.
12654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12660 # pw32 DLLs use 'pw' prefix rather than 'lib'
12661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12667 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 supports_anon_versioning=no
12670 case `$LD -v 2>/dev/null` in
12671 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12674 *\ 2.11.*) ;; # other 2.11 versions
12675 *) supports_anon_versioning=yes ;;
12677 if test $supports_anon_versioning = yes; then
12678 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12680 $echo "local: *; };" >> $output_objdir/$libname.ver~
12681 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12683 $archive_expsym_cmds="$archive_cmds"
12691 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12694 dynamic_linker='Win32 ld.exe'
12695 # FIXME: first we should search . and the directory the executable is in
12699 darwin* | rhapsody*)
12700 dynamic_linker="$host_os dyld"
12701 version_type=darwin
12704 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12705 soname_spec='${libname}${release}${major}$shared_ext'
12706 shlibpath_overrides_runpath=yes
12707 shlibpath_var=DYLD_LIBRARY_PATH
12708 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12709 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12710 if test "$GCC" = yes; then
12711 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"`
12713 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12736 soname_spec='${libname}${release}${shared_ext}$major'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 shlibpath_overrides_runpath=no
12739 hardcode_into_libs=yes
12740 dynamic_linker='GNU ld.so'
12743 freebsd* | dragonfly*)
12744 # DragonFly does not have aout. When/if they implement a new
12745 # versioning mechanism, adjust this.
12746 if test -x /usr/bin/objformat; then
12747 objformat=`/usr/bin/objformat`
12750 freebsd[123]*) objformat=aout ;;
12751 *) objformat=elf ;;
12754 # Handle Gentoo/FreeBSD as it was Linux
12755 case $host_vendor in
12757 version_type=linux ;;
12759 version_type=freebsd-$objformat ;;
12762 case $version_type in
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12774 soname_spec='${libname}${release}${shared_ext}$major'
12779 shlibpath_var=LD_LIBRARY_PATH
12782 shlibpath_overrides_runpath=yes
12784 freebsd3.[01]* | freebsdelf3.[01]*)
12785 shlibpath_overrides_runpath=yes
12786 hardcode_into_libs=yes
12788 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12789 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12790 shlibpath_overrides_runpath=no
12791 hardcode_into_libs=yes
12793 freebsd*) # from 4.6 on
12794 shlibpath_overrides_runpath=yes
12795 hardcode_into_libs=yes
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12805 soname_spec='${libname}${release}${shared_ext}$major'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 hardcode_into_libs=yes
12810 hpux9* | hpux10* | hpux11*)
12811 # Give a soname corresponding to the major version so that dld.sl refuses to
12812 # link against other versions.
12819 hardcode_into_libs=yes
12820 dynamic_linker="$host_os dld.so"
12821 shlibpath_var=LD_LIBRARY_PATH
12822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 if test "X$HPUX_IA64_MODE" = X32; then
12826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12834 hardcode_into_libs=yes
12835 dynamic_linker="$host_os dld.sl"
12836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839 soname_spec='${libname}${release}${shared_ext}$major'
12840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12845 dynamic_linker="$host_os dld.sl"
12846 shlibpath_var=SHLIB_PATH
12847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12849 soname_spec='${libname}${release}${shared_ext}$major'
12852 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12853 postinstall_cmds='chmod 555 $lib'
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12861 soname_spec='${libname}${release}${shared_ext}$major'
12862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=no
12865 hardcode_into_libs=yes
12868 irix5* | irix6* | nonstopux*)
12870 nonstopux*) version_type=nonstopux ;;
12872 if test "$lt_cv_prog_gnu_ld" = yes; then
12880 soname_spec='${libname}${release}${shared_ext}$major'
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12883 irix5* | nonstopux*)
12884 libsuff= shlibsuff=
12887 case $LD in # libtool.m4 will add one of these switches to LD
12888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12889 libsuff= shlibsuff= libmagic=32-bit;;
12890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12891 libsuff=32 shlibsuff=N32 libmagic=N32;;
12892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12894 *) libsuff= shlibsuff= libmagic=never-match;;
12898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12899 shlibpath_overrides_runpath=no
12900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12902 hardcode_into_libs=yes
12905 # No shared lib support for Linux oldld, aout, or coff.
12906 linux*oldld* | linux*aout* | linux*coff*)
12910 # This must be Linux ELF.
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916 soname_spec='${libname}${release}${shared_ext}$major'
12917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12918 shlibpath_var=LD_LIBRARY_PATH
12919 shlibpath_overrides_runpath=no
12920 # This implies no fast_install, which is unacceptable.
12921 # Some rework will be needed to allow for fast_install
12922 # before this can be enabled.
12923 hardcode_into_libs=yes
12925 # Append ld.so.conf contents to the search path
12926 if test -f /etc/ld.so.conf; then
12927 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12931 # We used to test for /lib/ld.so.1 and disable shared libraries on
12932 # powerpc, because MkLinux only supported shared libraries with the
12933 # GNU dynamic linker. Since this was broken with cross compilers,
12934 # most powerpc-linux boxes support dynamic linking these days and
12935 # people can always --disable-shared, the test was removed, and we
12936 # assume the GNU/Linux dynamic linker is in use.
12937 dynamic_linker='GNU/Linux ld.so'
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12949 dynamic_linker='GNU ld.so'
12956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12959 dynamic_linker='NetBSD (a.out) ld.so'
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12962 soname_spec='${libname}${release}${shared_ext}$major'
12963 dynamic_linker='NetBSD ld.elf_so'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 shlibpath_overrides_runpath=yes
12967 hardcode_into_libs=yes
12972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=yes
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 shlibpath_var=LD_LIBRARY_PATH
12984 shlibpath_overrides_runpath=yes
12989 sys_lib_dlsearch_path_spec="/usr/lib"
12991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12994 *) need_version=no ;;
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13001 openbsd2.[89] | openbsd2.[89].*)
13002 shlibpath_overrides_runpath=no
13005 shlibpath_overrides_runpath=yes
13009 shlibpath_overrides_runpath=yes
13014 libname_spec='$name'
13017 library_names_spec='$libname${shared_ext} $libname.a'
13018 dynamic_linker='OS/2 ld.exe'
13019 shlibpath_var=LIBPATH
13022 osf3* | osf4* | osf5*)
13026 soname_spec='${libname}${release}${shared_ext}$major'
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 shlibpath_var=LD_LIBRARY_PATH
13029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 shlibpath_var=LD_LIBRARY_PATH
13040 shlibpath_overrides_runpath=yes
13041 hardcode_into_libs=yes
13042 # ldd complains unless libraries are executable
13043 postinstall_cmds='chmod +x $lib'
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13052 if test "$with_gnu_ld" = yes; then
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 shlibpath_var=LD_LIBRARY_PATH
13063 case $host_vendor in
13065 shlibpath_overrides_runpath=no
13067 export_dynamic_flag_spec='${wl}-Blargedynsym'
13068 runpath_var=LD_RUN_PATH
13076 shlibpath_overrides_runpath=no
13077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13083 if test -d /usr/nec ;then
13085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13086 soname_spec='$libname${shared_ext}.$major'
13087 shlibpath_var=LD_LIBRARY_PATH
13091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13092 version_type=freebsd-elf
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13096 soname_spec='${libname}${release}${shared_ext}$major'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 hardcode_into_libs=yes
13099 if test "$with_gnu_ld" = yes; then
13100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13101 shlibpath_overrides_runpath=no
13103 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13104 shlibpath_overrides_runpath=yes
13107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13111 sys_lib_dlsearch_path_spec='/usr/lib'
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13125 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13126 echo "${ECHO_T}$dynamic_linker" >&6; }
13127 test "$dynamic_linker" = no && can_build_shared=no
13129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13130 if test "$GCC" = yes; then
13131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13134 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13135 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13136 hardcode_action_CXX=
13137 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13138 test -n "$runpath_var_CXX" || \
13139 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13141 # We can hardcode non-existant directories.
13142 if test "$hardcode_direct_CXX" != no &&
13143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13144 # have to relink, otherwise we might link with an installed library
13145 # when we should be linking with a yet-to-be-installed one
13146 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13147 test "$hardcode_minus_L_CXX" != no; then
13148 # Linking always hardcodes the temporary library directory.
13149 hardcode_action_CXX=relink
13151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13152 hardcode_action_CXX=immediate
13155 # We cannot hardcode anything, or else we can only hardcode existing
13157 hardcode_action_CXX=unsupported
13159 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13160 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13162 if test "$hardcode_action_CXX" = relink; then
13163 # Fast installation is not supported
13164 enable_fast_install=no
13165 elif test "$shlibpath_overrides_runpath" = yes ||
13166 test "$enable_shared" = no; then
13167 # Fast installation is not necessary
13168 enable_fast_install=needless
13172 # The else clause should only fire when bootstrapping the
13173 # libtool distribution, otherwise you forgot to ship ltmain.sh
13174 # with your package, and you will get complaints that there are
13175 # no rules to generate ltmain.sh.
13176 if test -f "$ltmain"; then
13177 # See if we are running on zsh, and set the options which allow our commands through
13178 # without removal of \ escapes.
13179 if test -n "${ZSH_VERSION+set}" ; then
13180 setopt NO_GLOB_SUBST
13182 # Now quote all the things that may contain metacharacters while being
13183 # careful not to overquote the AC_SUBSTed values. We take copies of the
13184 # variables and quote the copies for generation of the libtool script.
13185 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13187 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13188 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13189 deplibs_check_method reload_flag reload_cmds need_locks \
13190 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13191 lt_cv_sys_global_symbol_to_c_name_address \
13192 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13193 old_postinstall_cmds old_postuninstall_cmds \
13197 lt_prog_compiler_wl_CXX \
13198 lt_prog_compiler_pic_CXX \
13199 lt_prog_compiler_static_CXX \
13200 lt_prog_compiler_no_builtin_flag_CXX \
13201 export_dynamic_flag_spec_CXX \
13202 thread_safe_flag_spec_CXX \
13203 whole_archive_flag_spec_CXX \
13204 enable_shared_with_static_runtimes_CXX \
13205 old_archive_cmds_CXX \
13206 old_archive_from_new_cmds_CXX \
13207 predep_objects_CXX \
13208 postdep_objects_CXX \
13211 compiler_lib_search_path_CXX \
13213 archive_expsym_cmds_CXX \
13214 postinstall_cmds_CXX \
13215 postuninstall_cmds_CXX \
13216 old_archive_from_expsyms_cmds_CXX \
13217 allow_undefined_flag_CXX \
13218 no_undefined_flag_CXX \
13219 export_symbols_cmds_CXX \
13220 hardcode_libdir_flag_spec_CXX \
13221 hardcode_libdir_flag_spec_ld_CXX \
13222 hardcode_libdir_separator_CXX \
13223 hardcode_automatic_CXX \
13225 module_expsym_cmds_CXX \
13226 lt_cv_prog_compiler_c_o_CXX \
13227 exclude_expsyms_CXX \
13228 include_expsyms_CXX; do
13231 old_archive_cmds_CXX | \
13232 old_archive_from_new_cmds_CXX | \
13233 archive_cmds_CXX | \
13234 archive_expsym_cmds_CXX | \
13235 module_cmds_CXX | \
13236 module_expsym_cmds_CXX | \
13237 old_archive_from_expsyms_cmds_CXX | \
13238 export_symbols_cmds_CXX | \
13239 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13240 postinstall_cmds | postuninstall_cmds | \
13241 old_postinstall_cmds | old_postuninstall_cmds | \
13242 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13243 # Double-quote double-evaled strings.
13244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13253 *'\$0 --fallback-echo"')
13254 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13260 cat <<__EOF__ >> "$cfgfile"
13261 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13265 # Shell to use when invoking shell scripts.
13268 # Whether or not to build shared libraries.
13269 build_libtool_libs=$enable_shared
13271 # Whether or not to build static libraries.
13272 build_old_libs=$enable_static
13274 # Whether or not to add -lc for building shared libraries.
13275 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13277 # Whether or not to disallow shared libs when runtime libs are static
13278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13280 # Whether or not to optimize for fast installation.
13281 fast_install=$enable_fast_install
13284 host_alias=$host_alias
13288 # The build system.
13289 build_alias=$build_alias
13293 # An echo program that does not interpret backslashes.
13298 AR_FLAGS=$lt_AR_FLAGS
13303 # LTCC compiler flags.
13304 LTCFLAGS=$lt_LTCFLAGS
13306 # A language-specific compiler.
13307 CC=$lt_compiler_CXX
13309 # Is the compiler the GNU C compiler?
13315 # The linker used to build libraries.
13318 # Whether we need hard or soft links.
13321 # A BSD-compatible nm program.
13324 # A symbol stripping program
13327 # Used to examine libraries when file_magic_cmd begins "file"
13328 MAGIC_CMD=$MAGIC_CMD
13330 # Used on cygwin: DLL creation program.
13333 # Used on cygwin: object dumper.
13336 # Used on cygwin: assembler.
13339 # The name of the directory that contains temporary libtool files.
13342 # How to create reloadable object files.
13343 reload_flag=$lt_reload_flag
13344 reload_cmds=$lt_reload_cmds
13346 # How to pass a linker flag through the compiler.
13347 wl=$lt_lt_prog_compiler_wl_CXX
13349 # Object file suffix (normally "o").
13350 objext="$ac_objext"
13352 # Old archive suffix (normally "a").
13355 # Shared library suffix (normally ".so").
13356 shrext_cmds='$shrext_cmds'
13358 # Executable file suffix (normally "").
13361 # Additional compiler flags for building library objects.
13362 pic_flag=$lt_lt_prog_compiler_pic_CXX
13365 # What is the maximum length of a command?
13366 max_cmd_len=$lt_cv_sys_max_cmd_len
13368 # Does compiler simultaneously support -c and -o options?
13369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13371 # Must we lock files when doing compilation?
13372 need_locks=$lt_need_locks
13374 # Do we need the lib prefix for modules?
13375 need_lib_prefix=$need_lib_prefix
13377 # Do we need a version for libraries?
13378 need_version=$need_version
13380 # Whether dlopen is supported.
13381 dlopen_support=$enable_dlopen
13383 # Whether dlopen of programs is supported.
13384 dlopen_self=$enable_dlopen_self
13386 # Whether dlopen of statically linked programs is supported.
13387 dlopen_self_static=$enable_dlopen_self_static
13389 # Compiler flag to prevent dynamic linking.
13390 link_static_flag=$lt_lt_prog_compiler_static_CXX
13392 # Compiler flag to turn off builtin functions.
13393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13395 # Compiler flag to allow reflexive dlopens.
13396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13398 # Compiler flag to generate shared objects directly from archives.
13399 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13401 # Compiler flag to generate thread-safe objects.
13402 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13404 # Library versioning type.
13405 version_type=$version_type
13407 # Format of library name prefix.
13408 libname_spec=$lt_libname_spec
13410 # List of archive names. First name is the real one, the rest are links.
13411 # The last name is the one that the linker finds with -lNAME.
13412 library_names_spec=$lt_library_names_spec
13414 # The coded name of the library, if different from the real name.
13415 soname_spec=$lt_soname_spec
13417 # Commands used to build and install an old-style archive.
13419 old_archive_cmds=$lt_old_archive_cmds_CXX
13420 old_postinstall_cmds=$lt_old_postinstall_cmds
13421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13423 # Create an old-style archive from a shared archive.
13424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13426 # Create a temporary old-style archive to link instead of a shared archive.
13427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13429 # Commands used to build and install a shared archive.
13430 archive_cmds=$lt_archive_cmds_CXX
13431 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13432 postinstall_cmds=$lt_postinstall_cmds
13433 postuninstall_cmds=$lt_postuninstall_cmds
13435 # Commands used to build a loadable module (assumed same as above if empty)
13436 module_cmds=$lt_module_cmds_CXX
13437 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13439 # Commands to strip libraries.
13440 old_striplib=$lt_old_striplib
13441 striplib=$lt_striplib
13443 # Dependencies to place before the objects being linked to create a
13445 predep_objects=$lt_predep_objects_CXX
13447 # Dependencies to place after the objects being linked to create a
13449 postdep_objects=$lt_postdep_objects_CXX
13451 # Dependencies to place before the objects being linked to create a
13453 predeps=$lt_predeps_CXX
13455 # Dependencies to place after the objects being linked to create a
13457 postdeps=$lt_postdeps_CXX
13459 # The library search path used internally by the compiler when linking
13460 # a shared library.
13461 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13463 # Method to check whether dependent libraries are shared objects.
13464 deplibs_check_method=$lt_deplibs_check_method
13466 # Command to use when deplibs_check_method == file_magic.
13467 file_magic_cmd=$lt_file_magic_cmd
13469 # Flag that allows shared libraries with undefined symbols to be built.
13470 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13472 # Flag that forces no undefined symbols.
13473 no_undefined_flag=$lt_no_undefined_flag_CXX
13475 # Commands used to finish a libtool library installation in a directory.
13476 finish_cmds=$lt_finish_cmds
13478 # Same as above, but a single script fragment to be evaled but not shown.
13479 finish_eval=$lt_finish_eval
13481 # Take the output of nm and produce a listing of raw symbols and C names.
13482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13484 # Transform the output of nm in a proper C declaration
13485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13487 # Transform the output of nm in a C name address pair
13488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13490 # This is the shared library runtime path variable.
13491 runpath_var=$runpath_var
13493 # This is the shared library path variable.
13494 shlibpath_var=$shlibpath_var
13496 # Is shlibpath searched before the hard-coded library search path?
13497 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13499 # How to hardcode a shared library path into an executable.
13500 hardcode_action=$hardcode_action_CXX
13502 # Whether we should hardcode library paths into libraries.
13503 hardcode_into_libs=$hardcode_into_libs
13505 # Flag to hardcode \$libdir into a binary during linking.
13506 # This must work even if \$libdir does not exist.
13507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13509 # If ld is used when linking, flag to hardcode \$libdir into
13510 # a binary during linking. This must work even if \$libdir does
13512 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13514 # Whether we need a single -rpath flag with a separated argument.
13515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13517 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13518 # resulting binary.
13519 hardcode_direct=$hardcode_direct_CXX
13521 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13522 # resulting binary.
13523 hardcode_minus_L=$hardcode_minus_L_CXX
13525 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13526 # the resulting binary.
13527 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13529 # Set to yes if building a shared library automatically hardcodes DIR into the library
13530 # and all subsequent libraries and executables linked against it.
13531 hardcode_automatic=$hardcode_automatic_CXX
13533 # Variables whose values should be saved in libtool wrapper scripts and
13534 # restored at relink time.
13535 variables_saved_for_relink="$variables_saved_for_relink"
13537 # Whether libtool must link a program against all its dependency libraries.
13538 link_all_deplibs=$link_all_deplibs_CXX
13540 # Compile-time system search path for libraries
13541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13543 # Run-time system search path for libraries
13544 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13546 # Fix the shell variable \$srcfile for the compiler.
13547 fix_srcfile_path="$fix_srcfile_path_CXX"
13549 # Set to yes if exported symbols are required.
13550 always_export_symbols=$always_export_symbols_CXX
13552 # The commands to list exported symbols.
13553 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13555 # The commands to extract the exported symbol list from a shared archive.
13556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13558 # Symbols that should not be listed in the preloaded symbols.
13559 exclude_expsyms=$lt_exclude_expsyms_CXX
13561 # Symbols that must always be exported.
13562 include_expsyms=$lt_include_expsyms_CXX
13564 # ### END LIBTOOL TAG CONFIG: $tagname
13570 # If there is no Makefile yet, we rely on a make rule to execute
13571 # `config.status --recheck' to rerun these tests and create the
13572 # libtool script then.
13573 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13574 if test -f "$ltmain_in"; then
13575 test -f Makefile && make "$ltmain"
13581 ac_cpp='$CPP $CPPFLAGS'
13582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13590 with_gnu_ldcxx=$with_gnu_ld
13591 with_gnu_ld=$lt_save_with_gnu_ld
13592 lt_cv_path_LDCXX=$lt_cv_path_LD
13593 lt_cv_path_LD=$lt_save_path_LD
13594 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13595 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13603 if test -n "$F77" && test "X$F77" != "Xno"; then
13606 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13607 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13611 archive_cmds_need_lc_F77=no
13612 allow_undefined_flag_F77=
13613 always_export_symbols_F77=no
13614 archive_expsym_cmds_F77=
13615 export_dynamic_flag_spec_F77=
13616 hardcode_direct_F77=no
13617 hardcode_libdir_flag_spec_F77=
13618 hardcode_libdir_flag_spec_ld_F77=
13619 hardcode_libdir_separator_F77=
13620 hardcode_minus_L_F77=no
13621 hardcode_automatic_F77=no
13623 module_expsym_cmds_F77=
13624 link_all_deplibs_F77=unknown
13625 old_archive_cmds_F77=$old_archive_cmds
13626 no_undefined_flag_F77=
13627 whole_archive_flag_spec_F77=
13628 enable_shared_with_static_runtimes_F77=no
13630 # Source file extension for f77 test sources.
13633 # Object file extension for compiled f77 test sources.
13637 # Code to be used in simple compile tests
13638 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13640 # Code to be used in simple link tests
13641 lt_simple_link_test_code=" program t\n end\n"
13643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13645 # If no C compiler was specified, use CC.
13648 # If no C compiler flags were specified, use CFLAGS.
13649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13651 # Allow CC to be a program name with arguments.
13655 # save warnings/boilerplate of simple test code
13656 ac_outfile=conftest.$ac_objext
13657 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13659 _lt_compiler_boilerplate=`cat conftest.err`
13662 ac_outfile=conftest.$ac_objext
13663 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13665 _lt_linker_boilerplate=`cat conftest.err`
13669 # Allow CC to be a program name with arguments.
13674 for cc_temp in $compiler""; do
13676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13682 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13685 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13686 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13687 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13688 echo "${ECHO_T}$can_build_shared" >&6; }
13690 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13691 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13692 test "$can_build_shared" = "no" && enable_shared=no
13694 # On AIX, shared libraries and static libraries use the same namespace, and
13695 # are all built from PIC.
13698 test "$enable_shared" = yes && enable_static=no
13699 if test -n "$RANLIB"; then
13700 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13701 postinstall_cmds='$RANLIB $lib'
13705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13706 test "$enable_shared" = yes && enable_static=no
13710 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13711 echo "${ECHO_T}$enable_shared" >&6; }
13713 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13714 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13715 # Make sure either enable_shared or enable_static is yes.
13716 test "$enable_shared" = yes || enable_static=yes
13717 { echo "$as_me:$LINENO: result: $enable_static" >&5
13718 echo "${ECHO_T}$enable_static" >&6; }
13723 lt_prog_compiler_wl_F77=
13724 lt_prog_compiler_pic_F77=
13725 lt_prog_compiler_static_F77=
13727 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13730 if test "$GCC" = yes; then
13731 lt_prog_compiler_wl_F77='-Wl,'
13732 lt_prog_compiler_static_F77='-static'
13736 # All AIX code is PIC.
13737 if test "$host_cpu" = ia64; then
13738 # AIX 5 now supports IA64 processor
13739 lt_prog_compiler_static_F77='-Bstatic'
13744 # FIXME: we need at least 68020 code to build shared libraries, but
13745 # adding the `-m68020' flag to GCC prevents building anything better,
13747 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13750 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13751 # PIC is the default for these OSes.
13754 mingw* | pw32* | os2*)
13755 # This hack is so that the source file can tell whether it is being
13756 # built for inclusion in a dll (and should export symbols for example).
13757 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13760 darwin* | rhapsody*)
13761 # PIC is the default on this platform
13762 # Common symbols not allowed in MH_DYLIB files
13763 lt_prog_compiler_pic_F77='-fno-common'
13767 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13768 # Instead, we relocate shared libraries at runtime.
13772 # Just because we use GCC doesn't mean we suddenly get shared libraries
13773 # on systems that don't support them.
13774 lt_prog_compiler_can_build_shared_F77=no
13779 if test -d /usr/nec; then
13780 lt_prog_compiler_pic_F77=-Kconform_pic
13785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13786 # not for PA HP-UX.
13792 lt_prog_compiler_pic_F77='-fPIC'
13798 lt_prog_compiler_pic_F77='-fPIC'
13802 # PORTME Check for flag to pass linker flags through the system compiler.
13805 lt_prog_compiler_wl_F77='-Wl,'
13806 if test "$host_cpu" = ia64; then
13807 # AIX 5 now supports IA64 processor
13808 lt_prog_compiler_static_F77='-Bstatic'
13810 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13814 # PIC is the default on this platform
13815 # Common symbols not allowed in MH_DYLIB files
13816 case $cc_basename in
13818 lt_prog_compiler_pic_F77='-qnocommon'
13819 lt_prog_compiler_wl_F77='-Wl,'
13824 mingw* | pw32* | os2*)
13825 # This hack is so that the source file can tell whether it is being
13826 # built for inclusion in a dll (and should export symbols for example).
13827 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13830 hpux9* | hpux10* | hpux11*)
13831 lt_prog_compiler_wl_F77='-Wl,'
13832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13833 # not for PA HP-UX.
13839 lt_prog_compiler_pic_F77='+Z'
13842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13843 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13846 irix5* | irix6* | nonstopux*)
13847 lt_prog_compiler_wl_F77='-Wl,'
13848 # PIC (with -KPIC) is the default.
13849 lt_prog_compiler_static_F77='-non_shared'
13853 lt_prog_compiler_pic_F77='-KPIC'
13854 lt_prog_compiler_static_F77='-Bstatic'
13858 case $cc_basename in
13860 lt_prog_compiler_wl_F77='-Wl,'
13861 lt_prog_compiler_pic_F77='-KPIC'
13862 lt_prog_compiler_static_F77='-static'
13864 pgcc* | pgf77* | pgf90* | pgf95*)
13865 # Portland Group compilers (*not* the Pentium gcc compiler,
13866 # which looks to be a dead project)
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 lt_prog_compiler_pic_F77='-fpic'
13869 lt_prog_compiler_static_F77='-Bstatic'
13872 lt_prog_compiler_wl_F77='-Wl,'
13873 # All Alpha code is PIC.
13874 lt_prog_compiler_static_F77='-non_shared'
13879 osf3* | osf4* | osf5*)
13880 lt_prog_compiler_wl_F77='-Wl,'
13881 # All OSF/1 code is PIC.
13882 lt_prog_compiler_static_F77='-non_shared'
13886 lt_prog_compiler_pic_F77='-KPIC'
13887 lt_prog_compiler_static_F77='-Bstatic'
13888 case $cc_basename in
13889 f77* | f90* | f95*)
13890 lt_prog_compiler_wl_F77='-Qoption ld ';;
13892 lt_prog_compiler_wl_F77='-Wl,';;
13897 lt_prog_compiler_wl_F77='-Qoption ld '
13898 lt_prog_compiler_pic_F77='-PIC'
13899 lt_prog_compiler_static_F77='-Bstatic'
13902 sysv4 | sysv4.2uw2* | sysv4.3*)
13903 lt_prog_compiler_wl_F77='-Wl,'
13904 lt_prog_compiler_pic_F77='-KPIC'
13905 lt_prog_compiler_static_F77='-Bstatic'
13909 if test -d /usr/nec ;then
13910 lt_prog_compiler_pic_F77='-Kconform_pic'
13911 lt_prog_compiler_static_F77='-Bstatic'
13915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 lt_prog_compiler_pic_F77='-KPIC'
13918 lt_prog_compiler_static_F77='-Bstatic'
13922 lt_prog_compiler_wl_F77='-Wl,'
13923 lt_prog_compiler_can_build_shared_F77=no
13927 lt_prog_compiler_pic_F77='-pic'
13928 lt_prog_compiler_static_F77='-Bstatic'
13932 lt_prog_compiler_can_build_shared_F77=no
13937 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13938 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13941 # Check to make sure the PIC flag actually works.
13943 if test -n "$lt_prog_compiler_pic_F77"; then
13945 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13947 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 lt_prog_compiler_pic_works_F77=no
13951 ac_outfile=conftest.$ac_objext
13952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13953 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13954 # Insert the option either (1) after the last *FLAGS variable, or
13955 # (2) before a word containing "conftest.", or (3) at the end.
13956 # Note that $ac_compile itself does not contain backslashes and begins
13957 # with a dollar sign (not a hyphen), so the echo should work correctly.
13958 # The option is referenced via a variable to avoid confusing sed.
13959 lt_compile=`echo "$ac_compile" | $SED \
13960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13962 -e 's:$: $lt_compiler_flag:'`
13963 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13964 (eval "$lt_compile" 2>conftest.err)
13966 cat conftest.err >&5
13967 echo "$as_me:__oline__: \$? = $ac_status" >&5
13968 if (exit $ac_status) && test -s "$ac_outfile"; then
13969 # The compiler can only warn and ignore the option if not recognized
13970 # So say no if there are warnings other than the usual output.
13971 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13974 lt_prog_compiler_pic_works_F77=yes
13980 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13981 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13983 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13984 case $lt_prog_compiler_pic_F77 in
13986 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13989 lt_prog_compiler_pic_F77=
13990 lt_prog_compiler_can_build_shared_F77=no
13995 # For platforms which do not support PIC, -DPIC is meaningless:
13997 lt_prog_compiler_pic_F77=
14000 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14005 # Check to make sure the static flag actually works.
14007 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14008 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14009 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14010 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 lt_prog_compiler_static_works_F77=no
14014 save_LDFLAGS="$LDFLAGS"
14015 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14016 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14017 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14018 # The linker can only warn and ignore the option if not recognized
14019 # So say no if there are warnings
14020 if test -s conftest.err; then
14021 # Append any errors to the config.log.
14022 cat conftest.err 1>&5
14023 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14025 if diff conftest.exp conftest.er2 >/dev/null; then
14026 lt_prog_compiler_static_works_F77=yes
14029 lt_prog_compiler_static_works_F77=yes
14033 LDFLAGS="$save_LDFLAGS"
14036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14037 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14039 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14042 lt_prog_compiler_static_F77=
14046 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14047 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14048 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 lt_cv_prog_compiler_c_o_F77=no
14052 $rm -r conftest 2>/dev/null
14056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14058 lt_compiler_flag="-o out/conftest2.$ac_objext"
14059 # Insert the option either (1) after the last *FLAGS variable, or
14060 # (2) before a word containing "conftest.", or (3) at the end.
14061 # Note that $ac_compile itself does not contain backslashes and begins
14062 # with a dollar sign (not a hyphen), so the echo should work correctly.
14063 lt_compile=`echo "$ac_compile" | $SED \
14064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14066 -e 's:$: $lt_compiler_flag:'`
14067 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14068 (eval "$lt_compile" 2>out/conftest.err)
14070 cat out/conftest.err >&5
14071 echo "$as_me:__oline__: \$? = $ac_status" >&5
14072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14074 # The compiler can only warn and ignore the option if not recognized
14075 # So say no if there are warnings
14076 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14079 lt_cv_prog_compiler_c_o_F77=yes
14084 # SGI C++ compiler will create directory out/ii_files/ for
14085 # template instantiation
14086 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14087 $rm out/* && rmdir out
14093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14094 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14097 hard_links="nottested"
14098 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14099 # do not overwrite the value of need_locks provided by the user
14100 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14101 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14106 ln conftest.a conftest.b 2>&5 || hard_links=no
14107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14108 { echo "$as_me:$LINENO: result: $hard_links" >&5
14109 echo "${ECHO_T}$hard_links" >&6; }
14110 if test "$hard_links" = no; then
14111 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14112 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14119 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14120 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14123 allow_undefined_flag_F77=
14124 enable_shared_with_static_runtimes_F77=no
14126 archive_expsym_cmds_F77=
14127 old_archive_From_new_cmds_F77=
14128 old_archive_from_expsyms_cmds_F77=
14129 export_dynamic_flag_spec_F77=
14130 whole_archive_flag_spec_F77=
14131 thread_safe_flag_spec_F77=
14132 hardcode_libdir_flag_spec_F77=
14133 hardcode_libdir_flag_spec_ld_F77=
14134 hardcode_libdir_separator_F77=
14135 hardcode_direct_F77=no
14136 hardcode_minus_L_F77=no
14137 hardcode_shlibpath_var_F77=unsupported
14138 link_all_deplibs_F77=unknown
14139 hardcode_automatic_F77=no
14141 module_expsym_cmds_F77=
14142 always_export_symbols_F77=no
14143 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14144 # include_expsyms should be a list of space-separated symbols to be *always*
14145 # included in the symbol list
14146 include_expsyms_F77=
14147 # exclude_expsyms can be an extended regexp of symbols to exclude
14148 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14149 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14150 # as well as any symbol that contains `d'.
14151 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14152 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14153 # platforms (ab)use it in PIC code, but their linkers get confused if
14154 # the symbol is explicitly referenced. Since portable code cannot
14155 # rely on this symbol name, it's probably fine to never include it in
14156 # preloaded symbol tables.
14157 extract_expsyms_cmds=
14158 # Just being paranoid about ensuring that cc_basename is set.
14159 for cc_temp in $compiler""; do
14161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14167 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14170 cygwin* | mingw* | pw32*)
14171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14172 # When not using gcc, we currently assume that we are using
14173 # Microsoft Visual C++.
14174 if test "$GCC" != yes; then
14179 # we just hope/assume this is gcc and not c89 (= MSVC++)
14188 if test "$with_gnu_ld" = yes; then
14189 # If archive_cmds runs LD, not CC, wlarc should be empty
14192 # Set some defaults for GNU ld with shared library support. These
14193 # are reset later if shared libraries are not supported. Putting them
14194 # here allows them to be overridden if necessary.
14195 runpath_var=LD_RUN_PATH
14196 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14197 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14198 # ancient GNU ld didn't support --whole-archive et. al.
14199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14200 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14202 whole_archive_flag_spec_F77=
14204 supports_anon_versioning=no
14205 case `$LD -v 2>/dev/null` in
14206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14209 *\ 2.11.*) ;; # other 2.11 versions
14210 *) supports_anon_versioning=yes ;;
14213 # See if GNU ld supports shared libraries.
14215 aix3* | aix4* | aix5*)
14216 # On AIX/PPC, the GNU linker is very broken
14217 if test "$host_cpu" != ia64; then
14221 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14222 *** to be unable to reliably create shared libraries on AIX.
14223 *** Therefore, libtool is disabling shared libraries support. If you
14224 *** really care for shared libraries, you may want to modify your PATH
14225 *** so that a non-GNU linker is found, and then restart.
14232 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)'
14233 hardcode_libdir_flag_spec_F77='-L$libdir'
14234 hardcode_minus_L_F77=yes
14236 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14237 # that the semantics of dynamic libraries on AmigaOS, at least up
14238 # to version 4, is to share data among multiple programs linked
14239 # with the same dynamic library. Since this doesn't match the
14240 # behavior of shared libraries on other platforms, we can't use
14246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14247 allow_undefined_flag_F77=unsupported
14248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14249 # support --undefined. This deserves some investigation. FIXME
14250 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14256 cygwin* | mingw* | pw32*)
14257 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14258 # as there is no search path for DLLs.
14259 hardcode_libdir_flag_spec_F77='-L$libdir'
14260 allow_undefined_flag_F77=unsupported
14261 always_export_symbols_F77=no
14262 enable_shared_with_static_runtimes_F77=yes
14263 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14266 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14267 # If the export-symbols file already is a .def file (1st line
14268 # is EXPORTS), use it as is; otherwise, prepend...
14269 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14270 cp $export_symbols $output_objdir/$soname.def;
14272 echo EXPORTS > $output_objdir/$soname.def;
14273 cat $export_symbols >> $output_objdir/$soname.def;
14275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14282 hardcode_direct_F77=no
14283 hardcode_shlibpath_var_F77=no
14284 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14285 export_dynamic_flag_spec_F77='${wl}-E'
14286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14287 # Instead, shared libraries are loaded at an image base (0x10000000 by
14288 # default) and relocated if they conflict, which is a slow very memory
14289 # consuming and fragmenting process. To avoid this, we pick a random,
14290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14292 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14293 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299 case $cc_basename,$host_cpu in
14300 pgcc*) # Portland Group C compiler
14301 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14302 tmp_addflag=' $pic_flag'
14304 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14305 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14306 tmp_addflag=' $pic_flag -Mnomain' ;;
14307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14308 tmp_addflag=' -i_dynamic' ;;
14309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14310 tmp_addflag=' -i_dynamic -nofor_main' ;;
14311 ifc* | ifort*) # Intel Fortran compiler
14312 tmp_addflag=' -nofor_main' ;;
14314 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14316 if test $supports_anon_versioning = yes; then
14317 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14319 $echo "local: *; };" >> $output_objdir/$libname.ver~
14320 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14329 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14333 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14338 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14343 *** create shared libraries on Solaris systems. Therefore, libtool
14344 *** is disabling shared libraries support. We urge you to upgrade GNU
14345 *** binutils to release 2.9.1 or newer. Another option is to modify
14346 *** your PATH or compiler configuration so that the native linker is
14347 *** used, and then restart.
14350 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14351 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14352 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14359 case `$LD -v 2>&1` in
14360 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14365 *** reliably create shared libraries on SCO systems. Therefore, libtool
14366 *** is disabling shared libraries support. We urge you to upgrade GNU
14367 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14368 *** your PATH or compiler configuration so that the native linker is
14369 *** used, and then restart.
14374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14375 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14376 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14377 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14386 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14388 hardcode_direct_F77=yes
14389 hardcode_shlibpath_var_F77=no
14393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14394 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14402 if test "$ld_shlibs_F77" = no; then
14404 hardcode_libdir_flag_spec_F77=
14405 export_dynamic_flag_spec_F77=
14406 whole_archive_flag_spec_F77=
14409 # PORTME fill in a description of your system's linker (not GNU ld)
14412 allow_undefined_flag_F77=unsupported
14413 always_export_symbols_F77=yes
14414 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'
14415 # Note: this linker hardcodes the directories in LIBPATH if there
14416 # are no directories specified by -L.
14417 hardcode_minus_L_F77=yes
14418 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14419 # Neither direct hardcoding nor static linking is supported with a
14421 hardcode_direct_F77=unsupported
14426 if test "$host_cpu" = ia64; then
14427 # On IA64, the linker does run time linking by default, so we don't
14428 # have to do anything special.
14429 aix_use_runtimelinking=no
14430 exp_sym_flag='-Bexport'
14433 # If we're using GNU nm, then we don't want the "-C" option.
14434 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14435 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14436 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'
14438 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'
14440 aix_use_runtimelinking=no
14442 # Test if we are trying to use run time linking or normal
14443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14444 # need to do runtime linking.
14445 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14446 for ld_flag in $LDFLAGS; do
14447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14448 aix_use_runtimelinking=yes
14455 exp_sym_flag='-bexport'
14456 no_entry_flag='-bnoentry'
14459 # When large executables or shared objects are built, AIX ld can
14460 # have problems creating the table of contents. If linking a library
14461 # or program results in "error TOC overflow" add -mminimal-toc to
14462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14465 archive_cmds_F77=''
14466 hardcode_direct_F77=yes
14467 hardcode_libdir_separator_F77=':'
14468 link_all_deplibs_F77=yes
14470 if test "$GCC" = yes; then
14471 case $host_os in aix4.[012]|aix4.[012].*)
14472 # We only want to do this on AIX 4.2 and lower, the check
14473 # below for broken collect2 doesn't work under 4.3+
14474 collect2name=`${CC} -print-prog-name=collect2`
14475 if test -f "$collect2name" && \
14476 strings "$collect2name" | grep resolve_lib_name >/dev/null
14478 # We have reworked collect2
14479 hardcode_direct_F77=yes
14481 # We have old collect2
14482 hardcode_direct_F77=unsupported
14483 # It fails to find uninstalled libraries when the uninstalled
14484 # path is not listed in the libpath. Setting hardcode_minus_L
14485 # to unsupported forces relinking
14486 hardcode_minus_L_F77=yes
14487 hardcode_libdir_flag_spec_F77='-L$libdir'
14488 hardcode_libdir_separator_F77=
14492 shared_flag='-shared'
14493 if test "$aix_use_runtimelinking" = yes; then
14494 shared_flag="$shared_flag "'${wl}-G'
14498 if test "$host_cpu" = ia64; then
14499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14500 # chokes on -Wl,-G. The following line is correct:
14503 if test "$aix_use_runtimelinking" = yes; then
14504 shared_flag='${wl}-G'
14506 shared_flag='${wl}-bM:SRE'
14511 # It seems that -bexpall does not export symbols beginning with
14512 # underscore (_), so it is better to generate a list of symbols to export.
14513 always_export_symbols_F77=yes
14514 if test "$aix_use_runtimelinking" = yes; then
14515 # Warning - without using the other runtime loading flags (-brtl),
14516 # -berok will link without error, but may produce a broken library.
14517 allow_undefined_flag_F77='-berok'
14518 # Determine the default libpath from the value encoded in an empty executable.
14519 cat >conftest.$ac_ext <<_ACEOF
14524 rm -f conftest.$ac_objext conftest$ac_exeext
14525 if { (ac_try="$ac_link"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_link") 2>conftest.er1
14533 grep -v '^ *+' conftest.er1 >conftest.err
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_f77_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest$ac_exeext &&
14541 $as_test_x conftest$ac_exeext; then
14543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14545 # Check for a 64-bit object if we didn't find anything.
14546 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; }
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14559 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14560 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14562 if test "$host_cpu" = ia64; then
14563 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14564 allow_undefined_flag_F77="-z nodefs"
14565 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14567 # Determine the default libpath from the value encoded in an empty executable.
14568 cat >conftest.$ac_ext <<_ACEOF
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (ac_try="$ac_link"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_link") 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_f77_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest$ac_exeext &&
14590 $as_test_x conftest$ac_exeext; then
14592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14594 # Check for a 64-bit object if we didn't find anything.
14595 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; }
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605 conftest$ac_exeext conftest.$ac_ext
14606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14608 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14609 # Warning - without using the other run time loading flags,
14610 # -berok will link without error, but may produce a broken library.
14611 no_undefined_flag_F77=' ${wl}-bernotok'
14612 allow_undefined_flag_F77=' ${wl}-berok'
14613 # Exported symbols can be pulled into shared objects from archives
14614 whole_archive_flag_spec_F77='$convenience'
14615 archive_cmds_need_lc_F77=yes
14616 # This is similar to how AIX traditionally builds its shared libraries.
14617 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14623 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)'
14624 hardcode_libdir_flag_spec_F77='-L$libdir'
14625 hardcode_minus_L_F77=yes
14626 # see comment about different semantics on the GNU ld section
14631 export_dynamic_flag_spec_F77=-rdynamic
14634 cygwin* | mingw* | pw32*)
14635 # When not using gcc, we currently assume that we are using
14636 # Microsoft Visual C++.
14637 # hardcode_libdir_flag_spec is actually meaningless, as there is
14638 # no search path for DLLs.
14639 hardcode_libdir_flag_spec_F77=' '
14640 allow_undefined_flag_F77=unsupported
14641 # Tell ltmain to make .lib files, not .a files.
14643 # Tell ltmain to make .dll files, not .so files.
14645 # FIXME: Setting linknames here is a bad hack.
14646 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14647 # The linker will automatically build a .lib file if we build a DLL.
14648 old_archive_From_new_cmds_F77='true'
14649 # FIXME: Should let the user specify the lib program.
14650 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14651 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14652 enable_shared_with_static_runtimes_F77=yes
14655 darwin* | rhapsody*)
14657 rhapsody* | darwin1.[012])
14658 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14661 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14662 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14664 case ${MACOSX_DEPLOYMENT_TARGET} in
14666 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14669 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14675 archive_cmds_need_lc_F77=no
14676 hardcode_direct_F77=no
14677 hardcode_automatic_F77=yes
14678 hardcode_shlibpath_var_F77=unsupported
14679 whole_archive_flag_spec_F77=''
14680 link_all_deplibs_F77=yes
14681 if test "$GCC" = yes ; then
14682 output_verbose_link_cmd='echo'
14683 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14684 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14685 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14686 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14687 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}'
14689 case $cc_basename in
14691 output_verbose_link_cmd='echo'
14692 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14693 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14694 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14695 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14696 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}'
14706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707 hardcode_libdir_flag_spec_F77='-L$libdir'
14708 hardcode_shlibpath_var_F77=no
14715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14716 # support. Future versions do this automatically, but an explicit c++rt0.o
14717 # does not break anything, and helps significantly (at the cost of a little
14720 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14721 hardcode_libdir_flag_spec_F77='-R$libdir'
14722 hardcode_direct_F77=yes
14723 hardcode_shlibpath_var_F77=no
14726 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14728 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14729 hardcode_direct_F77=yes
14730 hardcode_minus_L_F77=yes
14731 hardcode_shlibpath_var_F77=no
14734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14735 freebsd* | kfreebsd*-gnu | dragonfly*)
14736 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14737 hardcode_libdir_flag_spec_F77='-R$libdir'
14738 hardcode_direct_F77=yes
14739 hardcode_shlibpath_var_F77=no
14743 if test "$GCC" = yes; then
14744 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'
14746 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'
14748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14749 hardcode_libdir_separator_F77=:
14750 hardcode_direct_F77=yes
14752 # hardcode_minus_L: Not really in the search PATH,
14753 # but as the default location of the library.
14754 hardcode_minus_L_F77=yes
14755 export_dynamic_flag_spec_F77='${wl}-E'
14759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14760 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14762 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14764 if test "$with_gnu_ld" = no; then
14765 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14766 hardcode_libdir_separator_F77=:
14768 hardcode_direct_F77=yes
14769 export_dynamic_flag_spec_F77='${wl}-E'
14771 # hardcode_minus_L: Not really in the search PATH,
14772 # but as the default location of the library.
14773 hardcode_minus_L_F77=yes
14778 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14781 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14787 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14793 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14796 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14803 if test "$with_gnu_ld" = no; then
14804 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14805 hardcode_libdir_separator_F77=:
14809 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14810 hardcode_direct_F77=no
14811 hardcode_shlibpath_var_F77=no
14814 hardcode_direct_F77=yes
14815 export_dynamic_flag_spec_F77='${wl}-E'
14817 # hardcode_minus_L: Not really in the search PATH,
14818 # but as the default location of the library.
14819 hardcode_minus_L_F77=yes
14825 irix5* | irix6* | nonstopux*)
14826 if test "$GCC" = yes; then
14827 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'
14829 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'
14830 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14832 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14833 hardcode_libdir_separator_F77=:
14834 link_all_deplibs_F77=yes
14838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14839 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14841 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14843 hardcode_libdir_flag_spec_F77='-R$libdir'
14844 hardcode_direct_F77=yes
14845 hardcode_shlibpath_var_F77=no
14849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14850 hardcode_direct_F77=yes
14851 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14852 hardcode_libdir_separator_F77=:
14853 hardcode_shlibpath_var_F77=no
14857 hardcode_direct_F77=yes
14858 hardcode_shlibpath_var_F77=no
14859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14860 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14861 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14862 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14863 export_dynamic_flag_spec_F77='${wl}-E'
14866 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14867 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14868 hardcode_libdir_flag_spec_F77='-R$libdir'
14871 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14872 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14879 hardcode_libdir_flag_spec_F77='-L$libdir'
14880 hardcode_minus_L_F77=yes
14881 allow_undefined_flag_F77=unsupported
14882 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'
14883 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14887 if test "$GCC" = yes; then
14888 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14889 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'
14891 allow_undefined_flag_F77=' -expect_unresolved \*'
14892 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'
14894 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14895 hardcode_libdir_separator_F77=:
14898 osf4* | osf5*) # as osf3* with the addition of -msym flag
14899 if test "$GCC" = yes; then
14900 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14901 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'
14902 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14904 allow_undefined_flag_F77=' -expect_unresolved \*'
14905 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'
14906 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~
14907 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14909 # Both c and cxx compiler support -rpath directly
14910 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14912 hardcode_libdir_separator_F77=:
14916 no_undefined_flag_F77=' -z text'
14917 if test "$GCC" = yes; then
14919 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14920 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14921 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14924 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14926 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14928 hardcode_libdir_flag_spec_F77='-R$libdir'
14929 hardcode_shlibpath_var_F77=no
14931 solaris2.[0-5] | solaris2.[0-5].*) ;;
14933 # The compiler driver will combine linker options so we
14934 # cannot just pass the convience library names through
14935 # without $wl, iff we do not link with $LD.
14936 # Luckily, gcc supports the same syntax we need for Sun Studio.
14937 # Supported since Solaris 2.6 (maybe 2.5.1?)
14940 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14942 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14945 link_all_deplibs_F77=yes
14949 if test "x$host_vendor" = xsequent; then
14950 # Use $CC to link under sequent, because it throws in some extra .o
14951 # files that make .init and .fini sections work.
14952 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14956 hardcode_libdir_flag_spec_F77='-L$libdir'
14957 hardcode_direct_F77=yes
14958 hardcode_minus_L_F77=yes
14959 hardcode_shlibpath_var_F77=no
14963 case $host_vendor in
14965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 hardcode_direct_F77=yes # is this really true???
14969 ## LD is ld it makes a PLAMLIB
14970 ## CC just makes a GrossModule.
14971 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14972 reload_cmds_F77='$CC -r -o $output$reload_objs'
14973 hardcode_direct_F77=no
14976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14980 runpath_var='LD_RUN_PATH'
14981 hardcode_shlibpath_var_F77=no
14985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14986 hardcode_shlibpath_var_F77=no
14987 export_dynamic_flag_spec_F77='-Bexport'
14991 if test -d /usr/nec; then
14992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_shlibpath_var_F77=no
14994 runpath_var=LD_RUN_PATH
14995 hardcode_runpath_var=yes
15000 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15001 no_undefined_flag_F77='${wl}-z,text'
15002 archive_cmds_need_lc_F77=no
15003 hardcode_shlibpath_var_F77=no
15004 runpath_var='LD_RUN_PATH'
15006 if test "$GCC" = yes; then
15007 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015 sysv5* | sco3.2v5* | sco5v6*)
15016 # Note: We can NOT use -z defs as we might desire, because we do not
15017 # link with -lc, and that would cause any symbols used from libc to
15018 # always be unresolved, which means just about no library would
15019 # ever link correctly. If we're not using GNU ld we use -z text
15020 # though, which does catch some bad symbols but isn't as heavy-handed
15022 no_undefined_flag_F77='${wl}-z,text'
15023 allow_undefined_flag_F77='${wl}-z,nodefs'
15024 archive_cmds_need_lc_F77=no
15025 hardcode_shlibpath_var_F77=no
15026 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15027 hardcode_libdir_separator_F77=':'
15028 link_all_deplibs_F77=yes
15029 export_dynamic_flag_spec_F77='${wl}-Bexport'
15030 runpath_var='LD_RUN_PATH'
15032 if test "$GCC" = yes; then
15033 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15034 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_libdir_flag_spec_F77='-L$libdir'
15044 hardcode_shlibpath_var_F77=no
15053 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15054 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15055 test "$ld_shlibs_F77" = no && can_build_shared=no
15058 # Do we need to explicitly link libc?
15060 case "x$archive_cmds_need_lc_F77" in
15062 # Assume -lc should be added
15063 archive_cmds_need_lc_F77=yes
15065 if test "$enable_shared" = yes && test "$GCC" = yes; then
15066 case $archive_cmds_F77 in
15068 # FIXME: we may have to deal with multi-command sequences.
15071 # Test whether the compiler implicitly links with -lc since on some
15072 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15073 # to ld, don't add -lc before -lgcc.
15074 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15075 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15077 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } 2>conftest.err; then
15086 libobjs=conftest.$ac_objext
15088 wl=$lt_prog_compiler_wl_F77
15089 pic_flag=$lt_prog_compiler_pic_F77
15095 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15096 allow_undefined_flag_F77=
15097 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15098 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }
15103 archive_cmds_need_lc_F77=no
15105 archive_cmds_need_lc_F77=yes
15107 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15109 cat conftest.err 1>&5
15112 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15113 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15120 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15121 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15122 library_names_spec=
15123 libname_spec='lib$name'
15127 postuninstall_cmds=
15131 shlibpath_overrides_runpath=unknown
15133 dynamic_linker="$host_os ld.so"
15134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15135 if test "$GCC" = yes; then
15136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15137 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15138 # if the path contains ";" then we assume it to be the separator
15139 # otherwise default to the standard path separator (i.e. ":") - it is
15140 # assumed that no part of a normal pathname contains ";" but that should
15141 # okay in the real world where ";" in dirpaths is itself problematic.
15142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15149 need_lib_prefix=unknown
15150 hardcode_into_libs=no
15152 # when you set need_version to no, make sure it does not cause -set_version
15153 # flags to be left without arguments
15154 need_version=unknown
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15160 shlibpath_var=LIBPATH
15162 # AIX 3 has no versioning support, so we append a major version to the name.
15163 soname_spec='${libname}${release}${shared_ext}$major'
15170 hardcode_into_libs=yes
15171 if test "$host_cpu" = ia64; then
15172 # AIX 5 supports IA64
15173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15174 shlibpath_var=LD_LIBRARY_PATH
15176 # With GCC up to 2.95.x, collect2 would create an import file
15177 # for dependence libraries. The import file would start with
15178 # the line `#! .'. This would cause the generated library to
15179 # depend on `.', always an invalid library. This was fixed in
15180 # development snapshots of GCC prior to 3.0.
15182 aix4 | aix4.[01] | aix4.[01].*)
15183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15185 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15188 can_build_shared=no
15192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15193 # soname into executable. Probably we can add versioning support to
15194 # collect2, so additional links can be useful in future.
15195 if test "$aix_use_runtimelinking" = yes; then
15196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15197 # instead of lib<name>.a to let people know that these are not
15198 # typical AIX shared libraries.
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 # We preserve .a as extension for shared libraries through AIX4.2
15202 # and later when we are not doing run time linking.
15203 library_names_spec='${libname}${release}.a $libname.a'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LIBPATH
15211 library_names_spec='$libname.ixlibrary $libname.a'
15212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15213 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'
15217 library_names_spec='${libname}${shared_ext}'
15218 dynamic_linker="$host_os ld.so"
15219 shlibpath_var=LIBRARY_PATH
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15231 # the default ld.so.conf also contains /usr/contrib/lib and
15232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15233 # libtool to hard-code these into programs
15236 cygwin* | mingw* | pw32*)
15237 version_type=windows
15242 case $GCC,$host_os in
15243 yes,cygwin* | yes,mingw* | yes,pw32*)
15244 library_names_spec='$libname.dll.a'
15245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15246 postinstall_cmds='base_file=`basename \${file}`~
15247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15248 dldir=$destdir/`dirname \$dlpath`~
15249 test -d \$dldir || mkdir -p \$dldir~
15250 $install_prog $dir/$dlname \$dldir/$dlname~
15251 chmod a+x \$dldir/$dlname'
15252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15253 dlpath=$dir/\$dldll~
15255 shlibpath_overrides_runpath=yes
15259 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15260 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15264 # MinGW DLLs use traditional 'lib' prefix
15265 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15267 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15268 # It is most probably a Windows format PATH printed by
15269 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15270 # path with ; separators, and with drive letters. We can handle the
15271 # drive letters (cygwin fileutils understands them), so leave them,
15272 # especially as we might pass files found there to a mingw objdump,
15273 # which wouldn't understand a cygwinified path. Ahh.
15274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15280 # pw32 DLLs use 'pw' prefix rather than 'lib'
15281 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15287 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15289 supports_anon_versioning=no
15290 case `$LD -v 2>/dev/null` in
15291 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15292 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15293 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15294 *\ 2.11.*) ;; # other 2.11 versions
15295 *) supports_anon_versioning=yes ;;
15297 if test $supports_anon_versioning = yes; then
15298 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15300 $echo "local: *; };" >> $output_objdir/$libname.ver~
15301 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15303 $archive_expsym_cmds="$archive_cmds"
15311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15314 dynamic_linker='Win32 ld.exe'
15315 # FIXME: first we should search . and the directory the executable is in
15319 darwin* | rhapsody*)
15320 dynamic_linker="$host_os dyld"
15321 version_type=darwin
15324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15325 soname_spec='${libname}${release}${major}$shared_ext'
15326 shlibpath_overrides_runpath=yes
15327 shlibpath_var=DYLD_LIBRARY_PATH
15328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15329 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15330 if test "$GCC" = yes; then
15331 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"`
15333 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15343 soname_spec='${libname}${release}${shared_ext}$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 shlibpath_var=LD_LIBRARY_PATH
15358 shlibpath_overrides_runpath=no
15359 hardcode_into_libs=yes
15360 dynamic_linker='GNU ld.so'
15363 freebsd* | dragonfly*)
15364 # DragonFly does not have aout. When/if they implement a new
15365 # versioning mechanism, adjust this.
15366 if test -x /usr/bin/objformat; then
15367 objformat=`/usr/bin/objformat`
15370 freebsd[123]*) objformat=aout ;;
15371 *) objformat=elf ;;
15374 # Handle Gentoo/FreeBSD as it was Linux
15375 case $host_vendor in
15377 version_type=linux ;;
15379 version_type=freebsd-$objformat ;;
15382 case $version_type in
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15399 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=yes
15404 freebsd3.[01]* | freebsdelf3.[01]*)
15405 shlibpath_overrides_runpath=yes
15406 hardcode_into_libs=yes
15408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15410 shlibpath_overrides_runpath=no
15411 hardcode_into_libs=yes
15413 freebsd*) # from 4.6 on
15414 shlibpath_overrides_runpath=yes
15415 hardcode_into_libs=yes
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 hardcode_into_libs=yes
15430 hpux9* | hpux10* | hpux11*)
15431 # Give a soname corresponding to the major version so that dld.sl refuses to
15432 # link against other versions.
15439 hardcode_into_libs=yes
15440 dynamic_linker="$host_os dld.so"
15441 shlibpath_var=LD_LIBRARY_PATH
15442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 if test "X$HPUX_IA64_MODE" = X32; then
15446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454 hardcode_into_libs=yes
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15465 dynamic_linker="$host_os dld.sl"
15466 shlibpath_var=SHLIB_PATH
15467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15473 postinstall_cmds='chmod 555 $lib'
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 shlibpath_overrides_runpath=no
15485 hardcode_into_libs=yes
15488 irix5* | irix6* | nonstopux*)
15490 nonstopux*) version_type=nonstopux ;;
15492 if test "$lt_cv_prog_gnu_ld" = yes; then
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503 irix5* | nonstopux*)
15504 libsuff= shlibsuff=
15507 case $LD in # libtool.m4 will add one of these switches to LD
15508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15509 libsuff= shlibsuff= libmagic=32-bit;;
15510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15511 libsuff=32 shlibsuff=N32 libmagic=N32;;
15512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15514 *) libsuff= shlibsuff= libmagic=never-match;;
15518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15519 shlibpath_overrides_runpath=no
15520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15522 hardcode_into_libs=yes
15525 # No shared lib support for Linux oldld, aout, or coff.
15526 linux*oldld* | linux*aout* | linux*coff*)
15530 # This must be Linux ELF.
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=no
15540 # This implies no fast_install, which is unacceptable.
15541 # Some rework will be needed to allow for fast_install
15542 # before this can be enabled.
15543 hardcode_into_libs=yes
15545 # Append ld.so.conf contents to the search path
15546 if test -f /etc/ld.so.conf; then
15547 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15551 # We used to test for /lib/ld.so.1 and disable shared libraries on
15552 # powerpc, because MkLinux only supported shared libraries with the
15553 # GNU dynamic linker. Since this was broken with cross compilers,
15554 # most powerpc-linux boxes support dynamic linking these days and
15555 # people can always --disable-shared, the test was removed, and we
15556 # assume the GNU/Linux dynamic linker is in use.
15557 dynamic_linker='GNU/Linux ld.so'
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 shlibpath_overrides_runpath=no
15568 hardcode_into_libs=yes
15569 dynamic_linker='GNU ld.so'
15576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15579 dynamic_linker='NetBSD (a.out) ld.so'
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 dynamic_linker='NetBSD ld.elf_so'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15587 hardcode_into_libs=yes
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15609 sys_lib_dlsearch_path_spec="/usr/lib"
15611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15614 *) need_version=no ;;
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15621 openbsd2.[89] | openbsd2.[89].*)
15622 shlibpath_overrides_runpath=no
15625 shlibpath_overrides_runpath=yes
15629 shlibpath_overrides_runpath=yes
15634 libname_spec='$name'
15637 library_names_spec='$libname${shared_ext} $libname.a'
15638 dynamic_linker='OS/2 ld.exe'
15639 shlibpath_var=LIBPATH
15642 osf3* | osf4* | osf5*)
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=yes
15661 hardcode_into_libs=yes
15662 # ldd complains unless libraries are executable
15663 postinstall_cmds='chmod +x $lib'
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes
15672 if test "$with_gnu_ld" = yes; then
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 case $host_vendor in
15685 shlibpath_overrides_runpath=no
15687 export_dynamic_flag_spec='${wl}-Blargedynsym'
15688 runpath_var=LD_RUN_PATH
15696 shlibpath_overrides_runpath=no
15697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15703 if test -d /usr/nec ;then
15705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15706 soname_spec='$libname${shared_ext}.$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15712 version_type=freebsd-elf
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 hardcode_into_libs=yes
15719 if test "$with_gnu_ld" = yes; then
15720 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15721 shlibpath_overrides_runpath=no
15723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15724 shlibpath_overrides_runpath=yes
15727 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15731 sys_lib_dlsearch_path_spec='/usr/lib'
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15745 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15746 echo "${ECHO_T}$dynamic_linker" >&6; }
15747 test "$dynamic_linker" = no && can_build_shared=no
15749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15750 if test "$GCC" = yes; then
15751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15754 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15755 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15756 hardcode_action_F77=
15757 if test -n "$hardcode_libdir_flag_spec_F77" || \
15758 test -n "$runpath_var_F77" || \
15759 test "X$hardcode_automatic_F77" = "Xyes" ; then
15761 # We can hardcode non-existant directories.
15762 if test "$hardcode_direct_F77" != no &&
15763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15764 # have to relink, otherwise we might link with an installed library
15765 # when we should be linking with a yet-to-be-installed one
15766 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15767 test "$hardcode_minus_L_F77" != no; then
15768 # Linking always hardcodes the temporary library directory.
15769 hardcode_action_F77=relink
15771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15772 hardcode_action_F77=immediate
15775 # We cannot hardcode anything, or else we can only hardcode existing
15777 hardcode_action_F77=unsupported
15779 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15780 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15782 if test "$hardcode_action_F77" = relink; then
15783 # Fast installation is not supported
15784 enable_fast_install=no
15785 elif test "$shlibpath_overrides_runpath" = yes ||
15786 test "$enable_shared" = no; then
15787 # Fast installation is not necessary
15788 enable_fast_install=needless
15792 # The else clause should only fire when bootstrapping the
15793 # libtool distribution, otherwise you forgot to ship ltmain.sh
15794 # with your package, and you will get complaints that there are
15795 # no rules to generate ltmain.sh.
15796 if test -f "$ltmain"; then
15797 # See if we are running on zsh, and set the options which allow our commands through
15798 # without removal of \ escapes.
15799 if test -n "${ZSH_VERSION+set}" ; then
15800 setopt NO_GLOB_SUBST
15802 # Now quote all the things that may contain metacharacters while being
15803 # careful not to overquote the AC_SUBSTed values. We take copies of the
15804 # variables and quote the copies for generation of the libtool script.
15805 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15807 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15808 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15809 deplibs_check_method reload_flag reload_cmds need_locks \
15810 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15811 lt_cv_sys_global_symbol_to_c_name_address \
15812 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15813 old_postinstall_cmds old_postuninstall_cmds \
15817 lt_prog_compiler_wl_F77 \
15818 lt_prog_compiler_pic_F77 \
15819 lt_prog_compiler_static_F77 \
15820 lt_prog_compiler_no_builtin_flag_F77 \
15821 export_dynamic_flag_spec_F77 \
15822 thread_safe_flag_spec_F77 \
15823 whole_archive_flag_spec_F77 \
15824 enable_shared_with_static_runtimes_F77 \
15825 old_archive_cmds_F77 \
15826 old_archive_from_new_cmds_F77 \
15827 predep_objects_F77 \
15828 postdep_objects_F77 \
15831 compiler_lib_search_path_F77 \
15833 archive_expsym_cmds_F77 \
15834 postinstall_cmds_F77 \
15835 postuninstall_cmds_F77 \
15836 old_archive_from_expsyms_cmds_F77 \
15837 allow_undefined_flag_F77 \
15838 no_undefined_flag_F77 \
15839 export_symbols_cmds_F77 \
15840 hardcode_libdir_flag_spec_F77 \
15841 hardcode_libdir_flag_spec_ld_F77 \
15842 hardcode_libdir_separator_F77 \
15843 hardcode_automatic_F77 \
15845 module_expsym_cmds_F77 \
15846 lt_cv_prog_compiler_c_o_F77 \
15847 exclude_expsyms_F77 \
15848 include_expsyms_F77; do
15851 old_archive_cmds_F77 | \
15852 old_archive_from_new_cmds_F77 | \
15853 archive_cmds_F77 | \
15854 archive_expsym_cmds_F77 | \
15855 module_cmds_F77 | \
15856 module_expsym_cmds_F77 | \
15857 old_archive_from_expsyms_cmds_F77 | \
15858 export_symbols_cmds_F77 | \
15859 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15860 postinstall_cmds | postuninstall_cmds | \
15861 old_postinstall_cmds | old_postuninstall_cmds | \
15862 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15863 # Double-quote double-evaled strings.
15864 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15873 *'\$0 --fallback-echo"')
15874 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15880 cat <<__EOF__ >> "$cfgfile"
15881 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15885 # Shell to use when invoking shell scripts.
15888 # Whether or not to build shared libraries.
15889 build_libtool_libs=$enable_shared
15891 # Whether or not to build static libraries.
15892 build_old_libs=$enable_static
15894 # Whether or not to add -lc for building shared libraries.
15895 build_libtool_need_lc=$archive_cmds_need_lc_F77
15897 # Whether or not to disallow shared libs when runtime libs are static
15898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15900 # Whether or not to optimize for fast installation.
15901 fast_install=$enable_fast_install
15904 host_alias=$host_alias
15908 # The build system.
15909 build_alias=$build_alias
15913 # An echo program that does not interpret backslashes.
15918 AR_FLAGS=$lt_AR_FLAGS
15923 # LTCC compiler flags.
15924 LTCFLAGS=$lt_LTCFLAGS
15926 # A language-specific compiler.
15927 CC=$lt_compiler_F77
15929 # Is the compiler the GNU C compiler?
15935 # The linker used to build libraries.
15938 # Whether we need hard or soft links.
15941 # A BSD-compatible nm program.
15944 # A symbol stripping program
15947 # Used to examine libraries when file_magic_cmd begins "file"
15948 MAGIC_CMD=$MAGIC_CMD
15950 # Used on cygwin: DLL creation program.
15953 # Used on cygwin: object dumper.
15956 # Used on cygwin: assembler.
15959 # The name of the directory that contains temporary libtool files.
15962 # How to create reloadable object files.
15963 reload_flag=$lt_reload_flag
15964 reload_cmds=$lt_reload_cmds
15966 # How to pass a linker flag through the compiler.
15967 wl=$lt_lt_prog_compiler_wl_F77
15969 # Object file suffix (normally "o").
15970 objext="$ac_objext"
15972 # Old archive suffix (normally "a").
15975 # Shared library suffix (normally ".so").
15976 shrext_cmds='$shrext_cmds'
15978 # Executable file suffix (normally "").
15981 # Additional compiler flags for building library objects.
15982 pic_flag=$lt_lt_prog_compiler_pic_F77
15985 # What is the maximum length of a command?
15986 max_cmd_len=$lt_cv_sys_max_cmd_len
15988 # Does compiler simultaneously support -c and -o options?
15989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15991 # Must we lock files when doing compilation?
15992 need_locks=$lt_need_locks
15994 # Do we need the lib prefix for modules?
15995 need_lib_prefix=$need_lib_prefix
15997 # Do we need a version for libraries?
15998 need_version=$need_version
16000 # Whether dlopen is supported.
16001 dlopen_support=$enable_dlopen
16003 # Whether dlopen of programs is supported.
16004 dlopen_self=$enable_dlopen_self
16006 # Whether dlopen of statically linked programs is supported.
16007 dlopen_self_static=$enable_dlopen_self_static
16009 # Compiler flag to prevent dynamic linking.
16010 link_static_flag=$lt_lt_prog_compiler_static_F77
16012 # Compiler flag to turn off builtin functions.
16013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16015 # Compiler flag to allow reflexive dlopens.
16016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16018 # Compiler flag to generate shared objects directly from archives.
16019 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16021 # Compiler flag to generate thread-safe objects.
16022 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16024 # Library versioning type.
16025 version_type=$version_type
16027 # Format of library name prefix.
16028 libname_spec=$lt_libname_spec
16030 # List of archive names. First name is the real one, the rest are links.
16031 # The last name is the one that the linker finds with -lNAME.
16032 library_names_spec=$lt_library_names_spec
16034 # The coded name of the library, if different from the real name.
16035 soname_spec=$lt_soname_spec
16037 # Commands used to build and install an old-style archive.
16039 old_archive_cmds=$lt_old_archive_cmds_F77
16040 old_postinstall_cmds=$lt_old_postinstall_cmds
16041 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16043 # Create an old-style archive from a shared archive.
16044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16046 # Create a temporary old-style archive to link instead of a shared archive.
16047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16049 # Commands used to build and install a shared archive.
16050 archive_cmds=$lt_archive_cmds_F77
16051 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16052 postinstall_cmds=$lt_postinstall_cmds
16053 postuninstall_cmds=$lt_postuninstall_cmds
16055 # Commands used to build a loadable module (assumed same as above if empty)
16056 module_cmds=$lt_module_cmds_F77
16057 module_expsym_cmds=$lt_module_expsym_cmds_F77
16059 # Commands to strip libraries.
16060 old_striplib=$lt_old_striplib
16061 striplib=$lt_striplib
16063 # Dependencies to place before the objects being linked to create a
16065 predep_objects=$lt_predep_objects_F77
16067 # Dependencies to place after the objects being linked to create a
16069 postdep_objects=$lt_postdep_objects_F77
16071 # Dependencies to place before the objects being linked to create a
16073 predeps=$lt_predeps_F77
16075 # Dependencies to place after the objects being linked to create a
16077 postdeps=$lt_postdeps_F77
16079 # The library search path used internally by the compiler when linking
16080 # a shared library.
16081 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16083 # Method to check whether dependent libraries are shared objects.
16084 deplibs_check_method=$lt_deplibs_check_method
16086 # Command to use when deplibs_check_method == file_magic.
16087 file_magic_cmd=$lt_file_magic_cmd
16089 # Flag that allows shared libraries with undefined symbols to be built.
16090 allow_undefined_flag=$lt_allow_undefined_flag_F77
16092 # Flag that forces no undefined symbols.
16093 no_undefined_flag=$lt_no_undefined_flag_F77
16095 # Commands used to finish a libtool library installation in a directory.
16096 finish_cmds=$lt_finish_cmds
16098 # Same as above, but a single script fragment to be evaled but not shown.
16099 finish_eval=$lt_finish_eval
16101 # Take the output of nm and produce a listing of raw symbols and C names.
16102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16104 # Transform the output of nm in a proper C declaration
16105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16107 # Transform the output of nm in a C name address pair
16108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16110 # This is the shared library runtime path variable.
16111 runpath_var=$runpath_var
16113 # This is the shared library path variable.
16114 shlibpath_var=$shlibpath_var
16116 # Is shlibpath searched before the hard-coded library search path?
16117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16119 # How to hardcode a shared library path into an executable.
16120 hardcode_action=$hardcode_action_F77
16122 # Whether we should hardcode library paths into libraries.
16123 hardcode_into_libs=$hardcode_into_libs
16125 # Flag to hardcode \$libdir into a binary during linking.
16126 # This must work even if \$libdir does not exist.
16127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16129 # If ld is used when linking, flag to hardcode \$libdir into
16130 # a binary during linking. This must work even if \$libdir does
16132 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16134 # Whether we need a single -rpath flag with a separated argument.
16135 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16137 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16138 # resulting binary.
16139 hardcode_direct=$hardcode_direct_F77
16141 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16142 # resulting binary.
16143 hardcode_minus_L=$hardcode_minus_L_F77
16145 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16146 # the resulting binary.
16147 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16149 # Set to yes if building a shared library automatically hardcodes DIR into the library
16150 # and all subsequent libraries and executables linked against it.
16151 hardcode_automatic=$hardcode_automatic_F77
16153 # Variables whose values should be saved in libtool wrapper scripts and
16154 # restored at relink time.
16155 variables_saved_for_relink="$variables_saved_for_relink"
16157 # Whether libtool must link a program against all its dependency libraries.
16158 link_all_deplibs=$link_all_deplibs_F77
16160 # Compile-time system search path for libraries
16161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16163 # Run-time system search path for libraries
16164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16166 # Fix the shell variable \$srcfile for the compiler.
16167 fix_srcfile_path="$fix_srcfile_path_F77"
16169 # Set to yes if exported symbols are required.
16170 always_export_symbols=$always_export_symbols_F77
16172 # The commands to list exported symbols.
16173 export_symbols_cmds=$lt_export_symbols_cmds_F77
16175 # The commands to extract the exported symbol list from a shared archive.
16176 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16178 # Symbols that should not be listed in the preloaded symbols.
16179 exclude_expsyms=$lt_exclude_expsyms_F77
16181 # Symbols that must always be exported.
16182 include_expsyms=$lt_include_expsyms_F77
16184 # ### END LIBTOOL TAG CONFIG: $tagname
16190 # If there is no Makefile yet, we rely on a make rule to execute
16191 # `config.status --recheck' to rerun these tests and create the
16192 # libtool script then.
16193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16194 if test -f "$ltmain_in"; then
16195 test -f Makefile && make "$ltmain"
16201 ac_cpp='$CPP $CPPFLAGS'
16202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16214 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16217 # Source file extension for Java test sources.
16220 # Object file extension for compiled Java test sources.
16224 # Code to be used in simple compile tests
16225 lt_simple_compile_test_code="class foo {}\n"
16227 # Code to be used in simple link tests
16228 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16230 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16232 # If no C compiler was specified, use CC.
16235 # If no C compiler flags were specified, use CFLAGS.
16236 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16238 # Allow CC to be a program name with arguments.
16242 # save warnings/boilerplate of simple test code
16243 ac_outfile=conftest.$ac_objext
16244 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16245 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16246 _lt_compiler_boilerplate=`cat conftest.err`
16249 ac_outfile=conftest.$ac_objext
16250 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16251 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16252 _lt_linker_boilerplate=`cat conftest.err`
16256 # Allow CC to be a program name with arguments.
16261 for cc_temp in $compiler""; do
16263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16272 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16273 archive_cmds_need_lc_GCJ=no
16275 old_archive_cmds_GCJ=$old_archive_cmds
16278 lt_prog_compiler_no_builtin_flag_GCJ=
16280 if test "$GCC" = yes; then
16281 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16284 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16285 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16286 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 lt_cv_prog_compiler_rtti_exceptions=no
16290 ac_outfile=conftest.$ac_objext
16291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16292 lt_compiler_flag="-fno-rtti -fno-exceptions"
16293 # Insert the option either (1) after the last *FLAGS variable, or
16294 # (2) before a word containing "conftest.", or (3) at the end.
16295 # Note that $ac_compile itself does not contain backslashes and begins
16296 # with a dollar sign (not a hyphen), so the echo should work correctly.
16297 # The option is referenced via a variable to avoid confusing sed.
16298 lt_compile=`echo "$ac_compile" | $SED \
16299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16301 -e 's:$: $lt_compiler_flag:'`
16302 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16303 (eval "$lt_compile" 2>conftest.err)
16305 cat conftest.err >&5
16306 echo "$as_me:__oline__: \$? = $ac_status" >&5
16307 if (exit $ac_status) && test -s "$ac_outfile"; then
16308 # The compiler can only warn and ignore the option if not recognized
16309 # So say no if there are warnings other than the usual output.
16310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16313 lt_cv_prog_compiler_rtti_exceptions=yes
16319 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16320 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16322 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16323 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16330 lt_prog_compiler_wl_GCJ=
16331 lt_prog_compiler_pic_GCJ=
16332 lt_prog_compiler_static_GCJ=
16334 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16335 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16337 if test "$GCC" = yes; then
16338 lt_prog_compiler_wl_GCJ='-Wl,'
16339 lt_prog_compiler_static_GCJ='-static'
16343 # All AIX code is PIC.
16344 if test "$host_cpu" = ia64; then
16345 # AIX 5 now supports IA64 processor
16346 lt_prog_compiler_static_GCJ='-Bstatic'
16351 # FIXME: we need at least 68020 code to build shared libraries, but
16352 # adding the `-m68020' flag to GCC prevents building anything better,
16354 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16357 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16358 # PIC is the default for these OSes.
16361 mingw* | pw32* | os2*)
16362 # This hack is so that the source file can tell whether it is being
16363 # built for inclusion in a dll (and should export symbols for example).
16364 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16367 darwin* | rhapsody*)
16368 # PIC is the default on this platform
16369 # Common symbols not allowed in MH_DYLIB files
16370 lt_prog_compiler_pic_GCJ='-fno-common'
16374 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16375 # Instead, we relocate shared libraries at runtime.
16379 # Just because we use GCC doesn't mean we suddenly get shared libraries
16380 # on systems that don't support them.
16381 lt_prog_compiler_can_build_shared_GCJ=no
16386 if test -d /usr/nec; then
16387 lt_prog_compiler_pic_GCJ=-Kconform_pic
16392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16393 # not for PA HP-UX.
16399 lt_prog_compiler_pic_GCJ='-fPIC'
16405 lt_prog_compiler_pic_GCJ='-fPIC'
16409 # PORTME Check for flag to pass linker flags through the system compiler.
16412 lt_prog_compiler_wl_GCJ='-Wl,'
16413 if test "$host_cpu" = ia64; then
16414 # AIX 5 now supports IA64 processor
16415 lt_prog_compiler_static_GCJ='-Bstatic'
16417 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16421 # PIC is the default on this platform
16422 # Common symbols not allowed in MH_DYLIB files
16423 case $cc_basename in
16425 lt_prog_compiler_pic_GCJ='-qnocommon'
16426 lt_prog_compiler_wl_GCJ='-Wl,'
16431 mingw* | pw32* | os2*)
16432 # This hack is so that the source file can tell whether it is being
16433 # built for inclusion in a dll (and should export symbols for example).
16434 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16437 hpux9* | hpux10* | hpux11*)
16438 lt_prog_compiler_wl_GCJ='-Wl,'
16439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16440 # not for PA HP-UX.
16446 lt_prog_compiler_pic_GCJ='+Z'
16449 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16450 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16453 irix5* | irix6* | nonstopux*)
16454 lt_prog_compiler_wl_GCJ='-Wl,'
16455 # PIC (with -KPIC) is the default.
16456 lt_prog_compiler_static_GCJ='-non_shared'
16460 lt_prog_compiler_pic_GCJ='-KPIC'
16461 lt_prog_compiler_static_GCJ='-Bstatic'
16465 case $cc_basename in
16467 lt_prog_compiler_wl_GCJ='-Wl,'
16468 lt_prog_compiler_pic_GCJ='-KPIC'
16469 lt_prog_compiler_static_GCJ='-static'
16471 pgcc* | pgf77* | pgf90* | pgf95*)
16472 # Portland Group compilers (*not* the Pentium gcc compiler,
16473 # which looks to be a dead project)
16474 lt_prog_compiler_wl_GCJ='-Wl,'
16475 lt_prog_compiler_pic_GCJ='-fpic'
16476 lt_prog_compiler_static_GCJ='-Bstatic'
16479 lt_prog_compiler_wl_GCJ='-Wl,'
16480 # All Alpha code is PIC.
16481 lt_prog_compiler_static_GCJ='-non_shared'
16486 osf3* | osf4* | osf5*)
16487 lt_prog_compiler_wl_GCJ='-Wl,'
16488 # All OSF/1 code is PIC.
16489 lt_prog_compiler_static_GCJ='-non_shared'
16493 lt_prog_compiler_pic_GCJ='-KPIC'
16494 lt_prog_compiler_static_GCJ='-Bstatic'
16495 case $cc_basename in
16496 f77* | f90* | f95*)
16497 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16499 lt_prog_compiler_wl_GCJ='-Wl,';;
16504 lt_prog_compiler_wl_GCJ='-Qoption ld '
16505 lt_prog_compiler_pic_GCJ='-PIC'
16506 lt_prog_compiler_static_GCJ='-Bstatic'
16509 sysv4 | sysv4.2uw2* | sysv4.3*)
16510 lt_prog_compiler_wl_GCJ='-Wl,'
16511 lt_prog_compiler_pic_GCJ='-KPIC'
16512 lt_prog_compiler_static_GCJ='-Bstatic'
16516 if test -d /usr/nec ;then
16517 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16518 lt_prog_compiler_static_GCJ='-Bstatic'
16522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16523 lt_prog_compiler_wl_GCJ='-Wl,'
16524 lt_prog_compiler_pic_GCJ='-KPIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 lt_prog_compiler_can_build_shared_GCJ=no
16534 lt_prog_compiler_pic_GCJ='-pic'
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16539 lt_prog_compiler_can_build_shared_GCJ=no
16544 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16545 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16548 # Check to make sure the PIC flag actually works.
16550 if test -n "$lt_prog_compiler_pic_GCJ"; then
16552 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16553 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16554 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 lt_prog_compiler_pic_works_GCJ=no
16558 ac_outfile=conftest.$ac_objext
16559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16560 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16561 # Insert the option either (1) after the last *FLAGS variable, or
16562 # (2) before a word containing "conftest.", or (3) at the end.
16563 # Note that $ac_compile itself does not contain backslashes and begins
16564 # with a dollar sign (not a hyphen), so the echo should work correctly.
16565 # The option is referenced via a variable to avoid confusing sed.
16566 lt_compile=`echo "$ac_compile" | $SED \
16567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16569 -e 's:$: $lt_compiler_flag:'`
16570 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16571 (eval "$lt_compile" 2>conftest.err)
16573 cat conftest.err >&5
16574 echo "$as_me:__oline__: \$? = $ac_status" >&5
16575 if (exit $ac_status) && test -s "$ac_outfile"; then
16576 # The compiler can only warn and ignore the option if not recognized
16577 # So say no if there are warnings other than the usual output.
16578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16581 lt_prog_compiler_pic_works_GCJ=yes
16587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16588 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16590 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16591 case $lt_prog_compiler_pic_GCJ in
16593 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16596 lt_prog_compiler_pic_GCJ=
16597 lt_prog_compiler_can_build_shared_GCJ=no
16602 # For platforms which do not support PIC, -DPIC is meaningless:
16604 lt_prog_compiler_pic_GCJ=
16607 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16612 # Check to make sure the static flag actually works.
16614 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16615 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16616 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16617 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 lt_prog_compiler_static_works_GCJ=no
16621 save_LDFLAGS="$LDFLAGS"
16622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16623 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16625 # The linker can only warn and ignore the option if not recognized
16626 # So say no if there are warnings
16627 if test -s conftest.err; then
16628 # Append any errors to the config.log.
16629 cat conftest.err 1>&5
16630 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16632 if diff conftest.exp conftest.er2 >/dev/null; then
16633 lt_prog_compiler_static_works_GCJ=yes
16636 lt_prog_compiler_static_works_GCJ=yes
16640 LDFLAGS="$save_LDFLAGS"
16643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16644 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16646 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16649 lt_prog_compiler_static_GCJ=
16653 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16654 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16655 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 lt_cv_prog_compiler_c_o_GCJ=no
16659 $rm -r conftest 2>/dev/null
16663 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16665 lt_compiler_flag="-o out/conftest2.$ac_objext"
16666 # Insert the option either (1) after the last *FLAGS variable, or
16667 # (2) before a word containing "conftest.", or (3) at the end.
16668 # Note that $ac_compile itself does not contain backslashes and begins
16669 # with a dollar sign (not a hyphen), so the echo should work correctly.
16670 lt_compile=`echo "$ac_compile" | $SED \
16671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16673 -e 's:$: $lt_compiler_flag:'`
16674 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16675 (eval "$lt_compile" 2>out/conftest.err)
16677 cat out/conftest.err >&5
16678 echo "$as_me:__oline__: \$? = $ac_status" >&5
16679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16681 # The compiler can only warn and ignore the option if not recognized
16682 # So say no if there are warnings
16683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16686 lt_cv_prog_compiler_c_o_GCJ=yes
16691 # SGI C++ compiler will create directory out/ii_files/ for
16692 # template instantiation
16693 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16694 $rm out/* && rmdir out
16700 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16701 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16704 hard_links="nottested"
16705 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16706 # do not overwrite the value of need_locks provided by the user
16707 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16708 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16713 ln conftest.a conftest.b 2>&5 || hard_links=no
16714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16715 { echo "$as_me:$LINENO: result: $hard_links" >&5
16716 echo "${ECHO_T}$hard_links" >&6; }
16717 if test "$hard_links" = no; then
16718 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16719 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16726 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16727 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16730 allow_undefined_flag_GCJ=
16731 enable_shared_with_static_runtimes_GCJ=no
16733 archive_expsym_cmds_GCJ=
16734 old_archive_From_new_cmds_GCJ=
16735 old_archive_from_expsyms_cmds_GCJ=
16736 export_dynamic_flag_spec_GCJ=
16737 whole_archive_flag_spec_GCJ=
16738 thread_safe_flag_spec_GCJ=
16739 hardcode_libdir_flag_spec_GCJ=
16740 hardcode_libdir_flag_spec_ld_GCJ=
16741 hardcode_libdir_separator_GCJ=
16742 hardcode_direct_GCJ=no
16743 hardcode_minus_L_GCJ=no
16744 hardcode_shlibpath_var_GCJ=unsupported
16745 link_all_deplibs_GCJ=unknown
16746 hardcode_automatic_GCJ=no
16748 module_expsym_cmds_GCJ=
16749 always_export_symbols_GCJ=no
16750 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16751 # include_expsyms should be a list of space-separated symbols to be *always*
16752 # included in the symbol list
16753 include_expsyms_GCJ=
16754 # exclude_expsyms can be an extended regexp of symbols to exclude
16755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16757 # as well as any symbol that contains `d'.
16758 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16760 # platforms (ab)use it in PIC code, but their linkers get confused if
16761 # the symbol is explicitly referenced. Since portable code cannot
16762 # rely on this symbol name, it's probably fine to never include it in
16763 # preloaded symbol tables.
16764 extract_expsyms_cmds=
16765 # Just being paranoid about ensuring that cc_basename is set.
16766 for cc_temp in $compiler""; do
16768 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16769 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16774 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16777 cygwin* | mingw* | pw32*)
16778 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16779 # When not using gcc, we currently assume that we are using
16780 # Microsoft Visual C++.
16781 if test "$GCC" != yes; then
16786 # we just hope/assume this is gcc and not c89 (= MSVC++)
16795 if test "$with_gnu_ld" = yes; then
16796 # If archive_cmds runs LD, not CC, wlarc should be empty
16799 # Set some defaults for GNU ld with shared library support. These
16800 # are reset later if shared libraries are not supported. Putting them
16801 # here allows them to be overridden if necessary.
16802 runpath_var=LD_RUN_PATH
16803 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16804 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16805 # ancient GNU ld didn't support --whole-archive et. al.
16806 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16807 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16809 whole_archive_flag_spec_GCJ=
16811 supports_anon_versioning=no
16812 case `$LD -v 2>/dev/null` in
16813 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16814 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16815 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16816 *\ 2.11.*) ;; # other 2.11 versions
16817 *) supports_anon_versioning=yes ;;
16820 # See if GNU ld supports shared libraries.
16822 aix3* | aix4* | aix5*)
16823 # On AIX/PPC, the GNU linker is very broken
16824 if test "$host_cpu" != ia64; then
16828 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16829 *** to be unable to reliably create shared libraries on AIX.
16830 *** Therefore, libtool is disabling shared libraries support. If you
16831 *** really care for shared libraries, you may want to modify your PATH
16832 *** so that a non-GNU linker is found, and then restart.
16839 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)'
16840 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16841 hardcode_minus_L_GCJ=yes
16843 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16844 # that the semantics of dynamic libraries on AmigaOS, at least up
16845 # to version 4, is to share data among multiple programs linked
16846 # with the same dynamic library. Since this doesn't match the
16847 # behavior of shared libraries on other platforms, we can't use
16853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16854 allow_undefined_flag_GCJ=unsupported
16855 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16856 # support --undefined. This deserves some investigation. FIXME
16857 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16863 cygwin* | mingw* | pw32*)
16864 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16865 # as there is no search path for DLLs.
16866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867 allow_undefined_flag_GCJ=unsupported
16868 always_export_symbols_GCJ=no
16869 enable_shared_with_static_runtimes_GCJ=yes
16870 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16872 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16873 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16874 # If the export-symbols file already is a .def file (1st line
16875 # is EXPORTS), use it as is; otherwise, prepend...
16876 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16877 cp $export_symbols $output_objdir/$soname.def;
16879 echo EXPORTS > $output_objdir/$soname.def;
16880 cat $export_symbols >> $output_objdir/$soname.def;
16882 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16889 hardcode_direct_GCJ=no
16890 hardcode_shlibpath_var_GCJ=no
16891 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16892 export_dynamic_flag_spec_GCJ='${wl}-E'
16893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16894 # Instead, shared libraries are loaded at an image base (0x10000000 by
16895 # default) and relocated if they conflict, which is a slow very memory
16896 # consuming and fragmenting process. To avoid this, we pick a random,
16897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16898 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16899 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16900 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16906 case $cc_basename,$host_cpu in
16907 pgcc*) # Portland Group C compiler
16908 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16909 tmp_addflag=' $pic_flag'
16911 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16912 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16913 tmp_addflag=' $pic_flag -Mnomain' ;;
16914 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16915 tmp_addflag=' -i_dynamic' ;;
16916 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16917 tmp_addflag=' -i_dynamic -nofor_main' ;;
16918 ifc* | ifort*) # Intel Fortran compiler
16919 tmp_addflag=' -nofor_main' ;;
16921 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16923 if test $supports_anon_versioning = yes; then
16924 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16925 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16926 $echo "local: *; };" >> $output_objdir/$libname.ver~
16927 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16936 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16940 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16945 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16949 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16950 *** create shared libraries on Solaris systems. Therefore, libtool
16951 *** is disabling shared libraries support. We urge you to upgrade GNU
16952 *** binutils to release 2.9.1 or newer. Another option is to modify
16953 *** your PATH or compiler configuration so that the native linker is
16954 *** used, and then restart.
16957 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16958 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16959 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16966 case `$LD -v 2>&1` in
16967 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16971 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16972 *** reliably create shared libraries on SCO systems. Therefore, libtool
16973 *** is disabling shared libraries support. We urge you to upgrade GNU
16974 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16975 *** your PATH or compiler configuration so that the native linker is
16976 *** used, and then restart.
16981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16982 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16993 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_direct_GCJ=yes
16996 hardcode_shlibpath_var_GCJ=no
17000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17002 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17009 if test "$ld_shlibs_GCJ" = no; then
17011 hardcode_libdir_flag_spec_GCJ=
17012 export_dynamic_flag_spec_GCJ=
17013 whole_archive_flag_spec_GCJ=
17016 # PORTME fill in a description of your system's linker (not GNU ld)
17019 allow_undefined_flag_GCJ=unsupported
17020 always_export_symbols_GCJ=yes
17021 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'
17022 # Note: this linker hardcodes the directories in LIBPATH if there
17023 # are no directories specified by -L.
17024 hardcode_minus_L_GCJ=yes
17025 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17026 # Neither direct hardcoding nor static linking is supported with a
17028 hardcode_direct_GCJ=unsupported
17033 if test "$host_cpu" = ia64; then
17034 # On IA64, the linker does run time linking by default, so we don't
17035 # have to do anything special.
17036 aix_use_runtimelinking=no
17037 exp_sym_flag='-Bexport'
17040 # If we're using GNU nm, then we don't want the "-C" option.
17041 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17042 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17043 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'
17045 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'
17047 aix_use_runtimelinking=no
17049 # Test if we are trying to use run time linking or normal
17050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17051 # need to do runtime linking.
17052 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17053 for ld_flag in $LDFLAGS; do
17054 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17055 aix_use_runtimelinking=yes
17062 exp_sym_flag='-bexport'
17063 no_entry_flag='-bnoentry'
17066 # When large executables or shared objects are built, AIX ld can
17067 # have problems creating the table of contents. If linking a library
17068 # or program results in "error TOC overflow" add -mminimal-toc to
17069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17072 archive_cmds_GCJ=''
17073 hardcode_direct_GCJ=yes
17074 hardcode_libdir_separator_GCJ=':'
17075 link_all_deplibs_GCJ=yes
17077 if test "$GCC" = yes; then
17078 case $host_os in aix4.[012]|aix4.[012].*)
17079 # We only want to do this on AIX 4.2 and lower, the check
17080 # below for broken collect2 doesn't work under 4.3+
17081 collect2name=`${CC} -print-prog-name=collect2`
17082 if test -f "$collect2name" && \
17083 strings "$collect2name" | grep resolve_lib_name >/dev/null
17085 # We have reworked collect2
17086 hardcode_direct_GCJ=yes
17088 # We have old collect2
17089 hardcode_direct_GCJ=unsupported
17090 # It fails to find uninstalled libraries when the uninstalled
17091 # path is not listed in the libpath. Setting hardcode_minus_L
17092 # to unsupported forces relinking
17093 hardcode_minus_L_GCJ=yes
17094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17095 hardcode_libdir_separator_GCJ=
17099 shared_flag='-shared'
17100 if test "$aix_use_runtimelinking" = yes; then
17101 shared_flag="$shared_flag "'${wl}-G'
17105 if test "$host_cpu" = ia64; then
17106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17107 # chokes on -Wl,-G. The following line is correct:
17110 if test "$aix_use_runtimelinking" = yes; then
17111 shared_flag='${wl}-G'
17113 shared_flag='${wl}-bM:SRE'
17118 # It seems that -bexpall does not export symbols beginning with
17119 # underscore (_), so it is better to generate a list of symbols to export.
17120 always_export_symbols_GCJ=yes
17121 if test "$aix_use_runtimelinking" = yes; then
17122 # Warning - without using the other runtime loading flags (-brtl),
17123 # -berok will link without error, but may produce a broken library.
17124 allow_undefined_flag_GCJ='-berok'
17125 # Determine the default libpath from the value encoded in an empty executable.
17126 cat >conftest.$ac_ext <<_ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } && {
17155 test -z "$ac_c_werror_flag" ||
17156 test ! -s conftest.err
17157 } && test -s conftest$ac_exeext &&
17158 $as_test_x conftest$ac_exeext; then
17160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17162 # Check for a 64-bit object if we didn't find anything.
17163 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; }
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17173 conftest$ac_exeext conftest.$ac_ext
17174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17176 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17177 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17179 if test "$host_cpu" = ia64; then
17180 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17181 allow_undefined_flag_GCJ="-z nodefs"
17182 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17184 # Determine the default libpath from the value encoded in an empty executable.
17185 cat >conftest.$ac_ext <<_ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_link") 2>conftest.er1
17209 grep -v '^ *+' conftest.er1 >conftest.err
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } && {
17214 test -z "$ac_c_werror_flag" ||
17215 test ! -s conftest.err
17216 } && test -s conftest$ac_exeext &&
17217 $as_test_x conftest$ac_exeext; then
17219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17221 # Check for a 64-bit object if we didn't find anything.
17222 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; }
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232 conftest$ac_exeext conftest.$ac_ext
17233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17235 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17236 # Warning - without using the other run time loading flags,
17237 # -berok will link without error, but may produce a broken library.
17238 no_undefined_flag_GCJ=' ${wl}-bernotok'
17239 allow_undefined_flag_GCJ=' ${wl}-berok'
17240 # Exported symbols can be pulled into shared objects from archives
17241 whole_archive_flag_spec_GCJ='$convenience'
17242 archive_cmds_need_lc_GCJ=yes
17243 # This is similar to how AIX traditionally builds its shared libraries.
17244 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17250 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)'
17251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17252 hardcode_minus_L_GCJ=yes
17253 # see comment about different semantics on the GNU ld section
17258 export_dynamic_flag_spec_GCJ=-rdynamic
17261 cygwin* | mingw* | pw32*)
17262 # When not using gcc, we currently assume that we are using
17263 # Microsoft Visual C++.
17264 # hardcode_libdir_flag_spec is actually meaningless, as there is
17265 # no search path for DLLs.
17266 hardcode_libdir_flag_spec_GCJ=' '
17267 allow_undefined_flag_GCJ=unsupported
17268 # Tell ltmain to make .lib files, not .a files.
17270 # Tell ltmain to make .dll files, not .so files.
17272 # FIXME: Setting linknames here is a bad hack.
17273 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17274 # The linker will automatically build a .lib file if we build a DLL.
17275 old_archive_From_new_cmds_GCJ='true'
17276 # FIXME: Should let the user specify the lib program.
17277 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17278 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17279 enable_shared_with_static_runtimes_GCJ=yes
17282 darwin* | rhapsody*)
17284 rhapsody* | darwin1.[012])
17285 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17288 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17289 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17291 case ${MACOSX_DEPLOYMENT_TARGET} in
17293 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17296 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17302 archive_cmds_need_lc_GCJ=no
17303 hardcode_direct_GCJ=no
17304 hardcode_automatic_GCJ=yes
17305 hardcode_shlibpath_var_GCJ=unsupported
17306 whole_archive_flag_spec_GCJ=''
17307 link_all_deplibs_GCJ=yes
17308 if test "$GCC" = yes ; then
17309 output_verbose_link_cmd='echo'
17310 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17311 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17312 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17313 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17314 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}'
17316 case $cc_basename in
17318 output_verbose_link_cmd='echo'
17319 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17320 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17321 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17322 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17323 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}'
17333 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17335 hardcode_shlibpath_var_GCJ=no
17342 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17343 # support. Future versions do this automatically, but an explicit c++rt0.o
17344 # does not break anything, and helps significantly (at the cost of a little
17347 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17348 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17349 hardcode_direct_GCJ=yes
17350 hardcode_shlibpath_var_GCJ=no
17353 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17355 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17356 hardcode_direct_GCJ=yes
17357 hardcode_minus_L_GCJ=yes
17358 hardcode_shlibpath_var_GCJ=no
17361 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17362 freebsd* | kfreebsd*-gnu | dragonfly*)
17363 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17365 hardcode_direct_GCJ=yes
17366 hardcode_shlibpath_var_GCJ=no
17370 if test "$GCC" = yes; then
17371 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'
17373 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'
17375 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17376 hardcode_libdir_separator_GCJ=:
17377 hardcode_direct_GCJ=yes
17379 # hardcode_minus_L: Not really in the search PATH,
17380 # but as the default location of the library.
17381 hardcode_minus_L_GCJ=yes
17382 export_dynamic_flag_spec_GCJ='${wl}-E'
17386 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17387 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17389 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17391 if test "$with_gnu_ld" = no; then
17392 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17393 hardcode_libdir_separator_GCJ=:
17395 hardcode_direct_GCJ=yes
17396 export_dynamic_flag_spec_GCJ='${wl}-E'
17398 # hardcode_minus_L: Not really in the search PATH,
17399 # but as the default location of the library.
17400 hardcode_minus_L_GCJ=yes
17405 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17408 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17411 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17414 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17420 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17423 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17426 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17430 if test "$with_gnu_ld" = no; then
17431 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17432 hardcode_libdir_separator_GCJ=:
17436 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17437 hardcode_direct_GCJ=no
17438 hardcode_shlibpath_var_GCJ=no
17441 hardcode_direct_GCJ=yes
17442 export_dynamic_flag_spec_GCJ='${wl}-E'
17444 # hardcode_minus_L: Not really in the search PATH,
17445 # but as the default location of the library.
17446 hardcode_minus_L_GCJ=yes
17452 irix5* | irix6* | nonstopux*)
17453 if test "$GCC" = yes; then
17454 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'
17456 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'
17457 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17459 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17460 hardcode_libdir_separator_GCJ=:
17461 link_all_deplibs_GCJ=yes
17465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17466 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17468 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17470 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471 hardcode_direct_GCJ=yes
17472 hardcode_shlibpath_var_GCJ=no
17476 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477 hardcode_direct_GCJ=yes
17478 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17479 hardcode_libdir_separator_GCJ=:
17480 hardcode_shlibpath_var_GCJ=no
17484 hardcode_direct_GCJ=yes
17485 hardcode_shlibpath_var_GCJ=no
17486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17487 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17490 export_dynamic_flag_spec_GCJ='${wl}-E'
17493 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17494 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17495 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17498 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17507 hardcode_minus_L_GCJ=yes
17508 allow_undefined_flag_GCJ=unsupported
17509 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'
17510 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17514 if test "$GCC" = yes; then
17515 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17516 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'
17518 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17519 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'
17521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17522 hardcode_libdir_separator_GCJ=:
17525 osf4* | osf5*) # as osf3* with the addition of -msym flag
17526 if test "$GCC" = yes; then
17527 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17528 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'
17529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17531 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17532 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'
17533 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~
17534 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17536 # Both c and cxx compiler support -rpath directly
17537 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17539 hardcode_libdir_separator_GCJ=:
17543 no_undefined_flag_GCJ=' -z text'
17544 if test "$GCC" = yes; then
17546 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17548 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17551 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17553 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17556 hardcode_shlibpath_var_GCJ=no
17558 solaris2.[0-5] | solaris2.[0-5].*) ;;
17560 # The compiler driver will combine linker options so we
17561 # cannot just pass the convience library names through
17562 # without $wl, iff we do not link with $LD.
17563 # Luckily, gcc supports the same syntax we need for Sun Studio.
17564 # Supported since Solaris 2.6 (maybe 2.5.1?)
17567 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17569 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17572 link_all_deplibs_GCJ=yes
17576 if test "x$host_vendor" = xsequent; then
17577 # Use $CC to link under sequent, because it throws in some extra .o
17578 # files that make .init and .fini sections work.
17579 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17584 hardcode_direct_GCJ=yes
17585 hardcode_minus_L_GCJ=yes
17586 hardcode_shlibpath_var_GCJ=no
17590 case $host_vendor in
17592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593 hardcode_direct_GCJ=yes # is this really true???
17596 ## LD is ld it makes a PLAMLIB
17597 ## CC just makes a GrossModule.
17598 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17599 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17600 hardcode_direct_GCJ=no
17603 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17607 runpath_var='LD_RUN_PATH'
17608 hardcode_shlibpath_var_GCJ=no
17612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_shlibpath_var_GCJ=no
17614 export_dynamic_flag_spec_GCJ='-Bexport'
17618 if test -d /usr/nec; then
17619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 hardcode_shlibpath_var_GCJ=no
17621 runpath_var=LD_RUN_PATH
17622 hardcode_runpath_var=yes
17627 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17628 no_undefined_flag_GCJ='${wl}-z,text'
17629 archive_cmds_need_lc_GCJ=no
17630 hardcode_shlibpath_var_GCJ=no
17631 runpath_var='LD_RUN_PATH'
17633 if test "$GCC" = yes; then
17634 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17638 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 sysv5* | sco3.2v5* | sco5v6*)
17643 # Note: We can NOT use -z defs as we might desire, because we do not
17644 # link with -lc, and that would cause any symbols used from libc to
17645 # always be unresolved, which means just about no library would
17646 # ever link correctly. If we're not using GNU ld we use -z text
17647 # though, which does catch some bad symbols but isn't as heavy-handed
17649 no_undefined_flag_GCJ='${wl}-z,text'
17650 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17651 archive_cmds_need_lc_GCJ=no
17652 hardcode_shlibpath_var_GCJ=no
17653 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17654 hardcode_libdir_separator_GCJ=':'
17655 link_all_deplibs_GCJ=yes
17656 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17657 runpath_var='LD_RUN_PATH'
17659 if test "$GCC" = yes; then
17660 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17663 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17664 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17671 hardcode_shlibpath_var_GCJ=no
17680 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17681 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17682 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17685 # Do we need to explicitly link libc?
17687 case "x$archive_cmds_need_lc_GCJ" in
17689 # Assume -lc should be added
17690 archive_cmds_need_lc_GCJ=yes
17692 if test "$enable_shared" = yes && test "$GCC" = yes; then
17693 case $archive_cmds_GCJ in
17695 # FIXME: we may have to deal with multi-command sequences.
17698 # Test whether the compiler implicitly links with -lc since on some
17699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17700 # to ld, don't add -lc before -lgcc.
17701 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17702 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } 2>conftest.err; then
17713 libobjs=conftest.$ac_objext
17715 wl=$lt_prog_compiler_wl_GCJ
17716 pic_flag=$lt_prog_compiler_pic_GCJ
17722 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17723 allow_undefined_flag_GCJ=
17724 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17725 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }
17730 archive_cmds_need_lc_GCJ=no
17732 archive_cmds_need_lc_GCJ=yes
17734 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17736 cat conftest.err 1>&5
17739 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17740 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17747 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17749 library_names_spec=
17750 libname_spec='lib$name'
17754 postuninstall_cmds=
17758 shlibpath_overrides_runpath=unknown
17760 dynamic_linker="$host_os ld.so"
17761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17762 if test "$GCC" = yes; then
17763 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17764 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17765 # if the path contains ";" then we assume it to be the separator
17766 # otherwise default to the standard path separator (i.e. ":") - it is
17767 # assumed that no part of a normal pathname contains ";" but that should
17768 # okay in the real world where ";" in dirpaths is itself problematic.
17769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17776 need_lib_prefix=unknown
17777 hardcode_into_libs=no
17779 # when you set need_version to no, make sure it does not cause -set_version
17780 # flags to be left without arguments
17781 need_version=unknown
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17787 shlibpath_var=LIBPATH
17789 # AIX 3 has no versioning support, so we append a major version to the name.
17790 soname_spec='${libname}${release}${shared_ext}$major'
17797 hardcode_into_libs=yes
17798 if test "$host_cpu" = ia64; then
17799 # AIX 5 supports IA64
17800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17801 shlibpath_var=LD_LIBRARY_PATH
17803 # With GCC up to 2.95.x, collect2 would create an import file
17804 # for dependence libraries. The import file would start with
17805 # the line `#! .'. This would cause the generated library to
17806 # depend on `.', always an invalid library. This was fixed in
17807 # development snapshots of GCC prior to 3.0.
17809 aix4 | aix4.[01] | aix4.[01].*)
17810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17812 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17815 can_build_shared=no
17819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17820 # soname into executable. Probably we can add versioning support to
17821 # collect2, so additional links can be useful in future.
17822 if test "$aix_use_runtimelinking" = yes; then
17823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17824 # instead of lib<name>.a to let people know that these are not
17825 # typical AIX shared libraries.
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17828 # We preserve .a as extension for shared libraries through AIX4.2
17829 # and later when we are not doing run time linking.
17830 library_names_spec='${libname}${release}.a $libname.a'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17833 shlibpath_var=LIBPATH
17838 library_names_spec='$libname.ixlibrary $libname.a'
17839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17840 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'
17844 library_names_spec='${libname}${shared_ext}'
17845 dynamic_linker="$host_os ld.so"
17846 shlibpath_var=LIBRARY_PATH
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17858 # the default ld.so.conf also contains /usr/contrib/lib and
17859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17860 # libtool to hard-code these into programs
17863 cygwin* | mingw* | pw32*)
17864 version_type=windows
17869 case $GCC,$host_os in
17870 yes,cygwin* | yes,mingw* | yes,pw32*)
17871 library_names_spec='$libname.dll.a'
17872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17873 postinstall_cmds='base_file=`basename \${file}`~
17874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17875 dldir=$destdir/`dirname \$dlpath`~
17876 test -d \$dldir || mkdir -p \$dldir~
17877 $install_prog $dir/$dlname \$dldir/$dlname~
17878 chmod a+x \$dldir/$dlname'
17879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17880 dlpath=$dir/\$dldll~
17882 shlibpath_overrides_runpath=yes
17886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17888 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17891 # MinGW DLLs use traditional 'lib' prefix
17892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17894 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17895 # It is most probably a Windows format PATH printed by
17896 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17897 # path with ; separators, and with drive letters. We can handle the
17898 # drive letters (cygwin fileutils understands them), so leave them,
17899 # especially as we might pass files found there to a mingw objdump,
17900 # which wouldn't understand a cygwinified path. Ahh.
17901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17907 # pw32 DLLs use 'pw' prefix rather than 'lib'
17908 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17914 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17916 supports_anon_versioning=no
17917 case `$LD -v 2>/dev/null` in
17918 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17920 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17921 *\ 2.11.*) ;; # other 2.11 versions
17922 *) supports_anon_versioning=yes ;;
17924 if test $supports_anon_versioning = yes; then
17925 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17927 $echo "local: *; };" >> $output_objdir/$libname.ver~
17928 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17930 $archive_expsym_cmds="$archive_cmds"
17938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17941 dynamic_linker='Win32 ld.exe'
17942 # FIXME: first we should search . and the directory the executable is in
17946 darwin* | rhapsody*)
17947 dynamic_linker="$host_os dyld"
17948 version_type=darwin
17951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17952 soname_spec='${libname}${release}${major}$shared_ext'
17953 shlibpath_overrides_runpath=yes
17954 shlibpath_var=DYLD_LIBRARY_PATH
17955 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17957 if test "$GCC" = yes; then
17958 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"`
17960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 shlibpath_var=LD_LIBRARY_PATH
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17983 soname_spec='${libname}${release}${shared_ext}$major'
17984 shlibpath_var=LD_LIBRARY_PATH
17985 shlibpath_overrides_runpath=no
17986 hardcode_into_libs=yes
17987 dynamic_linker='GNU ld.so'
17990 freebsd* | dragonfly*)
17991 # DragonFly does not have aout. When/if they implement a new
17992 # versioning mechanism, adjust this.
17993 if test -x /usr/bin/objformat; then
17994 objformat=`/usr/bin/objformat`
17997 freebsd[123]*) objformat=aout ;;
17998 *) objformat=elf ;;
18001 # Handle Gentoo/FreeBSD as it was Linux
18002 case $host_vendor in
18004 version_type=linux ;;
18006 version_type=freebsd-$objformat ;;
18009 case $version_type in
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18026 shlibpath_var=LD_LIBRARY_PATH
18029 shlibpath_overrides_runpath=yes
18031 freebsd3.[01]* | freebsdelf3.[01]*)
18032 shlibpath_overrides_runpath=yes
18033 hardcode_into_libs=yes
18035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037 shlibpath_overrides_runpath=no
18038 hardcode_into_libs=yes
18040 freebsd*) # from 4.6 on
18041 shlibpath_overrides_runpath=yes
18042 hardcode_into_libs=yes
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 shlibpath_var=LD_LIBRARY_PATH
18054 hardcode_into_libs=yes
18057 hpux9* | hpux10* | hpux11*)
18058 # Give a soname corresponding to the major version so that dld.sl refuses to
18059 # link against other versions.
18066 hardcode_into_libs=yes
18067 dynamic_linker="$host_os dld.so"
18068 shlibpath_var=LD_LIBRARY_PATH
18069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071 soname_spec='${libname}${release}${shared_ext}$major'
18072 if test "X$HPUX_IA64_MODE" = X32; then
18073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18081 hardcode_into_libs=yes
18082 dynamic_linker="$host_os dld.sl"
18083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092 dynamic_linker="$host_os dld.sl"
18093 shlibpath_var=SHLIB_PATH
18094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 soname_spec='${libname}${release}${shared_ext}$major'
18099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18100 postinstall_cmds='chmod 555 $lib'
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 shlibpath_overrides_runpath=no
18112 hardcode_into_libs=yes
18115 irix5* | irix6* | nonstopux*)
18117 nonstopux*) version_type=nonstopux ;;
18119 if test "$lt_cv_prog_gnu_ld" = yes; then
18127 soname_spec='${libname}${release}${shared_ext}$major'
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18130 irix5* | nonstopux*)
18131 libsuff= shlibsuff=
18134 case $LD in # libtool.m4 will add one of these switches to LD
18135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18136 libsuff= shlibsuff= libmagic=32-bit;;
18137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18138 libsuff=32 shlibsuff=N32 libmagic=N32;;
18139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18141 *) libsuff= shlibsuff= libmagic=never-match;;
18145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18146 shlibpath_overrides_runpath=no
18147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18149 hardcode_into_libs=yes
18152 # No shared lib support for Linux oldld, aout, or coff.
18153 linux*oldld* | linux*aout* | linux*coff*)
18157 # This must be Linux ELF.
18162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163 soname_spec='${libname}${release}${shared_ext}$major'
18164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18165 shlibpath_var=LD_LIBRARY_PATH
18166 shlibpath_overrides_runpath=no
18167 # This implies no fast_install, which is unacceptable.
18168 # Some rework will be needed to allow for fast_install
18169 # before this can be enabled.
18170 hardcode_into_libs=yes
18172 # Append ld.so.conf contents to the search path
18173 if test -f /etc/ld.so.conf; then
18174 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18178 # We used to test for /lib/ld.so.1 and disable shared libraries on
18179 # powerpc, because MkLinux only supported shared libraries with the
18180 # GNU dynamic linker. Since this was broken with cross compilers,
18181 # most powerpc-linux boxes support dynamic linking these days and
18182 # people can always --disable-shared, the test was removed, and we
18183 # assume the GNU/Linux dynamic linker is in use.
18184 dynamic_linker='GNU/Linux ld.so'
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=no
18195 hardcode_into_libs=yes
18196 dynamic_linker='GNU ld.so'
18203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18206 dynamic_linker='NetBSD (a.out) ld.so'
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 dynamic_linker='NetBSD ld.elf_so'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 shlibpath_overrides_runpath=yes
18214 hardcode_into_libs=yes
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 shlibpath_overrides_runpath=yes
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18236 sys_lib_dlsearch_path_spec="/usr/lib"
18238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18241 *) need_version=no ;;
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18248 openbsd2.[89] | openbsd2.[89].*)
18249 shlibpath_overrides_runpath=no
18252 shlibpath_overrides_runpath=yes
18256 shlibpath_overrides_runpath=yes
18261 libname_spec='$name'
18264 library_names_spec='$libname${shared_ext} $libname.a'
18265 dynamic_linker='OS/2 ld.exe'
18266 shlibpath_var=LIBPATH
18269 osf3* | osf4* | osf5*)
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18288 hardcode_into_libs=yes
18289 # ldd complains unless libraries are executable
18290 postinstall_cmds='chmod +x $lib'
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 if test "$with_gnu_ld" = yes; then
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 case $host_vendor in
18312 shlibpath_overrides_runpath=no
18314 export_dynamic_flag_spec='${wl}-Blargedynsym'
18315 runpath_var=LD_RUN_PATH
18323 shlibpath_overrides_runpath=no
18324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18330 if test -d /usr/nec ;then
18332 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18333 soname_spec='$libname${shared_ext}.$major'
18334 shlibpath_var=LD_LIBRARY_PATH
18338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18339 version_type=freebsd-elf
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 hardcode_into_libs=yes
18346 if test "$with_gnu_ld" = yes; then
18347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18348 shlibpath_overrides_runpath=no
18350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18351 shlibpath_overrides_runpath=yes
18354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18358 sys_lib_dlsearch_path_spec='/usr/lib'
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 soname_spec='${libname}${release}${shared_ext}$major'
18365 shlibpath_var=LD_LIBRARY_PATH
18372 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18373 echo "${ECHO_T}$dynamic_linker" >&6; }
18374 test "$dynamic_linker" = no && can_build_shared=no
18376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18377 if test "$GCC" = yes; then
18378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18381 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18383 hardcode_action_GCJ=
18384 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18385 test -n "$runpath_var_GCJ" || \
18386 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18388 # We can hardcode non-existant directories.
18389 if test "$hardcode_direct_GCJ" != no &&
18390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18391 # have to relink, otherwise we might link with an installed library
18392 # when we should be linking with a yet-to-be-installed one
18393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18394 test "$hardcode_minus_L_GCJ" != no; then
18395 # Linking always hardcodes the temporary library directory.
18396 hardcode_action_GCJ=relink
18398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18399 hardcode_action_GCJ=immediate
18402 # We cannot hardcode anything, or else we can only hardcode existing
18404 hardcode_action_GCJ=unsupported
18406 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18407 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18409 if test "$hardcode_action_GCJ" = relink; then
18410 # Fast installation is not supported
18411 enable_fast_install=no
18412 elif test "$shlibpath_overrides_runpath" = yes ||
18413 test "$enable_shared" = no; then
18414 # Fast installation is not necessary
18415 enable_fast_install=needless
18419 # The else clause should only fire when bootstrapping the
18420 # libtool distribution, otherwise you forgot to ship ltmain.sh
18421 # with your package, and you will get complaints that there are
18422 # no rules to generate ltmain.sh.
18423 if test -f "$ltmain"; then
18424 # See if we are running on zsh, and set the options which allow our commands through
18425 # without removal of \ escapes.
18426 if test -n "${ZSH_VERSION+set}" ; then
18427 setopt NO_GLOB_SUBST
18429 # Now quote all the things that may contain metacharacters while being
18430 # careful not to overquote the AC_SUBSTed values. We take copies of the
18431 # variables and quote the copies for generation of the libtool script.
18432 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18434 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18435 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18436 deplibs_check_method reload_flag reload_cmds need_locks \
18437 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18438 lt_cv_sys_global_symbol_to_c_name_address \
18439 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18440 old_postinstall_cmds old_postuninstall_cmds \
18444 lt_prog_compiler_wl_GCJ \
18445 lt_prog_compiler_pic_GCJ \
18446 lt_prog_compiler_static_GCJ \
18447 lt_prog_compiler_no_builtin_flag_GCJ \
18448 export_dynamic_flag_spec_GCJ \
18449 thread_safe_flag_spec_GCJ \
18450 whole_archive_flag_spec_GCJ \
18451 enable_shared_with_static_runtimes_GCJ \
18452 old_archive_cmds_GCJ \
18453 old_archive_from_new_cmds_GCJ \
18454 predep_objects_GCJ \
18455 postdep_objects_GCJ \
18458 compiler_lib_search_path_GCJ \
18460 archive_expsym_cmds_GCJ \
18461 postinstall_cmds_GCJ \
18462 postuninstall_cmds_GCJ \
18463 old_archive_from_expsyms_cmds_GCJ \
18464 allow_undefined_flag_GCJ \
18465 no_undefined_flag_GCJ \
18466 export_symbols_cmds_GCJ \
18467 hardcode_libdir_flag_spec_GCJ \
18468 hardcode_libdir_flag_spec_ld_GCJ \
18469 hardcode_libdir_separator_GCJ \
18470 hardcode_automatic_GCJ \
18472 module_expsym_cmds_GCJ \
18473 lt_cv_prog_compiler_c_o_GCJ \
18474 exclude_expsyms_GCJ \
18475 include_expsyms_GCJ; do
18478 old_archive_cmds_GCJ | \
18479 old_archive_from_new_cmds_GCJ | \
18480 archive_cmds_GCJ | \
18481 archive_expsym_cmds_GCJ | \
18482 module_cmds_GCJ | \
18483 module_expsym_cmds_GCJ | \
18484 old_archive_from_expsyms_cmds_GCJ | \
18485 export_symbols_cmds_GCJ | \
18486 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18487 postinstall_cmds | postuninstall_cmds | \
18488 old_postinstall_cmds | old_postuninstall_cmds | \
18489 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18490 # Double-quote double-evaled strings.
18491 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18500 *'\$0 --fallback-echo"')
18501 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18507 cat <<__EOF__ >> "$cfgfile"
18508 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18510 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18512 # Shell to use when invoking shell scripts.
18515 # Whether or not to build shared libraries.
18516 build_libtool_libs=$enable_shared
18518 # Whether or not to build static libraries.
18519 build_old_libs=$enable_static
18521 # Whether or not to add -lc for building shared libraries.
18522 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18524 # Whether or not to disallow shared libs when runtime libs are static
18525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18527 # Whether or not to optimize for fast installation.
18528 fast_install=$enable_fast_install
18531 host_alias=$host_alias
18535 # The build system.
18536 build_alias=$build_alias
18540 # An echo program that does not interpret backslashes.
18545 AR_FLAGS=$lt_AR_FLAGS
18550 # LTCC compiler flags.
18551 LTCFLAGS=$lt_LTCFLAGS
18553 # A language-specific compiler.
18554 CC=$lt_compiler_GCJ
18556 # Is the compiler the GNU C compiler?
18562 # The linker used to build libraries.
18565 # Whether we need hard or soft links.
18568 # A BSD-compatible nm program.
18571 # A symbol stripping program
18574 # Used to examine libraries when file_magic_cmd begins "file"
18575 MAGIC_CMD=$MAGIC_CMD
18577 # Used on cygwin: DLL creation program.
18580 # Used on cygwin: object dumper.
18583 # Used on cygwin: assembler.
18586 # The name of the directory that contains temporary libtool files.
18589 # How to create reloadable object files.
18590 reload_flag=$lt_reload_flag
18591 reload_cmds=$lt_reload_cmds
18593 # How to pass a linker flag through the compiler.
18594 wl=$lt_lt_prog_compiler_wl_GCJ
18596 # Object file suffix (normally "o").
18597 objext="$ac_objext"
18599 # Old archive suffix (normally "a").
18602 # Shared library suffix (normally ".so").
18603 shrext_cmds='$shrext_cmds'
18605 # Executable file suffix (normally "").
18608 # Additional compiler flags for building library objects.
18609 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18612 # What is the maximum length of a command?
18613 max_cmd_len=$lt_cv_sys_max_cmd_len
18615 # Does compiler simultaneously support -c and -o options?
18616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18618 # Must we lock files when doing compilation?
18619 need_locks=$lt_need_locks
18621 # Do we need the lib prefix for modules?
18622 need_lib_prefix=$need_lib_prefix
18624 # Do we need a version for libraries?
18625 need_version=$need_version
18627 # Whether dlopen is supported.
18628 dlopen_support=$enable_dlopen
18630 # Whether dlopen of programs is supported.
18631 dlopen_self=$enable_dlopen_self
18633 # Whether dlopen of statically linked programs is supported.
18634 dlopen_self_static=$enable_dlopen_self_static
18636 # Compiler flag to prevent dynamic linking.
18637 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18639 # Compiler flag to turn off builtin functions.
18640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18642 # Compiler flag to allow reflexive dlopens.
18643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18645 # Compiler flag to generate shared objects directly from archives.
18646 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18648 # Compiler flag to generate thread-safe objects.
18649 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18651 # Library versioning type.
18652 version_type=$version_type
18654 # Format of library name prefix.
18655 libname_spec=$lt_libname_spec
18657 # List of archive names. First name is the real one, the rest are links.
18658 # The last name is the one that the linker finds with -lNAME.
18659 library_names_spec=$lt_library_names_spec
18661 # The coded name of the library, if different from the real name.
18662 soname_spec=$lt_soname_spec
18664 # Commands used to build and install an old-style archive.
18666 old_archive_cmds=$lt_old_archive_cmds_GCJ
18667 old_postinstall_cmds=$lt_old_postinstall_cmds
18668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18670 # Create an old-style archive from a shared archive.
18671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18673 # Create a temporary old-style archive to link instead of a shared archive.
18674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18676 # Commands used to build and install a shared archive.
18677 archive_cmds=$lt_archive_cmds_GCJ
18678 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18679 postinstall_cmds=$lt_postinstall_cmds
18680 postuninstall_cmds=$lt_postuninstall_cmds
18682 # Commands used to build a loadable module (assumed same as above if empty)
18683 module_cmds=$lt_module_cmds_GCJ
18684 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18686 # Commands to strip libraries.
18687 old_striplib=$lt_old_striplib
18688 striplib=$lt_striplib
18690 # Dependencies to place before the objects being linked to create a
18692 predep_objects=$lt_predep_objects_GCJ
18694 # Dependencies to place after the objects being linked to create a
18696 postdep_objects=$lt_postdep_objects_GCJ
18698 # Dependencies to place before the objects being linked to create a
18700 predeps=$lt_predeps_GCJ
18702 # Dependencies to place after the objects being linked to create a
18704 postdeps=$lt_postdeps_GCJ
18706 # The library search path used internally by the compiler when linking
18707 # a shared library.
18708 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18710 # Method to check whether dependent libraries are shared objects.
18711 deplibs_check_method=$lt_deplibs_check_method
18713 # Command to use when deplibs_check_method == file_magic.
18714 file_magic_cmd=$lt_file_magic_cmd
18716 # Flag that allows shared libraries with undefined symbols to be built.
18717 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18719 # Flag that forces no undefined symbols.
18720 no_undefined_flag=$lt_no_undefined_flag_GCJ
18722 # Commands used to finish a libtool library installation in a directory.
18723 finish_cmds=$lt_finish_cmds
18725 # Same as above, but a single script fragment to be evaled but not shown.
18726 finish_eval=$lt_finish_eval
18728 # Take the output of nm and produce a listing of raw symbols and C names.
18729 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18731 # Transform the output of nm in a proper C declaration
18732 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18734 # Transform the output of nm in a C name address pair
18735 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18737 # This is the shared library runtime path variable.
18738 runpath_var=$runpath_var
18740 # This is the shared library path variable.
18741 shlibpath_var=$shlibpath_var
18743 # Is shlibpath searched before the hard-coded library search path?
18744 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18746 # How to hardcode a shared library path into an executable.
18747 hardcode_action=$hardcode_action_GCJ
18749 # Whether we should hardcode library paths into libraries.
18750 hardcode_into_libs=$hardcode_into_libs
18752 # Flag to hardcode \$libdir into a binary during linking.
18753 # This must work even if \$libdir does not exist.
18754 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18756 # If ld is used when linking, flag to hardcode \$libdir into
18757 # a binary during linking. This must work even if \$libdir does
18759 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18761 # Whether we need a single -rpath flag with a separated argument.
18762 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18764 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18765 # resulting binary.
18766 hardcode_direct=$hardcode_direct_GCJ
18768 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18769 # resulting binary.
18770 hardcode_minus_L=$hardcode_minus_L_GCJ
18772 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18773 # the resulting binary.
18774 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18776 # Set to yes if building a shared library automatically hardcodes DIR into the library
18777 # and all subsequent libraries and executables linked against it.
18778 hardcode_automatic=$hardcode_automatic_GCJ
18780 # Variables whose values should be saved in libtool wrapper scripts and
18781 # restored at relink time.
18782 variables_saved_for_relink="$variables_saved_for_relink"
18784 # Whether libtool must link a program against all its dependency libraries.
18785 link_all_deplibs=$link_all_deplibs_GCJ
18787 # Compile-time system search path for libraries
18788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18790 # Run-time system search path for libraries
18791 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18793 # Fix the shell variable \$srcfile for the compiler.
18794 fix_srcfile_path="$fix_srcfile_path_GCJ"
18796 # Set to yes if exported symbols are required.
18797 always_export_symbols=$always_export_symbols_GCJ
18799 # The commands to list exported symbols.
18800 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18802 # The commands to extract the exported symbol list from a shared archive.
18803 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18805 # Symbols that should not be listed in the preloaded symbols.
18806 exclude_expsyms=$lt_exclude_expsyms_GCJ
18808 # Symbols that must always be exported.
18809 include_expsyms=$lt_include_expsyms_GCJ
18811 # ### END LIBTOOL TAG CONFIG: $tagname
18817 # If there is no Makefile yet, we rely on a make rule to execute
18818 # `config.status --recheck' to rerun these tests and create the
18819 # libtool script then.
18820 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18821 if test -f "$ltmain_in"; then
18822 test -f Makefile && make "$ltmain"
18828 ac_cpp='$CPP $CPPFLAGS'
18829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18843 # Source file extension for RC test sources.
18846 # Object file extension for compiled RC test sources.
18850 # Code to be used in simple compile tests
18851 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18853 # Code to be used in simple link tests
18854 lt_simple_link_test_code="$lt_simple_compile_test_code"
18856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18858 # If no C compiler was specified, use CC.
18861 # If no C compiler flags were specified, use CFLAGS.
18862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18864 # Allow CC to be a program name with arguments.
18868 # save warnings/boilerplate of simple test code
18869 ac_outfile=conftest.$ac_objext
18870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18872 _lt_compiler_boilerplate=`cat conftest.err`
18875 ac_outfile=conftest.$ac_objext
18876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18878 _lt_linker_boilerplate=`cat conftest.err`
18882 # Allow CC to be a program name with arguments.
18887 for cc_temp in $compiler""; do
18889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18897 lt_cv_prog_compiler_c_o_RC=yes
18899 # The else clause should only fire when bootstrapping the
18900 # libtool distribution, otherwise you forgot to ship ltmain.sh
18901 # with your package, and you will get complaints that there are
18902 # no rules to generate ltmain.sh.
18903 if test -f "$ltmain"; then
18904 # See if we are running on zsh, and set the options which allow our commands through
18905 # without removal of \ escapes.
18906 if test -n "${ZSH_VERSION+set}" ; then
18907 setopt NO_GLOB_SUBST
18909 # Now quote all the things that may contain metacharacters while being
18910 # careful not to overquote the AC_SUBSTed values. We take copies of the
18911 # variables and quote the copies for generation of the libtool script.
18912 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18914 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18915 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18916 deplibs_check_method reload_flag reload_cmds need_locks \
18917 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18918 lt_cv_sys_global_symbol_to_c_name_address \
18919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18920 old_postinstall_cmds old_postuninstall_cmds \
18924 lt_prog_compiler_wl_RC \
18925 lt_prog_compiler_pic_RC \
18926 lt_prog_compiler_static_RC \
18927 lt_prog_compiler_no_builtin_flag_RC \
18928 export_dynamic_flag_spec_RC \
18929 thread_safe_flag_spec_RC \
18930 whole_archive_flag_spec_RC \
18931 enable_shared_with_static_runtimes_RC \
18932 old_archive_cmds_RC \
18933 old_archive_from_new_cmds_RC \
18934 predep_objects_RC \
18935 postdep_objects_RC \
18938 compiler_lib_search_path_RC \
18940 archive_expsym_cmds_RC \
18941 postinstall_cmds_RC \
18942 postuninstall_cmds_RC \
18943 old_archive_from_expsyms_cmds_RC \
18944 allow_undefined_flag_RC \
18945 no_undefined_flag_RC \
18946 export_symbols_cmds_RC \
18947 hardcode_libdir_flag_spec_RC \
18948 hardcode_libdir_flag_spec_ld_RC \
18949 hardcode_libdir_separator_RC \
18950 hardcode_automatic_RC \
18952 module_expsym_cmds_RC \
18953 lt_cv_prog_compiler_c_o_RC \
18954 exclude_expsyms_RC \
18955 include_expsyms_RC; do
18958 old_archive_cmds_RC | \
18959 old_archive_from_new_cmds_RC | \
18960 archive_cmds_RC | \
18961 archive_expsym_cmds_RC | \
18963 module_expsym_cmds_RC | \
18964 old_archive_from_expsyms_cmds_RC | \
18965 export_symbols_cmds_RC | \
18966 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18967 postinstall_cmds | postuninstall_cmds | \
18968 old_postinstall_cmds | old_postuninstall_cmds | \
18969 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18970 # Double-quote double-evaled strings.
18971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18980 *'\$0 --fallback-echo"')
18981 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18987 cat <<__EOF__ >> "$cfgfile"
18988 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18992 # Shell to use when invoking shell scripts.
18995 # Whether or not to build shared libraries.
18996 build_libtool_libs=$enable_shared
18998 # Whether or not to build static libraries.
18999 build_old_libs=$enable_static
19001 # Whether or not to add -lc for building shared libraries.
19002 build_libtool_need_lc=$archive_cmds_need_lc_RC
19004 # Whether or not to disallow shared libs when runtime libs are static
19005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19007 # Whether or not to optimize for fast installation.
19008 fast_install=$enable_fast_install
19011 host_alias=$host_alias
19015 # The build system.
19016 build_alias=$build_alias
19020 # An echo program that does not interpret backslashes.
19025 AR_FLAGS=$lt_AR_FLAGS
19030 # LTCC compiler flags.
19031 LTCFLAGS=$lt_LTCFLAGS
19033 # A language-specific compiler.
19036 # Is the compiler the GNU C compiler?
19042 # The linker used to build libraries.
19045 # Whether we need hard or soft links.
19048 # A BSD-compatible nm program.
19051 # A symbol stripping program
19054 # Used to examine libraries when file_magic_cmd begins "file"
19055 MAGIC_CMD=$MAGIC_CMD
19057 # Used on cygwin: DLL creation program.
19060 # Used on cygwin: object dumper.
19063 # Used on cygwin: assembler.
19066 # The name of the directory that contains temporary libtool files.
19069 # How to create reloadable object files.
19070 reload_flag=$lt_reload_flag
19071 reload_cmds=$lt_reload_cmds
19073 # How to pass a linker flag through the compiler.
19074 wl=$lt_lt_prog_compiler_wl_RC
19076 # Object file suffix (normally "o").
19077 objext="$ac_objext"
19079 # Old archive suffix (normally "a").
19082 # Shared library suffix (normally ".so").
19083 shrext_cmds='$shrext_cmds'
19085 # Executable file suffix (normally "").
19088 # Additional compiler flags for building library objects.
19089 pic_flag=$lt_lt_prog_compiler_pic_RC
19092 # What is the maximum length of a command?
19093 max_cmd_len=$lt_cv_sys_max_cmd_len
19095 # Does compiler simultaneously support -c and -o options?
19096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19098 # Must we lock files when doing compilation?
19099 need_locks=$lt_need_locks
19101 # Do we need the lib prefix for modules?
19102 need_lib_prefix=$need_lib_prefix
19104 # Do we need a version for libraries?
19105 need_version=$need_version
19107 # Whether dlopen is supported.
19108 dlopen_support=$enable_dlopen
19110 # Whether dlopen of programs is supported.
19111 dlopen_self=$enable_dlopen_self
19113 # Whether dlopen of statically linked programs is supported.
19114 dlopen_self_static=$enable_dlopen_self_static
19116 # Compiler flag to prevent dynamic linking.
19117 link_static_flag=$lt_lt_prog_compiler_static_RC
19119 # Compiler flag to turn off builtin functions.
19120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19122 # Compiler flag to allow reflexive dlopens.
19123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19125 # Compiler flag to generate shared objects directly from archives.
19126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19128 # Compiler flag to generate thread-safe objects.
19129 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19131 # Library versioning type.
19132 version_type=$version_type
19134 # Format of library name prefix.
19135 libname_spec=$lt_libname_spec
19137 # List of archive names. First name is the real one, the rest are links.
19138 # The last name is the one that the linker finds with -lNAME.
19139 library_names_spec=$lt_library_names_spec
19141 # The coded name of the library, if different from the real name.
19142 soname_spec=$lt_soname_spec
19144 # Commands used to build and install an old-style archive.
19146 old_archive_cmds=$lt_old_archive_cmds_RC
19147 old_postinstall_cmds=$lt_old_postinstall_cmds
19148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19150 # Create an old-style archive from a shared archive.
19151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19153 # Create a temporary old-style archive to link instead of a shared archive.
19154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19156 # Commands used to build and install a shared archive.
19157 archive_cmds=$lt_archive_cmds_RC
19158 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19159 postinstall_cmds=$lt_postinstall_cmds
19160 postuninstall_cmds=$lt_postuninstall_cmds
19162 # Commands used to build a loadable module (assumed same as above if empty)
19163 module_cmds=$lt_module_cmds_RC
19164 module_expsym_cmds=$lt_module_expsym_cmds_RC
19166 # Commands to strip libraries.
19167 old_striplib=$lt_old_striplib
19168 striplib=$lt_striplib
19170 # Dependencies to place before the objects being linked to create a
19172 predep_objects=$lt_predep_objects_RC
19174 # Dependencies to place after the objects being linked to create a
19176 postdep_objects=$lt_postdep_objects_RC
19178 # Dependencies to place before the objects being linked to create a
19180 predeps=$lt_predeps_RC
19182 # Dependencies to place after the objects being linked to create a
19184 postdeps=$lt_postdeps_RC
19186 # The library search path used internally by the compiler when linking
19187 # a shared library.
19188 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19190 # Method to check whether dependent libraries are shared objects.
19191 deplibs_check_method=$lt_deplibs_check_method
19193 # Command to use when deplibs_check_method == file_magic.
19194 file_magic_cmd=$lt_file_magic_cmd
19196 # Flag that allows shared libraries with undefined symbols to be built.
19197 allow_undefined_flag=$lt_allow_undefined_flag_RC
19199 # Flag that forces no undefined symbols.
19200 no_undefined_flag=$lt_no_undefined_flag_RC
19202 # Commands used to finish a libtool library installation in a directory.
19203 finish_cmds=$lt_finish_cmds
19205 # Same as above, but a single script fragment to be evaled but not shown.
19206 finish_eval=$lt_finish_eval
19208 # Take the output of nm and produce a listing of raw symbols and C names.
19209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19211 # Transform the output of nm in a proper C declaration
19212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19214 # Transform the output of nm in a C name address pair
19215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19217 # This is the shared library runtime path variable.
19218 runpath_var=$runpath_var
19220 # This is the shared library path variable.
19221 shlibpath_var=$shlibpath_var
19223 # Is shlibpath searched before the hard-coded library search path?
19224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19226 # How to hardcode a shared library path into an executable.
19227 hardcode_action=$hardcode_action_RC
19229 # Whether we should hardcode library paths into libraries.
19230 hardcode_into_libs=$hardcode_into_libs
19232 # Flag to hardcode \$libdir into a binary during linking.
19233 # This must work even if \$libdir does not exist.
19234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19236 # If ld is used when linking, flag to hardcode \$libdir into
19237 # a binary during linking. This must work even if \$libdir does
19239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19241 # Whether we need a single -rpath flag with a separated argument.
19242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19245 # resulting binary.
19246 hardcode_direct=$hardcode_direct_RC
19248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19249 # resulting binary.
19250 hardcode_minus_L=$hardcode_minus_L_RC
19252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19253 # the resulting binary.
19254 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19256 # Set to yes if building a shared library automatically hardcodes DIR into the library
19257 # and all subsequent libraries and executables linked against it.
19258 hardcode_automatic=$hardcode_automatic_RC
19260 # Variables whose values should be saved in libtool wrapper scripts and
19261 # restored at relink time.
19262 variables_saved_for_relink="$variables_saved_for_relink"
19264 # Whether libtool must link a program against all its dependency libraries.
19265 link_all_deplibs=$link_all_deplibs_RC
19267 # Compile-time system search path for libraries
19268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19270 # Run-time system search path for libraries
19271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19273 # Fix the shell variable \$srcfile for the compiler.
19274 fix_srcfile_path="$fix_srcfile_path_RC"
19276 # Set to yes if exported symbols are required.
19277 always_export_symbols=$always_export_symbols_RC
19279 # The commands to list exported symbols.
19280 export_symbols_cmds=$lt_export_symbols_cmds_RC
19282 # The commands to extract the exported symbol list from a shared archive.
19283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19285 # Symbols that should not be listed in the preloaded symbols.
19286 exclude_expsyms=$lt_exclude_expsyms_RC
19288 # Symbols that must always be exported.
19289 include_expsyms=$lt_include_expsyms_RC
19291 # ### END LIBTOOL TAG CONFIG: $tagname
19297 # If there is no Makefile yet, we rely on a make rule to execute
19298 # `config.status --recheck' to rerun these tests and create the
19299 # libtool script then.
19300 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19301 if test -f "$ltmain_in"; then
19302 test -f Makefile && make "$ltmain"
19308 ac_cpp='$CPP $CPPFLAGS'
19309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19319 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19320 { (exit 1); exit 1; }; }
19324 # Append the new tag name to the list of available tags.
19325 if test -n "$tagname" ; then
19326 available_tags="$available_tags $tagname"
19332 # Now substitute the updated list of available tags.
19333 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19334 mv "${ofile}T" "$ofile"
19338 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19339 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19340 { (exit 1); exit 1; }; }
19346 # This can be used to rebuild libtool when needed
19347 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19349 # Always use our own libtool.
19350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19352 # Prevent multiple expansion
19374 ac_cpp='$CPP $CPPFLAGS'
19375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19378 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
19380 # On Suns, sometimes $CPP names a directory.
19381 if test -n "$CPP" && test -d "$CPP"; then
19384 if test -z "$CPP"; then
19385 if test "${ac_cv_prog_CPP+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 # Double quotes because CPP needs to be expanded
19389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19391 ac_preproc_ok=false
19392 for ac_c_preproc_warn_flag in '' yes
19394 # Use a header file that comes with gcc, so configuring glibc
19395 # with a fresh cross-compiler works.
19396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19397 # <limits.h> exists even on freestanding compilers.
19398 # On the NeXT, cc -E runs the code through the compiler's parser,
19399 # not just through cpp. "Syntax error" is here to catch this case.
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19407 @%:@ include <limits.h>
19409 @%:@ include <assert.h>
19413 if { (ac_try="$ac_cpp conftest.$ac_ext"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } >/dev/null && {
19426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 # Broken: fails on valid input.
19438 rm -f conftest.err conftest.$ac_ext
19440 # OK, works on sane cases. Now check whether nonexistent headers
19441 # can be detected and how.
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 @%:@include <ac_nonexistent.h>
19450 if { (ac_try="$ac_cpp conftest.$ac_ext"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19458 grep -v '^ *+' conftest.er1 >conftest.err
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } >/dev/null && {
19463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19464 test ! -s conftest.err
19466 # Broken: success on invalid input.
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 # Passes both tests.
19477 rm -f conftest.err conftest.$ac_ext
19480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19481 rm -f conftest.err conftest.$ac_ext
19482 if $ac_preproc_ok; then
19487 ac_cv_prog_CPP=$CPP
19490 CPP=$ac_cv_prog_CPP
19492 ac_cv_prog_CPP=$CPP
19494 { echo "$as_me:$LINENO: result: $CPP" >&5
19495 echo "${ECHO_T}$CPP" >&6; }
19496 ac_preproc_ok=false
19497 for ac_c_preproc_warn_flag in '' yes
19499 # Use a header file that comes with gcc, so configuring glibc
19500 # with a fresh cross-compiler works.
19501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19502 # <limits.h> exists even on freestanding compilers.
19503 # On the NeXT, cc -E runs the code through the compiler's parser,
19504 # not just through cpp. "Syntax error" is here to catch this case.
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19512 @%:@ include <limits.h>
19514 @%:@ include <assert.h>
19518 if { (ac_try="$ac_cpp conftest.$ac_ext"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } >/dev/null && {
19531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 # Broken: fails on valid input.
19543 rm -f conftest.err conftest.$ac_ext
19545 # OK, works on sane cases. Now check whether nonexistent headers
19546 # can be detected and how.
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 @%:@include <ac_nonexistent.h>
19555 if { (ac_try="$ac_cpp conftest.$ac_ext"
19556 case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19563 grep -v '^ *+' conftest.er1 >conftest.err
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } >/dev/null && {
19568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19569 test ! -s conftest.err
19571 # Broken: success on invalid input.
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 # Passes both tests.
19582 rm -f conftest.err conftest.$ac_ext
19585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19586 rm -f conftest.err conftest.$ac_ext
19587 if $ac_preproc_ok; then
19590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19591 See \`config.log' for more details." >&5
19592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19593 See \`config.log' for more details." >&2;}
19594 { (exit 1); exit 1; }; }
19598 ac_cpp='$CPP $CPPFLAGS'
19599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19603 # Find a good install program. We prefer a C program (faster),
19604 # so one script is as good as another. But avoid the broken or
19605 # incompatible versions:
19606 # SysV /etc/install, /usr/sbin/install
19607 # SunOS /usr/etc/install
19608 # IRIX /sbin/install
19610 # AmigaOS /C/install, which installs bootblocks on floppy discs
19611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19614 # OS/2's system install, which has a completely different semantic
19615 # ./install, which can be erroneously created by make from ./install.sh.
19616 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19617 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19618 if test -z "$INSTALL"; then
19619 if test "${ac_cv_path_install+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623 for as_dir in $PATH
19626 test -z "$as_dir" && as_dir=.
19627 # Account for people who put trailing slashes in PATH elements.
19629 ./ | .// | /cC/* | \
19630 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19631 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19634 # OSF1 and SCO ODT 3.0 have their own names for install.
19635 # Don't use installbsd from OSF since it installs stuff as root
19637 for ac_prog in ginstall scoinst install; do
19638 for ac_exec_ext in '' $ac_executable_extensions; do
19639 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19640 if test $ac_prog = install &&
19641 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19642 # AIX install. It has an incompatible calling convention.
19644 elif test $ac_prog = install &&
19645 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19646 # program-specific install script used by HP pwplus--don't use.
19649 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19662 if test "${ac_cv_path_install+set}" = set; then
19663 INSTALL=$ac_cv_path_install
19665 # As a last resort, use the slow shell script. Don't cache a
19666 # value for INSTALL within a source directory, because that will
19667 # break other packages using the cache if that directory is
19668 # removed, or if the value is a relative name.
19669 INSTALL=$ac_install_sh
19672 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19673 echo "${ECHO_T}$INSTALL" >&6; }
19675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19676 # It thinks the first close brace ends the variable substitution.
19677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19683 for ac_prog in flex lex
19685 # Extract the first word of "$ac_prog", so it can be a program name with args.
19686 set dummy $ac_prog; ac_word=$2
19687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19689 if test "${ac_cv_prog_LEX+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 if test -n "$LEX"; then
19693 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19696 for as_dir in $PATH
19699 test -z "$as_dir" && as_dir=.
19700 for ac_exec_ext in '' $ac_executable_extensions; do
19701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19702 ac_cv_prog_LEX="$ac_prog"
19703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19712 LEX=$ac_cv_prog_LEX
19713 if test -n "$LEX"; then
19714 { echo "$as_me:$LINENO: result: $LEX" >&5
19715 echo "${ECHO_T}$LEX" >&6; }
19717 { echo "$as_me:$LINENO: result: no" >&5
19718 echo "${ECHO_T}no" >&6; }
19722 test -n "$LEX" && break
19724 test -n "$LEX" || LEX=":"
19726 if test "x$LEX" != "x:"; then
19727 cat >conftest.l <<_ACEOF
19733 e { yyless (input () != 0); }
19734 f { unput (yytext[0]); }
19735 . { BEGIN INITIAL; }
19737 #ifdef YYTEXT_POINTER
19738 extern char *yytext;
19743 return ! yylex () + ! yywrap ();
19746 { (ac_try="$LEX conftest.l"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$LEX conftest.l") 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }
19756 { echo "$as_me:$LINENO: checking lex output file root" >&5
19757 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19758 if test "${ac_cv_prog_lex_root+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 if test -f lex.yy.c; then
19763 ac_cv_prog_lex_root=lex.yy
19764 elif test -f lexyy.c; then
19765 ac_cv_prog_lex_root=lexyy
19767 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19768 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19769 { (exit 1); exit 1; }; }
19772 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19773 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19774 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19776 if test -z "${LEXLIB+set}"; then
19777 { echo "$as_me:$LINENO: checking lex library" >&5
19778 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19779 if test "${ac_cv_lib_lex+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 ac_cv_lib_lex='none needed'
19785 for ac_lib in '' -lfl -ll; do
19786 LIBS="$ac_lib $ac_save_LIBS"
19787 cat >conftest.$ac_ext <<_ACEOF
19788 `cat $LEX_OUTPUT_ROOT.c`
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest$ac_exeext &&
19807 $as_test_x conftest$ac_exeext; then
19808 ac_cv_lib_lex=$ac_lib
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19817 conftest$ac_exeext conftest.$ac_ext
19818 test "$ac_cv_lib_lex" != 'none needed' && break
19823 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19824 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19825 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19829 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19830 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19831 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 # POSIX says lex can declare yytext either as a pointer or an array; the
19835 # default is implementation-dependent. Figure out which it is, since
19836 # not all implementations provide the %pointer and %array declarations.
19837 ac_cv_prog_lex_yytext_pointer=no
19839 LIBS="$LEXLIB $ac_save_LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19841 #define YYTEXT_POINTER 1
19842 `cat $LEX_OUTPUT_ROOT.c`
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (ac_try="$ac_link"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_link") 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } && {
19858 test -z "$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19860 } && test -s conftest$ac_exeext &&
19861 $as_test_x conftest$ac_exeext; then
19862 ac_cv_prog_lex_yytext_pointer=yes
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871 conftest$ac_exeext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19876 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19877 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19879 cat >>confdefs.h <<\_ACEOF
19880 @%:@define YYTEXT_POINTER 1
19884 rm -f conftest.l $LEX_OUTPUT_ROOT.c
19887 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
19888 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19890 if test "$LN_S" = "ln -s"; then
19891 { echo "$as_me:$LINENO: result: yes" >&5
19892 echo "${ECHO_T}yes" >&6; }
19894 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19895 echo "${ECHO_T}no, using $LN_S" >&6; }
19898 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19899 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19900 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19901 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 cat >conftest.make <<\_ACEOF
19907 @echo '@@@%%%=$(MAKE)=@@@%%%'
19909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19910 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19911 *@@@%%%=?*=@@@%%%*)
19912 eval ac_cv_prog_make_${ac_make}_set=yes;;
19914 eval ac_cv_prog_make_${ac_make}_set=no;;
19916 rm -f conftest.make
19918 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19919 { echo "$as_me:$LINENO: result: yes" >&5
19920 echo "${ECHO_T}yes" >&6; }
19923 { echo "$as_me:$LINENO: result: no" >&5
19924 echo "${ECHO_T}no" >&6; }
19925 SET_MAKE="MAKE=${MAKE-make}"
19929 # Before making a release, the LTVERSION string should be modified.
19930 # The string is of the form C:R:A.
19931 # - If interfaces have been changed or added, but binary compatibility has
19932 # been preserved, change to C+1:0:A+1
19933 # - If binary compatibility has been broken (eg removed or changed interfaces)
19934 # change to C+1:0:0
19935 # - If the interface is the same as the previous version, change to C:R+1:A
19940 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
19941 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
19942 if test "${ac_cv_search_strerror+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 ac_func_search_save_LIBS=$LIBS
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19953 /* Override any GCC internal prototype to avoid an error.
19954 Use char because int might match the return type of a GCC
19955 builtin and then its argument prototype would still apply. */
19963 return strerror ();
19968 for ac_lib in '' cposix; do
19969 if test -z "$ac_lib"; then
19970 ac_res="none required"
19973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (ac_try="$ac_link"
19977 case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_link") 2>conftest.er1
19984 grep -v '^ *+' conftest.er1 >conftest.err
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest$ac_exeext &&
19992 $as_test_x conftest$ac_exeext; then
19993 ac_cv_search_strerror=$ac_res
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
20001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 if test "${ac_cv_search_strerror+set}" = set; then
20007 if test "${ac_cv_search_strerror+set}" = set; then
20010 ac_cv_search_strerror=no
20012 rm conftest.$ac_ext
20013 LIBS=$ac_func_search_save_LIBS
20015 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20016 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
20017 ac_res=$ac_cv_search_strerror
20018 if test "$ac_res" != no; then
20019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20023 # Find a good install program. We prefer a C program (faster),
20024 # so one script is as good as another. But avoid the broken or
20025 # incompatible versions:
20026 # SysV /etc/install, /usr/sbin/install
20027 # SunOS /usr/etc/install
20028 # IRIX /sbin/install
20030 # AmigaOS /C/install, which installs bootblocks on floppy discs
20031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20034 # OS/2's system install, which has a completely different semantic
20035 # ./install, which can be erroneously created by make from ./install.sh.
20036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20038 if test -z "$INSTALL"; then
20039 if test "${ac_cv_path_install+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043 for as_dir in $PATH
20046 test -z "$as_dir" && as_dir=.
20047 # Account for people who put trailing slashes in PATH elements.
20049 ./ | .// | /cC/* | \
20050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20054 # OSF1 and SCO ODT 3.0 have their own names for install.
20055 # Don't use installbsd from OSF since it installs stuff as root
20057 for ac_prog in ginstall scoinst install; do
20058 for ac_exec_ext in '' $ac_executable_extensions; do
20059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20060 if test $ac_prog = install &&
20061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20062 # AIX install. It has an incompatible calling convention.
20064 elif test $ac_prog = install &&
20065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20066 # program-specific install script used by HP pwplus--don't use.
20069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20082 if test "${ac_cv_path_install+set}" = set; then
20083 INSTALL=$ac_cv_path_install
20085 # As a last resort, use the slow shell script. Don't cache a
20086 # value for INSTALL within a source directory, because that will
20087 # break other packages using the cache if that directory is
20088 # removed, or if the value is a relative name.
20089 INSTALL=$ac_install_sh
20092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20093 echo "${ECHO_T}$INSTALL" >&6; }
20095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20096 # It thinks the first close brace ends the variable substitution.
20097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20103 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20104 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20105 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 cat >conftest.make <<\_ACEOF
20112 @echo '@@@%%%=$(MAKE)=@@@%%%'
20114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20116 *@@@%%%=?*=@@@%%%*)
20117 eval ac_cv_prog_make_${ac_make}_set=yes;;
20119 eval ac_cv_prog_make_${ac_make}_set=no;;
20121 rm -f conftest.make
20123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20124 { echo "$as_me:$LINENO: result: yes" >&5
20125 echo "${ECHO_T}yes" >&6; }
20128 { echo "$as_me:$LINENO: result: no" >&5
20129 echo "${ECHO_T}no" >&6; }
20130 SET_MAKE="MAKE=${MAKE-make}"
20134 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20136 if test "${ac_cv_header_stdc+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 #include <stdlib.h>
20146 #include <stdarg.h>
20147 #include <string.h>
20158 rm -f conftest.$ac_objext
20159 if { (ac_try="$ac_compile"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_compile") 2>conftest.er1
20167 grep -v '^ *+' conftest.er1 >conftest.err
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } && {
20172 test -z "$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 } && test -s conftest.$ac_objext; then
20175 ac_cv_header_stdc=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_header_stdc=no
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 if test $ac_cv_header_stdc = yes; then
20186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 #include <string.h>
20196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20197 $EGREP "memchr" >/dev/null 2>&1; then
20200 ac_cv_header_stdc=no
20206 if test $ac_cv_header_stdc = yes; then
20207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <stdlib.h>
20217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20218 $EGREP "free" >/dev/null 2>&1; then
20221 ac_cv_header_stdc=no
20227 if test $ac_cv_header_stdc = yes; then
20228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20229 if test "$cross_compiling" = yes; then
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 #include <stdlib.h>
20240 #if ((' ' & 0x0FF) == 0x020)
20241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20244 # define ISLOWER(c) \
20245 (('a' <= (c) && (c) <= 'i') \
20246 || ('j' <= (c) && (c) <= 'r') \
20247 || ('s' <= (c) && (c) <= 'z'))
20248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20256 for (i = 0; i < 256; i++)
20257 if (XOR (islower (i), ISLOWER (i))
20258 || toupper (i) != TOUPPER (i))
20263 rm -f conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_link") 2>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20285 echo "$as_me: program exited with status $ac_status" >&5
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ( exit $ac_status )
20290 ac_cv_header_stdc=no
20292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20298 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20299 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20300 if test $ac_cv_header_stdc = yes; then
20302 cat >>confdefs.h <<\_ACEOF
20303 @%:@define STDC_HEADERS 1
20314 for ac_header in fcntl.h limits.h stdlib.h string.h sys/param.h unistd.h
20316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 ac_res=`eval echo '${'$as_ac_Header'}'`
20324 { echo "$as_me:$LINENO: result: $ac_res" >&5
20325 echo "${ECHO_T}$ac_res" >&6; }
20327 # Is the header compilable?
20328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 $ac_includes_default
20337 @%:@include <$ac_header>
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_compile") 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest.$ac_objext; then
20356 ac_header_compiler=yes
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ac_header_compiler=no
20364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20366 echo "${ECHO_T}$ac_header_compiler" >&6; }
20368 # Is the header present?
20369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 @%:@include <$ac_header>
20379 if { (ac_try="$ac_cpp conftest.$ac_ext"
20380 case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20387 grep -v '^ *+' conftest.er1 >conftest.err
20389 cat conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } >/dev/null && {
20392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20393 test ! -s conftest.err
20395 ac_header_preproc=yes
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 ac_header_preproc=no
20403 rm -f conftest.err conftest.$ac_ext
20404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20405 echo "${ECHO_T}$ac_header_preproc" >&6; }
20407 # So? What about this header?
20408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20414 ac_header_preproc=yes
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 eval "$as_ac_Header=\$ac_header_preproc"
20439 ac_res=`eval echo '${'$as_ac_Header'}'`
20440 { echo "$as_me:$LINENO: result: $ac_res" >&5
20441 echo "${ECHO_T}$ac_res" >&6; }
20444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20456 for ac_header in sys/param.h sys/types.h netinet/in.h
20458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 ac_res=`eval echo '${'$as_ac_Header'}'`
20466 { echo "$as_me:$LINENO: result: $ac_res" >&5
20467 echo "${ECHO_T}$ac_res" >&6; }
20469 # Is the header compilable?
20470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 $ac_includes_default
20479 @%:@include <$ac_header>
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.$ac_objext; then
20498 ac_header_compiler=yes
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ac_header_compiler=no
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20508 echo "${ECHO_T}$ac_header_compiler" >&6; }
20510 # Is the header present?
20511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 @%:@include <$ac_header>
20521 if { (ac_try="$ac_cpp conftest.$ac_ext"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20529 grep -v '^ *+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } >/dev/null && {
20534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20537 ac_header_preproc=yes
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 ac_header_preproc=no
20545 rm -f conftest.err conftest.$ac_ext
20546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20547 echo "${ECHO_T}$ac_header_preproc" >&6; }
20549 # So? What about this header?
20550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20556 ac_header_preproc=yes
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 eval "$as_ac_Header=\$ac_header_preproc"
20581 ac_res=`eval echo '${'$as_ac_Header'}'`
20582 { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20597 for ac_header in io.h windows.h
20599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 ac_res=`eval echo '${'$as_ac_Header'}'`
20607 { echo "$as_me:$LINENO: result: $ac_res" >&5
20608 echo "${ECHO_T}$ac_res" >&6; }
20610 # Is the header compilable?
20611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 $ac_includes_default
20620 @%:@include <$ac_header>
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_compile") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } && {
20636 test -z "$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20638 } && test -s conftest.$ac_objext; then
20639 ac_header_compiler=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_header_compiler=no
20647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20649 echo "${ECHO_T}$ac_header_compiler" >&6; }
20651 # Is the header present?
20652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20654 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660 @%:@include <$ac_header>
20662 if { (ac_try="$ac_cpp conftest.$ac_ext"
20663 case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20670 grep -v '^ *+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } >/dev/null && {
20675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20678 ac_header_preproc=yes
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 ac_header_preproc=no
20686 rm -f conftest.err conftest.$ac_ext
20687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20688 echo "${ECHO_T}$ac_header_preproc" >&6; }
20690 # So? What about this header?
20691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20697 ac_header_preproc=yes
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 eval "$as_ac_Header=\$ac_header_preproc"
20722 ac_res=`eval echo '${'$as_ac_Header'}'`
20723 { echo "$as_me:$LINENO: result: $ac_res" >&5
20724 echo "${ECHO_T}$ac_res" >&6; }
20727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20728 cat >>confdefs.h <<_ACEOF
20729 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20738 # Checks for typedefs, structures, and compiler characteristics.
20739 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20740 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20741 if test "${ac_cv_c_const+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20754 /* FIXME: Include the comments suggested by Paul. */
20755 #ifndef __cplusplus
20756 /* Ultrix mips cc rejects this. */
20757 typedef int charset[2];
20759 /* SunOS 4.1.1 cc rejects this. */
20760 char const *const *pcpcc;
20762 /* NEC SVR4.0.2 mips cc rejects this. */
20763 struct point {int x, y;};
20764 static struct point const zero = {0,0};
20765 /* AIX XL C 1.02.0.0 rejects this.
20766 It does not let you subtract one const X* pointer from another in
20767 an arm of an if-expression whose if-part is not a constant
20769 const char *g = "string";
20770 pcpcc = &g + (g ? g-g : 0);
20771 /* HPUX 7.0 cc rejects these. */
20773 ppc = (char**) pcpcc;
20774 pcpcc = (char const *const *) ppc;
20775 { /* SCO 3.2v4 cc rejects this. */
20777 char const *s = 0 ? (char *) 0 : (char const *) 0;
20782 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20783 int x[] = {25, 17};
20784 const int *foo = &x[0];
20787 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20788 typedef const int *iptr;
20792 { /* AIX XL C 1.02.0.0 rejects this saying
20793 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20794 struct s { int j; const int *ap[3]; };
20795 struct s *b; b->j = 5;
20797 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20798 const int foo = 10;
20799 if (!foo) return 0;
20801 return !cs[0] && !zero.x;
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_compile") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest.$ac_objext; then
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20836 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20837 if test $ac_cv_c_const = no; then
20839 cat >>confdefs.h <<\_ACEOF
20845 { echo "$as_me:$LINENO: checking for off_t" >&5
20846 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20847 if test "${ac_cv_type_off_t+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 $ac_includes_default
20857 typedef off_t ac__type_new_;
20861 if ((ac__type_new_ *) 0)
20863 if (sizeof (ac__type_new_))
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
20886 ac_cv_type_off_t=yes
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_cv_type_off_t=no
20894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20897 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20898 if test $ac_cv_type_off_t = yes; then
20902 cat >>confdefs.h <<_ACEOF
20903 @%:@define off_t long int
20908 { echo "$as_me:$LINENO: checking for size_t" >&5
20909 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20910 if test "${ac_cv_type_size_t+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 typedef size_t ac__type_new_;
20924 if ((ac__type_new_ *) 0)
20926 if (sizeof (ac__type_new_))
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20949 ac_cv_type_size_t=yes
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ac_cv_type_size_t=no
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20960 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20961 if test $ac_cv_type_size_t = yes; then
20965 cat >>confdefs.h <<_ACEOF
20966 @%:@define size_t unsigned int
20972 # Checks for library functions.
20974 for ac_header in stdlib.h
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20987 # Is the header compilable?
20988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 @%:@include <$ac_header>
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest.$ac_objext; then
21016 ac_header_compiler=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_header_compiler=no
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21026 echo "${ECHO_T}$ac_header_compiler" >&6; }
21028 # Is the header present?
21029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 @%:@include <$ac_header>
21039 if { (ac_try="$ac_cpp conftest.$ac_ext"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } >/dev/null && {
21052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21055 ac_header_preproc=yes
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_preproc=no
21063 rm -f conftest.err conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065 echo "${ECHO_T}$ac_header_preproc" >&6; }
21067 # So? What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074 ac_header_preproc=yes
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 eval "$as_ac_Header=\$ac_header_preproc"
21099 ac_res=`eval echo '${'$as_ac_Header'}'`
21100 { echo "$as_me:$LINENO: result: $ac_res" >&5
21101 echo "${ECHO_T}$ac_res" >&6; }
21104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21113 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21114 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21115 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 if test "$cross_compiling" = yes; then
21119 ac_cv_func_malloc_0_nonnull=no
21121 cat >conftest.$ac_ext <<_ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21128 # include <stdlib.h>
21136 return ! malloc (0);
21141 rm -f conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148 (eval "$ac_link") 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152 { (case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_try") 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_cv_func_malloc_0_nonnull=yes
21163 echo "$as_me: program exited with status $ac_status" >&5
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ( exit $ac_status )
21168 ac_cv_func_malloc_0_nonnull=no
21170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21176 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21177 if test $ac_cv_func_malloc_0_nonnull = yes; then
21179 cat >>confdefs.h <<\_ACEOF
21180 @%:@define HAVE_MALLOC 1
21184 cat >>confdefs.h <<\_ACEOF
21185 @%:@define HAVE_MALLOC 0
21188 case " $LIB@&t@OBJS " in
21189 *" malloc.$ac_objext "* ) ;;
21190 *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
21195 cat >>confdefs.h <<\_ACEOF
21196 @%:@define malloc rpl_malloc
21203 { echo "$as_me:$LINENO: checking for working memcmp" >&5
21204 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21205 if test "${ac_cv_func_memcmp_working+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 if test "$cross_compiling" = yes; then
21209 ac_cv_func_memcmp_working=no
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21222 /* Some versions of memcmp are not 8-bit clean. */
21223 char c0 = '\100', c1 = '\200', c2 = '\201';
21224 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21227 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21228 or more and with at least one buffer not starting on a 4-byte boundary.
21229 William Lewis provided this test program. */
21234 for (i = 0; i < 4; i++)
21238 strcpy (a, "--------01111111");
21239 strcpy (b, "--------10000000");
21240 if (memcmp (a, b, 16) >= 0)
21250 rm -f conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_link") 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21261 { (case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_try") 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; }; then
21270 ac_cv_func_memcmp_working=yes
21272 echo "$as_me: program exited with status $ac_status" >&5
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ( exit $ac_status )
21277 ac_cv_func_memcmp_working=no
21279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21284 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21285 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21286 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
21287 *" memcmp.$ac_objext "* ) ;;
21288 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
21295 for ac_header in stdlib.h unistd.h
21297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 ac_res=`eval echo '${'$as_ac_Header'}'`
21305 { echo "$as_me:$LINENO: result: $ac_res" >&5
21306 echo "${ECHO_T}$ac_res" >&6; }
21308 # Is the header compilable?
21309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21311 cat >conftest.$ac_ext <<_ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 $ac_includes_default
21318 @%:@include <$ac_header>
21320 rm -f conftest.$ac_objext
21321 if { (ac_try="$ac_compile"
21322 case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327 (eval "$ac_compile") 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } && {
21334 test -z "$ac_c_werror_flag" ||
21335 test ! -s conftest.err
21336 } && test -s conftest.$ac_objext; then
21337 ac_header_compiler=yes
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 ac_header_compiler=no
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21347 echo "${ECHO_T}$ac_header_compiler" >&6; }
21349 # Is the header present?
21350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 @%:@include <$ac_header>
21360 if { (ac_try="$ac_cpp conftest.$ac_ext"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } >/dev/null && {
21373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21376 ac_header_preproc=yes
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ac_header_preproc=no
21384 rm -f conftest.err conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21386 echo "${ECHO_T}$ac_header_preproc" >&6; }
21388 # So? What about this header?
21389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21395 ac_header_preproc=yes
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21418 eval "$as_ac_Header=\$ac_header_preproc"
21420 ac_res=`eval echo '${'$as_ac_Header'}'`
21421 { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21426 cat >>confdefs.h <<_ACEOF
21427 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21435 for ac_func in getpagesize
21437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21451 #define $ac_func innocuous_$ac_func
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char $ac_func (); below.
21455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456 <limits.h> exists even on freestanding compilers. */
21459 # include <limits.h>
21461 # include <assert.h>
21466 /* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21473 /* The GNU C library defines this for functions which it implements
21474 to always fail with ENOSYS. Some functions are actually named
21475 something starting with __ and the normal name is an alias. */
21476 #if defined __stub_$ac_func || defined __stub___$ac_func
21483 return $ac_func ();
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_link") 2>conftest.er1
21497 grep -v '^ *+' conftest.er1 >conftest.err
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } && {
21502 test -z "$ac_c_werror_flag" ||
21503 test ! -s conftest.err
21504 } && test -s conftest$ac_exeext &&
21505 $as_test_x conftest$ac_exeext; then
21506 eval "$as_ac_var=yes"
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 eval "$as_ac_var=no"
21514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21515 conftest$ac_exeext conftest.$ac_ext
21517 ac_res=`eval echo '${'$as_ac_var'}'`
21518 { echo "$as_me:$LINENO: result: $ac_res" >&5
21519 echo "${ECHO_T}$ac_res" >&6; }
21520 if test `eval echo '${'$as_ac_var'}'` = yes; then
21521 cat >>confdefs.h <<_ACEOF
21522 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21528 { echo "$as_me:$LINENO: checking for working mmap" >&5
21529 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21530 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 if test "$cross_compiling" = yes; then
21534 ac_cv_func_mmap_fixed_mapped=no
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 /* malloc might have been renamed as rpl_malloc. */
21546 /* Thanks to Mike Haertel and Jim Avera for this test.
21547 Here is a matrix of mmap possibilities:
21548 mmap private not fixed
21549 mmap private fixed at somewhere currently unmapped
21550 mmap private fixed at somewhere already mapped
21551 mmap shared not fixed
21552 mmap shared fixed at somewhere currently unmapped
21553 mmap shared fixed at somewhere already mapped
21554 For private mappings, we should verify that changes cannot be read()
21555 back from the file, nor mmap's back from the file at a different
21556 address. (There have been systems where private was not correctly
21557 implemented like the infamous i386 svr4.0, and systems where the
21558 VM page cache was not coherent with the file system buffer cache
21559 like early versions of FreeBSD and possibly contemporary NetBSD.)
21560 For shared mappings, we should conversely verify that changes get
21561 propagated back to all the places they're supposed to be.
21563 Grep wants private fixed already mapped.
21564 The main things grep needs to know about mmap are:
21565 * does it exist and is it safe to write into the mmap'd area
21566 * how to use it (BSD variants) */
21569 #include <sys/mman.h>
21571 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21575 /* This mess was copied from the GNU getpagesize.h. */
21576 #ifndef HAVE_GETPAGESIZE
21577 /* Assume that all systems that can run configure have sys/param.h. */
21578 # ifndef HAVE_SYS_PARAM_H
21579 # define HAVE_SYS_PARAM_H 1
21582 # ifdef _SC_PAGESIZE
21583 # define getpagesize() sysconf(_SC_PAGESIZE)
21584 # else /* no _SC_PAGESIZE */
21585 # ifdef HAVE_SYS_PARAM_H
21586 # include <sys/param.h>
21587 # ifdef EXEC_PAGESIZE
21588 # define getpagesize() EXEC_PAGESIZE
21589 # else /* no EXEC_PAGESIZE */
21591 # define getpagesize() NBPG * CLSIZE
21594 # endif /* no CLSIZE */
21595 # else /* no NBPG */
21597 # define getpagesize() NBPC
21598 # else /* no NBPC */
21600 # define getpagesize() PAGESIZE
21601 # endif /* PAGESIZE */
21602 # endif /* no NBPC */
21603 # endif /* no NBPG */
21604 # endif /* no EXEC_PAGESIZE */
21605 # else /* no HAVE_SYS_PARAM_H */
21606 # define getpagesize() 8192 /* punt totally */
21607 # endif /* no HAVE_SYS_PARAM_H */
21608 # endif /* no _SC_PAGESIZE */
21610 #endif /* no HAVE_GETPAGESIZE */
21615 char *data, *data2, *data3;
21619 pagesize = getpagesize ();
21621 /* First, make a file with some known garbage in it. */
21622 data = (char *) malloc (pagesize);
21625 for (i = 0; i < pagesize; ++i)
21626 *(data + i) = rand ();
21628 fd = creat ("conftest.mmap", 0600);
21631 if (write (fd, data, pagesize) != pagesize)
21635 /* Next, try to mmap the file at a fixed address which already has
21636 something else allocated at it. If we can, also make sure that
21637 we see the same garbage. */
21638 fd = open ("conftest.mmap", O_RDWR);
21641 data2 = (char *) malloc (2 * pagesize);
21644 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21645 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21646 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21648 for (i = 0; i < pagesize; ++i)
21649 if (*(data + i) != *(data2 + i))
21652 /* Finally, make sure that changes to the mapped area do not
21653 percolate back to the file as seen by read(). (This is a bug on
21654 some variants of i386 svr4.0.) */
21655 for (i = 0; i < pagesize; ++i)
21656 *(data2 + i) = *(data2 + i) + 1;
21657 data3 = (char *) malloc (pagesize);
21660 if (read (fd, data3, pagesize) != pagesize)
21662 for (i = 0; i < pagesize; ++i)
21663 if (*(data + i) != *(data3 + i))
21669 rm -f conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_link") 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21680 { (case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685 (eval "$ac_try") 2>&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; }; then
21689 ac_cv_func_mmap_fixed_mapped=yes
21691 echo "$as_me: program exited with status $ac_status" >&5
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 ( exit $ac_status )
21696 ac_cv_func_mmap_fixed_mapped=no
21698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21704 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21705 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21707 cat >>confdefs.h <<\_ACEOF
21708 @%:@define HAVE_MMAP 1
21712 rm -f conftest.mmap
21715 for ac_header in stdlib.h
21717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 ac_res=`eval echo '${'$as_ac_Header'}'`
21725 { echo "$as_me:$LINENO: result: $ac_res" >&5
21726 echo "${ECHO_T}$ac_res" >&6; }
21728 # Is the header compilable?
21729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21738 @%:@include <$ac_header>
21740 rm -f conftest.$ac_objext
21741 if { (ac_try="$ac_compile"
21742 case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747 (eval "$ac_compile") 2>conftest.er1
21749 grep -v '^ *+' conftest.er1 >conftest.err
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } && {
21754 test -z "$ac_c_werror_flag" ||
21755 test ! -s conftest.err
21756 } && test -s conftest.$ac_objext; then
21757 ac_header_compiler=yes
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 ac_header_compiler=no
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21767 echo "${ECHO_T}$ac_header_compiler" >&6; }
21769 # Is the header present?
21770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 @%:@include <$ac_header>
21780 if { (ac_try="$ac_cpp conftest.$ac_ext"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21788 grep -v '^ *+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } >/dev/null && {
21793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21796 ac_header_preproc=yes
21798 echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21801 ac_header_preproc=no
21804 rm -f conftest.err conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21806 echo "${ECHO_T}$ac_header_preproc" >&6; }
21808 # So? What about this header?
21809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21815 ac_header_preproc=yes
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 eval "$as_ac_Header=\$ac_header_preproc"
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841 { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21854 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21855 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
21856 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 if test "$cross_compiling" = yes; then
21860 ac_cv_func_realloc_0_nonnull=no
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21869 # include <stdlib.h>
21877 return ! realloc (0, 0);
21882 rm -f conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_link") 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21893 { (case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_try") 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; }; then
21902 ac_cv_func_realloc_0_nonnull=yes
21904 echo "$as_me: program exited with status $ac_status" >&5
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ( exit $ac_status )
21909 ac_cv_func_realloc_0_nonnull=no
21911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21917 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21918 if test $ac_cv_func_realloc_0_nonnull = yes; then
21920 cat >>confdefs.h <<\_ACEOF
21921 @%:@define HAVE_REALLOC 1
21925 cat >>confdefs.h <<\_ACEOF
21926 @%:@define HAVE_REALLOC 0
21929 case " $LIB@&t@OBJS " in
21930 *" realloc.$ac_objext "* ) ;;
21931 *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext"
21936 cat >>confdefs.h <<\_ACEOF
21937 @%:@define realloc rpl_realloc
21945 for ac_func in vprintf
21947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21961 #define $ac_func innocuous_$ac_func
21963 /* System header to define __stub macros and hopefully few prototypes,
21964 which can conflict with char $ac_func (); below.
21965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966 <limits.h> exists even on freestanding compilers. */
21969 # include <limits.h>
21971 # include <assert.h>
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21983 /* The GNU C library defines this for functions which it implements
21984 to always fail with ENOSYS. Some functions are actually named
21985 something starting with __ and the normal name is an alias. */
21986 #if defined __stub_$ac_func || defined __stub___$ac_func
21993 return $ac_func ();
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_link") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext &&
22015 $as_test_x conftest$ac_exeext; then
22016 eval "$as_ac_var=yes"
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 eval "$as_ac_var=no"
22024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22025 conftest$ac_exeext conftest.$ac_ext
22027 ac_res=`eval echo '${'$as_ac_var'}'`
22028 { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030 if test `eval echo '${'$as_ac_var'}'` = yes; then
22031 cat >>confdefs.h <<_ACEOF
22032 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22035 { echo "$as_me:$LINENO: checking for _doprnt" >&5
22036 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
22037 if test "${ac_cv_func__doprnt+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22048 #define _doprnt innocuous__doprnt
22050 /* System header to define __stub macros and hopefully few prototypes,
22051 which can conflict with char _doprnt (); below.
22052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22053 <limits.h> exists even on freestanding compilers. */
22056 # include <limits.h>
22058 # include <assert.h>
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22070 /* The GNU C library defines this for functions which it implements
22071 to always fail with ENOSYS. Some functions are actually named
22072 something starting with __ and the normal name is an alias. */
22073 #if defined __stub__doprnt || defined __stub____doprnt
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_link") 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } && {
22099 test -z "$ac_c_werror_flag" ||
22100 test ! -s conftest.err
22101 } && test -s conftest$ac_exeext &&
22102 $as_test_x conftest$ac_exeext; then
22103 ac_cv_func__doprnt=yes
22105 echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22108 ac_cv_func__doprnt=no
22111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22112 conftest$ac_exeext conftest.$ac_ext
22114 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22115 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
22116 if test $ac_cv_func__doprnt = yes; then
22118 cat >>confdefs.h <<\_ACEOF
22119 @%:@define HAVE_DOPRNT 1
22134 for ac_func in mblen memset munmap strchr strpbrk strrchr
22136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 cat >conftest.$ac_ext <<_ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22150 #define $ac_func innocuous_$ac_func
22152 /* System header to define __stub macros and hopefully few prototypes,
22153 which can conflict with char $ac_func (); below.
22154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22155 <limits.h> exists even on freestanding compilers. */
22158 # include <limits.h>
22160 # include <assert.h>
22165 /* Override any GCC internal prototype to avoid an error.
22166 Use char because int might match the return type of a GCC
22167 builtin and then its argument prototype would still apply. */
22172 /* The GNU C library defines this for functions which it implements
22173 to always fail with ENOSYS. Some functions are actually named
22174 something starting with __ and the normal name is an alias. */
22175 #if defined __stub_$ac_func || defined __stub___$ac_func
22182 return $ac_func ();
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 eval "$as_ac_var=yes"
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 eval "$as_ac_var=no"
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22216 ac_res=`eval echo '${'$as_ac_var'}'`
22217 { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22228 { echo "$as_me:$LINENO: checking for darts.h" >&5
22229 echo $ECHO_N "checking for darts.h... $ECHO_C" >&6; }
22231 # Check whether --with-darts was given.
22232 if test "${with_darts+set}" = set; then
22233 withval=$with_darts; if test "${with_darts}" = yes; then
22234 vi_darts_path="/usr/local/include"
22236 vi_darts_path=${with_darts}
22238 CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
22244 ac_cpp='$CXXCPP $CPPFLAGS'
22245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22250 if test "${cl_cv_header_darts+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 cat >conftest.$ac_ext <<_ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_cxx_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22286 cl_cv_header_darts=yes
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22292 { { echo "$as_me:$LINENO: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&5
22293 echo "$as_me: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&2;}
22294 { (exit 1); exit 1; }; }
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 { echo "$as_me:$LINENO: result: $cl_cv_header_darts" >&5
22301 echo "${ECHO_T}$cl_cv_header_darts" >&6; }
22303 ac_cpp='$CPP $CPPFLAGS'
22304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22310 # Check whether --with-libiconv was given.
22311 if test "${with_libiconv+set}" = set; then
22312 withval=$with_libiconv; if test x"${with_libiconv}" != x ; then
22313 ICONV_CFLAGS="-I${with_libiconv}/include"
22314 LIBS="$LIBS -L${with_libiconv}/lib"
22321 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
22322 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
22323 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22326 ac_check_lib_save_LIBS=$LIBS
22327 LIBS="-liconv $LIBS"
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22335 /* Override any GCC internal prototype to avoid an error.
22336 Use char because int might match the return type of a GCC
22337 builtin and then its argument prototype would still apply. */
22350 rm -f conftest.$ac_objext conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>conftest.er1
22359 grep -v '^ *+' conftest.er1 >conftest.err
22361 cat conftest.err >&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } && {
22364 test -z "$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22366 } && test -s conftest$ac_exeext &&
22367 $as_test_x conftest$ac_exeext; then
22368 ac_cv_lib_iconv_iconv=yes
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22373 ac_cv_lib_iconv_iconv=no
22376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22377 conftest$ac_exeext conftest.$ac_ext
22378 LIBS=$ac_check_lib_save_LIBS
22380 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
22381 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6; }
22382 if test $ac_cv_lib_iconv_iconv = yes; then
22383 cat >>confdefs.h <<_ACEOF
22384 @%:@define HAVE_LIBICONV 1
22387 LIBS="-liconv $LIBS"
22391 if test "${ac_cv_header_iconv_h+set}" = set; then
22392 { echo "$as_me:$LINENO: checking for iconv.h" >&5
22393 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22394 if test "${ac_cv_header_iconv_h+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22398 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22400 # Is the header compilable?
22401 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
22402 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22409 $ac_includes_default
22410 @%:@include <iconv.h>
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22429 ac_header_compiler=yes
22431 echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22434 ac_header_compiler=no
22437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22439 echo "${ECHO_T}$ac_header_compiler" >&6; }
22441 # Is the header present?
22442 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
22443 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 @%:@include <iconv.h>
22452 if { (ac_try="$ac_cpp conftest.$ac_ext"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22460 grep -v '^ *+' conftest.er1 >conftest.err
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } >/dev/null && {
22465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22466 test ! -s conftest.err
22468 ac_header_preproc=yes
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 ac_header_preproc=no
22476 rm -f conftest.err conftest.$ac_ext
22477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22478 echo "${ECHO_T}$ac_header_preproc" >&6; }
22480 # So? What about this header?
22481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22483 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22484 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22485 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
22486 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
22487 ac_header_preproc=yes
22490 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
22491 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
22493 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
22494 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
22495 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
22497 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
22499 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
22501 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
22505 { echo "$as_me:$LINENO: checking for iconv.h" >&5
22506 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22507 if test "${ac_cv_header_iconv_h+set}" = set; then
22508 echo $ECHO_N "(cached) $ECHO_C" >&6
22510 ac_cv_header_iconv_h=$ac_header_preproc
22512 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22513 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22516 if test $ac_cv_header_iconv_h = yes; then
22519 { { echo "$as_me:$LINENO: error: ChaSen needs iconv" >&5
22520 echo "$as_me: error: ChaSen needs iconv" >&2;}
22521 { (exit 1); exit 1; }; }
22530 { echo "$as_me:$LINENO: checking iconv args" >&5
22531 echo $ECHO_N "checking iconv args... $ECHO_C" >&6; }
22533 for CODE in EUC-JP EUCJP eucJP; do
22534 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
22535 vi_iconv_arg_EUCJP=${CODE}; break
22539 if test x"$vi_iconv_arg_EUCJP" = x; then
22540 { { echo "$as_me:$LINENO: error: cannot use EUC-JP with iconv" >&5
22541 echo "$as_me: error: cannot use EUC-JP with iconv" >&2;}
22542 { (exit 1); exit 1; }; }
22544 cat >>confdefs.h <<_ACEOF
22545 @%:@define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
22550 for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
22551 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
22552 vi_iconv_arg_SJIS=${CODE}; break
22556 if test x"$vi_iconv_arg_SJIS" = x; then
22557 { { echo "$as_me:$LINENO: error: cannot use Shift_JIS with iconv" >&5
22558 echo "$as_me: error: cannot use Shift_JIS with iconv" >&2;}
22559 { (exit 1); exit 1; }; }
22561 cat >>confdefs.h <<_ACEOF
22562 @%:@define ICONV_SJIS "$vi_iconv_arg_SJIS"
22567 for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
22568 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
22569 vi_iconv_arg_88591=${CODE}; break
22573 if test x"$vi_iconv_arg_88591" = x; then
22574 { { echo "$as_me:$LINENO: error: cannot use ISO-8859-1 with iconv" >&5
22575 echo "$as_me: error: cannot use ISO-8859-1 with iconv" >&2;}
22576 { (exit 1); exit 1; }; }
22578 cat >>confdefs.h <<_ACEOF
22579 @%:@define ICONV_88591 "$vi_iconv_arg_88591"
22583 { echo "$as_me:$LINENO: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
22584 echo "${ECHO_T}$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6; }
22586 { echo "$as_me:$LINENO: checking for off_t" >&5
22587 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22588 if test "${ac_cv_type_off_t+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 $ac_includes_default
22598 typedef off_t ac__type_new_;
22602 if ((ac__type_new_ *) 0)
22604 if (sizeof (ac__type_new_))
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 ac_cv_type_off_t=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ac_cv_type_off_t=no
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22638 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22639 if test $ac_cv_type_off_t = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644 @%:@define off_t long int
22649 { echo "$as_me:$LINENO: checking for size_t" >&5
22650 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22651 if test "${ac_cv_type_size_t+set}" = set; then
22652 echo $ECHO_N "(cached) $ECHO_C" >&6
22654 cat >conftest.$ac_ext <<_ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 $ac_includes_default
22661 typedef size_t ac__type_new_;
22665 if ((ac__type_new_ *) 0)
22667 if (sizeof (ac__type_new_))
22673 rm -f conftest.$ac_objext
22674 if { (ac_try="$ac_compile"
22675 case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_compile") 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } && {
22687 test -z "$ac_c_werror_flag" ||
22688 test ! -s conftest.err
22689 } && test -s conftest.$ac_objext; then
22690 ac_cv_type_size_t=yes
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22695 ac_cv_type_size_t=no
22698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22701 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22702 if test $ac_cv_type_size_t = yes; then
22706 cat >>confdefs.h <<_ACEOF
22707 @%:@define size_t unsigned int
22713 { echo "$as_me:$LINENO: checking for working memcmp" >&5
22714 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22715 if test "${ac_cv_func_memcmp_working+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 if test "$cross_compiling" = yes; then
22719 ac_cv_func_memcmp_working=no
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 $ac_includes_default
22732 /* Some versions of memcmp are not 8-bit clean. */
22733 char c0 = '\100', c1 = '\200', c2 = '\201';
22734 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22737 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22738 or more and with at least one buffer not starting on a 4-byte boundary.
22739 William Lewis provided this test program. */
22744 for (i = 0; i < 4; i++)
22748 strcpy (a, "--------01111111");
22749 strcpy (b, "--------10000000");
22750 if (memcmp (a, b, 16) >= 0)
22760 rm -f conftest$ac_exeext
22761 if { (ac_try="$ac_link"
22762 case "(($ac_try" in
22763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764 *) ac_try_echo=$ac_try;;
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767 (eval "$ac_link") 2>&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22771 { (case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_try") 2>&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; }; then
22780 ac_cv_func_memcmp_working=yes
22782 echo "$as_me: program exited with status $ac_status" >&5
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ( exit $ac_status )
22787 ac_cv_func_memcmp_working=no
22789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22794 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22795 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
22796 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
22797 *" memcmp.$ac_objext "* ) ;;
22798 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
22805 for ac_header in stdlib.h unistd.h
22807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22812 echo $ECHO_N "(cached) $ECHO_C" >&6
22814 ac_res=`eval echo '${'$as_ac_Header'}'`
22815 { echo "$as_me:$LINENO: result: $ac_res" >&5
22816 echo "${ECHO_T}$ac_res" >&6; }
22818 # Is the header compilable?
22819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22821 cat >conftest.$ac_ext <<_ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22827 $ac_includes_default
22828 @%:@include <$ac_header>
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_header_compiler=yes
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_header_compiler=no
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22857 echo "${ECHO_T}$ac_header_compiler" >&6; }
22859 # Is the header present?
22860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 @%:@include <$ac_header>
22870 if { (ac_try="$ac_cpp conftest.$ac_ext"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } >/dev/null && {
22883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22886 ac_header_preproc=yes
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22891 ac_header_preproc=no
22894 rm -f conftest.err conftest.$ac_ext
22895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22896 echo "${ECHO_T}$ac_header_preproc" >&6; }
22898 # So? What about this header?
22899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22905 ac_header_preproc=yes
22908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22928 eval "$as_ac_Header=\$ac_header_preproc"
22930 ac_res=`eval echo '${'$as_ac_Header'}'`
22931 { echo "$as_me:$LINENO: result: $ac_res" >&5
22932 echo "${ECHO_T}$ac_res" >&6; }
22935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22936 cat >>confdefs.h <<_ACEOF
22937 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22945 for ac_func in getpagesize
22947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 cat >conftest.$ac_ext <<_ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22961 #define $ac_func innocuous_$ac_func
22963 /* System header to define __stub macros and hopefully few prototypes,
22964 which can conflict with char $ac_func (); below.
22965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22966 <limits.h> exists even on freestanding compilers. */
22969 # include <limits.h>
22971 # include <assert.h>
22976 /* Override any GCC internal prototype to avoid an error.
22977 Use char because int might match the return type of a GCC
22978 builtin and then its argument prototype would still apply. */
22983 /* The GNU C library defines this for functions which it implements
22984 to always fail with ENOSYS. Some functions are actually named
22985 something starting with __ and the normal name is an alias. */
22986 #if defined __stub_$ac_func || defined __stub___$ac_func
22993 return $ac_func ();
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_link") 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest$ac_exeext &&
23015 $as_test_x conftest$ac_exeext; then
23016 eval "$as_ac_var=yes"
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 eval "$as_ac_var=no"
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025 conftest$ac_exeext conftest.$ac_ext
23027 ac_res=`eval echo '${'$as_ac_var'}'`
23028 { echo "$as_me:$LINENO: result: $ac_res" >&5
23029 echo "${ECHO_T}$ac_res" >&6; }
23030 if test `eval echo '${'$as_ac_var'}'` = yes; then
23031 cat >>confdefs.h <<_ACEOF
23032 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23038 { echo "$as_me:$LINENO: checking for working mmap" >&5
23039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 if test "$cross_compiling" = yes; then
23044 ac_cv_func_mmap_fixed_mapped=no
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23053 /* malloc might have been renamed as rpl_malloc. */
23056 /* Thanks to Mike Haertel and Jim Avera for this test.
23057 Here is a matrix of mmap possibilities:
23058 mmap private not fixed
23059 mmap private fixed at somewhere currently unmapped
23060 mmap private fixed at somewhere already mapped
23061 mmap shared not fixed
23062 mmap shared fixed at somewhere currently unmapped
23063 mmap shared fixed at somewhere already mapped
23064 For private mappings, we should verify that changes cannot be read()
23065 back from the file, nor mmap's back from the file at a different
23066 address. (There have been systems where private was not correctly
23067 implemented like the infamous i386 svr4.0, and systems where the
23068 VM page cache was not coherent with the file system buffer cache
23069 like early versions of FreeBSD and possibly contemporary NetBSD.)
23070 For shared mappings, we should conversely verify that changes get
23071 propagated back to all the places they're supposed to be.
23073 Grep wants private fixed already mapped.
23074 The main things grep needs to know about mmap are:
23075 * does it exist and is it safe to write into the mmap'd area
23076 * how to use it (BSD variants) */
23079 #include <sys/mman.h>
23081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23085 /* This mess was copied from the GNU getpagesize.h. */
23086 #ifndef HAVE_GETPAGESIZE
23087 /* Assume that all systems that can run configure have sys/param.h. */
23088 # ifndef HAVE_SYS_PARAM_H
23089 # define HAVE_SYS_PARAM_H 1
23092 # ifdef _SC_PAGESIZE
23093 # define getpagesize() sysconf(_SC_PAGESIZE)
23094 # else /* no _SC_PAGESIZE */
23095 # ifdef HAVE_SYS_PARAM_H
23096 # include <sys/param.h>
23097 # ifdef EXEC_PAGESIZE
23098 # define getpagesize() EXEC_PAGESIZE
23099 # else /* no EXEC_PAGESIZE */
23101 # define getpagesize() NBPG * CLSIZE
23104 # endif /* no CLSIZE */
23105 # else /* no NBPG */
23107 # define getpagesize() NBPC
23108 # else /* no NBPC */
23110 # define getpagesize() PAGESIZE
23111 # endif /* PAGESIZE */
23112 # endif /* no NBPC */
23113 # endif /* no NBPG */
23114 # endif /* no EXEC_PAGESIZE */
23115 # else /* no HAVE_SYS_PARAM_H */
23116 # define getpagesize() 8192 /* punt totally */
23117 # endif /* no HAVE_SYS_PARAM_H */
23118 # endif /* no _SC_PAGESIZE */
23120 #endif /* no HAVE_GETPAGESIZE */
23125 char *data, *data2, *data3;
23129 pagesize = getpagesize ();
23131 /* First, make a file with some known garbage in it. */
23132 data = (char *) malloc (pagesize);
23135 for (i = 0; i < pagesize; ++i)
23136 *(data + i) = rand ();
23138 fd = creat ("conftest.mmap", 0600);
23141 if (write (fd, data, pagesize) != pagesize)
23145 /* Next, try to mmap the file at a fixed address which already has
23146 something else allocated at it. If we can, also make sure that
23147 we see the same garbage. */
23148 fd = open ("conftest.mmap", O_RDWR);
23151 data2 = (char *) malloc (2 * pagesize);
23154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23158 for (i = 0; i < pagesize; ++i)
23159 if (*(data + i) != *(data2 + i))
23162 /* Finally, make sure that changes to the mapped area do not
23163 percolate back to the file as seen by read(). (This is a bug on
23164 some variants of i386 svr4.0.) */
23165 for (i = 0; i < pagesize; ++i)
23166 *(data2 + i) = *(data2 + i) + 1;
23167 data3 = (char *) malloc (pagesize);
23170 if (read (fd, data3, pagesize) != pagesize)
23172 for (i = 0; i < pagesize; ++i)
23173 if (*(data + i) != *(data3 + i))
23179 rm -f conftest$ac_exeext
23180 if { (ac_try="$ac_link"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_link") 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23190 { (case "(($ac_try" in
23191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192 *) ac_try_echo=$ac_try;;
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_try") 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 ac_cv_func_mmap_fixed_mapped=yes
23201 echo "$as_me: program exited with status $ac_status" >&5
23202 echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 ( exit $ac_status )
23206 ac_cv_func_mmap_fixed_mapped=no
23208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23217 cat >>confdefs.h <<\_ACEOF
23218 @%:@define HAVE_MMAP 1
23222 rm -f conftest.mmap
23227 RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
23231 RCPATH="$sysconfdir/chasenrc"
23236 if test -n "${GCC}"; then
23237 CFLAGS="${CFLAGS} -Wall"
23241 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
23243 ac_config_commands="$ac_config_commands default"
23245 cat >confcache <<\_ACEOF
23246 # This file is a shell script that caches the results of configure
23247 # tests run on this system so they can be shared between configure
23248 # scripts and configure runs, see configure's option --config-cache.
23249 # It is not useful on other systems. If it contains results you don't
23250 # want to keep, you may remove or edit it.
23252 # config.status only pays attention to the cache file if you give it
23253 # the --recheck option to rerun configure.
23255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23257 # following values.
23261 # The following way of writing the cache mishandles newlines in values,
23262 # but we know of no workaround that is simple, portable, and efficient.
23263 # So, we kill variables containing newlines.
23264 # Ultrix sh set writes to stderr and can't be redirected directly,
23265 # and sets the high bit in the cache file unless we assign to the vars.
23267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23268 eval ac_val=\$$ac_var
23272 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23276 _ | IFS | as_nl) ;; #(
23277 *) $as_unset $ac_var ;;
23283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23284 *${as_nl}ac_space=\ *)
23285 # `set' does not quote correctly, so add quotes (double-quote
23286 # substitution turns \\\\ into \\, and sed turns \\ into \).
23289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23292 # `set' quotes correctly as required by POSIX, so do not add quotes.
23293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23307 if test -w "$cache_file"; then
23308 test "x$cache_file" != "x/dev/null" &&
23309 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23310 echo "$as_me: updating cache $cache_file" >&6;}
23311 cat confcache >$cache_file
23313 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23320 # Let make expand exec_prefix.
23321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23323 DEFS=-DHAVE_CONFIG_H
23327 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23328 # 1. Remove the extension, and $U if already installed.
23329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23330 ac_i=`echo "$ac_i" | sed "$ac_script"`
23331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23332 # will be set to the directory where LIBOBJS objects are built.
23333 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23334 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23336 LIB@&t@OBJS=$ac_libobjs
23338 LTLIBOBJS=$ac_ltlibobjs
23341 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23342 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23343 Usually this means the macro was only invoked conditionally." >&5
23344 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23345 Usually this means the macro was only invoked conditionally." >&2;}
23346 { (exit 1); exit 1; }; }
23348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23349 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23350 Usually this means the macro was only invoked conditionally." >&5
23351 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23352 Usually this means the macro was only invoked conditionally." >&2;}
23353 { (exit 1); exit 1; }; }
23355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23356 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23357 Usually this means the macro was only invoked conditionally." >&5
23358 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23359 Usually this means the macro was only invoked conditionally." >&2;}
23360 { (exit 1); exit 1; }; }
23362 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23363 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23364 Usually this means the macro was only invoked conditionally." >&5
23365 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23366 Usually this means the macro was only invoked conditionally." >&2;}
23367 { (exit 1); exit 1; }; }
23370 : ${CONFIG_STATUS=./config.status}
23371 ac_clean_files_save=$ac_clean_files
23372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23373 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23374 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23375 cat >$CONFIG_STATUS <<_ACEOF
23377 # Generated by $as_me.
23378 # Run this file to recreate the current configuration.
23379 # Compiler output produced by configure, useful for debugging
23380 # configure, is in config.log if it exists.
23383 ac_cs_recheck=false
23385 SHELL=\${CONFIG_SHELL-$SHELL}
23388 cat >>$CONFIG_STATUS <<\_ACEOF
23389 ## --------------------- ##
23390 ## M4sh Initialization. ##
23391 ## --------------------- ##
23393 # Be more Bourne compatible
23394 DUALCASE=1; export DUALCASE # for MKS sh
23395 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23398 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23399 # is contrary to our usage. Disable this feature.
23400 alias -g '${1+"$@"}'='"$@"'
23401 setopt NO_GLOB_SUBST
23403 case `(set -o) 2>/dev/null` in
23404 *posix*) set -o posix ;;
23413 # Avoid depending upon Character Ranges.
23414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23417 as_cr_digits='0123456789'
23418 as_cr_alnum=$as_cr_Letters$as_cr_digits
23420 # The user is always right.
23421 if test "${PATH_SEPARATOR+set}" != set; then
23422 echo "#! /bin/sh" >conf$$.sh
23423 echo "exit 0" >>conf$$.sh
23425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23433 # Support unset when possible.
23434 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23442 # We need space, tab and new line, in precisely that order. Quoting is
23443 # there to prevent editors from complaining about space-tab.
23444 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23445 # splitting by setting IFS to empty value.)
23450 # Find who we are. Look in the path if we contain no directory separator.
23452 *[\\/]* ) as_myself=$0 ;;
23453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23454 for as_dir in $PATH
23457 test -z "$as_dir" && as_dir=.
23458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23464 # We did not find ourselves, most probably we were run as `sh COMMAND'
23465 # in which case we are not to be found in the path.
23466 if test "x$as_myself" = x; then
23469 if test ! -f "$as_myself"; then
23470 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23471 { (exit 1); exit 1; }
23474 # Work around bugs in pre-3.0 UWIN ksh.
23475 for as_var in ENV MAIL MAILPATH
23476 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23484 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23485 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23486 LC_TELEPHONE LC_TIME
23488 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23489 eval $as_var=C; export $as_var
23491 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23495 # Required to use basename.
23496 if expr a : '\(a\)' >/dev/null 2>&1 &&
23497 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23503 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23504 as_basename=basename
23510 # Name of the executable.
23511 as_me=`$as_basename -- "$0" ||
23512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23513 X"$0" : 'X\(//\)$' \| \
23514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23516 sed '/^.*\/\([^/][^/]*\)\/*$/{
23535 as_lineno_1=$LINENO
23536 as_lineno_2=$LINENO
23537 test "x$as_lineno_1" != "x$as_lineno_2" &&
23538 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23540 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23541 # uniformly replaced by the line number. The first 'sed' inserts a
23542 # line-number line after each line using $LINENO; the second 'sed'
23543 # does the real work. The second script uses 'N' to pair each
23544 # line-number line with the line containing $LINENO, and appends
23545 # trailing '-' during substitution so that $LINENO is not a special
23546 # case at line end.
23547 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23548 # scripts with optimization help from Paolo Bonzini. Blame Lee
23549 # E. McMahon (1931-1989) for sed's syntax. :-)
23561 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23564 ' >$as_me.lineno &&
23565 chmod +x "$as_me.lineno" ||
23566 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23567 { (exit 1); exit 1; }; }
23569 # Don't try to exec as it changes $[0], causing all sort of problems
23570 # (the dirname of $[0] is not the place where we might find the
23571 # original and so on. Autoconf is especially sensitive to this).
23572 . "./$as_me.lineno"
23573 # Exit status is that of the last command.
23578 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23584 ECHO_C= ECHO_N= ECHO_T=
23585 case `echo -n x` in
23587 case `echo 'x\c'` in
23588 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23595 if expr a : '\(a\)' >/dev/null 2>&1 &&
23596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23602 rm -f conf$$ conf$$.exe conf$$.file
23603 if test -d conf$$.dir; then
23604 rm -f conf$$.dir/conf$$.file
23610 if ln -s conf$$.file conf$$ 2>/dev/null; then
23612 # ... but there are two gotchas:
23613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23615 # In both cases, we have to default to `cp -p'.
23616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23618 elif ln conf$$.file conf$$ 2>/dev/null; then
23623 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23624 rmdir conf$$.dir 2>/dev/null
23626 if mkdir -p . 2>/dev/null; then
23629 test -d ./-p && rmdir ./-p
23633 if test -x / >/dev/null 2>&1; then
23634 as_test_x='test -x'
23636 if ls -dL / >/dev/null 2>&1; then
23643 if test -d "$1"; then
23649 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23650 ???[sx]*):;;*)false;;esac;fi
23654 as_executable_p=$as_test_x
23656 # Sed expression to map a string onto a valid CPP name.
23657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23659 # Sed expression to map a string onto a valid variable name.
23660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23665 # Save the log message, to keep $[0] and so on meaningful, and to
23666 # report actual input values of CONFIG_FILES etc. instead of their
23667 # values after options handling.
23669 This file was extended by $as_me, which was
23670 generated by GNU Autoconf 2.61. Invocation command line was
23672 CONFIG_FILES = $CONFIG_FILES
23673 CONFIG_HEADERS = $CONFIG_HEADERS
23674 CONFIG_LINKS = $CONFIG_LINKS
23675 CONFIG_COMMANDS = $CONFIG_COMMANDS
23678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23683 cat >>$CONFIG_STATUS <<_ACEOF
23684 # Files that config.status was made for.
23685 config_files="$ac_config_files"
23686 config_headers="$ac_config_headers"
23687 config_commands="$ac_config_commands"
23691 cat >>$CONFIG_STATUS <<\_ACEOF
23693 \`$as_me' instantiates files from templates according to the
23694 current configuration.
23696 Usage: $0 [OPTIONS] [FILE]...
23698 -h, --help print this help, then exit
23699 -V, --version print version number and configuration settings, then exit
23700 -q, --quiet do not print progress messages
23701 -d, --debug don't remove temporary files
23702 --recheck update $as_me by reconfiguring in the same conditions
23703 --file=FILE[:TEMPLATE]
23704 instantiate the configuration file FILE
23705 --header=FILE[:TEMPLATE]
23706 instantiate the configuration header FILE
23708 Configuration files:
23711 Configuration headers:
23714 Configuration commands:
23717 Report bugs to <bug-autoconf@gnu.org>."
23720 cat >>$CONFIG_STATUS <<_ACEOF
23723 configured by $0, generated by GNU Autoconf 2.61,
23724 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23726 Copyright (C) 2006 Free Software Foundation, Inc.
23727 This config.status script is free software; the Free Software Foundation
23728 gives unlimited permission to copy, distribute and modify it."
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23736 # If no file are specified by the user, then we need to provide default
23737 # value. By we need to know if files were specified by the user.
23743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23755 # Handling of the options.
23756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23759 echo "$ac_cs_version"; exit ;;
23760 --debug | --debu | --deb | --de | --d | -d )
23762 --file | --fil | --fi | --f )
23764 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23765 ac_need_defaults=false;;
23766 --header | --heade | --head | --hea )
23768 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23769 ac_need_defaults=false;;
23771 # Conflict between --help and --header
23772 { echo "$as_me: error: ambiguous option: $1
23773 Try \`$0 --help' for more information." >&2
23774 { (exit 1); exit 1; }; };;
23775 --help | --hel | -h )
23776 echo "$ac_cs_usage"; exit ;;
23777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23781 # This is an error.
23782 -*) { echo "$as_me: error: unrecognized option: $1
23783 Try \`$0 --help' for more information." >&2
23784 { (exit 1); exit 1; }; } ;;
23786 *) ac_config_targets="$ac_config_targets $1"
23787 ac_need_defaults=false ;;
23793 ac_configure_extra_args=
23795 if $ac_cs_silent; then
23797 ac_configure_extra_args="$ac_configure_extra_args --silent"
23801 cat >>$CONFIG_STATUS <<_ACEOF
23802 if \$ac_cs_recheck; then
23803 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23804 CONFIG_SHELL=$SHELL
23805 export CONFIG_SHELL
23806 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23810 cat >>$CONFIG_STATUS <<\_ACEOF
23814 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
23815 @%:@@%:@ Running $as_me. @%:@@%:@
23821 cat >>$CONFIG_STATUS <<_ACEOF
23825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23829 cat >>$CONFIG_STATUS <<\_ACEOF
23831 # Handling of arguments.
23832 for ac_config_target in $ac_config_targets
23834 case $ac_config_target in
23835 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23836 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23838 "chasen-config") CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
23839 "chasen/Makefile") CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
23840 "mkchadic/Makefile") CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
23841 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23842 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23843 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23844 "chasen.spec") CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
23845 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23847 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23849 { (exit 1); exit 1; }; };;
23854 # If the user did not use the arguments to specify the items to instantiate,
23855 # then the envvar interface is used. Set only those that are not.
23856 # We use the long form for the default assignment because of an extremely
23857 # bizarre bug on SunOS 4.1.3.
23858 if $ac_need_defaults; then
23859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23864 # Have a temporary directory for convenience. Make it in the build tree
23865 # simply because there is no reason against having it here, and in addition,
23866 # creating and moving files from /tmp can sometimes cause problems.
23867 # Hook for its removal unless debugging.
23868 # Note that there is a small window in which the directory will not be cleaned:
23869 # after its creation but before its name has been assigned to `$tmp'.
23873 trap 'exit_status=$?
23874 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23876 trap '{ (exit 1); exit 1; }' 1 2 13 15
23878 # Create a (secure) tmp directory for tmp files.
23881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23882 test -n "$tmp" && test -d "$tmp"
23885 tmp=./conf$$-$RANDOM
23886 (umask 077 && mkdir "$tmp")
23889 echo "$me: cannot create a temporary directory in ." >&2
23890 { (exit 1); exit 1; }
23894 # Set up the sed scripts for CONFIG_FILES section.
23897 # No need to generate the scripts if there are no CONFIG_FILES.
23898 # This happens for instance when ./config.status config.h
23899 if test -n "$CONFIG_FILES"; then
23906 for ac_last_try in false false false false false :; do
23907 cat >conf$$subs.sed <<_ACEOF
23908 SHELL!$SHELL$ac_delim
23909 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23910 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23911 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23912 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23913 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23914 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23915 exec_prefix!$exec_prefix$ac_delim
23916 prefix!$prefix$ac_delim
23917 program_transform_name!$program_transform_name$ac_delim
23918 bindir!$bindir$ac_delim
23919 sbindir!$sbindir$ac_delim
23920 libexecdir!$libexecdir$ac_delim
23921 datarootdir!$datarootdir$ac_delim
23922 datadir!$datadir$ac_delim
23923 sysconfdir!$sysconfdir$ac_delim
23924 sharedstatedir!$sharedstatedir$ac_delim
23925 localstatedir!$localstatedir$ac_delim
23926 includedir!$includedir$ac_delim
23927 oldincludedir!$oldincludedir$ac_delim
23928 docdir!$docdir$ac_delim
23929 infodir!$infodir$ac_delim
23930 htmldir!$htmldir$ac_delim
23931 dvidir!$dvidir$ac_delim
23932 pdfdir!$pdfdir$ac_delim
23933 psdir!$psdir$ac_delim
23934 libdir!$libdir$ac_delim
23935 localedir!$localedir$ac_delim
23936 mandir!$mandir$ac_delim
23937 DEFS!$DEFS$ac_delim
23938 ECHO_C!$ECHO_C$ac_delim
23939 ECHO_N!$ECHO_N$ac_delim
23940 ECHO_T!$ECHO_T$ac_delim
23941 LIBS!$LIBS$ac_delim
23942 build_alias!$build_alias$ac_delim
23943 host_alias!$host_alias$ac_delim
23944 target_alias!$target_alias$ac_delim
23945 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23946 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23947 INSTALL_DATA!$INSTALL_DATA$ac_delim
23948 CYGPATH_W!$CYGPATH_W$ac_delim
23949 PACKAGE!$PACKAGE$ac_delim
23950 VERSION!$VERSION$ac_delim
23951 ACLOCAL!$ACLOCAL$ac_delim
23952 AUTOCONF!$AUTOCONF$ac_delim
23953 AUTOMAKE!$AUTOMAKE$ac_delim
23954 AUTOHEADER!$AUTOHEADER$ac_delim
23955 MAKEINFO!$MAKEINFO$ac_delim
23956 install_sh!$install_sh$ac_delim
23957 STRIP!$STRIP$ac_delim
23958 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23959 mkdir_p!$mkdir_p$ac_delim
23961 SET_MAKE!$SET_MAKE$ac_delim
23962 am__leading_dot!$am__leading_dot$ac_delim
23963 AMTAR!$AMTAR$ac_delim
23964 am__tar!$am__tar$ac_delim
23965 am__untar!$am__untar$ac_delim
23966 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23967 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23968 MAINT!$MAINT$ac_delim
23970 CFLAGS!$CFLAGS$ac_delim
23971 LDFLAGS!$LDFLAGS$ac_delim
23972 CPPFLAGS!$CPPFLAGS$ac_delim
23973 ac_ct_CC!$ac_ct_CC$ac_delim
23974 EXEEXT!$EXEEXT$ac_delim
23975 OBJEXT!$OBJEXT$ac_delim
23976 DEPDIR!$DEPDIR$ac_delim
23977 am__include!$am__include$ac_delim
23978 am__quote!$am__quote$ac_delim
23979 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23980 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23981 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23982 CCDEPMODE!$CCDEPMODE$ac_delim
23983 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23984 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23986 CXXFLAGS!$CXXFLAGS$ac_delim
23987 ac_ct_CXX!$ac_ct_CXX$ac_delim
23988 CXXDEPMODE!$CXXDEPMODE$ac_delim
23989 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23990 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23991 build!$build$ac_delim
23992 build_cpu!$build_cpu$ac_delim
23993 build_vendor!$build_vendor$ac_delim
23994 build_os!$build_os$ac_delim
23995 host!$host$ac_delim
23996 host_cpu!$host_cpu$ac_delim
23997 host_vendor!$host_vendor$ac_delim
23998 host_os!$host_os$ac_delim
23999 GREP!$GREP$ac_delim
24000 EGREP!$EGREP$ac_delim
24001 LN_S!$LN_S$ac_delim
24002 ECHO!$ECHO$ac_delim
24004 RANLIB!$RANLIB$ac_delim
24007 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24009 elif $ac_last_try; then
24010 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24011 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24012 { (exit 1); exit 1; }; }
24014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24018 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24019 if test -n "$ac_eof"; then
24020 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24021 ac_eof=`expr $ac_eof + 1`
24024 cat >>$CONFIG_STATUS <<_ACEOF
24025 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24029 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24030 s/^/s,@/; s/!/@,|#_!!_#|/
24033 s/'"$ac_delim"'$/,g/; t
24035 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24036 ' >>$CONFIG_STATUS <conf$$subs.sed
24037 rm -f conf$$subs.sed
24038 cat >>$CONFIG_STATUS <<_ACEOF
24044 for ac_last_try in false false false false false :; do
24045 cat >conf$$subs.sed <<_ACEOF
24047 CXXCPP!$CXXCPP$ac_delim
24049 FFLAGS!$FFLAGS$ac_delim
24050 ac_ct_F77!$ac_ct_F77$ac_delim
24051 LIBTOOL!$LIBTOOL$ac_delim
24053 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24054 LEXLIB!$LEXLIB$ac_delim
24055 LTVERSION!$LTVERSION$ac_delim
24056 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
24057 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
24058 RCPATH!$RCPATH$ac_delim
24059 LTLIBOBJS!$LTLIBOBJS$ac_delim
24062 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24064 elif $ac_last_try; then
24065 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24066 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24067 { (exit 1); exit 1; }; }
24069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24073 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24074 if test -n "$ac_eof"; then
24075 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24076 ac_eof=`expr $ac_eof + 1`
24079 cat >>$CONFIG_STATUS <<_ACEOF
24080 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24084 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24085 s/^/s,@/; s/!/@,|#_!!_#|/
24088 s/'"$ac_delim"'$/,g/; t
24090 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24091 ' >>$CONFIG_STATUS <conf$$subs.sed
24092 rm -f conf$$subs.sed
24093 cat >>$CONFIG_STATUS <<_ACEOF
24100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24102 # trailing colons and then remove the whole line if VPATH becomes empty
24103 # (actually we leave an empty line to preserve line numbers).
24104 if test "x$srcdir" = x.; then
24105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24106 s/:*\$(srcdir):*/:/
24107 s/:*\${srcdir}:*/:/
24109 s/^\([^=]*=[ ]*\):*/\1/
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24116 fi # test -n "$CONFIG_FILES"
24119 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24122 :[FHLC]) ac_mode=$ac_tag; continue;;
24124 case $ac_mode$ac_tag in
24126 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24127 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24128 { (exit 1); exit 1; }; };;
24129 :[FH]-) ac_tag=-:-;;
24130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24147 -) ac_f="$tmp/stdin";;
24148 *) # Look for the file first in the build tree, then in the source tree
24149 # (if the path is not absolute). The absolute path cannot be DOS-style,
24150 # because $ac_f cannot contain `:'.
24154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24156 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24157 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24158 { (exit 1); exit 1; }; };;
24160 ac_file_inputs="$ac_file_inputs $ac_f"
24163 # Let's still pretend it is `configure' which instantiates (i.e., don't
24164 # use $as_me), people would be surprised to read:
24165 # /* config.h. Generated by config.status. */
24166 configure_input="Generated from "`IFS=:
24167 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24168 if test x"$ac_file" != x-; then
24169 configure_input="$ac_file. $configure_input"
24170 { echo "$as_me:$LINENO: creating $ac_file" >&5
24171 echo "$as_me: creating $ac_file" >&6;}
24175 *:-:* | *:-) cat >"$tmp/stdin";;
24180 ac_dir=`$as_dirname -- "$ac_file" ||
24181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$ac_file" : 'X\(//\)[^/]' \| \
24183 X"$ac_file" : 'X\(//\)$' \| \
24184 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24190 /^X\(\/\/\)[^/].*/{
24205 -*) as_dir=./$as_dir;;
24207 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24211 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24212 *) as_qdir=$as_dir;;
24214 as_dirs="'$as_qdir' $as_dirs"
24215 as_dir=`$as_dirname -- "$as_dir" ||
24216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24217 X"$as_dir" : 'X\(//\)[^/]' \| \
24218 X"$as_dir" : 'X\(//\)$' \| \
24219 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24225 /^X\(\/\/\)[^/].*/{
24238 test -d "$as_dir" && break
24240 test -z "$as_dirs" || eval "mkdir $as_dirs"
24241 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24242 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24243 { (exit 1); exit 1; }; }; }
24247 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24249 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24250 # A ".." for each directory in $ac_dir_suffix.
24251 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24252 case $ac_top_builddir_sub in
24253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24257 ac_abs_top_builddir=$ac_pwd
24258 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24259 # for backward compatibility:
24260 ac_top_builddir=$ac_top_build_prefix
24263 .) # We are building in place.
24265 ac_top_srcdir=$ac_top_builddir_sub
24266 ac_abs_top_srcdir=$ac_pwd ;;
24267 [\\/]* | ?:[\\/]* ) # Absolute name.
24268 ac_srcdir=$srcdir$ac_dir_suffix;
24269 ac_top_srcdir=$srcdir
24270 ac_abs_top_srcdir=$srcdir ;;
24271 *) # Relative name.
24272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24273 ac_top_srcdir=$ac_top_build_prefix$srcdir
24274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24276 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24286 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24287 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24291 cat >>$CONFIG_STATUS <<\_ACEOF
24292 # If the template does not know about datarootdir, expand it.
24293 # FIXME: This hack should be removed a few years after 2.60.
24294 ac_datarootdir_hack=; ac_datarootdir_seen=
24296 case `sed -n '/datarootdir/ {
24305 ' $ac_file_inputs` in
24306 *datarootdir*) ac_datarootdir_seen=yes;;
24307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24308 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24309 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24311 cat >>$CONFIG_STATUS <<_ACEOF
24312 ac_datarootdir_hack='
24313 s&@datadir@&$datadir&g
24314 s&@docdir@&$docdir&g
24315 s&@infodir@&$infodir&g
24316 s&@localedir@&$localedir&g
24317 s&@mandir@&$mandir&g
24318 s&\\\${datarootdir}&$datarootdir&g' ;;
24322 # Neutralize VPATH when `$srcdir' = `.'.
24323 # Shell code in configure.ac might set extrasub.
24324 # FIXME: do we really want to maintain this feature?
24325 cat >>$CONFIG_STATUS <<_ACEOF
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24332 s&@configure_input@&$configure_input&;t t
24333 s&@top_builddir@&$ac_top_builddir_sub&;t t
24334 s&@srcdir@&$ac_srcdir&;t t
24335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24336 s&@top_srcdir@&$ac_top_srcdir&;t t
24337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24338 s&@builddir@&$ac_builddir&;t t
24339 s&@abs_builddir@&$ac_abs_builddir&;t t
24340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24341 s&@INSTALL@&$ac_INSTALL&;t t
24342 $ac_datarootdir_hack
24343 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24346 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24348 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24349 which seems to be undefined. Please make sure it is defined." >&5
24350 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24351 which seems to be undefined. Please make sure it is defined." >&2;}
24355 -) cat "$tmp/out"; rm -f "$tmp/out";;
24356 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24365 # Transform confdefs.h into a sed script `conftest.defines', that
24366 # substitutes the proper values into config.h.in to produce config.h.
24367 rm -f conftest.defines conftest.tail
24368 # First, append a space to every undef/define line, to ease matching.
24369 echo 's/$/ /' >conftest.defines
24370 # Then, protect against being on the right side of a sed subst, or in
24371 # an unquoted here document, in config.status. If some macros were
24372 # called several times there might be several #defines for the same
24373 # symbol, which is useless. But do not sort them, since the last
24374 # AC_DEFINE must be honored.
24375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24376 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24377 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24378 # PARAMS is the parameter list in the macro definition--in most cases, it's
24379 # just an empty string.
24380 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24381 ac_dB='\\)[ (].*,\\1define\\2'
24389 s/^[ ]*#[ ]*define[ ][ ]*//
24394 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24395 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24396 ' >>conftest.defines
24398 # Remove the space that was appended to ease matching.
24399 # Then replace #undef with comments. This is necessary, for
24400 # example, in the case of _POSIX_SOURCE, which is predefined and required
24401 # on some systems where configure will not decide to define it.
24402 # (The regexp can be short, since the line contains either #define or #undef.)
24404 s,^[ #]*u.*,/* & */,' >>conftest.defines
24406 # Break up conftest.defines:
24407 ac_max_sed_lines=50
24409 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24410 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24411 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24413 ac_in='$ac_file_inputs'
24414 ac_out='"$tmp/out1"'
24415 ac_nxt='"$tmp/out2"'
24419 # Write a here document:
24420 cat >>$CONFIG_STATUS <<_ACEOF
24421 # First, check the format of the line:
24422 cat >"\$tmp/defines.sed" <<\\CEOF
24423 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24424 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24428 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24430 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24431 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24432 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24433 grep . conftest.tail >/dev/null || break
24434 rm -f conftest.defines
24435 mv conftest.tail conftest.defines
24437 rm -f conftest.defines conftest.tail
24439 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24440 cat >>$CONFIG_STATUS <<\_ACEOF
24441 if test x"$ac_file" != x-; then
24442 echo "/* $configure_input */" >"$tmp/config.h"
24443 cat "$ac_result" >>"$tmp/config.h"
24444 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24445 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24446 echo "$as_me: $ac_file is unchanged" >&6;}
24449 mv "$tmp/config.h" $ac_file
24452 echo "/* $configure_input */"
24456 # Compute $ac_file's index in $config_headers.
24458 for _am_header in $config_headers :; do
24459 case $_am_header in
24460 $ac_file | $ac_file:* )
24463 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24466 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24467 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24468 X$ac_file : 'X\(//\)[^/]' \| \
24469 X$ac_file : 'X\(//\)$' \| \
24470 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24476 /^X\(\/\/\)[^/].*/{
24488 s/.*/./; q'`/stamp-h$_am_stamp_count
24491 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24492 echo "$as_me: executing $ac_file commands" >&6;}
24497 case $ac_file$ac_mode in
24498 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24499 # Strip MF so we end up with the name of the file.
24500 mf=`echo "$mf" | sed -e 's/:.*$//'`
24501 # Check whether this is an Automake generated Makefile or not.
24502 # We used to match only the files named `Makefile.in', but
24503 # some people rename them; so instead we look at the file content.
24504 # Grep'ing the first line is not enough: some people post-process
24505 # each Makefile.in and add a new line on top of each file to say so.
24506 # So let's grep whole file.
24507 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24508 dirpart=`$as_dirname -- "$mf" ||
24509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24510 X"$mf" : 'X\(//\)[^/]' \| \
24511 X"$mf" : 'X\(//\)$' \| \
24512 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24518 /^X\(\/\/\)[^/].*/{
24534 # Extract the definition of DEPDIR, am__include, and am__quote
24535 # from the Makefile without running `make'.
24536 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24537 test -z "$DEPDIR" && continue
24538 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24539 test -z "am__include" && continue
24540 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24541 # When using ansi2knr, U may be empty or an underscore; expand it
24542 U=`sed -n 's/^U = //p' < "$mf"`
24543 # Find all dependency output files, they are included files with
24544 # $(DEPDIR) in their names. We invoke sed twice because it is the
24545 # simplest approach to changing $(DEPDIR) to its actual value in the
24547 for file in `sed -n "
24548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24550 # Make sure the directory exists.
24551 test -f "$dirpart/$file" && continue
24552 fdir=`$as_dirname -- "$file" ||
24553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24554 X"$file" : 'X\(//\)[^/]' \| \
24555 X"$file" : 'X\(//\)$' \| \
24556 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24562 /^X\(\/\/\)[^/].*/{
24575 { as_dir=$dirpart/$fdir
24577 -*) as_dir=./$as_dir;;
24579 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24583 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24584 *) as_qdir=$as_dir;;
24586 as_dirs="'$as_qdir' $as_dirs"
24587 as_dir=`$as_dirname -- "$as_dir" ||
24588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24589 X"$as_dir" : 'X\(//\)[^/]' \| \
24590 X"$as_dir" : 'X\(//\)$' \| \
24591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24597 /^X\(\/\/\)[^/].*/{
24610 test -d "$as_dir" && break
24612 test -z "$as_dirs" || eval "mkdir $as_dirs"
24613 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24615 { (exit 1); exit 1; }; }; }
24616 # echo "creating $dirpart/$file"
24617 echo '# dummy' > "$dirpart/$file"
24621 "default":C) chmod +x chasen-config ;;
24627 { (exit 0); exit 0; }
24629 chmod +x $CONFIG_STATUS
24630 ac_clean_files=$ac_clean_files_save
24633 # configure is writing to config.log, and then calls config.status.
24634 # config.status does its own redirection, appending to config.log.
24635 # Unfortunately, on DOS this fails, as config.log is still kept open
24636 # by configure, so config.status won't be able to write to it; its
24637 # output is simply discarded. So we exec the FD to /dev/null,
24638 # effectively closing config.log, so it can be properly (re)opened and
24639 # appended to by config.status. When coming back to configure, we
24640 # need to make the FD available again.
24641 if test "$no_create" != yes; then
24643 ac_config_status_args=
24644 test "$silent" = yes &&
24645 ac_config_status_args="$ac_config_status_args --quiet"
24647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24650 # would make configure fail if this is the last instruction.
24651 $ac_cs_success || { (exit 1); exit 1; }
24656 # removed the following entry from AC_OUTPUT
24657 # lib/Makefile.mingw32
24660 # mode:shell-script