2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for scss 1.0.0.
5 # Report bugs to <konn@users.sourceforge.jp>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='scss'
731 PACKAGE_VERSION='1.0.0'
732 PACKAGE_STRING='scss 1.0.0'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
735 ac_unique_file="src/main.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
835 INSTALL_STRIP_PROGRAM
885 ac_precious_vars='build_alias
902 # Initialize some variables set by options.
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures scss 1.0.0 to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/scss]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of scss 1.0.0:";;
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-dependency-tracking speeds up one-time build
1485 --enable-dependency-tracking do not reject slow dependency extractors
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1494 --with-tags[=TAGS] include additional configurations [automatic]
1495 --with-apr-config=ARG Path of apr-config program file.
1496 --with-apu-config=ARG Path of apu-config program file.
1498 Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 LIBS libraries to pass to the linker, e.g. -l<library>
1504 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1505 you have headers in a nonstandard directory <include dir>
1507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
1509 CXXCPP C++ preprocessor
1510 F77 Fortran 77 compiler command
1511 FFLAGS Fortran 77 compiler flags
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1516 Report bugs to <konn@users.sourceforge.jp>.
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" || continue
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1544 .) # We are building in place.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1568 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1577 scss configure 1.0.0
1578 generated by GNU Autoconf 2.61
1580 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1581 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1587 cat >config.log <<_ACEOF
1588 This file contains any messages produced by compilers while
1589 running configure, to aid debugging if configure makes a mistake.
1591 It was created by scss $as_me 1.0.0, which was
1592 generated by GNU Autoconf 2.61. Invocation command line was
1604 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1613 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1614 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1615 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1616 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1617 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1618 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1619 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 test -z "$as_dir" && as_dir=.
1628 echo "PATH: $as_dir"
1644 # Keep a trace of the command line.
1645 # Strip out --no-create and --no-recursion so they do not pile up.
1646 # Strip out --silent because we don't want to record it for future runs.
1647 # Also quote any args containing shell meta-characters.
1648 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_must_keep_next=false
1658 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660 | -silent | --silent | --silen | --sile | --sil)
1663 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669 if test $ac_must_keep_next = true; then
1670 ac_must_keep_next=false # Got value, back to normal.
1673 *=* | --config-cache | -C | -disable-* | --disable-* \
1674 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676 | -with-* | --with-* | -without-* | --without-* | --x)
1677 case "$ac_configure_args0 " in
1678 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 -* ) ac_must_keep_next=true ;;
1684 ac_configure_args="$ac_configure_args '$ac_arg'"
1689 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692 # When interrupted or exit'd, cleanup temporary files, and complete
1693 # config.log. We remove comments because anyway the quotes in there
1694 # would cause problems or look ugly.
1695 # WARNING: Use '\'' to represent an apostrophe within the trap.
1696 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1697 trap 'exit_status=$?
1698 # Save into config.log some information that might help in debugging.
1703 ## ---------------- ##
1704 ## Cache variables. ##
1705 ## ---------------- ##
1708 # The following way of writing the cache mishandles newlines in values,
1710 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711 eval ac_val=\$$ac_var
1715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 _ | IFS | as_nl) ;; #(
1720 *) $as_unset $ac_var ;;
1725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726 *${as_nl}ac_space=\ *)
1728 "s/'\''/'\''\\\\'\'''\''/g;
1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1740 ## ----------------- ##
1741 ## Output variables. ##
1742 ## ----------------- ##
1745 for ac_var in $ac_subst_vars
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1755 if test -n "$ac_subst_files"; then
1757 ## ------------------- ##
1758 ## File substitutions. ##
1759 ## ------------------- ##
1762 for ac_var in $ac_subst_files
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 echo "$ac_var='\''$ac_val'\''"
1773 if test -s confdefs.h; then
1783 test "$ac_signal" != 0 &&
1784 echo "$as_me: caught signal $ac_signal"
1785 echo "$as_me: exit $exit_status"
1787 rm -f core *.core core.conftest.* &&
1788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 for ac_signal in 1 2 13 15; do
1792 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1797 rm -f -r conftest* confdefs.h
1799 # Predefined preprocessor variables.
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 # Let the site file select an alternate cache file if it wants to.
1827 # Prefer explicitly selected file to automatically selected ones.
1828 if test -n "$CONFIG_SITE"; then
1829 set x "$CONFIG_SITE"
1830 elif test "x$prefix" != xNONE; then
1831 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 set x "$ac_default_prefix/share/config.site" \
1834 "$ac_default_prefix/etc/config.site"
1839 if test -r "$ac_site_file"; then
1840 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841 echo "$as_me: loading site script $ac_site_file" >&6;}
1842 sed 's/^/| /' "$ac_site_file" >&5
1847 if test -r "$cache_file"; then
1848 # Some versions of bash will fail to source /dev/null (special
1849 # files actually), so we avoid doing that.
1850 if test -f "$cache_file"; then
1851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852 echo "$as_me: loading cache $cache_file" >&6;}
1854 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855 *) . "./$cache_file";;
1859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860 echo "$as_me: creating cache $cache_file" >&6;}
1864 # Check that the precious variables saved in the cache have kept the same
1866 ac_cache_corrupted=false
1867 for ac_var in $ac_precious_vars; do
1868 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869 eval ac_new_set=\$ac_env_${ac_var}_set
1870 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871 eval ac_new_val=\$ac_env_${ac_var}_value
1872 case $ac_old_set,$ac_new_set in
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1883 if test "x$ac_old_val" != "x$ac_new_val"; then
1884 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1887 echo "$as_me: former value: $ac_old_val" >&2;}
1888 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1889 echo "$as_me: current value: $ac_new_val" >&2;}
1890 ac_cache_corrupted=:
1893 # Pass precious variables to config.status.
1894 if test "$ac_new_set" = set; then
1896 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 *) ac_arg=$ac_var=$ac_new_val ;;
1899 case " $ac_configure_args " in
1900 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1901 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905 if $ac_cache_corrupted; then
1906 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1907 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1909 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910 { (exit 1); exit 1; }; }
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1946 if test -f "$ac_dir/install-sh"; then
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 elif test -f "$ac_dir/install.sh"; then
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 elif test -f "$ac_dir/shtool"; then
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 # Make sure we can run config.sub.
1976 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1977 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1978 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1979 { (exit 1); exit 1; }; }
1981 { echo "$as_me:$LINENO: checking build system type" >&5
1982 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1983 if test "${ac_cv_build+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 ac_build_alias=$build_alias
1987 test "x$ac_build_alias" = x &&
1988 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1989 test "x$ac_build_alias" = x &&
1990 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1991 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1992 { (exit 1); exit 1; }; }
1993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1994 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1996 { (exit 1); exit 1; }; }
1999 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2000 echo "${ECHO_T}$ac_cv_build" >&6; }
2001 case $ac_cv_build in
2003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2004 echo "$as_me: error: invalid value of canonical build" >&2;}
2005 { (exit 1); exit 1; }; };;
2008 ac_save_IFS=$IFS; IFS='-'
2014 # Remember, the first character of IFS is used to create $*,
2015 # except with old shells:
2018 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2021 { echo "$as_me:$LINENO: checking host system type" >&5
2022 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_host+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test "x$host_alias" = x; then
2027 ac_cv_host=$ac_cv_build
2029 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2030 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2031 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2032 { (exit 1); exit 1; }; }
2036 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2037 echo "${ECHO_T}$ac_cv_host" >&6; }
2040 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2041 echo "$as_me: error: invalid value of canonical host" >&2;}
2042 { (exit 1); exit 1; }; };;
2045 ac_save_IFS=$IFS; IFS='-'
2051 # Remember, the first character of IFS is used to create $*,
2052 # except with old shells:
2055 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2058 { echo "$as_me:$LINENO: checking target system type" >&5
2059 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_target+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test "x$target_alias" = x; then
2064 ac_cv_target=$ac_cv_host
2066 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2067 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2068 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2069 { (exit 1); exit 1; }; }
2073 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2074 echo "${ECHO_T}$ac_cv_target" >&6; }
2075 case $ac_cv_target in
2077 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2078 echo "$as_me: error: invalid value of canonical target" >&2;}
2079 { (exit 1); exit 1; }; };;
2081 target=$ac_cv_target
2082 ac_save_IFS=$IFS; IFS='-'
2088 # Remember, the first character of IFS is used to create $*,
2089 # except with old shells:
2092 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2095 # The aliases save the names the user supplied, while $host etc.
2096 # will get canonicalized.
2097 test -n "$target_alias" &&
2098 test "$program_prefix$program_suffix$program_transform_name" = \
2100 program_prefix=${target_alias}-
2101 am__api_version='1.10'
2103 # Find a good install program. We prefer a C program (faster),
2104 # so one script is as good as another. But avoid the broken or
2105 # incompatible versions:
2106 # SysV /etc/install, /usr/sbin/install
2107 # SunOS /usr/etc/install
2108 # IRIX /sbin/install
2110 # AmigaOS /C/install, which installs bootblocks on floppy discs
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # OS/2's system install, which has a completely different semantic
2115 # ./install, which can be erroneously created by make from ./install.sh.
2116 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2117 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2118 if test -z "$INSTALL"; then
2119 if test "${ac_cv_path_install+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 # Account for people who put trailing slashes in PATH elements.
2129 ./ | .// | /cC/* | \
2130 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2131 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2134 # OSF1 and SCO ODT 3.0 have their own names for install.
2135 # Don't use installbsd from OSF since it installs stuff as root
2137 for ac_prog in ginstall scoinst install; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2140 if test $ac_prog = install &&
2141 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142 # AIX install. It has an incompatible calling convention.
2144 elif test $ac_prog = install &&
2145 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146 # program-specific install script used by HP pwplus--don't use.
2149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2162 if test "${ac_cv_path_install+set}" = set; then
2163 INSTALL=$ac_cv_path_install
2165 # As a last resort, use the slow shell script. Don't cache a
2166 # value for INSTALL within a source directory, because that will
2167 # break other packages using the cache if that directory is
2168 # removed, or if the value is a relative name.
2169 INSTALL=$ac_install_sh
2172 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2173 echo "${ECHO_T}$INSTALL" >&6; }
2175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176 # It thinks the first close brace ends the variable substitution.
2177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2183 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2184 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2187 echo timestamp > conftest.file
2188 # Do `set' in a subshell so we don't clobber the current shell's
2189 # arguments. Must try -L first in case configure is actually a
2190 # symlink; some systems play weird games with the mod time of symlinks
2191 # (eg FreeBSD returns the mod time of the symlink's containing
2194 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2195 if test "$*" = "X"; then
2197 set X `ls -t $srcdir/configure conftest.file`
2200 if test "$*" != "X $srcdir/configure conftest.file" \
2201 && test "$*" != "X conftest.file $srcdir/configure"; then
2203 # If neither matched, then we have a broken ls. This can happen
2204 # if, for instance, CONFIG_SHELL is bash and it inherits a
2205 # broken ls alias from the environment. This has actually
2206 # happened. Such a system could not be considered "sane".
2207 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2208 alias in your environment" >&5
2209 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2210 alias in your environment" >&2;}
2211 { (exit 1); exit 1; }; }
2214 test "$2" = conftest.file
2220 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2221 Check your system clock" >&5
2222 echo "$as_me: error: newly created file is older than distributed files!
2223 Check your system clock" >&2;}
2224 { (exit 1); exit 1; }; }
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228 test "$program_prefix" != NONE &&
2229 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2230 # Use a double $ so make ignores it.
2231 test "$program_suffix" != NONE &&
2232 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2233 # Double any \ or $. echo might interpret backslashes.
2234 # By default was `s,x,x', remove it if useless.
2235 cat <<\_ACEOF >conftest.sed
2236 s/[\\$]/&&/g;s/;s,x,x,$//
2238 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2241 # expand $ac_aux_dir to an absolute path
2242 am_aux_dir=`cd $ac_aux_dir && pwd`
2244 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2245 # Use eval to expand $SHELL
2246 if eval "$MISSING --run true"; then
2247 am_missing_run="$MISSING --run "
2250 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2251 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2254 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2255 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2256 if test -z "$MKDIR_P"; then
2257 if test "${ac_cv_path_mkdir+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2264 test -z "$as_dir" && as_dir=.
2265 for ac_prog in mkdir gmkdir; do
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2268 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2269 'mkdir (GNU coreutils) '* | \
2270 'mkdir (coreutils) '* | \
2271 'mkdir (fileutils) '4.1*)
2272 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2282 if test "${ac_cv_path_mkdir+set}" = set; then
2283 MKDIR_P="$ac_cv_path_mkdir -p"
2285 # As a last resort, use the slow shell script. Don't cache a
2286 # value for MKDIR_P within a source directory, because that will
2287 # break other packages using the cache if that directory is
2288 # removed, or if the value is a relative name.
2289 test -d ./--version && rmdir ./--version
2290 MKDIR_P="$ac_install_sh -d"
2293 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2294 echo "${ECHO_T}$MKDIR_P" >&6; }
2298 [\\/$]* | ?:[\\/]*) ;;
2299 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2302 for ac_prog in gawk mawk nawk awk
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_AWK+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$AWK"; then
2312 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_AWK="$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 if test -n "$AWK"; then
2333 { echo "$as_me:$LINENO: result: $AWK" >&5
2334 echo "${ECHO_T}$AWK" >&6; }
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2341 test -n "$AWK" && break
2344 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2345 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2346 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 cat >conftest.make <<\_ACEOF
2353 @echo '@@@%%%=$(MAKE)=@@@%%%'
2355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2358 eval ac_cv_prog_make_${ac_make}_set=yes;;
2360 eval ac_cv_prog_make_${ac_make}_set=no;;
2364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2365 { echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 SET_MAKE="MAKE=${MAKE-make}"
2374 rm -rf .tst 2>/dev/null
2375 mkdir .tst 2>/dev/null
2376 if test -d .tst; then
2381 rmdir .tst 2>/dev/null
2383 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2384 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2385 # is not polluted with repeated "-I."
2386 am__isrc=' -I$(srcdir)'
2387 # test to see if srcdir already configured
2388 if test -f $srcdir/config.status; then
2389 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2390 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2391 { (exit 1); exit 1; }; }
2395 # test whether we have cygpath
2396 if test -z "$CYGPATH_W"; then
2397 if (cygpath --version) >/dev/null 2>/dev/null; then
2398 CYGPATH_W='cygpath -w'
2405 # Define the identity of the package.
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE "$PACKAGE"
2415 cat >>confdefs.h <<_ACEOF
2416 #define VERSION "$VERSION"
2419 # Some tools Automake needs.
2421 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2424 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2427 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2430 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2433 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2435 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2437 # Installed binaries are usually stripped using `strip' when the user
2438 # run `make install-strip'. However `strip' might not be the right
2439 # tool to use in cross-compilation environments, therefore Automake
2440 # will honor the `STRIP' environment variable to overrule this program.
2441 if test "$cross_compiling" != no; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}strip; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_STRIP+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$STRIP"; then
2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 STRIP=$ac_cv_prog_STRIP
2471 if test -n "$STRIP"; then
2472 { echo "$as_me:$LINENO: result: $STRIP" >&5
2473 echo "${ECHO_T}$STRIP" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2481 if test -z "$ac_cv_prog_STRIP"; then
2483 # Extract the first word of "strip", so it can be a program name with args.
2484 set dummy strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$ac_ct_STRIP"; then
2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_STRIP="strip"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511 if test -n "$ac_ct_STRIP"; then
2512 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2519 if test "x$ac_ct_STRIP" = x; then
2522 case $cross_compiling:$ac_tool_warned in
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530 ac_tool_warned=yes ;;
2535 STRIP="$ac_cv_prog_STRIP"
2539 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2541 # We need awk for the "check" target. The system "awk" is bad on
2543 # Always define AMTAR for backward compatibility.
2545 AMTAR=${AMTAR-"${am_missing_run}tar"}
2547 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2554 ac_config_headers="$ac_config_headers include/config.h"
2557 # Checks for programs.
2558 # Check whether --enable-shared was given.
2559 if test "${enable_shared+set}" = set; then
2560 enableval=$enable_shared; p=${PACKAGE-default}
2562 yes) enable_shared=yes ;;
2563 no) enable_shared=no ;;
2566 # Look at the argument we got. We use all the common list separators.
2567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2568 for pkg in $enableval; do
2570 if test "X$pkg" = "X$p"; then
2582 # Check whether --enable-static was given.
2583 if test "${enable_static+set}" = set; then
2584 enableval=$enable_static; p=${PACKAGE-default}
2586 yes) enable_static=yes ;;
2587 no) enable_static=no ;;
2590 # Look at the argument we got. We use all the common list separators.
2591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2592 for pkg in $enableval; do
2594 if test "X$pkg" = "X$p"; then
2606 # Check whether --enable-fast-install was given.
2607 if test "${enable_fast_install+set}" = set; then
2608 enableval=$enable_fast_install; p=${PACKAGE-default}
2610 yes) enable_fast_install=yes ;;
2611 no) enable_fast_install=no ;;
2613 enable_fast_install=no
2614 # Look at the argument we got. We use all the common list separators.
2615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2616 for pkg in $enableval; do
2618 if test "X$pkg" = "X$p"; then
2619 enable_fast_install=yes
2626 enable_fast_install=yes
2630 DEPDIR="${am__leading_dot}deps"
2632 ac_config_commands="$ac_config_commands depfiles"
2635 am_make=${MAKE-make}
2636 cat > confinc << 'END'
2641 # If we don't find an include directive, just comment out the code.
2642 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2643 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2647 # First try GNU make style include.
2648 echo "include confinc" > confmf
2649 # We grep out `Entering directory' and `Leaving directory'
2650 # messages which can occur if `w' ends up in MAKEFLAGS.
2651 # In particular we don't look at `^make:' because GNU make might
2652 # be invoked under some other name (usually "gmake"), in which
2653 # case it prints its new name instead of `make'.
2654 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2659 # Now try BSD make style include.
2660 if test "$am__include" = "#"; then
2661 echo '.include "confinc"' > confmf
2662 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2663 am__include=.include
2670 { echo "$as_me:$LINENO: result: $_am_result" >&5
2671 echo "${ECHO_T}$_am_result" >&6; }
2672 rm -f confinc confmf
2674 # Check whether --enable-dependency-tracking was given.
2675 if test "${enable_dependency_tracking+set}" = set; then
2676 enableval=$enable_dependency_tracking;
2679 if test "x$enable_dependency_tracking" != xno; then
2680 am_depcomp="$ac_aux_dir/depcomp"
2683 if test "x$enable_dependency_tracking" != xno; then
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$CC"; then
2727 { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2736 if test -z "$ac_cv_prog_CC"; then
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2766 if test -n "$ac_ct_CC"; then
2767 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2768 echo "${ECHO_T}$ac_ct_CC" >&6; }
2770 { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2774 if test "x$ac_ct_CC" = x; then
2777 case $cross_compiling:$ac_tool_warned in
2779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2780 whose name does not start with the host triplet. If you think this
2781 configuration is useful to you, please write to autoconf@gnu.org." >&5
2782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2783 whose name does not start with the host triplet. If you think this
2784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2785 ac_tool_warned=yes ;;
2793 if test -z "$CC"; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}cc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC="${ac_tool_prefix}cc"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CC"; then
2824 { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2827 { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2834 if test -z "$CC"; then
2835 # Extract the first word of "cc", so it can be a program name with args.
2836 set dummy cc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854 ac_prog_rejected=yes
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test $ac_prog_rejected = yes; then
2866 # We found a bogon in the path, so make sure we never use it.
2867 set dummy $ac_cv_prog_CC
2869 if test $# != 0; then
2870 # We chose a different compiler from the bogus one.
2871 # However, it has the same basename, so the bogon will be chosen
2872 # first if we set CC to just the basename; use the full file name.
2874 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2880 if test -n "$CC"; then
2881 { echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6; }
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 for ac_prog in cl.exe
2894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2926 { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2931 test -n "$CC" && break
2934 if test -z "$CC"; then
2936 for ac_prog in cl.exe
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_CC="$ac_prog"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2968 echo "${ECHO_T}$ac_ct_CC" >&6; }
2970 { echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6; }
2975 test -n "$ac_ct_CC" && break
2978 if test "x$ac_ct_CC" = x; then
2981 case $cross_compiling:$ac_tool_warned in
2983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet. If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&5
2986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2987 whose name does not start with the host triplet. If you think this
2988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2989 ac_tool_warned=yes ;;
2998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: no acceptable C compiler found in \$PATH
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO: checking for C compiler version" >&5
3006 ac_compiler=`set X $ac_compile; echo $2`
3007 { (ac_try="$ac_compiler --version >&5"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler --version >&5") 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (ac_try="$ac_compiler -v >&5"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compiler -v >&5") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3027 { (ac_try="$ac_compiler -V >&5"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compiler -V >&5") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3053 ac_clean_files_save=$ac_clean_files
3054 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3055 # Try to create an executable without -o first, disregard a.out.
3056 # It will help us diagnose broken compilers, and finding out an intuition
3058 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3059 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3060 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062 # List of possible output files, starting from the most likely.
3063 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3064 # only as a last resort. b.out is created by i960 compilers.
3065 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3067 # The IRIX 6 linker writes into existing files which may not be
3068 # executable, retaining their permissions. Remove them first so a
3069 # subsequent execution test works.
3071 for ac_file in $ac_files
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3075 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3080 if { (ac_try="$ac_link_default"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_link_default") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; then
3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3093 # so that the user can short-circuit this test for compilers unknown to
3095 for ac_file in $ac_files ''
3097 test -f "$ac_file" || continue
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3102 # We found the default executable, but exeext='' is most
3106 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110 # We set ac_cv_exeext here because the later test for it is not
3111 # safe: cross compilers may not add the suffix if given an `-o'
3112 # argument, so we may need to know it at that point already.
3113 # Even if this section looks crufty: it has the advantage of
3120 test "$ac_cv_exeext" = no && ac_cv_exeext=
3126 { echo "$as_me:$LINENO: result: $ac_file" >&5
3127 echo "${ECHO_T}$ac_file" >&6; }
3128 if test -z "$ac_file"; then
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: C compiler cannot create executables
3135 See \`config.log' for more details." >&2;}
3136 { (exit 77); exit 77; }; }
3139 ac_exeext=$ac_cv_exeext
3141 # Check that the compiler produces executables we can run. If not, either
3142 # the compiler is broken, or we cross compile.
3143 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3144 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3145 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3146 # If not cross compiling, check that we can run a simple program.
3147 if test "$cross_compiling" != yes; then
3148 if { ac_try='./$ac_file'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 if test "$cross_compiling" = maybe; then
3163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3164 If you meant to cross compile, use \`--host'.
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3173 { echo "$as_me:$LINENO: result: yes" >&5
3174 echo "${ECHO_T}yes" >&6; }
3176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3177 ac_clean_files=$ac_clean_files_save
3178 # Check that the compiler produces executables we can run. If not, either
3179 # the compiler is broken, or we cross compile.
3180 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3182 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3183 echo "${ECHO_T}$cross_compiling" >&6; }
3185 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3187 if { (ac_try="$ac_link"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_link") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3199 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 for ac_file in conftest.exe conftest conftest.*; do
3202 test -f "$ac_file" || continue
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3218 rm -f conftest$ac_cv_exeext
3219 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3220 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3225 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3226 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3227 if test "${ac_cv_objext+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 rm -f conftest.o conftest.obj
3246 if { (ac_try="$ac_compile"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_compile") 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; then
3256 for ac_file in conftest.o conftest.obj conftest.*; do
3257 test -f "$ac_file" || continue;
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3275 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3277 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3278 echo "${ECHO_T}$ac_cv_objext" >&6; }
3279 OBJEXT=$ac_cv_objext
3281 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_c_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3333 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3335 GCC=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3340 if test "${ac_cv_prog_cc_g+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_save_c_werror_flag=$ac_c_werror_flag
3344 ac_c_werror_flag=yes
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } && {
3376 test -z "$ac_c_werror_flag" ||
3377 test ! -s conftest.err
3378 } && test -s conftest.$ac_objext; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_c_werror_flag=$ac_save_c_werror_flag
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_c_werror_flag=$ac_save_c_werror_flag
3473 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3475 if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3484 if test "$GCC" = yes; then
3490 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3491 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3492 if test "${ac_cv_prog_cc_c89+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 ac_cv_prog_cc_c89=no
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3521 s = g (p, va_arg (v,int));
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std. */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3536 inside strings and character constants. */
3538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3540 int test (int i, double x);
3541 struct s1 {int (*f) (int a);};
3542 struct s2 {int (*f) (double a);};
3543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557 CC="$ac_save_CC $ac_arg"
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compile") 2>conftest.er1
3567 grep -v '^ *+' conftest.er1 >conftest.err
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } && {
3572 test -z "$ac_c_werror_flag" ||
3573 test ! -s conftest.err
3574 } && test -s conftest.$ac_objext; then
3575 ac_cv_prog_cc_c89=$ac_arg
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3583 rm -f core conftest.err conftest.$ac_objext
3584 test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 rm -f conftest.$ac_ext
3591 case "x$ac_cv_prog_cc_c89" in
3593 { echo "$as_me:$LINENO: result: none needed" >&5
3594 echo "${ECHO_T}none needed" >&6; } ;;
3596 { echo "$as_me:$LINENO: result: unsupported" >&5
3597 echo "${ECHO_T}unsupported" >&6; } ;;
3599 CC="$CC $ac_cv_prog_cc_c89"
3600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 depcc="$CC" am_compiler_list=
3613 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3614 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3615 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3619 # We make a subdir and do the tests there. Otherwise we can end up
3620 # making bogus files that we don't know about and never remove. For
3621 # instance it was reported that on HP-UX the gcc test will end up
3622 # making a dummy file named `D' -- because `-MD' means `put the output
3625 # Copy depcomp to subdir because otherwise we won't find it if we're
3626 # using a relative directory.
3627 cp "$am_depcomp" conftest.dir
3629 # We will build objects and dependencies in a subdirectory because
3630 # it helps to detect inapplicable dependency modes. For instance
3631 # both Tru64's cc and ICC support -MD to output dependencies as a
3632 # side effect of compilation, but ICC will put the dependencies in
3633 # the current directory while Tru64 will put them in the object
3637 am_cv_CC_dependencies_compiler_type=none
3638 if test "$am_compiler_list" = ""; then
3639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641 for depmode in $am_compiler_list; do
3642 # Setup a source with many dependencies, because some compilers
3643 # like to wrap large dependency lists on column 80 (with \), and
3644 # we should not choose a depcomp mode which is confused by this.
3646 # We need to recreate these files for each test, as the compiler may
3647 # overwrite some of them when testing with obscure command lines.
3648 # This happens at least with the AIX C compiler.
3650 for i in 1 2 3 4 5 6; do
3651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3652 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3653 # Solaris 8's {/usr,}/bin/sh.
3654 touch sub/conftst$i.h
3656 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660 # after this tag, mechanisms are not by side-effect, so they'll
3661 # only be used when explicitly requested
3662 if test "x$enable_dependency_tracking" = xyes; then
3670 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671 # mode. It turns out that the SunPro C++ compiler does not properly
3672 # handle `-M -o', and we need to detect this.
3673 if depmode=$depmode \
3674 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3675 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3676 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3677 >/dev/null 2>conftest.err &&
3678 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682 # icc doesn't choke on unknown options, it will just issue warnings
3683 # or remarks (even with -Werror). So we grep stderr for any message
3684 # that says an option was ignored or not supported.
3685 # When given -MP, icc 7.0 and 7.1 complain thusly:
3686 # icc: Command line warning: ignoring option '-M'; no argument required
3687 # The diagnosis changed in icc 8.0:
3688 # icc: Command line remark: option '-MP' not supported
3689 if (grep 'ignoring option' conftest.err ||
3690 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691 am_cv_CC_dependencies_compiler_type=$depmode
3700 am_cv_CC_dependencies_compiler_type=none
3704 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3706 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3709 test "x$enable_dependency_tracking" != xno \
3710 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3712 am__fastdepCC_FALSE='#'
3714 am__fastdepCC_TRUE='#'
3715 am__fastdepCC_FALSE=
3719 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3720 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3721 if test "${lt_cv_path_SED+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 # Loop through the user's path and test for sed and gsed.
3725 # Then use that list of sed's as ones to test for truncation.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for lt_ac_prog in sed gsed; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3734 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3741 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3742 # along with /bin/sed that truncates output.
3743 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3744 test ! -f $lt_ac_sed && continue
3745 cat /dev/null > conftest.in
3747 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3748 # Check for GNU sed and select it if it is found.
3749 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3750 lt_cv_path_SED=$lt_ac_sed
3754 cat conftest.in conftest.in >conftest.tmp
3755 mv conftest.tmp conftest.in
3756 cp conftest.in conftest.nl
3758 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3759 cmp -s conftest.out conftest.nl || break
3760 # 10000 chars as input seems more than enough
3761 test $lt_ac_count -gt 10 && break
3762 lt_ac_count=`expr $lt_ac_count + 1`
3763 if test $lt_ac_count -gt $lt_ac_max; then
3764 lt_ac_max=$lt_ac_count
3765 lt_cv_path_SED=$lt_ac_sed
3773 { echo "$as_me:$LINENO: result: $SED" >&5
3774 echo "${ECHO_T}$SED" >&6; }
3776 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3777 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3778 if test "${ac_cv_path_GREP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 # Extract the first word of "grep ggrep" to use in msg output
3782 if test -z "$GREP"; then
3783 set dummy grep ggrep; ac_prog_name=$2
3784 if test "${ac_cv_path_GREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_path_GREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in grep ggrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3798 # Check for GNU ac_path_GREP and select it if it is found.
3799 # Check for GNU $ac_path_GREP
3800 case `"$ac_path_GREP" --version 2>&1` in
3802 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 echo 'GREP' >> "conftest.nl"
3812 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 ac_count=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_GREP="$ac_path_GREP"
3818 ac_path_GREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3827 $ac_path_GREP_found && break 3
3837 GREP="$ac_cv_path_GREP"
3838 if test -z "$GREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3845 ac_cv_path_GREP=$GREP
3850 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3851 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3852 GREP="$ac_cv_path_GREP"
3855 { echo "$as_me:$LINENO: checking for egrep" >&5
3856 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3857 if test "${ac_cv_path_EGREP+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3861 then ac_cv_path_EGREP="$GREP -E"
3863 # Extract the first word of "egrep" to use in msg output
3864 if test -z "$EGREP"; then
3865 set dummy egrep; ac_prog_name=$2
3866 if test "${ac_cv_path_EGREP+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 ac_path_EGREP_found=false
3870 # Loop through the user's path and test for each of PROGNAME-LIST
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3875 test -z "$as_dir" && as_dir=.
3876 for ac_prog in egrep; do
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3879 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3880 # Check for GNU ac_path_EGREP and select it if it is found.
3881 # Check for GNU $ac_path_EGREP
3882 case `"$ac_path_EGREP" --version 2>&1` in
3884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3887 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3890 cat "conftest.in" "conftest.in" >"conftest.tmp"
3891 mv "conftest.tmp" "conftest.in"
3892 cp "conftest.in" "conftest.nl"
3893 echo 'EGREP' >> "conftest.nl"
3894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3896 ac_count=`expr $ac_count + 1`
3897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3898 # Best one so far, save it but keep looking for a better one
3899 ac_cv_path_EGREP="$ac_path_EGREP"
3900 ac_path_EGREP_max=$ac_count
3902 # 10*(2^10) chars as input seems more than enough
3903 test $ac_count -gt 10 && break
3905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3909 $ac_path_EGREP_found && break 3
3919 EGREP="$ac_cv_path_EGREP"
3920 if test -z "$EGREP"; then
3921 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3922 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3923 { (exit 1); exit 1; }; }
3927 ac_cv_path_EGREP=$EGREP
3933 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3934 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3935 EGREP="$ac_cv_path_EGREP"
3939 # Check whether --with-gnu-ld was given.
3940 if test "${with_gnu_ld+set}" = set; then
3941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3947 if test "$GCC" = yes; then
3948 # Check if gcc -print-prog-name=ld gives a path.
3949 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3950 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3953 # gcc leaves a trailing carriage return which upsets mingw
3954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3959 # Accept absolute paths.
3961 re_direlt='/[^/][^/]*/\.\./'
3962 # Canonicalize the pathname of ld
3963 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3965 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3967 test -z "$LD" && LD="$ac_prog"
3970 # If it fails, then pretend we aren't using GCC.
3974 # If it is relative, then search for the first ld in PATH.
3978 elif test "$with_gnu_ld" = yes; then
3979 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3982 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3985 if test "${lt_cv_path_LD+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 if test -z "$LD"; then
3989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3990 for ac_dir in $PATH; do
3992 test -z "$ac_dir" && ac_dir=.
3993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3994 lt_cv_path_LD="$ac_dir/$ac_prog"
3995 # Check to see if the program is GNU ld. I'd rather use --version,
3996 # but apparently some variants of GNU ld only accept -v.
3997 # Break only if it was the GNU/non-GNU ld that we prefer.
3998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3999 *GNU* | *'with BFD'*)
4000 test "$with_gnu_ld" != no && break
4003 test "$with_gnu_ld" != yes && break
4010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4015 if test -n "$LD"; then
4016 { echo "$as_me:$LINENO: result: $LD" >&5
4017 echo "${ECHO_T}$LD" >&6; }
4019 { echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6; }
4022 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4023 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4024 { (exit 1); exit 1; }; }
4025 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4026 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4031 case `$LD -v 2>&1 </dev/null` in
4032 *GNU* | *'with BFD'*)
4033 lt_cv_prog_gnu_ld=yes
4036 lt_cv_prog_gnu_ld=no
4040 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4041 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4042 with_gnu_ld=$lt_cv_prog_gnu_ld
4045 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4046 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4047 if test "${lt_cv_ld_reload_flag+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 lt_cv_ld_reload_flag='-r'
4052 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4053 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4054 reload_flag=$lt_cv_ld_reload_flag
4055 case $reload_flag in
4057 *) reload_flag=" $reload_flag" ;;
4059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4062 if test "$GCC" = yes; then
4063 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4070 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4071 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4072 if test "${lt_cv_path_NM+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if test -n "$NM"; then
4076 # Let the user override the test.
4079 lt_nm_to_check="${ac_tool_prefix}nm"
4080 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4081 lt_nm_to_check="$lt_nm_to_check nm"
4083 for lt_tmp_nm in $lt_nm_to_check; do
4084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4085 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4087 test -z "$ac_dir" && ac_dir=.
4088 tmp_nm="$ac_dir/$lt_tmp_nm"
4089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4090 # Check to see if the nm accepts a BSD-compat flag.
4091 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4092 # nm: unknown option "B" ignored
4093 # Tru64's nm complains that /dev/null is an invalid object file
4094 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4095 */dev/null* | *'Invalid file or object type'*)
4096 lt_cv_path_NM="$tmp_nm -B"
4100 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4102 lt_cv_path_NM="$tmp_nm -p"
4106 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4107 continue # so that we can try to find one that supports BSD flags
4116 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4119 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4120 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4123 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4124 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4126 if test "$LN_S" = "ln -s"; then
4127 { echo "$as_me:$LINENO: result: yes" >&5
4128 echo "${ECHO_T}yes" >&6; }
4130 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4131 echo "${ECHO_T}no, using $LN_S" >&6; }
4134 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4135 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4136 if test "${lt_cv_deplibs_check_method+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 lt_cv_file_magic_cmd='$MAGIC_CMD'
4140 lt_cv_file_magic_test_file=
4141 lt_cv_deplibs_check_method='unknown'
4142 # Need to set the preceding variable on all platforms that support
4143 # interlibrary dependencies.
4144 # 'none' -- dependencies not supported.
4145 # `unknown' -- same as none, but documents that we really don't know.
4146 # 'pass_all' -- all dependencies passed with no checks.
4147 # 'test_compile' -- check by making test program.
4148 # 'file_magic [[regex]]' -- check by looking for files in library path
4149 # which responds to the $file_magic_cmd with a given extended regex.
4150 # If you have `file' or equivalent on your system and you're not sure
4151 # whether `pass_all' will *always* work, you probably want this one.
4155 lt_cv_deplibs_check_method=pass_all
4159 lt_cv_deplibs_check_method=pass_all
4163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4164 lt_cv_file_magic_cmd='/usr/bin/file -L'
4165 lt_cv_file_magic_test_file=/shlib/libc.so
4169 # func_win32_libid is a shell function defined in ltmain.sh
4170 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4171 lt_cv_file_magic_cmd='func_win32_libid'
4175 # Base MSYS/MinGW do not provide the 'file' command needed by
4176 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4177 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4178 lt_cv_file_magic_cmd='$OBJDUMP -f'
4181 darwin* | rhapsody*)
4182 lt_cv_deplibs_check_method=pass_all
4185 freebsd* | dragonfly*)
4186 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4189 # Not sure whether the presence of OpenBSD here was a mistake.
4190 # Let's accept both of them until this is cleared up.
4191 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4192 lt_cv_file_magic_cmd=/usr/bin/file
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4197 lt_cv_deplibs_check_method=pass_all
4202 lt_cv_deplibs_check_method=pass_all
4205 hpux10.20* | hpux11*)
4206 lt_cv_file_magic_cmd=/usr/bin/file
4209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4210 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4213 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]'
4214 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4218 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4224 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4228 irix5* | irix6* | nonstopux*)
4230 *-32|*"-32 ") libmagic=32-bit;;
4231 *-n32|*"-n32 ") libmagic=N32;;
4232 *-64|*"-64 ") libmagic=64-bit;;
4233 *) libmagic=never-match;;
4235 lt_cv_deplibs_check_method=pass_all
4238 # This must be Linux ELF.
4239 linux* | k*bsd*-gnu)
4240 lt_cv_deplibs_check_method=pass_all
4243 netbsd* | netbsdelf*-gnu)
4244 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4253 lt_cv_file_magic_cmd=/usr/bin/file
4254 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4258 lt_cv_deplibs_check_method=unknown
4262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4269 osf3* | osf4* | osf5*)
4270 lt_cv_deplibs_check_method=pass_all
4274 lt_cv_deplibs_check_method=pass_all
4278 case $host_vendor in
4280 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]'
4281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4284 lt_cv_deplibs_check_method=pass_all
4287 lt_cv_file_magic_cmd='/bin/file'
4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4291 lt_cv_file_magic_cmd='/bin/file'
4292 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4293 lt_cv_file_magic_test_file=/lib/libc.so
4296 lt_cv_deplibs_check_method=pass_all
4299 lt_cv_deplibs_check_method=pass_all
4304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4305 lt_cv_deplibs_check_method=pass_all
4310 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4311 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4312 file_magic_cmd=$lt_cv_file_magic_cmd
4313 deplibs_check_method=$lt_cv_deplibs_check_method
4314 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4319 # If no C compiler was specified, use CC.
4322 # If no C compiler flags were specified, use CFLAGS.
4323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4325 # Allow CC to be a program name with arguments.
4329 # Check whether --enable-libtool-lock was given.
4330 if test "${enable_libtool_lock+set}" = set; then
4331 enableval=$enable_libtool_lock;
4334 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4336 # Some flags need to be propagated to the compiler or linker for good
4340 # Find out which ABI we are using.
4341 echo 'int i;' > conftest.$ac_ext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; then
4347 case `/usr/bin/file conftest.$ac_objext` in
4359 # Find out which ABI we are using.
4360 echo '#line 4360 "configure"' > conftest.$ac_ext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; then
4366 if test "$lt_cv_prog_gnu_ld" = yes; then
4367 case `/usr/bin/file conftest.$ac_objext` in
4369 LD="${LD-ld} -melf32bsmip"
4372 LD="${LD-ld} -melf32bmipn32"
4375 LD="${LD-ld} -melf64bmip"
4379 case `/usr/bin/file conftest.$ac_objext` in
4395 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4396 # Find out which ABI we are using.
4397 echo 'int i;' > conftest.$ac_ext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; then
4403 case `/usr/bin/file conftest.o` in
4407 LD="${LD-ld} -m elf_i386"
4409 ppc64-*linux*|powerpc64-*linux*)
4410 LD="${LD-ld} -m elf32ppclinux"
4413 LD="${LD-ld} -m elf_s390"
4416 LD="${LD-ld} -m elf32_sparc"
4423 LD="${LD-ld} -m elf_x86_64"
4425 ppc*-*linux*|powerpc*-*linux*)
4426 LD="${LD-ld} -m elf64ppc"
4429 LD="${LD-ld} -m elf64_s390"
4432 LD="${LD-ld} -m elf64_sparc"
4442 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4443 SAVE_CFLAGS="$CFLAGS"
4444 CFLAGS="$CFLAGS -belf"
4445 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4446 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4447 if test "${lt_cv_cc_needs_belf+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_link") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && {
4485 test -z "$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 } && test -s conftest$ac_exeext &&
4488 $as_test_x conftest$ac_exeext; then
4489 lt_cv_cc_needs_belf=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 lt_cv_cc_needs_belf=no
4497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4498 conftest$ac_exeext conftest.$ac_ext
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4507 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4510 CFLAGS="$SAVE_CFLAGS"
4514 # Find out which ABI we are using.
4515 echo 'int i;' > conftest.$ac_ext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; then
4521 case `/usr/bin/file conftest.o` in
4523 case $lt_cv_prog_gnu_ld in
4524 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4525 *) LD="${LD-ld} -64" ;;
4536 need_locks="$enable_libtool_lock"
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4546 # On Suns, sometimes $CPP names a directory.
4547 if test -n "$CPP" && test -d "$CPP"; then
4550 if test -z "$CPP"; then
4551 if test "${ac_cv_prog_CPP+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 # Double quotes because CPP needs to be expanded
4555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4558 for ac_c_preproc_warn_flag in '' yes
4560 # Use a header file that comes with gcc, so configuring glibc
4561 # with a fresh cross-compiler works.
4562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563 # <limits.h> exists even on freestanding compilers.
4564 # On the NeXT, cc -E runs the code through the compiler's parser,
4565 # not just through cpp. "Syntax error" is here to catch this case.
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4573 # include <limits.h>
4575 # include <assert.h>
4579 if { (ac_try="$ac_cpp conftest.$ac_ext"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } >/dev/null && {
4592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 # Broken: fails on valid input.
4604 rm -f conftest.err conftest.$ac_ext
4606 # OK, works on sane cases. Now check whether nonexistent headers
4607 # can be detected and how.
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 #include <ac_nonexistent.h>
4616 if { (ac_try="$ac_cpp conftest.$ac_ext"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } >/dev/null && {
4629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4630 test ! -s conftest.err
4632 # Broken: success on invalid input.
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 # Passes both tests.
4643 rm -f conftest.err conftest.$ac_ext
4646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4647 rm -f conftest.err conftest.$ac_ext
4648 if $ac_preproc_ok; then
4660 { echo "$as_me:$LINENO: result: $CPP" >&5
4661 echo "${ECHO_T}$CPP" >&6; }
4663 for ac_c_preproc_warn_flag in '' yes
4665 # Use a header file that comes with gcc, so configuring glibc
4666 # with a fresh cross-compiler works.
4667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668 # <limits.h> exists even on freestanding compilers.
4669 # On the NeXT, cc -E runs the code through the compiler's parser,
4670 # not just through cpp. "Syntax error" is here to catch this case.
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4678 # include <limits.h>
4680 # include <assert.h>
4684 if { (ac_try="$ac_cpp conftest.$ac_ext"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null && {
4697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 # Broken: fails on valid input.
4709 rm -f conftest.err conftest.$ac_ext
4711 # OK, works on sane cases. Now check whether nonexistent headers
4712 # can be detected and how.
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #include <ac_nonexistent.h>
4721 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null && {
4734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4737 # Broken: success on invalid input.
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 # Passes both tests.
4748 rm -f conftest.err conftest.$ac_ext
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then
4756 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4757 See \`config.log' for more details." >&5
4758 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4759 See \`config.log' for more details." >&2;}
4760 { (exit 1); exit 1; }; }
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4772 if test "${ac_cv_header_stdc+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4811 ac_cv_header_stdc=yes
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_cv_header_stdc=no
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 if test $ac_cv_header_stdc = yes; then
4822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4823 cat >conftest.$ac_ext <<_ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4833 $EGREP "memchr" >/dev/null 2>&1; then
4836 ac_cv_header_stdc=no
4842 if test $ac_cv_header_stdc = yes; then
4843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854 $EGREP "free" >/dev/null 2>&1; then
4857 ac_cv_header_stdc=no
4863 if test $ac_cv_header_stdc = yes; then
4864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4865 if test "$cross_compiling" = yes; then
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4876 #if ((' ' & 0x0FF) == 0x020)
4877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4880 # define ISLOWER(c) \
4881 (('a' <= (c) && (c) <= 'i') \
4882 || ('j' <= (c) && (c) <= 'r') \
4883 || ('s' <= (c) && (c) <= 'z'))
4884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4892 for (i = 0; i < 256; i++)
4893 if (XOR (islower (i), ISLOWER (i))
4894 || toupper (i) != TOUPPER (i))
4899 rm -f conftest$ac_exeext
4900 if { (ac_try="$ac_link"
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_link") 2>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4910 { (case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_try") 2>&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4921 echo "$as_me: program exited with status $ac_status" >&5
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4926 ac_cv_header_stdc=no
4928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4934 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4935 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4936 if test $ac_cv_header_stdc = yes; then
4938 cat >>confdefs.h <<\_ACEOF
4939 #define STDC_HEADERS 1
4944 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4955 inttypes.h stdint.h unistd.h
4957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4971 #include <$ac_header>
4973 rm -f conftest.$ac_objext
4974 if { (ac_try="$ac_compile"
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4980 (eval "$ac_compile") 2>conftest.er1
4982 grep -v '^ *+' conftest.er1 >conftest.err
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } && {
4987 test -z "$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 } && test -s conftest.$ac_objext; then
4990 eval "$as_ac_Header=yes"
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 eval "$as_ac_Header=no"
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ac_res=`eval echo '${'$as_ac_Header'}'`
5001 { echo "$as_me:$LINENO: result: $ac_res" >&5
5002 echo "${ECHO_T}$ac_res" >&6; }
5003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5004 cat >>confdefs.h <<_ACEOF
5005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 for ac_header in dlfcn.h
5016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 ac_res=`eval echo '${'$as_ac_Header'}'`
5024 { echo "$as_me:$LINENO: result: $ac_res" >&5
5025 echo "${ECHO_T}$ac_res" >&6; }
5027 # Is the header compilable?
5028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5037 #include <$ac_header>
5039 rm -f conftest.$ac_objext
5040 if { (ac_try="$ac_compile"
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_compile") 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); } && {
5053 test -z "$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5055 } && test -s conftest.$ac_objext; then
5056 ac_header_compiler=yes
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_header_compiler=no
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5066 echo "${ECHO_T}$ac_header_compiler" >&6; }
5068 # Is the header present?
5069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <$ac_header>
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null && {
5092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5095 ac_header_preproc=yes
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 ac_header_preproc=no
5103 rm -f conftest.err conftest.$ac_ext
5104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5105 echo "${ECHO_T}$ac_header_preproc" >&6; }
5107 # So? What about this header?
5108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5114 ac_header_preproc=yes
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5130 ## ---------------------------------------- ##
5131 ## Report this to konn@users.sourceforge.jp ##
5132 ## ---------------------------------------- ##
5134 ) | sed "s/^/$as_me: WARNING: /" >&2
5137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 eval "$as_ac_Header=\$ac_header_preproc"
5144 ac_res=`eval echo '${'$as_ac_Header'}'`
5145 { echo "$as_me:$LINENO: result: $ac_res" >&5
5146 echo "${ECHO_T}$ac_res" >&6; }
5149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5150 cat >>confdefs.h <<_ACEOF
5151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5159 ac_cpp='$CXXCPP $CPPFLAGS'
5160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5163 if test -z "$CXX"; then
5164 if test -n "$CCC"; then
5167 if test -n "$ac_tool_prefix"; then
5168 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_CXX+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$CXX"; then
5178 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 if test -n "$CXX"; then
5199 { echo "$as_me:$LINENO: result: $CXX" >&5
5200 echo "${ECHO_T}$CXX" >&6; }
5202 { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5207 test -n "$CXX" && break
5210 if test -z "$CXX"; then
5212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 if test -n "$ac_ct_CXX"; then
5222 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_ac_ct_CXX="$ac_prog"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5242 if test -n "$ac_ct_CXX"; then
5243 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5244 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5251 test -n "$ac_ct_CXX" && break
5254 if test "x$ac_ct_CXX" = x; then
5257 case $cross_compiling:$ac_tool_warned in
5259 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5260 whose name does not start with the host triplet. If you think this
5261 configuration is useful to you, please write to autoconf@gnu.org." >&5
5262 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5263 whose name does not start with the host triplet. If you think this
5264 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5265 ac_tool_warned=yes ;;
5273 # Provide some information about the compiler.
5274 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5275 ac_compiler=`set X $ac_compile; echo $2`
5276 { (ac_try="$ac_compiler --version >&5"
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_compiler --version >&5") 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286 { (ac_try="$ac_compiler -v >&5"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compiler -v >&5") 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296 { (ac_try="$ac_compiler -V >&5"
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compiler -V >&5") 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }
5307 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5308 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5309 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5330 rm -f conftest.$ac_objext
5331 if { (ac_try="$ac_compile"
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_compile") 2>conftest.er1
5339 grep -v '^ *+' conftest.er1 >conftest.err
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } && {
5344 test -z "$ac_cxx_werror_flag" ||
5345 test ! -s conftest.err
5346 } && test -s conftest.$ac_objext; then
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5359 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5360 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5361 GXX=`test $ac_compiler_gnu = yes && echo yes`
5362 ac_test_CXXFLAGS=${CXXFLAGS+set}
5363 ac_save_CXXFLAGS=$CXXFLAGS
5364 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5365 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5366 if test "${ac_cv_prog_cxx_g+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5370 ac_cxx_werror_flag=yes
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_cxx_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_cv_prog_cxx_g=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_cxx_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_cxx_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_cv_prog_cxx_g=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5500 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5501 if test "$ac_test_CXXFLAGS" = set; then
5502 CXXFLAGS=$ac_save_CXXFLAGS
5503 elif test $ac_cv_prog_cxx_g = yes; then
5504 if test "$GXX" = yes; then
5510 if test "$GXX" = yes; then
5517 ac_cpp='$CXXCPP $CPPFLAGS'
5518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5522 depcc="$CXX" am_compiler_list=
5524 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5525 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5530 # We make a subdir and do the tests there. Otherwise we can end up
5531 # making bogus files that we don't know about and never remove. For
5532 # instance it was reported that on HP-UX the gcc test will end up
5533 # making a dummy file named `D' -- because `-MD' means `put the output
5536 # Copy depcomp to subdir because otherwise we won't find it if we're
5537 # using a relative directory.
5538 cp "$am_depcomp" conftest.dir
5540 # We will build objects and dependencies in a subdirectory because
5541 # it helps to detect inapplicable dependency modes. For instance
5542 # both Tru64's cc and ICC support -MD to output dependencies as a
5543 # side effect of compilation, but ICC will put the dependencies in
5544 # the current directory while Tru64 will put them in the object
5548 am_cv_CXX_dependencies_compiler_type=none
5549 if test "$am_compiler_list" = ""; then
5550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552 for depmode in $am_compiler_list; do
5553 # Setup a source with many dependencies, because some compilers
5554 # like to wrap large dependency lists on column 80 (with \), and
5555 # we should not choose a depcomp mode which is confused by this.
5557 # We need to recreate these files for each test, as the compiler may
5558 # overwrite some of them when testing with obscure command lines.
5559 # This happens at least with the AIX C compiler.
5561 for i in 1 2 3 4 5 6; do
5562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5564 # Solaris 8's {/usr,}/bin/sh.
5565 touch sub/conftst$i.h
5567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5571 # after this tag, mechanisms are not by side-effect, so they'll
5572 # only be used when explicitly requested
5573 if test "x$enable_dependency_tracking" = xyes; then
5581 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5582 # mode. It turns out that the SunPro C++ compiler does not properly
5583 # handle `-M -o', and we need to detect this.
5584 if depmode=$depmode \
5585 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5588 >/dev/null 2>conftest.err &&
5589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593 # icc doesn't choke on unknown options, it will just issue warnings
5594 # or remarks (even with -Werror). So we grep stderr for any message
5595 # that says an option was ignored or not supported.
5596 # When given -MP, icc 7.0 and 7.1 complain thusly:
5597 # icc: Command line warning: ignoring option '-M'; no argument required
5598 # The diagnosis changed in icc 8.0:
5599 # icc: Command line remark: option '-MP' not supported
5600 if (grep 'ignoring option' conftest.err ||
5601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602 am_cv_CXX_dependencies_compiler_type=$depmode
5611 am_cv_CXX_dependencies_compiler_type=none
5615 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5616 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5617 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5620 test "x$enable_dependency_tracking" != xno \
5621 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5622 am__fastdepCXX_TRUE=
5623 am__fastdepCXX_FALSE='#'
5625 am__fastdepCXX_TRUE='#'
5626 am__fastdepCXX_FALSE=
5632 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5633 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5634 (test "X$CXX" != "Xg++"))) ; then
5636 ac_cpp='$CXXCPP $CPPFLAGS'
5637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5640 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5641 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5642 if test -z "$CXXCPP"; then
5643 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 # Double quotes because CXXCPP needs to be expanded
5647 for CXXCPP in "$CXX -E" "/lib/cpp"
5650 for ac_cxx_preproc_warn_flag in '' yes
5652 # Use a header file that comes with gcc, so configuring glibc
5653 # with a fresh cross-compiler works.
5654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655 # <limits.h> exists even on freestanding compilers.
5656 # On the NeXT, cc -E runs the code through the compiler's parser,
5657 # not just through cpp. "Syntax error" is here to catch this case.
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 # include <limits.h>
5667 # include <assert.h>
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } >/dev/null && {
5684 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5685 test ! -s conftest.err
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 # Broken: fails on valid input.
5696 rm -f conftest.err conftest.$ac_ext
5698 # OK, works on sane cases. Now check whether nonexistent headers
5699 # can be detected and how.
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <ac_nonexistent.h>
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5722 test ! -s conftest.err
5724 # Broken: success on invalid input.
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 # Passes both tests.
5735 rm -f conftest.err conftest.$ac_ext
5738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5739 rm -f conftest.err conftest.$ac_ext
5740 if $ac_preproc_ok; then
5745 ac_cv_prog_CXXCPP=$CXXCPP
5748 CXXCPP=$ac_cv_prog_CXXCPP
5750 ac_cv_prog_CXXCPP=$CXXCPP
5752 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5753 echo "${ECHO_T}$CXXCPP" >&6; }
5755 for ac_cxx_preproc_warn_flag in '' yes
5757 # Use a header file that comes with gcc, so configuring glibc
5758 # with a fresh cross-compiler works.
5759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 # <limits.h> exists even on freestanding compilers.
5761 # On the NeXT, cc -E runs the code through the compiler's parser,
5762 # not just through cpp. "Syntax error" is here to catch this case.
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 # include <limits.h>
5772 # include <assert.h>
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } >/dev/null && {
5789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 # Broken: fails on valid input.
5801 rm -f conftest.err conftest.$ac_ext
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <ac_nonexistent.h>
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827 test ! -s conftest.err
5829 # Broken: success on invalid input.
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 # Passes both tests.
5840 rm -f conftest.err conftest.$ac_ext
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5848 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5849 See \`config.log' for more details." >&5
5850 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5851 See \`config.log' for more details." >&2;}
5852 { (exit 1); exit 1; }; }
5856 ac_cpp='$CXXCPP $CPPFLAGS'
5857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5865 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5866 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5868 if test -n "$ac_tool_prefix"; then
5869 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
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_F77+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -n "$F77"; then
5879 ac_cv_prog_F77="$F77" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 if test -n "$F77"; then
5900 { echo "$as_me:$LINENO: result: $F77" >&5
5901 echo "${ECHO_T}$F77" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 test -n "$F77" && break
5911 if test -z "$F77"; then
5913 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
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 if test -n "$ac_ct_F77"; then
5923 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_F77="$ac_prog"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5943 if test -n "$ac_ct_F77"; then
5944 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5945 echo "${ECHO_T}$ac_ct_F77" >&6; }
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5952 test -n "$ac_ct_F77" && break
5955 if test "x$ac_ct_F77" = x; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet. If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet. If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5973 # Provide some information about the compiler.
5974 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5975 ac_compiler=`set X $ac_compile; echo $2`
5976 { (ac_try="$ac_compiler --version >&5"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compiler --version >&5") 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }
5986 { (ac_try="$ac_compiler -v >&5"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compiler -v >&5") 2>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }
5996 { (ac_try="$ac_compiler -V >&5"
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compiler -V >&5") 2>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }
6008 # If we don't use `.F' as extension, the preprocessor is not run on the
6009 # input file. (Note that this only needs to work for GNU compilers.)
6012 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6013 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6014 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.$ac_ext <<_ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6034 grep -v '^ *+' conftest.er1 >conftest.err
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_f77_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest.$ac_objext; then
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6054 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6055 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6057 ac_test_FFLAGS=${FFLAGS+set}
6058 ac_save_FFLAGS=$FFLAGS
6060 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6061 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_f77_g+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 cat >conftest.$ac_ext <<_ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_f77_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6088 ac_cv_prog_f77_g=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6100 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6101 if test "$ac_test_FFLAGS" = set; then
6102 FFLAGS=$ac_save_FFLAGS
6103 elif test $ac_cv_prog_f77_g = yes; then
6104 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6117 G77=`test $ac_compiler_gnu = yes && echo yes`
6119 ac_cpp='$CPP $CPPFLAGS'
6120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6128 # find the maximum length of command line arguments
6129 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6130 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6131 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 # On DJGPP, this test can blow up pretty badly due to problems in libc
6140 # (any single argument exceeding 2000 bytes causes a buffer overrun
6141 # during glob expansion). Even if it were fixed, the result of this
6142 # check would be larger than it should be.
6143 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6147 # Under GNU Hurd, this test is not required because there is
6148 # no limit to the length of command line arguments.
6149 # Libtool will interpret -1 as no limit whatsoever
6150 lt_cv_sys_max_cmd_len=-1;
6154 # On Win9x/ME, this test blows up -- it succeeds, but takes
6155 # about 5 minutes as the teststring grows exponentially.
6156 # Worse, since 9x/ME are not pre-emptively multitasking,
6157 # you end up with a "frozen" computer, even though with patience
6158 # the test eventually succeeds (with a max line length of 256k).
6159 # Instead, let's just punt: use the minimum linelength reported by
6160 # all of the supported platforms: 8192 (on NT/2K/XP).
6161 lt_cv_sys_max_cmd_len=8192;
6165 # On AmigaOS with pdksh, this test takes hours, literally.
6166 # So we just punt and use a minimum line length of 8192.
6167 lt_cv_sys_max_cmd_len=8192;
6170 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6171 # This has been around since 386BSD, at least. Likely further.
6172 if test -x /sbin/sysctl; then
6173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6174 elif test -x /usr/sbin/sysctl; then
6175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6179 # And add a safety zone
6180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6185 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6186 lt_cv_sys_max_cmd_len=196608
6190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6192 # nice to cause kernel panics so lets avoid the loop below.
6193 # First set a reasonable default.
6194 lt_cv_sys_max_cmd_len=16384
6196 if test -x /sbin/sysconfig; then
6197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6203 lt_cv_sys_max_cmd_len=102400
6205 sysv5* | sco5v6* | sysv4.2uw2*)
6206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6207 if test -n "$kargmax"; then
6208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6210 lt_cv_sys_max_cmd_len=32768
6214 # If test is not a shell built-in, we'll probably end up computing a
6215 # maximum length that is only half of the actual maximum length, but
6217 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6218 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6219 = "XX$teststring") >/dev/null 2>&1 &&
6220 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6221 lt_cv_sys_max_cmd_len=$new_result &&
6222 test $i != 17 # 1/2 MB should be enough
6225 teststring=$teststring$teststring
6228 # Add a significant safety factor because C++ compilers can tack on massive
6229 # amounts of additional arguments before passing them to the linker.
6230 # It appears as though 1/2 is a usable value.
6231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6237 if test -n $lt_cv_sys_max_cmd_len ; then
6238 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6239 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6241 { echo "$as_me:$LINENO: result: none" >&5
6242 echo "${ECHO_T}none" >&6; }
6248 # Check for command to grab the raw symbol name followed by C symbol from nm.
6249 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6250 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 # These are sane defaults that work on at least a few old systems.
6256 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6258 # Character class describing NM global symbol codes.
6259 symcode='[BCDEGRST]'
6261 # Regexp to match symbols that can be accessed directly from C.
6262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6264 # Transform an extracted symbol line into a proper C declaration
6265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6267 # Transform an extracted symbol line into symbol name and symbol address
6268 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'"
6270 # Define system-specific variables.
6275 cygwin* | mingw* | pw32*)
6276 symcode='[ABCDGISTW]'
6278 hpux*) # Its linker distinguishes data from code symbols
6279 if test "$host_cpu" = ia64; then
6280 symcode='[ABCDEGRST]'
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6283 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'"
6285 linux* | k*bsd*-gnu)
6286 if test "$host_cpu" = ia64; then
6287 symcode='[ABCDGIRSTW]'
6288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289 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'"
6293 symcode='[BCDEGRST]'
6296 symcode='[BCDEGQRST]'
6307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6315 # Handle CRLF in mingw tool chain
6319 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6323 # If we're using GNU nm, then use its standard symbol codes.
6324 case `$NM -V 2>&1` in
6325 *GNU* | *'with BFD'*)
6326 symcode='[ABCDGIRSTW]' ;;
6329 # Try without a prefix undercore, then with it.
6330 for ac_symprfx in "" "_"; do
6332 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6333 symxfrm="\\1 $ac_symprfx\\2 \\2"
6335 # Write the raw and C identifiers.
6336 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6338 # Check to see that the pipe works correctly.
6342 cat > conftest.$ac_ext <<EOF
6347 void nm_test_func(){}
6351 int main(){nm_test_var='a';nm_test_func();return(0);}
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; then
6359 # Now try to grab the symbols.
6361 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6362 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && test -s "$nlist"; then
6366 # Try sorting and uniquifying the output.
6367 if sort "$nlist" | uniq > "$nlist"T; then
6368 mv -f "$nlist"T "$nlist"
6373 # Make sure that we snagged all the symbols we need.
6374 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6375 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6376 cat <<EOF > conftest.$ac_ext
6382 # Now generate the symbol file.
6383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6385 cat <<EOF >> conftest.$ac_ext
6386 #if defined (__STDC__) && __STDC__
6387 # define lt_ptr_t void *
6389 # define lt_ptr_t char *
6393 /* The mapping between symbol names and symbols. */
6398 lt_preloaded_symbols[] =
6401 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6402 cat <<\EOF >> conftest.$ac_ext
6410 # Now try linking the two files.
6411 mv conftest.$ac_objext conftstm.$ac_objext
6412 lt_save_LIBS="$LIBS"
6413 lt_save_CFLAGS="$CFLAGS"
6414 LIBS="conftstm.$ac_objext"
6415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6423 LIBS="$lt_save_LIBS"
6424 CFLAGS="$lt_save_CFLAGS"
6426 echo "cannot find nm_test_func in $nlist" >&5
6429 echo "cannot find nm_test_var in $nlist" >&5
6432 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6435 echo "$progname: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 rm -f conftest* conftst*
6440 # Do not use the global_symbol_pipe unless it works.
6441 if test "$pipe_works" = yes; then
6444 lt_cv_sys_global_symbol_pipe=
6450 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6451 lt_cv_sys_global_symbol_to_cdecl=
6453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6454 { echo "$as_me:$LINENO: result: failed" >&5
6455 echo "${ECHO_T}failed" >&6; }
6457 { echo "$as_me:$LINENO: result: ok" >&5
6458 echo "${ECHO_T}ok" >&6; }
6461 { echo "$as_me:$LINENO: checking for objdir" >&5
6462 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6463 if test "${lt_cv_objdir+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 rm -f .libs 2>/dev/null
6467 mkdir .libs 2>/dev/null
6468 if test -d .libs; then
6471 # MS-DOS does not allow filenames that begin with a dot.
6474 rmdir .libs 2>/dev/null
6476 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6477 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6478 objdir=$lt_cv_objdir
6486 # AIX sometimes has problems with the GCC collect2 program. For some
6487 # reason, if we set the COLLECT_NAMES environment variable, the problems
6488 # vanish in a puff of smoke.
6489 if test "X${COLLECT_NAMES+set}" != Xset; then
6491 export COLLECT_NAMES
6496 # Sed substitution that helps us do robust quoting. It backslashifies
6497 # metacharacters that are still active within double-quoted strings.
6498 Xsed='sed -e 1s/^X//'
6499 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6501 # Same as above, but do not quote variable references.
6502 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6504 # Sed substitution to delay expansion of an escaped shell variable in a
6505 # double_quote_subst'ed string.
6506 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6508 # Sed substitution to avoid accidental globbing in evaled expressions
6509 no_glob_subst='s/\*/\\\*/g'
6515 default_ofile=libtool
6516 can_build_shared=yes
6518 # All known linkers require a `.a' archive for static linking (except MSVC,
6519 # which needs '.lib').
6521 ltmain="$ac_aux_dir/ltmain.sh"
6522 ofile="$default_ofile"
6523 with_gnu_ld="$lt_cv_prog_gnu_ld"
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}ar; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_AR+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 if test -n "$AR"; then
6534 ac_cv_prog_AR="$AR" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_AR="${ac_tool_prefix}ar"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 if test -n "$AR"; then
6555 { echo "$as_me:$LINENO: result: $AR" >&5
6556 echo "${ECHO_T}$AR" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6564 if test -z "$ac_cv_prog_AR"; then
6566 # Extract the first word of "ar", so it can be a program name with args.
6567 set dummy ar; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 if test -n "$ac_ct_AR"; then
6574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583 ac_cv_prog_ac_ct_AR="ar"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594 if test -n "$ac_ct_AR"; then
6595 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596 echo "${ECHO_T}$ac_ct_AR" >&6; }
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6602 if test "x$ac_ct_AR" = x; then
6605 case $cross_compiling:$ac_tool_warned in
6607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6608 whose name does not start with the host triplet. If you think this
6609 configuration is useful to you, please write to autoconf@gnu.org." >&5
6610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet. If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6613 ac_tool_warned=yes ;;
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_RANLIB+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 if test -n "$RANLIB"; then
6630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 RANLIB=$ac_cv_prog_RANLIB
6650 if test -n "$RANLIB"; then
6651 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6652 echo "${ECHO_T}$RANLIB" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6660 if test -z "$ac_cv_prog_RANLIB"; then
6661 ac_ct_RANLIB=$RANLIB
6662 # Extract the first word of "ranlib", so it can be a program name with args.
6663 set dummy ranlib; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$ac_ct_RANLIB"; then
6670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_RANLIB="ranlib"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6690 if test -n "$ac_ct_RANLIB"; then
6691 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6692 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6698 if test "x$ac_ct_RANLIB" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet. If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6711 RANLIB=$ac_ct_RANLIB
6714 RANLIB="$ac_cv_prog_RANLIB"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}strip; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_STRIP+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$STRIP"; then
6726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 STRIP=$ac_cv_prog_STRIP
6746 if test -n "$STRIP"; then
6747 { echo "$as_me:$LINENO: result: $STRIP" >&5
6748 echo "${ECHO_T}$STRIP" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6756 if test -z "$ac_cv_prog_STRIP"; then
6758 # Extract the first word of "strip", so it can be a program name with args.
6759 set dummy strip; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_STRIP"; then
6766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_STRIP="strip"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6794 if test "x$ac_ct_STRIP" = x; then
6797 case $cross_compiling:$ac_tool_warned in
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet. If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6810 STRIP="$ac_cv_prog_STRIP"
6815 old_CFLAGS="$CFLAGS"
6817 # Set sane defaults for various variables
6818 test -z "$AR" && AR=ar
6819 test -z "$AR_FLAGS" && AR_FLAGS=cru
6820 test -z "$AS" && AS=as
6821 test -z "$CC" && CC=cc
6822 test -z "$LTCC" && LTCC=$CC
6823 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6824 test -z "$DLLTOOL" && DLLTOOL=dlltool
6825 test -z "$LD" && LD=ld
6826 test -z "$LN_S" && LN_S="ln -s"
6827 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6828 test -z "$NM" && NM=nm
6829 test -z "$SED" && SED=sed
6830 test -z "$OBJDUMP" && OBJDUMP=objdump
6831 test -z "$RANLIB" && RANLIB=:
6832 test -z "$STRIP" && STRIP=:
6833 test -z "$ac_objext" && ac_objext=o
6835 # Determine commands to create old-style static archives.
6836 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6837 old_postinstall_cmds='chmod 644 $oldlib'
6838 old_postuninstall_cmds=
6840 if test -n "$RANLIB"; then
6843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6846 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6849 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6852 for cc_temp in $compiler""; do
6854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6863 # Only perform the check for file, if the check method requires it
6864 case $deplibs_check_method in
6866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6867 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6868 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6877 lt_save_MAGIC_CMD="$MAGIC_CMD"
6878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6880 for ac_dir in $ac_dummy; do
6882 test -z "$ac_dir" && ac_dir=.
6883 if test -f $ac_dir/${ac_tool_prefix}file; then
6884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6885 if test -n "$file_magic_test_file"; then
6886 case $deplibs_check_method in
6888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6891 $EGREP "$file_magic_regex" > /dev/null; then
6896 *** Warning: the command libtool uses to detect shared libraries,
6897 *** $file_magic_cmd, produces output that libtool cannot recognize.
6898 *** The result is that libtool may fail to recognize shared libraries
6899 *** as such. This will affect the creation of libtool libraries that
6900 *** depend on shared libraries, but programs linked with such libtool
6901 *** libraries will work regardless of this problem. Nevertheless, you
6902 *** may want to report the problem to your system manager and/or to
6903 *** bug-libtool@gnu.org
6913 MAGIC_CMD="$lt_save_MAGIC_CMD"
6918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919 if test -n "$MAGIC_CMD"; then
6920 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6921 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6927 if test -z "$lt_cv_path_MAGIC_CMD"; then
6928 if test -n "$ac_tool_prefix"; then
6929 { echo "$as_me:$LINENO: checking for file" >&5
6930 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6939 lt_save_MAGIC_CMD="$MAGIC_CMD"
6940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6942 for ac_dir in $ac_dummy; do
6944 test -z "$ac_dir" && ac_dir=.
6945 if test -f $ac_dir/file; then
6946 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6947 if test -n "$file_magic_test_file"; then
6948 case $deplibs_check_method in
6950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6953 $EGREP "$file_magic_regex" > /dev/null; then
6958 *** Warning: the command libtool uses to detect shared libraries,
6959 *** $file_magic_cmd, produces output that libtool cannot recognize.
6960 *** The result is that libtool may fail to recognize shared libraries
6961 *** as such. This will affect the creation of libtool libraries that
6962 *** depend on shared libraries, but programs linked with such libtool
6963 *** libraries will work regardless of this problem. Nevertheless, you
6964 *** may want to report the problem to your system manager and/or to
6965 *** bug-libtool@gnu.org
6975 MAGIC_CMD="$lt_save_MAGIC_CMD"
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if test -n "$MAGIC_CMD"; then
6982 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6983 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
7001 # Check whether --enable-libtool-lock was given.
7002 if test "${enable_libtool_lock+set}" = set; then
7003 enableval=$enable_libtool_lock;
7006 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7009 # Check whether --with-pic was given.
7010 if test "${with_pic+set}" = set; then
7011 withval=$with_pic; pic_mode="$withval"
7016 test -z "$pic_mode" && pic_mode=default
7018 # Use C for the default configuration in the libtool script
7022 ac_cpp='$CPP $CPPFLAGS'
7023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7028 # Source file extension for C test sources.
7031 # Object file extension for compiled C test sources.
7035 # Code to be used in simple compile tests
7036 lt_simple_compile_test_code="int some_variable = 0;\n"
7038 # Code to be used in simple link tests
7039 lt_simple_link_test_code='int main(){return(0);}\n'
7042 # If no C compiler was specified, use CC.
7045 # If no C compiler flags were specified, use CFLAGS.
7046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7048 # Allow CC to be a program name with arguments.
7052 # save warnings/boilerplate of simple test code
7053 ac_outfile=conftest.$ac_objext
7054 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7056 _lt_compiler_boilerplate=`cat conftest.err`
7059 ac_outfile=conftest.$ac_objext
7060 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7062 _lt_linker_boilerplate=`cat conftest.err`
7067 lt_prog_compiler_no_builtin_flag=
7069 if test "$GCC" = yes; then
7070 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7073 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7074 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7075 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 lt_cv_prog_compiler_rtti_exceptions=no
7079 ac_outfile=conftest.$ac_objext
7080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7081 lt_compiler_flag="-fno-rtti -fno-exceptions"
7082 # Insert the option either (1) after the last *FLAGS variable, or
7083 # (2) before a word containing "conftest.", or (3) at the end.
7084 # Note that $ac_compile itself does not contain backslashes and begins
7085 # with a dollar sign (not a hyphen), so the echo should work correctly.
7086 # The option is referenced via a variable to avoid confusing sed.
7087 lt_compile=`echo "$ac_compile" | $SED \
7088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7090 -e 's:$: $lt_compiler_flag:'`
7091 (eval echo "\"\$as_me:7091: $lt_compile\"" >&5)
7092 (eval "$lt_compile" 2>conftest.err)
7094 cat conftest.err >&5
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 if (exit $ac_status) && test -s "$ac_outfile"; then
7097 # The compiler can only warn and ignore the option if not recognized
7098 # So say no if there are warnings other than the usual output.
7099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7102 lt_cv_prog_compiler_rtti_exceptions=yes
7108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7109 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7111 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7112 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7119 lt_prog_compiler_wl=
7120 lt_prog_compiler_pic=
7121 lt_prog_compiler_static=
7123 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7124 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7126 if test "$GCC" = yes; then
7127 lt_prog_compiler_wl='-Wl,'
7128 lt_prog_compiler_static='-static'
7132 # All AIX code is PIC.
7133 if test "$host_cpu" = ia64; then
7134 # AIX 5 now supports IA64 processor
7135 lt_prog_compiler_static='-Bstatic'
7140 # FIXME: we need at least 68020 code to build shared libraries, but
7141 # adding the `-m68020' flag to GCC prevents building anything better,
7143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7146 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7147 # PIC is the default for these OSes.
7150 mingw* | pw32* | os2*)
7151 # This hack is so that the source file can tell whether it is being
7152 # built for inclusion in a dll (and should export symbols for example).
7153 lt_prog_compiler_pic='-DDLL_EXPORT'
7156 darwin* | rhapsody*)
7157 # PIC is the default on this platform
7158 # Common symbols not allowed in MH_DYLIB files
7159 lt_prog_compiler_pic='-fno-common'
7163 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7164 # Instead, we relocate shared libraries at runtime.
7168 # Just because we use GCC doesn't mean we suddenly get shared libraries
7169 # on systems that don't support them.
7170 lt_prog_compiler_can_build_shared=no
7175 if test -d /usr/nec; then
7176 lt_prog_compiler_pic=-Kconform_pic
7181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7188 lt_prog_compiler_pic='-fPIC'
7194 lt_prog_compiler_pic='-fPIC'
7198 # PORTME Check for flag to pass linker flags through the system compiler.
7201 lt_prog_compiler_wl='-Wl,'
7202 if test "$host_cpu" = ia64; then
7203 # AIX 5 now supports IA64 processor
7204 lt_prog_compiler_static='-Bstatic'
7206 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7210 # PIC is the default on this platform
7211 # Common symbols not allowed in MH_DYLIB files
7212 case $cc_basename in
7214 lt_prog_compiler_pic='-qnocommon'
7215 lt_prog_compiler_wl='-Wl,'
7220 mingw* | pw32* | os2*)
7221 # This hack is so that the source file can tell whether it is being
7222 # built for inclusion in a dll (and should export symbols for example).
7223 lt_prog_compiler_pic='-DDLL_EXPORT'
7226 hpux9* | hpux10* | hpux11*)
7227 lt_prog_compiler_wl='-Wl,'
7228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7235 lt_prog_compiler_pic='+Z'
7238 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7239 lt_prog_compiler_static='${wl}-a ${wl}archive'
7242 irix5* | irix6* | nonstopux*)
7243 lt_prog_compiler_wl='-Wl,'
7244 # PIC (with -KPIC) is the default.
7245 lt_prog_compiler_static='-non_shared'
7249 lt_prog_compiler_pic='-KPIC'
7250 lt_prog_compiler_static='-Bstatic'
7253 linux* | k*bsd*-gnu)
7254 case $cc_basename in
7256 lt_prog_compiler_wl='-Wl,'
7257 lt_prog_compiler_pic='-KPIC'
7258 lt_prog_compiler_static='-static'
7260 pgcc* | pgf77* | pgf90* | pgf95*)
7261 # Portland Group compilers (*not* the Pentium gcc compiler,
7262 # which looks to be a dead project)
7263 lt_prog_compiler_wl='-Wl,'
7264 lt_prog_compiler_pic='-fpic'
7265 lt_prog_compiler_static='-Bstatic'
7268 lt_prog_compiler_wl='-Wl,'
7269 # All Alpha code is PIC.
7270 lt_prog_compiler_static='-non_shared'
7275 osf3* | osf4* | osf5*)
7276 lt_prog_compiler_wl='-Wl,'
7277 # All OSF/1 code is PIC.
7278 lt_prog_compiler_static='-non_shared'
7282 lt_prog_compiler_pic='-KPIC'
7283 lt_prog_compiler_static='-Bstatic'
7284 case $cc_basename in
7286 lt_prog_compiler_wl='-Qoption ld ';;
7288 lt_prog_compiler_wl='-Wl,';;
7293 lt_prog_compiler_wl='-Qoption ld '
7294 lt_prog_compiler_pic='-PIC'
7295 lt_prog_compiler_static='-Bstatic'
7298 sysv4 | sysv4.2uw2* | sysv4.3*)
7299 lt_prog_compiler_wl='-Wl,'
7300 lt_prog_compiler_pic='-KPIC'
7301 lt_prog_compiler_static='-Bstatic'
7305 if test -d /usr/nec ;then
7306 lt_prog_compiler_pic='-Kconform_pic'
7307 lt_prog_compiler_static='-Bstatic'
7311 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7312 lt_prog_compiler_wl='-Wl,'
7313 lt_prog_compiler_pic='-KPIC'
7314 lt_prog_compiler_static='-Bstatic'
7318 lt_prog_compiler_wl='-Wl,'
7319 lt_prog_compiler_can_build_shared=no
7323 lt_prog_compiler_pic='-pic'
7324 lt_prog_compiler_static='-Bstatic'
7328 lt_prog_compiler_can_build_shared=no
7333 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7334 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7337 # Check to make sure the PIC flag actually works.
7339 if test -n "$lt_prog_compiler_pic"; then
7341 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7342 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7343 if test "${lt_prog_compiler_pic_works+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 lt_prog_compiler_pic_works=no
7347 ac_outfile=conftest.$ac_objext
7348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7349 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7350 # Insert the option either (1) after the last *FLAGS variable, or
7351 # (2) before a word containing "conftest.", or (3) at the end.
7352 # Note that $ac_compile itself does not contain backslashes and begins
7353 # with a dollar sign (not a hyphen), so the echo should work correctly.
7354 # The option is referenced via a variable to avoid confusing sed.
7355 lt_compile=`echo "$ac_compile" | $SED \
7356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7358 -e 's:$: $lt_compiler_flag:'`
7359 (eval echo "\"\$as_me:7359: $lt_compile\"" >&5)
7360 (eval "$lt_compile" 2>conftest.err)
7362 cat conftest.err >&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 if (exit $ac_status) && test -s "$ac_outfile"; then
7365 # The compiler can only warn and ignore the option if not recognized
7366 # So say no if there are warnings other than the usual output.
7367 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7370 lt_prog_compiler_pic_works=yes
7376 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7377 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7379 if test x"$lt_prog_compiler_pic_works" = xyes; then
7380 case $lt_prog_compiler_pic in
7382 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7385 lt_prog_compiler_pic=
7386 lt_prog_compiler_can_build_shared=no
7391 # For platforms which do not support PIC, -DPIC is meaningless:
7393 lt_prog_compiler_pic=
7396 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7401 # Check to make sure the static flag actually works.
7403 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7404 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7405 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7406 if test "${lt_prog_compiler_static_works+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 lt_prog_compiler_static_works=no
7410 save_LDFLAGS="$LDFLAGS"
7411 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7412 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7413 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7414 # The linker can only warn and ignore the option if not recognized
7415 # So say no if there are warnings
7416 if test -s conftest.err; then
7417 # Append any errors to the config.log.
7418 cat conftest.err 1>&5
7419 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7421 if diff conftest.exp conftest.er2 >/dev/null; then
7422 lt_prog_compiler_static_works=yes
7425 lt_prog_compiler_static_works=yes
7429 LDFLAGS="$save_LDFLAGS"
7432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7433 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7435 if test x"$lt_prog_compiler_static_works" = xyes; then
7438 lt_prog_compiler_static=
7442 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7443 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7444 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 lt_cv_prog_compiler_c_o=no
7448 $rm -r conftest 2>/dev/null
7452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7454 lt_compiler_flag="-o out/conftest2.$ac_objext"
7455 # Insert the option either (1) after the last *FLAGS variable, or
7456 # (2) before a word containing "conftest.", or (3) at the end.
7457 # Note that $ac_compile itself does not contain backslashes and begins
7458 # with a dollar sign (not a hyphen), so the echo should work correctly.
7459 lt_compile=`echo "$ac_compile" | $SED \
7460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7462 -e 's:$: $lt_compiler_flag:'`
7463 (eval echo "\"\$as_me:7463: $lt_compile\"" >&5)
7464 (eval "$lt_compile" 2>out/conftest.err)
7466 cat out/conftest.err >&5
7467 echo "$as_me:7467: \$? = $ac_status" >&5
7468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7470 # The compiler can only warn and ignore the option if not recognized
7471 # So say no if there are warnings
7472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7475 lt_cv_prog_compiler_c_o=yes
7480 # SGI C++ compiler will create directory out/ii_files/ for
7481 # template instantiation
7482 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7483 $rm out/* && rmdir out
7489 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7490 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7493 hard_links="nottested"
7494 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7495 # do not overwrite the value of need_locks provided by the user
7496 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7497 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7502 ln conftest.a conftest.b 2>&5 || hard_links=no
7503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7504 { echo "$as_me:$LINENO: result: $hard_links" >&5
7505 echo "${ECHO_T}$hard_links" >&6; }
7506 if test "$hard_links" = no; then
7507 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7508 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7515 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7516 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7519 allow_undefined_flag=
7520 enable_shared_with_static_runtimes=no
7522 archive_expsym_cmds=
7523 old_archive_From_new_cmds=
7524 old_archive_from_expsyms_cmds=
7525 export_dynamic_flag_spec=
7526 whole_archive_flag_spec=
7527 thread_safe_flag_spec=
7528 hardcode_libdir_flag_spec=
7529 hardcode_libdir_flag_spec_ld=
7530 hardcode_libdir_separator=
7533 hardcode_shlibpath_var=unsupported
7534 link_all_deplibs=unknown
7535 hardcode_automatic=no
7538 always_export_symbols=no
7539 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7540 # include_expsyms should be a list of space-separated symbols to be *always*
7541 # included in the symbol list
7543 # exclude_expsyms can be an extended regexp of symbols to exclude
7544 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7545 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7546 # as well as any symbol that contains `d'.
7547 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7548 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7549 # platforms (ab)use it in PIC code, but their linkers get confused if
7550 # the symbol is explicitly referenced. Since portable code cannot
7551 # rely on this symbol name, it's probably fine to never include it in
7552 # preloaded symbol tables.
7553 extract_expsyms_cmds=
7554 # Just being paranoid about ensuring that cc_basename is set.
7555 for cc_temp in $compiler""; do
7557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7563 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7566 cygwin* | mingw* | pw32*)
7567 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7568 # When not using gcc, we currently assume that we are using
7569 # Microsoft Visual C++.
7570 if test "$GCC" != yes; then
7575 # we just hope/assume this is gcc and not c89 (= MSVC++)
7584 if test "$with_gnu_ld" = yes; then
7585 # If archive_cmds runs LD, not CC, wlarc should be empty
7588 # Set some defaults for GNU ld with shared library support. These
7589 # are reset later if shared libraries are not supported. Putting them
7590 # here allows them to be overridden if necessary.
7591 runpath_var=LD_RUN_PATH
7592 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7593 export_dynamic_flag_spec='${wl}--export-dynamic'
7594 # ancient GNU ld didn't support --whole-archive et. al.
7595 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7596 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7598 whole_archive_flag_spec=
7600 supports_anon_versioning=no
7601 case `$LD -v 2>/dev/null` in
7602 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7603 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7604 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7605 *\ 2.11.*) ;; # other 2.11 versions
7606 *) supports_anon_versioning=yes ;;
7609 # See if GNU ld supports shared libraries.
7611 aix3* | aix4* | aix5*)
7612 # On AIX/PPC, the GNU linker is very broken
7613 if test "$host_cpu" != ia64; then
7617 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7618 *** to be unable to reliably create shared libraries on AIX.
7619 *** Therefore, libtool is disabling shared libraries support. If you
7620 *** really care for shared libraries, you may want to modify your PATH
7621 *** so that a non-GNU linker is found, and then restart.
7628 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)'
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_minus_L=yes
7632 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7633 # that the semantics of dynamic libraries on AmigaOS, at least up
7634 # to version 4, is to share data among multiple programs linked
7635 # with the same dynamic library. Since this doesn't match the
7636 # behavior of shared libraries on other platforms, we can't use
7642 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7643 allow_undefined_flag=unsupported
7644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7645 # support --undefined. This deserves some investigation. FIXME
7646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7652 cygwin* | mingw* | pw32*)
7653 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7654 # as there is no search path for DLLs.
7655 hardcode_libdir_flag_spec='-L$libdir'
7656 allow_undefined_flag=unsupported
7657 always_export_symbols=no
7658 enable_shared_with_static_runtimes=yes
7659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7661 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7663 # If the export-symbols file already is a .def file (1st line
7664 # is EXPORTS), use it as is; otherwise, prepend...
7665 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7666 cp $export_symbols $output_objdir/$soname.def;
7668 echo EXPORTS > $output_objdir/$soname.def;
7669 cat $export_symbols >> $output_objdir/$soname.def;
7671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7679 hardcode_shlibpath_var=no
7680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7681 export_dynamic_flag_spec='${wl}-E'
7682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7683 # Instead, shared libraries are loaded at an image base (0x10000000 by
7684 # default) and relocated if they conflict, which is a slow very memory
7685 # consuming and fragmenting process. To avoid this, we pick a random,
7686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7689 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'
7692 linux* | k*bsd*-gnu)
7693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7695 case $cc_basename,$host_cpu in
7696 pgcc*) # Portland Group C compiler
7697 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'
7698 tmp_addflag=' $pic_flag'
7700 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7701 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'
7702 tmp_addflag=' $pic_flag -Mnomain' ;;
7703 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7704 tmp_addflag=' -i_dynamic' ;;
7705 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7706 tmp_addflag=' -i_dynamic -nofor_main' ;;
7707 ifc* | ifort*) # Intel Fortran compiler
7708 tmp_addflag=' -nofor_main' ;;
7710 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712 if test $supports_anon_versioning = yes; then
7713 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7715 $echo "local: *; };" >> $output_objdir/$libname.ver~
7716 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7724 netbsd* | netbsdelf*-gnu)
7725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7726 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7735 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7740 *** create shared libraries on Solaris systems. Therefore, libtool
7741 *** is disabling shared libraries support. We urge you to upgrade GNU
7742 *** binutils to release 2.9.1 or newer. Another option is to modify
7743 *** your PATH or compiler configuration so that the native linker is
7744 *** used, and then restart.
7747 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7756 case `$LD -v 2>&1` in
7757 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7762 *** reliably create shared libraries on SCO systems. Therefore, libtool
7763 *** is disabling shared libraries support. We urge you to upgrade GNU
7764 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7765 *** your PATH or compiler configuration so that the native linker is
7766 *** used, and then restart.
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7783 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7786 hardcode_shlibpath_var=no
7790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7799 if test "$ld_shlibs" = no; then
7801 hardcode_libdir_flag_spec=
7802 export_dynamic_flag_spec=
7803 whole_archive_flag_spec=
7806 # PORTME fill in a description of your system's linker (not GNU ld)
7809 allow_undefined_flag=unsupported
7810 always_export_symbols=yes
7811 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'
7812 # Note: this linker hardcodes the directories in LIBPATH if there
7813 # are no directories specified by -L.
7814 hardcode_minus_L=yes
7815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7816 # Neither direct hardcoding nor static linking is supported with a
7818 hardcode_direct=unsupported
7823 if test "$host_cpu" = ia64; then
7824 # On IA64, the linker does run time linking by default, so we don't
7825 # have to do anything special.
7826 aix_use_runtimelinking=no
7827 exp_sym_flag='-Bexport'
7830 # If we're using GNU nm, then we don't want the "-C" option.
7831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7833 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'
7835 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'
7837 aix_use_runtimelinking=no
7839 # Test if we are trying to use run time linking or normal
7840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7841 # need to do runtime linking.
7842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7843 for ld_flag in $LDFLAGS; do
7844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7845 aix_use_runtimelinking=yes
7852 exp_sym_flag='-bexport'
7853 no_entry_flag='-bnoentry'
7856 # When large executables or shared objects are built, AIX ld can
7857 # have problems creating the table of contents. If linking a library
7858 # or program results in "error TOC overflow" add -mminimal-toc to
7859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7864 hardcode_libdir_separator=':'
7865 link_all_deplibs=yes
7867 if test "$GCC" = yes; then
7868 case $host_os in aix4.[012]|aix4.[012].*)
7869 # We only want to do this on AIX 4.2 and lower, the check
7870 # below for broken collect2 doesn't work under 4.3+
7871 collect2name=`${CC} -print-prog-name=collect2`
7872 if test -f "$collect2name" && \
7873 strings "$collect2name" | grep resolve_lib_name >/dev/null
7875 # We have reworked collect2
7878 # We have old collect2
7879 hardcode_direct=unsupported
7880 # It fails to find uninstalled libraries when the uninstalled
7881 # path is not listed in the libpath. Setting hardcode_minus_L
7882 # to unsupported forces relinking
7883 hardcode_minus_L=yes
7884 hardcode_libdir_flag_spec='-L$libdir'
7885 hardcode_libdir_separator=
7889 shared_flag='-shared'
7890 if test "$aix_use_runtimelinking" = yes; then
7891 shared_flag="$shared_flag "'${wl}-G'
7895 if test "$host_cpu" = ia64; then
7896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7897 # chokes on -Wl,-G. The following line is correct:
7900 if test "$aix_use_runtimelinking" = yes; then
7901 shared_flag='${wl}-G'
7903 shared_flag='${wl}-bM:SRE'
7908 # It seems that -bexpall does not export symbols beginning with
7909 # underscore (_), so it is better to generate a list of symbols to export.
7910 always_export_symbols=yes
7911 if test "$aix_use_runtimelinking" = yes; then
7912 # Warning - without using the other runtime loading flags (-brtl),
7913 # -berok will link without error, but may produce a broken library.
7914 allow_undefined_flag='-berok'
7915 # Determine the default libpath from the value encoded in an empty executable.
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7931 rm -f conftest.$ac_objext conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_link") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest$ac_exeext &&
7948 $as_test_x conftest$ac_exeext; then
7950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7952 # Check for a 64-bit object if we didn't find anything.
7953 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; }
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7963 conftest$ac_exeext conftest.$ac_ext
7964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7967 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"
7969 if test "$host_cpu" = ia64; then
7970 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7971 allow_undefined_flag="-z nodefs"
7972 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"
7974 # Determine the default libpath from the value encoded in an empty executable.
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_link") 2>conftest.er1
7999 grep -v '^ *+' conftest.er1 >conftest.err
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && {
8004 test -z "$ac_c_werror_flag" ||
8005 test ! -s conftest.err
8006 } && test -s conftest$ac_exeext &&
8007 $as_test_x conftest$ac_exeext; then
8009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8011 # Check for a 64-bit object if we didn't find anything.
8012 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; }
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8022 conftest$ac_exeext conftest.$ac_ext
8023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8025 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8026 # Warning - without using the other run time loading flags,
8027 # -berok will link without error, but may produce a broken library.
8028 no_undefined_flag=' ${wl}-bernotok'
8029 allow_undefined_flag=' ${wl}-berok'
8030 # Exported symbols can be pulled into shared objects from archives
8031 whole_archive_flag_spec='$convenience'
8032 archive_cmds_need_lc=yes
8033 # This is similar to how AIX traditionally builds its shared libraries.
8034 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'
8040 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)'
8041 hardcode_libdir_flag_spec='-L$libdir'
8042 hardcode_minus_L=yes
8043 # see comment about different semantics on the GNU ld section
8048 export_dynamic_flag_spec=-rdynamic
8051 cygwin* | mingw* | pw32*)
8052 # When not using gcc, we currently assume that we are using
8053 # Microsoft Visual C++.
8054 # hardcode_libdir_flag_spec is actually meaningless, as there is
8055 # no search path for DLLs.
8056 hardcode_libdir_flag_spec=' '
8057 allow_undefined_flag=unsupported
8058 # Tell ltmain to make .lib files, not .a files.
8060 # Tell ltmain to make .dll files, not .so files.
8062 # FIXME: Setting linknames here is a bad hack.
8063 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8064 # The linker will automatically build a .lib file if we build a DLL.
8065 old_archive_From_new_cmds='true'
8066 # FIXME: Should let the user specify the lib program.
8067 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8068 fix_srcfile_path='`cygpath -w "$srcfile"`'
8069 enable_shared_with_static_runtimes=yes
8072 darwin* | rhapsody*)
8074 rhapsody* | darwin1.[012])
8075 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8078 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8079 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8081 case ${MACOSX_DEPLOYMENT_TARGET} in
8083 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8086 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8092 archive_cmds_need_lc=no
8094 hardcode_automatic=yes
8095 hardcode_shlibpath_var=unsupported
8096 whole_archive_flag_spec=''
8097 link_all_deplibs=yes
8098 if test "$GCC" = yes ; then
8099 output_verbose_link_cmd='echo'
8100 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8101 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8102 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8103 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}'
8104 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}'
8106 case $cc_basename in
8108 output_verbose_link_cmd='echo'
8109 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8110 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8112 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}'
8113 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}'
8123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124 hardcode_libdir_flag_spec='-L$libdir'
8125 hardcode_shlibpath_var=no
8132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8133 # support. Future versions do this automatically, but an explicit c++rt0.o
8134 # does not break anything, and helps significantly (at the cost of a little
8137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8138 hardcode_libdir_flag_spec='-R$libdir'
8140 hardcode_shlibpath_var=no
8143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_minus_L=yes
8148 hardcode_shlibpath_var=no
8151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8152 freebsd* | dragonfly*)
8153 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8154 hardcode_libdir_flag_spec='-R$libdir'
8156 hardcode_shlibpath_var=no
8160 if test "$GCC" = yes; then
8161 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'
8163 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'
8165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8166 hardcode_libdir_separator=:
8169 # hardcode_minus_L: Not really in the search PATH,
8170 # but as the default location of the library.
8171 hardcode_minus_L=yes
8172 export_dynamic_flag_spec='${wl}-E'
8176 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8181 if test "$with_gnu_ld" = no; then
8182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8183 hardcode_libdir_separator=:
8186 export_dynamic_flag_spec='${wl}-E'
8188 # hardcode_minus_L: Not really in the search PATH,
8189 # but as the default location of the library.
8190 hardcode_minus_L=yes
8195 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8210 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8220 if test "$with_gnu_ld" = no; then
8221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8222 hardcode_libdir_separator=:
8226 hardcode_libdir_flag_spec_ld='+b $libdir'
8228 hardcode_shlibpath_var=no
8232 export_dynamic_flag_spec='${wl}-E'
8234 # hardcode_minus_L: Not really in the search PATH,
8235 # but as the default location of the library.
8236 hardcode_minus_L=yes
8242 irix5* | irix6* | nonstopux*)
8243 if test "$GCC" = yes; then
8244 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'
8246 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'
8247 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8250 hardcode_libdir_separator=:
8251 link_all_deplibs=yes
8254 netbsd* | netbsdelf*-gnu)
8255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8258 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8260 hardcode_libdir_flag_spec='-R$libdir'
8262 hardcode_shlibpath_var=no
8266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8269 hardcode_libdir_separator=:
8270 hardcode_shlibpath_var=no
8275 hardcode_shlibpath_var=no
8276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8280 export_dynamic_flag_spec='${wl}-E'
8283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8285 hardcode_libdir_flag_spec='-R$libdir'
8288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8296 hardcode_libdir_flag_spec='-L$libdir'
8297 hardcode_minus_L=yes
8298 allow_undefined_flag=unsupported
8299 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'
8300 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8304 if test "$GCC" = yes; then
8305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8306 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'
8308 allow_undefined_flag=' -expect_unresolved \*'
8309 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'
8311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8312 hardcode_libdir_separator=:
8315 osf4* | osf5*) # as osf3* with the addition of -msym flag
8316 if test "$GCC" = yes; then
8317 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8318 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'
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321 allow_undefined_flag=' -expect_unresolved \*'
8322 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'
8323 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8324 $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'
8326 # Both c and cxx compiler support -rpath directly
8327 hardcode_libdir_flag_spec='-rpath $libdir'
8329 hardcode_libdir_separator=:
8333 no_undefined_flag=' -z text'
8334 if test "$GCC" = yes; then
8336 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8337 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8338 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8342 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8345 hardcode_libdir_flag_spec='-R$libdir'
8346 hardcode_shlibpath_var=no
8348 solaris2.[0-5] | solaris2.[0-5].*) ;;
8350 # The compiler driver will combine linker options so we
8351 # cannot just pass the convience library names through
8352 # without $wl, iff we do not link with $LD.
8353 # Luckily, gcc supports the same syntax we need for Sun Studio.
8354 # Supported since Solaris 2.6 (maybe 2.5.1?)
8357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8359 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' ;;
8362 link_all_deplibs=yes
8366 if test "x$host_vendor" = xsequent; then
8367 # Use $CC to link under sequent, because it throws in some extra .o
8368 # files that make .init and .fini sections work.
8369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_libdir_flag_spec='-L$libdir'
8375 hardcode_minus_L=yes
8376 hardcode_shlibpath_var=no
8380 case $host_vendor in
8382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8383 hardcode_direct=yes # is this really true???
8386 ## LD is ld it makes a PLAMLIB
8387 ## CC just makes a GrossModule.
8388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8389 reload_cmds='$CC -r -o $output$reload_objs'
8393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8397 runpath_var='LD_RUN_PATH'
8398 hardcode_shlibpath_var=no
8402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403 hardcode_shlibpath_var=no
8404 export_dynamic_flag_spec='-Bexport'
8408 if test -d /usr/nec; then
8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_shlibpath_var=no
8411 runpath_var=LD_RUN_PATH
8412 hardcode_runpath_var=yes
8417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8418 no_undefined_flag='${wl}-z,text'
8419 archive_cmds_need_lc=no
8420 hardcode_shlibpath_var=no
8421 runpath_var='LD_RUN_PATH'
8423 if test "$GCC" = yes; then
8424 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 sysv5* | sco3.2v5* | sco5v6*)
8433 # Note: We can NOT use -z defs as we might desire, because we do not
8434 # link with -lc, and that would cause any symbols used from libc to
8435 # always be unresolved, which means just about no library would
8436 # ever link correctly. If we're not using GNU ld we use -z text
8437 # though, which does catch some bad symbols but isn't as heavy-handed
8439 no_undefined_flag='${wl}-z,text'
8440 allow_undefined_flag='${wl}-z,nodefs'
8441 archive_cmds_need_lc=no
8442 hardcode_shlibpath_var=no
8443 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8444 hardcode_libdir_separator=':'
8445 link_all_deplibs=yes
8446 export_dynamic_flag_spec='${wl}-Bexport'
8447 runpath_var='LD_RUN_PATH'
8449 if test "$GCC" = yes; then
8450 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_libdir_flag_spec='-L$libdir'
8461 hardcode_shlibpath_var=no
8470 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8471 echo "${ECHO_T}$ld_shlibs" >&6; }
8472 test "$ld_shlibs" = no && can_build_shared=no
8475 # Do we need to explicitly link libc?
8477 case "x$archive_cmds_need_lc" in
8479 # Assume -lc should be added
8480 archive_cmds_need_lc=yes
8482 if test "$enable_shared" = yes && test "$GCC" = yes; then
8483 case $archive_cmds in
8485 # FIXME: we may have to deal with multi-command sequences.
8488 # Test whether the compiler implicitly links with -lc since on some
8489 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8490 # to ld, don't add -lc before -lgcc.
8491 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } 2>conftest.err; then
8503 libobjs=conftest.$ac_objext
8505 wl=$lt_prog_compiler_wl
8506 pic_flag=$lt_prog_compiler_pic
8512 lt_save_allow_undefined_flag=$allow_undefined_flag
8513 allow_undefined_flag=
8514 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8515 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }
8520 archive_cmds_need_lc=no
8522 archive_cmds_need_lc=yes
8524 allow_undefined_flag=$lt_save_allow_undefined_flag
8526 cat conftest.err 1>&5
8529 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8530 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8537 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8540 libname_spec='lib$name'
8548 shlibpath_overrides_runpath=unknown
8550 dynamic_linker="$host_os ld.so"
8551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8552 if test "$GCC" = yes; then
8553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8555 # if the path contains ";" then we assume it to be the separator
8556 # otherwise default to the standard path separator (i.e. ":") - it is
8557 # assumed that no part of a normal pathname contains ";" but that should
8558 # okay in the real world where ";" in dirpaths is itself problematic.
8559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8566 need_lib_prefix=unknown
8567 hardcode_into_libs=no
8569 # when you set need_version to no, make sure it does not cause -set_version
8570 # flags to be left without arguments
8571 need_version=unknown
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8577 shlibpath_var=LIBPATH
8579 # AIX 3 has no versioning support, so we append a major version to the name.
8580 soname_spec='${libname}${release}${shared_ext}$major'
8587 hardcode_into_libs=yes
8588 if test "$host_cpu" = ia64; then
8589 # AIX 5 supports IA64
8590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8591 shlibpath_var=LD_LIBRARY_PATH
8593 # With GCC up to 2.95.x, collect2 would create an import file
8594 # for dependence libraries. The import file would start with
8595 # the line `#! .'. This would cause the generated library to
8596 # depend on `.', always an invalid library. This was fixed in
8597 # development snapshots of GCC prior to 3.0.
8599 aix4 | aix4.[01] | aix4.[01].*)
8600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8610 # soname into executable. Probably we can add versioning support to
8611 # collect2, so additional links can be useful in future.
8612 if test "$aix_use_runtimelinking" = yes; then
8613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8614 # instead of lib<name>.a to let people know that these are not
8615 # typical AIX shared libraries.
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 # We preserve .a as extension for shared libraries through AIX4.2
8619 # and later when we are not doing run time linking.
8620 library_names_spec='${libname}${release}.a $libname.a'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8623 shlibpath_var=LIBPATH
8628 library_names_spec='$libname.ixlibrary $libname.a'
8629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8630 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'
8634 library_names_spec='${libname}${shared_ext}'
8635 dynamic_linker="$host_os ld.so"
8636 shlibpath_var=LIBRARY_PATH
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8645 shlibpath_var=LD_LIBRARY_PATH
8646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8648 # the default ld.so.conf also contains /usr/contrib/lib and
8649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8650 # libtool to hard-code these into programs
8653 cygwin* | mingw* | pw32*)
8654 version_type=windows
8659 case $GCC,$host_os in
8660 yes,cygwin* | yes,mingw* | yes,pw32*)
8661 library_names_spec='$libname.dll.a'
8662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8663 postinstall_cmds='base_file=`basename \${file}`~
8664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8665 dldir=$destdir/`dirname \$dlpath`~
8666 test -d \$dldir || mkdir -p \$dldir~
8667 $install_prog $dir/$dlname \$dldir/$dlname~
8668 chmod a+x \$dldir/$dlname'
8669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8670 dlpath=$dir/\$dldll~
8672 shlibpath_overrides_runpath=yes
8676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8681 # MinGW DLLs use traditional 'lib' prefix
8682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8685 # It is most probably a Windows format PATH printed by
8686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8687 # path with ; separators, and with drive letters. We can handle the
8688 # drive letters (cygwin fileutils understands them), so leave them,
8689 # especially as we might pass files found there to a mingw objdump,
8690 # which wouldn't understand a cygwinified path. Ahh.
8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8697 # pw32 DLLs use 'pw' prefix rather than 'lib'
8698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8707 dynamic_linker='Win32 ld.exe'
8708 # FIXME: first we should search . and the directory the executable is in
8712 darwin* | rhapsody*)
8713 dynamic_linker="$host_os dyld"
8717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8718 soname_spec='${libname}${release}${major}$shared_ext'
8719 shlibpath_overrides_runpath=yes
8720 shlibpath_var=DYLD_LIBRARY_PATH
8721 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8723 if test "$GCC" = yes; then
8724 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"`
8726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 shlibpath_var=LD_LIBRARY_PATH
8744 freebsd* | dragonfly*)
8745 # DragonFly does not have aout. When/if they implement a new
8746 # versioning mechanism, adjust this.
8747 if test -x /usr/bin/objformat; then
8748 objformat=`/usr/bin/objformat`
8751 freebsd[123]*) objformat=aout ;;
8755 version_type=freebsd-$objformat
8756 case $version_type in
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8767 shlibpath_var=LD_LIBRARY_PATH
8770 shlibpath_overrides_runpath=yes
8772 freebsd3.[01]* | freebsdelf3.[01]*)
8773 shlibpath_overrides_runpath=yes
8774 hardcode_into_libs=yes
8776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8778 shlibpath_overrides_runpath=no
8779 hardcode_into_libs=yes
8781 freebsd*) # from 4.6 on
8782 shlibpath_overrides_runpath=yes
8783 hardcode_into_libs=yes
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 shlibpath_var=LD_LIBRARY_PATH
8795 hardcode_into_libs=yes
8798 hpux9* | hpux10* | hpux11*)
8799 # Give a soname corresponding to the major version so that dld.sl refuses to
8800 # link against other versions.
8807 hardcode_into_libs=yes
8808 dynamic_linker="$host_os dld.so"
8809 shlibpath_var=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 if test "X$HPUX_IA64_MODE" = X32; then
8814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8822 hardcode_into_libs=yes
8823 dynamic_linker="$host_os dld.sl"
8824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8833 dynamic_linker="$host_os dld.sl"
8834 shlibpath_var=SHLIB_PATH
8835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8841 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 shlibpath_overrides_runpath=no
8853 hardcode_into_libs=yes
8856 irix5* | irix6* | nonstopux*)
8858 nonstopux*) version_type=nonstopux ;;
8860 if test "$lt_cv_prog_gnu_ld" = yes; then
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8871 irix5* | nonstopux*)
8875 case $LD in # libtool.m4 will add one of these switches to LD
8876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8877 libsuff= shlibsuff= libmagic=32-bit;;
8878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8879 libsuff=32 shlibsuff=N32 libmagic=N32;;
8880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8881 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8882 *) libsuff= shlibsuff= libmagic=never-match;;
8886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8887 shlibpath_overrides_runpath=no
8888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8890 hardcode_into_libs=yes
8893 # No shared lib support for Linux oldld, aout, or coff.
8894 linux*oldld* | linux*aout* | linux*coff*)
8898 # This must be Linux ELF.
8899 linux* | k*bsd*-gnu)
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=no
8908 # This implies no fast_install, which is unacceptable.
8909 # Some rework will be needed to allow for fast_install
8910 # before this can be enabled.
8911 hardcode_into_libs=yes
8913 # Append ld.so.conf contents to the search path
8914 if test -f /etc/ld.so.conf; then
8915 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' ' '`
8916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8919 # We used to test for /lib/ld.so.1 and disable shared libraries on
8920 # powerpc, because MkLinux only supported shared libraries with the
8921 # GNU dynamic linker. Since this was broken with cross compilers,
8922 # most powerpc-linux boxes support dynamic linking these days and
8923 # people can always --disable-shared, the test was removed, and we
8924 # assume the GNU/Linux dynamic linker is in use.
8925 dynamic_linker='GNU/Linux ld.so'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 dynamic_linker='NetBSD ld.elf_so'
8944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8947 dynamic_linker='NetBSD (a.out) ld.so'
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 dynamic_linker='NetBSD ld.elf_so'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=yes
8955 hardcode_into_libs=yes
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 shlibpath_overrides_runpath=yes
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=yes
8977 sys_lib_dlsearch_path_spec="/usr/lib"
8979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8982 *) need_version=no ;;
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8989 openbsd2.[89] | openbsd2.[89].*)
8990 shlibpath_overrides_runpath=no
8993 shlibpath_overrides_runpath=yes
8997 shlibpath_overrides_runpath=yes
9002 libname_spec='$name'
9005 library_names_spec='$libname${shared_ext} $libname.a'
9006 dynamic_linker='OS/2 ld.exe'
9007 shlibpath_var=LIBPATH
9010 osf3* | osf4* | osf5*)
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
9029 hardcode_into_libs=yes
9030 # ldd complains unless libraries are executable
9031 postinstall_cmds='chmod +x $lib'
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 if test "$with_gnu_ld" = yes; then
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 case $host_vendor in
9053 shlibpath_overrides_runpath=no
9055 export_dynamic_flag_spec='${wl}-Blargedynsym'
9056 runpath_var=LD_RUN_PATH
9064 shlibpath_overrides_runpath=no
9065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9071 if test -d /usr/nec ;then
9073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9074 soname_spec='$libname${shared_ext}.$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9080 version_type=freebsd-elf
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 hardcode_into_libs=yes
9087 if test "$with_gnu_ld" = yes; then
9088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9089 shlibpath_overrides_runpath=no
9091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9092 shlibpath_overrides_runpath=yes
9095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9099 sys_lib_dlsearch_path_spec='/usr/lib'
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
9113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9114 echo "${ECHO_T}$dynamic_linker" >&6; }
9115 test "$dynamic_linker" = no && can_build_shared=no
9117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9118 if test "$GCC" = yes; then
9119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9122 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9125 if test -n "$hardcode_libdir_flag_spec" || \
9126 test -n "$runpath_var" || \
9127 test "X$hardcode_automatic" = "Xyes" ; then
9129 # We can hardcode non-existant directories.
9130 if test "$hardcode_direct" != no &&
9131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9132 # have to relink, otherwise we might link with an installed library
9133 # when we should be linking with a yet-to-be-installed one
9134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9135 test "$hardcode_minus_L" != no; then
9136 # Linking always hardcodes the temporary library directory.
9137 hardcode_action=relink
9139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9140 hardcode_action=immediate
9143 # We cannot hardcode anything, or else we can only hardcode existing
9145 hardcode_action=unsupported
9147 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9148 echo "${ECHO_T}$hardcode_action" >&6; }
9150 if test "$hardcode_action" = relink; then
9151 # Fast installation is not supported
9152 enable_fast_install=no
9153 elif test "$shlibpath_overrides_runpath" = yes ||
9154 test "$enable_shared" = no; then
9155 # Fast installation is not necessary
9156 enable_fast_install=needless
9161 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9162 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9163 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9166 { echo "$as_me:$LINENO: result: yes" >&5
9167 echo "${ECHO_T}yes" >&6; }
9169 # FIXME - insert some real tests, host_os isn't really good enough
9172 if test -n "$STRIP" ; then
9173 striplib="$STRIP -x"
9174 { echo "$as_me:$LINENO: result: yes" >&5
9175 echo "${ECHO_T}yes" >&6; }
9177 { echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6; }
9182 { echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6; }
9188 if test "x$enable_dlopen" != xyes; then
9189 enable_dlopen=unknown
9190 enable_dlopen_self=unknown
9191 enable_dlopen_self_static=unknown
9198 lt_cv_dlopen="load_add_on"
9200 lt_cv_dlopen_self=yes
9204 lt_cv_dlopen="LoadLibrary"
9209 lt_cv_dlopen="dlopen"
9214 # if libdl is installed we need to link against it
9215 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 ac_check_lib_save_LIBS=$LIBS
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext &&
9261 $as_test_x conftest$ac_exeext; then
9262 ac_cv_lib_dl_dlopen=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_cv_lib_dl_dlopen=no
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9276 if test $ac_cv_lib_dl_dlopen = yes; then
9277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9282 lt_cv_dlopen_self=yes
9289 { echo "$as_me:$LINENO: checking for shl_load" >&5
9290 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9291 if test "${ac_cv_func_shl_load+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9302 #define shl_load innocuous_shl_load
9304 /* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char shl_load (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9310 # include <limits.h>
9312 # include <assert.h>
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9324 /* The GNU C library defines this for functions which it implements
9325 to always fail with ENOSYS. Some functions are actually named
9326 something starting with __ and the normal name is an alias. */
9327 #if defined __stub_shl_load || defined __stub___shl_load
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_link") 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest$ac_exeext &&
9356 $as_test_x conftest$ac_exeext; then
9357 ac_cv_func_shl_load=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 ac_cv_func_shl_load=no
9365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9366 conftest$ac_exeext conftest.$ac_ext
9368 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9369 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9370 if test $ac_cv_func_shl_load = yes; then
9371 lt_cv_dlopen="shl_load"
9373 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9374 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9375 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 ac_check_lib_save_LIBS=$LIBS
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9387 /* Override any GCC internal prototype to avoid an error.
9388 Use char because int might match the return type of a GCC
9389 builtin and then its argument prototype would still apply. */
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (ac_try="$ac_link"
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_link") 2>conftest.er1
9411 grep -v '^ *+' conftest.er1 >conftest.err
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest$ac_exeext &&
9419 $as_test_x conftest$ac_exeext; then
9420 ac_cv_lib_dld_shl_load=yes
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_cv_lib_dld_shl_load=no
9428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9429 conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9432 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9433 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9434 if test $ac_cv_lib_dld_shl_load = yes; then
9435 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9437 { echo "$as_me:$LINENO: checking for dlopen" >&5
9438 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9439 if test "${ac_cv_func_dlopen+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 cat >conftest.$ac_ext <<_ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450 #define dlopen innocuous_dlopen
9452 /* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char dlopen (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
9458 # include <limits.h>
9460 # include <assert.h>
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined __stub_dlopen || defined __stub___dlopen
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>conftest.er1
9496 grep -v '^ *+' conftest.er1 >conftest.err
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest$ac_exeext &&
9504 $as_test_x conftest$ac_exeext; then
9505 ac_cv_func_dlopen=yes
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_cv_func_dlopen=no
9513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9514 conftest$ac_exeext conftest.$ac_ext
9516 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9517 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9518 if test $ac_cv_func_dlopen = yes; then
9519 lt_cv_dlopen="dlopen"
9521 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9522 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9523 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_check_lib_save_LIBS=$LIBS
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest$ac_exeext &&
9567 $as_test_x conftest$ac_exeext; then
9568 ac_cv_lib_dl_dlopen=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_cv_lib_dl_dlopen=no
9576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9577 conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9580 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9581 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9582 if test $ac_cv_lib_dl_dlopen = yes; then
9583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9585 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9586 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 ac_check_lib_save_LIBS=$LIBS
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest$ac_exeext &&
9631 $as_test_x conftest$ac_exeext; then
9632 ac_cv_lib_svld_dlopen=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ac_cv_lib_svld_dlopen=no
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9645 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9646 if test $ac_cv_lib_svld_dlopen = yes; then
9647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9649 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9650 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9651 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 ac_check_lib_save_LIBS=$LIBS
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (ac_try="$ac_link"
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_link") 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } && {
9692 test -z "$ac_c_werror_flag" ||
9693 test ! -s conftest.err
9694 } && test -s conftest$ac_exeext &&
9695 $as_test_x conftest$ac_exeext; then
9696 ac_cv_lib_dld_dld_link=yes
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_lib_dld_dld_link=no
9704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705 conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9710 if test $ac_cv_lib_dld_dld_link = yes; then
9711 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9732 if test "x$lt_cv_dlopen" != xno; then
9738 case $lt_cv_dlopen in
9740 save_CPPFLAGS="$CPPFLAGS"
9741 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9743 save_LDFLAGS="$LDFLAGS"
9744 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9747 LIBS="$lt_cv_dlopen_libs $LIBS"
9749 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9751 if test "${lt_cv_dlopen_self+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 if test "$cross_compiling" = yes; then :
9755 lt_cv_dlopen_self=cross
9757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9758 lt_status=$lt_dlunknown
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9760 "configure"
9761 #include "confdefs.h"
9770 # define LT_DLGLOBAL RTLD_GLOBAL
9773 # define LT_DLGLOBAL DL_GLOBAL
9775 # define LT_DLGLOBAL 0
9779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9780 find out it does not work in some platform. */
9781 #ifndef LT_DLLAZY_OR_NOW
9783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9786 # define LT_DLLAZY_OR_NOW DL_LAZY
9789 # define LT_DLLAZY_OR_NOW RTLD_NOW
9792 # define LT_DLLAZY_OR_NOW DL_NOW
9794 # define LT_DLLAZY_OR_NOW 0
9802 extern "C" void exit (int);
9805 void fnord() { int i=42;}
9808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9809 int status = $lt_dlunknown;
9813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9815 /* dlclose (self); */
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9828 (./conftest; exit; ) >&5 2>/dev/null
9831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9833 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9836 # compilation failed
9837 lt_cv_dlopen_self=no
9844 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9845 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9847 if test "x$lt_cv_dlopen_self" = xyes; then
9848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9849 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9850 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9851 if test "${lt_cv_dlopen_self_static+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 if test "$cross_compiling" = yes; then :
9855 lt_cv_dlopen_self_static=cross
9857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9858 lt_status=$lt_dlunknown
9859 cat > conftest.$ac_ext <<EOF
9860 #line 9860 "configure"
9861 #include "confdefs.h"
9870 # define LT_DLGLOBAL RTLD_GLOBAL
9873 # define LT_DLGLOBAL DL_GLOBAL
9875 # define LT_DLGLOBAL 0
9879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9880 find out it does not work in some platform. */
9881 #ifndef LT_DLLAZY_OR_NOW
9883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9886 # define LT_DLLAZY_OR_NOW DL_LAZY
9889 # define LT_DLLAZY_OR_NOW RTLD_NOW
9892 # define LT_DLLAZY_OR_NOW DL_NOW
9894 # define LT_DLLAZY_OR_NOW 0
9902 extern "C" void exit (int);
9905 void fnord() { int i=42;}
9908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9909 int status = $lt_dlunknown;
9913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9915 /* dlclose (self); */
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9928 (./conftest; exit; ) >&5 2>/dev/null
9931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9936 # compilation failed
9937 lt_cv_dlopen_self_static=no
9944 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9948 CPPFLAGS="$save_CPPFLAGS"
9949 LDFLAGS="$save_LDFLAGS"
9954 case $lt_cv_dlopen_self in
9955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9956 *) enable_dlopen_self=unknown ;;
9959 case $lt_cv_dlopen_self_static in
9960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9961 *) enable_dlopen_self_static=unknown ;;
9966 # Report which library types will actually be built
9967 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9969 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9970 echo "${ECHO_T}$can_build_shared" >&6; }
9972 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9974 test "$can_build_shared" = "no" && enable_shared=no
9976 # On AIX, shared libraries and static libraries use the same namespace, and
9977 # are all built from PIC.
9980 test "$enable_shared" = yes && enable_static=no
9981 if test -n "$RANLIB"; then
9982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9983 postinstall_cmds='$RANLIB $lib'
9988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9989 test "$enable_shared" = yes && enable_static=no
9993 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9994 echo "${ECHO_T}$enable_shared" >&6; }
9996 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9997 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9998 # Make sure either enable_shared or enable_static is yes.
9999 test "$enable_shared" = yes || enable_static=yes
10000 { echo "$as_me:$LINENO: result: $enable_static" >&5
10001 echo "${ECHO_T}$enable_static" >&6; }
10003 # The else clause should only fire when bootstrapping the
10004 # libtool distribution, otherwise you forgot to ship ltmain.sh
10005 # with your package, and you will get complaints that there are
10006 # no rules to generate ltmain.sh.
10007 if test -f "$ltmain"; then
10008 # See if we are running on zsh, and set the options which allow our commands through
10009 # without removal of \ escapes.
10010 if test -n "${ZSH_VERSION+set}" ; then
10011 setopt NO_GLOB_SUBST
10013 # Now quote all the things that may contain metacharacters while being
10014 # careful not to overquote the AC_SUBSTed values. We take copies of the
10015 # variables and quote the copies for generation of the libtool script.
10016 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10018 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10019 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10020 deplibs_check_method reload_flag reload_cmds need_locks \
10021 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10022 lt_cv_sys_global_symbol_to_c_name_address \
10023 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10024 old_postinstall_cmds old_postuninstall_cmds \
10028 lt_prog_compiler_wl \
10029 lt_prog_compiler_pic \
10030 lt_prog_compiler_static \
10031 lt_prog_compiler_no_builtin_flag \
10032 export_dynamic_flag_spec \
10033 thread_safe_flag_spec \
10034 whole_archive_flag_spec \
10035 enable_shared_with_static_runtimes \
10037 old_archive_from_new_cmds \
10042 compiler_lib_search_path \
10044 archive_expsym_cmds \
10046 postuninstall_cmds \
10047 old_archive_from_expsyms_cmds \
10048 allow_undefined_flag \
10049 no_undefined_flag \
10050 export_symbols_cmds \
10051 hardcode_libdir_flag_spec \
10052 hardcode_libdir_flag_spec_ld \
10053 hardcode_libdir_separator \
10054 hardcode_automatic \
10056 module_expsym_cmds \
10057 lt_cv_prog_compiler_c_o \
10059 include_expsyms; do
10062 old_archive_cmds | \
10063 old_archive_from_new_cmds | \
10065 archive_expsym_cmds | \
10067 module_expsym_cmds | \
10068 old_archive_from_expsyms_cmds | \
10069 export_symbols_cmds | \
10070 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10071 postinstall_cmds | postuninstall_cmds | \
10072 old_postinstall_cmds | old_postuninstall_cmds | \
10073 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10074 # Double-quote double-evaled strings.
10075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10084 *'\$0 --fallback-echo"')
10085 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10089 cfgfile="${ofile}T"
10090 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10092 { echo "$as_me:$LINENO: creating $ofile" >&5
10093 echo "$as_me: creating $ofile" >&6;}
10095 cat <<__EOF__ >> "$cfgfile"
10098 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10099 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10100 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10102 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10103 # Free Software Foundation, Inc.
10105 # This file is part of GNU Libtool:
10106 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10108 # This program is free software; you can redistribute it and/or modify
10109 # it under the terms of the GNU General Public License as published by
10110 # the Free Software Foundation; either version 2 of the License, or
10111 # (at your option) any later version.
10113 # This program is distributed in the hope that it will be useful, but
10114 # WITHOUT ANY WARRANTY; without even the implied warranty of
10115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10116 # General Public License for more details.
10118 # You should have received a copy of the GNU General Public License
10119 # along with this program; if not, write to the Free Software
10120 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10122 # As a special exception to the GNU General Public License, if you
10123 # distribute this file as part of a program that contains a
10124 # configuration script generated by Autoconf, you may include it under
10125 # the same distribution terms that you use for the rest of that program.
10127 # A sed program that does not truncate output.
10130 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10131 Xsed="$SED -e 1s/^X//"
10133 # The HP-UX ksh and POSIX shell print the target directory to stdout
10134 # if CDPATH is set.
10135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10137 # The names of the tagged configurations supported by this script.
10140 # ### BEGIN LIBTOOL CONFIG
10142 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10144 # Shell to use when invoking shell scripts.
10147 # Whether or not to build shared libraries.
10148 build_libtool_libs=$enable_shared
10150 # Whether or not to build static libraries.
10151 build_old_libs=$enable_static
10153 # Whether or not to add -lc for building shared libraries.
10154 build_libtool_need_lc=$archive_cmds_need_lc
10156 # Whether or not to disallow shared libs when runtime libs are static
10157 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10159 # Whether or not to optimize for fast installation.
10160 fast_install=$enable_fast_install
10163 host_alias=$host_alias
10167 # The build system.
10168 build_alias=$build_alias
10172 # An echo program that does not interpret backslashes.
10177 AR_FLAGS=$lt_AR_FLAGS
10182 # LTCC compiler flags.
10183 LTCFLAGS=$lt_LTCFLAGS
10185 # A language-specific compiler.
10188 # Is the compiler the GNU C compiler?
10194 # The linker used to build libraries.
10197 # Whether we need hard or soft links.
10200 # A BSD-compatible nm program.
10203 # A symbol stripping program
10206 # Used to examine libraries when file_magic_cmd begins "file"
10207 MAGIC_CMD=$MAGIC_CMD
10209 # Used on cygwin: DLL creation program.
10212 # Used on cygwin: object dumper.
10215 # Used on cygwin: assembler.
10218 # The name of the directory that contains temporary libtool files.
10221 # How to create reloadable object files.
10222 reload_flag=$lt_reload_flag
10223 reload_cmds=$lt_reload_cmds
10225 # How to pass a linker flag through the compiler.
10226 wl=$lt_lt_prog_compiler_wl
10228 # Object file suffix (normally "o").
10229 objext="$ac_objext"
10231 # Old archive suffix (normally "a").
10234 # Shared library suffix (normally ".so").
10235 shrext_cmds='$shrext_cmds'
10237 # Executable file suffix (normally "").
10240 # Additional compiler flags for building library objects.
10241 pic_flag=$lt_lt_prog_compiler_pic
10244 # What is the maximum length of a command?
10245 max_cmd_len=$lt_cv_sys_max_cmd_len
10247 # Does compiler simultaneously support -c and -o options?
10248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10250 # Must we lock files when doing compilation?
10251 need_locks=$lt_need_locks
10253 # Do we need the lib prefix for modules?
10254 need_lib_prefix=$need_lib_prefix
10256 # Do we need a version for libraries?
10257 need_version=$need_version
10259 # Whether dlopen is supported.
10260 dlopen_support=$enable_dlopen
10262 # Whether dlopen of programs is supported.
10263 dlopen_self=$enable_dlopen_self
10265 # Whether dlopen of statically linked programs is supported.
10266 dlopen_self_static=$enable_dlopen_self_static
10268 # Compiler flag to prevent dynamic linking.
10269 link_static_flag=$lt_lt_prog_compiler_static
10271 # Compiler flag to turn off builtin functions.
10272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10274 # Compiler flag to allow reflexive dlopens.
10275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10277 # Compiler flag to generate shared objects directly from archives.
10278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10280 # Compiler flag to generate thread-safe objects.
10281 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10283 # Library versioning type.
10284 version_type=$version_type
10286 # Format of library name prefix.
10287 libname_spec=$lt_libname_spec
10289 # List of archive names. First name is the real one, the rest are links.
10290 # The last name is the one that the linker finds with -lNAME.
10291 library_names_spec=$lt_library_names_spec
10293 # The coded name of the library, if different from the real name.
10294 soname_spec=$lt_soname_spec
10296 # Commands used to build and install an old-style archive.
10298 old_archive_cmds=$lt_old_archive_cmds
10299 old_postinstall_cmds=$lt_old_postinstall_cmds
10300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10302 # Create an old-style archive from a shared archive.
10303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10305 # Create a temporary old-style archive to link instead of a shared archive.
10306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10308 # Commands used to build and install a shared archive.
10309 archive_cmds=$lt_archive_cmds
10310 archive_expsym_cmds=$lt_archive_expsym_cmds
10311 postinstall_cmds=$lt_postinstall_cmds
10312 postuninstall_cmds=$lt_postuninstall_cmds
10314 # Commands used to build a loadable module (assumed same as above if empty)
10315 module_cmds=$lt_module_cmds
10316 module_expsym_cmds=$lt_module_expsym_cmds
10318 # Commands to strip libraries.
10319 old_striplib=$lt_old_striplib
10320 striplib=$lt_striplib
10322 # Dependencies to place before the objects being linked to create a
10324 predep_objects=$lt_predep_objects
10326 # Dependencies to place after the objects being linked to create a
10328 postdep_objects=$lt_postdep_objects
10330 # Dependencies to place before the objects being linked to create a
10332 predeps=$lt_predeps
10334 # Dependencies to place after the objects being linked to create a
10336 postdeps=$lt_postdeps
10338 # The library search path used internally by the compiler when linking
10339 # a shared library.
10340 compiler_lib_search_path=$lt_compiler_lib_search_path
10342 # Method to check whether dependent libraries are shared objects.
10343 deplibs_check_method=$lt_deplibs_check_method
10345 # Command to use when deplibs_check_method == file_magic.
10346 file_magic_cmd=$lt_file_magic_cmd
10348 # Flag that allows shared libraries with undefined symbols to be built.
10349 allow_undefined_flag=$lt_allow_undefined_flag
10351 # Flag that forces no undefined symbols.
10352 no_undefined_flag=$lt_no_undefined_flag
10354 # Commands used to finish a libtool library installation in a directory.
10355 finish_cmds=$lt_finish_cmds
10357 # Same as above, but a single script fragment to be evaled but not shown.
10358 finish_eval=$lt_finish_eval
10360 # Take the output of nm and produce a listing of raw symbols and C names.
10361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10363 # Transform the output of nm in a proper C declaration
10364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10366 # Transform the output of nm in a C name address pair
10367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10369 # This is the shared library runtime path variable.
10370 runpath_var=$runpath_var
10372 # This is the shared library path variable.
10373 shlibpath_var=$shlibpath_var
10375 # Is shlibpath searched before the hard-coded library search path?
10376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10378 # How to hardcode a shared library path into an executable.
10379 hardcode_action=$hardcode_action
10381 # Whether we should hardcode library paths into libraries.
10382 hardcode_into_libs=$hardcode_into_libs
10384 # Flag to hardcode \$libdir into a binary during linking.
10385 # This must work even if \$libdir does not exist.
10386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10388 # If ld is used when linking, flag to hardcode \$libdir into
10389 # a binary during linking. This must work even if \$libdir does
10391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10393 # Whether we need a single -rpath flag with a separated argument.
10394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10397 # resulting binary.
10398 hardcode_direct=$hardcode_direct
10400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10401 # resulting binary.
10402 hardcode_minus_L=$hardcode_minus_L
10404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10405 # the resulting binary.
10406 hardcode_shlibpath_var=$hardcode_shlibpath_var
10408 # Set to yes if building a shared library automatically hardcodes DIR into the library
10409 # and all subsequent libraries and executables linked against it.
10410 hardcode_automatic=$hardcode_automatic
10412 # Variables whose values should be saved in libtool wrapper scripts and
10413 # restored at relink time.
10414 variables_saved_for_relink="$variables_saved_for_relink"
10416 # Whether libtool must link a program against all its dependency libraries.
10417 link_all_deplibs=$link_all_deplibs
10419 # Compile-time system search path for libraries
10420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10422 # Run-time system search path for libraries
10423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10425 # Fix the shell variable \$srcfile for the compiler.
10426 fix_srcfile_path="$fix_srcfile_path"
10428 # Set to yes if exported symbols are required.
10429 always_export_symbols=$always_export_symbols
10431 # The commands to list exported symbols.
10432 export_symbols_cmds=$lt_export_symbols_cmds
10434 # The commands to extract the exported symbol list from a shared archive.
10435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10437 # Symbols that should not be listed in the preloaded symbols.
10438 exclude_expsyms=$lt_exclude_expsyms
10440 # Symbols that must always be exported.
10441 include_expsyms=$lt_include_expsyms
10443 # ### END LIBTOOL CONFIG
10450 cat <<\EOF >> "$cfgfile"
10452 # AIX sometimes has problems with the GCC collect2 program. For some
10453 # reason, if we set the COLLECT_NAMES environment variable, the problems
10454 # vanish in a puff of smoke.
10455 if test "X${COLLECT_NAMES+set}" != Xset; then
10457 export COLLECT_NAMES
10463 # We use sed instead of cat because bash on DJGPP gets confused if
10464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10465 # text mode, it properly converts lines to CR/LF. This bash problem
10466 # is reportedly fixed, but why not run on old versions too?
10467 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10469 mv -f "$cfgfile" "$ofile" || \
10470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10474 # If there is no Makefile yet, we rely on a make rule to execute
10475 # `config.status --recheck' to rerun these tests and create the
10476 # libtool script then.
10477 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10478 if test -f "$ltmain_in"; then
10479 test -f Makefile && make "$ltmain"
10485 ac_cpp='$CPP $CPPFLAGS'
10486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10493 # Check whether --with-tags was given.
10494 if test "${with_tags+set}" = set; then
10495 withval=$with_tags; tagnames="$withval"
10499 if test -f "$ltmain" && test -n "$tagnames"; then
10500 if test ! -f "${ofile}"; then
10501 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10502 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10505 if test -z "$LTCC"; then
10506 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10507 if test -z "$LTCC"; then
10508 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10509 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10512 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10515 if test -z "$LTCFLAGS"; then
10516 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10519 # Extract list of available tagged configurations in $ofile.
10520 # Note that this assumes the entire list is on one line.
10521 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10524 for tagname in $tagnames; do
10526 # Check whether tagname contains only valid characters
10527 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10529 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10530 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10531 { (exit 1); exit 1; }; }
10535 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10537 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10538 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10539 { (exit 1); exit 1; }; }
10542 # Update the list of available tags.
10543 if test -n "$tagname"; then
10544 echo appending configuration tag \"$tagname\" to $ofile
10548 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10549 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10550 (test "X$CXX" != "Xg++"))) ; then
10552 ac_cpp='$CXXCPP $CPPFLAGS'
10553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10560 archive_cmds_need_lc_CXX=no
10561 allow_undefined_flag_CXX=
10562 always_export_symbols_CXX=no
10563 archive_expsym_cmds_CXX=
10564 export_dynamic_flag_spec_CXX=
10565 hardcode_direct_CXX=no
10566 hardcode_libdir_flag_spec_CXX=
10567 hardcode_libdir_flag_spec_ld_CXX=
10568 hardcode_libdir_separator_CXX=
10569 hardcode_minus_L_CXX=no
10570 hardcode_shlibpath_var_CXX=unsupported
10571 hardcode_automatic_CXX=no
10573 module_expsym_cmds_CXX=
10574 link_all_deplibs_CXX=unknown
10575 old_archive_cmds_CXX=$old_archive_cmds
10576 no_undefined_flag_CXX=
10577 whole_archive_flag_spec_CXX=
10578 enable_shared_with_static_runtimes_CXX=no
10580 # Dependencies to place before and after the object being linked:
10581 predep_objects_CXX=
10582 postdep_objects_CXX=
10585 compiler_lib_search_path_CXX=
10587 # Source file extension for C++ test sources.
10590 # Object file extension for compiled C++ test sources.
10594 # Code to be used in simple compile tests
10595 lt_simple_compile_test_code="int some_variable = 0;\n"
10597 # Code to be used in simple link tests
10598 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10600 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10602 # If no C compiler was specified, use CC.
10605 # If no C compiler flags were specified, use CFLAGS.
10606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10608 # Allow CC to be a program name with arguments.
10612 # save warnings/boilerplate of simple test code
10613 ac_outfile=conftest.$ac_objext
10614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10616 _lt_compiler_boilerplate=`cat conftest.err`
10619 ac_outfile=conftest.$ac_objext
10620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10622 _lt_linker_boilerplate=`cat conftest.err`
10626 # Allow CC to be a program name with arguments.
10631 lt_save_with_gnu_ld=$with_gnu_ld
10632 lt_save_path_LD=$lt_cv_path_LD
10633 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10634 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10636 $as_unset lt_cv_prog_gnu_ld
10638 if test -n "${lt_cv_path_LDCXX+set}"; then
10639 lt_cv_path_LD=$lt_cv_path_LDCXX
10641 $as_unset lt_cv_path_LD
10643 test -z "${LDCXX+set}" || LD=$LDCXX
10647 for cc_temp in $compiler""; do
10649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10655 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10658 # We don't want -fno-exception wen compiling C++ code, so set the
10659 # no_builtin_flag separately
10660 if test "$GXX" = yes; then
10661 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10663 lt_prog_compiler_no_builtin_flag_CXX=
10666 if test "$GXX" = yes; then
10667 # Set up default GNU C++ configuration
10670 # Check whether --with-gnu-ld was given.
10671 if test "${with_gnu_ld+set}" = set; then
10672 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10678 if test "$GCC" = yes; then
10679 # Check if gcc -print-prog-name=ld gives a path.
10680 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10681 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10684 # gcc leaves a trailing carriage return which upsets mingw
10685 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10687 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10690 # Accept absolute paths.
10692 re_direlt='/[^/][^/]*/\.\./'
10693 # Canonicalize the pathname of ld
10694 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10695 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10696 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10698 test -z "$LD" && LD="$ac_prog"
10701 # If it fails, then pretend we aren't using GCC.
10705 # If it is relative, then search for the first ld in PATH.
10706 with_gnu_ld=unknown
10709 elif test "$with_gnu_ld" = yes; then
10710 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10711 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10713 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10714 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10716 if test "${lt_cv_path_LD+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 if test -z "$LD"; then
10720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10721 for ac_dir in $PATH; do
10723 test -z "$ac_dir" && ac_dir=.
10724 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10725 lt_cv_path_LD="$ac_dir/$ac_prog"
10726 # Check to see if the program is GNU ld. I'd rather use --version,
10727 # but apparently some variants of GNU ld only accept -v.
10728 # Break only if it was the GNU/non-GNU ld that we prefer.
10729 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10730 *GNU* | *'with BFD'*)
10731 test "$with_gnu_ld" != no && break
10734 test "$with_gnu_ld" != yes && break
10741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10745 LD="$lt_cv_path_LD"
10746 if test -n "$LD"; then
10747 { echo "$as_me:$LINENO: result: $LD" >&5
10748 echo "${ECHO_T}$LD" >&6; }
10750 { echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6; }
10753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10755 { (exit 1); exit 1; }; }
10756 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10762 case `$LD -v 2>&1 </dev/null` in
10763 *GNU* | *'with BFD'*)
10764 lt_cv_prog_gnu_ld=yes
10767 lt_cv_prog_gnu_ld=no
10771 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10772 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10773 with_gnu_ld=$lt_cv_prog_gnu_ld
10777 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10778 # archiving commands below assume that GNU ld is being used.
10779 if test "$with_gnu_ld" = yes; then
10780 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10781 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'
10783 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10786 # If archive_cmds runs LD, not CC, wlarc should be empty
10787 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10788 # investigate it a little bit more. (MM)
10791 # ancient GNU ld didn't support --whole-archive et. al.
10792 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10793 grep 'no-whole-archive' > /dev/null; then
10794 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10796 whole_archive_flag_spec_CXX=
10802 # A generic and very simple default shared library creation
10803 # command for GNU C++ for the case where it uses the native
10804 # linker, instead of GNU ld. If possible, this setting should
10805 # overridden to take advantage of the native linker features on
10806 # the platform it is being used on.
10807 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10810 # Commands to make compiler produce verbose output that lists
10811 # what "hidden" libraries, object files and flags are used when
10812 # linking a shared library.
10813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10821 # PORTME: fill in a description of your system's C++ link characteristics
10822 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10823 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10827 # FIXME: insert proper C++ library support
10831 if test "$host_cpu" = ia64; then
10832 # On IA64, the linker does run time linking by default, so we don't
10833 # have to do anything special.
10834 aix_use_runtimelinking=no
10835 exp_sym_flag='-Bexport'
10838 aix_use_runtimelinking=no
10840 # Test if we are trying to use run time linking or normal
10841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10842 # need to do runtime linking.
10843 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10844 for ld_flag in $LDFLAGS; do
10847 aix_use_runtimelinking=yes
10855 exp_sym_flag='-bexport'
10856 no_entry_flag='-bnoentry'
10859 # When large executables or shared objects are built, AIX ld can
10860 # have problems creating the table of contents. If linking a library
10861 # or program results in "error TOC overflow" add -mminimal-toc to
10862 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10863 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10865 archive_cmds_CXX=''
10866 hardcode_direct_CXX=yes
10867 hardcode_libdir_separator_CXX=':'
10868 link_all_deplibs_CXX=yes
10870 if test "$GXX" = yes; then
10871 case $host_os in aix4.[012]|aix4.[012].*)
10872 # We only want to do this on AIX 4.2 and lower, the check
10873 # below for broken collect2 doesn't work under 4.3+
10874 collect2name=`${CC} -print-prog-name=collect2`
10875 if test -f "$collect2name" && \
10876 strings "$collect2name" | grep resolve_lib_name >/dev/null
10878 # We have reworked collect2
10879 hardcode_direct_CXX=yes
10881 # We have old collect2
10882 hardcode_direct_CXX=unsupported
10883 # It fails to find uninstalled libraries when the uninstalled
10884 # path is not listed in the libpath. Setting hardcode_minus_L
10885 # to unsupported forces relinking
10886 hardcode_minus_L_CXX=yes
10887 hardcode_libdir_flag_spec_CXX='-L$libdir'
10888 hardcode_libdir_separator_CXX=
10892 shared_flag='-shared'
10893 if test "$aix_use_runtimelinking" = yes; then
10894 shared_flag="$shared_flag "'${wl}-G'
10898 if test "$host_cpu" = ia64; then
10899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10900 # chokes on -Wl,-G. The following line is correct:
10903 if test "$aix_use_runtimelinking" = yes; then
10904 shared_flag='${wl}-G'
10906 shared_flag='${wl}-bM:SRE'
10911 # It seems that -bexpall does not export symbols beginning with
10912 # underscore (_), so it is better to generate a list of symbols to export.
10913 always_export_symbols_CXX=yes
10914 if test "$aix_use_runtimelinking" = yes; then
10915 # Warning - without using the other runtime loading flags (-brtl),
10916 # -berok will link without error, but may produce a broken library.
10917 allow_undefined_flag_CXX='-berok'
10918 # Determine the default libpath from the value encoded in an empty executable.
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_link") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_cxx_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext &&
10951 $as_test_x conftest$ac_exeext; then
10953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10955 # Check for a 64-bit object if we didn't find anything.
10956 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; }
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10966 conftest$ac_exeext conftest.$ac_ext
10967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10969 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10971 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"
10973 if test "$host_cpu" = ia64; then
10974 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10975 allow_undefined_flag_CXX="-z nodefs"
10976 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"
10978 # Determine the default libpath from the value encoded in an empty executable.
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_cxx_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext &&
11011 $as_test_x conftest$ac_exeext; then
11013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11015 # Check for a 64-bit object if we didn't find anything.
11016 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; }
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11026 conftest$ac_exeext conftest.$ac_ext
11027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11029 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11030 # Warning - without using the other run time loading flags,
11031 # -berok will link without error, but may produce a broken library.
11032 no_undefined_flag_CXX=' ${wl}-bernotok'
11033 allow_undefined_flag_CXX=' ${wl}-berok'
11034 # Exported symbols can be pulled into shared objects from archives
11035 whole_archive_flag_spec_CXX='$convenience'
11036 archive_cmds_need_lc_CXX=yes
11037 # This is similar to how AIX traditionally builds its shared libraries.
11038 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'
11044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11045 allow_undefined_flag_CXX=unsupported
11046 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11047 # support --undefined. This deserves some investigation. FIXME
11048 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055 case $cc_basename in
11057 # FIXME: insert proper C++ library support
11063 cygwin* | mingw* | pw32*)
11064 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11065 # as there is no search path for DLLs.
11066 hardcode_libdir_flag_spec_CXX='-L$libdir'
11067 allow_undefined_flag_CXX=unsupported
11068 always_export_symbols_CXX=no
11069 enable_shared_with_static_runtimes_CXX=yes
11071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11072 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'
11073 # If the export-symbols file already is a .def file (1st line
11074 # is EXPORTS), use it as is; otherwise, prepend...
11075 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11076 cp $export_symbols $output_objdir/$soname.def;
11078 echo EXPORTS > $output_objdir/$soname.def;
11079 cat $export_symbols >> $output_objdir/$soname.def;
11081 $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'
11086 darwin* | rhapsody*)
11088 rhapsody* | darwin1.[012])
11089 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11093 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11095 case ${MACOSX_DEPLOYMENT_TARGET} in
11097 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11100 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11106 archive_cmds_need_lc_CXX=no
11107 hardcode_direct_CXX=no
11108 hardcode_automatic_CXX=yes
11109 hardcode_shlibpath_var_CXX=unsupported
11110 whole_archive_flag_spec_CXX=''
11111 link_all_deplibs_CXX=yes
11113 if test "$GXX" = yes ; then
11114 lt_int_apple_cc_single_mod=no
11115 output_verbose_link_cmd='echo'
11116 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11117 lt_int_apple_cc_single_mod=yes
11119 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11120 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11122 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'
11124 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11126 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11127 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}'
11129 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}'
11131 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}'
11133 case $cc_basename in
11135 output_verbose_link_cmd='echo'
11136 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'
11137 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11139 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}'
11140 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}'
11150 case $cc_basename in
11152 # FIXME: insert proper C++ library support
11156 # Green Hills C++ Compiler
11157 # FIXME: insert proper C++ library support
11161 # FIXME: insert proper C++ library support
11167 # C++ shared libraries reported to be fairly broken before switch to ELF
11171 archive_cmds_need_lc_CXX=no
11173 freebsd* | dragonfly*)
11174 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11181 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11182 hardcode_libdir_separator_CXX=:
11183 export_dynamic_flag_spec_CXX='${wl}-E'
11184 hardcode_direct_CXX=yes
11185 hardcode_minus_L_CXX=yes # Not in the search PATH,
11186 # but as the default
11187 # location of the library.
11189 case $cc_basename in
11191 # FIXME: insert proper C++ library support
11195 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'
11196 # Commands to make compiler produce verbose output that lists
11197 # what "hidden" libraries, object files and flags are used when
11198 # linking a shared library.
11200 # There doesn't appear to be a way to prevent this compiler from
11201 # explicitly linking system object files so we need to strip them
11202 # from the output so that they don't get included in the library
11204 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'
11207 if test "$GXX" = yes; then
11208 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'
11210 # FIXME: insert proper C++ library support
11217 if test $with_gnu_ld = no; then
11218 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11219 hardcode_libdir_separator_CXX=:
11223 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11226 export_dynamic_flag_spec_CXX='${wl}-E'
11232 hardcode_direct_CXX=no
11233 hardcode_shlibpath_var_CXX=no
11236 hardcode_direct_CXX=yes
11237 hardcode_minus_L_CXX=yes # Not in the search PATH,
11238 # but as the default
11239 # location of the library.
11243 case $cc_basename in
11245 # FIXME: insert proper C++ library support
11251 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11254 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11257 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11264 # There doesn't appear to be a way to prevent this compiler from
11265 # explicitly linking system object files so we need to strip them
11266 # from the output so that they don't get included in the library
11268 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'
11271 if test "$GXX" = yes; then
11272 if test $with_gnu_ld = no; then
11275 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11278 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11281 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'
11286 # FIXME: insert proper C++ library support
11293 hardcode_direct_CXX=no
11294 hardcode_shlibpath_var_CXX=no
11295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11296 export_dynamic_flag_spec_CXX='${wl}-E'
11297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11298 # Instead, shared libraries are loaded at an image base (0x10000000 by
11299 # default) and relocated if they conflict, which is a slow very memory
11300 # consuming and fragmenting process. To avoid this, we pick a random,
11301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11302 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11303 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'
11304 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'
11307 case $cc_basename in
11310 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'
11312 # Archives containing C++ object files must be created using
11313 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11314 # necessary to make sure instantiated templates are included
11316 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11319 if test "$GXX" = yes; then
11320 if test "$with_gnu_ld" = no; then
11321 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'
11323 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'
11326 link_all_deplibs_CXX=yes
11329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11330 hardcode_libdir_separator_CXX=:
11332 linux* | k*bsd*-gnu)
11333 case $cc_basename in
11335 # Kuck and Associates, Inc. (KAI) C++ Compiler
11337 # KCC will only create a shared library if the output file
11338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11339 # to its proper name (with version) after linking.
11340 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'
11341 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'
11342 # Commands to make compiler produce verbose output that lists
11343 # what "hidden" libraries, object files and flags are used when
11344 # linking a shared library.
11346 # There doesn't appear to be a way to prevent this compiler from
11347 # explicitly linking system object files so we need to strip them
11348 # from the output so that they don't get included in the library
11350 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'
11352 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11355 # Archives containing C++ object files must be created using
11356 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11357 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11362 # version 8.0 and above of icpc choke on multiply defined symbols
11363 # if we add $predep_objects and $postdep_objects, however 7.1 and
11364 # earlier do not add the objects themselves.
11365 case `$CC -V 2>&1` in
11367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11368 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'
11370 *) # Version 8.0 or newer
11373 ia64*) tmp_idyn=' -i_dynamic';;
11375 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11376 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'
11379 archive_cmds_need_lc_CXX=no
11380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11382 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11385 # Portland Group C++ compiler
11386 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11387 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'
11389 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11391 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'
11395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396 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'
11398 runpath_var=LD_RUN_PATH
11399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11400 hardcode_libdir_separator_CXX=:
11402 # Commands to make compiler produce verbose output that lists
11403 # what "hidden" libraries, object files and flags are used when
11404 # linking a shared library.
11406 # There doesn't appear to be a way to prevent this compiler from
11407 # explicitly linking system object files so we need to strip them
11408 # from the output so that they don't get included in the library
11410 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'
11415 # FIXME: insert proper C++ library support
11419 # FIXME: insert proper C++ library support
11423 case $cc_basename in
11425 # FIXME: insert proper C++ library support
11429 # FIXME: insert proper C++ library support
11434 netbsd* | netbsdelf*-gnu)
11435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11436 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11438 hardcode_libdir_flag_spec_CXX='-R$libdir'
11439 hardcode_direct_CXX=yes
11440 hardcode_shlibpath_var_CXX=no
11442 # Workaround some broken pre-1.5 toolchains
11443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11446 # C++ shared libraries are fairly broken
11450 hardcode_direct_CXX=yes
11451 hardcode_shlibpath_var_CXX=no
11452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11455 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11456 export_dynamic_flag_spec_CXX='${wl}-E'
11457 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11459 output_verbose_link_cmd='echo'
11462 case $cc_basename in
11464 # Kuck and Associates, Inc. (KAI) C++ Compiler
11466 # KCC will only create a shared library if the output file
11467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11468 # to its proper name (with version) after linking.
11469 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'
11471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11472 hardcode_libdir_separator_CXX=:
11474 # Archives containing C++ object files must be created using
11475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11476 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11480 # Rational C++ 2.4.1
11481 # FIXME: insert proper C++ library support
11485 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11486 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'
11488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11489 hardcode_libdir_separator_CXX=:
11491 # Commands to make compiler produce verbose output that lists
11492 # what "hidden" libraries, object files and flags are used when
11493 # linking a shared library.
11495 # There doesn't appear to be a way to prevent this compiler from
11496 # explicitly linking system object files so we need to strip them
11497 # from the output so that they don't get included in the library
11499 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'
11502 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11504 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'
11506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11507 hardcode_libdir_separator_CXX=:
11509 # Commands to make compiler produce verbose output that lists
11510 # what "hidden" libraries, object files and flags are used when
11511 # linking a shared library.
11512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11515 # FIXME: insert proper C++ library support
11522 case $cc_basename in
11524 # Kuck and Associates, Inc. (KAI) C++ Compiler
11526 # KCC will only create a shared library if the output file
11527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11528 # to its proper name (with version) after linking.
11529 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'
11531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11532 hardcode_libdir_separator_CXX=:
11534 # Archives containing C++ object files must be created using
11535 # the KAI C++ compiler.
11536 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11539 # Rational C++ 2.4.1
11540 # FIXME: insert proper C++ library support
11544 allow_undefined_flag_CXX=' -expect_unresolved \*'
11545 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'
11546 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11547 echo "-hidden">> $lib.exp~
11548 $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~
11551 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11552 hardcode_libdir_separator_CXX=:
11554 # Commands to make compiler produce verbose output that lists
11555 # what "hidden" libraries, object files and flags are used when
11556 # linking a shared library.
11558 # There doesn't appear to be a way to prevent this compiler from
11559 # explicitly linking system object files so we need to strip them
11560 # from the output so that they don't get included in the library
11562 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'
11565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11567 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'
11569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11570 hardcode_libdir_separator_CXX=:
11572 # Commands to make compiler produce verbose output that lists
11573 # what "hidden" libraries, object files and flags are used when
11574 # linking a shared library.
11575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11578 # FIXME: insert proper C++ library support
11585 # FIXME: insert proper C++ library support
11589 case $cc_basename in
11592 # FIXME: insert proper C++ library support
11597 # FIXME: insert proper C++ library support
11601 # FIXME: insert proper C++ library support
11607 case $cc_basename in
11609 # Sun C++ 4.2, 5.x and Centerline C++
11610 archive_cmds_need_lc_CXX=yes
11611 no_undefined_flag_CXX=' -zdefs'
11612 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11613 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11614 $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'
11616 hardcode_libdir_flag_spec_CXX='-R$libdir'
11617 hardcode_shlibpath_var_CXX=no
11619 solaris2.[0-5] | solaris2.[0-5].*) ;;
11621 # The C++ compiler is used as linker so we must use $wl
11622 # flag to pass the commands to the underlying system
11623 # linker. We must also pass each convience library through
11624 # to the system linker between allextract/defaultextract.
11625 # The C++ compiler will combine linker options so we
11626 # cannot just pass the convience library names through
11628 # Supported since Solaris 2.6 (maybe 2.5.1?)
11629 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'
11632 link_all_deplibs_CXX=yes
11634 output_verbose_link_cmd='echo'
11636 # Archives containing C++ object files must be created using
11637 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11638 # necessary to make sure instantiated templates are included
11640 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11643 # Green Hills C++ Compiler
11644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11646 # The C++ compiler must be used to create the archive.
11647 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11650 # GNU C++ compiler with Solaris linker
11651 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11653 if $CC --version | grep -v '^2\.7' > /dev/null; then
11654 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11655 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11656 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11663 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11665 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11666 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11667 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11669 # Commands to make compiler produce verbose output that lists
11670 # what "hidden" libraries, object files and flags are used when
11671 # linking a shared library.
11672 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11675 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11681 no_undefined_flag_CXX='${wl}-z,text'
11682 archive_cmds_need_lc_CXX=no
11683 hardcode_shlibpath_var_CXX=no
11684 runpath_var='LD_RUN_PATH'
11686 case $cc_basename in
11688 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11689 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11692 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11697 sysv5* | sco3.2v5* | sco5v6*)
11698 # Note: We can NOT use -z defs as we might desire, because we do not
11699 # link with -lc, and that would cause any symbols used from libc to
11700 # always be unresolved, which means just about no library would
11701 # ever link correctly. If we're not using GNU ld we use -z text
11702 # though, which does catch some bad symbols but isn't as heavy-handed
11704 # For security reasons, it is highly recommended that you always
11705 # use absolute paths for naming shared libraries, and exclude the
11706 # DT_RUNPATH tag from executables and libraries. But doing so
11707 # requires that you compile everything twice, which is a pain.
11708 # So that behaviour is only enabled if SCOABSPATH is set to a
11709 # non-empty value in the environment. Most likely only useful for
11710 # creating official distributions of packages.
11711 # This is a hack until libtool officially supports absolute path
11712 # names for shared libraries.
11713 no_undefined_flag_CXX='${wl}-z,text'
11714 allow_undefined_flag_CXX='${wl}-z,nodefs'
11715 archive_cmds_need_lc_CXX=no
11716 hardcode_shlibpath_var_CXX=no
11717 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11718 hardcode_libdir_separator_CXX=':'
11719 link_all_deplibs_CXX=yes
11720 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11721 runpath_var='LD_RUN_PATH'
11723 case $cc_basename in
11725 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11726 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11729 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11730 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11735 case $cc_basename in
11737 # NonStop-UX NCC 3.20
11738 # FIXME: insert proper C++ library support
11742 # FIXME: insert proper C++ library support
11748 # FIXME: insert proper C++ library support
11752 # FIXME: insert proper C++ library support
11756 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11757 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11758 test "$ld_shlibs_CXX" = no && can_build_shared=no
11764 cat > conftest.$ac_ext <<EOF
11768 Foo (void) { a = 0; }
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; then
11779 # Parse the compiler output and extract the necessary
11780 # objects, libraries and library flags.
11782 # Sentinel used to keep track of whether or not we are before
11783 # the conftest object file.
11784 pre_test_object_deps_done=no
11786 # The `*' in the case matches for architectures that use `case' in
11787 # $output_verbose_cmd can trigger glob expansion during the loop
11788 # eval without this substitution.
11789 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11791 for p in `eval $output_verbose_link_cmd`; do
11795 # Some compilers place space between "-{L,R}" and the path.
11796 # Remove the space.
11797 if test $p = "-L" \
11798 || test $p = "-R"; then
11805 if test "$pre_test_object_deps_done" = no; then
11808 # Internal compiler library paths should come after those
11809 # provided the user. The postdeps already come after the
11810 # user supplied libs so there is no need to process them.
11811 if test -z "$compiler_lib_search_path_CXX"; then
11812 compiler_lib_search_path_CXX="${prev}${p}"
11814 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11817 # The "-l" case would never come before the object being
11818 # linked, so don't bother handling this case.
11821 if test -z "$postdeps_CXX"; then
11822 postdeps_CXX="${prev}${p}"
11824 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11830 # This assumes that the test object file only shows up
11831 # once in the compiler output.
11832 if test "$p" = "conftest.$objext"; then
11833 pre_test_object_deps_done=yes
11837 if test "$pre_test_object_deps_done" = no; then
11838 if test -z "$predep_objects_CXX"; then
11839 predep_objects_CXX="$p"
11841 predep_objects_CXX="$predep_objects_CXX $p"
11844 if test -z "$postdep_objects_CXX"; then
11845 postdep_objects_CXX="$p"
11847 postdep_objects_CXX="$postdep_objects_CXX $p"
11852 *) ;; # Ignore the rest.
11860 echo "libtool.m4: error: problem compiling CXX test program"
11863 $rm -f confest.$objext
11865 # PORTME: override above test on systems where it is broken
11868 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11869 # hack all around it, let's just trust "g++" to DTRT.
11870 predep_objects_CXX=
11871 postdep_objects_CXX=
11876 case $cc_basename in
11878 # Adding this requires a known-good setup of shared libraries for
11879 # Sun compiler versions before 5.6, else PIC objects from an old
11880 # archive will be linked into the output, leading to subtle bugs.
11881 postdeps_CXX='-lCstd -lCrun'
11888 case " $postdeps_CXX " in
11889 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11892 lt_prog_compiler_wl_CXX=
11893 lt_prog_compiler_pic_CXX=
11894 lt_prog_compiler_static_CXX=
11896 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11897 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11899 # C++ specific cases for pic, static, wl, etc.
11900 if test "$GXX" = yes; then
11901 lt_prog_compiler_wl_CXX='-Wl,'
11902 lt_prog_compiler_static_CXX='-static'
11906 # All AIX code is PIC.
11907 if test "$host_cpu" = ia64; then
11908 # AIX 5 now supports IA64 processor
11909 lt_prog_compiler_static_CXX='-Bstatic'
11913 # FIXME: we need at least 68020 code to build shared libraries, but
11914 # adding the `-m68020' flag to GCC prevents building anything better,
11916 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11919 # PIC is the default for these OSes.
11921 mingw* | os2* | pw32*)
11922 # This hack is so that the source file can tell whether it is being
11923 # built for inclusion in a dll (and should export symbols for example).
11924 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11926 darwin* | rhapsody*)
11927 # PIC is the default on this platform
11928 # Common symbols not allowed in MH_DYLIB files
11929 lt_prog_compiler_pic_CXX='-fno-common'
11932 # DJGPP does not support shared libraries at all
11933 lt_prog_compiler_pic_CXX=
11936 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11937 # Instead, we relocate shared libraries at runtime.
11940 if test -d /usr/nec; then
11941 lt_prog_compiler_pic_CXX=-Kconform_pic
11945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11946 # not for PA HP-UX.
11951 lt_prog_compiler_pic_CXX='-fPIC'
11956 lt_prog_compiler_pic_CXX='-fPIC'
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'
11967 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11971 case $cc_basename in
11973 # Green Hills C++ Compiler
11974 # _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"
11979 # PIC is the default on this platform
11980 # Common symbols not allowed in MH_DYLIB files
11981 case $cc_basename in
11983 lt_prog_compiler_pic_CXX='-qnocommon'
11984 lt_prog_compiler_wl_CXX='-Wl,'
11989 case $cc_basename in
11991 lt_prog_compiler_pic_CXX='-KPIC'
11994 # Green Hills C++ Compiler
11995 lt_prog_compiler_pic_CXX='-pic'
12001 freebsd* | dragonfly*)
12002 # FreeBSD uses GNU C++
12004 hpux9* | hpux10* | hpux11*)
12005 case $cc_basename in
12007 lt_prog_compiler_wl_CXX='-Wl,'
12008 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12009 if test "$host_cpu" != ia64; then
12010 lt_prog_compiler_pic_CXX='+Z'
12014 lt_prog_compiler_wl_CXX='-Wl,'
12015 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12021 lt_prog_compiler_pic_CXX='+Z'
12030 # This is c89, which is MS Visual C++ (no shared libs)
12031 # Anyone wants to do a port?
12033 irix5* | irix6* | nonstopux*)
12034 case $cc_basename in
12036 lt_prog_compiler_wl_CXX='-Wl,'
12037 lt_prog_compiler_static_CXX='-non_shared'
12038 # CC pic flag -KPIC is the default.
12044 linux* | k*bsd*-gnu)
12045 case $cc_basename in
12048 lt_prog_compiler_wl_CXX='--backend -Wl,'
12049 lt_prog_compiler_pic_CXX='-fPIC'
12053 lt_prog_compiler_wl_CXX='-Wl,'
12054 lt_prog_compiler_pic_CXX='-KPIC'
12055 lt_prog_compiler_static_CXX='-static'
12058 # Portland Group C++ compiler.
12059 lt_prog_compiler_wl_CXX='-Wl,'
12060 lt_prog_compiler_pic_CXX='-fpic'
12061 lt_prog_compiler_static_CXX='-Bstatic'
12065 # Make sure the PIC flag is empty. It appears that all Alpha
12066 # Linux and Compaq Tru64 Unix objects are PIC.
12067 lt_prog_compiler_pic_CXX=
12068 lt_prog_compiler_static_CXX='-non_shared'
12079 case $cc_basename in
12081 lt_prog_compiler_pic_CXX='-W c,exportall'
12087 netbsd* | netbsdelf*-gnu)
12089 osf3* | osf4* | osf5*)
12090 case $cc_basename in
12092 lt_prog_compiler_wl_CXX='--backend -Wl,'
12095 # Rational C++ 2.4.1
12096 lt_prog_compiler_pic_CXX='-pic'
12099 # Digital/Compaq C++
12100 lt_prog_compiler_wl_CXX='-Wl,'
12101 # Make sure the PIC flag is empty. It appears that all Alpha
12102 # Linux and Compaq Tru64 Unix objects are PIC.
12103 lt_prog_compiler_pic_CXX=
12104 lt_prog_compiler_static_CXX='-non_shared'
12113 case $cc_basename in
12115 # Sun C++ 4.2, 5.x and Centerline C++
12116 lt_prog_compiler_pic_CXX='-KPIC'
12117 lt_prog_compiler_static_CXX='-Bstatic'
12118 lt_prog_compiler_wl_CXX='-Qoption ld '
12121 # Green Hills C++ Compiler
12122 lt_prog_compiler_pic_CXX='-PIC'
12129 case $cc_basename in
12132 lt_prog_compiler_pic_CXX='-pic'
12133 lt_prog_compiler_static_CXX='-Bstatic'
12137 lt_prog_compiler_pic_CXX='-pic'
12144 case $cc_basename in
12146 # NonStop-UX NCC 3.20
12147 lt_prog_compiler_pic_CXX='-KPIC'
12153 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12154 case $cc_basename in
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 lt_prog_compiler_pic_CXX='-KPIC'
12158 lt_prog_compiler_static_CXX='-Bstatic'
12165 lt_prog_compiler_can_build_shared_CXX=no
12170 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12171 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12174 # Check to make sure the PIC flag actually works.
12176 if test -n "$lt_prog_compiler_pic_CXX"; then
12178 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12179 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12180 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 lt_prog_compiler_pic_works_CXX=no
12184 ac_outfile=conftest.$ac_objext
12185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12186 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12187 # Insert the option either (1) after the last *FLAGS variable, or
12188 # (2) before a word containing "conftest.", or (3) at the end.
12189 # Note that $ac_compile itself does not contain backslashes and begins
12190 # with a dollar sign (not a hyphen), so the echo should work correctly.
12191 # The option is referenced via a variable to avoid confusing sed.
12192 lt_compile=`echo "$ac_compile" | $SED \
12193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12195 -e 's:$: $lt_compiler_flag:'`
12196 (eval echo "\"\$as_me:12196: $lt_compile\"" >&5)
12197 (eval "$lt_compile" 2>conftest.err)
12199 cat conftest.err >&5
12200 echo "$as_me:12200: \$? = $ac_status" >&5
12201 if (exit $ac_status) && test -s "$ac_outfile"; then
12202 # The compiler can only warn and ignore the option if not recognized
12203 # So say no if there are warnings other than the usual output.
12204 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12207 lt_prog_compiler_pic_works_CXX=yes
12213 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12214 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12216 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12217 case $lt_prog_compiler_pic_CXX in
12219 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12222 lt_prog_compiler_pic_CXX=
12223 lt_prog_compiler_can_build_shared_CXX=no
12228 # For platforms which do not support PIC, -DPIC is meaningless:
12230 lt_prog_compiler_pic_CXX=
12233 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12238 # Check to make sure the static flag actually works.
12240 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12241 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12242 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12243 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 lt_prog_compiler_static_works_CXX=no
12247 save_LDFLAGS="$LDFLAGS"
12248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12249 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12251 # The linker can only warn and ignore the option if not recognized
12252 # So say no if there are warnings
12253 if test -s conftest.err; then
12254 # Append any errors to the config.log.
12255 cat conftest.err 1>&5
12256 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12258 if diff conftest.exp conftest.er2 >/dev/null; then
12259 lt_prog_compiler_static_works_CXX=yes
12262 lt_prog_compiler_static_works_CXX=yes
12266 LDFLAGS="$save_LDFLAGS"
12269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12270 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12272 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12275 lt_prog_compiler_static_CXX=
12279 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12280 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12281 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 lt_cv_prog_compiler_c_o_CXX=no
12285 $rm -r conftest 2>/dev/null
12289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12291 lt_compiler_flag="-o out/conftest2.$ac_objext"
12292 # Insert the option either (1) after the last *FLAGS variable, or
12293 # (2) before a word containing "conftest.", or (3) at the end.
12294 # Note that $ac_compile itself does not contain backslashes and begins
12295 # with a dollar sign (not a hyphen), so the echo should work correctly.
12296 lt_compile=`echo "$ac_compile" | $SED \
12297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299 -e 's:$: $lt_compiler_flag:'`
12300 (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
12301 (eval "$lt_compile" 2>out/conftest.err)
12303 cat out/conftest.err >&5
12304 echo "$as_me:12304: \$? = $ac_status" >&5
12305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12307 # The compiler can only warn and ignore the option if not recognized
12308 # So say no if there are warnings
12309 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12312 lt_cv_prog_compiler_c_o_CXX=yes
12317 # SGI C++ compiler will create directory out/ii_files/ for
12318 # template instantiation
12319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12320 $rm out/* && rmdir out
12326 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12330 hard_links="nottested"
12331 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12332 # do not overwrite the value of need_locks provided by the user
12333 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12339 ln conftest.a conftest.b 2>&5 || hard_links=no
12340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12341 { echo "$as_me:$LINENO: result: $hard_links" >&5
12342 echo "${ECHO_T}$hard_links" >&6; }
12343 if test "$hard_links" = no; then
12344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12352 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12355 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12358 # If we're using GNU nm, then we don't want the "-C" option.
12359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12360 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12361 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'
12363 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'
12367 export_symbols_cmds_CXX="$ltdll_cmds"
12370 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'
12372 linux* | k*bsd*-gnu)
12373 link_all_deplibs_CXX=no
12376 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12380 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12381 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12382 test "$ld_shlibs_CXX" = no && can_build_shared=no
12385 # Do we need to explicitly link libc?
12387 case "x$archive_cmds_need_lc_CXX" in
12389 # Assume -lc should be added
12390 archive_cmds_need_lc_CXX=yes
12392 if test "$enable_shared" = yes && test "$GCC" = yes; then
12393 case $archive_cmds_CXX in
12395 # FIXME: we may have to deal with multi-command sequences.
12398 # Test whether the compiler implicitly links with -lc since on some
12399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12400 # to ld, don't add -lc before -lgcc.
12401 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12402 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407 (eval $ac_compile) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } 2>conftest.err; then
12413 libobjs=conftest.$ac_objext
12415 wl=$lt_prog_compiler_wl_CXX
12416 pic_flag=$lt_prog_compiler_pic_CXX
12422 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12423 allow_undefined_flag_CXX=
12424 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12425 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }
12430 archive_cmds_need_lc_CXX=no
12432 archive_cmds_need_lc_CXX=yes
12434 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12436 cat conftest.err 1>&5
12439 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12440 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12447 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12448 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12449 library_names_spec=
12450 libname_spec='lib$name'
12454 postuninstall_cmds=
12458 shlibpath_overrides_runpath=unknown
12460 dynamic_linker="$host_os ld.so"
12461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12462 if test "$GCC" = yes; then
12463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12464 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12465 # if the path contains ";" then we assume it to be the separator
12466 # otherwise default to the standard path separator (i.e. ":") - it is
12467 # assumed that no part of a normal pathname contains ";" but that should
12468 # okay in the real world where ";" in dirpaths is itself problematic.
12469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12476 need_lib_prefix=unknown
12477 hardcode_into_libs=no
12479 # when you set need_version to no, make sure it does not cause -set_version
12480 # flags to be left without arguments
12481 need_version=unknown
12486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12487 shlibpath_var=LIBPATH
12489 # AIX 3 has no versioning support, so we append a major version to the name.
12490 soname_spec='${libname}${release}${shared_ext}$major'
12497 hardcode_into_libs=yes
12498 if test "$host_cpu" = ia64; then
12499 # AIX 5 supports IA64
12500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12501 shlibpath_var=LD_LIBRARY_PATH
12503 # With GCC up to 2.95.x, collect2 would create an import file
12504 # for dependence libraries. The import file would start with
12505 # the line `#! .'. This would cause the generated library to
12506 # depend on `.', always an invalid library. This was fixed in
12507 # development snapshots of GCC prior to 3.0.
12509 aix4 | aix4.[01] | aix4.[01].*)
12510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12512 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12515 can_build_shared=no
12519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12520 # soname into executable. Probably we can add versioning support to
12521 # collect2, so additional links can be useful in future.
12522 if test "$aix_use_runtimelinking" = yes; then
12523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12524 # instead of lib<name>.a to let people know that these are not
12525 # typical AIX shared libraries.
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528 # We preserve .a as extension for shared libraries through AIX4.2
12529 # and later when we are not doing run time linking.
12530 library_names_spec='${libname}${release}.a $libname.a'
12531 soname_spec='${libname}${release}${shared_ext}$major'
12533 shlibpath_var=LIBPATH
12538 library_names_spec='$libname.ixlibrary $libname.a'
12539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12540 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'
12544 library_names_spec='${libname}${shared_ext}'
12545 dynamic_linker="$host_os ld.so"
12546 shlibpath_var=LIBRARY_PATH
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12558 # the default ld.so.conf also contains /usr/contrib/lib and
12559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12560 # libtool to hard-code these into programs
12563 cygwin* | mingw* | pw32*)
12564 version_type=windows
12569 case $GCC,$host_os in
12570 yes,cygwin* | yes,mingw* | yes,pw32*)
12571 library_names_spec='$libname.dll.a'
12572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12573 postinstall_cmds='base_file=`basename \${file}`~
12574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12575 dldir=$destdir/`dirname \$dlpath`~
12576 test -d \$dldir || mkdir -p \$dldir~
12577 $install_prog $dir/$dlname \$dldir/$dlname~
12578 chmod a+x \$dldir/$dlname'
12579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12580 dlpath=$dir/\$dldll~
12582 shlibpath_overrides_runpath=yes
12586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12591 # MinGW DLLs use traditional 'lib' prefix
12592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12595 # It is most probably a Windows format PATH printed by
12596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12597 # path with ; separators, and with drive letters. We can handle the
12598 # drive letters (cygwin fileutils understands them), so leave them,
12599 # especially as we might pass files found there to a mingw objdump,
12600 # which wouldn't understand a cygwinified path. Ahh.
12601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12607 # pw32 DLLs use 'pw' prefix rather than 'lib'
12608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12617 dynamic_linker='Win32 ld.exe'
12618 # FIXME: first we should search . and the directory the executable is in
12622 darwin* | rhapsody*)
12623 dynamic_linker="$host_os dyld"
12624 version_type=darwin
12627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12628 soname_spec='${libname}${release}${major}$shared_ext'
12629 shlibpath_overrides_runpath=yes
12630 shlibpath_var=DYLD_LIBRARY_PATH
12631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12633 if test "$GCC" = yes; then
12634 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"`
12636 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12646 soname_spec='${libname}${release}${shared_ext}$major'
12647 shlibpath_var=LD_LIBRARY_PATH
12654 freebsd* | dragonfly*)
12655 # DragonFly does not have aout. When/if they implement a new
12656 # versioning mechanism, adjust this.
12657 if test -x /usr/bin/objformat; then
12658 objformat=`/usr/bin/objformat`
12661 freebsd[123]*) objformat=aout ;;
12662 *) objformat=elf ;;
12665 version_type=freebsd-$objformat
12666 case $version_type in
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12677 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=yes
12682 freebsd3.[01]* | freebsdelf3.[01]*)
12683 shlibpath_overrides_runpath=yes
12684 hardcode_into_libs=yes
12686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12688 shlibpath_overrides_runpath=no
12689 hardcode_into_libs=yes
12691 freebsd*) # from 4.6 on
12692 shlibpath_overrides_runpath=yes
12693 hardcode_into_libs=yes
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12703 soname_spec='${libname}${release}${shared_ext}$major'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 hardcode_into_libs=yes
12708 hpux9* | hpux10* | hpux11*)
12709 # Give a soname corresponding to the major version so that dld.sl refuses to
12710 # link against other versions.
12717 hardcode_into_libs=yes
12718 dynamic_linker="$host_os dld.so"
12719 shlibpath_var=LD_LIBRARY_PATH
12720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 if test "X$HPUX_IA64_MODE" = X32; then
12724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12732 hardcode_into_libs=yes
12733 dynamic_linker="$host_os dld.sl"
12734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12743 dynamic_linker="$host_os dld.sl"
12744 shlibpath_var=SHLIB_PATH
12745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12750 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12751 postinstall_cmds='chmod 555 $lib'
12758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12759 soname_spec='${libname}${release}${shared_ext}$major'
12760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=no
12763 hardcode_into_libs=yes
12766 irix5* | irix6* | nonstopux*)
12768 nonstopux*) version_type=nonstopux ;;
12770 if test "$lt_cv_prog_gnu_ld" = yes; then
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12781 irix5* | nonstopux*)
12782 libsuff= shlibsuff=
12785 case $LD in # libtool.m4 will add one of these switches to LD
12786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12787 libsuff= shlibsuff= libmagic=32-bit;;
12788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12789 libsuff=32 shlibsuff=N32 libmagic=N32;;
12790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12792 *) libsuff= shlibsuff= libmagic=never-match;;
12796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12797 shlibpath_overrides_runpath=no
12798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12800 hardcode_into_libs=yes
12803 # No shared lib support for Linux oldld, aout, or coff.
12804 linux*oldld* | linux*aout* | linux*coff*)
12808 # This must be Linux ELF.
12809 linux* | k*bsd*-gnu)
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=no
12818 # This implies no fast_install, which is unacceptable.
12819 # Some rework will be needed to allow for fast_install
12820 # before this can be enabled.
12821 hardcode_into_libs=yes
12823 # Append ld.so.conf contents to the search path
12824 if test -f /etc/ld.so.conf; then
12825 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' ' '`
12826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12829 # We used to test for /lib/ld.so.1 and disable shared libraries on
12830 # powerpc, because MkLinux only supported shared libraries with the
12831 # GNU dynamic linker. Since this was broken with cross compilers,
12832 # most powerpc-linux boxes support dynamic linking these days and
12833 # people can always --disable-shared, the test was removed, and we
12834 # assume the GNU/Linux dynamic linker is in use.
12835 dynamic_linker='GNU/Linux ld.so'
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=no
12846 hardcode_into_libs=yes
12847 dynamic_linker='NetBSD ld.elf_so'
12854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12857 dynamic_linker='NetBSD (a.out) ld.so'
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12860 soname_spec='${libname}${release}${shared_ext}$major'
12861 dynamic_linker='NetBSD ld.elf_so'
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=yes
12865 hardcode_into_libs=yes
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871 shlibpath_var=LD_LIBRARY_PATH
12872 shlibpath_overrides_runpath=yes
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880 soname_spec='${libname}${release}${shared_ext}$major'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=yes
12887 sys_lib_dlsearch_path_spec="/usr/lib"
12889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12891 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12892 *) need_version=no ;;
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12899 openbsd2.[89] | openbsd2.[89].*)
12900 shlibpath_overrides_runpath=no
12903 shlibpath_overrides_runpath=yes
12907 shlibpath_overrides_runpath=yes
12912 libname_spec='$name'
12915 library_names_spec='$libname${shared_ext} $libname.a'
12916 dynamic_linker='OS/2 ld.exe'
12917 shlibpath_var=LIBPATH
12920 osf3* | osf4* | osf5*)
12924 soname_spec='${libname}${release}${shared_ext}$major'
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 shlibpath_var=LD_LIBRARY_PATH
12927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 shlibpath_var=LD_LIBRARY_PATH
12938 shlibpath_overrides_runpath=yes
12939 hardcode_into_libs=yes
12940 # ldd complains unless libraries are executable
12941 postinstall_cmds='chmod +x $lib'
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 shlibpath_overrides_runpath=yes
12950 if test "$with_gnu_ld" = yes; then
12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 shlibpath_var=LD_LIBRARY_PATH
12961 case $host_vendor in
12963 shlibpath_overrides_runpath=no
12965 export_dynamic_flag_spec='${wl}-Blargedynsym'
12966 runpath_var=LD_RUN_PATH
12974 shlibpath_overrides_runpath=no
12975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12981 if test -d /usr/nec ;then
12983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12984 soname_spec='$libname${shared_ext}.$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12990 version_type=freebsd-elf
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12994 soname_spec='${libname}${release}${shared_ext}$major'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 hardcode_into_libs=yes
12997 if test "$with_gnu_ld" = yes; then
12998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12999 shlibpath_overrides_runpath=no
13001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13002 shlibpath_overrides_runpath=yes
13005 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13009 sys_lib_dlsearch_path_spec='/usr/lib'
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13016 shlibpath_var=LD_LIBRARY_PATH
13023 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13024 echo "${ECHO_T}$dynamic_linker" >&6; }
13025 test "$dynamic_linker" = no && can_build_shared=no
13027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13028 if test "$GCC" = yes; then
13029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13032 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13034 hardcode_action_CXX=
13035 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13036 test -n "$runpath_var_CXX" || \
13037 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13039 # We can hardcode non-existant directories.
13040 if test "$hardcode_direct_CXX" != no &&
13041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13042 # have to relink, otherwise we might link with an installed library
13043 # when we should be linking with a yet-to-be-installed one
13044 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13045 test "$hardcode_minus_L_CXX" != no; then
13046 # Linking always hardcodes the temporary library directory.
13047 hardcode_action_CXX=relink
13049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13050 hardcode_action_CXX=immediate
13053 # We cannot hardcode anything, or else we can only hardcode existing
13055 hardcode_action_CXX=unsupported
13057 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13058 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13060 if test "$hardcode_action_CXX" = relink; then
13061 # Fast installation is not supported
13062 enable_fast_install=no
13063 elif test "$shlibpath_overrides_runpath" = yes ||
13064 test "$enable_shared" = no; then
13065 # Fast installation is not necessary
13066 enable_fast_install=needless
13070 # The else clause should only fire when bootstrapping the
13071 # libtool distribution, otherwise you forgot to ship ltmain.sh
13072 # with your package, and you will get complaints that there are
13073 # no rules to generate ltmain.sh.
13074 if test -f "$ltmain"; then
13075 # See if we are running on zsh, and set the options which allow our commands through
13076 # without removal of \ escapes.
13077 if test -n "${ZSH_VERSION+set}" ; then
13078 setopt NO_GLOB_SUBST
13080 # Now quote all the things that may contain metacharacters while being
13081 # careful not to overquote the AC_SUBSTed values. We take copies of the
13082 # variables and quote the copies for generation of the libtool script.
13083 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13085 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13086 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13087 deplibs_check_method reload_flag reload_cmds need_locks \
13088 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13089 lt_cv_sys_global_symbol_to_c_name_address \
13090 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13091 old_postinstall_cmds old_postuninstall_cmds \
13095 lt_prog_compiler_wl_CXX \
13096 lt_prog_compiler_pic_CXX \
13097 lt_prog_compiler_static_CXX \
13098 lt_prog_compiler_no_builtin_flag_CXX \
13099 export_dynamic_flag_spec_CXX \
13100 thread_safe_flag_spec_CXX \
13101 whole_archive_flag_spec_CXX \
13102 enable_shared_with_static_runtimes_CXX \
13103 old_archive_cmds_CXX \
13104 old_archive_from_new_cmds_CXX \
13105 predep_objects_CXX \
13106 postdep_objects_CXX \
13109 compiler_lib_search_path_CXX \
13111 archive_expsym_cmds_CXX \
13112 postinstall_cmds_CXX \
13113 postuninstall_cmds_CXX \
13114 old_archive_from_expsyms_cmds_CXX \
13115 allow_undefined_flag_CXX \
13116 no_undefined_flag_CXX \
13117 export_symbols_cmds_CXX \
13118 hardcode_libdir_flag_spec_CXX \
13119 hardcode_libdir_flag_spec_ld_CXX \
13120 hardcode_libdir_separator_CXX \
13121 hardcode_automatic_CXX \
13123 module_expsym_cmds_CXX \
13124 lt_cv_prog_compiler_c_o_CXX \
13125 exclude_expsyms_CXX \
13126 include_expsyms_CXX; do
13129 old_archive_cmds_CXX | \
13130 old_archive_from_new_cmds_CXX | \
13131 archive_cmds_CXX | \
13132 archive_expsym_cmds_CXX | \
13133 module_cmds_CXX | \
13134 module_expsym_cmds_CXX | \
13135 old_archive_from_expsyms_cmds_CXX | \
13136 export_symbols_cmds_CXX | \
13137 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13138 postinstall_cmds | postuninstall_cmds | \
13139 old_postinstall_cmds | old_postuninstall_cmds | \
13140 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13141 # Double-quote double-evaled strings.
13142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13151 *'\$0 --fallback-echo"')
13152 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13158 cat <<__EOF__ >> "$cfgfile"
13159 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13163 # Shell to use when invoking shell scripts.
13166 # Whether or not to build shared libraries.
13167 build_libtool_libs=$enable_shared
13169 # Whether or not to build static libraries.
13170 build_old_libs=$enable_static
13172 # Whether or not to add -lc for building shared libraries.
13173 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13175 # Whether or not to disallow shared libs when runtime libs are static
13176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13178 # Whether or not to optimize for fast installation.
13179 fast_install=$enable_fast_install
13182 host_alias=$host_alias
13186 # The build system.
13187 build_alias=$build_alias
13191 # An echo program that does not interpret backslashes.
13196 AR_FLAGS=$lt_AR_FLAGS
13201 # LTCC compiler flags.
13202 LTCFLAGS=$lt_LTCFLAGS
13204 # A language-specific compiler.
13205 CC=$lt_compiler_CXX
13207 # Is the compiler the GNU C compiler?
13213 # The linker used to build libraries.
13216 # Whether we need hard or soft links.
13219 # A BSD-compatible nm program.
13222 # A symbol stripping program
13225 # Used to examine libraries when file_magic_cmd begins "file"
13226 MAGIC_CMD=$MAGIC_CMD
13228 # Used on cygwin: DLL creation program.
13231 # Used on cygwin: object dumper.
13234 # Used on cygwin: assembler.
13237 # The name of the directory that contains temporary libtool files.
13240 # How to create reloadable object files.
13241 reload_flag=$lt_reload_flag
13242 reload_cmds=$lt_reload_cmds
13244 # How to pass a linker flag through the compiler.
13245 wl=$lt_lt_prog_compiler_wl_CXX
13247 # Object file suffix (normally "o").
13248 objext="$ac_objext"
13250 # Old archive suffix (normally "a").
13253 # Shared library suffix (normally ".so").
13254 shrext_cmds='$shrext_cmds'
13256 # Executable file suffix (normally "").
13259 # Additional compiler flags for building library objects.
13260 pic_flag=$lt_lt_prog_compiler_pic_CXX
13263 # What is the maximum length of a command?
13264 max_cmd_len=$lt_cv_sys_max_cmd_len
13266 # Does compiler simultaneously support -c and -o options?
13267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13269 # Must we lock files when doing compilation?
13270 need_locks=$lt_need_locks
13272 # Do we need the lib prefix for modules?
13273 need_lib_prefix=$need_lib_prefix
13275 # Do we need a version for libraries?
13276 need_version=$need_version
13278 # Whether dlopen is supported.
13279 dlopen_support=$enable_dlopen
13281 # Whether dlopen of programs is supported.
13282 dlopen_self=$enable_dlopen_self
13284 # Whether dlopen of statically linked programs is supported.
13285 dlopen_self_static=$enable_dlopen_self_static
13287 # Compiler flag to prevent dynamic linking.
13288 link_static_flag=$lt_lt_prog_compiler_static_CXX
13290 # Compiler flag to turn off builtin functions.
13291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13293 # Compiler flag to allow reflexive dlopens.
13294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13296 # Compiler flag to generate shared objects directly from archives.
13297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13299 # Compiler flag to generate thread-safe objects.
13300 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13302 # Library versioning type.
13303 version_type=$version_type
13305 # Format of library name prefix.
13306 libname_spec=$lt_libname_spec
13308 # List of archive names. First name is the real one, the rest are links.
13309 # The last name is the one that the linker finds with -lNAME.
13310 library_names_spec=$lt_library_names_spec
13312 # The coded name of the library, if different from the real name.
13313 soname_spec=$lt_soname_spec
13315 # Commands used to build and install an old-style archive.
13317 old_archive_cmds=$lt_old_archive_cmds_CXX
13318 old_postinstall_cmds=$lt_old_postinstall_cmds
13319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13321 # Create an old-style archive from a shared archive.
13322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13324 # Create a temporary old-style archive to link instead of a shared archive.
13325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13327 # Commands used to build and install a shared archive.
13328 archive_cmds=$lt_archive_cmds_CXX
13329 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13330 postinstall_cmds=$lt_postinstall_cmds
13331 postuninstall_cmds=$lt_postuninstall_cmds
13333 # Commands used to build a loadable module (assumed same as above if empty)
13334 module_cmds=$lt_module_cmds_CXX
13335 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13337 # Commands to strip libraries.
13338 old_striplib=$lt_old_striplib
13339 striplib=$lt_striplib
13341 # Dependencies to place before the objects being linked to create a
13343 predep_objects=$lt_predep_objects_CXX
13345 # Dependencies to place after the objects being linked to create a
13347 postdep_objects=$lt_postdep_objects_CXX
13349 # Dependencies to place before the objects being linked to create a
13351 predeps=$lt_predeps_CXX
13353 # Dependencies to place after the objects being linked to create a
13355 postdeps=$lt_postdeps_CXX
13357 # The library search path used internally by the compiler when linking
13358 # a shared library.
13359 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13361 # Method to check whether dependent libraries are shared objects.
13362 deplibs_check_method=$lt_deplibs_check_method
13364 # Command to use when deplibs_check_method == file_magic.
13365 file_magic_cmd=$lt_file_magic_cmd
13367 # Flag that allows shared libraries with undefined symbols to be built.
13368 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13370 # Flag that forces no undefined symbols.
13371 no_undefined_flag=$lt_no_undefined_flag_CXX
13373 # Commands used to finish a libtool library installation in a directory.
13374 finish_cmds=$lt_finish_cmds
13376 # Same as above, but a single script fragment to be evaled but not shown.
13377 finish_eval=$lt_finish_eval
13379 # Take the output of nm and produce a listing of raw symbols and C names.
13380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13382 # Transform the output of nm in a proper C declaration
13383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13385 # Transform the output of nm in a C name address pair
13386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13388 # This is the shared library runtime path variable.
13389 runpath_var=$runpath_var
13391 # This is the shared library path variable.
13392 shlibpath_var=$shlibpath_var
13394 # Is shlibpath searched before the hard-coded library search path?
13395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13397 # How to hardcode a shared library path into an executable.
13398 hardcode_action=$hardcode_action_CXX
13400 # Whether we should hardcode library paths into libraries.
13401 hardcode_into_libs=$hardcode_into_libs
13403 # Flag to hardcode \$libdir into a binary during linking.
13404 # This must work even if \$libdir does not exist.
13405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13407 # If ld is used when linking, flag to hardcode \$libdir into
13408 # a binary during linking. This must work even if \$libdir does
13410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13412 # Whether we need a single -rpath flag with a separated argument.
13413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13416 # resulting binary.
13417 hardcode_direct=$hardcode_direct_CXX
13419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13420 # resulting binary.
13421 hardcode_minus_L=$hardcode_minus_L_CXX
13423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13424 # the resulting binary.
13425 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13427 # Set to yes if building a shared library automatically hardcodes DIR into the library
13428 # and all subsequent libraries and executables linked against it.
13429 hardcode_automatic=$hardcode_automatic_CXX
13431 # Variables whose values should be saved in libtool wrapper scripts and
13432 # restored at relink time.
13433 variables_saved_for_relink="$variables_saved_for_relink"
13435 # Whether libtool must link a program against all its dependency libraries.
13436 link_all_deplibs=$link_all_deplibs_CXX
13438 # Compile-time system search path for libraries
13439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13441 # Run-time system search path for libraries
13442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13444 # Fix the shell variable \$srcfile for the compiler.
13445 fix_srcfile_path="$fix_srcfile_path_CXX"
13447 # Set to yes if exported symbols are required.
13448 always_export_symbols=$always_export_symbols_CXX
13450 # The commands to list exported symbols.
13451 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13453 # The commands to extract the exported symbol list from a shared archive.
13454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13456 # Symbols that should not be listed in the preloaded symbols.
13457 exclude_expsyms=$lt_exclude_expsyms_CXX
13459 # Symbols that must always be exported.
13460 include_expsyms=$lt_include_expsyms_CXX
13462 # ### END LIBTOOL TAG CONFIG: $tagname
13468 # If there is no Makefile yet, we rely on a make rule to execute
13469 # `config.status --recheck' to rerun these tests and create the
13470 # libtool script then.
13471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13472 if test -f "$ltmain_in"; then
13473 test -f Makefile && make "$ltmain"
13479 ac_cpp='$CPP $CPPFLAGS'
13480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13488 with_gnu_ldcxx=$with_gnu_ld
13489 with_gnu_ld=$lt_save_with_gnu_ld
13490 lt_cv_path_LDCXX=$lt_cv_path_LD
13491 lt_cv_path_LD=$lt_save_path_LD
13492 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13493 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13501 if test -n "$F77" && test "X$F77" != "Xno"; then
13504 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13509 archive_cmds_need_lc_F77=no
13510 allow_undefined_flag_F77=
13511 always_export_symbols_F77=no
13512 archive_expsym_cmds_F77=
13513 export_dynamic_flag_spec_F77=
13514 hardcode_direct_F77=no
13515 hardcode_libdir_flag_spec_F77=
13516 hardcode_libdir_flag_spec_ld_F77=
13517 hardcode_libdir_separator_F77=
13518 hardcode_minus_L_F77=no
13519 hardcode_automatic_F77=no
13521 module_expsym_cmds_F77=
13522 link_all_deplibs_F77=unknown
13523 old_archive_cmds_F77=$old_archive_cmds
13524 no_undefined_flag_F77=
13525 whole_archive_flag_spec_F77=
13526 enable_shared_with_static_runtimes_F77=no
13528 # Source file extension for f77 test sources.
13531 # Object file extension for compiled f77 test sources.
13535 # Code to be used in simple compile tests
13536 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13538 # Code to be used in simple link tests
13539 lt_simple_link_test_code=" program t\n end\n"
13541 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13543 # If no C compiler was specified, use CC.
13546 # If no C compiler flags were specified, use CFLAGS.
13547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13549 # Allow CC to be a program name with arguments.
13553 # save warnings/boilerplate of simple test code
13554 ac_outfile=conftest.$ac_objext
13555 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13556 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13557 _lt_compiler_boilerplate=`cat conftest.err`
13560 ac_outfile=conftest.$ac_objext
13561 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13562 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13563 _lt_linker_boilerplate=`cat conftest.err`
13567 # Allow CC to be a program name with arguments.
13572 for cc_temp in $compiler""; do
13574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13580 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13583 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13584 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13585 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13586 echo "${ECHO_T}$can_build_shared" >&6; }
13588 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13589 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13590 test "$can_build_shared" = "no" && enable_shared=no
13592 # On AIX, shared libraries and static libraries use the same namespace, and
13593 # are all built from PIC.
13596 test "$enable_shared" = yes && enable_static=no
13597 if test -n "$RANLIB"; then
13598 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13599 postinstall_cmds='$RANLIB $lib'
13603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13604 test "$enable_shared" = yes && enable_static=no
13608 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13609 echo "${ECHO_T}$enable_shared" >&6; }
13611 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13612 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13613 # Make sure either enable_shared or enable_static is yes.
13614 test "$enable_shared" = yes || enable_static=yes
13615 { echo "$as_me:$LINENO: result: $enable_static" >&5
13616 echo "${ECHO_T}$enable_static" >&6; }
13621 lt_prog_compiler_wl_F77=
13622 lt_prog_compiler_pic_F77=
13623 lt_prog_compiler_static_F77=
13625 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13626 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13628 if test "$GCC" = yes; then
13629 lt_prog_compiler_wl_F77='-Wl,'
13630 lt_prog_compiler_static_F77='-static'
13634 # All AIX code is PIC.
13635 if test "$host_cpu" = ia64; then
13636 # AIX 5 now supports IA64 processor
13637 lt_prog_compiler_static_F77='-Bstatic'
13642 # FIXME: we need at least 68020 code to build shared libraries, but
13643 # adding the `-m68020' flag to GCC prevents building anything better,
13645 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13648 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13649 # PIC is the default for these OSes.
13652 mingw* | pw32* | os2*)
13653 # This hack is so that the source file can tell whether it is being
13654 # built for inclusion in a dll (and should export symbols for example).
13655 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13658 darwin* | rhapsody*)
13659 # PIC is the default on this platform
13660 # Common symbols not allowed in MH_DYLIB files
13661 lt_prog_compiler_pic_F77='-fno-common'
13665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13666 # Instead, we relocate shared libraries at runtime.
13670 # Just because we use GCC doesn't mean we suddenly get shared libraries
13671 # on systems that don't support them.
13672 lt_prog_compiler_can_build_shared_F77=no
13677 if test -d /usr/nec; then
13678 lt_prog_compiler_pic_F77=-Kconform_pic
13683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13684 # not for PA HP-UX.
13690 lt_prog_compiler_pic_F77='-fPIC'
13696 lt_prog_compiler_pic_F77='-fPIC'
13700 # PORTME Check for flag to pass linker flags through the system compiler.
13703 lt_prog_compiler_wl_F77='-Wl,'
13704 if test "$host_cpu" = ia64; then
13705 # AIX 5 now supports IA64 processor
13706 lt_prog_compiler_static_F77='-Bstatic'
13708 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13712 # PIC is the default on this platform
13713 # Common symbols not allowed in MH_DYLIB files
13714 case $cc_basename in
13716 lt_prog_compiler_pic_F77='-qnocommon'
13717 lt_prog_compiler_wl_F77='-Wl,'
13722 mingw* | pw32* | os2*)
13723 # This hack is so that the source file can tell whether it is being
13724 # built for inclusion in a dll (and should export symbols for example).
13725 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13728 hpux9* | hpux10* | hpux11*)
13729 lt_prog_compiler_wl_F77='-Wl,'
13730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13731 # not for PA HP-UX.
13737 lt_prog_compiler_pic_F77='+Z'
13740 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13741 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13744 irix5* | irix6* | nonstopux*)
13745 lt_prog_compiler_wl_F77='-Wl,'
13746 # PIC (with -KPIC) is the default.
13747 lt_prog_compiler_static_F77='-non_shared'
13751 lt_prog_compiler_pic_F77='-KPIC'
13752 lt_prog_compiler_static_F77='-Bstatic'
13755 linux* | k*bsd*-gnu)
13756 case $cc_basename in
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 lt_prog_compiler_pic_F77='-KPIC'
13760 lt_prog_compiler_static_F77='-static'
13762 pgcc* | pgf77* | pgf90* | pgf95*)
13763 # Portland Group compilers (*not* the Pentium gcc compiler,
13764 # which looks to be a dead project)
13765 lt_prog_compiler_wl_F77='-Wl,'
13766 lt_prog_compiler_pic_F77='-fpic'
13767 lt_prog_compiler_static_F77='-Bstatic'
13770 lt_prog_compiler_wl_F77='-Wl,'
13771 # All Alpha code is PIC.
13772 lt_prog_compiler_static_F77='-non_shared'
13777 osf3* | osf4* | osf5*)
13778 lt_prog_compiler_wl_F77='-Wl,'
13779 # All OSF/1 code is PIC.
13780 lt_prog_compiler_static_F77='-non_shared'
13784 lt_prog_compiler_pic_F77='-KPIC'
13785 lt_prog_compiler_static_F77='-Bstatic'
13786 case $cc_basename in
13787 f77* | f90* | f95*)
13788 lt_prog_compiler_wl_F77='-Qoption ld ';;
13790 lt_prog_compiler_wl_F77='-Wl,';;
13795 lt_prog_compiler_wl_F77='-Qoption ld '
13796 lt_prog_compiler_pic_F77='-PIC'
13797 lt_prog_compiler_static_F77='-Bstatic'
13800 sysv4 | sysv4.2uw2* | sysv4.3*)
13801 lt_prog_compiler_wl_F77='-Wl,'
13802 lt_prog_compiler_pic_F77='-KPIC'
13803 lt_prog_compiler_static_F77='-Bstatic'
13807 if test -d /usr/nec ;then
13808 lt_prog_compiler_pic_F77='-Kconform_pic'
13809 lt_prog_compiler_static_F77='-Bstatic'
13813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13814 lt_prog_compiler_wl_F77='-Wl,'
13815 lt_prog_compiler_pic_F77='-KPIC'
13816 lt_prog_compiler_static_F77='-Bstatic'
13820 lt_prog_compiler_wl_F77='-Wl,'
13821 lt_prog_compiler_can_build_shared_F77=no
13825 lt_prog_compiler_pic_F77='-pic'
13826 lt_prog_compiler_static_F77='-Bstatic'
13830 lt_prog_compiler_can_build_shared_F77=no
13835 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13836 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13839 # Check to make sure the PIC flag actually works.
13841 if test -n "$lt_prog_compiler_pic_F77"; then
13843 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13844 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13845 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 lt_prog_compiler_pic_works_F77=no
13849 ac_outfile=conftest.$ac_objext
13850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13851 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13852 # Insert the option either (1) after the last *FLAGS variable, or
13853 # (2) before a word containing "conftest.", or (3) at the end.
13854 # Note that $ac_compile itself does not contain backslashes and begins
13855 # with a dollar sign (not a hyphen), so the echo should work correctly.
13856 # The option is referenced via a variable to avoid confusing sed.
13857 lt_compile=`echo "$ac_compile" | $SED \
13858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13860 -e 's:$: $lt_compiler_flag:'`
13861 (eval echo "\"\$as_me:13861: $lt_compile\"" >&5)
13862 (eval "$lt_compile" 2>conftest.err)
13864 cat conftest.err >&5
13865 echo "$as_me:13865: \$? = $ac_status" >&5
13866 if (exit $ac_status) && test -s "$ac_outfile"; then
13867 # The compiler can only warn and ignore the option if not recognized
13868 # So say no if there are warnings other than the usual output.
13869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13872 lt_prog_compiler_pic_works_F77=yes
13878 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13879 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13881 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13882 case $lt_prog_compiler_pic_F77 in
13884 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13887 lt_prog_compiler_pic_F77=
13888 lt_prog_compiler_can_build_shared_F77=no
13893 # For platforms which do not support PIC, -DPIC is meaningless:
13895 lt_prog_compiler_pic_F77=
13898 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13903 # Check to make sure the static flag actually works.
13905 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13906 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13907 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13908 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 lt_prog_compiler_static_works_F77=no
13912 save_LDFLAGS="$LDFLAGS"
13913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13914 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13916 # The linker can only warn and ignore the option if not recognized
13917 # So say no if there are warnings
13918 if test -s conftest.err; then
13919 # Append any errors to the config.log.
13920 cat conftest.err 1>&5
13921 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13923 if diff conftest.exp conftest.er2 >/dev/null; then
13924 lt_prog_compiler_static_works_F77=yes
13927 lt_prog_compiler_static_works_F77=yes
13931 LDFLAGS="$save_LDFLAGS"
13934 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13935 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13937 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13940 lt_prog_compiler_static_F77=
13944 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13945 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13946 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 lt_cv_prog_compiler_c_o_F77=no
13950 $rm -r conftest 2>/dev/null
13954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13956 lt_compiler_flag="-o out/conftest2.$ac_objext"
13957 # Insert the option either (1) after the last *FLAGS variable, or
13958 # (2) before a word containing "conftest.", or (3) at the end.
13959 # Note that $ac_compile itself does not contain backslashes and begins
13960 # with a dollar sign (not a hyphen), so the echo should work correctly.
13961 lt_compile=`echo "$ac_compile" | $SED \
13962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964 -e 's:$: $lt_compiler_flag:'`
13965 (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
13966 (eval "$lt_compile" 2>out/conftest.err)
13968 cat out/conftest.err >&5
13969 echo "$as_me:13969: \$? = $ac_status" >&5
13970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13972 # The compiler can only warn and ignore the option if not recognized
13973 # So say no if there are warnings
13974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13977 lt_cv_prog_compiler_c_o_F77=yes
13982 # SGI C++ compiler will create directory out/ii_files/ for
13983 # template instantiation
13984 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13985 $rm out/* && rmdir out
13991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13992 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13995 hard_links="nottested"
13996 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13997 # do not overwrite the value of need_locks provided by the user
13998 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13999 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14004 ln conftest.a conftest.b 2>&5 || hard_links=no
14005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14006 { echo "$as_me:$LINENO: result: $hard_links" >&5
14007 echo "${ECHO_T}$hard_links" >&6; }
14008 if test "$hard_links" = no; then
14009 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14010 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14017 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14018 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14021 allow_undefined_flag_F77=
14022 enable_shared_with_static_runtimes_F77=no
14024 archive_expsym_cmds_F77=
14025 old_archive_From_new_cmds_F77=
14026 old_archive_from_expsyms_cmds_F77=
14027 export_dynamic_flag_spec_F77=
14028 whole_archive_flag_spec_F77=
14029 thread_safe_flag_spec_F77=
14030 hardcode_libdir_flag_spec_F77=
14031 hardcode_libdir_flag_spec_ld_F77=
14032 hardcode_libdir_separator_F77=
14033 hardcode_direct_F77=no
14034 hardcode_minus_L_F77=no
14035 hardcode_shlibpath_var_F77=unsupported
14036 link_all_deplibs_F77=unknown
14037 hardcode_automatic_F77=no
14039 module_expsym_cmds_F77=
14040 always_export_symbols_F77=no
14041 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14042 # include_expsyms should be a list of space-separated symbols to be *always*
14043 # included in the symbol list
14044 include_expsyms_F77=
14045 # exclude_expsyms can be an extended regexp of symbols to exclude
14046 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14048 # as well as any symbol that contains `d'.
14049 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14051 # platforms (ab)use it in PIC code, but their linkers get confused if
14052 # the symbol is explicitly referenced. Since portable code cannot
14053 # rely on this symbol name, it's probably fine to never include it in
14054 # preloaded symbol tables.
14055 extract_expsyms_cmds=
14056 # Just being paranoid about ensuring that cc_basename is set.
14057 for cc_temp in $compiler""; do
14059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14065 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14068 cygwin* | mingw* | pw32*)
14069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14070 # When not using gcc, we currently assume that we are using
14071 # Microsoft Visual C++.
14072 if test "$GCC" != yes; then
14077 # we just hope/assume this is gcc and not c89 (= MSVC++)
14086 if test "$with_gnu_ld" = yes; then
14087 # If archive_cmds runs LD, not CC, wlarc should be empty
14090 # Set some defaults for GNU ld with shared library support. These
14091 # are reset later if shared libraries are not supported. Putting them
14092 # here allows them to be overridden if necessary.
14093 runpath_var=LD_RUN_PATH
14094 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14095 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14096 # ancient GNU ld didn't support --whole-archive et. al.
14097 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14098 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14100 whole_archive_flag_spec_F77=
14102 supports_anon_versioning=no
14103 case `$LD -v 2>/dev/null` in
14104 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14105 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14106 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14107 *\ 2.11.*) ;; # other 2.11 versions
14108 *) supports_anon_versioning=yes ;;
14111 # See if GNU ld supports shared libraries.
14113 aix3* | aix4* | aix5*)
14114 # On AIX/PPC, the GNU linker is very broken
14115 if test "$host_cpu" != ia64; then
14119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14120 *** to be unable to reliably create shared libraries on AIX.
14121 *** Therefore, libtool is disabling shared libraries support. If you
14122 *** really care for shared libraries, you may want to modify your PATH
14123 *** so that a non-GNU linker is found, and then restart.
14130 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)'
14131 hardcode_libdir_flag_spec_F77='-L$libdir'
14132 hardcode_minus_L_F77=yes
14134 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14135 # that the semantics of dynamic libraries on AmigaOS, at least up
14136 # to version 4, is to share data among multiple programs linked
14137 # with the same dynamic library. Since this doesn't match the
14138 # behavior of shared libraries on other platforms, we can't use
14144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14145 allow_undefined_flag_F77=unsupported
14146 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14147 # support --undefined. This deserves some investigation. FIXME
14148 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 cygwin* | mingw* | pw32*)
14155 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14156 # as there is no search path for DLLs.
14157 hardcode_libdir_flag_spec_F77='-L$libdir'
14158 allow_undefined_flag_F77=unsupported
14159 always_export_symbols_F77=no
14160 enable_shared_with_static_runtimes_F77=yes
14161 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14163 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14165 # If the export-symbols file already is a .def file (1st line
14166 # is EXPORTS), use it as is; otherwise, prepend...
14167 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14168 cp $export_symbols $output_objdir/$soname.def;
14170 echo EXPORTS > $output_objdir/$soname.def;
14171 cat $export_symbols >> $output_objdir/$soname.def;
14173 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14180 hardcode_direct_F77=no
14181 hardcode_shlibpath_var_F77=no
14182 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14183 export_dynamic_flag_spec_F77='${wl}-E'
14184 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14185 # Instead, shared libraries are loaded at an image base (0x10000000 by
14186 # default) and relocated if they conflict, which is a slow very memory
14187 # consuming and fragmenting process. To avoid this, we pick a random,
14188 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14189 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14190 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'
14191 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'
14194 linux* | k*bsd*-gnu)
14195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14197 case $cc_basename,$host_cpu in
14198 pgcc*) # Portland Group C compiler
14199 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'
14200 tmp_addflag=' $pic_flag'
14202 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14203 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'
14204 tmp_addflag=' $pic_flag -Mnomain' ;;
14205 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14206 tmp_addflag=' -i_dynamic' ;;
14207 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14208 tmp_addflag=' -i_dynamic -nofor_main' ;;
14209 ifc* | ifort*) # Intel Fortran compiler
14210 tmp_addflag=' -nofor_main' ;;
14212 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214 if test $supports_anon_versioning = yes; then
14215 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14217 $echo "local: *; };" >> $output_objdir/$libname.ver~
14218 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14220 link_all_deplibs_F77=no
14226 netbsd* | netbsdelf*-gnu)
14227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14228 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14231 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14237 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14242 *** create shared libraries on Solaris systems. Therefore, libtool
14243 *** is disabling shared libraries support. We urge you to upgrade GNU
14244 *** binutils to release 2.9.1 or newer. Another option is to modify
14245 *** your PATH or compiler configuration so that the native linker is
14246 *** used, and then restart.
14249 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14258 case `$LD -v 2>&1` in
14259 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14264 *** reliably create shared libraries on SCO systems. Therefore, libtool
14265 *** is disabling shared libraries support. We urge you to upgrade GNU
14266 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14267 *** your PATH or compiler configuration so that the native linker is
14268 *** used, and then restart.
14273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14275 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14276 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14285 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14287 hardcode_direct_F77=yes
14288 hardcode_shlibpath_var_F77=no
14292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14294 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14301 if test "$ld_shlibs_F77" = no; then
14303 hardcode_libdir_flag_spec_F77=
14304 export_dynamic_flag_spec_F77=
14305 whole_archive_flag_spec_F77=
14308 # PORTME fill in a description of your system's linker (not GNU ld)
14311 allow_undefined_flag_F77=unsupported
14312 always_export_symbols_F77=yes
14313 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'
14314 # Note: this linker hardcodes the directories in LIBPATH if there
14315 # are no directories specified by -L.
14316 hardcode_minus_L_F77=yes
14317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14318 # Neither direct hardcoding nor static linking is supported with a
14320 hardcode_direct_F77=unsupported
14325 if test "$host_cpu" = ia64; then
14326 # On IA64, the linker does run time linking by default, so we don't
14327 # have to do anything special.
14328 aix_use_runtimelinking=no
14329 exp_sym_flag='-Bexport'
14332 # If we're using GNU nm, then we don't want the "-C" option.
14333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14334 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14335 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'
14337 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'
14339 aix_use_runtimelinking=no
14341 # Test if we are trying to use run time linking or normal
14342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14343 # need to do runtime linking.
14344 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14345 for ld_flag in $LDFLAGS; do
14346 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14347 aix_use_runtimelinking=yes
14354 exp_sym_flag='-bexport'
14355 no_entry_flag='-bnoentry'
14358 # When large executables or shared objects are built, AIX ld can
14359 # have problems creating the table of contents. If linking a library
14360 # or program results in "error TOC overflow" add -mminimal-toc to
14361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14364 archive_cmds_F77=''
14365 hardcode_direct_F77=yes
14366 hardcode_libdir_separator_F77=':'
14367 link_all_deplibs_F77=yes
14369 if test "$GCC" = yes; then
14370 case $host_os in aix4.[012]|aix4.[012].*)
14371 # We only want to do this on AIX 4.2 and lower, the check
14372 # below for broken collect2 doesn't work under 4.3+
14373 collect2name=`${CC} -print-prog-name=collect2`
14374 if test -f "$collect2name" && \
14375 strings "$collect2name" | grep resolve_lib_name >/dev/null
14377 # We have reworked collect2
14378 hardcode_direct_F77=yes
14380 # We have old collect2
14381 hardcode_direct_F77=unsupported
14382 # It fails to find uninstalled libraries when the uninstalled
14383 # path is not listed in the libpath. Setting hardcode_minus_L
14384 # to unsupported forces relinking
14385 hardcode_minus_L_F77=yes
14386 hardcode_libdir_flag_spec_F77='-L$libdir'
14387 hardcode_libdir_separator_F77=
14391 shared_flag='-shared'
14392 if test "$aix_use_runtimelinking" = yes; then
14393 shared_flag="$shared_flag "'${wl}-G'
14397 if test "$host_cpu" = ia64; then
14398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14399 # chokes on -Wl,-G. The following line is correct:
14402 if test "$aix_use_runtimelinking" = yes; then
14403 shared_flag='${wl}-G'
14405 shared_flag='${wl}-bM:SRE'
14410 # It seems that -bexpall does not export symbols beginning with
14411 # underscore (_), so it is better to generate a list of symbols to export.
14412 always_export_symbols_F77=yes
14413 if test "$aix_use_runtimelinking" = yes; then
14414 # Warning - without using the other runtime loading flags (-brtl),
14415 # -berok will link without error, but may produce a broken library.
14416 allow_undefined_flag_F77='-berok'
14417 # Determine the default libpath from the value encoded in an empty executable.
14418 cat >conftest.$ac_ext <<_ACEOF
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (ac_try="$ac_link"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_link") 2>conftest.er1
14432 grep -v '^ *+' conftest.er1 >conftest.err
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && {
14437 test -z "$ac_f77_werror_flag" ||
14438 test ! -s conftest.err
14439 } && test -s conftest$ac_exeext &&
14440 $as_test_x conftest$ac_exeext; then
14442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14444 # Check for a 64-bit object if we didn't find anything.
14445 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; }
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14455 conftest$ac_exeext conftest.$ac_ext
14456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14458 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14459 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"
14461 if test "$host_cpu" = ia64; then
14462 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14463 allow_undefined_flag_F77="-z nodefs"
14464 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"
14466 # Determine the default libpath from the value encoded in an empty executable.
14467 cat >conftest.$ac_ext <<_ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_link") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_f77_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest$ac_exeext &&
14489 $as_test_x conftest$ac_exeext; then
14491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14493 # Check for a 64-bit object if we didn't find anything.
14494 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; }
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504 conftest$ac_exeext conftest.$ac_ext
14505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14507 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14508 # Warning - without using the other run time loading flags,
14509 # -berok will link without error, but may produce a broken library.
14510 no_undefined_flag_F77=' ${wl}-bernotok'
14511 allow_undefined_flag_F77=' ${wl}-berok'
14512 # Exported symbols can be pulled into shared objects from archives
14513 whole_archive_flag_spec_F77='$convenience'
14514 archive_cmds_need_lc_F77=yes
14515 # This is similar to how AIX traditionally builds its shared libraries.
14516 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'
14522 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)'
14523 hardcode_libdir_flag_spec_F77='-L$libdir'
14524 hardcode_minus_L_F77=yes
14525 # see comment about different semantics on the GNU ld section
14530 export_dynamic_flag_spec_F77=-rdynamic
14533 cygwin* | mingw* | pw32*)
14534 # When not using gcc, we currently assume that we are using
14535 # Microsoft Visual C++.
14536 # hardcode_libdir_flag_spec is actually meaningless, as there is
14537 # no search path for DLLs.
14538 hardcode_libdir_flag_spec_F77=' '
14539 allow_undefined_flag_F77=unsupported
14540 # Tell ltmain to make .lib files, not .a files.
14542 # Tell ltmain to make .dll files, not .so files.
14544 # FIXME: Setting linknames here is a bad hack.
14545 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14546 # The linker will automatically build a .lib file if we build a DLL.
14547 old_archive_From_new_cmds_F77='true'
14548 # FIXME: Should let the user specify the lib program.
14549 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14550 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14551 enable_shared_with_static_runtimes_F77=yes
14554 darwin* | rhapsody*)
14556 rhapsody* | darwin1.[012])
14557 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14561 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14563 case ${MACOSX_DEPLOYMENT_TARGET} in
14565 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14568 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14574 archive_cmds_need_lc_F77=no
14575 hardcode_direct_F77=no
14576 hardcode_automatic_F77=yes
14577 hardcode_shlibpath_var_F77=unsupported
14578 whole_archive_flag_spec_F77=''
14579 link_all_deplibs_F77=yes
14580 if test "$GCC" = yes ; then
14581 output_verbose_link_cmd='echo'
14582 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14583 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14585 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}'
14586 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}'
14588 case $cc_basename in
14590 output_verbose_link_cmd='echo'
14591 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14592 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14594 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}'
14595 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}'
14605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14606 hardcode_libdir_flag_spec_F77='-L$libdir'
14607 hardcode_shlibpath_var_F77=no
14614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14615 # support. Future versions do this automatically, but an explicit c++rt0.o
14616 # does not break anything, and helps significantly (at the cost of a little
14619 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14620 hardcode_libdir_flag_spec_F77='-R$libdir'
14621 hardcode_direct_F77=yes
14622 hardcode_shlibpath_var_F77=no
14625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14627 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14628 hardcode_direct_F77=yes
14629 hardcode_minus_L_F77=yes
14630 hardcode_shlibpath_var_F77=no
14633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14634 freebsd* | dragonfly*)
14635 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14636 hardcode_libdir_flag_spec_F77='-R$libdir'
14637 hardcode_direct_F77=yes
14638 hardcode_shlibpath_var_F77=no
14642 if test "$GCC" = yes; then
14643 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'
14645 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'
14647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14648 hardcode_libdir_separator_F77=:
14649 hardcode_direct_F77=yes
14651 # hardcode_minus_L: Not really in the search PATH,
14652 # but as the default location of the library.
14653 hardcode_minus_L_F77=yes
14654 export_dynamic_flag_spec_F77='${wl}-E'
14658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14661 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14663 if test "$with_gnu_ld" = no; then
14664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14665 hardcode_libdir_separator_F77=:
14667 hardcode_direct_F77=yes
14668 export_dynamic_flag_spec_F77='${wl}-E'
14670 # hardcode_minus_L: Not really in the search PATH,
14671 # but as the default location of the library.
14672 hardcode_minus_L_F77=yes
14677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14680 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14692 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14698 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14702 if test "$with_gnu_ld" = no; then
14703 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14704 hardcode_libdir_separator_F77=:
14708 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14709 hardcode_direct_F77=no
14710 hardcode_shlibpath_var_F77=no
14713 hardcode_direct_F77=yes
14714 export_dynamic_flag_spec_F77='${wl}-E'
14716 # hardcode_minus_L: Not really in the search PATH,
14717 # but as the default location of the library.
14718 hardcode_minus_L_F77=yes
14724 irix5* | irix6* | nonstopux*)
14725 if test "$GCC" = yes; then
14726 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'
14728 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'
14729 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14732 hardcode_libdir_separator_F77=:
14733 link_all_deplibs_F77=yes
14736 netbsd* | netbsdelf*-gnu)
14737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14738 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14740 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14742 hardcode_libdir_flag_spec_F77='-R$libdir'
14743 hardcode_direct_F77=yes
14744 hardcode_shlibpath_var_F77=no
14748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14749 hardcode_direct_F77=yes
14750 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14751 hardcode_libdir_separator_F77=:
14752 hardcode_shlibpath_var_F77=no
14756 hardcode_direct_F77=yes
14757 hardcode_shlibpath_var_F77=no
14758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14760 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14762 export_dynamic_flag_spec_F77='${wl}-E'
14765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14767 hardcode_libdir_flag_spec_F77='-R$libdir'
14770 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14771 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14778 hardcode_libdir_flag_spec_F77='-L$libdir'
14779 hardcode_minus_L_F77=yes
14780 allow_undefined_flag_F77=unsupported
14781 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'
14782 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14786 if test "$GCC" = yes; then
14787 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14788 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'
14790 allow_undefined_flag_F77=' -expect_unresolved \*'
14791 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'
14793 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14794 hardcode_libdir_separator_F77=:
14797 osf4* | osf5*) # as osf3* with the addition of -msym flag
14798 if test "$GCC" = yes; then
14799 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14800 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'
14801 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14803 allow_undefined_flag_F77=' -expect_unresolved \*'
14804 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'
14805 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~
14806 $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'
14808 # Both c and cxx compiler support -rpath directly
14809 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14811 hardcode_libdir_separator_F77=:
14815 no_undefined_flag_F77=' -z text'
14816 if test "$GCC" = yes; then
14818 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14823 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14827 hardcode_libdir_flag_spec_F77='-R$libdir'
14828 hardcode_shlibpath_var_F77=no
14830 solaris2.[0-5] | solaris2.[0-5].*) ;;
14832 # The compiler driver will combine linker options so we
14833 # cannot just pass the convience library names through
14834 # without $wl, iff we do not link with $LD.
14835 # Luckily, gcc supports the same syntax we need for Sun Studio.
14836 # Supported since Solaris 2.6 (maybe 2.5.1?)
14839 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14841 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' ;;
14844 link_all_deplibs_F77=yes
14848 if test "x$host_vendor" = xsequent; then
14849 # Use $CC to link under sequent, because it throws in some extra .o
14850 # files that make .init and .fini sections work.
14851 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14855 hardcode_libdir_flag_spec_F77='-L$libdir'
14856 hardcode_direct_F77=yes
14857 hardcode_minus_L_F77=yes
14858 hardcode_shlibpath_var_F77=no
14862 case $host_vendor in
14864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865 hardcode_direct_F77=yes # is this really true???
14868 ## LD is ld it makes a PLAMLIB
14869 ## CC just makes a GrossModule.
14870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14871 reload_cmds_F77='$CC -r -o $output$reload_objs'
14872 hardcode_direct_F77=no
14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14879 runpath_var='LD_RUN_PATH'
14880 hardcode_shlibpath_var_F77=no
14884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_shlibpath_var_F77=no
14886 export_dynamic_flag_spec_F77='-Bexport'
14890 if test -d /usr/nec; then
14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_shlibpath_var_F77=no
14893 runpath_var=LD_RUN_PATH
14894 hardcode_runpath_var=yes
14899 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14900 no_undefined_flag_F77='${wl}-z,text'
14901 archive_cmds_need_lc_F77=no
14902 hardcode_shlibpath_var_F77=no
14903 runpath_var='LD_RUN_PATH'
14905 if test "$GCC" = yes; then
14906 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14907 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14909 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 sysv5* | sco3.2v5* | sco5v6*)
14915 # Note: We can NOT use -z defs as we might desire, because we do not
14916 # link with -lc, and that would cause any symbols used from libc to
14917 # always be unresolved, which means just about no library would
14918 # ever link correctly. If we're not using GNU ld we use -z text
14919 # though, which does catch some bad symbols but isn't as heavy-handed
14921 no_undefined_flag_F77='${wl}-z,text'
14922 allow_undefined_flag_F77='${wl}-z,nodefs'
14923 archive_cmds_need_lc_F77=no
14924 hardcode_shlibpath_var_F77=no
14925 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14926 hardcode_libdir_separator_F77=':'
14927 link_all_deplibs_F77=yes
14928 export_dynamic_flag_spec_F77='${wl}-Bexport'
14929 runpath_var='LD_RUN_PATH'
14931 if test "$GCC" = yes; then
14932 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14933 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14936 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_libdir_flag_spec_F77='-L$libdir'
14943 hardcode_shlibpath_var_F77=no
14952 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14953 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14954 test "$ld_shlibs_F77" = no && can_build_shared=no
14957 # Do we need to explicitly link libc?
14959 case "x$archive_cmds_need_lc_F77" in
14961 # Assume -lc should be added
14962 archive_cmds_need_lc_F77=yes
14964 if test "$enable_shared" = yes && test "$GCC" = yes; then
14965 case $archive_cmds_F77 in
14967 # FIXME: we may have to deal with multi-command sequences.
14970 # Test whether the compiler implicitly links with -lc since on some
14971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14972 # to ld, don't add -lc before -lgcc.
14973 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979 (eval $ac_compile) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } 2>conftest.err; then
14985 libobjs=conftest.$ac_objext
14987 wl=$lt_prog_compiler_wl_F77
14988 pic_flag=$lt_prog_compiler_pic_F77
14994 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14995 allow_undefined_flag_F77=
14996 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14997 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }
15002 archive_cmds_need_lc_F77=no
15004 archive_cmds_need_lc_F77=yes
15006 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15008 cat conftest.err 1>&5
15011 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15012 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15019 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15020 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15021 library_names_spec=
15022 libname_spec='lib$name'
15026 postuninstall_cmds=
15030 shlibpath_overrides_runpath=unknown
15032 dynamic_linker="$host_os ld.so"
15033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15034 if test "$GCC" = yes; then
15035 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15036 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15037 # if the path contains ";" then we assume it to be the separator
15038 # otherwise default to the standard path separator (i.e. ":") - it is
15039 # assumed that no part of a normal pathname contains ";" but that should
15040 # okay in the real world where ";" in dirpaths is itself problematic.
15041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15048 need_lib_prefix=unknown
15049 hardcode_into_libs=no
15051 # when you set need_version to no, make sure it does not cause -set_version
15052 # flags to be left without arguments
15053 need_version=unknown
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15059 shlibpath_var=LIBPATH
15061 # AIX 3 has no versioning support, so we append a major version to the name.
15062 soname_spec='${libname}${release}${shared_ext}$major'
15069 hardcode_into_libs=yes
15070 if test "$host_cpu" = ia64; then
15071 # AIX 5 supports IA64
15072 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15073 shlibpath_var=LD_LIBRARY_PATH
15075 # With GCC up to 2.95.x, collect2 would create an import file
15076 # for dependence libraries. The import file would start with
15077 # the line `#! .'. This would cause the generated library to
15078 # depend on `.', always an invalid library. This was fixed in
15079 # development snapshots of GCC prior to 3.0.
15081 aix4 | aix4.[01] | aix4.[01].*)
15082 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15084 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15087 can_build_shared=no
15091 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15092 # soname into executable. Probably we can add versioning support to
15093 # collect2, so additional links can be useful in future.
15094 if test "$aix_use_runtimelinking" = yes; then
15095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15096 # instead of lib<name>.a to let people know that these are not
15097 # typical AIX shared libraries.
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 # We preserve .a as extension for shared libraries through AIX4.2
15101 # and later when we are not doing run time linking.
15102 library_names_spec='${libname}${release}.a $libname.a'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15105 shlibpath_var=LIBPATH
15110 library_names_spec='$libname.ixlibrary $libname.a'
15111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15112 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'
15116 library_names_spec='${libname}${shared_ext}'
15117 dynamic_linker="$host_os ld.so"
15118 shlibpath_var=LIBRARY_PATH
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15127 shlibpath_var=LD_LIBRARY_PATH
15128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15130 # the default ld.so.conf also contains /usr/contrib/lib and
15131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15132 # libtool to hard-code these into programs
15135 cygwin* | mingw* | pw32*)
15136 version_type=windows
15141 case $GCC,$host_os in
15142 yes,cygwin* | yes,mingw* | yes,pw32*)
15143 library_names_spec='$libname.dll.a'
15144 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15145 postinstall_cmds='base_file=`basename \${file}`~
15146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15147 dldir=$destdir/`dirname \$dlpath`~
15148 test -d \$dldir || mkdir -p \$dldir~
15149 $install_prog $dir/$dlname \$dldir/$dlname~
15150 chmod a+x \$dldir/$dlname'
15151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15152 dlpath=$dir/\$dldll~
15154 shlibpath_overrides_runpath=yes
15158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15160 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15163 # MinGW DLLs use traditional 'lib' prefix
15164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15166 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15167 # It is most probably a Windows format PATH printed by
15168 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15169 # path with ; separators, and with drive letters. We can handle the
15170 # drive letters (cygwin fileutils understands them), so leave them,
15171 # especially as we might pass files found there to a mingw objdump,
15172 # which wouldn't understand a cygwinified path. Ahh.
15173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15179 # pw32 DLLs use 'pw' prefix rather than 'lib'
15180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15189 dynamic_linker='Win32 ld.exe'
15190 # FIXME: first we should search . and the directory the executable is in
15194 darwin* | rhapsody*)
15195 dynamic_linker="$host_os dyld"
15196 version_type=darwin
15199 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15200 soname_spec='${libname}${release}${major}$shared_ext'
15201 shlibpath_overrides_runpath=yes
15202 shlibpath_var=DYLD_LIBRARY_PATH
15203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15205 if test "$GCC" = yes; then
15206 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"`
15208 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 shlibpath_var=LD_LIBRARY_PATH
15226 freebsd* | dragonfly*)
15227 # DragonFly does not have aout. When/if they implement a new
15228 # versioning mechanism, adjust this.
15229 if test -x /usr/bin/objformat; then
15230 objformat=`/usr/bin/objformat`
15233 freebsd[123]*) objformat=aout ;;
15234 *) objformat=elf ;;
15237 version_type=freebsd-$objformat
15238 case $version_type in
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15249 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=yes
15254 freebsd3.[01]* | freebsdelf3.[01]*)
15255 shlibpath_overrides_runpath=yes
15256 hardcode_into_libs=yes
15258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15260 shlibpath_overrides_runpath=no
15261 hardcode_into_libs=yes
15263 freebsd*) # from 4.6 on
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 hardcode_into_libs=yes
15280 hpux9* | hpux10* | hpux11*)
15281 # Give a soname corresponding to the major version so that dld.sl refuses to
15282 # link against other versions.
15289 hardcode_into_libs=yes
15290 dynamic_linker="$host_os dld.so"
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 if test "X$HPUX_IA64_MODE" = X32; then
15296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15304 hardcode_into_libs=yes
15305 dynamic_linker="$host_os dld.sl"
15306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15315 dynamic_linker="$host_os dld.sl"
15316 shlibpath_var=SHLIB_PATH
15317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15322 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15323 postinstall_cmds='chmod 555 $lib'
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=no
15335 hardcode_into_libs=yes
15338 irix5* | irix6* | nonstopux*)
15340 nonstopux*) version_type=nonstopux ;;
15342 if test "$lt_cv_prog_gnu_ld" = yes; then
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15353 irix5* | nonstopux*)
15354 libsuff= shlibsuff=
15357 case $LD in # libtool.m4 will add one of these switches to LD
15358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15359 libsuff= shlibsuff= libmagic=32-bit;;
15360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15361 libsuff=32 shlibsuff=N32 libmagic=N32;;
15362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15364 *) libsuff= shlibsuff= libmagic=never-match;;
15368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15369 shlibpath_overrides_runpath=no
15370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15372 hardcode_into_libs=yes
15375 # No shared lib support for Linux oldld, aout, or coff.
15376 linux*oldld* | linux*aout* | linux*coff*)
15380 # This must be Linux ELF.
15381 linux* | k*bsd*-gnu)
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 soname_spec='${libname}${release}${shared_ext}$major'
15387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=no
15390 # This implies no fast_install, which is unacceptable.
15391 # Some rework will be needed to allow for fast_install
15392 # before this can be enabled.
15393 hardcode_into_libs=yes
15395 # Append ld.so.conf contents to the search path
15396 if test -f /etc/ld.so.conf; then
15397 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' ' '`
15398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15401 # We used to test for /lib/ld.so.1 and disable shared libraries on
15402 # powerpc, because MkLinux only supported shared libraries with the
15403 # GNU dynamic linker. Since this was broken with cross compilers,
15404 # most powerpc-linux boxes support dynamic linking these days and
15405 # people can always --disable-shared, the test was removed, and we
15406 # assume the GNU/Linux dynamic linker is in use.
15407 dynamic_linker='GNU/Linux ld.so'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=no
15418 hardcode_into_libs=yes
15419 dynamic_linker='NetBSD ld.elf_so'
15426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15429 dynamic_linker='NetBSD (a.out) ld.so'
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 dynamic_linker='NetBSD ld.elf_so'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15437 hardcode_into_libs=yes
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15459 sys_lib_dlsearch_path_spec="/usr/lib"
15461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15464 *) need_version=no ;;
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15471 openbsd2.[89] | openbsd2.[89].*)
15472 shlibpath_overrides_runpath=no
15475 shlibpath_overrides_runpath=yes
15479 shlibpath_overrides_runpath=yes
15484 libname_spec='$name'
15487 library_names_spec='$libname${shared_ext} $libname.a'
15488 dynamic_linker='OS/2 ld.exe'
15489 shlibpath_var=LIBPATH
15492 osf3* | osf4* | osf5*)
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes
15511 hardcode_into_libs=yes
15512 # ldd complains unless libraries are executable
15513 postinstall_cmds='chmod +x $lib'
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15522 if test "$with_gnu_ld" = yes; then
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 case $host_vendor in
15535 shlibpath_overrides_runpath=no
15537 export_dynamic_flag_spec='${wl}-Blargedynsym'
15538 runpath_var=LD_RUN_PATH
15546 shlibpath_overrides_runpath=no
15547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15553 if test -d /usr/nec ;then
15555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15556 soname_spec='$libname${shared_ext}.$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15562 version_type=freebsd-elf
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 hardcode_into_libs=yes
15569 if test "$with_gnu_ld" = yes; then
15570 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15571 shlibpath_overrides_runpath=no
15573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15574 shlibpath_overrides_runpath=yes
15577 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15581 sys_lib_dlsearch_path_spec='/usr/lib'
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15595 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15596 echo "${ECHO_T}$dynamic_linker" >&6; }
15597 test "$dynamic_linker" = no && can_build_shared=no
15599 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15600 if test "$GCC" = yes; then
15601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15604 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15605 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15606 hardcode_action_F77=
15607 if test -n "$hardcode_libdir_flag_spec_F77" || \
15608 test -n "$runpath_var_F77" || \
15609 test "X$hardcode_automatic_F77" = "Xyes" ; then
15611 # We can hardcode non-existant directories.
15612 if test "$hardcode_direct_F77" != no &&
15613 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15614 # have to relink, otherwise we might link with an installed library
15615 # when we should be linking with a yet-to-be-installed one
15616 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15617 test "$hardcode_minus_L_F77" != no; then
15618 # Linking always hardcodes the temporary library directory.
15619 hardcode_action_F77=relink
15621 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15622 hardcode_action_F77=immediate
15625 # We cannot hardcode anything, or else we can only hardcode existing
15627 hardcode_action_F77=unsupported
15629 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15630 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15632 if test "$hardcode_action_F77" = relink; then
15633 # Fast installation is not supported
15634 enable_fast_install=no
15635 elif test "$shlibpath_overrides_runpath" = yes ||
15636 test "$enable_shared" = no; then
15637 # Fast installation is not necessary
15638 enable_fast_install=needless
15642 # The else clause should only fire when bootstrapping the
15643 # libtool distribution, otherwise you forgot to ship ltmain.sh
15644 # with your package, and you will get complaints that there are
15645 # no rules to generate ltmain.sh.
15646 if test -f "$ltmain"; then
15647 # See if we are running on zsh, and set the options which allow our commands through
15648 # without removal of \ escapes.
15649 if test -n "${ZSH_VERSION+set}" ; then
15650 setopt NO_GLOB_SUBST
15652 # Now quote all the things that may contain metacharacters while being
15653 # careful not to overquote the AC_SUBSTed values. We take copies of the
15654 # variables and quote the copies for generation of the libtool script.
15655 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15657 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15658 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15659 deplibs_check_method reload_flag reload_cmds need_locks \
15660 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15661 lt_cv_sys_global_symbol_to_c_name_address \
15662 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15663 old_postinstall_cmds old_postuninstall_cmds \
15667 lt_prog_compiler_wl_F77 \
15668 lt_prog_compiler_pic_F77 \
15669 lt_prog_compiler_static_F77 \
15670 lt_prog_compiler_no_builtin_flag_F77 \
15671 export_dynamic_flag_spec_F77 \
15672 thread_safe_flag_spec_F77 \
15673 whole_archive_flag_spec_F77 \
15674 enable_shared_with_static_runtimes_F77 \
15675 old_archive_cmds_F77 \
15676 old_archive_from_new_cmds_F77 \
15677 predep_objects_F77 \
15678 postdep_objects_F77 \
15681 compiler_lib_search_path_F77 \
15683 archive_expsym_cmds_F77 \
15684 postinstall_cmds_F77 \
15685 postuninstall_cmds_F77 \
15686 old_archive_from_expsyms_cmds_F77 \
15687 allow_undefined_flag_F77 \
15688 no_undefined_flag_F77 \
15689 export_symbols_cmds_F77 \
15690 hardcode_libdir_flag_spec_F77 \
15691 hardcode_libdir_flag_spec_ld_F77 \
15692 hardcode_libdir_separator_F77 \
15693 hardcode_automatic_F77 \
15695 module_expsym_cmds_F77 \
15696 lt_cv_prog_compiler_c_o_F77 \
15697 exclude_expsyms_F77 \
15698 include_expsyms_F77; do
15701 old_archive_cmds_F77 | \
15702 old_archive_from_new_cmds_F77 | \
15703 archive_cmds_F77 | \
15704 archive_expsym_cmds_F77 | \
15705 module_cmds_F77 | \
15706 module_expsym_cmds_F77 | \
15707 old_archive_from_expsyms_cmds_F77 | \
15708 export_symbols_cmds_F77 | \
15709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15710 postinstall_cmds | postuninstall_cmds | \
15711 old_postinstall_cmds | old_postuninstall_cmds | \
15712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15713 # Double-quote double-evaled strings.
15714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15723 *'\$0 --fallback-echo"')
15724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15730 cat <<__EOF__ >> "$cfgfile"
15731 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15735 # Shell to use when invoking shell scripts.
15738 # Whether or not to build shared libraries.
15739 build_libtool_libs=$enable_shared
15741 # Whether or not to build static libraries.
15742 build_old_libs=$enable_static
15744 # Whether or not to add -lc for building shared libraries.
15745 build_libtool_need_lc=$archive_cmds_need_lc_F77
15747 # Whether or not to disallow shared libs when runtime libs are static
15748 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15750 # Whether or not to optimize for fast installation.
15751 fast_install=$enable_fast_install
15754 host_alias=$host_alias
15758 # The build system.
15759 build_alias=$build_alias
15763 # An echo program that does not interpret backslashes.
15768 AR_FLAGS=$lt_AR_FLAGS
15773 # LTCC compiler flags.
15774 LTCFLAGS=$lt_LTCFLAGS
15776 # A language-specific compiler.
15777 CC=$lt_compiler_F77
15779 # Is the compiler the GNU C compiler?
15785 # The linker used to build libraries.
15788 # Whether we need hard or soft links.
15791 # A BSD-compatible nm program.
15794 # A symbol stripping program
15797 # Used to examine libraries when file_magic_cmd begins "file"
15798 MAGIC_CMD=$MAGIC_CMD
15800 # Used on cygwin: DLL creation program.
15803 # Used on cygwin: object dumper.
15806 # Used on cygwin: assembler.
15809 # The name of the directory that contains temporary libtool files.
15812 # How to create reloadable object files.
15813 reload_flag=$lt_reload_flag
15814 reload_cmds=$lt_reload_cmds
15816 # How to pass a linker flag through the compiler.
15817 wl=$lt_lt_prog_compiler_wl_F77
15819 # Object file suffix (normally "o").
15820 objext="$ac_objext"
15822 # Old archive suffix (normally "a").
15825 # Shared library suffix (normally ".so").
15826 shrext_cmds='$shrext_cmds'
15828 # Executable file suffix (normally "").
15831 # Additional compiler flags for building library objects.
15832 pic_flag=$lt_lt_prog_compiler_pic_F77
15835 # What is the maximum length of a command?
15836 max_cmd_len=$lt_cv_sys_max_cmd_len
15838 # Does compiler simultaneously support -c and -o options?
15839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15841 # Must we lock files when doing compilation?
15842 need_locks=$lt_need_locks
15844 # Do we need the lib prefix for modules?
15845 need_lib_prefix=$need_lib_prefix
15847 # Do we need a version for libraries?
15848 need_version=$need_version
15850 # Whether dlopen is supported.
15851 dlopen_support=$enable_dlopen
15853 # Whether dlopen of programs is supported.
15854 dlopen_self=$enable_dlopen_self
15856 # Whether dlopen of statically linked programs is supported.
15857 dlopen_self_static=$enable_dlopen_self_static
15859 # Compiler flag to prevent dynamic linking.
15860 link_static_flag=$lt_lt_prog_compiler_static_F77
15862 # Compiler flag to turn off builtin functions.
15863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15865 # Compiler flag to allow reflexive dlopens.
15866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15868 # Compiler flag to generate shared objects directly from archives.
15869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15871 # Compiler flag to generate thread-safe objects.
15872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15874 # Library versioning type.
15875 version_type=$version_type
15877 # Format of library name prefix.
15878 libname_spec=$lt_libname_spec
15880 # List of archive names. First name is the real one, the rest are links.
15881 # The last name is the one that the linker finds with -lNAME.
15882 library_names_spec=$lt_library_names_spec
15884 # The coded name of the library, if different from the real name.
15885 soname_spec=$lt_soname_spec
15887 # Commands used to build and install an old-style archive.
15889 old_archive_cmds=$lt_old_archive_cmds_F77
15890 old_postinstall_cmds=$lt_old_postinstall_cmds
15891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15893 # Create an old-style archive from a shared archive.
15894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15896 # Create a temporary old-style archive to link instead of a shared archive.
15897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15899 # Commands used to build and install a shared archive.
15900 archive_cmds=$lt_archive_cmds_F77
15901 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15902 postinstall_cmds=$lt_postinstall_cmds
15903 postuninstall_cmds=$lt_postuninstall_cmds
15905 # Commands used to build a loadable module (assumed same as above if empty)
15906 module_cmds=$lt_module_cmds_F77
15907 module_expsym_cmds=$lt_module_expsym_cmds_F77
15909 # Commands to strip libraries.
15910 old_striplib=$lt_old_striplib
15911 striplib=$lt_striplib
15913 # Dependencies to place before the objects being linked to create a
15915 predep_objects=$lt_predep_objects_F77
15917 # Dependencies to place after the objects being linked to create a
15919 postdep_objects=$lt_postdep_objects_F77
15921 # Dependencies to place before the objects being linked to create a
15923 predeps=$lt_predeps_F77
15925 # Dependencies to place after the objects being linked to create a
15927 postdeps=$lt_postdeps_F77
15929 # The library search path used internally by the compiler when linking
15930 # a shared library.
15931 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15933 # Method to check whether dependent libraries are shared objects.
15934 deplibs_check_method=$lt_deplibs_check_method
15936 # Command to use when deplibs_check_method == file_magic.
15937 file_magic_cmd=$lt_file_magic_cmd
15939 # Flag that allows shared libraries with undefined symbols to be built.
15940 allow_undefined_flag=$lt_allow_undefined_flag_F77
15942 # Flag that forces no undefined symbols.
15943 no_undefined_flag=$lt_no_undefined_flag_F77
15945 # Commands used to finish a libtool library installation in a directory.
15946 finish_cmds=$lt_finish_cmds
15948 # Same as above, but a single script fragment to be evaled but not shown.
15949 finish_eval=$lt_finish_eval
15951 # Take the output of nm and produce a listing of raw symbols and C names.
15952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15954 # Transform the output of nm in a proper C declaration
15955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15957 # Transform the output of nm in a C name address pair
15958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15960 # This is the shared library runtime path variable.
15961 runpath_var=$runpath_var
15963 # This is the shared library path variable.
15964 shlibpath_var=$shlibpath_var
15966 # Is shlibpath searched before the hard-coded library search path?
15967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15969 # How to hardcode a shared library path into an executable.
15970 hardcode_action=$hardcode_action_F77
15972 # Whether we should hardcode library paths into libraries.
15973 hardcode_into_libs=$hardcode_into_libs
15975 # Flag to hardcode \$libdir into a binary during linking.
15976 # This must work even if \$libdir does not exist.
15977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15979 # If ld is used when linking, flag to hardcode \$libdir into
15980 # a binary during linking. This must work even if \$libdir does
15982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15984 # Whether we need a single -rpath flag with a separated argument.
15985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15988 # resulting binary.
15989 hardcode_direct=$hardcode_direct_F77
15991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15992 # resulting binary.
15993 hardcode_minus_L=$hardcode_minus_L_F77
15995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15996 # the resulting binary.
15997 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15999 # Set to yes if building a shared library automatically hardcodes DIR into the library
16000 # and all subsequent libraries and executables linked against it.
16001 hardcode_automatic=$hardcode_automatic_F77
16003 # Variables whose values should be saved in libtool wrapper scripts and
16004 # restored at relink time.
16005 variables_saved_for_relink="$variables_saved_for_relink"
16007 # Whether libtool must link a program against all its dependency libraries.
16008 link_all_deplibs=$link_all_deplibs_F77
16010 # Compile-time system search path for libraries
16011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16013 # Run-time system search path for libraries
16014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16016 # Fix the shell variable \$srcfile for the compiler.
16017 fix_srcfile_path="$fix_srcfile_path_F77"
16019 # Set to yes if exported symbols are required.
16020 always_export_symbols=$always_export_symbols_F77
16022 # The commands to list exported symbols.
16023 export_symbols_cmds=$lt_export_symbols_cmds_F77
16025 # The commands to extract the exported symbol list from a shared archive.
16026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16028 # Symbols that should not be listed in the preloaded symbols.
16029 exclude_expsyms=$lt_exclude_expsyms_F77
16031 # Symbols that must always be exported.
16032 include_expsyms=$lt_include_expsyms_F77
16034 # ### END LIBTOOL TAG CONFIG: $tagname
16040 # If there is no Makefile yet, we rely on a make rule to execute
16041 # `config.status --recheck' to rerun these tests and create the
16042 # libtool script then.
16043 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16044 if test -f "$ltmain_in"; then
16045 test -f Makefile && make "$ltmain"
16051 ac_cpp='$CPP $CPPFLAGS'
16052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16064 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16067 # Source file extension for Java test sources.
16070 # Object file extension for compiled Java test sources.
16074 # Code to be used in simple compile tests
16075 lt_simple_compile_test_code="class foo {}\n"
16077 # Code to be used in simple link tests
16078 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16082 # If no C compiler was specified, use CC.
16085 # If no C compiler flags were specified, use CFLAGS.
16086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16088 # Allow CC to be a program name with arguments.
16092 # save warnings/boilerplate of simple test code
16093 ac_outfile=conftest.$ac_objext
16094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16096 _lt_compiler_boilerplate=`cat conftest.err`
16099 ac_outfile=conftest.$ac_objext
16100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16102 _lt_linker_boilerplate=`cat conftest.err`
16106 # Allow CC to be a program name with arguments.
16111 for cc_temp in $compiler""; do
16113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16122 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16123 archive_cmds_need_lc_GCJ=no
16125 old_archive_cmds_GCJ=$old_archive_cmds
16128 lt_prog_compiler_no_builtin_flag_GCJ=
16130 if test "$GCC" = yes; then
16131 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16134 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 lt_cv_prog_compiler_rtti_exceptions=no
16140 ac_outfile=conftest.$ac_objext
16141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16142 lt_compiler_flag="-fno-rtti -fno-exceptions"
16143 # Insert the option either (1) after the last *FLAGS variable, or
16144 # (2) before a word containing "conftest.", or (3) at the end.
16145 # Note that $ac_compile itself does not contain backslashes and begins
16146 # with a dollar sign (not a hyphen), so the echo should work correctly.
16147 # The option is referenced via a variable to avoid confusing sed.
16148 lt_compile=`echo "$ac_compile" | $SED \
16149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16151 -e 's:$: $lt_compiler_flag:'`
16152 (eval echo "\"\$as_me:16152: $lt_compile\"" >&5)
16153 (eval "$lt_compile" 2>conftest.err)
16155 cat conftest.err >&5
16156 echo "$as_me:16156: \$? = $ac_status" >&5
16157 if (exit $ac_status) && test -s "$ac_outfile"; then
16158 # The compiler can only warn and ignore the option if not recognized
16159 # So say no if there are warnings other than the usual output.
16160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16163 lt_cv_prog_compiler_rtti_exceptions=yes
16169 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16173 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16180 lt_prog_compiler_wl_GCJ=
16181 lt_prog_compiler_pic_GCJ=
16182 lt_prog_compiler_static_GCJ=
16184 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16187 if test "$GCC" = yes; then
16188 lt_prog_compiler_wl_GCJ='-Wl,'
16189 lt_prog_compiler_static_GCJ='-static'
16193 # All AIX code is PIC.
16194 if test "$host_cpu" = ia64; then
16195 # AIX 5 now supports IA64 processor
16196 lt_prog_compiler_static_GCJ='-Bstatic'
16201 # FIXME: we need at least 68020 code to build shared libraries, but
16202 # adding the `-m68020' flag to GCC prevents building anything better,
16204 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16207 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16208 # PIC is the default for these OSes.
16211 mingw* | pw32* | os2*)
16212 # This hack is so that the source file can tell whether it is being
16213 # built for inclusion in a dll (and should export symbols for example).
16214 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16217 darwin* | rhapsody*)
16218 # PIC is the default on this platform
16219 # Common symbols not allowed in MH_DYLIB files
16220 lt_prog_compiler_pic_GCJ='-fno-common'
16224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16225 # Instead, we relocate shared libraries at runtime.
16229 # Just because we use GCC doesn't mean we suddenly get shared libraries
16230 # on systems that don't support them.
16231 lt_prog_compiler_can_build_shared_GCJ=no
16236 if test -d /usr/nec; then
16237 lt_prog_compiler_pic_GCJ=-Kconform_pic
16242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16243 # not for PA HP-UX.
16249 lt_prog_compiler_pic_GCJ='-fPIC'
16255 lt_prog_compiler_pic_GCJ='-fPIC'
16259 # PORTME Check for flag to pass linker flags through the system compiler.
16262 lt_prog_compiler_wl_GCJ='-Wl,'
16263 if test "$host_cpu" = ia64; then
16264 # AIX 5 now supports IA64 processor
16265 lt_prog_compiler_static_GCJ='-Bstatic'
16267 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16271 # PIC is the default on this platform
16272 # Common symbols not allowed in MH_DYLIB files
16273 case $cc_basename in
16275 lt_prog_compiler_pic_GCJ='-qnocommon'
16276 lt_prog_compiler_wl_GCJ='-Wl,'
16281 mingw* | pw32* | os2*)
16282 # This hack is so that the source file can tell whether it is being
16283 # built for inclusion in a dll (and should export symbols for example).
16284 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16287 hpux9* | hpux10* | hpux11*)
16288 lt_prog_compiler_wl_GCJ='-Wl,'
16289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16290 # not for PA HP-UX.
16296 lt_prog_compiler_pic_GCJ='+Z'
16299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16300 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16303 irix5* | irix6* | nonstopux*)
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16305 # PIC (with -KPIC) is the default.
16306 lt_prog_compiler_static_GCJ='-non_shared'
16310 lt_prog_compiler_pic_GCJ='-KPIC'
16311 lt_prog_compiler_static_GCJ='-Bstatic'
16314 linux* | k*bsd*-gnu)
16315 case $cc_basename in
16317 lt_prog_compiler_wl_GCJ='-Wl,'
16318 lt_prog_compiler_pic_GCJ='-KPIC'
16319 lt_prog_compiler_static_GCJ='-static'
16321 pgcc* | pgf77* | pgf90* | pgf95*)
16322 # Portland Group compilers (*not* the Pentium gcc compiler,
16323 # which looks to be a dead project)
16324 lt_prog_compiler_wl_GCJ='-Wl,'
16325 lt_prog_compiler_pic_GCJ='-fpic'
16326 lt_prog_compiler_static_GCJ='-Bstatic'
16329 lt_prog_compiler_wl_GCJ='-Wl,'
16330 # All Alpha code is PIC.
16331 lt_prog_compiler_static_GCJ='-non_shared'
16336 osf3* | osf4* | osf5*)
16337 lt_prog_compiler_wl_GCJ='-Wl,'
16338 # All OSF/1 code is PIC.
16339 lt_prog_compiler_static_GCJ='-non_shared'
16343 lt_prog_compiler_pic_GCJ='-KPIC'
16344 lt_prog_compiler_static_GCJ='-Bstatic'
16345 case $cc_basename in
16346 f77* | f90* | f95*)
16347 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16349 lt_prog_compiler_wl_GCJ='-Wl,';;
16354 lt_prog_compiler_wl_GCJ='-Qoption ld '
16355 lt_prog_compiler_pic_GCJ='-PIC'
16356 lt_prog_compiler_static_GCJ='-Bstatic'
16359 sysv4 | sysv4.2uw2* | sysv4.3*)
16360 lt_prog_compiler_wl_GCJ='-Wl,'
16361 lt_prog_compiler_pic_GCJ='-KPIC'
16362 lt_prog_compiler_static_GCJ='-Bstatic'
16366 if test -d /usr/nec ;then
16367 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16368 lt_prog_compiler_static_GCJ='-Bstatic'
16372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 lt_prog_compiler_pic_GCJ='-KPIC'
16375 lt_prog_compiler_static_GCJ='-Bstatic'
16379 lt_prog_compiler_wl_GCJ='-Wl,'
16380 lt_prog_compiler_can_build_shared_GCJ=no
16384 lt_prog_compiler_pic_GCJ='-pic'
16385 lt_prog_compiler_static_GCJ='-Bstatic'
16389 lt_prog_compiler_can_build_shared_GCJ=no
16394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16395 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16398 # Check to make sure the PIC flag actually works.
16400 if test -n "$lt_prog_compiler_pic_GCJ"; then
16402 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16403 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16404 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 lt_prog_compiler_pic_works_GCJ=no
16408 ac_outfile=conftest.$ac_objext
16409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16410 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16411 # Insert the option either (1) after the last *FLAGS variable, or
16412 # (2) before a word containing "conftest.", or (3) at the end.
16413 # Note that $ac_compile itself does not contain backslashes and begins
16414 # with a dollar sign (not a hyphen), so the echo should work correctly.
16415 # The option is referenced via a variable to avoid confusing sed.
16416 lt_compile=`echo "$ac_compile" | $SED \
16417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16419 -e 's:$: $lt_compiler_flag:'`
16420 (eval echo "\"\$as_me:16420: $lt_compile\"" >&5)
16421 (eval "$lt_compile" 2>conftest.err)
16423 cat conftest.err >&5
16424 echo "$as_me:16424: \$? = $ac_status" >&5
16425 if (exit $ac_status) && test -s "$ac_outfile"; then
16426 # The compiler can only warn and ignore the option if not recognized
16427 # So say no if there are warnings other than the usual output.
16428 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16431 lt_prog_compiler_pic_works_GCJ=yes
16437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16438 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16440 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16441 case $lt_prog_compiler_pic_GCJ in
16443 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16446 lt_prog_compiler_pic_GCJ=
16447 lt_prog_compiler_can_build_shared_GCJ=no
16452 # For platforms which do not support PIC, -DPIC is meaningless:
16454 lt_prog_compiler_pic_GCJ=
16457 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16462 # Check to make sure the static flag actually works.
16464 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16465 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16466 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16467 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 lt_prog_compiler_static_works_GCJ=no
16471 save_LDFLAGS="$LDFLAGS"
16472 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16473 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16475 # The linker can only warn and ignore the option if not recognized
16476 # So say no if there are warnings
16477 if test -s conftest.err; then
16478 # Append any errors to the config.log.
16479 cat conftest.err 1>&5
16480 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16482 if diff conftest.exp conftest.er2 >/dev/null; then
16483 lt_prog_compiler_static_works_GCJ=yes
16486 lt_prog_compiler_static_works_GCJ=yes
16490 LDFLAGS="$save_LDFLAGS"
16493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16494 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16496 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16499 lt_prog_compiler_static_GCJ=
16503 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16504 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16505 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 lt_cv_prog_compiler_c_o_GCJ=no
16509 $rm -r conftest 2>/dev/null
16513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16515 lt_compiler_flag="-o out/conftest2.$ac_objext"
16516 # Insert the option either (1) after the last *FLAGS variable, or
16517 # (2) before a word containing "conftest.", or (3) at the end.
16518 # Note that $ac_compile itself does not contain backslashes and begins
16519 # with a dollar sign (not a hyphen), so the echo should work correctly.
16520 lt_compile=`echo "$ac_compile" | $SED \
16521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16523 -e 's:$: $lt_compiler_flag:'`
16524 (eval echo "\"\$as_me:16524: $lt_compile\"" >&5)
16525 (eval "$lt_compile" 2>out/conftest.err)
16527 cat out/conftest.err >&5
16528 echo "$as_me:16528: \$? = $ac_status" >&5
16529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16531 # The compiler can only warn and ignore the option if not recognized
16532 # So say no if there are warnings
16533 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16536 lt_cv_prog_compiler_c_o_GCJ=yes
16541 # SGI C++ compiler will create directory out/ii_files/ for
16542 # template instantiation
16543 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16544 $rm out/* && rmdir out
16550 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16554 hard_links="nottested"
16555 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16556 # do not overwrite the value of need_locks provided by the user
16557 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16563 ln conftest.a conftest.b 2>&5 || hard_links=no
16564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16565 { echo "$as_me:$LINENO: result: $hard_links" >&5
16566 echo "${ECHO_T}$hard_links" >&6; }
16567 if test "$hard_links" = no; then
16568 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16576 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16580 allow_undefined_flag_GCJ=
16581 enable_shared_with_static_runtimes_GCJ=no
16583 archive_expsym_cmds_GCJ=
16584 old_archive_From_new_cmds_GCJ=
16585 old_archive_from_expsyms_cmds_GCJ=
16586 export_dynamic_flag_spec_GCJ=
16587 whole_archive_flag_spec_GCJ=
16588 thread_safe_flag_spec_GCJ=
16589 hardcode_libdir_flag_spec_GCJ=
16590 hardcode_libdir_flag_spec_ld_GCJ=
16591 hardcode_libdir_separator_GCJ=
16592 hardcode_direct_GCJ=no
16593 hardcode_minus_L_GCJ=no
16594 hardcode_shlibpath_var_GCJ=unsupported
16595 link_all_deplibs_GCJ=unknown
16596 hardcode_automatic_GCJ=no
16598 module_expsym_cmds_GCJ=
16599 always_export_symbols_GCJ=no
16600 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16601 # include_expsyms should be a list of space-separated symbols to be *always*
16602 # included in the symbol list
16603 include_expsyms_GCJ=
16604 # exclude_expsyms can be an extended regexp of symbols to exclude
16605 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16606 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16607 # as well as any symbol that contains `d'.
16608 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16609 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16610 # platforms (ab)use it in PIC code, but their linkers get confused if
16611 # the symbol is explicitly referenced. Since portable code cannot
16612 # rely on this symbol name, it's probably fine to never include it in
16613 # preloaded symbol tables.
16614 extract_expsyms_cmds=
16615 # Just being paranoid about ensuring that cc_basename is set.
16616 for cc_temp in $compiler""; do
16618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16627 cygwin* | mingw* | pw32*)
16628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16629 # When not using gcc, we currently assume that we are using
16630 # Microsoft Visual C++.
16631 if test "$GCC" != yes; then
16636 # we just hope/assume this is gcc and not c89 (= MSVC++)
16645 if test "$with_gnu_ld" = yes; then
16646 # If archive_cmds runs LD, not CC, wlarc should be empty
16649 # Set some defaults for GNU ld with shared library support. These
16650 # are reset later if shared libraries are not supported. Putting them
16651 # here allows them to be overridden if necessary.
16652 runpath_var=LD_RUN_PATH
16653 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16654 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16655 # ancient GNU ld didn't support --whole-archive et. al.
16656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16657 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16659 whole_archive_flag_spec_GCJ=
16661 supports_anon_versioning=no
16662 case `$LD -v 2>/dev/null` in
16663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16666 *\ 2.11.*) ;; # other 2.11 versions
16667 *) supports_anon_versioning=yes ;;
16670 # See if GNU ld supports shared libraries.
16672 aix3* | aix4* | aix5*)
16673 # On AIX/PPC, the GNU linker is very broken
16674 if test "$host_cpu" != ia64; then
16678 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16679 *** to be unable to reliably create shared libraries on AIX.
16680 *** Therefore, libtool is disabling shared libraries support. If you
16681 *** really care for shared libraries, you may want to modify your PATH
16682 *** so that a non-GNU linker is found, and then restart.
16689 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)'
16690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16691 hardcode_minus_L_GCJ=yes
16693 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16694 # that the semantics of dynamic libraries on AmigaOS, at least up
16695 # to version 4, is to share data among multiple programs linked
16696 # with the same dynamic library. Since this doesn't match the
16697 # behavior of shared libraries on other platforms, we can't use
16703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16704 allow_undefined_flag_GCJ=unsupported
16705 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16706 # support --undefined. This deserves some investigation. FIXME
16707 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16713 cygwin* | mingw* | pw32*)
16714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16715 # as there is no search path for DLLs.
16716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16717 allow_undefined_flag_GCJ=unsupported
16718 always_export_symbols_GCJ=no
16719 enable_shared_with_static_runtimes_GCJ=yes
16720 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16722 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16723 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16724 # If the export-symbols file already is a .def file (1st line
16725 # is EXPORTS), use it as is; otherwise, prepend...
16726 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16727 cp $export_symbols $output_objdir/$soname.def;
16729 echo EXPORTS > $output_objdir/$soname.def;
16730 cat $export_symbols >> $output_objdir/$soname.def;
16732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16739 hardcode_direct_GCJ=no
16740 hardcode_shlibpath_var_GCJ=no
16741 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16742 export_dynamic_flag_spec_GCJ='${wl}-E'
16743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16744 # Instead, shared libraries are loaded at an image base (0x10000000 by
16745 # default) and relocated if they conflict, which is a slow very memory
16746 # consuming and fragmenting process. To avoid this, we pick a random,
16747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16749 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'
16750 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'
16753 linux* | k*bsd*-gnu)
16754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16756 case $cc_basename,$host_cpu in
16757 pgcc*) # Portland Group C compiler
16758 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'
16759 tmp_addflag=' $pic_flag'
16761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16762 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'
16763 tmp_addflag=' $pic_flag -Mnomain' ;;
16764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16765 tmp_addflag=' -i_dynamic' ;;
16766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16767 tmp_addflag=' -i_dynamic -nofor_main' ;;
16768 ifc* | ifort*) # Intel Fortran compiler
16769 tmp_addflag=' -nofor_main' ;;
16771 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773 if test $supports_anon_versioning = yes; then
16774 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16776 $echo "local: *; };" >> $output_objdir/$libname.ver~
16777 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16779 link_all_deplibs_GCJ=no
16785 netbsd* | netbsdelf*-gnu)
16786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16787 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16790 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16791 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16796 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16801 *** create shared libraries on Solaris systems. Therefore, libtool
16802 *** is disabling shared libraries support. We urge you to upgrade GNU
16803 *** binutils to release 2.9.1 or newer. Another option is to modify
16804 *** your PATH or compiler configuration so that the native linker is
16805 *** used, and then restart.
16808 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16810 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16817 case `$LD -v 2>&1` in
16818 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16822 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16823 *** reliably create shared libraries on SCO systems. Therefore, libtool
16824 *** is disabling shared libraries support. We urge you to upgrade GNU
16825 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16826 *** your PATH or compiler configuration so that the native linker is
16827 *** used, and then restart.
16832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16833 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16834 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16835 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16844 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16846 hardcode_direct_GCJ=yes
16847 hardcode_shlibpath_var_GCJ=no
16851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16860 if test "$ld_shlibs_GCJ" = no; then
16862 hardcode_libdir_flag_spec_GCJ=
16863 export_dynamic_flag_spec_GCJ=
16864 whole_archive_flag_spec_GCJ=
16867 # PORTME fill in a description of your system's linker (not GNU ld)
16870 allow_undefined_flag_GCJ=unsupported
16871 always_export_symbols_GCJ=yes
16872 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'
16873 # Note: this linker hardcodes the directories in LIBPATH if there
16874 # are no directories specified by -L.
16875 hardcode_minus_L_GCJ=yes
16876 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16877 # Neither direct hardcoding nor static linking is supported with a
16879 hardcode_direct_GCJ=unsupported
16884 if test "$host_cpu" = ia64; then
16885 # On IA64, the linker does run time linking by default, so we don't
16886 # have to do anything special.
16887 aix_use_runtimelinking=no
16888 exp_sym_flag='-Bexport'
16891 # If we're using GNU nm, then we don't want the "-C" option.
16892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16893 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16894 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'
16896 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'
16898 aix_use_runtimelinking=no
16900 # Test if we are trying to use run time linking or normal
16901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16902 # need to do runtime linking.
16903 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16904 for ld_flag in $LDFLAGS; do
16905 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16906 aix_use_runtimelinking=yes
16913 exp_sym_flag='-bexport'
16914 no_entry_flag='-bnoentry'
16917 # When large executables or shared objects are built, AIX ld can
16918 # have problems creating the table of contents. If linking a library
16919 # or program results in "error TOC overflow" add -mminimal-toc to
16920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16923 archive_cmds_GCJ=''
16924 hardcode_direct_GCJ=yes
16925 hardcode_libdir_separator_GCJ=':'
16926 link_all_deplibs_GCJ=yes
16928 if test "$GCC" = yes; then
16929 case $host_os in aix4.[012]|aix4.[012].*)
16930 # We only want to do this on AIX 4.2 and lower, the check
16931 # below for broken collect2 doesn't work under 4.3+
16932 collect2name=`${CC} -print-prog-name=collect2`
16933 if test -f "$collect2name" && \
16934 strings "$collect2name" | grep resolve_lib_name >/dev/null
16936 # We have reworked collect2
16937 hardcode_direct_GCJ=yes
16939 # We have old collect2
16940 hardcode_direct_GCJ=unsupported
16941 # It fails to find uninstalled libraries when the uninstalled
16942 # path is not listed in the libpath. Setting hardcode_minus_L
16943 # to unsupported forces relinking
16944 hardcode_minus_L_GCJ=yes
16945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16946 hardcode_libdir_separator_GCJ=
16950 shared_flag='-shared'
16951 if test "$aix_use_runtimelinking" = yes; then
16952 shared_flag="$shared_flag "'${wl}-G'
16956 if test "$host_cpu" = ia64; then
16957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16958 # chokes on -Wl,-G. The following line is correct:
16961 if test "$aix_use_runtimelinking" = yes; then
16962 shared_flag='${wl}-G'
16964 shared_flag='${wl}-bM:SRE'
16969 # It seems that -bexpall does not export symbols beginning with
16970 # underscore (_), so it is better to generate a list of symbols to export.
16971 always_export_symbols_GCJ=yes
16972 if test "$aix_use_runtimelinking" = yes; then
16973 # Warning - without using the other runtime loading flags (-brtl),
16974 # -berok will link without error, but may produce a broken library.
16975 allow_undefined_flag_GCJ='-berok'
16976 # Determine the default libpath from the value encoded in an empty executable.
16977 cat >conftest.$ac_ext <<_ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (ac_try="$ac_link"
16994 case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_link") 2>conftest.er1
17001 grep -v '^ *+' conftest.er1 >conftest.err
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && {
17006 test -z "$ac_c_werror_flag" ||
17007 test ! -s conftest.err
17008 } && test -s conftest$ac_exeext &&
17009 $as_test_x conftest$ac_exeext; then
17011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17013 # Check for a 64-bit object if we didn't find anything.
17014 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; }
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17024 conftest$ac_exeext conftest.$ac_ext
17025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17027 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17028 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"
17030 if test "$host_cpu" = ia64; then
17031 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17032 allow_undefined_flag_GCJ="-z nodefs"
17033 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"
17035 # Determine the default libpath from the value encoded in an empty executable.
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_link") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest$ac_exeext &&
17068 $as_test_x conftest$ac_exeext; then
17070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17072 # Check for a 64-bit object if we didn't find anything.
17073 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; }
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17083 conftest$ac_exeext conftest.$ac_ext
17084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17086 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17087 # Warning - without using the other run time loading flags,
17088 # -berok will link without error, but may produce a broken library.
17089 no_undefined_flag_GCJ=' ${wl}-bernotok'
17090 allow_undefined_flag_GCJ=' ${wl}-berok'
17091 # Exported symbols can be pulled into shared objects from archives
17092 whole_archive_flag_spec_GCJ='$convenience'
17093 archive_cmds_need_lc_GCJ=yes
17094 # This is similar to how AIX traditionally builds its shared libraries.
17095 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'
17101 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)'
17102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17103 hardcode_minus_L_GCJ=yes
17104 # see comment about different semantics on the GNU ld section
17109 export_dynamic_flag_spec_GCJ=-rdynamic
17112 cygwin* | mingw* | pw32*)
17113 # When not using gcc, we currently assume that we are using
17114 # Microsoft Visual C++.
17115 # hardcode_libdir_flag_spec is actually meaningless, as there is
17116 # no search path for DLLs.
17117 hardcode_libdir_flag_spec_GCJ=' '
17118 allow_undefined_flag_GCJ=unsupported
17119 # Tell ltmain to make .lib files, not .a files.
17121 # Tell ltmain to make .dll files, not .so files.
17123 # FIXME: Setting linknames here is a bad hack.
17124 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17125 # The linker will automatically build a .lib file if we build a DLL.
17126 old_archive_From_new_cmds_GCJ='true'
17127 # FIXME: Should let the user specify the lib program.
17128 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17129 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17130 enable_shared_with_static_runtimes_GCJ=yes
17133 darwin* | rhapsody*)
17135 rhapsody* | darwin1.[012])
17136 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17139 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17140 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17142 case ${MACOSX_DEPLOYMENT_TARGET} in
17144 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17147 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17153 archive_cmds_need_lc_GCJ=no
17154 hardcode_direct_GCJ=no
17155 hardcode_automatic_GCJ=yes
17156 hardcode_shlibpath_var_GCJ=unsupported
17157 whole_archive_flag_spec_GCJ=''
17158 link_all_deplibs_GCJ=yes
17159 if test "$GCC" = yes ; then
17160 output_verbose_link_cmd='echo'
17161 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17162 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17164 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}'
17165 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}'
17167 case $cc_basename in
17169 output_verbose_link_cmd='echo'
17170 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17171 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17173 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}'
17174 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}'
17184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17186 hardcode_shlibpath_var_GCJ=no
17193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17194 # support. Future versions do this automatically, but an explicit c++rt0.o
17195 # does not break anything, and helps significantly (at the cost of a little
17198 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17199 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17200 hardcode_direct_GCJ=yes
17201 hardcode_shlibpath_var_GCJ=no
17204 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17206 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17207 hardcode_direct_GCJ=yes
17208 hardcode_minus_L_GCJ=yes
17209 hardcode_shlibpath_var_GCJ=no
17212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17213 freebsd* | dragonfly*)
17214 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17215 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17216 hardcode_direct_GCJ=yes
17217 hardcode_shlibpath_var_GCJ=no
17221 if test "$GCC" = yes; then
17222 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'
17224 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'
17226 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17227 hardcode_libdir_separator_GCJ=:
17228 hardcode_direct_GCJ=yes
17230 # hardcode_minus_L: Not really in the search PATH,
17231 # but as the default location of the library.
17232 hardcode_minus_L_GCJ=yes
17233 export_dynamic_flag_spec_GCJ='${wl}-E'
17237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17238 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17240 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17242 if test "$with_gnu_ld" = no; then
17243 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17244 hardcode_libdir_separator_GCJ=:
17246 hardcode_direct_GCJ=yes
17247 export_dynamic_flag_spec_GCJ='${wl}-E'
17249 # hardcode_minus_L: Not really in the search PATH,
17250 # but as the default location of the library.
17251 hardcode_minus_L_GCJ=yes
17256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17259 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17265 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17271 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17274 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17277 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17281 if test "$with_gnu_ld" = no; then
17282 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17283 hardcode_libdir_separator_GCJ=:
17287 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17288 hardcode_direct_GCJ=no
17289 hardcode_shlibpath_var_GCJ=no
17292 hardcode_direct_GCJ=yes
17293 export_dynamic_flag_spec_GCJ='${wl}-E'
17295 # hardcode_minus_L: Not really in the search PATH,
17296 # but as the default location of the library.
17297 hardcode_minus_L_GCJ=yes
17303 irix5* | irix6* | nonstopux*)
17304 if test "$GCC" = yes; then
17305 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'
17307 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'
17308 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17310 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17311 hardcode_libdir_separator_GCJ=:
17312 link_all_deplibs_GCJ=yes
17315 netbsd* | netbsdelf*-gnu)
17316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17317 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17319 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17321 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17322 hardcode_direct_GCJ=yes
17323 hardcode_shlibpath_var_GCJ=no
17327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328 hardcode_direct_GCJ=yes
17329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17330 hardcode_libdir_separator_GCJ=:
17331 hardcode_shlibpath_var_GCJ=no
17335 hardcode_direct_GCJ=yes
17336 hardcode_shlibpath_var_GCJ=no
17337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17338 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17339 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17341 export_dynamic_flag_spec_GCJ='${wl}-E'
17344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17345 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17349 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17357 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17358 hardcode_minus_L_GCJ=yes
17359 allow_undefined_flag_GCJ=unsupported
17360 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'
17361 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17365 if test "$GCC" = yes; then
17366 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17367 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'
17369 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17370 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'
17372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17373 hardcode_libdir_separator_GCJ=:
17376 osf4* | osf5*) # as osf3* with the addition of -msym flag
17377 if test "$GCC" = yes; then
17378 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17379 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'
17380 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17382 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17383 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'
17384 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~
17385 $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'
17387 # Both c and cxx compiler support -rpath directly
17388 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17390 hardcode_libdir_separator_GCJ=:
17394 no_undefined_flag_GCJ=' -z text'
17395 if test "$GCC" = yes; then
17397 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17398 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17402 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17406 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17407 hardcode_shlibpath_var_GCJ=no
17409 solaris2.[0-5] | solaris2.[0-5].*) ;;
17411 # The compiler driver will combine linker options so we
17412 # cannot just pass the convience library names through
17413 # without $wl, iff we do not link with $LD.
17414 # Luckily, gcc supports the same syntax we need for Sun Studio.
17415 # Supported since Solaris 2.6 (maybe 2.5.1?)
17418 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17420 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' ;;
17423 link_all_deplibs_GCJ=yes
17427 if test "x$host_vendor" = xsequent; then
17428 # Use $CC to link under sequent, because it throws in some extra .o
17429 # files that make .init and .fini sections work.
17430 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17432 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17434 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435 hardcode_direct_GCJ=yes
17436 hardcode_minus_L_GCJ=yes
17437 hardcode_shlibpath_var_GCJ=no
17441 case $host_vendor in
17443 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_direct_GCJ=yes # is this really true???
17447 ## LD is ld it makes a PLAMLIB
17448 ## CC just makes a GrossModule.
17449 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17450 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17451 hardcode_direct_GCJ=no
17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17458 runpath_var='LD_RUN_PATH'
17459 hardcode_shlibpath_var_GCJ=no
17463 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17464 hardcode_shlibpath_var_GCJ=no
17465 export_dynamic_flag_spec_GCJ='-Bexport'
17469 if test -d /usr/nec; then
17470 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17471 hardcode_shlibpath_var_GCJ=no
17472 runpath_var=LD_RUN_PATH
17473 hardcode_runpath_var=yes
17478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17479 no_undefined_flag_GCJ='${wl}-z,text'
17480 archive_cmds_need_lc_GCJ=no
17481 hardcode_shlibpath_var_GCJ=no
17482 runpath_var='LD_RUN_PATH'
17484 if test "$GCC" = yes; then
17485 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17486 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17489 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17493 sysv5* | sco3.2v5* | sco5v6*)
17494 # Note: We can NOT use -z defs as we might desire, because we do not
17495 # link with -lc, and that would cause any symbols used from libc to
17496 # always be unresolved, which means just about no library would
17497 # ever link correctly. If we're not using GNU ld we use -z text
17498 # though, which does catch some bad symbols but isn't as heavy-handed
17500 no_undefined_flag_GCJ='${wl}-z,text'
17501 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17502 archive_cmds_need_lc_GCJ=no
17503 hardcode_shlibpath_var_GCJ=no
17504 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17505 hardcode_libdir_separator_GCJ=':'
17506 link_all_deplibs_GCJ=yes
17507 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17508 runpath_var='LD_RUN_PATH'
17510 if test "$GCC" = yes; then
17511 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17512 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17514 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522 hardcode_shlibpath_var_GCJ=no
17531 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17532 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17533 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17536 # Do we need to explicitly link libc?
17538 case "x$archive_cmds_need_lc_GCJ" in
17540 # Assume -lc should be added
17541 archive_cmds_need_lc_GCJ=yes
17543 if test "$enable_shared" = yes && test "$GCC" = yes; then
17544 case $archive_cmds_GCJ in
17546 # FIXME: we may have to deal with multi-command sequences.
17549 # Test whether the compiler implicitly links with -lc since on some
17550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17551 # to ld, don't add -lc before -lgcc.
17552 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } 2>conftest.err; then
17564 libobjs=conftest.$ac_objext
17566 wl=$lt_prog_compiler_wl_GCJ
17567 pic_flag=$lt_prog_compiler_pic_GCJ
17573 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17574 allow_undefined_flag_GCJ=
17575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17576 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }
17581 archive_cmds_need_lc_GCJ=no
17583 archive_cmds_need_lc_GCJ=yes
17585 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17587 cat conftest.err 1>&5
17590 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17591 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17598 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17600 library_names_spec=
17601 libname_spec='lib$name'
17605 postuninstall_cmds=
17609 shlibpath_overrides_runpath=unknown
17611 dynamic_linker="$host_os ld.so"
17612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17613 if test "$GCC" = yes; then
17614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17616 # if the path contains ";" then we assume it to be the separator
17617 # otherwise default to the standard path separator (i.e. ":") - it is
17618 # assumed that no part of a normal pathname contains ";" but that should
17619 # okay in the real world where ";" in dirpaths is itself problematic.
17620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17627 need_lib_prefix=unknown
17628 hardcode_into_libs=no
17630 # when you set need_version to no, make sure it does not cause -set_version
17631 # flags to be left without arguments
17632 need_version=unknown
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17638 shlibpath_var=LIBPATH
17640 # AIX 3 has no versioning support, so we append a major version to the name.
17641 soname_spec='${libname}${release}${shared_ext}$major'
17648 hardcode_into_libs=yes
17649 if test "$host_cpu" = ia64; then
17650 # AIX 5 supports IA64
17651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17652 shlibpath_var=LD_LIBRARY_PATH
17654 # With GCC up to 2.95.x, collect2 would create an import file
17655 # for dependence libraries. The import file would start with
17656 # the line `#! .'. This would cause the generated library to
17657 # depend on `.', always an invalid library. This was fixed in
17658 # development snapshots of GCC prior to 3.0.
17660 aix4 | aix4.[01] | aix4.[01].*)
17661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17666 can_build_shared=no
17670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17671 # soname into executable. Probably we can add versioning support to
17672 # collect2, so additional links can be useful in future.
17673 if test "$aix_use_runtimelinking" = yes; then
17674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17675 # instead of lib<name>.a to let people know that these are not
17676 # typical AIX shared libraries.
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 # We preserve .a as extension for shared libraries through AIX4.2
17680 # and later when we are not doing run time linking.
17681 library_names_spec='${libname}${release}.a $libname.a'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17684 shlibpath_var=LIBPATH
17689 library_names_spec='$libname.ixlibrary $libname.a'
17690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17691 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'
17695 library_names_spec='${libname}${shared_ext}'
17696 dynamic_linker="$host_os ld.so"
17697 shlibpath_var=LIBRARY_PATH
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17709 # the default ld.so.conf also contains /usr/contrib/lib and
17710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17711 # libtool to hard-code these into programs
17714 cygwin* | mingw* | pw32*)
17715 version_type=windows
17720 case $GCC,$host_os in
17721 yes,cygwin* | yes,mingw* | yes,pw32*)
17722 library_names_spec='$libname.dll.a'
17723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17724 postinstall_cmds='base_file=`basename \${file}`~
17725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17726 dldir=$destdir/`dirname \$dlpath`~
17727 test -d \$dldir || mkdir -p \$dldir~
17728 $install_prog $dir/$dlname \$dldir/$dlname~
17729 chmod a+x \$dldir/$dlname'
17730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17731 dlpath=$dir/\$dldll~
17733 shlibpath_overrides_runpath=yes
17737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17742 # MinGW DLLs use traditional 'lib' prefix
17743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17746 # It is most probably a Windows format PATH printed by
17747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17748 # path with ; separators, and with drive letters. We can handle the
17749 # drive letters (cygwin fileutils understands them), so leave them,
17750 # especially as we might pass files found there to a mingw objdump,
17751 # which wouldn't understand a cygwinified path. Ahh.
17752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17758 # pw32 DLLs use 'pw' prefix rather than 'lib'
17759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17768 dynamic_linker='Win32 ld.exe'
17769 # FIXME: first we should search . and the directory the executable is in
17773 darwin* | rhapsody*)
17774 dynamic_linker="$host_os dyld"
17775 version_type=darwin
17778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17779 soname_spec='${libname}${release}${major}$shared_ext'
17780 shlibpath_overrides_runpath=yes
17781 shlibpath_var=DYLD_LIBRARY_PATH
17782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17784 if test "$GCC" = yes; then
17785 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"`
17787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 shlibpath_var=LD_LIBRARY_PATH
17805 freebsd* | dragonfly*)
17806 # DragonFly does not have aout. When/if they implement a new
17807 # versioning mechanism, adjust this.
17808 if test -x /usr/bin/objformat; then
17809 objformat=`/usr/bin/objformat`
17812 freebsd[123]*) objformat=aout ;;
17813 *) objformat=elf ;;
17816 version_type=freebsd-$objformat
17817 case $version_type in
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17828 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17833 freebsd3.[01]* | freebsdelf3.[01]*)
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17837 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17838 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17839 shlibpath_overrides_runpath=no
17840 hardcode_into_libs=yes
17842 freebsd*) # from 4.6 on
17843 shlibpath_overrides_runpath=yes
17844 hardcode_into_libs=yes
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17854 soname_spec='${libname}${release}${shared_ext}$major'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 hardcode_into_libs=yes
17859 hpux9* | hpux10* | hpux11*)
17860 # Give a soname corresponding to the major version so that dld.sl refuses to
17861 # link against other versions.
17868 hardcode_into_libs=yes
17869 dynamic_linker="$host_os dld.so"
17870 shlibpath_var=LD_LIBRARY_PATH
17871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 if test "X$HPUX_IA64_MODE" = X32; then
17875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17883 hardcode_into_libs=yes
17884 dynamic_linker="$host_os dld.sl"
17885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17888 soname_spec='${libname}${release}${shared_ext}$major'
17889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17894 dynamic_linker="$host_os dld.sl"
17895 shlibpath_var=SHLIB_PATH
17896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 soname_spec='${libname}${release}${shared_ext}$major'
17901 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17902 postinstall_cmds='chmod 555 $lib'
17909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17910 soname_spec='${libname}${release}${shared_ext}$major'
17911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath=no
17914 hardcode_into_libs=yes
17917 irix5* | irix6* | nonstopux*)
17919 nonstopux*) version_type=nonstopux ;;
17921 if test "$lt_cv_prog_gnu_ld" = yes; then
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17932 irix5* | nonstopux*)
17933 libsuff= shlibsuff=
17936 case $LD in # libtool.m4 will add one of these switches to LD
17937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17938 libsuff= shlibsuff= libmagic=32-bit;;
17939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17940 libsuff=32 shlibsuff=N32 libmagic=N32;;
17941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17942 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17943 *) libsuff= shlibsuff= libmagic=never-match;;
17947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17948 shlibpath_overrides_runpath=no
17949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17951 hardcode_into_libs=yes
17954 # No shared lib support for Linux oldld, aout, or coff.
17955 linux*oldld* | linux*aout* | linux*coff*)
17959 # This must be Linux ELF.
17960 linux* | k*bsd*-gnu)
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath=no
17969 # This implies no fast_install, which is unacceptable.
17970 # Some rework will be needed to allow for fast_install
17971 # before this can be enabled.
17972 hardcode_into_libs=yes
17974 # Append ld.so.conf contents to the search path
17975 if test -f /etc/ld.so.conf; then
17976 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' ' '`
17977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17980 # We used to test for /lib/ld.so.1 and disable shared libraries on
17981 # powerpc, because MkLinux only supported shared libraries with the
17982 # GNU dynamic linker. Since this was broken with cross compilers,
17983 # most powerpc-linux boxes support dynamic linking these days and
17984 # people can always --disable-shared, the test was removed, and we
17985 # assume the GNU/Linux dynamic linker is in use.
17986 dynamic_linker='GNU/Linux ld.so'
17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17994 soname_spec='${libname}${release}${shared_ext}$major'
17995 shlibpath_var=LD_LIBRARY_PATH
17996 shlibpath_overrides_runpath=no
17997 hardcode_into_libs=yes
17998 dynamic_linker='NetBSD ld.elf_so'
18005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18008 dynamic_linker='NetBSD (a.out) ld.so'
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18011 soname_spec='${libname}${release}${shared_ext}$major'
18012 dynamic_linker='NetBSD ld.elf_so'
18014 shlibpath_var=LD_LIBRARY_PATH
18015 shlibpath_overrides_runpath=yes
18016 hardcode_into_libs=yes
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 shlibpath_overrides_runpath=yes
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 shlibpath_overrides_runpath=yes
18038 sys_lib_dlsearch_path_spec="/usr/lib"
18040 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18042 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18043 *) need_version=no ;;
18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18047 shlibpath_var=LD_LIBRARY_PATH
18048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18050 openbsd2.[89] | openbsd2.[89].*)
18051 shlibpath_overrides_runpath=no
18054 shlibpath_overrides_runpath=yes
18058 shlibpath_overrides_runpath=yes
18063 libname_spec='$name'
18066 library_names_spec='$libname${shared_ext} $libname.a'
18067 dynamic_linker='OS/2 ld.exe'
18068 shlibpath_var=LIBPATH
18071 osf3* | osf4* | osf5*)
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077 shlibpath_var=LD_LIBRARY_PATH
18078 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18079 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 shlibpath_overrides_runpath=yes
18090 hardcode_into_libs=yes
18091 # ldd complains unless libraries are executable
18092 postinstall_cmds='chmod +x $lib'
18097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18098 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 shlibpath_overrides_runpath=yes
18101 if test "$with_gnu_ld" = yes; then
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110 soname_spec='${libname}${release}${shared_ext}$major'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 case $host_vendor in
18114 shlibpath_overrides_runpath=no
18116 export_dynamic_flag_spec='${wl}-Blargedynsym'
18117 runpath_var=LD_RUN_PATH
18125 shlibpath_overrides_runpath=no
18126 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18132 if test -d /usr/nec ;then
18134 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18135 soname_spec='$libname${shared_ext}.$major'
18136 shlibpath_var=LD_LIBRARY_PATH
18140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18141 version_type=freebsd-elf
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18145 soname_spec='${libname}${release}${shared_ext}$major'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 hardcode_into_libs=yes
18148 if test "$with_gnu_ld" = yes; then
18149 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18150 shlibpath_overrides_runpath=no
18152 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18153 shlibpath_overrides_runpath=yes
18156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18160 sys_lib_dlsearch_path_spec='/usr/lib'
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166 soname_spec='${libname}${release}${shared_ext}$major'
18167 shlibpath_var=LD_LIBRARY_PATH
18174 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18175 echo "${ECHO_T}$dynamic_linker" >&6; }
18176 test "$dynamic_linker" = no && can_build_shared=no
18178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18179 if test "$GCC" = yes; then
18180 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18183 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18185 hardcode_action_GCJ=
18186 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18187 test -n "$runpath_var_GCJ" || \
18188 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18190 # We can hardcode non-existant directories.
18191 if test "$hardcode_direct_GCJ" != no &&
18192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18193 # have to relink, otherwise we might link with an installed library
18194 # when we should be linking with a yet-to-be-installed one
18195 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18196 test "$hardcode_minus_L_GCJ" != no; then
18197 # Linking always hardcodes the temporary library directory.
18198 hardcode_action_GCJ=relink
18200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18201 hardcode_action_GCJ=immediate
18204 # We cannot hardcode anything, or else we can only hardcode existing
18206 hardcode_action_GCJ=unsupported
18208 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18209 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18211 if test "$hardcode_action_GCJ" = relink; then
18212 # Fast installation is not supported
18213 enable_fast_install=no
18214 elif test "$shlibpath_overrides_runpath" = yes ||
18215 test "$enable_shared" = no; then
18216 # Fast installation is not necessary
18217 enable_fast_install=needless
18221 # The else clause should only fire when bootstrapping the
18222 # libtool distribution, otherwise you forgot to ship ltmain.sh
18223 # with your package, and you will get complaints that there are
18224 # no rules to generate ltmain.sh.
18225 if test -f "$ltmain"; then
18226 # See if we are running on zsh, and set the options which allow our commands through
18227 # without removal of \ escapes.
18228 if test -n "${ZSH_VERSION+set}" ; then
18229 setopt NO_GLOB_SUBST
18231 # Now quote all the things that may contain metacharacters while being
18232 # careful not to overquote the AC_SUBSTed values. We take copies of the
18233 # variables and quote the copies for generation of the libtool script.
18234 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18236 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18237 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18238 deplibs_check_method reload_flag reload_cmds need_locks \
18239 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18240 lt_cv_sys_global_symbol_to_c_name_address \
18241 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18242 old_postinstall_cmds old_postuninstall_cmds \
18246 lt_prog_compiler_wl_GCJ \
18247 lt_prog_compiler_pic_GCJ \
18248 lt_prog_compiler_static_GCJ \
18249 lt_prog_compiler_no_builtin_flag_GCJ \
18250 export_dynamic_flag_spec_GCJ \
18251 thread_safe_flag_spec_GCJ \
18252 whole_archive_flag_spec_GCJ \
18253 enable_shared_with_static_runtimes_GCJ \
18254 old_archive_cmds_GCJ \
18255 old_archive_from_new_cmds_GCJ \
18256 predep_objects_GCJ \
18257 postdep_objects_GCJ \
18260 compiler_lib_search_path_GCJ \
18262 archive_expsym_cmds_GCJ \
18263 postinstall_cmds_GCJ \
18264 postuninstall_cmds_GCJ \
18265 old_archive_from_expsyms_cmds_GCJ \
18266 allow_undefined_flag_GCJ \
18267 no_undefined_flag_GCJ \
18268 export_symbols_cmds_GCJ \
18269 hardcode_libdir_flag_spec_GCJ \
18270 hardcode_libdir_flag_spec_ld_GCJ \
18271 hardcode_libdir_separator_GCJ \
18272 hardcode_automatic_GCJ \
18274 module_expsym_cmds_GCJ \
18275 lt_cv_prog_compiler_c_o_GCJ \
18276 exclude_expsyms_GCJ \
18277 include_expsyms_GCJ; do
18280 old_archive_cmds_GCJ | \
18281 old_archive_from_new_cmds_GCJ | \
18282 archive_cmds_GCJ | \
18283 archive_expsym_cmds_GCJ | \
18284 module_cmds_GCJ | \
18285 module_expsym_cmds_GCJ | \
18286 old_archive_from_expsyms_cmds_GCJ | \
18287 export_symbols_cmds_GCJ | \
18288 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18289 postinstall_cmds | postuninstall_cmds | \
18290 old_postinstall_cmds | old_postuninstall_cmds | \
18291 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18292 # Double-quote double-evaled strings.
18293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18302 *'\$0 --fallback-echo"')
18303 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18309 cat <<__EOF__ >> "$cfgfile"
18310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18314 # Shell to use when invoking shell scripts.
18317 # Whether or not to build shared libraries.
18318 build_libtool_libs=$enable_shared
18320 # Whether or not to build static libraries.
18321 build_old_libs=$enable_static
18323 # Whether or not to add -lc for building shared libraries.
18324 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18326 # Whether or not to disallow shared libs when runtime libs are static
18327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18329 # Whether or not to optimize for fast installation.
18330 fast_install=$enable_fast_install
18333 host_alias=$host_alias
18337 # The build system.
18338 build_alias=$build_alias
18342 # An echo program that does not interpret backslashes.
18347 AR_FLAGS=$lt_AR_FLAGS
18352 # LTCC compiler flags.
18353 LTCFLAGS=$lt_LTCFLAGS
18355 # A language-specific compiler.
18356 CC=$lt_compiler_GCJ
18358 # Is the compiler the GNU C compiler?
18364 # The linker used to build libraries.
18367 # Whether we need hard or soft links.
18370 # A BSD-compatible nm program.
18373 # A symbol stripping program
18376 # Used to examine libraries when file_magic_cmd begins "file"
18377 MAGIC_CMD=$MAGIC_CMD
18379 # Used on cygwin: DLL creation program.
18382 # Used on cygwin: object dumper.
18385 # Used on cygwin: assembler.
18388 # The name of the directory that contains temporary libtool files.
18391 # How to create reloadable object files.
18392 reload_flag=$lt_reload_flag
18393 reload_cmds=$lt_reload_cmds
18395 # How to pass a linker flag through the compiler.
18396 wl=$lt_lt_prog_compiler_wl_GCJ
18398 # Object file suffix (normally "o").
18399 objext="$ac_objext"
18401 # Old archive suffix (normally "a").
18404 # Shared library suffix (normally ".so").
18405 shrext_cmds='$shrext_cmds'
18407 # Executable file suffix (normally "").
18410 # Additional compiler flags for building library objects.
18411 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18414 # What is the maximum length of a command?
18415 max_cmd_len=$lt_cv_sys_max_cmd_len
18417 # Does compiler simultaneously support -c and -o options?
18418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18420 # Must we lock files when doing compilation?
18421 need_locks=$lt_need_locks
18423 # Do we need the lib prefix for modules?
18424 need_lib_prefix=$need_lib_prefix
18426 # Do we need a version for libraries?
18427 need_version=$need_version
18429 # Whether dlopen is supported.
18430 dlopen_support=$enable_dlopen
18432 # Whether dlopen of programs is supported.
18433 dlopen_self=$enable_dlopen_self
18435 # Whether dlopen of statically linked programs is supported.
18436 dlopen_self_static=$enable_dlopen_self_static
18438 # Compiler flag to prevent dynamic linking.
18439 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18441 # Compiler flag to turn off builtin functions.
18442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18444 # Compiler flag to allow reflexive dlopens.
18445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18447 # Compiler flag to generate shared objects directly from archives.
18448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18450 # Compiler flag to generate thread-safe objects.
18451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18453 # Library versioning type.
18454 version_type=$version_type
18456 # Format of library name prefix.
18457 libname_spec=$lt_libname_spec
18459 # List of archive names. First name is the real one, the rest are links.
18460 # The last name is the one that the linker finds with -lNAME.
18461 library_names_spec=$lt_library_names_spec
18463 # The coded name of the library, if different from the real name.
18464 soname_spec=$lt_soname_spec
18466 # Commands used to build and install an old-style archive.
18468 old_archive_cmds=$lt_old_archive_cmds_GCJ
18469 old_postinstall_cmds=$lt_old_postinstall_cmds
18470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18472 # Create an old-style archive from a shared archive.
18473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18475 # Create a temporary old-style archive to link instead of a shared archive.
18476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18478 # Commands used to build and install a shared archive.
18479 archive_cmds=$lt_archive_cmds_GCJ
18480 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18481 postinstall_cmds=$lt_postinstall_cmds
18482 postuninstall_cmds=$lt_postuninstall_cmds
18484 # Commands used to build a loadable module (assumed same as above if empty)
18485 module_cmds=$lt_module_cmds_GCJ
18486 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18488 # Commands to strip libraries.
18489 old_striplib=$lt_old_striplib
18490 striplib=$lt_striplib
18492 # Dependencies to place before the objects being linked to create a
18494 predep_objects=$lt_predep_objects_GCJ
18496 # Dependencies to place after the objects being linked to create a
18498 postdep_objects=$lt_postdep_objects_GCJ
18500 # Dependencies to place before the objects being linked to create a
18502 predeps=$lt_predeps_GCJ
18504 # Dependencies to place after the objects being linked to create a
18506 postdeps=$lt_postdeps_GCJ
18508 # The library search path used internally by the compiler when linking
18509 # a shared library.
18510 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18512 # Method to check whether dependent libraries are shared objects.
18513 deplibs_check_method=$lt_deplibs_check_method
18515 # Command to use when deplibs_check_method == file_magic.
18516 file_magic_cmd=$lt_file_magic_cmd
18518 # Flag that allows shared libraries with undefined symbols to be built.
18519 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18521 # Flag that forces no undefined symbols.
18522 no_undefined_flag=$lt_no_undefined_flag_GCJ
18524 # Commands used to finish a libtool library installation in a directory.
18525 finish_cmds=$lt_finish_cmds
18527 # Same as above, but a single script fragment to be evaled but not shown.
18528 finish_eval=$lt_finish_eval
18530 # Take the output of nm and produce a listing of raw symbols and C names.
18531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18533 # Transform the output of nm in a proper C declaration
18534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18536 # Transform the output of nm in a C name address pair
18537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18539 # This is the shared library runtime path variable.
18540 runpath_var=$runpath_var
18542 # This is the shared library path variable.
18543 shlibpath_var=$shlibpath_var
18545 # Is shlibpath searched before the hard-coded library search path?
18546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18548 # How to hardcode a shared library path into an executable.
18549 hardcode_action=$hardcode_action_GCJ
18551 # Whether we should hardcode library paths into libraries.
18552 hardcode_into_libs=$hardcode_into_libs
18554 # Flag to hardcode \$libdir into a binary during linking.
18555 # This must work even if \$libdir does not exist.
18556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18558 # If ld is used when linking, flag to hardcode \$libdir into
18559 # a binary during linking. This must work even if \$libdir does
18561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18563 # Whether we need a single -rpath flag with a separated argument.
18564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18567 # resulting binary.
18568 hardcode_direct=$hardcode_direct_GCJ
18570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18571 # resulting binary.
18572 hardcode_minus_L=$hardcode_minus_L_GCJ
18574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18575 # the resulting binary.
18576 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18578 # Set to yes if building a shared library automatically hardcodes DIR into the library
18579 # and all subsequent libraries and executables linked against it.
18580 hardcode_automatic=$hardcode_automatic_GCJ
18582 # Variables whose values should be saved in libtool wrapper scripts and
18583 # restored at relink time.
18584 variables_saved_for_relink="$variables_saved_for_relink"
18586 # Whether libtool must link a program against all its dependency libraries.
18587 link_all_deplibs=$link_all_deplibs_GCJ
18589 # Compile-time system search path for libraries
18590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18592 # Run-time system search path for libraries
18593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18595 # Fix the shell variable \$srcfile for the compiler.
18596 fix_srcfile_path="$fix_srcfile_path_GCJ"
18598 # Set to yes if exported symbols are required.
18599 always_export_symbols=$always_export_symbols_GCJ
18601 # The commands to list exported symbols.
18602 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18604 # The commands to extract the exported symbol list from a shared archive.
18605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18607 # Symbols that should not be listed in the preloaded symbols.
18608 exclude_expsyms=$lt_exclude_expsyms_GCJ
18610 # Symbols that must always be exported.
18611 include_expsyms=$lt_include_expsyms_GCJ
18613 # ### END LIBTOOL TAG CONFIG: $tagname
18619 # If there is no Makefile yet, we rely on a make rule to execute
18620 # `config.status --recheck' to rerun these tests and create the
18621 # libtool script then.
18622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18623 if test -f "$ltmain_in"; then
18624 test -f Makefile && make "$ltmain"
18630 ac_cpp='$CPP $CPPFLAGS'
18631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18645 # Source file extension for RC test sources.
18648 # Object file extension for compiled RC test sources.
18652 # Code to be used in simple compile tests
18653 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18655 # Code to be used in simple link tests
18656 lt_simple_link_test_code="$lt_simple_compile_test_code"
18658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18660 # If no C compiler was specified, use CC.
18663 # If no C compiler flags were specified, use CFLAGS.
18664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18666 # Allow CC to be a program name with arguments.
18670 # save warnings/boilerplate of simple test code
18671 ac_outfile=conftest.$ac_objext
18672 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18674 _lt_compiler_boilerplate=`cat conftest.err`
18677 ac_outfile=conftest.$ac_objext
18678 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18680 _lt_linker_boilerplate=`cat conftest.err`
18684 # Allow CC to be a program name with arguments.
18689 for cc_temp in $compiler""; do
18691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18699 lt_cv_prog_compiler_c_o_RC=yes
18701 # The else clause should only fire when bootstrapping the
18702 # libtool distribution, otherwise you forgot to ship ltmain.sh
18703 # with your package, and you will get complaints that there are
18704 # no rules to generate ltmain.sh.
18705 if test -f "$ltmain"; then
18706 # See if we are running on zsh, and set the options which allow our commands through
18707 # without removal of \ escapes.
18708 if test -n "${ZSH_VERSION+set}" ; then
18709 setopt NO_GLOB_SUBST
18711 # Now quote all the things that may contain metacharacters while being
18712 # careful not to overquote the AC_SUBSTed values. We take copies of the
18713 # variables and quote the copies for generation of the libtool script.
18714 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18718 deplibs_check_method reload_flag reload_cmds need_locks \
18719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18720 lt_cv_sys_global_symbol_to_c_name_address \
18721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18722 old_postinstall_cmds old_postuninstall_cmds \
18726 lt_prog_compiler_wl_RC \
18727 lt_prog_compiler_pic_RC \
18728 lt_prog_compiler_static_RC \
18729 lt_prog_compiler_no_builtin_flag_RC \
18730 export_dynamic_flag_spec_RC \
18731 thread_safe_flag_spec_RC \
18732 whole_archive_flag_spec_RC \
18733 enable_shared_with_static_runtimes_RC \
18734 old_archive_cmds_RC \
18735 old_archive_from_new_cmds_RC \
18736 predep_objects_RC \
18737 postdep_objects_RC \
18740 compiler_lib_search_path_RC \
18742 archive_expsym_cmds_RC \
18743 postinstall_cmds_RC \
18744 postuninstall_cmds_RC \
18745 old_archive_from_expsyms_cmds_RC \
18746 allow_undefined_flag_RC \
18747 no_undefined_flag_RC \
18748 export_symbols_cmds_RC \
18749 hardcode_libdir_flag_spec_RC \
18750 hardcode_libdir_flag_spec_ld_RC \
18751 hardcode_libdir_separator_RC \
18752 hardcode_automatic_RC \
18754 module_expsym_cmds_RC \
18755 lt_cv_prog_compiler_c_o_RC \
18756 exclude_expsyms_RC \
18757 include_expsyms_RC; do
18760 old_archive_cmds_RC | \
18761 old_archive_from_new_cmds_RC | \
18762 archive_cmds_RC | \
18763 archive_expsym_cmds_RC | \
18765 module_expsym_cmds_RC | \
18766 old_archive_from_expsyms_cmds_RC | \
18767 export_symbols_cmds_RC | \
18768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18769 postinstall_cmds | postuninstall_cmds | \
18770 old_postinstall_cmds | old_postuninstall_cmds | \
18771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18772 # Double-quote double-evaled strings.
18773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18782 *'\$0 --fallback-echo"')
18783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18789 cat <<__EOF__ >> "$cfgfile"
18790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18794 # Shell to use when invoking shell scripts.
18797 # Whether or not to build shared libraries.
18798 build_libtool_libs=$enable_shared
18800 # Whether or not to build static libraries.
18801 build_old_libs=$enable_static
18803 # Whether or not to add -lc for building shared libraries.
18804 build_libtool_need_lc=$archive_cmds_need_lc_RC
18806 # Whether or not to disallow shared libs when runtime libs are static
18807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18809 # Whether or not to optimize for fast installation.
18810 fast_install=$enable_fast_install
18813 host_alias=$host_alias
18817 # The build system.
18818 build_alias=$build_alias
18822 # An echo program that does not interpret backslashes.
18827 AR_FLAGS=$lt_AR_FLAGS
18832 # LTCC compiler flags.
18833 LTCFLAGS=$lt_LTCFLAGS
18835 # A language-specific compiler.
18838 # Is the compiler the GNU C compiler?
18844 # The linker used to build libraries.
18847 # Whether we need hard or soft links.
18850 # A BSD-compatible nm program.
18853 # A symbol stripping program
18856 # Used to examine libraries when file_magic_cmd begins "file"
18857 MAGIC_CMD=$MAGIC_CMD
18859 # Used on cygwin: DLL creation program.
18862 # Used on cygwin: object dumper.
18865 # Used on cygwin: assembler.
18868 # The name of the directory that contains temporary libtool files.
18871 # How to create reloadable object files.
18872 reload_flag=$lt_reload_flag
18873 reload_cmds=$lt_reload_cmds
18875 # How to pass a linker flag through the compiler.
18876 wl=$lt_lt_prog_compiler_wl_RC
18878 # Object file suffix (normally "o").
18879 objext="$ac_objext"
18881 # Old archive suffix (normally "a").
18884 # Shared library suffix (normally ".so").
18885 shrext_cmds='$shrext_cmds'
18887 # Executable file suffix (normally "").
18890 # Additional compiler flags for building library objects.
18891 pic_flag=$lt_lt_prog_compiler_pic_RC
18894 # What is the maximum length of a command?
18895 max_cmd_len=$lt_cv_sys_max_cmd_len
18897 # Does compiler simultaneously support -c and -o options?
18898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18900 # Must we lock files when doing compilation?
18901 need_locks=$lt_need_locks
18903 # Do we need the lib prefix for modules?
18904 need_lib_prefix=$need_lib_prefix
18906 # Do we need a version for libraries?
18907 need_version=$need_version
18909 # Whether dlopen is supported.
18910 dlopen_support=$enable_dlopen
18912 # Whether dlopen of programs is supported.
18913 dlopen_self=$enable_dlopen_self
18915 # Whether dlopen of statically linked programs is supported.
18916 dlopen_self_static=$enable_dlopen_self_static
18918 # Compiler flag to prevent dynamic linking.
18919 link_static_flag=$lt_lt_prog_compiler_static_RC
18921 # Compiler flag to turn off builtin functions.
18922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18924 # Compiler flag to allow reflexive dlopens.
18925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18927 # Compiler flag to generate shared objects directly from archives.
18928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18930 # Compiler flag to generate thread-safe objects.
18931 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18933 # Library versioning type.
18934 version_type=$version_type
18936 # Format of library name prefix.
18937 libname_spec=$lt_libname_spec
18939 # List of archive names. First name is the real one, the rest are links.
18940 # The last name is the one that the linker finds with -lNAME.
18941 library_names_spec=$lt_library_names_spec
18943 # The coded name of the library, if different from the real name.
18944 soname_spec=$lt_soname_spec
18946 # Commands used to build and install an old-style archive.
18948 old_archive_cmds=$lt_old_archive_cmds_RC
18949 old_postinstall_cmds=$lt_old_postinstall_cmds
18950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18952 # Create an old-style archive from a shared archive.
18953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18955 # Create a temporary old-style archive to link instead of a shared archive.
18956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18958 # Commands used to build and install a shared archive.
18959 archive_cmds=$lt_archive_cmds_RC
18960 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18961 postinstall_cmds=$lt_postinstall_cmds
18962 postuninstall_cmds=$lt_postuninstall_cmds
18964 # Commands used to build a loadable module (assumed same as above if empty)
18965 module_cmds=$lt_module_cmds_RC
18966 module_expsym_cmds=$lt_module_expsym_cmds_RC
18968 # Commands to strip libraries.
18969 old_striplib=$lt_old_striplib
18970 striplib=$lt_striplib
18972 # Dependencies to place before the objects being linked to create a
18974 predep_objects=$lt_predep_objects_RC
18976 # Dependencies to place after the objects being linked to create a
18978 postdep_objects=$lt_postdep_objects_RC
18980 # Dependencies to place before the objects being linked to create a
18982 predeps=$lt_predeps_RC
18984 # Dependencies to place after the objects being linked to create a
18986 postdeps=$lt_postdeps_RC
18988 # The library search path used internally by the compiler when linking
18989 # a shared library.
18990 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18992 # Method to check whether dependent libraries are shared objects.
18993 deplibs_check_method=$lt_deplibs_check_method
18995 # Command to use when deplibs_check_method == file_magic.
18996 file_magic_cmd=$lt_file_magic_cmd
18998 # Flag that allows shared libraries with undefined symbols to be built.
18999 allow_undefined_flag=$lt_allow_undefined_flag_RC
19001 # Flag that forces no undefined symbols.
19002 no_undefined_flag=$lt_no_undefined_flag_RC
19004 # Commands used to finish a libtool library installation in a directory.
19005 finish_cmds=$lt_finish_cmds
19007 # Same as above, but a single script fragment to be evaled but not shown.
19008 finish_eval=$lt_finish_eval
19010 # Take the output of nm and produce a listing of raw symbols and C names.
19011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19013 # Transform the output of nm in a proper C declaration
19014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19016 # Transform the output of nm in a C name address pair
19017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19019 # This is the shared library runtime path variable.
19020 runpath_var=$runpath_var
19022 # This is the shared library path variable.
19023 shlibpath_var=$shlibpath_var
19025 # Is shlibpath searched before the hard-coded library search path?
19026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19028 # How to hardcode a shared library path into an executable.
19029 hardcode_action=$hardcode_action_RC
19031 # Whether we should hardcode library paths into libraries.
19032 hardcode_into_libs=$hardcode_into_libs
19034 # Flag to hardcode \$libdir into a binary during linking.
19035 # This must work even if \$libdir does not exist.
19036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19038 # If ld is used when linking, flag to hardcode \$libdir into
19039 # a binary during linking. This must work even if \$libdir does
19041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19043 # Whether we need a single -rpath flag with a separated argument.
19044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19047 # resulting binary.
19048 hardcode_direct=$hardcode_direct_RC
19050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19051 # resulting binary.
19052 hardcode_minus_L=$hardcode_minus_L_RC
19054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19055 # the resulting binary.
19056 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19058 # Set to yes if building a shared library automatically hardcodes DIR into the library
19059 # and all subsequent libraries and executables linked against it.
19060 hardcode_automatic=$hardcode_automatic_RC
19062 # Variables whose values should be saved in libtool wrapper scripts and
19063 # restored at relink time.
19064 variables_saved_for_relink="$variables_saved_for_relink"
19066 # Whether libtool must link a program against all its dependency libraries.
19067 link_all_deplibs=$link_all_deplibs_RC
19069 # Compile-time system search path for libraries
19070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19072 # Run-time system search path for libraries
19073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19075 # Fix the shell variable \$srcfile for the compiler.
19076 fix_srcfile_path="$fix_srcfile_path_RC"
19078 # Set to yes if exported symbols are required.
19079 always_export_symbols=$always_export_symbols_RC
19081 # The commands to list exported symbols.
19082 export_symbols_cmds=$lt_export_symbols_cmds_RC
19084 # The commands to extract the exported symbol list from a shared archive.
19085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19087 # Symbols that should not be listed in the preloaded symbols.
19088 exclude_expsyms=$lt_exclude_expsyms_RC
19090 # Symbols that must always be exported.
19091 include_expsyms=$lt_include_expsyms_RC
19093 # ### END LIBTOOL TAG CONFIG: $tagname
19099 # If there is no Makefile yet, we rely on a make rule to execute
19100 # `config.status --recheck' to rerun these tests and create the
19101 # libtool script then.
19102 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19103 if test -f "$ltmain_in"; then
19104 test -f Makefile && make "$ltmain"
19110 ac_cpp='$CPP $CPPFLAGS'
19111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19120 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19121 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19122 { (exit 1); exit 1; }; }
19126 # Append the new tag name to the list of available tags.
19127 if test -n "$tagname" ; then
19128 available_tags="$available_tags $tagname"
19134 # Now substitute the updated list of available tags.
19135 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19136 mv "${ofile}T" "$ofile"
19140 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19141 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19142 { (exit 1); exit 1; }; }
19148 # This can be used to rebuild libtool when needed
19149 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19151 # Always use our own libtool.
19152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19154 # Prevent multiple expansion
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181 if test -n "$ac_tool_prefix"; then
19182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19186 if test "${ac_cv_prog_CC+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 if test -n "$CC"; then
19190 ac_cv_prog_CC="$CC" # Let the user override the test.
19192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19193 for as_dir in $PATH
19196 test -z "$as_dir" && as_dir=.
19197 for ac_exec_ext in '' $ac_executable_extensions; do
19198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19210 if test -n "$CC"; then
19211 { echo "$as_me:$LINENO: result: $CC" >&5
19212 echo "${ECHO_T}$CC" >&6; }
19214 { echo "$as_me:$LINENO: result: no" >&5
19215 echo "${ECHO_T}no" >&6; }
19220 if test -z "$ac_cv_prog_CC"; then
19222 # Extract the first word of "gcc", so it can be a program name with args.
19223 set dummy gcc; ac_word=$2
19224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 if test -n "$ac_ct_CC"; then
19230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19233 for as_dir in $PATH
19236 test -z "$as_dir" && as_dir=.
19237 for ac_exec_ext in '' $ac_executable_extensions; do
19238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19239 ac_cv_prog_ac_ct_CC="gcc"
19240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19250 if test -n "$ac_ct_CC"; then
19251 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19252 echo "${ECHO_T}$ac_ct_CC" >&6; }
19254 { echo "$as_me:$LINENO: result: no" >&5
19255 echo "${ECHO_T}no" >&6; }
19258 if test "x$ac_ct_CC" = x; then
19261 case $cross_compiling:$ac_tool_warned in
19263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19264 whose name does not start with the host triplet. If you think this
19265 configuration is useful to you, please write to autoconf@gnu.org." >&5
19266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19267 whose name does not start with the host triplet. If you think this
19268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19269 ac_tool_warned=yes ;;
19274 CC="$ac_cv_prog_CC"
19277 if test -z "$CC"; then
19278 if test -n "$ac_tool_prefix"; then
19279 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19280 set dummy ${ac_tool_prefix}cc; ac_word=$2
19281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19283 if test "${ac_cv_prog_CC+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 if test -n "$CC"; then
19287 ac_cv_prog_CC="$CC" # Let the user override the test.
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19293 test -z "$as_dir" && as_dir=.
19294 for ac_exec_ext in '' $ac_executable_extensions; do
19295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19296 ac_cv_prog_CC="${ac_tool_prefix}cc"
19297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19307 if test -n "$CC"; then
19308 { echo "$as_me:$LINENO: result: $CC" >&5
19309 echo "${ECHO_T}$CC" >&6; }
19311 { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19318 if test -z "$CC"; then
19319 # Extract the first word of "cc", so it can be a program name with args.
19320 set dummy cc; ac_word=$2
19321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19323 if test "${ac_cv_prog_CC+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 if test -n "$CC"; then
19327 ac_cv_prog_CC="$CC" # Let the user override the test.
19329 ac_prog_rejected=no
19330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19331 for as_dir in $PATH
19334 test -z "$as_dir" && as_dir=.
19335 for ac_exec_ext in '' $ac_executable_extensions; do
19336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19338 ac_prog_rejected=yes
19342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19349 if test $ac_prog_rejected = yes; then
19350 # We found a bogon in the path, so make sure we never use it.
19351 set dummy $ac_cv_prog_CC
19353 if test $# != 0; then
19354 # We chose a different compiler from the bogus one.
19355 # However, it has the same basename, so the bogon will be chosen
19356 # first if we set CC to just the basename; use the full file name.
19358 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19364 if test -n "$CC"; then
19365 { echo "$as_me:$LINENO: result: $CC" >&5
19366 echo "${ECHO_T}$CC" >&6; }
19368 { echo "$as_me:$LINENO: result: no" >&5
19369 echo "${ECHO_T}no" >&6; }
19374 if test -z "$CC"; then
19375 if test -n "$ac_tool_prefix"; then
19376 for ac_prog in cl.exe
19378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19382 if test "${ac_cv_prog_CC+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 if test -n "$CC"; then
19386 ac_cv_prog_CC="$CC" # Let the user override the test.
19388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19389 for as_dir in $PATH
19392 test -z "$as_dir" && as_dir=.
19393 for ac_exec_ext in '' $ac_executable_extensions; do
19394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19395 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19406 if test -n "$CC"; then
19407 { echo "$as_me:$LINENO: result: $CC" >&5
19408 echo "${ECHO_T}$CC" >&6; }
19410 { echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6; }
19415 test -n "$CC" && break
19418 if test -z "$CC"; then
19420 for ac_prog in cl.exe
19422 # Extract the first word of "$ac_prog", so it can be a program name with args.
19423 set dummy $ac_prog; ac_word=$2
19424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 if test -n "$ac_ct_CC"; then
19430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19433 for as_dir in $PATH
19436 test -z "$as_dir" && as_dir=.
19437 for ac_exec_ext in '' $ac_executable_extensions; do
19438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19439 ac_cv_prog_ac_ct_CC="$ac_prog"
19440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19450 if test -n "$ac_ct_CC"; then
19451 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19452 echo "${ECHO_T}$ac_ct_CC" >&6; }
19454 { echo "$as_me:$LINENO: result: no" >&5
19455 echo "${ECHO_T}no" >&6; }
19459 test -n "$ac_ct_CC" && break
19462 if test "x$ac_ct_CC" = x; then
19465 case $cross_compiling:$ac_tool_warned in
19467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19468 whose name does not start with the host triplet. If you think this
19469 configuration is useful to you, please write to autoconf@gnu.org." >&5
19470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19471 whose name does not start with the host triplet. If you think this
19472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19473 ac_tool_warned=yes ;;
19482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19483 See \`config.log' for more details." >&5
19484 echo "$as_me: error: no acceptable C compiler found in \$PATH
19485 See \`config.log' for more details." >&2;}
19486 { (exit 1); exit 1; }; }
19488 # Provide some information about the compiler.
19489 echo "$as_me:$LINENO: checking for C compiler version" >&5
19490 ac_compiler=`set X $ac_compile; echo $2`
19491 { (ac_try="$ac_compiler --version >&5"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compiler --version >&5") 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }
19501 { (ac_try="$ac_compiler -v >&5"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_compiler -v >&5") 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }
19511 { (ac_try="$ac_compiler -V >&5"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_compiler -V >&5") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }
19522 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19523 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19524 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19562 ac_compiler_gnu=yes
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19574 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19576 GCC=`test $ac_compiler_gnu = yes && echo yes`
19577 ac_test_CFLAGS=${CFLAGS+set}
19578 ac_save_CFLAGS=$CFLAGS
19579 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19580 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19581 if test "${ac_cv_prog_cc_g+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 ac_save_c_werror_flag=$ac_c_werror_flag
19585 ac_c_werror_flag=yes
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_compile") 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } && {
19617 test -z "$ac_c_werror_flag" ||
19618 test ! -s conftest.err
19619 } && test -s conftest.$ac_objext; then
19620 ac_cv_prog_cc_g=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19641 rm -f conftest.$ac_objext
19642 if { (ac_try="$ac_compile"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_compile") 2>conftest.er1
19650 grep -v '^ *+' conftest.er1 >conftest.err
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } && {
19655 test -z "$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 } && test -s conftest.$ac_objext; then
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_c_werror_flag=$ac_save_c_werror_flag
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19680 rm -f conftest.$ac_objext
19681 if { (ac_try="$ac_compile"
19682 case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_compile") 2>conftest.er1
19689 grep -v '^ *+' conftest.er1 >conftest.err
19691 cat conftest.err >&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } && {
19694 test -z "$ac_c_werror_flag" ||
19695 test ! -s conftest.err
19696 } && test -s conftest.$ac_objext; then
19697 ac_cv_prog_cc_g=yes
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19712 ac_c_werror_flag=$ac_save_c_werror_flag
19714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19716 if test "$ac_test_CFLAGS" = set; then
19717 CFLAGS=$ac_save_CFLAGS
19718 elif test $ac_cv_prog_cc_g = yes; then
19719 if test "$GCC" = yes; then
19725 if test "$GCC" = yes; then
19731 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19732 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19733 if test "${ac_cv_prog_cc_c89+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 ac_cv_prog_cc_c89=no
19738 cat >conftest.$ac_ext <<_ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 #include <stdarg.h>
19746 #include <sys/types.h>
19747 #include <sys/stat.h>
19748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19749 struct buf { int x; };
19750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19751 static char *e (p, i)
19757 static char *f (char * (*g) (char **, int), char **p, ...)
19762 s = g (p, va_arg (v,int));
19767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19768 function prototypes and stuff, but not '\xHH' hex character constants.
19769 These don't provoke an error unfortunately, instead are silently treated
19770 as 'x'. The following induces an error, until -std is added to get
19771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19772 array size at least. It's necessary to write '\x00'==0 to get something
19773 that's true only with -std. */
19774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19777 inside strings and character constants. */
19779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19781 int test (int i, double x);
19782 struct s1 {int (*f) (int a);};
19783 struct s2 {int (*f) (double a);};
19784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19798 CC="$ac_save_CC $ac_arg"
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } && {
19813 test -z "$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19815 } && test -s conftest.$ac_objext; then
19816 ac_cv_prog_cc_c89=$ac_arg
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19824 rm -f core conftest.err conftest.$ac_objext
19825 test "x$ac_cv_prog_cc_c89" != "xno" && break
19827 rm -f conftest.$ac_ext
19832 case "x$ac_cv_prog_cc_c89" in
19834 { echo "$as_me:$LINENO: result: none needed" >&5
19835 echo "${ECHO_T}none needed" >&6; } ;;
19837 { echo "$as_me:$LINENO: result: unsupported" >&5
19838 echo "${ECHO_T}unsupported" >&6; } ;;
19840 CC="$CC $ac_cv_prog_cc_c89"
19841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19842 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19847 ac_cpp='$CPP $CPPFLAGS'
19848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19852 depcc="$CC" am_compiler_list=
19854 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19855 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19856 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19860 # We make a subdir and do the tests there. Otherwise we can end up
19861 # making bogus files that we don't know about and never remove. For
19862 # instance it was reported that on HP-UX the gcc test will end up
19863 # making a dummy file named `D' -- because `-MD' means `put the output
19866 # Copy depcomp to subdir because otherwise we won't find it if we're
19867 # using a relative directory.
19868 cp "$am_depcomp" conftest.dir
19870 # We will build objects and dependencies in a subdirectory because
19871 # it helps to detect inapplicable dependency modes. For instance
19872 # both Tru64's cc and ICC support -MD to output dependencies as a
19873 # side effect of compilation, but ICC will put the dependencies in
19874 # the current directory while Tru64 will put them in the object
19878 am_cv_CC_dependencies_compiler_type=none
19879 if test "$am_compiler_list" = ""; then
19880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19882 for depmode in $am_compiler_list; do
19883 # Setup a source with many dependencies, because some compilers
19884 # like to wrap large dependency lists on column 80 (with \), and
19885 # we should not choose a depcomp mode which is confused by this.
19887 # We need to recreate these files for each test, as the compiler may
19888 # overwrite some of them when testing with obscure command lines.
19889 # This happens at least with the AIX C compiler.
19891 for i in 1 2 3 4 5 6; do
19892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19893 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19894 # Solaris 8's {/usr,}/bin/sh.
19895 touch sub/conftst$i.h
19897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19901 # after this tag, mechanisms are not by side-effect, so they'll
19902 # only be used when explicitly requested
19903 if test "x$enable_dependency_tracking" = xyes; then
19911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19912 # mode. It turns out that the SunPro C++ compiler does not properly
19913 # handle `-M -o', and we need to detect this.
19914 if depmode=$depmode \
19915 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19917 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19918 >/dev/null 2>conftest.err &&
19919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19923 # icc doesn't choke on unknown options, it will just issue warnings
19924 # or remarks (even with -Werror). So we grep stderr for any message
19925 # that says an option was ignored or not supported.
19926 # When given -MP, icc 7.0 and 7.1 complain thusly:
19927 # icc: Command line warning: ignoring option '-M'; no argument required
19928 # The diagnosis changed in icc 8.0:
19929 # icc: Command line remark: option '-MP' not supported
19930 if (grep 'ignoring option' conftest.err ||
19931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19932 am_cv_CC_dependencies_compiler_type=$depmode
19939 rm -rf conftest.dir
19941 am_cv_CC_dependencies_compiler_type=none
19945 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19946 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19950 test "x$enable_dependency_tracking" != xno \
19951 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19952 am__fastdepCC_TRUE=
19953 am__fastdepCC_FALSE='#'
19955 am__fastdepCC_TRUE='#'
19956 am__fastdepCC_FALSE=
19961 # Checks for libraries.
19963 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19964 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19965 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-lapr-1 $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (ac_try="$ac_link"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_link") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest$ac_exeext &&
20003 $as_test_x conftest$ac_exeext; then
20004 ac_cv_lib_apr_1_main=yes
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_lib_apr_1_main=no
20012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20013 conftest$ac_exeext conftest.$ac_ext
20014 LIBS=$ac_check_lib_save_LIBS
20016 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20017 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20018 if test $ac_cv_lib_apr_1_main = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_LIBAPR_1 1
20023 LIBS="-lapr-1 $LIBS"
20028 # Checks for header files.
20029 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20031 if test "${ac_cv_header_stdc+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <stdlib.h>
20041 #include <stdarg.h>
20042 #include <string.h>
20053 rm -f conftest.$ac_objext
20054 if { (ac_try="$ac_compile"
20055 case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_compile") 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } && {
20067 test -z "$ac_c_werror_flag" ||
20068 test ! -s conftest.err
20069 } && test -s conftest.$ac_objext; then
20070 ac_cv_header_stdc=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_cv_header_stdc=no
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20080 if test $ac_cv_header_stdc = yes; then
20081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 #include <string.h>
20091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20092 $EGREP "memchr" >/dev/null 2>&1; then
20095 ac_cv_header_stdc=no
20101 if test $ac_cv_header_stdc = yes; then
20102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <stdlib.h>
20112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20113 $EGREP "free" >/dev/null 2>&1; then
20116 ac_cv_header_stdc=no
20122 if test $ac_cv_header_stdc = yes; then
20123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20124 if test "$cross_compiling" = yes; then
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20134 #include <stdlib.h>
20135 #if ((' ' & 0x0FF) == 0x020)
20136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20139 # define ISLOWER(c) \
20140 (('a' <= (c) && (c) <= 'i') \
20141 || ('j' <= (c) && (c) <= 'r') \
20142 || ('s' <= (c) && (c) <= 'z'))
20143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20151 for (i = 0; i < 256; i++)
20152 if (XOR (islower (i), ISLOWER (i))
20153 || toupper (i) != TOUPPER (i))
20158 rm -f conftest$ac_exeext
20159 if { (ac_try="$ac_link"
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_link") 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20169 { (case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_try") 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20180 echo "$as_me: program exited with status $ac_status" >&5
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ( exit $ac_status )
20185 ac_cv_header_stdc=no
20187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20193 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20194 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20195 if test $ac_cv_header_stdc = yes; then
20197 cat >>confdefs.h <<\_ACEOF
20198 #define STDC_HEADERS 1
20204 for ac_header in string.h
20206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 ac_res=`eval echo '${'$as_ac_Header'}'`
20214 { echo "$as_me:$LINENO: result: $ac_res" >&5
20215 echo "${ECHO_T}$ac_res" >&6; }
20217 # Is the header compilable?
20218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20226 $ac_includes_default
20227 #include <$ac_header>
20229 rm -f conftest.$ac_objext
20230 if { (ac_try="$ac_compile"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_header_compiler=yes
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_header_compiler=no
20254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20256 echo "${ECHO_T}$ac_header_compiler" >&6; }
20258 # Is the header present?
20259 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20267 #include <$ac_header>
20269 if { (ac_try="$ac_cpp conftest.$ac_ext"
20270 case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20277 grep -v '^ *+' conftest.er1 >conftest.err
20279 cat conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } >/dev/null && {
20282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20283 test ! -s conftest.err
20285 ac_header_preproc=yes
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_header_preproc=no
20293 rm -f conftest.err conftest.$ac_ext
20294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20295 echo "${ECHO_T}$ac_header_preproc" >&6; }
20297 # So? What about this header?
20298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20304 ac_header_preproc=yes
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20320 ## ---------------------------------------- ##
20321 ## Report this to konn@users.sourceforge.jp ##
20322 ## ---------------------------------------- ##
20324 ) | sed "s/^/$as_me: WARNING: /" >&2
20327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 eval "$as_ac_Header=\$ac_header_preproc"
20334 ac_res=`eval echo '${'$as_ac_Header'}'`
20335 { echo "$as_me:$LINENO: result: $ac_res" >&5
20336 echo "${ECHO_T}$ac_res" >&6; }
20339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20340 cat >>confdefs.h <<_ACEOF
20341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20350 # Check whether --with-apr-config was given.
20351 if test "${with_apr_config+set}" = set; then
20352 withval=$with_apr_config;
20355 if test "x$with_apr_config" = "xyes" ; then
20356 { { echo "$as_me:$LINENO: error:
20357 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20359 echo "$as_me: error:
20360 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20362 { (exit 1); exit 1; }; }
20366 # Check whether --with-apu-config was given.
20367 if test "${with_apu_config+set}" = set; then
20368 withval=$with_apu_config;
20371 if test "x$with_apu_config" = "xyes" ; then
20372 { { echo "$as_me:$LINENO: error:
20373 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20375 echo "$as_me: error:
20376 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20378 { (exit 1); exit 1; }; }
20381 # Extract the first word of "libtool", so it can be a program name with args.
20382 set dummy libtool; ac_word=$2
20383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20385 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20394 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20395 for as_dir in $as_dummy
20398 test -z "$as_dir" && as_dir=.
20399 for ac_exec_ext in '' $ac_executable_extensions; do
20400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20401 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20409 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20413 LIBTOOL=$ac_cv_path_LIBTOOL
20414 if test -n "$LIBTOOL"; then
20415 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20416 echo "${ECHO_T}$LIBTOOL" >&6; }
20418 { echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6; }
20423 if test "x$LIBTOOL" = "xno"; then
20424 { { echo "$as_me:$LINENO: error: libtool not found." >&5
20425 echo "$as_me: error: libtool not found." >&2;}
20426 { (exit 1); exit 1; }; }
20430 if test "x$with_apr_config" = "x" ; then
20431 # Extract the first word of "apr-config", so it can be a program name with args.
20432 set dummy apr-config; ac_word=$2
20433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20435 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 case $APR_CONFIG in
20440 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20445 for as_dir in $as_dummy
20448 test -z "$as_dir" && as_dir=.
20449 for ac_exec_ext in '' $ac_executable_extensions; do
20450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20451 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20459 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20463 APR_CONFIG=$ac_cv_path_APR_CONFIG
20464 if test -n "$APR_CONFIG"; then
20465 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20466 echo "${ECHO_T}$APR_CONFIG" >&6; }
20468 { echo "$as_me:$LINENO: result: no" >&5
20469 echo "${ECHO_T}no" >&6; }
20473 if test "x$APR_CONFIG" = "xno" ; then
20474 # Extract the first word of "apr-1-config", so it can be a program name with args.
20475 set dummy apr-1-config; ac_word=$2
20476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20478 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 case $APR_1_CONFIG in
20483 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20487 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20488 for as_dir in $as_dummy
20491 test -z "$as_dir" && as_dir=.
20492 for ac_exec_ext in '' $ac_executable_extensions; do
20493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20494 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20502 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20506 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20507 if test -n "$APR_1_CONFIG"; then
20508 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20509 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20511 { echo "$as_me:$LINENO: result: no" >&5
20512 echo "${ECHO_T}no" >&6; }
20516 if test "x$APR_1_CONFIG" = "xno" ; then
20517 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20518 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20519 { (exit 1); exit 1; }; }
20521 APR_CONFIG="$APR_1_CONFIG"
20525 if test "x$with_apr_config" != "x" ; then
20526 APR_CONFIG=$with_apr_config
20528 if test "x$with_apu_config" = "x" ; then
20529 # Extract the first word of "apu-config", so it can be a program name with args.
20530 set dummy apu-config; ac_word=$2
20531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20533 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 case $APU_CONFIG in
20538 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20542 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20543 for as_dir in $as_dummy
20546 test -z "$as_dir" && as_dir=.
20547 for ac_exec_ext in '' $ac_executable_extensions; do
20548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20549 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20557 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20561 APU_CONFIG=$ac_cv_path_APU_CONFIG
20562 if test -n "$APU_CONFIG"; then
20563 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20564 echo "${ECHO_T}$APU_CONFIG" >&6; }
20566 { echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6; }
20571 if test "x$APU_CONFIG" = "xno" ; then
20572 # Extract the first word of "apu-1-config", so it can be a program name with args.
20573 set dummy apu-1-config; ac_word=$2
20574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20576 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 case $APU_1_CONFIG in
20581 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20585 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20586 for as_dir in $as_dummy
20589 test -z "$as_dir" && as_dir=.
20590 for ac_exec_ext in '' $ac_executable_extensions; do
20591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20592 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20600 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20604 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20605 if test -n "$APU_1_CONFIG"; then
20606 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20607 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20609 { echo "$as_me:$LINENO: result: no" >&5
20610 echo "${ECHO_T}no" >&6; }
20614 if test "x$APU_1_CONFIG" = "xno" ; then
20615 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20616 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20617 { (exit 1); exit 1; }; }
20619 APU_CONFIG="$APU_1_CONFIG"
20623 if test "x$with_apu_config" != "x" ; then
20624 APU_CONFIG=$with_apu_config
20628 if test "x$with_apu_config" != "x" ; then
20629 APU_CONFIG=$with_apu_config
20632 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20633 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20634 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20635 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20638 # Checks for typedefs, structures, and compiler characteristics.
20639 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20640 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20641 if test "${ac_cv_c_const+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20654 /* FIXME: Include the comments suggested by Paul. */
20655 #ifndef __cplusplus
20656 /* Ultrix mips cc rejects this. */
20657 typedef int charset[2];
20659 /* SunOS 4.1.1 cc rejects this. */
20660 char const *const *pcpcc;
20662 /* NEC SVR4.0.2 mips cc rejects this. */
20663 struct point {int x, y;};
20664 static struct point const zero = {0,0};
20665 /* AIX XL C 1.02.0.0 rejects this.
20666 It does not let you subtract one const X* pointer from another in
20667 an arm of an if-expression whose if-part is not a constant
20669 const char *g = "string";
20670 pcpcc = &g + (g ? g-g : 0);
20671 /* HPUX 7.0 cc rejects these. */
20673 ppc = (char**) pcpcc;
20674 pcpcc = (char const *const *) ppc;
20675 { /* SCO 3.2v4 cc rejects this. */
20677 char const *s = 0 ? (char *) 0 : (char const *) 0;
20682 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20683 int x[] = {25, 17};
20684 const int *foo = &x[0];
20687 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20688 typedef const int *iptr;
20692 { /* AIX XL C 1.02.0.0 rejects this saying
20693 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20694 struct s { int j; const int *ap[3]; };
20695 struct s *b; b->j = 5;
20697 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20698 const int foo = 10;
20699 if (!foo) return 0;
20701 return !cs[0] && !zero.x;
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20717 grep -v '^ *+' conftest.er1 >conftest.err
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.$ac_objext; then
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20736 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20737 if test $ac_cv_c_const = no; then
20739 cat >>confdefs.h <<\_ACEOF
20746 # Checks for library functions.
20750 for ac_func in memset strcasecmp strncasecmp
20752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20766 #define $ac_func innocuous_$ac_func
20768 /* System header to define __stub macros and hopefully few prototypes,
20769 which can conflict with char $ac_func (); below.
20770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20771 <limits.h> exists even on freestanding compilers. */
20774 # include <limits.h>
20776 # include <assert.h>
20781 /* Override any GCC internal prototype to avoid an error.
20782 Use char because int might match the return type of a GCC
20783 builtin and then its argument prototype would still apply. */
20788 /* The GNU C library defines this for functions which it implements
20789 to always fail with ENOSYS. Some functions are actually named
20790 something starting with __ and the normal name is an alias. */
20791 #if defined __stub_$ac_func || defined __stub___$ac_func
20798 return $ac_func ();
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_link") 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && {
20817 test -z "$ac_c_werror_flag" ||
20818 test ! -s conftest.err
20819 } && test -s conftest$ac_exeext &&
20820 $as_test_x conftest$ac_exeext; then
20821 eval "$as_ac_var=yes"
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 eval "$as_ac_var=no"
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 conftest$ac_exeext conftest.$ac_ext
20832 ac_res=`eval echo '${'$as_ac_var'}'`
20833 { echo "$as_me:$LINENO: result: $ac_res" >&5
20834 echo "${ECHO_T}$ac_res" >&6; }
20835 if test `eval echo '${'$as_ac_var'}'` = yes; then
20836 cat >>confdefs.h <<_ACEOF
20837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20848 ac_config_files="$ac_config_files Makefile src/Makefile"
20850 cat >confcache <<\_ACEOF
20851 # This file is a shell script that caches the results of configure
20852 # tests run on this system so they can be shared between configure
20853 # scripts and configure runs, see configure's option --config-cache.
20854 # It is not useful on other systems. If it contains results you don't
20855 # want to keep, you may remove or edit it.
20857 # config.status only pays attention to the cache file if you give it
20858 # the --recheck option to rerun configure.
20860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20862 # following values.
20866 # The following way of writing the cache mishandles newlines in values,
20867 # but we know of no workaround that is simple, portable, and efficient.
20868 # So, we kill variables containing newlines.
20869 # Ultrix sh set writes to stderr and can't be redirected directly,
20870 # and sets the high bit in the cache file unless we assign to the vars.
20872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20873 eval ac_val=\$$ac_var
20877 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20878 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20881 _ | IFS | as_nl) ;; #(
20882 *) $as_unset $ac_var ;;
20888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20889 *${as_nl}ac_space=\ *)
20890 # `set' does not quote correctly, so add quotes (double-quote
20891 # substitution turns \\\\ into \\, and sed turns \\ into \).
20894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20897 # `set' quotes correctly as required by POSIX, so do not add quotes.
20898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20912 if test -w "$cache_file"; then
20913 test "x$cache_file" != "x/dev/null" &&
20914 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20915 echo "$as_me: updating cache $cache_file" >&6;}
20916 cat confcache >$cache_file
20918 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20919 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20925 # Let make expand exec_prefix.
20926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20928 DEFS=-DHAVE_CONFIG_H
20932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20933 # 1. Remove the extension, and $U if already installed.
20934 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20935 ac_i=`echo "$ac_i" | sed "$ac_script"`
20936 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20937 # will be set to the directory where LIBOBJS objects are built.
20938 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20939 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20941 LIBOBJS=$ac_libobjs
20943 LTLIBOBJS=$ac_ltlibobjs
20946 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20947 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20948 Usually this means the macro was only invoked conditionally." >&5
20949 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20950 Usually this means the macro was only invoked conditionally." >&2;}
20951 { (exit 1); exit 1; }; }
20953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20954 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20955 Usually this means the macro was only invoked conditionally." >&5
20956 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20957 Usually this means the macro was only invoked conditionally." >&2;}
20958 { (exit 1); exit 1; }; }
20960 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20961 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20962 Usually this means the macro was only invoked conditionally." >&5
20963 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20964 Usually this means the macro was only invoked conditionally." >&2;}
20965 { (exit 1); exit 1; }; }
20967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20968 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20969 Usually this means the macro was only invoked conditionally." >&5
20970 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20971 Usually this means the macro was only invoked conditionally." >&2;}
20972 { (exit 1); exit 1; }; }
20975 : ${CONFIG_STATUS=./config.status}
20976 ac_clean_files_save=$ac_clean_files
20977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20978 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20979 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20980 cat >$CONFIG_STATUS <<_ACEOF
20982 # Generated by $as_me.
20983 # Run this file to recreate the current configuration.
20984 # Compiler output produced by configure, useful for debugging
20985 # configure, is in config.log if it exists.
20988 ac_cs_recheck=false
20990 SHELL=\${CONFIG_SHELL-$SHELL}
20993 cat >>$CONFIG_STATUS <<\_ACEOF
20994 ## --------------------- ##
20995 ## M4sh Initialization. ##
20996 ## --------------------- ##
20998 # Be more Bourne compatible
20999 DUALCASE=1; export DUALCASE # for MKS sh
21000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21004 # is contrary to our usage. Disable this feature.
21005 alias -g '${1+"$@"}'='"$@"'
21006 setopt NO_GLOB_SUBST
21008 case `(set -o) 2>/dev/null` in
21009 *posix*) set -o posix ;;
21018 # Avoid depending upon Character Ranges.
21019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21022 as_cr_digits='0123456789'
21023 as_cr_alnum=$as_cr_Letters$as_cr_digits
21025 # The user is always right.
21026 if test "${PATH_SEPARATOR+set}" != set; then
21027 echo "#! /bin/sh" >conf$$.sh
21028 echo "exit 0" >>conf$$.sh
21030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21038 # Support unset when possible.
21039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21047 # We need space, tab and new line, in precisely that order. Quoting is
21048 # there to prevent editors from complaining about space-tab.
21049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21050 # splitting by setting IFS to empty value.)
21055 # Find who we are. Look in the path if we contain no directory separator.
21057 *[\\/]* ) as_myself=$0 ;;
21058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21059 for as_dir in $PATH
21062 test -z "$as_dir" && as_dir=.
21063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21069 # We did not find ourselves, most probably we were run as `sh COMMAND'
21070 # in which case we are not to be found in the path.
21071 if test "x$as_myself" = x; then
21074 if test ! -f "$as_myself"; then
21075 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21076 { (exit 1); exit 1; }
21079 # Work around bugs in pre-3.0 UWIN ksh.
21080 for as_var in ENV MAIL MAILPATH
21081 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21089 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21090 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21091 LC_TELEPHONE LC_TIME
21093 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21094 eval $as_var=C; export $as_var
21096 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21100 # Required to use basename.
21101 if expr a : '\(a\)' >/dev/null 2>&1 &&
21102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21109 as_basename=basename
21115 # Name of the executable.
21116 as_me=`$as_basename -- "$0" ||
21117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21118 X"$0" : 'X\(//\)$' \| \
21119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21121 sed '/^.*\/\([^/][^/]*\)\/*$/{
21140 as_lineno_1=$LINENO
21141 as_lineno_2=$LINENO
21142 test "x$as_lineno_1" != "x$as_lineno_2" &&
21143 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21145 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21146 # uniformly replaced by the line number. The first 'sed' inserts a
21147 # line-number line after each line using $LINENO; the second 'sed'
21148 # does the real work. The second script uses 'N' to pair each
21149 # line-number line with the line containing $LINENO, and appends
21150 # trailing '-' during substitution so that $LINENO is not a special
21151 # case at line end.
21152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21153 # scripts with optimization help from Paolo Bonzini. Blame Lee
21154 # E. McMahon (1931-1989) for sed's syntax. :-)
21166 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21169 ' >$as_me.lineno &&
21170 chmod +x "$as_me.lineno" ||
21171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21172 { (exit 1); exit 1; }; }
21174 # Don't try to exec as it changes $[0], causing all sort of problems
21175 # (the dirname of $[0] is not the place where we might find the
21176 # original and so on. Autoconf is especially sensitive to this).
21177 . "./$as_me.lineno"
21178 # Exit status is that of the last command.
21183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21189 ECHO_C= ECHO_N= ECHO_T=
21190 case `echo -n x` in
21192 case `echo 'x\c'` in
21193 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21200 if expr a : '\(a\)' >/dev/null 2>&1 &&
21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21207 rm -f conf$$ conf$$.exe conf$$.file
21208 if test -d conf$$.dir; then
21209 rm -f conf$$.dir/conf$$.file
21215 if ln -s conf$$.file conf$$ 2>/dev/null; then
21217 # ... but there are two gotchas:
21218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21220 # In both cases, we have to default to `cp -p'.
21221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21223 elif ln conf$$.file conf$$ 2>/dev/null; then
21228 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21229 rmdir conf$$.dir 2>/dev/null
21231 if mkdir -p . 2>/dev/null; then
21234 test -d ./-p && rmdir ./-p
21238 if test -x / >/dev/null 2>&1; then
21239 as_test_x='test -x'
21241 if ls -dL / >/dev/null 2>&1; then
21248 if test -d "$1"; then
21254 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21255 ???[sx]*):;;*)false;;esac;fi
21259 as_executable_p=$as_test_x
21261 # Sed expression to map a string onto a valid CPP name.
21262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21264 # Sed expression to map a string onto a valid variable name.
21265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21270 # Save the log message, to keep $[0] and so on meaningful, and to
21271 # report actual input values of CONFIG_FILES etc. instead of their
21272 # values after options handling.
21274 This file was extended by scss $as_me 1.0.0, which was
21275 generated by GNU Autoconf 2.61. Invocation command line was
21277 CONFIG_FILES = $CONFIG_FILES
21278 CONFIG_HEADERS = $CONFIG_HEADERS
21279 CONFIG_LINKS = $CONFIG_LINKS
21280 CONFIG_COMMANDS = $CONFIG_COMMANDS
21283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21288 cat >>$CONFIG_STATUS <<_ACEOF
21289 # Files that config.status was made for.
21290 config_files="$ac_config_files"
21291 config_headers="$ac_config_headers"
21292 config_commands="$ac_config_commands"
21296 cat >>$CONFIG_STATUS <<\_ACEOF
21298 \`$as_me' instantiates files from templates according to the
21299 current configuration.
21301 Usage: $0 [OPTIONS] [FILE]...
21303 -h, --help print this help, then exit
21304 -V, --version print version number and configuration settings, then exit
21305 -q, --quiet do not print progress messages
21306 -d, --debug don't remove temporary files
21307 --recheck update $as_me by reconfiguring in the same conditions
21308 --file=FILE[:TEMPLATE]
21309 instantiate the configuration file FILE
21310 --header=FILE[:TEMPLATE]
21311 instantiate the configuration header FILE
21313 Configuration files:
21316 Configuration headers:
21319 Configuration commands:
21322 Report bugs to <bug-autoconf@gnu.org>."
21325 cat >>$CONFIG_STATUS <<_ACEOF
21327 scss config.status 1.0.0
21328 configured by $0, generated by GNU Autoconf 2.61,
21329 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21331 Copyright (C) 2006 Free Software Foundation, Inc.
21332 This config.status script is free software; the Free Software Foundation
21333 gives unlimited permission to copy, distribute and modify it."
21341 cat >>$CONFIG_STATUS <<\_ACEOF
21342 # If no file are specified by the user, then we need to provide default
21343 # value. By we need to know if files were specified by the user.
21349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21361 # Handling of the options.
21362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21365 echo "$ac_cs_version"; exit ;;
21366 --debug | --debu | --deb | --de | --d | -d )
21368 --file | --fil | --fi | --f )
21370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21371 ac_need_defaults=false;;
21372 --header | --heade | --head | --hea )
21374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21375 ac_need_defaults=false;;
21377 # Conflict between --help and --header
21378 { echo "$as_me: error: ambiguous option: $1
21379 Try \`$0 --help' for more information." >&2
21380 { (exit 1); exit 1; }; };;
21381 --help | --hel | -h )
21382 echo "$ac_cs_usage"; exit ;;
21383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21387 # This is an error.
21388 -*) { echo "$as_me: error: unrecognized option: $1
21389 Try \`$0 --help' for more information." >&2
21390 { (exit 1); exit 1; }; } ;;
21392 *) ac_config_targets="$ac_config_targets $1"
21393 ac_need_defaults=false ;;
21399 ac_configure_extra_args=
21401 if $ac_cs_silent; then
21403 ac_configure_extra_args="$ac_configure_extra_args --silent"
21407 cat >>$CONFIG_STATUS <<_ACEOF
21408 if \$ac_cs_recheck; then
21409 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21410 CONFIG_SHELL=$SHELL
21411 export CONFIG_SHELL
21412 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21416 cat >>$CONFIG_STATUS <<\_ACEOF
21420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21421 ## Running $as_me. ##
21427 cat >>$CONFIG_STATUS <<_ACEOF
21431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21435 cat >>$CONFIG_STATUS <<\_ACEOF
21437 # Handling of arguments.
21438 for ac_config_target in $ac_config_targets
21440 case $ac_config_target in
21441 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21442 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21444 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21446 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21448 { (exit 1); exit 1; }; };;
21453 # If the user did not use the arguments to specify the items to instantiate,
21454 # then the envvar interface is used. Set only those that are not.
21455 # We use the long form for the default assignment because of an extremely
21456 # bizarre bug on SunOS 4.1.3.
21457 if $ac_need_defaults; then
21458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21460 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21463 # Have a temporary directory for convenience. Make it in the build tree
21464 # simply because there is no reason against having it here, and in addition,
21465 # creating and moving files from /tmp can sometimes cause problems.
21466 # Hook for its removal unless debugging.
21467 # Note that there is a small window in which the directory will not be cleaned:
21468 # after its creation but before its name has been assigned to `$tmp'.
21472 trap 'exit_status=$?
21473 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21475 trap '{ (exit 1); exit 1; }' 1 2 13 15
21477 # Create a (secure) tmp directory for tmp files.
21480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21481 test -n "$tmp" && test -d "$tmp"
21484 tmp=./conf$$-$RANDOM
21485 (umask 077 && mkdir "$tmp")
21488 echo "$me: cannot create a temporary directory in ." >&2
21489 { (exit 1); exit 1; }
21493 # Set up the sed scripts for CONFIG_FILES section.
21496 # No need to generate the scripts if there are no CONFIG_FILES.
21497 # This happens for instance when ./config.status config.h
21498 if test -n "$CONFIG_FILES"; then
21505 for ac_last_try in false false false false false :; do
21506 cat >conf$$subs.sed <<_ACEOF
21507 SHELL!$SHELL$ac_delim
21508 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21509 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21510 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21511 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21512 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21513 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21514 exec_prefix!$exec_prefix$ac_delim
21515 prefix!$prefix$ac_delim
21516 program_transform_name!$program_transform_name$ac_delim
21517 bindir!$bindir$ac_delim
21518 sbindir!$sbindir$ac_delim
21519 libexecdir!$libexecdir$ac_delim
21520 datarootdir!$datarootdir$ac_delim
21521 datadir!$datadir$ac_delim
21522 sysconfdir!$sysconfdir$ac_delim
21523 sharedstatedir!$sharedstatedir$ac_delim
21524 localstatedir!$localstatedir$ac_delim
21525 includedir!$includedir$ac_delim
21526 oldincludedir!$oldincludedir$ac_delim
21527 docdir!$docdir$ac_delim
21528 infodir!$infodir$ac_delim
21529 htmldir!$htmldir$ac_delim
21530 dvidir!$dvidir$ac_delim
21531 pdfdir!$pdfdir$ac_delim
21532 psdir!$psdir$ac_delim
21533 libdir!$libdir$ac_delim
21534 localedir!$localedir$ac_delim
21535 mandir!$mandir$ac_delim
21536 DEFS!$DEFS$ac_delim
21537 ECHO_C!$ECHO_C$ac_delim
21538 ECHO_N!$ECHO_N$ac_delim
21539 ECHO_T!$ECHO_T$ac_delim
21540 LIBS!$LIBS$ac_delim
21541 build_alias!$build_alias$ac_delim
21542 host_alias!$host_alias$ac_delim
21543 target_alias!$target_alias$ac_delim
21544 build!$build$ac_delim
21545 build_cpu!$build_cpu$ac_delim
21546 build_vendor!$build_vendor$ac_delim
21547 build_os!$build_os$ac_delim
21548 host!$host$ac_delim
21549 host_cpu!$host_cpu$ac_delim
21550 host_vendor!$host_vendor$ac_delim
21551 host_os!$host_os$ac_delim
21552 target!$target$ac_delim
21553 target_cpu!$target_cpu$ac_delim
21554 target_vendor!$target_vendor$ac_delim
21555 target_os!$target_os$ac_delim
21556 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21557 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21558 INSTALL_DATA!$INSTALL_DATA$ac_delim
21559 am__isrc!$am__isrc$ac_delim
21560 CYGPATH_W!$CYGPATH_W$ac_delim
21561 PACKAGE!$PACKAGE$ac_delim
21562 VERSION!$VERSION$ac_delim
21563 ACLOCAL!$ACLOCAL$ac_delim
21564 AUTOCONF!$AUTOCONF$ac_delim
21565 AUTOMAKE!$AUTOMAKE$ac_delim
21566 AUTOHEADER!$AUTOHEADER$ac_delim
21567 MAKEINFO!$MAKEINFO$ac_delim
21568 install_sh!$install_sh$ac_delim
21569 STRIP!$STRIP$ac_delim
21570 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21571 mkdir_p!$mkdir_p$ac_delim
21573 SET_MAKE!$SET_MAKE$ac_delim
21574 am__leading_dot!$am__leading_dot$ac_delim
21575 AMTAR!$AMTAR$ac_delim
21576 am__tar!$am__tar$ac_delim
21577 am__untar!$am__untar$ac_delim
21579 CFLAGS!$CFLAGS$ac_delim
21580 LDFLAGS!$LDFLAGS$ac_delim
21581 CPPFLAGS!$CPPFLAGS$ac_delim
21582 ac_ct_CC!$ac_ct_CC$ac_delim
21583 EXEEXT!$EXEEXT$ac_delim
21584 OBJEXT!$OBJEXT$ac_delim
21585 DEPDIR!$DEPDIR$ac_delim
21586 am__include!$am__include$ac_delim
21587 am__quote!$am__quote$ac_delim
21588 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21589 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21590 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21591 CCDEPMODE!$CCDEPMODE$ac_delim
21592 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21593 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21594 GREP!$GREP$ac_delim
21595 EGREP!$EGREP$ac_delim
21596 LN_S!$LN_S$ac_delim
21597 ECHO!$ECHO$ac_delim
21599 RANLIB!$RANLIB$ac_delim
21602 CXXFLAGS!$CXXFLAGS$ac_delim
21603 ac_ct_CXX!$ac_ct_CXX$ac_delim
21606 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21608 elif $ac_last_try; then
21609 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21610 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21611 { (exit 1); exit 1; }; }
21613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21617 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21618 if test -n "$ac_eof"; then
21619 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21620 ac_eof=`expr $ac_eof + 1`
21623 cat >>$CONFIG_STATUS <<_ACEOF
21624 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21628 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21629 s/^/s,@/; s/!/@,|#_!!_#|/
21632 s/'"$ac_delim"'$/,g/; t
21634 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21635 ' >>$CONFIG_STATUS <conf$$subs.sed
21636 rm -f conf$$subs.sed
21637 cat >>$CONFIG_STATUS <<_ACEOF
21643 for ac_last_try in false false false false false :; do
21644 cat >conf$$subs.sed <<_ACEOF
21645 CXXDEPMODE!$CXXDEPMODE$ac_delim
21646 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21647 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21648 CXXCPP!$CXXCPP$ac_delim
21650 FFLAGS!$FFLAGS$ac_delim
21651 ac_ct_F77!$ac_ct_F77$ac_delim
21652 LIBTOOL!$LIBTOOL$ac_delim
21653 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
21654 APR_CONFIG!$APR_CONFIG$ac_delim
21655 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
21656 APU_CONFIG!$APU_CONFIG$ac_delim
21657 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
21658 LIBOBJS!$LIBOBJS$ac_delim
21659 LTLIBOBJS!$LTLIBOBJS$ac_delim
21662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21664 elif $ac_last_try; then
21665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21667 { (exit 1); exit 1; }; }
21669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21674 if test -n "$ac_eof"; then
21675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21676 ac_eof=`expr $ac_eof + 1`
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21685 s/^/s,@/; s/!/@,|#_!!_#|/
21688 s/'"$ac_delim"'$/,g/; t
21690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21691 ' >>$CONFIG_STATUS <conf$$subs.sed
21692 rm -f conf$$subs.sed
21693 cat >>$CONFIG_STATUS <<_ACEOF
21700 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21702 # trailing colons and then remove the whole line if VPATH becomes empty
21703 # (actually we leave an empty line to preserve line numbers).
21704 if test "x$srcdir" = x.; then
21705 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21706 s/:*\$(srcdir):*/:/
21707 s/:*\${srcdir}:*/:/
21709 s/^\([^=]*=[ ]*\):*/\1/
21715 cat >>$CONFIG_STATUS <<\_ACEOF
21716 fi # test -n "$CONFIG_FILES"
21719 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21722 :[FHLC]) ac_mode=$ac_tag; continue;;
21724 case $ac_mode$ac_tag in
21726 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21727 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21728 { (exit 1); exit 1; }; };;
21729 :[FH]-) ac_tag=-:-;;
21730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21747 -) ac_f="$tmp/stdin";;
21748 *) # Look for the file first in the build tree, then in the source tree
21749 # (if the path is not absolute). The absolute path cannot be DOS-style,
21750 # because $ac_f cannot contain `:'.
21754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21756 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21757 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21758 { (exit 1); exit 1; }; };;
21760 ac_file_inputs="$ac_file_inputs $ac_f"
21763 # Let's still pretend it is `configure' which instantiates (i.e., don't
21764 # use $as_me), people would be surprised to read:
21765 # /* config.h. Generated by config.status. */
21766 configure_input="Generated from "`IFS=:
21767 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21768 if test x"$ac_file" != x-; then
21769 configure_input="$ac_file. $configure_input"
21770 { echo "$as_me:$LINENO: creating $ac_file" >&5
21771 echo "$as_me: creating $ac_file" >&6;}
21775 *:-:* | *:-) cat >"$tmp/stdin";;
21780 ac_dir=`$as_dirname -- "$ac_file" ||
21781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21782 X"$ac_file" : 'X\(//\)[^/]' \| \
21783 X"$ac_file" : 'X\(//\)$' \| \
21784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21790 /^X\(\/\/\)[^/].*/{
21805 -*) as_dir=./$as_dir;;
21807 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21811 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21812 *) as_qdir=$as_dir;;
21814 as_dirs="'$as_qdir' $as_dirs"
21815 as_dir=`$as_dirname -- "$as_dir" ||
21816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21817 X"$as_dir" : 'X\(//\)[^/]' \| \
21818 X"$as_dir" : 'X\(//\)$' \| \
21819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21825 /^X\(\/\/\)[^/].*/{
21838 test -d "$as_dir" && break
21840 test -z "$as_dirs" || eval "mkdir $as_dirs"
21841 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21842 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21843 { (exit 1); exit 1; }; }; }
21847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21850 # A ".." for each directory in $ac_dir_suffix.
21851 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21852 case $ac_top_builddir_sub in
21853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21857 ac_abs_top_builddir=$ac_pwd
21858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21859 # for backward compatibility:
21860 ac_top_builddir=$ac_top_build_prefix
21863 .) # We are building in place.
21865 ac_top_srcdir=$ac_top_builddir_sub
21866 ac_abs_top_srcdir=$ac_pwd ;;
21867 [\\/]* | ?:[\\/]* ) # Absolute name.
21868 ac_srcdir=$srcdir$ac_dir_suffix;
21869 ac_top_srcdir=$srcdir
21870 ac_abs_top_srcdir=$srcdir ;;
21871 *) # Relative name.
21872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21873 ac_top_srcdir=$ac_top_build_prefix$srcdir
21874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21889 ac_MKDIR_P=$MKDIR_P
21891 [\\/$]* | ?:[\\/]* ) ;;
21892 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21896 cat >>$CONFIG_STATUS <<\_ACEOF
21897 # If the template does not know about datarootdir, expand it.
21898 # FIXME: This hack should be removed a few years after 2.60.
21899 ac_datarootdir_hack=; ac_datarootdir_seen=
21901 case `sed -n '/datarootdir/ {
21910 ' $ac_file_inputs` in
21911 *datarootdir*) ac_datarootdir_seen=yes;;
21912 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21913 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21914 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21916 cat >>$CONFIG_STATUS <<_ACEOF
21917 ac_datarootdir_hack='
21918 s&@datadir@&$datadir&g
21919 s&@docdir@&$docdir&g
21920 s&@infodir@&$infodir&g
21921 s&@localedir@&$localedir&g
21922 s&@mandir@&$mandir&g
21923 s&\\\${datarootdir}&$datarootdir&g' ;;
21927 # Neutralize VPATH when `$srcdir' = `.'.
21928 # Shell code in configure.ac might set extrasub.
21929 # FIXME: do we really want to maintain this feature?
21930 cat >>$CONFIG_STATUS <<_ACEOF
21934 cat >>$CONFIG_STATUS <<\_ACEOF
21936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21937 s&@configure_input@&$configure_input&;t t
21938 s&@top_builddir@&$ac_top_builddir_sub&;t t
21939 s&@srcdir@&$ac_srcdir&;t t
21940 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21941 s&@top_srcdir@&$ac_top_srcdir&;t t
21942 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21943 s&@builddir@&$ac_builddir&;t t
21944 s&@abs_builddir@&$ac_abs_builddir&;t t
21945 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21946 s&@INSTALL@&$ac_INSTALL&;t t
21947 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21948 $ac_datarootdir_hack
21949 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21952 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21954 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21955 which seems to be undefined. Please make sure it is defined." >&5
21956 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21957 which seems to be undefined. Please make sure it is defined." >&2;}
21961 -) cat "$tmp/out"; rm -f "$tmp/out";;
21962 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21971 # Transform confdefs.h into a sed script `conftest.defines', that
21972 # substitutes the proper values into config.h.in to produce config.h.
21973 rm -f conftest.defines conftest.tail
21974 # First, append a space to every undef/define line, to ease matching.
21975 echo 's/$/ /' >conftest.defines
21976 # Then, protect against being on the right side of a sed subst, or in
21977 # an unquoted here document, in config.status. If some macros were
21978 # called several times there might be several #defines for the same
21979 # symbol, which is useless. But do not sort them, since the last
21980 # AC_DEFINE must be honored.
21981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21982 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21983 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21984 # PARAMS is the parameter list in the macro definition--in most cases, it's
21985 # just an empty string.
21986 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21987 ac_dB='\\)[ (].*,\\1define\\2'
21995 s/^[ ]*#[ ]*define[ ][ ]*//
22000 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22001 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22002 ' >>conftest.defines
22004 # Remove the space that was appended to ease matching.
22005 # Then replace #undef with comments. This is necessary, for
22006 # example, in the case of _POSIX_SOURCE, which is predefined and required
22007 # on some systems where configure will not decide to define it.
22008 # (The regexp can be short, since the line contains either #define or #undef.)
22010 s,^[ #]*u.*,/* & */,' >>conftest.defines
22012 # Break up conftest.defines:
22013 ac_max_sed_lines=50
22015 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22016 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22017 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22019 ac_in='$ac_file_inputs'
22020 ac_out='"$tmp/out1"'
22021 ac_nxt='"$tmp/out2"'
22025 # Write a here document:
22026 cat >>$CONFIG_STATUS <<_ACEOF
22027 # First, check the format of the line:
22028 cat >"\$tmp/defines.sed" <<\\CEOF
22029 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22030 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22034 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22036 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22037 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22038 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22039 grep . conftest.tail >/dev/null || break
22040 rm -f conftest.defines
22041 mv conftest.tail conftest.defines
22043 rm -f conftest.defines conftest.tail
22045 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22047 if test x"$ac_file" != x-; then
22048 echo "/* $configure_input */" >"$tmp/config.h"
22049 cat "$ac_result" >>"$tmp/config.h"
22050 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22051 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22052 echo "$as_me: $ac_file is unchanged" >&6;}
22055 mv "$tmp/config.h" $ac_file
22058 echo "/* $configure_input */"
22062 # Compute $ac_file's index in $config_headers.
22064 for _am_header in $config_headers :; do
22065 case $_am_header in
22066 $ac_file | $ac_file:* )
22069 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22072 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22073 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074 X$ac_file : 'X\(//\)[^/]' \| \
22075 X$ac_file : 'X\(//\)$' \| \
22076 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22082 /^X\(\/\/\)[^/].*/{
22094 s/.*/./; q'`/stamp-h$_am_stamp_count
22097 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22098 echo "$as_me: executing $ac_file commands" >&6;}
22103 case $ac_file$ac_mode in
22104 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22105 # Strip MF so we end up with the name of the file.
22106 mf=`echo "$mf" | sed -e 's/:.*$//'`
22107 # Check whether this is an Automake generated Makefile or not.
22108 # We used to match only the files named `Makefile.in', but
22109 # some people rename them; so instead we look at the file content.
22110 # Grep'ing the first line is not enough: some people post-process
22111 # each Makefile.in and add a new line on top of each file to say so.
22112 # Grep'ing the whole file is not good either: AIX grep has a line
22113 # limit of 2048, but all sed's we know have understand at least 4000.
22114 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22115 dirpart=`$as_dirname -- "$mf" ||
22116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117 X"$mf" : 'X\(//\)[^/]' \| \
22118 X"$mf" : 'X\(//\)$' \| \
22119 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22125 /^X\(\/\/\)[^/].*/{
22141 # Extract the definition of DEPDIR, am__include, and am__quote
22142 # from the Makefile without running `make'.
22143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22144 test -z "$DEPDIR" && continue
22145 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22146 test -z "am__include" && continue
22147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22148 # When using ansi2knr, U may be empty or an underscore; expand it
22149 U=`sed -n 's/^U = //p' < "$mf"`
22150 # Find all dependency output files, they are included files with
22151 # $(DEPDIR) in their names. We invoke sed twice because it is the
22152 # simplest approach to changing $(DEPDIR) to its actual value in the
22154 for file in `sed -n "
22155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22157 # Make sure the directory exists.
22158 test -f "$dirpart/$file" && continue
22159 fdir=`$as_dirname -- "$file" ||
22160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161 X"$file" : 'X\(//\)[^/]' \| \
22162 X"$file" : 'X\(//\)$' \| \
22163 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22169 /^X\(\/\/\)[^/].*/{
22182 { as_dir=$dirpart/$fdir
22184 -*) as_dir=./$as_dir;;
22186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22191 *) as_qdir=$as_dir;;
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22204 /^X\(\/\/\)[^/].*/{
22217 test -d "$as_dir" && break
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
22220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22222 { (exit 1); exit 1; }; }; }
22223 # echo "creating $dirpart/$file"
22224 echo '# dummy' > "$dirpart/$file"
22233 { (exit 0); exit 0; }
22235 chmod +x $CONFIG_STATUS
22236 ac_clean_files=$ac_clean_files_save
22239 # configure is writing to config.log, and then calls config.status.
22240 # config.status does its own redirection, appending to config.log.
22241 # Unfortunately, on DOS this fails, as config.log is still kept open
22242 # by configure, so config.status won't be able to write to it; its
22243 # output is simply discarded. So we exec the FD to /dev/null,
22244 # effectively closing config.log, so it can be properly (re)opened and
22245 # appended to by config.status. When coming back to configure, we
22246 # need to make the FD available again.
22247 if test "$no_create" != yes; then
22249 ac_config_status_args=
22250 test "$silent" = yes &&
22251 ac_config_status_args="$ac_config_status_args --quiet"
22253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22256 # would make configure fail if this is the last instruction.
22257 $ac_cs_success || { (exit 1); exit 1; }