2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.13.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.
729 PACKAGE_NAME='mod_chxj'
730 PACKAGE_TARNAME='mod_chxj'
731 PACKAGE_VERSION='0.13.0'
732 PACKAGE_STRING='mod_chxj 0.13.0'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
735 ac_unique_file="src/mod_chxj.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
897 ac_precious_vars='build_alias
914 # Initialize some variables set by options.
916 ac_init_version=false
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name=s,x,x,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
972 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
1000 cache_file=config.cache ;;
1002 -datadir | --datadir | --datadi | --datad)
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1014 -disable-* | --disable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=no ;;
1023 -docdir | --docdir | --docdi | --doc | --do)
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1033 -enable-* | --enable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1204 -site=* | --site=* | --sit=*)
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1231 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=no ;;
1249 # Obsolete; use --with-x.
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) { echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 # Be sure to have absolute directory names.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { echo "$as_me: error: Working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$0" ||
1351 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$0" : 'X\(//\)[^/]' \| \
1353 X"$0" : 'X\(//\)$' \| \
1354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures mod_chxj 0.13.0 to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 --target=TARGET configure for building compilers for TARGET [HOST]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of mod_chxj 0.13.0:";;
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-static[=PKGS] build static libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1500 source by the automatic operation.
1501 --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1502 --enable-memcached-static use static link.
1503 --enable-mysql-cookie Please specify it when you save Cookie in MySQL.
1504 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-pic try to use only PIC/non-PIC objects [default=use
1512 --with-tags[=TAGS] include additional configurations [automatic]
1513 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1514 --with-apxs=ARG Path of apxs program file.
1515 --with-apr-config=ARG Path of apr-config program file.
1516 --with-apu-config=ARG Path of apu-config program file.
1517 --with-pcre-config=ARG Path of pcre-config program file.
1518 --with-memcached-header Path of "memcached.h"
1519 --with-memcached-lib-dir Path of "libmemcached.so"
1520 --with-mysql-header=ARG Path of "mysql.h"
1521 --with-mysql-lib-dir=ARG Path of libmysqlclient
1522 APR_HELP_STRING(--with-openssl=PATH,Path to OpenSSL (eg. /usr/local/ssl))
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 CXXCPP C++ preprocessor
1536 F77 Fortran 77 compiler command
1537 FFLAGS Fortran 77 compiler flags
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to <konn@users.sourceforge.jp>.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" || continue
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1570 .) # We are building in place.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1594 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1603 mod_chxj configure 0.13.0
1604 generated by GNU Autoconf 2.61
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1617 It was created by mod_chxj $as_me 0.13.0, which was
1618 generated by GNU Autoconf 2.61. Invocation command line was
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 echo "PATH: $as_dir"
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1678 ac_must_keep_next=false
1684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686 | -silent | --silent | --silen | --sile | --sil)
1689 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1694 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695 if test $ac_must_keep_next = true; then
1696 ac_must_keep_next=false # Got value, back to normal.
1699 *=* | --config-cache | -C | -disable-* | --disable-* \
1700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702 | -with-* | --with-* | -without-* | --without-* | --x)
1703 case "$ac_configure_args0 " in
1704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 -* ) ac_must_keep_next=true ;;
1710 ac_configure_args="$ac_configure_args '$ac_arg'"
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log. We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724 # Save into config.log some information that might help in debugging.
1729 ## ---------------- ##
1730 ## Cache variables. ##
1731 ## ---------------- ##
1734 # The following way of writing the cache mishandles newlines in values,
1736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737 eval ac_val=\$$ac_var
1741 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1745 _ | IFS | as_nl) ;; #(
1746 *) $as_unset $ac_var ;;
1751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752 *${as_nl}ac_space=\ *)
1754 "s/'\''/'\''\\\\'\'''\''/g;
1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766 ## ----------------- ##
1767 ## Output variables. ##
1768 ## ----------------- ##
1771 for ac_var in $ac_subst_vars
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1781 if test -n "$ac_subst_files"; then
1783 ## ------------------- ##
1784 ## File substitutions. ##
1785 ## ------------------- ##
1788 for ac_var in $ac_subst_files
1790 eval ac_val=\$$ac_var
1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 echo "$ac_var='\''$ac_val'\''"
1799 if test -s confdefs.h; then
1809 test "$ac_signal" != 0 &&
1810 echo "$as_me: caught signal $ac_signal"
1811 echo "$as_me: exit $exit_status"
1813 rm -f core *.core core.conftest.* &&
1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817 for ac_signal in 1 2 13 15; do
1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1825 # Predefined preprocessor variables.
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_NAME "$PACKAGE_NAME"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_STRING "$PACKAGE_STRING"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855 set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859 set x "$ac_default_prefix/share/config.site" \
1860 "$ac_default_prefix/etc/config.site"
1865 if test -r "$ac_site_file"; then
1866 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1873 if test -r "$cache_file"; then
1874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
1877 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
1885 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1890 # Check that the precious variables saved in the cache have kept the same
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
1898 case $ac_old_set,$ac_new_set in
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1904 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
1910 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1913 echo "$as_me: former value: $ac_old_val" >&2;}
1914 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1915 echo "$as_me: current value: $ac_new_val" >&2;}
1916 ac_cache_corrupted=:
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1922 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg=$ac_var=$ac_new_val ;;
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931 if $ac_cache_corrupted; then
1932 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936 { (exit 1); exit 1; }; }
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974 if test -f "$ac_dir/install-sh"; then
1976 ac_install_sh="$ac_aux_dir/install-sh -c"
1978 elif test -f "$ac_dir/install.sh"; then
1980 ac_install_sh="$ac_aux_dir/install.sh -c"
1982 elif test -f "$ac_dir/shtool"; then
1984 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 if test -z "$ac_aux_dir"; then
1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1991 { (exit 1); exit 1; }; }
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003 # Make sure we can run config.sub.
2004 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2005 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2006 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2007 { (exit 1); exit 1; }; }
2009 { echo "$as_me:$LINENO: checking build system type" >&5
2010 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2011 if test "${ac_cv_build+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 ac_build_alias=$build_alias
2015 test "x$ac_build_alias" = x &&
2016 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2017 test "x$ac_build_alias" = x &&
2018 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2020 { (exit 1); exit 1; }; }
2021 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2022 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2023 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2024 { (exit 1); exit 1; }; }
2027 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2028 echo "${ECHO_T}$ac_cv_build" >&6; }
2029 case $ac_cv_build in
2031 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2032 echo "$as_me: error: invalid value of canonical build" >&2;}
2033 { (exit 1); exit 1; }; };;
2036 ac_save_IFS=$IFS; IFS='-'
2042 # Remember, the first character of IFS is used to create $*,
2043 # except with old shells:
2046 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2049 { echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2051 if test "${ac_cv_host+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test "x$host_alias" = x; then
2055 ac_cv_host=$ac_cv_build
2057 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2058 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2059 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2060 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2065 echo "${ECHO_T}$ac_cv_host" >&6; }
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2069 echo "$as_me: error: invalid value of canonical host" >&2;}
2070 { (exit 1); exit 1; }; };;
2073 ac_save_IFS=$IFS; IFS='-'
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2086 { echo "$as_me:$LINENO: checking target system type" >&5
2087 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_target+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test "x$target_alias" = x; then
2092 ac_cv_target=$ac_cv_host
2094 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2095 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2102 echo "${ECHO_T}$ac_cv_target" >&6; }
2103 case $ac_cv_target in
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2106 echo "$as_me: error: invalid value of canonical target" >&2;}
2107 { (exit 1); exit 1; }; };;
2109 target=$ac_cv_target
2110 ac_save_IFS=$IFS; IFS='-'
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2120 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2123 # The aliases save the names the user supplied, while $host etc.
2124 # will get canonicalized.
2125 test -n "$target_alias" &&
2126 test "$program_prefix$program_suffix$program_transform_name" = \
2128 program_prefix=${target_alias}-
2129 am__api_version='1.10'
2131 # Find a good install program. We prefer a C program (faster),
2132 # so one script is as good as another. But avoid the broken or
2133 # incompatible versions:
2134 # SysV /etc/install, /usr/sbin/install
2135 # SunOS /usr/etc/install
2136 # IRIX /sbin/install
2138 # AmigaOS /C/install, which installs bootblocks on floppy discs
2139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142 # OS/2's system install, which has a completely different semantic
2143 # ./install, which can be erroneously created by make from ./install.sh.
2144 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2145 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2146 if test -z "$INSTALL"; then
2147 if test "${ac_cv_path_install+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 # Account for people who put trailing slashes in PATH elements.
2157 ./ | .// | /cC/* | \
2158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2159 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2162 # OSF1 and SCO ODT 3.0 have their own names for install.
2163 # Don't use installbsd from OSF since it installs stuff as root
2165 for ac_prog in ginstall scoinst install; do
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2168 if test $ac_prog = install &&
2169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170 # AIX install. It has an incompatible calling convention.
2172 elif test $ac_prog = install &&
2173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174 # program-specific install script used by HP pwplus--don't use.
2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2190 if test "${ac_cv_path_install+set}" = set; then
2191 INSTALL=$ac_cv_path_install
2193 # As a last resort, use the slow shell script. Don't cache a
2194 # value for INSTALL within a source directory, because that will
2195 # break other packages using the cache if that directory is
2196 # removed, or if the value is a relative name.
2197 INSTALL=$ac_install_sh
2200 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2201 echo "${ECHO_T}$INSTALL" >&6; }
2203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2204 # It thinks the first close brace ends the variable substitution.
2205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2212 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2215 echo timestamp > conftest.file
2216 # Do `set' in a subshell so we don't clobber the current shell's
2217 # arguments. Must try -L first in case configure is actually a
2218 # symlink; some systems play weird games with the mod time of symlinks
2219 # (eg FreeBSD returns the mod time of the symlink's containing
2222 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2223 if test "$*" = "X"; then
2225 set X `ls -t $srcdir/configure conftest.file`
2228 if test "$*" != "X $srcdir/configure conftest.file" \
2229 && test "$*" != "X conftest.file $srcdir/configure"; then
2231 # If neither matched, then we have a broken ls. This can happen
2232 # if, for instance, CONFIG_SHELL is bash and it inherits a
2233 # broken ls alias from the environment. This has actually
2234 # happened. Such a system could not be considered "sane".
2235 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2236 alias in your environment" >&5
2237 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2238 alias in your environment" >&2;}
2239 { (exit 1); exit 1; }; }
2242 test "$2" = conftest.file
2248 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2249 Check your system clock" >&5
2250 echo "$as_me: error: newly created file is older than distributed files!
2251 Check your system clock" >&2;}
2252 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6; }
2256 test "$program_prefix" != NONE &&
2257 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2258 # Use a double $ so make ignores it.
2259 test "$program_suffix" != NONE &&
2260 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2261 # Double any \ or $. echo might interpret backslashes.
2262 # By default was `s,x,x', remove it if useless.
2263 cat <<\_ACEOF >conftest.sed
2264 s/[\\$]/&&/g;s/;s,x,x,$//
2266 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2269 # expand $ac_aux_dir to an absolute path
2270 am_aux_dir=`cd $ac_aux_dir && pwd`
2272 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2273 # Use eval to expand $SHELL
2274 if eval "$MISSING --run true"; then
2275 am_missing_run="$MISSING --run "
2278 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2279 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2282 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2284 if test -z "$MKDIR_P"; then
2285 if test "${ac_cv_path_mkdir+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2292 test -z "$as_dir" && as_dir=.
2293 for ac_prog in mkdir gmkdir; do
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297 'mkdir (GNU coreutils) '* | \
2298 'mkdir (coreutils) '* | \
2299 'mkdir (fileutils) '4.1*)
2300 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2310 if test "${ac_cv_path_mkdir+set}" = set; then
2311 MKDIR_P="$ac_cv_path_mkdir -p"
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for MKDIR_P within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 test -d ./--version && rmdir ./--version
2318 MKDIR_P="$ac_install_sh -d"
2321 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322 echo "${ECHO_T}$MKDIR_P" >&6; }
2326 [\\/$]* | ?:[\\/]*) ;;
2327 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2330 for ac_prog in gawk mawk nawk awk
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_AWK+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK="$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$AWK"; then
2361 { echo "$as_me:$LINENO: result: $AWK" >&5
2362 echo "${ECHO_T}$AWK" >&6; }
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2369 test -n "$AWK" && break
2372 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2374 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2375 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.make <<\_ACEOF
2381 @echo '@@@%%%=$(MAKE)=@@@%%%'
2383 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386 eval ac_cv_prog_make_${ac_make}_set=yes;;
2388 eval ac_cv_prog_make_${ac_make}_set=no;;
2392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2393 { echo "$as_me:$LINENO: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6; }
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399 SET_MAKE="MAKE=${MAKE-make}"
2402 rm -rf .tst 2>/dev/null
2403 mkdir .tst 2>/dev/null
2404 if test -d .tst; then
2409 rmdir .tst 2>/dev/null
2411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413 # is not polluted with repeated "-I."
2414 am__isrc=' -I$(srcdir)'
2415 # test to see if srcdir already configured
2416 if test -f $srcdir/config.status; then
2417 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2419 { (exit 1); exit 1; }; }
2423 # test whether we have cygpath
2424 if test -z "$CYGPATH_W"; then
2425 if (cygpath --version) >/dev/null 2>/dev/null; then
2426 CYGPATH_W='cygpath -w'
2433 # Define the identity of the package.
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE "$PACKAGE"
2443 cat >>confdefs.h <<_ACEOF
2444 #define VERSION "$VERSION"
2447 # Some tools Automake needs.
2449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'. However `strip' might not be the right
2467 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2469 if test "$cross_compiling" != no; then
2470 if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}strip; ac_word=$2
2473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_STRIP+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$STRIP"; then
2479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 STRIP=$ac_cv_prog_STRIP
2499 if test -n "$STRIP"; then
2500 { echo "$as_me:$LINENO: result: $STRIP" >&5
2501 echo "${ECHO_T}$STRIP" >&6; }
2503 { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2509 if test -z "$ac_cv_prog_STRIP"; then
2511 # Extract the first word of "strip", so it can be a program name with args.
2512 set dummy strip; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$ac_ct_STRIP"; then
2519 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_ac_ct_STRIP="strip"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539 if test -n "$ac_ct_STRIP"; then
2540 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2547 if test "x$ac_ct_STRIP" = x; then
2550 case $cross_compiling:$ac_tool_warned in
2552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet. If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&5
2555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet. If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558 ac_tool_warned=yes ;;
2563 STRIP="$ac_cv_prog_STRIP"
2567 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2569 # We need awk for the "check" target. The system "awk" is bad on
2571 # Always define AMTAR for backward compatibility.
2573 AMTAR=${AMTAR-"${am_missing_run}tar"}
2575 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2581 ac_config_headers="$ac_config_headers include/config.h"
2585 # Checks for programs.
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2630 if test -z "$ac_cv_prog_CC"; then
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633 set dummy gcc; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="gcc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2668 if test "x$ac_ct_CC" = x; then
2671 case $cross_compiling:$ac_tool_warned in
2673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2721 { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2728 if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2774 if test -n "$CC"; then
2775 { echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6; }
2778 { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CC"; then
2817 { echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6; }
2820 { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2825 test -n "$CC" && break
2828 if test -z "$CC"; then
2830 for ac_prog in cl.exe
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 echo "${ECHO_T}$ac_ct_CC" >&6; }
2864 { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2869 test -n "$ac_ct_CC" && break
2872 if test "x$ac_ct_CC" = x; then
2875 case $cross_compiling:$ac_tool_warned in
2877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&5
2880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883 ac_tool_warned=yes ;;
2892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO: checking for C compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (ac_try="$ac_compiler --version >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -v >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (ac_try="$ac_compiler -V >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2947 ac_clean_files_save=$ac_clean_files
2948 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2949 # Try to create an executable without -o first, disregard a.out.
2950 # It will help us diagnose broken compilers, and finding out an intuition
2952 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2953 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2954 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956 # List of possible output files, starting from the most likely.
2957 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2958 # only as a last resort. b.out is created by i960 compilers.
2959 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2961 # The IRIX 6 linker writes into existing files which may not be
2962 # executable, retaining their permissions. Remove them first so a
2963 # subsequent execution test works.
2965 for ac_file in $ac_files
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 if { (ac_try="$ac_link_default"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_link_default") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; then
2984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2987 # so that the user can short-circuit this test for compilers unknown to
2989 for ac_file in $ac_files ''
2991 test -f "$ac_file" || continue
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2996 # We found the default executable, but exeext='' is most
3000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 # We set ac_cv_exeext here because the later test for it is not
3005 # safe: cross compilers may not add the suffix if given an `-o'
3006 # argument, so we may need to know it at that point already.
3007 # Even if this section looks crufty: it has the advantage of
3014 test "$ac_cv_exeext" = no && ac_cv_exeext=
3020 { echo "$as_me:$LINENO: result: $ac_file" >&5
3021 echo "${ECHO_T}$ac_file" >&6; }
3022 if test -z "$ac_file"; then
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&2;}
3030 { (exit 77); exit 77; }; }
3033 ac_exeext=$ac_cv_exeext
3035 # Check that the compiler produces executables we can run. If not, either
3036 # the compiler is broken, or we cross compile.
3037 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040 # If not cross compiling, check that we can run a simple program.
3041 if test "$cross_compiling" != yes; then
3042 if { ac_try='./$ac_file'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3054 if test "$cross_compiling" = maybe; then
3057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3067 { echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6; }
3070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3071 ac_clean_files=$ac_clean_files_save
3072 # Check that the compiler produces executables we can run. If not, either
3073 # the compiler is broken, or we cross compile.
3074 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3076 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3077 echo "${ECHO_T}$cross_compiling" >&6; }
3079 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3081 if { (ac_try="$ac_link"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_link") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; then
3091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3093 # work properly (i.e., refer to `conftest.exe'), while it won't with
3095 for ac_file in conftest.exe conftest conftest.*; do
3096 test -f "$ac_file" || continue
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3112 rm -f conftest$ac_cv_exeext
3113 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3114 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3116 rm -f conftest.$ac_ext
3117 EXEEXT=$ac_cv_exeext
3119 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3120 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3121 if test "${ac_cv_objext+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.o conftest.obj
3140 if { (ac_try="$ac_compile"
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; then
3150 for ac_file in conftest.o conftest.obj conftest.*; do
3151 test -f "$ac_file" || continue;
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3171 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3172 echo "${ECHO_T}$ac_cv_objext" >&6; }
3173 OBJEXT=$ac_cv_objext
3175 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3227 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3229 GCC=`test $ac_compiler_gnu = yes && echo yes`
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_g+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3241 cat >conftest.$ac_ext <<_ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3256 rm -f conftest.$ac_objext
3257 if { (ac_try="$ac_compile"
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3265 grep -v '^ *+' conftest.er1 >conftest.err
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3279 cat >conftest.$ac_ext <<_ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 ac_c_werror_flag=$ac_save_c_werror_flag
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3378 if test "$GCC" = yes; then
3384 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3385 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_cc_c89+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 ac_cv_prog_cc_c89=no
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3415 s = g (p, va_arg (v,int));
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 CC="$ac_save_CC $ac_arg"
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compile") 2>conftest.er1
3461 grep -v '^ *+' conftest.er1 >conftest.err
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } && {
3466 test -z "$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 } && test -s conftest.$ac_objext; then
3469 ac_cv_prog_cc_c89=$ac_arg
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3477 rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
3480 rm -f conftest.$ac_ext
3485 case "x$ac_cv_prog_cc_c89" in
3487 { echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6; } ;;
3490 { echo "$as_me:$LINENO: result: unsupported" >&5
3491 echo "${ECHO_T}unsupported" >&6; } ;;
3493 CC="$CC $ac_cv_prog_cc_c89"
3494 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 DEPDIR="${am__leading_dot}deps"
3506 ac_config_commands="$ac_config_commands depfiles"
3509 am_make=${MAKE-make}
3510 cat > confinc << 'END'
3515 # If we don't find an include directive, just comment out the code.
3516 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3517 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3521 # First try GNU make style include.
3522 echo "include confinc" > confmf
3523 # We grep out `Entering directory' and `Leaving directory'
3524 # messages which can occur if `w' ends up in MAKEFLAGS.
3525 # In particular we don't look at `^make:' because GNU make might
3526 # be invoked under some other name (usually "gmake"), in which
3527 # case it prints its new name instead of `make'.
3528 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3533 # Now try BSD make style include.
3534 if test "$am__include" = "#"; then
3535 echo '.include "confinc"' > confmf
3536 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3537 am__include=.include
3544 { echo "$as_me:$LINENO: result: $_am_result" >&5
3545 echo "${ECHO_T}$_am_result" >&6; }
3546 rm -f confinc confmf
3548 # Check whether --enable-dependency-tracking was given.
3549 if test "${enable_dependency_tracking+set}" = set; then
3550 enableval=$enable_dependency_tracking;
3553 if test "x$enable_dependency_tracking" != xno; then
3554 am_depcomp="$ac_aux_dir/depcomp"
3557 if test "x$enable_dependency_tracking" != xno; then
3567 depcc="$CC" am_compiler_list=
3569 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3571 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3575 # We make a subdir and do the tests there. Otherwise we can end up
3576 # making bogus files that we don't know about and never remove. For
3577 # instance it was reported that on HP-UX the gcc test will end up
3578 # making a dummy file named `D' -- because `-MD' means `put the output
3581 # Copy depcomp to subdir because otherwise we won't find it if we're
3582 # using a relative directory.
3583 cp "$am_depcomp" conftest.dir
3585 # We will build objects and dependencies in a subdirectory because
3586 # it helps to detect inapplicable dependency modes. For instance
3587 # both Tru64's cc and ICC support -MD to output dependencies as a
3588 # side effect of compilation, but ICC will put the dependencies in
3589 # the current directory while Tru64 will put them in the object
3593 am_cv_CC_dependencies_compiler_type=none
3594 if test "$am_compiler_list" = ""; then
3595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 for depmode in $am_compiler_list; do
3598 # Setup a source with many dependencies, because some compilers
3599 # like to wrap large dependency lists on column 80 (with \), and
3600 # we should not choose a depcomp mode which is confused by this.
3602 # We need to recreate these files for each test, as the compiler may
3603 # overwrite some of them when testing with obscure command lines.
3604 # This happens at least with the AIX C compiler.
3606 for i in 1 2 3 4 5 6; do
3607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3608 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3609 # Solaris 8's {/usr,}/bin/sh.
3610 touch sub/conftst$i.h
3612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3616 # after this tag, mechanisms are not by side-effect, so they'll
3617 # only be used when explicitly requested
3618 if test "x$enable_dependency_tracking" = xyes; then
3626 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3627 # mode. It turns out that the SunPro C++ compiler does not properly
3628 # handle `-M -o', and we need to detect this.
3629 if depmode=$depmode \
3630 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3632 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3633 >/dev/null 2>conftest.err &&
3634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3636 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3638 # icc doesn't choke on unknown options, it will just issue warnings
3639 # or remarks (even with -Werror). So we grep stderr for any message
3640 # that says an option was ignored or not supported.
3641 # When given -MP, icc 7.0 and 7.1 complain thusly:
3642 # icc: Command line warning: ignoring option '-M'; no argument required
3643 # The diagnosis changed in icc 8.0:
3644 # icc: Command line remark: option '-MP' not supported
3645 if (grep 'ignoring option' conftest.err ||
3646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3647 am_cv_CC_dependencies_compiler_type=$depmode
3656 am_cv_CC_dependencies_compiler_type=none
3660 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3661 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3662 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665 test "x$enable_dependency_tracking" != xno \
3666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3668 am__fastdepCC_FALSE='#'
3670 am__fastdepCC_TRUE='#'
3671 am__fastdepCC_FALSE=
3675 # Find a good install program. We prefer a C program (faster),
3676 # so one script is as good as another. But avoid the broken or
3677 # incompatible versions:
3678 # SysV /etc/install, /usr/sbin/install
3679 # SunOS /usr/etc/install
3680 # IRIX /sbin/install
3682 # AmigaOS /C/install, which installs bootblocks on floppy discs
3683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3686 # OS/2's system install, which has a completely different semantic
3687 # ./install, which can be erroneously created by make from ./install.sh.
3688 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3689 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3690 if test -z "$INSTALL"; then
3691 if test "${ac_cv_path_install+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3701 ./ | .// | /cC/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3721 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3734 if test "${ac_cv_path_install+set}" = set; then
3735 INSTALL=$ac_cv_path_install
3737 # As a last resort, use the slow shell script. Don't cache a
3738 # value for INSTALL within a source directory, because that will
3739 # break other packages using the cache if that directory is
3740 # removed, or if the value is a relative name.
3741 INSTALL=$ac_install_sh
3744 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3745 echo "${ECHO_T}$INSTALL" >&6; }
3747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3748 # It thinks the first close brace ends the variable substitution.
3749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3757 # Check whether --enable-shared was given.
3758 if test "${enable_shared+set}" = set; then
3759 enableval=$enable_shared; p=${PACKAGE-default}
3761 yes) enable_shared=yes ;;
3762 no) enable_shared=no ;;
3765 # Look at the argument we got. We use all the common list separators.
3766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3767 for pkg in $enableval; do
3769 if test "X$pkg" = "X$p"; then
3781 # Check whether --enable-static was given.
3782 if test "${enable_static+set}" = set; then
3783 enableval=$enable_static; p=${PACKAGE-default}
3785 yes) enable_static=yes ;;
3786 no) enable_static=no ;;
3789 # Look at the argument we got. We use all the common list separators.
3790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3791 for pkg in $enableval; do
3793 if test "X$pkg" = "X$p"; then
3805 # Check whether --enable-fast-install was given.
3806 if test "${enable_fast_install+set}" = set; then
3807 enableval=$enable_fast_install; p=${PACKAGE-default}
3809 yes) enable_fast_install=yes ;;
3810 no) enable_fast_install=no ;;
3812 enable_fast_install=no
3813 # Look at the argument we got. We use all the common list separators.
3814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3815 for pkg in $enableval; do
3817 if test "X$pkg" = "X$p"; then
3818 enable_fast_install=yes
3825 enable_fast_install=yes
3829 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3830 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3831 if test "${lt_cv_path_SED+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 # Loop through the user's path and test for sed and gsed.
3835 # Then use that list of sed's as ones to test for truncation.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for lt_ac_prog in sed gsed; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3844 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3853 # along with /bin/sed that truncates output.
3854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3855 test ! -f $lt_ac_sed && continue
3856 cat /dev/null > conftest.in
3858 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3859 # Check for GNU sed and select it if it is found.
3860 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3861 lt_cv_path_SED=$lt_ac_sed
3865 cat conftest.in conftest.in >conftest.tmp
3866 mv conftest.tmp conftest.in
3867 cp conftest.in conftest.nl
3869 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3870 cmp -s conftest.out conftest.nl || break
3871 # 10000 chars as input seems more than enough
3872 test $lt_ac_count -gt 10 && break
3873 lt_ac_count=`expr $lt_ac_count + 1`
3874 if test $lt_ac_count -gt $lt_ac_max; then
3875 lt_ac_max=$lt_ac_count
3876 lt_cv_path_SED=$lt_ac_sed
3885 { echo "$as_me:$LINENO: result: $SED" >&5
3886 echo "${ECHO_T}$SED" >&6; }
3888 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3889 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3890 if test "${ac_cv_path_GREP+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 # Extract the first word of "grep ggrep" to use in msg output
3894 if test -z "$GREP"; then
3895 set dummy grep ggrep; ac_prog_name=$2
3896 if test "${ac_cv_path_GREP+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 ac_path_GREP_found=false
3900 # Loop through the user's path and test for each of PROGNAME-LIST
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905 test -z "$as_dir" && as_dir=.
3906 for ac_prog in grep ggrep; do
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3909 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3910 # Check for GNU ac_path_GREP and select it if it is found.
3911 # Check for GNU $ac_path_GREP
3912 case `"$ac_path_GREP" --version 2>&1` in
3914 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3920 cat "conftest.in" "conftest.in" >"conftest.tmp"
3921 mv "conftest.tmp" "conftest.in"
3922 cp "conftest.in" "conftest.nl"
3923 echo 'GREP' >> "conftest.nl"
3924 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3926 ac_count=`expr $ac_count + 1`
3927 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3928 # Best one so far, save it but keep looking for a better one
3929 ac_cv_path_GREP="$ac_path_GREP"
3930 ac_path_GREP_max=$ac_count
3932 # 10*(2^10) chars as input seems more than enough
3933 test $ac_count -gt 10 && break
3935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 $ac_path_GREP_found && break 3
3949 GREP="$ac_cv_path_GREP"
3950 if test -z "$GREP"; then
3951 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3953 { (exit 1); exit 1; }; }
3957 ac_cv_path_GREP=$GREP
3962 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3963 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3964 GREP="$ac_cv_path_GREP"
3967 { echo "$as_me:$LINENO: checking for egrep" >&5
3968 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3973 then ac_cv_path_EGREP="$GREP -E"
3975 # Extract the first word of "egrep" to use in msg output
3976 if test -z "$EGREP"; then
3977 set dummy egrep; ac_prog_name=$2
3978 if test "${ac_cv_path_EGREP+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 ac_path_EGREP_found=false
3982 # Loop through the user's path and test for each of PROGNAME-LIST
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in egrep; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3992 # Check for GNU ac_path_EGREP and select it if it is found.
3993 # Check for GNU $ac_path_EGREP
3994 case `"$ac_path_EGREP" --version 2>&1` in
3996 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4002 cat "conftest.in" "conftest.in" >"conftest.tmp"
4003 mv "conftest.tmp" "conftest.in"
4004 cp "conftest.in" "conftest.nl"
4005 echo 'EGREP' >> "conftest.nl"
4006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4008 ac_count=`expr $ac_count + 1`
4009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4010 # Best one so far, save it but keep looking for a better one
4011 ac_cv_path_EGREP="$ac_path_EGREP"
4012 ac_path_EGREP_max=$ac_count
4014 # 10*(2^10) chars as input seems more than enough
4015 test $ac_count -gt 10 && break
4017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 $ac_path_EGREP_found && break 3
4031 EGREP="$ac_cv_path_EGREP"
4032 if test -z "$EGREP"; then
4033 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4034 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4035 { (exit 1); exit 1; }; }
4039 ac_cv_path_EGREP=$EGREP
4045 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4046 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4047 EGREP="$ac_cv_path_EGREP"
4051 # Check whether --with-gnu-ld was given.
4052 if test "${with_gnu_ld+set}" = set; then
4053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4059 if test "$GCC" = yes; then
4060 # Check if gcc -print-prog-name=ld gives a path.
4061 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4062 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4065 # gcc leaves a trailing carriage return which upsets mingw
4066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4071 # Accept absolute paths.
4073 re_direlt='/[^/][^/]*/\.\./'
4074 # Canonicalize the pathname of ld
4075 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4076 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4077 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4079 test -z "$LD" && LD="$ac_prog"
4082 # If it fails, then pretend we aren't using GCC.
4086 # If it is relative, then search for the first ld in PATH.
4090 elif test "$with_gnu_ld" = yes; then
4091 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4092 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4094 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4095 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4097 if test "${lt_cv_path_LD+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 if test -z "$LD"; then
4101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4102 for ac_dir in $PATH; do
4104 test -z "$ac_dir" && ac_dir=.
4105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4106 lt_cv_path_LD="$ac_dir/$ac_prog"
4107 # Check to see if the program is GNU ld. I'd rather use --version,
4108 # but apparently some variants of GNU ld only accept -v.
4109 # Break only if it was the GNU/non-GNU ld that we prefer.
4110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4111 *GNU* | *'with BFD'*)
4112 test "$with_gnu_ld" != no && break
4115 test "$with_gnu_ld" != yes && break
4122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4127 if test -n "$LD"; then
4128 { echo "$as_me:$LINENO: result: $LD" >&5
4129 echo "${ECHO_T}$LD" >&6; }
4131 { echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6; }
4134 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4135 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4136 { (exit 1); exit 1; }; }
4137 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4138 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4139 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4143 case `$LD -v 2>&1 </dev/null` in
4144 *GNU* | *'with BFD'*)
4145 lt_cv_prog_gnu_ld=yes
4148 lt_cv_prog_gnu_ld=no
4152 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4153 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4154 with_gnu_ld=$lt_cv_prog_gnu_ld
4157 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4158 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4159 if test "${lt_cv_ld_reload_flag+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 lt_cv_ld_reload_flag='-r'
4164 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4165 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4166 reload_flag=$lt_cv_ld_reload_flag
4167 case $reload_flag in
4169 *) reload_flag=" $reload_flag" ;;
4171 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4174 if test "$GCC" = yes; then
4175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4182 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4183 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4184 if test "${lt_cv_path_NM+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test -n "$NM"; then
4188 # Let the user override the test.
4191 lt_nm_to_check="${ac_tool_prefix}nm"
4192 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4193 lt_nm_to_check="$lt_nm_to_check nm"
4195 for lt_tmp_nm in $lt_nm_to_check; do
4196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4197 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4199 test -z "$ac_dir" && ac_dir=.
4200 tmp_nm="$ac_dir/$lt_tmp_nm"
4201 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4202 # Check to see if the nm accepts a BSD-compat flag.
4203 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4204 # nm: unknown option "B" ignored
4205 # Tru64's nm complains that /dev/null is an invalid object file
4206 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4207 */dev/null* | *'Invalid file or object type'*)
4208 lt_cv_path_NM="$tmp_nm -B"
4212 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4214 lt_cv_path_NM="$tmp_nm -p"
4218 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4219 continue # so that we can try to find one that supports BSD flags
4228 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4231 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4232 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4235 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4238 if test "$LN_S" = "ln -s"; then
4239 { echo "$as_me:$LINENO: result: yes" >&5
4240 echo "${ECHO_T}yes" >&6; }
4242 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4243 echo "${ECHO_T}no, using $LN_S" >&6; }
4246 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4247 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4248 if test "${lt_cv_deplibs_check_method+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 lt_cv_file_magic_cmd='$MAGIC_CMD'
4252 lt_cv_file_magic_test_file=
4253 lt_cv_deplibs_check_method='unknown'
4254 # Need to set the preceding variable on all platforms that support
4255 # interlibrary dependencies.
4256 # 'none' -- dependencies not supported.
4257 # `unknown' -- same as none, but documents that we really don't know.
4258 # 'pass_all' -- all dependencies passed with no checks.
4259 # 'test_compile' -- check by making test program.
4260 # 'file_magic [[regex]]' -- check by looking for files in library path
4261 # which responds to the $file_magic_cmd with a given extended regex.
4262 # If you have `file' or equivalent on your system and you're not sure
4263 # whether `pass_all' will *always* work, you probably want this one.
4267 lt_cv_deplibs_check_method=pass_all
4271 lt_cv_deplibs_check_method=pass_all
4275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4276 lt_cv_file_magic_cmd='/usr/bin/file -L'
4277 lt_cv_file_magic_test_file=/shlib/libc.so
4281 # func_win32_libid is a shell function defined in ltmain.sh
4282 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4283 lt_cv_file_magic_cmd='func_win32_libid'
4287 # Base MSYS/MinGW do not provide the 'file' command needed by
4288 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4289 # unless we find 'file', for example because we are cross-compiling.
4290 if ( file / ) >/dev/null 2>&1; then
4291 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4292 lt_cv_file_magic_cmd='func_win32_libid'
4294 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4295 lt_cv_file_magic_cmd='$OBJDUMP -f'
4299 darwin* | rhapsody*)
4300 lt_cv_deplibs_check_method=pass_all
4303 freebsd* | dragonfly*)
4304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4307 # Not sure whether the presence of OpenBSD here was a mistake.
4308 # Let's accept both of them until this is cleared up.
4309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4310 lt_cv_file_magic_cmd=/usr/bin/file
4311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4315 lt_cv_deplibs_check_method=pass_all
4320 lt_cv_deplibs_check_method=pass_all
4323 hpux10.20* | hpux11*)
4324 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4331 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]'
4332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4346 irix5* | irix6* | nonstopux*)
4348 *-32|*"-32 ") libmagic=32-bit;;
4349 *-n32|*"-n32 ") libmagic=N32;;
4350 *-64|*"-64 ") libmagic=64-bit;;
4351 *) libmagic=never-match;;
4353 lt_cv_deplibs_check_method=pass_all
4356 # This must be Linux ELF.
4357 linux* | k*bsd*-gnu)
4358 lt_cv_deplibs_check_method=pass_all
4361 netbsd* | netbsdelf*-gnu)
4362 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4371 lt_cv_file_magic_cmd=/usr/bin/file
4372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4376 lt_cv_deplibs_check_method=unknown
4380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4387 osf3* | osf4* | osf5*)
4388 lt_cv_deplibs_check_method=pass_all
4392 lt_cv_deplibs_check_method=pass_all
4396 lt_cv_deplibs_check_method=pass_all
4400 case $host_vendor in
4402 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]'
4403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4406 lt_cv_deplibs_check_method=pass_all
4409 lt_cv_file_magic_cmd='/bin/file'
4410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4413 lt_cv_file_magic_cmd='/bin/file'
4414 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4415 lt_cv_file_magic_test_file=/lib/libc.so
4418 lt_cv_deplibs_check_method=pass_all
4421 lt_cv_deplibs_check_method=pass_all
4426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4427 lt_cv_deplibs_check_method=pass_all
4432 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4433 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4434 file_magic_cmd=$lt_cv_file_magic_cmd
4435 deplibs_check_method=$lt_cv_deplibs_check_method
4436 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4441 # If no C compiler was specified, use CC.
4444 # If no C compiler flags were specified, use CFLAGS.
4445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4447 # Allow CC to be a program name with arguments.
4451 # Check whether --enable-libtool-lock was given.
4452 if test "${enable_libtool_lock+set}" = set; then
4453 enableval=$enable_libtool_lock;
4456 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4458 # Some flags need to be propagated to the compiler or linker for good
4462 # Find out which ABI we are using.
4463 echo 'int i;' > conftest.$ac_ext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; then
4469 case `/usr/bin/file conftest.$ac_objext` in
4481 # Find out which ABI we are using.
4482 echo '#line 4482 "configure"' > conftest.$ac_ext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; then
4488 if test "$lt_cv_prog_gnu_ld" = yes; then
4489 case `/usr/bin/file conftest.$ac_objext` in
4491 LD="${LD-ld} -melf32bsmip"
4494 LD="${LD-ld} -melf32bmipn32"
4497 LD="${LD-ld} -melf64bmip"
4501 case `/usr/bin/file conftest.$ac_objext` in
4517 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4518 s390*-*linux*|sparc*-*linux*)
4519 # Find out which ABI we are using.
4520 echo 'int i;' > conftest.$ac_ext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; then
4526 case `/usr/bin/file conftest.o` in
4529 x86_64-*kfreebsd*-gnu)
4530 LD="${LD-ld} -m elf_i386_fbsd"
4533 LD="${LD-ld} -m elf_i386"
4535 ppc64-*linux*|powerpc64-*linux*)
4536 LD="${LD-ld} -m elf32ppclinux"
4539 LD="${LD-ld} -m elf_s390"
4542 LD="${LD-ld} -m elf32_sparc"
4548 x86_64-*kfreebsd*-gnu)
4549 LD="${LD-ld} -m elf_x86_64_fbsd"
4552 LD="${LD-ld} -m elf_x86_64"
4554 ppc*-*linux*|powerpc*-*linux*)
4555 LD="${LD-ld} -m elf64ppc"
4558 LD="${LD-ld} -m elf64_s390"
4561 LD="${LD-ld} -m elf64_sparc"
4571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4572 SAVE_CFLAGS="$CFLAGS"
4573 CFLAGS="$CFLAGS -belf"
4574 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4575 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4576 if test "${lt_cv_cc_needs_belf+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_link") 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && {
4614 test -z "$ac_c_werror_flag" ||
4615 test ! -s conftest.err
4616 } && test -s conftest$ac_exeext &&
4617 $as_test_x conftest$ac_exeext; then
4618 lt_cv_cc_needs_belf=yes
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 lt_cv_cc_needs_belf=no
4626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4627 conftest$ac_exeext conftest.$ac_ext
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4636 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4639 CFLAGS="$SAVE_CFLAGS"
4643 # Find out which ABI we are using.
4644 echo 'int i;' > conftest.$ac_ext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; then
4650 case `/usr/bin/file conftest.o` in
4652 case $lt_cv_prog_gnu_ld in
4653 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4669 need_locks="$enable_libtool_lock"
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4679 # On Suns, sometimes $CPP names a directory.
4680 if test -n "$CPP" && test -d "$CPP"; then
4683 if test -z "$CPP"; then
4684 if test "${ac_cv_prog_CPP+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 # Double quotes because CPP needs to be expanded
4688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4691 for ac_c_preproc_warn_flag in '' yes
4693 # Use a header file that comes with gcc, so configuring glibc
4694 # with a fresh cross-compiler works.
4695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696 # <limits.h> exists even on freestanding compilers.
4697 # On the NeXT, cc -E runs the code through the compiler's parser,
4698 # not just through cpp. "Syntax error" is here to catch this case.
4699 cat >conftest.$ac_ext <<_ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 # include <limits.h>
4708 # include <assert.h>
4712 if { (ac_try="$ac_cpp conftest.$ac_ext"
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } >/dev/null && {
4725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 # Broken: fails on valid input.
4737 rm -f conftest.err conftest.$ac_ext
4739 # OK, works on sane cases. Now check whether nonexistent headers
4740 # can be detected and how.
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #include <ac_nonexistent.h>
4749 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757 grep -v '^ *+' conftest.er1 >conftest.err
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } >/dev/null && {
4762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4763 test ! -s conftest.err
4765 # Broken: success on invalid input.
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 # Passes both tests.
4776 rm -f conftest.err conftest.$ac_ext
4779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4780 rm -f conftest.err conftest.$ac_ext
4781 if $ac_preproc_ok; then
4793 { echo "$as_me:$LINENO: result: $CPP" >&5
4794 echo "${ECHO_T}$CPP" >&6; }
4796 for ac_c_preproc_warn_flag in '' yes
4798 # Use a header file that comes with gcc, so configuring glibc
4799 # with a fresh cross-compiler works.
4800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801 # <limits.h> exists even on freestanding compilers.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 # include <limits.h>
4813 # include <assert.h>
4817 if { (ac_try="$ac_cpp conftest.$ac_ext"
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null && {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 # Broken: fails on valid input.
4842 rm -f conftest.err conftest.$ac_ext
4844 # OK, works on sane cases. Now check whether nonexistent headers
4845 # can be detected and how.
4846 cat >conftest.$ac_ext <<_ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <ac_nonexistent.h>
4854 if { (ac_try="$ac_cpp conftest.$ac_ext"
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null && {
4867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4870 # Broken: success on invalid input.
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4876 # Passes both tests.
4881 rm -f conftest.err conftest.$ac_ext
4884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885 rm -f conftest.err conftest.$ac_ext
4886 if $ac_preproc_ok; then
4889 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4890 See \`config.log' for more details." >&5
4891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4892 See \`config.log' for more details." >&2;}
4893 { (exit 1); exit 1; }; }
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4904 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4905 if test "${ac_cv_header_stdc+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4944 ac_cv_header_stdc=yes
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 ac_cv_header_stdc=no
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $ac_cv_header_stdc = yes; then
4955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "memchr" >/dev/null 2>&1; then
4969 ac_cv_header_stdc=no
4975 if test $ac_cv_header_stdc = yes; then
4976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4977 cat >conftest.$ac_ext <<_ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987 $EGREP "free" >/dev/null 2>&1; then
4990 ac_cv_header_stdc=no
4996 if test $ac_cv_header_stdc = yes; then
4997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4998 if test "$cross_compiling" = yes; then
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5009 #if ((' ' & 0x0FF) == 0x020)
5010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5013 # define ISLOWER(c) \
5014 (('a' <= (c) && (c) <= 'i') \
5015 || ('j' <= (c) && (c) <= 'r') \
5016 || ('s' <= (c) && (c) <= 'z'))
5017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5025 for (i = 0; i < 256; i++)
5026 if (XOR (islower (i), ISLOWER (i))
5027 || toupper (i) != TOUPPER (i))
5032 rm -f conftest$ac_exeext
5033 if { (ac_try="$ac_link"
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_link") 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5043 { (case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_try") 2>&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5054 echo "$as_me: program exited with status $ac_status" >&5
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_cv_header_stdc=no
5061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5068 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5069 if test $ac_cv_header_stdc = yes; then
5071 cat >>confdefs.h <<\_ACEOF
5072 #define STDC_HEADERS 1
5077 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5087 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5088 inttypes.h stdint.h unistd.h
5090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 $ac_includes_default
5104 #include <$ac_header>
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5123 eval "$as_ac_Header=yes"
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 eval "$as_ac_Header=no"
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 ac_res=`eval echo '${'$as_ac_Header'}'`
5134 { echo "$as_me:$LINENO: result: $ac_res" >&5
5135 echo "${ECHO_T}$ac_res" >&6; }
5136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137 cat >>confdefs.h <<_ACEOF
5138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147 for ac_header in dlfcn.h
5149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 ac_res=`eval echo '${'$as_ac_Header'}'`
5157 { echo "$as_me:$LINENO: result: $ac_res" >&5
5158 echo "${ECHO_T}$ac_res" >&6; }
5160 # Is the header compilable?
5161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 $ac_includes_default
5170 #include <$ac_header>
5172 rm -f conftest.$ac_objext
5173 if { (ac_try="$ac_compile"
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_compile") 2>conftest.er1
5181 grep -v '^ *+' conftest.er1 >conftest.err
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } && {
5186 test -z "$ac_c_werror_flag" ||
5187 test ! -s conftest.err
5188 } && test -s conftest.$ac_objext; then
5189 ac_header_compiler=yes
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 ac_header_compiler=no
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6; }
5201 # Is the header present?
5202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <$ac_header>
5212 if { (ac_try="$ac_cpp conftest.$ac_ext"
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null && {
5225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5228 ac_header_preproc=yes
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_header_preproc=no
5236 rm -f conftest.err conftest.$ac_ext
5237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5238 echo "${ECHO_T}$ac_header_preproc" >&6; }
5240 # So? What about this header?
5241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5247 ac_header_preproc=yes
5250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5263 ## ---------------------------------------- ##
5264 ## Report this to konn@users.sourceforge.jp ##
5265 ## ---------------------------------------- ##
5267 ) | sed "s/^/$as_me: WARNING: /" >&2
5270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 eval "$as_ac_Header=\$ac_header_preproc"
5277 ac_res=`eval echo '${'$as_ac_Header'}'`
5278 { echo "$as_me:$LINENO: result: $ac_res" >&5
5279 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5292 ac_cpp='$CXXCPP $CPPFLAGS'
5293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5296 if test -z "$CXX"; then
5297 if test -n "$CCC"; then
5300 if test -n "$ac_tool_prefix"; then
5301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5307 if test "${ac_cv_prog_CXX+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 if test -n "$CXX"; then
5311 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 if test -n "$CXX"; then
5332 { echo "$as_me:$LINENO: result: $CXX" >&5
5333 echo "${ECHO_T}$CXX" >&6; }
5335 { echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6; }
5340 test -n "$CXX" && break
5343 if test -z "$CXX"; then
5345 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5347 # Extract the first word of "$ac_prog", so it can be a program name with args.
5348 set dummy $ac_prog; ac_word=$2
5349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 if test -n "$ac_ct_CXX"; then
5355 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_ac_ct_CXX="$ac_prog"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5375 if test -n "$ac_ct_CXX"; then
5376 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5377 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5379 { echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6; }
5384 test -n "$ac_ct_CXX" && break
5387 if test "x$ac_ct_CXX" = x; then
5390 case $cross_compiling:$ac_tool_warned in
5392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5393 whose name does not start with the host triplet. If you think this
5394 configuration is useful to you, please write to autoconf@gnu.org." >&5
5395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5396 whose name does not start with the host triplet. If you think this
5397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5398 ac_tool_warned=yes ;;
5406 # Provide some information about the compiler.
5407 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5408 ac_compiler=`set X $ac_compile; echo $2`
5409 { (ac_try="$ac_compiler --version >&5"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compiler --version >&5") 2>&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }
5419 { (ac_try="$ac_compiler -v >&5"
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compiler -v >&5") 2>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }
5429 { (ac_try="$ac_compiler -V >&5"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compiler -V >&5") 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }
5440 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5441 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5442 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_cxx_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5492 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5493 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5494 GXX=`test $ac_compiler_gnu = yes && echo yes`
5495 ac_test_CXXFLAGS=${CXXFLAGS+set}
5496 ac_save_CXXFLAGS=$CXXFLAGS
5497 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5498 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_cxx_g+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5503 ac_cxx_werror_flag=yes
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_cxx_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 ac_cv_prog_cxx_g=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_cxx_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest.$ac_objext; then
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_cxx_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_prog_cxx_g=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5633 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5634 if test "$ac_test_CXXFLAGS" = set; then
5635 CXXFLAGS=$ac_save_CXXFLAGS
5636 elif test $ac_cv_prog_cxx_g = yes; then
5637 if test "$GXX" = yes; then
5643 if test "$GXX" = yes; then
5650 ac_cpp='$CXXCPP $CPPFLAGS'
5651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 depcc="$CXX" am_compiler_list=
5657 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5658 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5659 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5663 # We make a subdir and do the tests there. Otherwise we can end up
5664 # making bogus files that we don't know about and never remove. For
5665 # instance it was reported that on HP-UX the gcc test will end up
5666 # making a dummy file named `D' -- because `-MD' means `put the output
5669 # Copy depcomp to subdir because otherwise we won't find it if we're
5670 # using a relative directory.
5671 cp "$am_depcomp" conftest.dir
5673 # We will build objects and dependencies in a subdirectory because
5674 # it helps to detect inapplicable dependency modes. For instance
5675 # both Tru64's cc and ICC support -MD to output dependencies as a
5676 # side effect of compilation, but ICC will put the dependencies in
5677 # the current directory while Tru64 will put them in the object
5681 am_cv_CXX_dependencies_compiler_type=none
5682 if test "$am_compiler_list" = ""; then
5683 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5685 for depmode in $am_compiler_list; do
5686 # Setup a source with many dependencies, because some compilers
5687 # like to wrap large dependency lists on column 80 (with \), and
5688 # we should not choose a depcomp mode which is confused by this.
5690 # We need to recreate these files for each test, as the compiler may
5691 # overwrite some of them when testing with obscure command lines.
5692 # This happens at least with the AIX C compiler.
5694 for i in 1 2 3 4 5 6; do
5695 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5696 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5697 # Solaris 8's {/usr,}/bin/sh.
5698 touch sub/conftst$i.h
5700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5704 # after this tag, mechanisms are not by side-effect, so they'll
5705 # only be used when explicitly requested
5706 if test "x$enable_dependency_tracking" = xyes; then
5714 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5715 # mode. It turns out that the SunPro C++ compiler does not properly
5716 # handle `-M -o', and we need to detect this.
5717 if depmode=$depmode \
5718 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5720 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5721 >/dev/null 2>conftest.err &&
5722 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5724 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5726 # icc doesn't choke on unknown options, it will just issue warnings
5727 # or remarks (even with -Werror). So we grep stderr for any message
5728 # that says an option was ignored or not supported.
5729 # When given -MP, icc 7.0 and 7.1 complain thusly:
5730 # icc: Command line warning: ignoring option '-M'; no argument required
5731 # The diagnosis changed in icc 8.0:
5732 # icc: Command line remark: option '-MP' not supported
5733 if (grep 'ignoring option' conftest.err ||
5734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5735 am_cv_CXX_dependencies_compiler_type=$depmode
5744 am_cv_CXX_dependencies_compiler_type=none
5748 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5749 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5750 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5753 test "x$enable_dependency_tracking" != xno \
5754 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5755 am__fastdepCXX_TRUE=
5756 am__fastdepCXX_FALSE='#'
5758 am__fastdepCXX_TRUE='#'
5759 am__fastdepCXX_FALSE=
5765 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5766 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5767 (test "X$CXX" != "Xg++"))) ; then
5769 ac_cpp='$CXXCPP $CPPFLAGS'
5770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5773 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5774 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5775 if test -z "$CXXCPP"; then
5776 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 # Double quotes because CXXCPP needs to be expanded
5780 for CXXCPP in "$CXX -E" "/lib/cpp"
5783 for ac_cxx_preproc_warn_flag in '' yes
5785 # Use a header file that comes with gcc, so configuring glibc
5786 # with a fresh cross-compiler works.
5787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5788 # <limits.h> exists even on freestanding compilers.
5789 # On the NeXT, cc -E runs the code through the compiler's parser,
5790 # not just through cpp. "Syntax error" is here to catch this case.
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5798 # include <limits.h>
5800 # include <assert.h>
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818 test ! -s conftest.err
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 # Broken: fails on valid input.
5829 rm -f conftest.err conftest.$ac_ext
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #include <ac_nonexistent.h>
5841 if { (ac_try="$ac_cpp conftest.$ac_ext"
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1 >conftest.err
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev/null && {
5854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5855 test ! -s conftest.err
5857 # Broken: success on invalid input.
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 # Passes both tests.
5868 rm -f conftest.err conftest.$ac_ext
5871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872 rm -f conftest.err conftest.$ac_ext
5873 if $ac_preproc_ok; then
5878 ac_cv_prog_CXXCPP=$CXXCPP
5881 CXXCPP=$ac_cv_prog_CXXCPP
5883 ac_cv_prog_CXXCPP=$CXXCPP
5885 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5886 echo "${ECHO_T}$CXXCPP" >&6; }
5888 for ac_cxx_preproc_warn_flag in '' yes
5890 # Use a header file that comes with gcc, so configuring glibc
5891 # with a fresh cross-compiler works.
5892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 # <limits.h> exists even on freestanding compilers.
5894 # On the NeXT, cc -E runs the code through the compiler's parser,
5895 # not just through cpp. "Syntax error" is here to catch this case.
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 # include <limits.h>
5905 # include <assert.h>
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923 test ! -s conftest.err
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 # Broken: fails on valid input.
5934 rm -f conftest.err conftest.$ac_ext
5936 # OK, works on sane cases. Now check whether nonexistent headers
5937 # can be detected and how.
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <ac_nonexistent.h>
5946 if { (ac_try="$ac_cpp conftest.$ac_ext"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null && {
5959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5960 test ! -s conftest.err
5962 # Broken: success on invalid input.
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 # Passes both tests.
5973 rm -f conftest.err conftest.$ac_ext
5976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5977 rm -f conftest.err conftest.$ac_ext
5978 if $ac_preproc_ok; then
5981 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5982 See \`config.log' for more details." >&5
5983 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5984 See \`config.log' for more details." >&2;}
5985 { (exit 1); exit 1; }; }
5989 ac_cpp='$CXXCPP $CPPFLAGS'
5990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5998 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5999 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6001 if test -n "$ac_tool_prefix"; then
6002 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
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_prog_F77+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 if test -n "$F77"; then
6012 ac_cv_prog_F77="$F77" # Let the user override the test.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 if test -n "$F77"; then
6033 { echo "$as_me:$LINENO: result: $F77" >&5
6034 echo "${ECHO_T}$F77" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6041 test -n "$F77" && break
6044 if test -z "$F77"; then
6046 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
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 if test -n "$ac_ct_F77"; then
6056 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_ac_ct_F77="$ac_prog"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6076 if test -n "$ac_ct_F77"; then
6077 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6078 echo "${ECHO_T}$ac_ct_F77" >&6; }
6080 { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6085 test -n "$ac_ct_F77" && break
6088 if test "x$ac_ct_F77" = x; then
6091 case $cross_compiling:$ac_tool_warned in
6093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6094 whose name does not start with the host triplet. If you think this
6095 configuration is useful to you, please write to autoconf@gnu.org." >&5
6096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6097 whose name does not start with the host triplet. If you think this
6098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6099 ac_tool_warned=yes ;;
6106 # Provide some information about the compiler.
6107 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6108 ac_compiler=`set X $ac_compile; echo $2`
6109 { (ac_try="$ac_compiler --version >&5"
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_compiler --version >&5") 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }
6119 { (ac_try="$ac_compiler -v >&5"
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compiler -v >&5") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }
6129 { (ac_try="$ac_compiler -V >&5"
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compiler -V >&5") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }
6141 # If we don't use `.F' as extension, the preprocessor is not run on the
6142 # input file. (Note that this only needs to work for GNU compilers.)
6145 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6146 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6147 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 cat >conftest.$ac_ext <<_ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compile") 2>conftest.er1
6167 grep -v '^ *+' conftest.er1 >conftest.err
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && {
6172 test -z "$ac_f77_werror_flag" ||
6173 test ! -s conftest.err
6174 } && test -s conftest.$ac_objext; then
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6187 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6188 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6190 ac_test_FFLAGS=${FFLAGS+set}
6191 ac_save_FFLAGS=$FFLAGS
6193 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6194 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_f77_g+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 cat >conftest.$ac_ext <<_ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_f77_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
6221 ac_cv_prog_f77_g=yes
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6233 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6234 if test "$ac_test_FFLAGS" = set; then
6235 FFLAGS=$ac_save_FFLAGS
6236 elif test $ac_cv_prog_f77_g = yes; then
6237 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6243 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6250 G77=`test $ac_compiler_gnu = yes && echo yes`
6252 ac_cpp='$CPP $CPPFLAGS'
6253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6259 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6260 # find the maximum length of command line arguments
6261 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6262 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6263 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 # On DJGPP, this test can blow up pretty badly due to problems in libc
6272 # (any single argument exceeding 2000 bytes causes a buffer overrun
6273 # during glob expansion). Even if it were fixed, the result of this
6274 # check would be larger than it should be.
6275 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6279 # Under GNU Hurd, this test is not required because there is
6280 # no limit to the length of command line arguments.
6281 # Libtool will interpret -1 as no limit whatsoever
6282 lt_cv_sys_max_cmd_len=-1;
6286 # On Win9x/ME, this test blows up -- it succeeds, but takes
6287 # about 5 minutes as the teststring grows exponentially.
6288 # Worse, since 9x/ME are not pre-emptively multitasking,
6289 # you end up with a "frozen" computer, even though with patience
6290 # the test eventually succeeds (with a max line length of 256k).
6291 # Instead, let's just punt: use the minimum linelength reported by
6292 # all of the supported platforms: 8192 (on NT/2K/XP).
6293 lt_cv_sys_max_cmd_len=8192;
6297 # On AmigaOS with pdksh, this test takes hours, literally.
6298 # So we just punt and use a minimum line length of 8192.
6299 lt_cv_sys_max_cmd_len=8192;
6302 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6303 # This has been around since 386BSD, at least. Likely further.
6304 if test -x /sbin/sysctl; then
6305 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6306 elif test -x /usr/sbin/sysctl; then
6307 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6309 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6311 # And add a safety zone
6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6317 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6318 lt_cv_sys_max_cmd_len=196608
6322 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6323 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6324 # nice to cause kernel panics so lets avoid the loop below.
6325 # First set a reasonable default.
6326 lt_cv_sys_max_cmd_len=16384
6328 if test -x /sbin/sysconfig; then
6329 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6330 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6335 lt_cv_sys_max_cmd_len=102400
6337 sysv5* | sco5v6* | sysv4.2uw2*)
6338 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6339 if test -n "$kargmax"; then
6340 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6342 lt_cv_sys_max_cmd_len=32768
6346 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6347 if test -n "$lt_cv_sys_max_cmd_len"; then
6348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6351 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6353 = "XX$teststring") >/dev/null 2>&1 &&
6354 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6355 lt_cv_sys_max_cmd_len=$new_result &&
6356 test $i != 17 # 1/2 MB should be enough
6359 teststring=$teststring$teststring
6362 # Add a significant safety factor because C++ compilers can tack on massive
6363 # amounts of additional arguments before passing them to the linker.
6364 # It appears as though 1/2 is a usable value.
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6372 if test -n $lt_cv_sys_max_cmd_len ; then
6373 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6374 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6376 { echo "$as_me:$LINENO: result: none" >&5
6377 echo "${ECHO_T}none" >&6; }
6384 # Check for command to grab the raw symbol name followed by C symbol from nm.
6385 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6386 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6387 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 # These are sane defaults that work on at least a few old systems.
6392 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6394 # Character class describing NM global symbol codes.
6395 symcode='[BCDEGRST]'
6397 # Regexp to match symbols that can be accessed directly from C.
6398 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6400 # Transform an extracted symbol line into a proper C declaration
6401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6403 # Transform an extracted symbol line into symbol name and symbol address
6404 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'"
6406 # Define system-specific variables.
6411 cygwin* | mingw* | pw32*)
6412 symcode='[ABCDGISTW]'
6414 hpux*) # Its linker distinguishes data from code symbols
6415 if test "$host_cpu" = ia64; then
6416 symcode='[ABCDEGRST]'
6418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419 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'"
6421 linux* | k*bsd*-gnu)
6422 if test "$host_cpu" = ia64; then
6423 symcode='[ABCDGIRSTW]'
6424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425 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'"
6429 symcode='[BCDEGRST]'
6432 symcode='[BCDEGQRST]'
6443 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6451 # Handle CRLF in mingw tool chain
6455 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6459 # If we're using GNU nm, then use its standard symbol codes.
6460 case `$NM -V 2>&1` in
6461 *GNU* | *'with BFD'*)
6462 symcode='[ABCDGIRSTW]' ;;
6465 # Try without a prefix undercore, then with it.
6466 for ac_symprfx in "" "_"; do
6468 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469 symxfrm="\\1 $ac_symprfx\\2 \\2"
6471 # Write the raw and C identifiers.
6472 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6474 # Check to see that the pipe works correctly.
6478 cat > conftest.$ac_ext <<EOF
6483 void nm_test_func(){}
6487 int main(){nm_test_var='a';nm_test_func();return(0);}
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; then
6495 # Now try to grab the symbols.
6497 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6498 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && test -s "$nlist"; then
6502 # Try sorting and uniquifying the output.
6503 if sort "$nlist" | uniq > "$nlist"T; then
6504 mv -f "$nlist"T "$nlist"
6509 # Make sure that we snagged all the symbols we need.
6510 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6511 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6512 cat <<EOF > conftest.$ac_ext
6518 # Now generate the symbol file.
6519 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6521 cat <<EOF >> conftest.$ac_ext
6522 #if defined (__STDC__) && __STDC__
6523 # define lt_ptr_t void *
6525 # define lt_ptr_t char *
6529 /* The mapping between symbol names and symbols. */
6534 lt_preloaded_symbols[] =
6537 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6538 cat <<\EOF >> conftest.$ac_ext
6546 # Now try linking the two files.
6547 mv conftest.$ac_objext conftstm.$ac_objext
6548 lt_save_LIBS="$LIBS"
6549 lt_save_CFLAGS="$CFLAGS"
6550 LIBS="conftstm.$ac_objext"
6551 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6559 LIBS="$lt_save_LIBS"
6560 CFLAGS="$lt_save_CFLAGS"
6562 echo "cannot find nm_test_func in $nlist" >&5
6565 echo "cannot find nm_test_var in $nlist" >&5
6568 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6571 echo "$progname: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6574 rm -rf conftest* conftst*
6576 # Do not use the global_symbol_pipe unless it works.
6577 if test "$pipe_works" = yes; then
6580 lt_cv_sys_global_symbol_pipe=
6586 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6587 lt_cv_sys_global_symbol_to_cdecl=
6589 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6590 { echo "$as_me:$LINENO: result: failed" >&5
6591 echo "${ECHO_T}failed" >&6; }
6593 { echo "$as_me:$LINENO: result: ok" >&5
6594 echo "${ECHO_T}ok" >&6; }
6597 { echo "$as_me:$LINENO: checking for objdir" >&5
6598 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6599 if test "${lt_cv_objdir+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 rm -f .libs 2>/dev/null
6603 mkdir .libs 2>/dev/null
6604 if test -d .libs; then
6607 # MS-DOS does not allow filenames that begin with a dot.
6610 rmdir .libs 2>/dev/null
6612 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6613 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6614 objdir=$lt_cv_objdir
6622 # AIX sometimes has problems with the GCC collect2 program. For some
6623 # reason, if we set the COLLECT_NAMES environment variable, the problems
6624 # vanish in a puff of smoke.
6625 if test "X${COLLECT_NAMES+set}" != Xset; then
6627 export COLLECT_NAMES
6632 # Sed substitution that helps us do robust quoting. It backslashifies
6633 # metacharacters that are still active within double-quoted strings.
6634 Xsed='sed -e 1s/^X//'
6635 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6637 # Same as above, but do not quote variable references.
6638 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6640 # Sed substitution to delay expansion of an escaped shell variable in a
6641 # double_quote_subst'ed string.
6642 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6644 # Sed substitution to avoid accidental globbing in evaled expressions
6645 no_glob_subst='s/\*/\\\*/g'
6651 default_ofile=libtool
6652 can_build_shared=yes
6654 # All known linkers require a `.a' archive for static linking (except MSVC,
6655 # which needs '.lib').
6657 ltmain="$ac_aux_dir/ltmain.sh"
6658 ofile="$default_ofile"
6659 with_gnu_ld="$lt_cv_prog_gnu_ld"
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$AR"; then
6670 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 if test -n "$AR"; then
6691 { echo "$as_me:$LINENO: result: $AR" >&5
6692 echo "${ECHO_T}$AR" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6700 if test -z "$ac_cv_prog_AR"; then
6702 # Extract the first word of "ar", so it can be a program name with args.
6703 set dummy ar; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 if test -n "$ac_ct_AR"; then
6710 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_ac_ct_AR="ar"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6730 if test -n "$ac_ct_AR"; then
6731 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6732 echo "${ECHO_T}$ac_ct_AR" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6738 if test "x$ac_ct_AR" = x; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6744 whose name does not start with the host triplet. If you think this
6745 configuration is useful to you, please write to autoconf@gnu.org." >&5
6746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet. If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6749 ac_tool_warned=yes ;;
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$RANLIB"; then
6766 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 RANLIB=$ac_cv_prog_RANLIB
6786 if test -n "$RANLIB"; then
6787 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6788 echo "${ECHO_T}$RANLIB" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6796 if test -z "$ac_cv_prog_RANLIB"; then
6797 ac_ct_RANLIB=$RANLIB
6798 # Extract the first word of "ranlib", so it can be a program name with args.
6799 set dummy ranlib; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 if test -n "$ac_ct_RANLIB"; then
6806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_RANLIB="ranlib"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6826 if test -n "$ac_ct_RANLIB"; then
6827 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6828 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6834 if test "x$ac_ct_RANLIB" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet. If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&5
6842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843 whose name does not start with the host triplet. If you think this
6844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6845 ac_tool_warned=yes ;;
6847 RANLIB=$ac_ct_RANLIB
6850 RANLIB="$ac_cv_prog_RANLIB"
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}strip; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_STRIP+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$STRIP"; then
6862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 STRIP=$ac_cv_prog_STRIP
6882 if test -n "$STRIP"; then
6883 { echo "$as_me:$LINENO: result: $STRIP" >&5
6884 echo "${ECHO_T}$STRIP" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6892 if test -z "$ac_cv_prog_STRIP"; then
6894 # Extract the first word of "strip", so it can be a program name with args.
6895 set dummy strip; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 if test -n "$ac_ct_STRIP"; then
6902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_STRIP="strip"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6922 if test -n "$ac_ct_STRIP"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6924 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_ct_STRIP" = x; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6946 STRIP="$ac_cv_prog_STRIP"
6951 old_CFLAGS="$CFLAGS"
6953 # Set sane defaults for various variables
6954 test -z "$AR" && AR=ar
6955 test -z "$AR_FLAGS" && AR_FLAGS=cru
6956 test -z "$AS" && AS=as
6957 test -z "$CC" && CC=cc
6958 test -z "$LTCC" && LTCC=$CC
6959 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6960 test -z "$DLLTOOL" && DLLTOOL=dlltool
6961 test -z "$LD" && LD=ld
6962 test -z "$LN_S" && LN_S="ln -s"
6963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6964 test -z "$NM" && NM=nm
6965 test -z "$SED" && SED=sed
6966 test -z "$OBJDUMP" && OBJDUMP=objdump
6967 test -z "$RANLIB" && RANLIB=:
6968 test -z "$STRIP" && STRIP=:
6969 test -z "$ac_objext" && ac_objext=o
6971 # Determine commands to create old-style static archives.
6972 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6973 old_postinstall_cmds='chmod 644 $oldlib'
6974 old_postuninstall_cmds=
6976 if test -n "$RANLIB"; then
6979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6982 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6985 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6988 for cc_temp in $compiler""; do
6990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6999 # Only perform the check for file, if the check method requires it
7000 case $deplibs_check_method in
7002 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7003 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7004 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7013 lt_save_MAGIC_CMD="$MAGIC_CMD"
7014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7016 for ac_dir in $ac_dummy; do
7018 test -z "$ac_dir" && ac_dir=.
7019 if test -f $ac_dir/${ac_tool_prefix}file; then
7020 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7021 if test -n "$file_magic_test_file"; then
7022 case $deplibs_check_method in
7024 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7027 $EGREP "$file_magic_regex" > /dev/null; then
7032 *** Warning: the command libtool uses to detect shared libraries,
7033 *** $file_magic_cmd, produces output that libtool cannot recognize.
7034 *** The result is that libtool may fail to recognize shared libraries
7035 *** as such. This will affect the creation of libtool libraries that
7036 *** depend on shared libraries, but programs linked with such libtool
7037 *** libraries will work regardless of this problem. Nevertheless, you
7038 *** may want to report the problem to your system manager and/or to
7039 *** bug-libtool@gnu.org
7049 MAGIC_CMD="$lt_save_MAGIC_CMD"
7054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7055 if test -n "$MAGIC_CMD"; then
7056 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7057 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7063 if test -z "$lt_cv_path_MAGIC_CMD"; then
7064 if test -n "$ac_tool_prefix"; then
7065 { echo "$as_me:$LINENO: checking for file" >&5
7066 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7067 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7075 lt_save_MAGIC_CMD="$MAGIC_CMD"
7076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7078 for ac_dir in $ac_dummy; do
7080 test -z "$ac_dir" && ac_dir=.
7081 if test -f $ac_dir/file; then
7082 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7083 if test -n "$file_magic_test_file"; then
7084 case $deplibs_check_method in
7086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7089 $EGREP "$file_magic_regex" > /dev/null; then
7094 *** Warning: the command libtool uses to detect shared libraries,
7095 *** $file_magic_cmd, produces output that libtool cannot recognize.
7096 *** The result is that libtool may fail to recognize shared libraries
7097 *** as such. This will affect the creation of libtool libraries that
7098 *** depend on shared libraries, but programs linked with such libtool
7099 *** libraries will work regardless of this problem. Nevertheless, you
7100 *** may want to report the problem to your system manager and/or to
7101 *** bug-libtool@gnu.org
7111 MAGIC_CMD="$lt_save_MAGIC_CMD"
7116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7117 if test -n "$MAGIC_CMD"; then
7118 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7119 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7136 rhapsody* | darwin*)
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 if test -n "$DSYMUTIL"; then
7146 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7166 if test -n "$DSYMUTIL"; then
7167 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7168 echo "${ECHO_T}$DSYMUTIL" >&6; }
7170 { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7176 if test -z "$ac_cv_prog_DSYMUTIL"; then
7177 ac_ct_DSYMUTIL=$DSYMUTIL
7178 # Extract the first word of "dsymutil", so it can be a program name with args.
7179 set dummy dsymutil; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 if test -n "$ac_ct_DSYMUTIL"; then
7186 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7206 if test -n "$ac_ct_DSYMUTIL"; then
7207 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7208 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7214 if test "x$ac_ct_DSYMUTIL" = x; then
7217 case $cross_compiling:$ac_tool_warned in
7219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7220 whose name does not start with the host triplet. If you think this
7221 configuration is useful to you, please write to autoconf@gnu.org." >&5
7222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet. If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7225 ac_tool_warned=yes ;;
7227 DSYMUTIL=$ac_ct_DSYMUTIL
7230 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7233 if test -n "$ac_tool_prefix"; then
7234 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 if test -n "$NMEDIT"; then
7242 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 NMEDIT=$ac_cv_prog_NMEDIT
7262 if test -n "$NMEDIT"; then
7263 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7264 echo "${ECHO_T}$NMEDIT" >&6; }
7266 { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7272 if test -z "$ac_cv_prog_NMEDIT"; then
7273 ac_ct_NMEDIT=$NMEDIT
7274 # Extract the first word of "nmedit", so it can be a program name with args.
7275 set dummy nmedit; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 if test -n "$ac_ct_NMEDIT"; then
7282 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7291 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7302 if test -n "$ac_ct_NMEDIT"; then
7303 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7304 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7310 if test "x$ac_ct_NMEDIT" = x; then
7313 case $cross_compiling:$ac_tool_warned in
7315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7316 whose name does not start with the host triplet. If you think this
7317 configuration is useful to you, please write to autoconf@gnu.org." >&5
7318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7319 whose name does not start with the host triplet. If you think this
7320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7321 ac_tool_warned=yes ;;
7323 NMEDIT=$ac_ct_NMEDIT
7326 NMEDIT="$ac_cv_prog_NMEDIT"
7330 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7331 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7332 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 lt_cv_apple_cc_single_mod=no
7336 if test -z "${LT_MULTI_MODULE}"; then
7337 # By default we will add the -single_module flag. You can override
7338 # by either setting the environment variable LT_MULTI_MODULE
7339 # non-empty at configure time, or by adding -multi_module to the
7341 echo "int foo(void){return 1;}" > conftest.c
7342 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7343 -dynamiclib ${wl}-single_module conftest.c
7344 if test -f libconftest.dylib; then
7345 lt_cv_apple_cc_single_mod=yes
7346 rm -rf libconftest.dylib*
7351 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7352 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7353 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7354 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7355 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 lt_cv_ld_exported_symbols_list=no
7359 save_LDFLAGS=$LDFLAGS
7360 echo "_main" > conftest.sym
7361 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (ac_try="$ac_link"
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_link") 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } && {
7391 test -z "$ac_c_werror_flag" ||
7392 test ! -s conftest.err
7393 } && test -s conftest$ac_exeext &&
7394 $as_test_x conftest$ac_exeext; then
7395 lt_cv_ld_exported_symbols_list=yes
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 lt_cv_ld_exported_symbols_list=no
7403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7404 conftest$ac_exeext conftest.$ac_ext
7405 LDFLAGS="$save_LDFLAGS"
7408 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7409 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7411 rhapsody* | darwin1.[0123])
7412 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7416 # if running on 10.5 or later, the deployment target defaults
7417 # to the OS version, if on x86, and 10.4, the deployment
7418 # target defaults to 10.4. Don't you love it?
7419 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7420 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7421 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7429 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7430 _lt_dar_single_mod='$single_module'
7432 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7433 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7435 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7437 if test "$DSYMUTIL" != ":"; then
7438 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7449 # Check whether --enable-libtool-lock was given.
7450 if test "${enable_libtool_lock+set}" = set; then
7451 enableval=$enable_libtool_lock;
7454 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7457 # Check whether --with-pic was given.
7458 if test "${with_pic+set}" = set; then
7459 withval=$with_pic; pic_mode="$withval"
7464 test -z "$pic_mode" && pic_mode=default
7466 # Use C for the default configuration in the libtool script
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476 # Source file extension for C test sources.
7479 # Object file extension for compiled C test sources.
7483 # Code to be used in simple compile tests
7484 lt_simple_compile_test_code="int some_variable = 0;"
7486 # Code to be used in simple link tests
7487 lt_simple_link_test_code='int main(){return(0);}'
7490 # If no C compiler was specified, use CC.
7493 # If no C compiler flags were specified, use CFLAGS.
7494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7496 # Allow CC to be a program name with arguments.
7500 # save warnings/boilerplate of simple test code
7501 ac_outfile=conftest.$ac_objext
7502 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7504 _lt_compiler_boilerplate=`cat conftest.err`
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510 _lt_linker_boilerplate=`cat conftest.err`
7515 lt_prog_compiler_no_builtin_flag=
7517 if test "$GCC" = yes; then
7518 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7521 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7522 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7523 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 lt_cv_prog_compiler_rtti_exceptions=no
7527 ac_outfile=conftest.$ac_objext
7528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7529 lt_compiler_flag="-fno-rtti -fno-exceptions"
7530 # Insert the option either (1) after the last *FLAGS variable, or
7531 # (2) before a word containing "conftest.", or (3) at the end.
7532 # Note that $ac_compile itself does not contain backslashes and begins
7533 # with a dollar sign (not a hyphen), so the echo should work correctly.
7534 # The option is referenced via a variable to avoid confusing sed.
7535 lt_compile=`echo "$ac_compile" | $SED \
7536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7538 -e 's:$: $lt_compiler_flag:'`
7539 (eval echo "\"\$as_me:7539: $lt_compile\"" >&5)
7540 (eval "$lt_compile" 2>conftest.err)
7542 cat conftest.err >&5
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 if (exit $ac_status) && test -s "$ac_outfile"; then
7545 # The compiler can only warn and ignore the option if not recognized
7546 # So say no if there are warnings other than the usual output.
7547 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7549 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7550 lt_cv_prog_compiler_rtti_exceptions=yes
7556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7557 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7560 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7567 lt_prog_compiler_wl=
7568 lt_prog_compiler_pic=
7569 lt_prog_compiler_static=
7571 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7574 if test "$GCC" = yes; then
7575 lt_prog_compiler_wl='-Wl,'
7576 lt_prog_compiler_static='-static'
7580 # All AIX code is PIC.
7581 if test "$host_cpu" = ia64; then
7582 # AIX 5 now supports IA64 processor
7583 lt_prog_compiler_static='-Bstatic'
7588 # FIXME: we need at least 68020 code to build shared libraries, but
7589 # adding the `-m68020' flag to GCC prevents building anything better,
7591 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7595 # PIC is the default for these OSes.
7598 mingw* | cygwin* | pw32* | os2*)
7599 # This hack is so that the source file can tell whether it is being
7600 # built for inclusion in a dll (and should export symbols for example).
7601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7602 # (--disable-auto-import) libraries
7603 lt_prog_compiler_pic='-DDLL_EXPORT'
7606 darwin* | rhapsody*)
7607 # PIC is the default on this platform
7608 # Common symbols not allowed in MH_DYLIB files
7609 lt_prog_compiler_pic='-fno-common'
7613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7614 # Instead, we relocate shared libraries at runtime.
7618 # Just because we use GCC doesn't mean we suddenly get shared libraries
7619 # on systems that don't support them.
7620 lt_prog_compiler_can_build_shared=no
7625 if test -d /usr/nec; then
7626 lt_prog_compiler_pic=-Kconform_pic
7631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7638 lt_prog_compiler_pic='-fPIC'
7644 lt_prog_compiler_pic='-fPIC'
7648 # PORTME Check for flag to pass linker flags through the system compiler.
7651 lt_prog_compiler_wl='-Wl,'
7652 if test "$host_cpu" = ia64; then
7653 # AIX 5 now supports IA64 processor
7654 lt_prog_compiler_static='-Bstatic'
7656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7660 # PIC is the default on this platform
7661 # Common symbols not allowed in MH_DYLIB files
7662 case $cc_basename in
7664 lt_prog_compiler_pic='-qnocommon'
7665 lt_prog_compiler_wl='-Wl,'
7670 mingw* | cygwin* | pw32* | os2*)
7671 # This hack is so that the source file can tell whether it is being
7672 # built for inclusion in a dll (and should export symbols for example).
7673 lt_prog_compiler_pic='-DDLL_EXPORT'
7676 hpux9* | hpux10* | hpux11*)
7677 lt_prog_compiler_wl='-Wl,'
7678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7685 lt_prog_compiler_pic='+Z'
7688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7689 lt_prog_compiler_static='${wl}-a ${wl}archive'
7692 irix5* | irix6* | nonstopux*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # PIC (with -KPIC) is the default.
7695 lt_prog_compiler_static='-non_shared'
7699 lt_prog_compiler_pic='-KPIC'
7700 lt_prog_compiler_static='-Bstatic'
7703 linux* | k*bsd*-gnu)
7704 case $cc_basename in
7706 lt_prog_compiler_wl='-Wl,'
7707 lt_prog_compiler_pic='-KPIC'
7708 lt_prog_compiler_static='-static'
7710 pgcc* | pgf77* | pgf90* | pgf95*)
7711 # Portland Group compilers (*not* the Pentium gcc compiler,
7712 # which looks to be a dead project)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_pic='-fpic'
7715 lt_prog_compiler_static='-Bstatic'
7718 lt_prog_compiler_wl='-Wl,'
7719 # All Alpha code is PIC.
7720 lt_prog_compiler_static='-non_shared'
7723 case `$CC -V 2>&1 | sed 5q` in
7726 lt_prog_compiler_pic='-KPIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 lt_prog_compiler_wl='-Wl,'
7731 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 lt_prog_compiler_wl=''
7741 osf3* | osf4* | osf5*)
7742 lt_prog_compiler_wl='-Wl,'
7743 # All OSF/1 code is PIC.
7744 lt_prog_compiler_static='-non_shared'
7748 lt_prog_compiler_static='-non_shared'
7752 lt_prog_compiler_pic='-KPIC'
7753 lt_prog_compiler_static='-Bstatic'
7754 case $cc_basename in
7756 lt_prog_compiler_wl='-Qoption ld ';;
7758 lt_prog_compiler_wl='-Wl,';;
7763 lt_prog_compiler_wl='-Qoption ld '
7764 lt_prog_compiler_pic='-PIC'
7765 lt_prog_compiler_static='-Bstatic'
7768 sysv4 | sysv4.2uw2* | sysv4.3*)
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7775 if test -d /usr/nec ;then
7776 lt_prog_compiler_pic='-Kconform_pic'
7777 lt_prog_compiler_static='-Bstatic'
7781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_can_build_shared=no
7793 lt_prog_compiler_pic='-pic'
7794 lt_prog_compiler_static='-Bstatic'
7798 lt_prog_compiler_can_build_shared=no
7803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7804 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7807 # Check to make sure the PIC flag actually works.
7809 if test -n "$lt_prog_compiler_pic"; then
7811 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7812 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7813 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 lt_cv_prog_compiler_pic_works=no
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7819 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7820 # Insert the option either (1) after the last *FLAGS variable, or
7821 # (2) before a word containing "conftest.", or (3) at the end.
7822 # Note that $ac_compile itself does not contain backslashes and begins
7823 # with a dollar sign (not a hyphen), so the echo should work correctly.
7824 # The option is referenced via a variable to avoid confusing sed.
7825 lt_compile=`echo "$ac_compile" | $SED \
7826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828 -e 's:$: $lt_compiler_flag:'`
7829 (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
7830 (eval "$lt_compile" 2>conftest.err)
7832 cat conftest.err >&5
7833 echo "$as_me:7833: \$? = $ac_status" >&5
7834 if (exit $ac_status) && test -s "$ac_outfile"; then
7835 # The compiler can only warn and ignore the option if not recognized
7836 # So say no if there are warnings other than the usual output.
7837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7840 lt_cv_prog_compiler_pic_works=yes
7846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7847 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7849 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7850 case $lt_prog_compiler_pic in
7852 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7855 lt_prog_compiler_pic=
7856 lt_prog_compiler_can_build_shared=no
7861 # For platforms which do not support PIC, -DPIC is meaningless:
7863 lt_prog_compiler_pic=
7866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7871 # Check to make sure the static flag actually works.
7873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7874 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7875 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7876 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 lt_cv_prog_compiler_static_works=no
7880 save_LDFLAGS="$LDFLAGS"
7881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7884 # The linker can only warn and ignore the option if not recognized
7885 # So say no if there are warnings
7886 if test -s conftest.err; then
7887 # Append any errors to the config.log.
7888 cat conftest.err 1>&5
7889 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7891 if diff conftest.exp conftest.er2 >/dev/null; then
7892 lt_cv_prog_compiler_static_works=yes
7895 lt_cv_prog_compiler_static_works=yes
7899 LDFLAGS="$save_LDFLAGS"
7902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7903 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7905 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7908 lt_prog_compiler_static=
7912 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 lt_cv_prog_compiler_c_o=no
7918 $rm -r conftest 2>/dev/null
7922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7924 lt_compiler_flag="-o out/conftest2.$ac_objext"
7925 # Insert the option either (1) after the last *FLAGS variable, or
7926 # (2) before a word containing "conftest.", or (3) at the end.
7927 # Note that $ac_compile itself does not contain backslashes and begins
7928 # with a dollar sign (not a hyphen), so the echo should work correctly.
7929 lt_compile=`echo "$ac_compile" | $SED \
7930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7932 -e 's:$: $lt_compiler_flag:'`
7933 (eval echo "\"\$as_me:7933: $lt_compile\"" >&5)
7934 (eval "$lt_compile" 2>out/conftest.err)
7936 cat out/conftest.err >&5
7937 echo "$as_me:7937: \$? = $ac_status" >&5
7938 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7940 # The compiler can only warn and ignore the option if not recognized
7941 # So say no if there are warnings
7942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7945 lt_cv_prog_compiler_c_o=yes
7950 # SGI C++ compiler will create directory out/ii_files/ for
7951 # template instantiation
7952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7953 $rm out/* && rmdir out
7959 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7963 hard_links="nottested"
7964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7965 # do not overwrite the value of need_locks provided by the user
7966 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7972 ln conftest.a conftest.b 2>&5 || hard_links=no
7973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7974 { echo "$as_me:$LINENO: result: $hard_links" >&5
7975 echo "${ECHO_T}$hard_links" >&6; }
7976 if test "$hard_links" = no; then
7977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7985 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7986 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7989 allow_undefined_flag=
7990 enable_shared_with_static_runtimes=no
7992 archive_expsym_cmds=
7993 old_archive_From_new_cmds=
7994 old_archive_from_expsyms_cmds=
7995 export_dynamic_flag_spec=
7996 whole_archive_flag_spec=
7997 thread_safe_flag_spec=
7998 hardcode_libdir_flag_spec=
7999 hardcode_libdir_flag_spec_ld=
8000 hardcode_libdir_separator=
8003 hardcode_shlibpath_var=unsupported
8004 link_all_deplibs=unknown
8005 hardcode_automatic=no
8008 always_export_symbols=no
8009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8010 # include_expsyms should be a list of space-separated symbols to be *always*
8011 # included in the symbol list
8013 # exclude_expsyms can be an extended regexp of symbols to exclude
8014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8016 # as well as any symbol that contains `d'.
8017 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8019 # platforms (ab)use it in PIC code, but their linkers get confused if
8020 # the symbol is explicitly referenced. Since portable code cannot
8021 # rely on this symbol name, it's probably fine to never include it in
8022 # preloaded symbol tables.
8023 # Exclude shared library initialization/finalization symbols.
8024 extract_expsyms_cmds=
8025 # Just being paranoid about ensuring that cc_basename is set.
8026 for cc_temp in $compiler""; do
8028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8037 cygwin* | mingw* | pw32*)
8038 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8039 # When not using gcc, we currently assume that we are using
8040 # Microsoft Visual C++.
8041 if test "$GCC" != yes; then
8046 # we just hope/assume this is gcc and not c89 (= MSVC++)
8055 if test "$with_gnu_ld" = yes; then
8056 # If archive_cmds runs LD, not CC, wlarc should be empty
8059 # Set some defaults for GNU ld with shared library support. These
8060 # are reset later if shared libraries are not supported. Putting them
8061 # here allows them to be overridden if necessary.
8062 runpath_var=LD_RUN_PATH
8063 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8064 export_dynamic_flag_spec='${wl}--export-dynamic'
8065 # ancient GNU ld didn't support --whole-archive et. al.
8066 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8067 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8069 whole_archive_flag_spec=
8071 supports_anon_versioning=no
8072 case `$LD -v 2>/dev/null` in
8073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076 *\ 2.11.*) ;; # other 2.11 versions
8077 *) supports_anon_versioning=yes ;;
8080 # See if GNU ld supports shared libraries.
8083 # On AIX/PPC, the GNU linker is very broken
8084 if test "$host_cpu" != ia64; then
8088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8089 *** to be unable to reliably create shared libraries on AIX.
8090 *** Therefore, libtool is disabling shared libraries support. If you
8091 *** really care for shared libraries, you may want to modify your PATH
8092 *** so that a non-GNU linker is found, and then restart.
8099 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)'
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_minus_L=yes
8103 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8104 # that the semantics of dynamic libraries on AmigaOS, at least up
8105 # to version 4, is to share data among multiple programs linked
8106 # with the same dynamic library. Since this doesn't match the
8107 # behavior of shared libraries on other platforms, we can't use
8113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114 allow_undefined_flag=unsupported
8115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8116 # support --undefined. This deserves some investigation. FIXME
8117 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123 cygwin* | mingw* | pw32*)
8124 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8125 # as there is no search path for DLLs.
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 allow_undefined_flag=unsupported
8128 always_export_symbols=no
8129 enable_shared_with_static_runtimes=yes
8130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134 # If the export-symbols file already is a .def file (1st line
8135 # is EXPORTS), use it as is; otherwise, prepend...
8136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8137 cp $export_symbols $output_objdir/$soname.def;
8139 echo EXPORTS > $output_objdir/$soname.def;
8140 cat $export_symbols >> $output_objdir/$soname.def;
8142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8150 hardcode_shlibpath_var=no
8151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152 export_dynamic_flag_spec='${wl}-E'
8153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8154 # Instead, shared libraries are loaded at an image base (0x10000000 by
8155 # default) and relocated if they conflict, which is a slow very memory
8156 # consuming and fragmenting process. To avoid this, we pick a random,
8157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8160 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'
8163 gnu* | linux* | k*bsd*-gnu)
8164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166 case $cc_basename,$host_cpu in
8167 pgcc*) # Portland Group C compiler
8168 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'
8169 tmp_addflag=' $pic_flag'
8171 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8172 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'
8173 tmp_addflag=' $pic_flag -Mnomain' ;;
8174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8175 tmp_addflag=' -i_dynamic' ;;
8176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8177 tmp_addflag=' -i_dynamic -nofor_main' ;;
8178 ifc* | ifort*) # Intel Fortran compiler
8179 tmp_addflag=' -nofor_main' ;;
8181 case `$CC -V 2>&1 | sed 5q` in
8182 *Sun\ C*) # Sun C 5.9
8183 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8184 tmp_sharedflag='-G' ;;
8185 *Sun\ F*) # Sun Fortran 8.3
8186 tmp_sharedflag='-G' ;;
8188 tmp_sharedflag='-shared' ;;
8190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8192 if test $supports_anon_versioning = yes; then
8193 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8195 $echo "local: *; };" >> $output_objdir/$libname.ver~
8196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8204 netbsd* | netbsdelf*-gnu)
8205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8206 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8219 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8220 *** create shared libraries on Solaris systems. Therefore, libtool
8221 *** is disabling shared libraries support. We urge you to upgrade GNU
8222 *** binutils to release 2.9.1 or newer. Another option is to modify
8223 *** your PATH or compiler configuration so that the native linker is
8224 *** used, and then restart.
8227 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8236 case `$LD -v 2>&1` in
8237 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8241 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8242 *** reliably create shared libraries on SCO systems. Therefore, libtool
8243 *** is disabling shared libraries support. We urge you to upgrade GNU
8244 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8245 *** your PATH or compiler configuration so that the native linker is
8246 *** used, and then restart.
8251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8263 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_shlibpath_var=no
8270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8279 if test "$ld_shlibs" = no; then
8281 hardcode_libdir_flag_spec=
8282 export_dynamic_flag_spec=
8283 whole_archive_flag_spec=
8286 # PORTME fill in a description of your system's linker (not GNU ld)
8289 allow_undefined_flag=unsupported
8290 always_export_symbols=yes
8291 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'
8292 # Note: this linker hardcodes the directories in LIBPATH if there
8293 # are no directories specified by -L.
8294 hardcode_minus_L=yes
8295 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8296 # Neither direct hardcoding nor static linking is supported with a
8298 hardcode_direct=unsupported
8303 if test "$host_cpu" = ia64; then
8304 # On IA64, the linker does run time linking by default, so we don't
8305 # have to do anything special.
8306 aix_use_runtimelinking=no
8307 exp_sym_flag='-Bexport'
8310 # If we're using GNU nm, then we don't want the "-C" option.
8311 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8312 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8313 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'
8315 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'
8317 aix_use_runtimelinking=no
8319 # Test if we are trying to use run time linking or normal
8320 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8321 # need to do runtime linking.
8322 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8323 for ld_flag in $LDFLAGS; do
8324 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8325 aix_use_runtimelinking=yes
8332 exp_sym_flag='-bexport'
8333 no_entry_flag='-bnoentry'
8336 # When large executables or shared objects are built, AIX ld can
8337 # have problems creating the table of contents. If linking a library
8338 # or program results in "error TOC overflow" add -mminimal-toc to
8339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8344 hardcode_libdir_separator=':'
8345 link_all_deplibs=yes
8347 if test "$GCC" = yes; then
8348 case $host_os in aix4.[012]|aix4.[012].*)
8349 # We only want to do this on AIX 4.2 and lower, the check
8350 # below for broken collect2 doesn't work under 4.3+
8351 collect2name=`${CC} -print-prog-name=collect2`
8352 if test -f "$collect2name" && \
8353 strings "$collect2name" | grep resolve_lib_name >/dev/null
8355 # We have reworked collect2
8358 # We have old collect2
8359 hardcode_direct=unsupported
8360 # It fails to find uninstalled libraries when the uninstalled
8361 # path is not listed in the libpath. Setting hardcode_minus_L
8362 # to unsupported forces relinking
8363 hardcode_minus_L=yes
8364 hardcode_libdir_flag_spec='-L$libdir'
8365 hardcode_libdir_separator=
8369 shared_flag='-shared'
8370 if test "$aix_use_runtimelinking" = yes; then
8371 shared_flag="$shared_flag "'${wl}-G'
8375 if test "$host_cpu" = ia64; then
8376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8377 # chokes on -Wl,-G. The following line is correct:
8380 if test "$aix_use_runtimelinking" = yes; then
8381 shared_flag='${wl}-G'
8383 shared_flag='${wl}-bM:SRE'
8388 # It seems that -bexpall does not export symbols beginning with
8389 # underscore (_), so it is better to generate a list of symbols to export.
8390 always_export_symbols=yes
8391 if test "$aix_use_runtimelinking" = yes; then
8392 # Warning - without using the other runtime loading flags (-brtl),
8393 # -berok will link without error, but may produce a broken library.
8394 allow_undefined_flag='-berok'
8395 # Determine the default libpath from the value encoded in an empty executable.
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (ac_try="$ac_link"
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_link") 2>conftest.er1
8420 grep -v '^ *+' conftest.er1 >conftest.err
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest$ac_exeext &&
8428 $as_test_x conftest$ac_exeext; then
8430 lt_aix_libpath_sed='
8431 /Import File Strings/,/^$/ {
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438 # Check for a 64-bit object if we didn't find anything.
8439 if test -z "$aix_libpath"; then
8440 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450 conftest$ac_exeext conftest.$ac_ext
8451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8453 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8454 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"
8456 if test "$host_cpu" = ia64; then
8457 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8458 allow_undefined_flag="-z nodefs"
8459 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"
8461 # Determine the default libpath from the value encoded in an empty executable.
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_link") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest$ac_exeext &&
8494 $as_test_x conftest$ac_exeext; then
8496 lt_aix_libpath_sed='
8497 /Import File Strings/,/^$/ {
8503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8504 # Check for a 64-bit object if we didn't find anything.
8505 if test -z "$aix_libpath"; then
8506 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8516 conftest$ac_exeext conftest.$ac_ext
8517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520 # Warning - without using the other run time loading flags,
8521 # -berok will link without error, but may produce a broken library.
8522 no_undefined_flag=' ${wl}-bernotok'
8523 allow_undefined_flag=' ${wl}-berok'
8524 # Exported symbols can be pulled into shared objects from archives
8525 whole_archive_flag_spec='$convenience'
8526 archive_cmds_need_lc=yes
8527 # This is similar to how AIX traditionally builds its shared libraries.
8528 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'
8534 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)'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_minus_L=yes
8537 # see comment about different semantics on the GNU ld section
8542 export_dynamic_flag_spec=-rdynamic
8545 cygwin* | mingw* | pw32*)
8546 # When not using gcc, we currently assume that we are using
8547 # Microsoft Visual C++.
8548 # hardcode_libdir_flag_spec is actually meaningless, as there is
8549 # no search path for DLLs.
8550 hardcode_libdir_flag_spec=' '
8551 allow_undefined_flag=unsupported
8552 # Tell ltmain to make .lib files, not .a files.
8554 # Tell ltmain to make .dll files, not .so files.
8556 # FIXME: Setting linknames here is a bad hack.
8557 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8558 # The linker will automatically build a .lib file if we build a DLL.
8559 old_archive_From_new_cmds='true'
8560 # FIXME: Should let the user specify the lib program.
8561 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8562 fix_srcfile_path='`cygpath -w "$srcfile"`'
8563 enable_shared_with_static_runtimes=yes
8566 darwin* | rhapsody*)
8568 rhapsody* | darwin1.[012])
8569 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8572 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8573 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8575 case ${MACOSX_DEPLOYMENT_TARGET} in
8577 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8580 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8586 archive_cmds_need_lc=no
8588 hardcode_automatic=yes
8589 hardcode_shlibpath_var=unsupported
8590 whole_archive_flag_spec=''
8591 link_all_deplibs=yes
8592 if test "$GCC" = yes ; then
8593 output_verbose_link_cmd='echo'
8594 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8595 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8596 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8597 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8599 case $cc_basename in
8601 output_verbose_link_cmd='echo'
8602 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8603 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8605 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8606 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}'
8616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617 hardcode_libdir_flag_spec='-L$libdir'
8618 hardcode_shlibpath_var=no
8625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8626 # support. Future versions do this automatically, but an explicit c++rt0.o
8627 # does not break anything, and helps significantly (at the cost of a little
8630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8631 hardcode_libdir_flag_spec='-R$libdir'
8633 hardcode_shlibpath_var=no
8636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8640 hardcode_minus_L=yes
8641 hardcode_shlibpath_var=no
8644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8645 freebsd* | dragonfly*)
8646 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8647 hardcode_libdir_flag_spec='-R$libdir'
8649 hardcode_shlibpath_var=no
8653 if test "$GCC" = yes; then
8654 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'
8656 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'
8658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659 hardcode_libdir_separator=:
8662 # hardcode_minus_L: Not really in the search PATH,
8663 # but as the default location of the library.
8664 hardcode_minus_L=yes
8665 export_dynamic_flag_spec='${wl}-E'
8669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8670 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8674 if test "$with_gnu_ld" = no; then
8675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676 hardcode_libdir_separator=:
8679 export_dynamic_flag_spec='${wl}-E'
8681 # hardcode_minus_L: Not really in the search PATH,
8682 # but as the default location of the library.
8683 hardcode_minus_L=yes
8688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713 if test "$with_gnu_ld" = no; then
8714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8715 hardcode_libdir_separator=:
8719 hardcode_libdir_flag_spec_ld='+b $libdir'
8721 hardcode_shlibpath_var=no
8725 export_dynamic_flag_spec='${wl}-E'
8727 # hardcode_minus_L: Not really in the search PATH,
8728 # but as the default location of the library.
8729 hardcode_minus_L=yes
8735 irix5* | irix6* | nonstopux*)
8736 if test "$GCC" = yes; then
8737 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'
8739 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'
8740 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 hardcode_libdir_separator=:
8744 link_all_deplibs=yes
8747 netbsd* | netbsdelf*-gnu)
8748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8751 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8753 hardcode_libdir_flag_spec='-R$libdir'
8755 hardcode_shlibpath_var=no
8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 hardcode_libdir_separator=:
8763 hardcode_shlibpath_var=no
8767 if test -f /usr/libexec/ld.so; then
8769 hardcode_shlibpath_var=no
8770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8772 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8774 export_dynamic_flag_spec='${wl}-E'
8777 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_libdir_flag_spec='-R$libdir'
8782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8793 hardcode_libdir_flag_spec='-L$libdir'
8794 hardcode_minus_L=yes
8795 allow_undefined_flag=unsupported
8796 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'
8797 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8801 if test "$GCC" = yes; then
8802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8803 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'
8805 allow_undefined_flag=' -expect_unresolved \*'
8806 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'
8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809 hardcode_libdir_separator=:
8812 osf4* | osf5*) # as osf3* with the addition of -msym flag
8813 if test "$GCC" = yes; then
8814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8815 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'
8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818 allow_undefined_flag=' -expect_unresolved \*'
8819 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'
8820 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8821 $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'
8823 # Both c and cxx compiler support -rpath directly
8824 hardcode_libdir_flag_spec='-rpath $libdir'
8826 hardcode_libdir_separator=:
8830 no_undefined_flag=' -z text'
8831 if test "$GCC" = yes; then
8833 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8835 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8838 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8842 hardcode_libdir_flag_spec='-R$libdir'
8843 hardcode_shlibpath_var=no
8845 solaris2.[0-5] | solaris2.[0-5].*) ;;
8847 # The compiler driver will combine and reorder linker options,
8848 # but understands `-z linker_flag'. GCC discards it without `$wl',
8849 # but is careful enough not to reorder.
8850 # Supported since Solaris 2.6 (maybe 2.5.1?)
8851 if test "$GCC" = yes; then
8852 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8854 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8858 link_all_deplibs=yes
8862 if test "x$host_vendor" = xsequent; then
8863 # Use $CC to link under sequent, because it throws in some extra .o
8864 # files that make .init and .fini sections work.
8865 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8869 hardcode_libdir_flag_spec='-L$libdir'
8871 hardcode_minus_L=yes
8872 hardcode_shlibpath_var=no
8876 case $host_vendor in
8878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_direct=yes # is this really true???
8882 ## LD is ld it makes a PLAMLIB
8883 ## CC just makes a GrossModule.
8884 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8885 reload_cmds='$CC -r -o $output$reload_objs'
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8893 runpath_var='LD_RUN_PATH'
8894 hardcode_shlibpath_var=no
8898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_shlibpath_var=no
8900 export_dynamic_flag_spec='-Bexport'
8904 if test -d /usr/nec; then
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_shlibpath_var=no
8907 runpath_var=LD_RUN_PATH
8908 hardcode_runpath_var=yes
8913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8914 no_undefined_flag='${wl}-z,text'
8915 archive_cmds_need_lc=no
8916 hardcode_shlibpath_var=no
8917 runpath_var='LD_RUN_PATH'
8919 if test "$GCC" = yes; then
8920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 sysv5* | sco3.2v5* | sco5v6*)
8929 # Note: We can NOT use -z defs as we might desire, because we do not
8930 # link with -lc, and that would cause any symbols used from libc to
8931 # always be unresolved, which means just about no library would
8932 # ever link correctly. If we're not using GNU ld we use -z text
8933 # though, which does catch some bad symbols but isn't as heavy-handed
8935 no_undefined_flag='${wl}-z,text'
8936 allow_undefined_flag='${wl}-z,nodefs'
8937 archive_cmds_need_lc=no
8938 hardcode_shlibpath_var=no
8939 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8940 hardcode_libdir_separator=':'
8941 link_all_deplibs=yes
8942 export_dynamic_flag_spec='${wl}-Bexport'
8943 runpath_var='LD_RUN_PATH'
8945 if test "$GCC" = yes; then
8946 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8950 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_shlibpath_var=no
8966 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8967 echo "${ECHO_T}$ld_shlibs" >&6; }
8968 test "$ld_shlibs" = no && can_build_shared=no
8971 # Do we need to explicitly link libc?
8973 case "x$archive_cmds_need_lc" in
8975 # Assume -lc should be added
8976 archive_cmds_need_lc=yes
8978 if test "$enable_shared" = yes && test "$GCC" = yes; then
8979 case $archive_cmds in
8981 # FIXME: we may have to deal with multi-command sequences.
8984 # Test whether the compiler implicitly links with -lc since on some
8985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8986 # to ld, don't add -lc before -lgcc.
8987 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8988 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993 (eval $ac_compile) 2>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } 2>conftest.err; then
8999 libobjs=conftest.$ac_objext
9001 wl=$lt_prog_compiler_wl
9002 pic_flag=$lt_prog_compiler_pic
9008 lt_save_allow_undefined_flag=$allow_undefined_flag
9009 allow_undefined_flag=
9010 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9011 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }
9016 archive_cmds_need_lc=no
9018 archive_cmds_need_lc=yes
9020 allow_undefined_flag=$lt_save_allow_undefined_flag
9022 cat conftest.err 1>&5
9025 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9026 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9033 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9036 libname_spec='lib$name'
9044 shlibpath_overrides_runpath=unknown
9046 dynamic_linker="$host_os ld.so"
9047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9049 if test "$GCC" = yes; then
9051 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9052 *) lt_awk_arg="/^libraries:/" ;;
9054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9055 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9056 # if the path contains ";" then we assume it to be the separator
9057 # otherwise default to the standard path separator (i.e. ":") - it is
9058 # assumed that no part of a normal pathname contains ";" but that should
9059 # okay in the real world where ";" in dirpaths is itself problematic.
9060 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9062 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9064 # Ok, now we have the path, separated by spaces, we can step through it
9065 # and add multilib dir if necessary.
9066 lt_tmp_lt_search_path_spec=
9067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9068 for lt_sys_path in $lt_search_path_spec; do
9069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9072 test -d "$lt_sys_path" && \
9073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9076 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9077 BEGIN {RS=" "; FS="/|\n";} {
9080 for (lt_i = NF; lt_i > 0; lt_i--) {
9081 if ($lt_i != "" && $lt_i != ".") {
9082 if ($lt_i == "..") {
9085 if (lt_count == 0) {
9086 lt_foo="/" $lt_i lt_foo;
9093 if (lt_foo != "") { lt_freq[lt_foo]++; }
9094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9096 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100 need_lib_prefix=unknown
9101 hardcode_into_libs=no
9103 # when you set need_version to no, make sure it does not cause -set_version
9104 # flags to be left without arguments
9105 need_version=unknown
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9111 shlibpath_var=LIBPATH
9113 # AIX 3 has no versioning support, so we append a major version to the name.
9114 soname_spec='${libname}${release}${shared_ext}$major'
9121 hardcode_into_libs=yes
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 supports IA64
9124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9127 # With GCC up to 2.95.x, collect2 would create an import file
9128 # for dependence libraries. The import file would start with
9129 # the line `#! .'. This would cause the generated library to
9130 # depend on `.', always an invalid library. This was fixed in
9131 # development snapshots of GCC prior to 3.0.
9133 aix4 | aix4.[01] | aix4.[01].*)
9134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9144 # soname into executable. Probably we can add versioning support to
9145 # collect2, so additional links can be useful in future.
9146 if test "$aix_use_runtimelinking" = yes; then
9147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9148 # instead of lib<name>.a to let people know that these are not
9149 # typical AIX shared libraries.
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 # We preserve .a as extension for shared libraries through AIX4.2
9153 # and later when we are not doing run time linking.
9154 library_names_spec='${libname}${release}.a $libname.a'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LIBPATH
9162 library_names_spec='$libname.ixlibrary $libname.a'
9163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9164 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'
9168 library_names_spec='${libname}${shared_ext}'
9169 dynamic_linker="$host_os ld.so"
9170 shlibpath_var=LIBRARY_PATH
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9182 # the default ld.so.conf also contains /usr/contrib/lib and
9183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9184 # libtool to hard-code these into programs
9187 cygwin* | mingw* | pw32*)
9188 version_type=windows
9193 case $GCC,$host_os in
9194 yes,cygwin* | yes,mingw* | yes,pw32*)
9195 library_names_spec='$libname.dll.a'
9196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9197 postinstall_cmds='base_file=`basename \${file}`~
9198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9199 dldir=$destdir/`dirname \$dlpath`~
9200 test -d \$dldir || mkdir -p \$dldir~
9201 $install_prog $dir/$dlname \$dldir/$dlname~
9202 chmod a+x \$dldir/$dlname'
9203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9204 dlpath=$dir/\$dldll~
9206 shlibpath_overrides_runpath=yes
9210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9215 # MinGW DLLs use traditional 'lib' prefix
9216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9219 # It is most probably a Windows format PATH printed by
9220 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9221 # path with ; separators, and with drive letters. We can handle the
9222 # drive letters (cygwin fileutils understands them), so leave them,
9223 # especially as we might pass files found there to a mingw objdump,
9224 # which wouldn't understand a cygwinified path. Ahh.
9225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9231 # pw32 DLLs use 'pw' prefix rather than 'lib'
9232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9241 dynamic_linker='Win32 ld.exe'
9242 # FIXME: first we should search . and the directory the executable is in
9246 darwin* | rhapsody*)
9247 dynamic_linker="$host_os dyld"
9251 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9252 soname_spec='${libname}${release}${major}$shared_ext'
9253 shlibpath_overrides_runpath=yes
9254 shlibpath_var=DYLD_LIBRARY_PATH
9255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9274 freebsd* | dragonfly*)
9275 # DragonFly does not have aout. When/if they implement a new
9276 # versioning mechanism, adjust this.
9277 if test -x /usr/bin/objformat; then
9278 objformat=`/usr/bin/objformat`
9281 freebsd[123]*) objformat=aout ;;
9285 version_type=freebsd-$objformat
9286 case $version_type in
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9297 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9302 freebsd3.[01]* | freebsdelf3.[01]*)
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9308 shlibpath_overrides_runpath=no
9309 hardcode_into_libs=yes
9311 *) # from 4.6 on, and DragonFly
9312 shlibpath_overrides_runpath=yes
9313 hardcode_into_libs=yes
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 hardcode_into_libs=yes
9328 hpux9* | hpux10* | hpux11*)
9329 # Give a soname corresponding to the major version so that dld.sl refuses to
9330 # link against other versions.
9337 hardcode_into_libs=yes
9338 dynamic_linker="$host_os dld.so"
9339 shlibpath_var=LD_LIBRARY_PATH
9340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 if test "X$HPUX_IA64_MODE" = X32; then
9344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9352 hardcode_into_libs=yes
9353 dynamic_linker="$host_os dld.sl"
9354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9363 dynamic_linker="$host_os dld.sl"
9364 shlibpath_var=SHLIB_PATH
9365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9371 postinstall_cmds='chmod 555 $lib'
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 shlibpath_overrides_runpath=no
9383 hardcode_into_libs=yes
9386 irix5* | irix6* | nonstopux*)
9388 nonstopux*) version_type=nonstopux ;;
9390 if test "$lt_cv_prog_gnu_ld" = yes; then
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9401 irix5* | nonstopux*)
9405 case $LD in # libtool.m4 will add one of these switches to LD
9406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9407 libsuff= shlibsuff= libmagic=32-bit;;
9408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9409 libsuff=32 shlibsuff=N32 libmagic=N32;;
9410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9412 *) libsuff= shlibsuff= libmagic=never-match;;
9416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9417 shlibpath_overrides_runpath=no
9418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9420 hardcode_into_libs=yes
9423 # No shared lib support for Linux oldld, aout, or coff.
9424 linux*oldld* | linux*aout* | linux*coff*)
9428 # This must be Linux ELF.
9429 linux* | k*bsd*-gnu)
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=no
9438 # This implies no fast_install, which is unacceptable.
9439 # Some rework will be needed to allow for fast_install
9440 # before this can be enabled.
9441 hardcode_into_libs=yes
9443 # Append ld.so.conf contents to the search path
9444 if test -f /etc/ld.so.conf; then
9445 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9449 # We used to test for /lib/ld.so.1 and disable shared libraries on
9450 # powerpc, because MkLinux only supported shared libraries with the
9451 # GNU dynamic linker. Since this was broken with cross compilers,
9452 # most powerpc-linux boxes support dynamic linking these days and
9453 # people can always --disable-shared, the test was removed, and we
9454 # assume the GNU/Linux dynamic linker is in use.
9455 dynamic_linker='GNU/Linux ld.so'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=no
9466 hardcode_into_libs=yes
9467 dynamic_linker='NetBSD ld.elf_so'
9474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9477 dynamic_linker='NetBSD (a.out) ld.so'
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 dynamic_linker='NetBSD ld.elf_so'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 shlibpath_overrides_runpath=yes
9485 hardcode_into_libs=yes
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 shlibpath_overrides_runpath=yes
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=yes
9507 sys_lib_dlsearch_path_spec="/usr/lib"
9509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9512 *) need_version=no ;;
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9519 openbsd2.[89] | openbsd2.[89].*)
9520 shlibpath_overrides_runpath=no
9523 shlibpath_overrides_runpath=yes
9527 shlibpath_overrides_runpath=yes
9532 libname_spec='$name'
9535 library_names_spec='$libname${shared_ext} $libname.a'
9536 dynamic_linker='OS/2 ld.exe'
9537 shlibpath_var=LIBPATH
9540 osf3* | osf4* | osf5*)
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=yes
9563 hardcode_into_libs=yes
9564 # ldd complains unless libraries are executable
9565 postinstall_cmds='chmod +x $lib'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9574 if test "$with_gnu_ld" = yes; then
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 shlibpath_var=LD_LIBRARY_PATH
9585 case $host_vendor in
9587 shlibpath_overrides_runpath=no
9589 export_dynamic_flag_spec='${wl}-Blargedynsym'
9590 runpath_var=LD_RUN_PATH
9598 shlibpath_overrides_runpath=no
9599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9605 if test -d /usr/nec ;then
9607 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9608 soname_spec='$libname${shared_ext}.$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9614 version_type=freebsd-elf
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 hardcode_into_libs=yes
9621 if test "$with_gnu_ld" = yes; then
9622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9623 shlibpath_overrides_runpath=no
9625 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9626 shlibpath_overrides_runpath=yes
9629 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9633 sys_lib_dlsearch_path_spec='/usr/lib'
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639 soname_spec='${libname}${release}${shared_ext}$major'
9640 shlibpath_var=LD_LIBRARY_PATH
9647 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9648 echo "${ECHO_T}$dynamic_linker" >&6; }
9649 test "$dynamic_linker" = no && can_build_shared=no
9651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9657 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9658 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9664 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9667 if test "$GCC" = yes; then
9668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9674 if test -n "$hardcode_libdir_flag_spec" || \
9675 test -n "$runpath_var" || \
9676 test "X$hardcode_automatic" = "Xyes" ; then
9678 # We can hardcode non-existant directories.
9679 if test "$hardcode_direct" != no &&
9680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9681 # have to relink, otherwise we might link with an installed library
9682 # when we should be linking with a yet-to-be-installed one
9683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9684 test "$hardcode_minus_L" != no; then
9685 # Linking always hardcodes the temporary library directory.
9686 hardcode_action=relink
9688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9689 hardcode_action=immediate
9692 # We cannot hardcode anything, or else we can only hardcode existing
9694 hardcode_action=unsupported
9696 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9697 echo "${ECHO_T}$hardcode_action" >&6; }
9699 if test "$hardcode_action" = relink; then
9700 # Fast installation is not supported
9701 enable_fast_install=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703 test "$enable_shared" = no; then
9704 # Fast installation is not necessary
9705 enable_fast_install=needless
9710 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9715 { echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6; }
9718 # FIXME - insert some real tests, host_os isn't really good enough
9721 if test -n "$STRIP" ; then
9722 striplib="$STRIP -x"
9723 old_striplib="$STRIP -S"
9724 { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9732 { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9738 if test "x$enable_dlopen" != xyes; then
9739 enable_dlopen=unknown
9740 enable_dlopen_self=unknown
9741 enable_dlopen_self_static=unknown
9748 lt_cv_dlopen="load_add_on"
9750 lt_cv_dlopen_self=yes
9754 lt_cv_dlopen="LoadLibrary"
9759 lt_cv_dlopen="dlopen"
9764 # if libdl is installed we need to link against it
9765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS=$LIBS
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext &&
9811 $as_test_x conftest$ac_exeext; then
9812 ac_cv_lib_dl_dlopen=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dl_dlopen=no
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 lt_cv_dlopen_self=yes
9839 { echo "$as_me:$LINENO: checking for shl_load" >&5
9840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9841 if test "${ac_cv_func_shl_load+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852 #define shl_load innocuous_shl_load
9854 /* System header to define __stub macros and hopefully few prototypes,
9855 which can conflict with char shl_load (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9860 # include <limits.h>
9862 # include <assert.h>
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined __stub_shl_load || defined __stub___shl_load
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest$ac_exeext &&
9906 $as_test_x conftest$ac_exeext; then
9907 ac_cv_func_shl_load=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_func_shl_load=no
9915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916 conftest$ac_exeext conftest.$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9919 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9920 if test $ac_cv_func_shl_load = yes; then
9921 lt_cv_dlopen="shl_load"
9923 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9924 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_check_lib_save_LIBS=$LIBS
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 ac_cv_lib_dld_shl_load=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_lib_dld_shl_load=no
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9984 if test $ac_cv_lib_dld_shl_load = yes; then
9985 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9987 { echo "$as_me:$LINENO: checking for dlopen" >&5
9988 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9989 if test "${ac_cv_func_dlopen+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define dlopen innocuous_dlopen
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char dlopen (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10008 # include <limits.h>
10010 # include <assert.h>
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub_dlopen || defined __stub___dlopen
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest$ac_exeext &&
10054 $as_test_x conftest$ac_exeext; then
10055 ac_cv_func_dlopen=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_cv_func_dlopen=no
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064 conftest$ac_exeext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10068 if test $ac_cv_func_dlopen = yes; then
10069 lt_cv_dlopen="dlopen"
10071 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_check_lib_save_LIBS=$LIBS
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest$ac_exeext &&
10117 $as_test_x conftest$ac_exeext; then
10118 ac_cv_lib_dl_dlopen=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_lib_dl_dlopen=no
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10132 if test $ac_cv_lib_dl_dlopen = yes; then
10133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10135 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lsvld $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext &&
10181 $as_test_x conftest$ac_exeext; then
10182 ac_cv_lib_svld_dlopen=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_lib_svld_dlopen=no
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10195 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10196 if test $ac_cv_lib_svld_dlopen = yes; then
10197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10199 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 ac_check_lib_save_LIBS=$LIBS
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10223 return dld_link ();
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_lib_dld_dld_link=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_lib_dld_dld_link=no
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10260 if test $ac_cv_lib_dld_dld_link = yes; then
10261 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10282 if test "x$lt_cv_dlopen" != xno; then
10288 case $lt_cv_dlopen in
10290 save_CPPFLAGS="$CPPFLAGS"
10291 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10293 save_LDFLAGS="$LDFLAGS"
10294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10297 LIBS="$lt_cv_dlopen_libs $LIBS"
10299 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 if test "$cross_compiling" = yes; then :
10305 lt_cv_dlopen_self=cross
10307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308 lt_status=$lt_dlunknown
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10320 # define LT_DLGLOBAL RTLD_GLOBAL
10323 # define LT_DLGLOBAL DL_GLOBAL
10325 # define LT_DLGLOBAL 0
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330 find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # define LT_DLLAZY_OR_NOW DL_NOW
10344 # define LT_DLLAZY_OR_NOW 0
10352 extern "C" void exit (int);
10355 void fnord() { int i=42;}
10358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359 int status = $lt_dlunknown;
10363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365 /* dlclose (self); */
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378 (./conftest; exit; ) >&5 2>/dev/null
10380 case x$lt_status in
10381 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10382 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10383 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10386 # compilation failed
10387 lt_cv_dlopen_self=no
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10397 if test "x$lt_cv_dlopen_self" = xyes; then
10398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10399 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10400 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10401 if test "${lt_cv_dlopen_self_static+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 if test "$cross_compiling" = yes; then :
10405 lt_cv_dlopen_self_static=cross
10407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408 lt_status=$lt_dlunknown
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10420 # define LT_DLGLOBAL RTLD_GLOBAL
10423 # define LT_DLGLOBAL DL_GLOBAL
10425 # define LT_DLGLOBAL 0
10429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430 find out it does not work in some platform. */
10431 #ifndef LT_DLLAZY_OR_NOW
10433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10436 # define LT_DLLAZY_OR_NOW DL_LAZY
10439 # define LT_DLLAZY_OR_NOW RTLD_NOW
10442 # define LT_DLLAZY_OR_NOW DL_NOW
10444 # define LT_DLLAZY_OR_NOW 0
10452 extern "C" void exit (int);
10455 void fnord() { int i=42;}
10458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459 int status = $lt_dlunknown;
10463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 /* dlclose (self); */
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478 (./conftest; exit; ) >&5 2>/dev/null
10480 case x$lt_status in
10481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10486 # compilation failed
10487 lt_cv_dlopen_self_static=no
10494 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10498 CPPFLAGS="$save_CPPFLAGS"
10499 LDFLAGS="$save_LDFLAGS"
10504 case $lt_cv_dlopen_self in
10505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506 *) enable_dlopen_self=unknown ;;
10509 case $lt_cv_dlopen_self_static in
10510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511 *) enable_dlopen_self_static=unknown ;;
10516 # Report which library types will actually be built
10517 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10518 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10519 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10520 echo "${ECHO_T}$can_build_shared" >&6; }
10522 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10523 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10524 test "$can_build_shared" = "no" && enable_shared=no
10526 # On AIX, shared libraries and static libraries use the same namespace, and
10527 # are all built from PIC.
10530 test "$enable_shared" = yes && enable_static=no
10531 if test -n "$RANLIB"; then
10532 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10533 postinstall_cmds='$RANLIB $lib'
10538 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10539 test "$enable_shared" = yes && enable_static=no
10543 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10544 echo "${ECHO_T}$enable_shared" >&6; }
10546 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10547 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10548 # Make sure either enable_shared or enable_static is yes.
10549 test "$enable_shared" = yes || enable_static=yes
10550 { echo "$as_me:$LINENO: result: $enable_static" >&5
10551 echo "${ECHO_T}$enable_static" >&6; }
10553 # The else clause should only fire when bootstrapping the
10554 # libtool distribution, otherwise you forgot to ship ltmain.sh
10555 # with your package, and you will get complaints that there are
10556 # no rules to generate ltmain.sh.
10557 if test -f "$ltmain"; then
10558 # See if we are running on zsh, and set the options which allow our commands through
10559 # without removal of \ escapes.
10560 if test -n "${ZSH_VERSION+set}" ; then
10561 setopt NO_GLOB_SUBST
10563 # Now quote all the things that may contain metacharacters while being
10564 # careful not to overquote the AC_SUBSTed values. We take copies of the
10565 # variables and quote the copies for generation of the libtool script.
10566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10570 deplibs_check_method reload_flag reload_cmds need_locks \
10571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10572 lt_cv_sys_global_symbol_to_c_name_address \
10573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10574 old_postinstall_cmds old_postuninstall_cmds \
10578 lt_prog_compiler_wl \
10579 lt_prog_compiler_pic \
10580 lt_prog_compiler_static \
10581 lt_prog_compiler_no_builtin_flag \
10582 export_dynamic_flag_spec \
10583 thread_safe_flag_spec \
10584 whole_archive_flag_spec \
10585 enable_shared_with_static_runtimes \
10587 old_archive_from_new_cmds \
10592 compiler_lib_search_path \
10593 compiler_lib_search_dirs \
10595 archive_expsym_cmds \
10597 postuninstall_cmds \
10598 old_archive_from_expsyms_cmds \
10599 allow_undefined_flag \
10600 no_undefined_flag \
10601 export_symbols_cmds \
10602 hardcode_libdir_flag_spec \
10603 hardcode_libdir_flag_spec_ld \
10604 hardcode_libdir_separator \
10605 hardcode_automatic \
10607 module_expsym_cmds \
10608 lt_cv_prog_compiler_c_o \
10611 include_expsyms; do
10614 old_archive_cmds | \
10615 old_archive_from_new_cmds | \
10617 archive_expsym_cmds | \
10619 module_expsym_cmds | \
10620 old_archive_from_expsyms_cmds | \
10621 export_symbols_cmds | \
10622 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10623 postinstall_cmds | postuninstall_cmds | \
10624 old_postinstall_cmds | old_postuninstall_cmds | \
10625 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10626 # Double-quote double-evaled strings.
10627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10636 *'\$0 --fallback-echo"')
10637 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10641 cfgfile="${ofile}T"
10642 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10644 { echo "$as_me:$LINENO: creating $ofile" >&5
10645 echo "$as_me: creating $ofile" >&6;}
10647 cat <<__EOF__ >> "$cfgfile"
10650 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10651 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10652 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10654 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10655 # Free Software Foundation, Inc.
10657 # This file is part of GNU Libtool:
10658 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10660 # This program is free software; you can redistribute it and/or modify
10661 # it under the terms of the GNU General Public License as published by
10662 # the Free Software Foundation; either version 2 of the License, or
10663 # (at your option) any later version.
10665 # This program is distributed in the hope that it will be useful, but
10666 # WITHOUT ANY WARRANTY; without even the implied warranty of
10667 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10668 # General Public License for more details.
10670 # You should have received a copy of the GNU General Public License
10671 # along with this program; if not, write to the Free Software
10672 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10674 # As a special exception to the GNU General Public License, if you
10675 # distribute this file as part of a program that contains a
10676 # configuration script generated by Autoconf, you may include it under
10677 # the same distribution terms that you use for the rest of that program.
10679 # A sed program that does not truncate output.
10682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10683 Xsed="$SED -e 1s/^X//"
10685 # The HP-UX ksh and POSIX shell print the target directory to stdout
10686 # if CDPATH is set.
10687 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10689 # The names of the tagged configurations supported by this script.
10692 # ### BEGIN LIBTOOL CONFIG
10694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10696 # Shell to use when invoking shell scripts.
10699 # Whether or not to build shared libraries.
10700 build_libtool_libs=$enable_shared
10702 # Whether or not to build static libraries.
10703 build_old_libs=$enable_static
10705 # Whether or not to add -lc for building shared libraries.
10706 build_libtool_need_lc=$archive_cmds_need_lc
10708 # Whether or not to disallow shared libs when runtime libs are static
10709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10711 # Whether or not to optimize for fast installation.
10712 fast_install=$enable_fast_install
10715 host_alias=$host_alias
10719 # The build system.
10720 build_alias=$build_alias
10724 # An echo program that does not interpret backslashes.
10729 AR_FLAGS=$lt_AR_FLAGS
10734 # LTCC compiler flags.
10735 LTCFLAGS=$lt_LTCFLAGS
10737 # A language-specific compiler.
10740 # Is the compiler the GNU C compiler?
10746 # The linker used to build libraries.
10749 # Whether we need hard or soft links.
10752 # A BSD-compatible nm program.
10755 # A symbol stripping program
10758 # Used to examine libraries when file_magic_cmd begins "file"
10759 MAGIC_CMD=$MAGIC_CMD
10761 # Used on cygwin: DLL creation program.
10764 # Used on cygwin: object dumper.
10767 # Used on cygwin: assembler.
10770 # The name of the directory that contains temporary libtool files.
10773 # How to create reloadable object files.
10774 reload_flag=$lt_reload_flag
10775 reload_cmds=$lt_reload_cmds
10777 # How to pass a linker flag through the compiler.
10778 wl=$lt_lt_prog_compiler_wl
10780 # Object file suffix (normally "o").
10781 objext="$ac_objext"
10783 # Old archive suffix (normally "a").
10786 # Shared library suffix (normally ".so").
10787 shrext_cmds='$shrext_cmds'
10789 # Executable file suffix (normally "").
10792 # Additional compiler flags for building library objects.
10793 pic_flag=$lt_lt_prog_compiler_pic
10796 # What is the maximum length of a command?
10797 max_cmd_len=$lt_cv_sys_max_cmd_len
10799 # Does compiler simultaneously support -c and -o options?
10800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10802 # Must we lock files when doing compilation?
10803 need_locks=$lt_need_locks
10805 # Do we need the lib prefix for modules?
10806 need_lib_prefix=$need_lib_prefix
10808 # Do we need a version for libraries?
10809 need_version=$need_version
10811 # Whether dlopen is supported.
10812 dlopen_support=$enable_dlopen
10814 # Whether dlopen of programs is supported.
10815 dlopen_self=$enable_dlopen_self
10817 # Whether dlopen of statically linked programs is supported.
10818 dlopen_self_static=$enable_dlopen_self_static
10820 # Compiler flag to prevent dynamic linking.
10821 link_static_flag=$lt_lt_prog_compiler_static
10823 # Compiler flag to turn off builtin functions.
10824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10826 # Compiler flag to allow reflexive dlopens.
10827 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10829 # Compiler flag to generate shared objects directly from archives.
10830 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10832 # Compiler flag to generate thread-safe objects.
10833 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10835 # Library versioning type.
10836 version_type=$version_type
10838 # Format of library name prefix.
10839 libname_spec=$lt_libname_spec
10841 # List of archive names. First name is the real one, the rest are links.
10842 # The last name is the one that the linker finds with -lNAME.
10843 library_names_spec=$lt_library_names_spec
10845 # The coded name of the library, if different from the real name.
10846 soname_spec=$lt_soname_spec
10848 # Commands used to build and install an old-style archive.
10850 old_archive_cmds=$lt_old_archive_cmds
10851 old_postinstall_cmds=$lt_old_postinstall_cmds
10852 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10854 # Create an old-style archive from a shared archive.
10855 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10857 # Create a temporary old-style archive to link instead of a shared archive.
10858 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10860 # Commands used to build and install a shared archive.
10861 archive_cmds=$lt_archive_cmds
10862 archive_expsym_cmds=$lt_archive_expsym_cmds
10863 postinstall_cmds=$lt_postinstall_cmds
10864 postuninstall_cmds=$lt_postuninstall_cmds
10866 # Commands used to build a loadable module (assumed same as above if empty)
10867 module_cmds=$lt_module_cmds
10868 module_expsym_cmds=$lt_module_expsym_cmds
10870 # Commands to strip libraries.
10871 old_striplib=$lt_old_striplib
10872 striplib=$lt_striplib
10874 # Dependencies to place before the objects being linked to create a
10876 predep_objects=$lt_predep_objects
10878 # Dependencies to place after the objects being linked to create a
10880 postdep_objects=$lt_postdep_objects
10882 # Dependencies to place before the objects being linked to create a
10884 predeps=$lt_predeps
10886 # Dependencies to place after the objects being linked to create a
10888 postdeps=$lt_postdeps
10890 # The directories searched by this compiler when creating a shared
10892 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10894 # The library search path used internally by the compiler when linking
10895 # a shared library.
10896 compiler_lib_search_path=$lt_compiler_lib_search_path
10898 # Method to check whether dependent libraries are shared objects.
10899 deplibs_check_method=$lt_deplibs_check_method
10901 # Command to use when deplibs_check_method == file_magic.
10902 file_magic_cmd=$lt_file_magic_cmd
10904 # Flag that allows shared libraries with undefined symbols to be built.
10905 allow_undefined_flag=$lt_allow_undefined_flag
10907 # Flag that forces no undefined symbols.
10908 no_undefined_flag=$lt_no_undefined_flag
10910 # Commands used to finish a libtool library installation in a directory.
10911 finish_cmds=$lt_finish_cmds
10913 # Same as above, but a single script fragment to be evaled but not shown.
10914 finish_eval=$lt_finish_eval
10916 # Take the output of nm and produce a listing of raw symbols and C names.
10917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10919 # Transform the output of nm in a proper C declaration
10920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10922 # Transform the output of nm in a C name address pair
10923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10925 # This is the shared library runtime path variable.
10926 runpath_var=$runpath_var
10928 # This is the shared library path variable.
10929 shlibpath_var=$shlibpath_var
10931 # Is shlibpath searched before the hard-coded library search path?
10932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10934 # How to hardcode a shared library path into an executable.
10935 hardcode_action=$hardcode_action
10937 # Whether we should hardcode library paths into libraries.
10938 hardcode_into_libs=$hardcode_into_libs
10940 # Flag to hardcode \$libdir into a binary during linking.
10941 # This must work even if \$libdir does not exist.
10942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10944 # If ld is used when linking, flag to hardcode \$libdir into
10945 # a binary during linking. This must work even if \$libdir does
10947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10949 # Whether we need a single -rpath flag with a separated argument.
10950 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10953 # resulting binary.
10954 hardcode_direct=$hardcode_direct
10956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10957 # resulting binary.
10958 hardcode_minus_L=$hardcode_minus_L
10960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10961 # the resulting binary.
10962 hardcode_shlibpath_var=$hardcode_shlibpath_var
10964 # Set to yes if building a shared library automatically hardcodes DIR into the library
10965 # and all subsequent libraries and executables linked against it.
10966 hardcode_automatic=$hardcode_automatic
10968 # Variables whose values should be saved in libtool wrapper scripts and
10969 # restored at relink time.
10970 variables_saved_for_relink="$variables_saved_for_relink"
10972 # Whether libtool must link a program against all its dependency libraries.
10973 link_all_deplibs=$link_all_deplibs
10975 # Compile-time system search path for libraries
10976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10978 # Run-time system search path for libraries
10979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10981 # Fix the shell variable \$srcfile for the compiler.
10982 fix_srcfile_path=$lt_fix_srcfile_path
10984 # Set to yes if exported symbols are required.
10985 always_export_symbols=$always_export_symbols
10987 # The commands to list exported symbols.
10988 export_symbols_cmds=$lt_export_symbols_cmds
10990 # The commands to extract the exported symbol list from a shared archive.
10991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10993 # Symbols that should not be listed in the preloaded symbols.
10994 exclude_expsyms=$lt_exclude_expsyms
10996 # Symbols that must always be exported.
10997 include_expsyms=$lt_include_expsyms
10999 # ### END LIBTOOL CONFIG
11006 cat <<\EOF >> "$cfgfile"
11008 # AIX sometimes has problems with the GCC collect2 program. For some
11009 # reason, if we set the COLLECT_NAMES environment variable, the problems
11010 # vanish in a puff of smoke.
11011 if test "X${COLLECT_NAMES+set}" != Xset; then
11013 export COLLECT_NAMES
11019 # We use sed instead of cat because bash on DJGPP gets confused if
11020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11021 # text mode, it properly converts lines to CR/LF. This bash problem
11022 # is reportedly fixed, but why not run on old versions too?
11023 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11025 mv -f "$cfgfile" "$ofile" || \
11026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11030 # If there is no Makefile yet, we rely on a make rule to execute
11031 # `config.status --recheck' to rerun these tests and create the
11032 # libtool script then.
11033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11034 if test -f "$ltmain_in"; then
11035 test -f Makefile && make "$ltmain"
11041 ac_cpp='$CPP $CPPFLAGS'
11042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11049 # Check whether --with-tags was given.
11050 if test "${with_tags+set}" = set; then
11051 withval=$with_tags; tagnames="$withval"
11055 if test -f "$ltmain" && test -n "$tagnames"; then
11056 if test ! -f "${ofile}"; then
11057 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11058 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11061 if test -z "$LTCC"; then
11062 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11063 if test -z "$LTCC"; then
11064 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11065 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11068 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11071 if test -z "$LTCFLAGS"; then
11072 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11075 # Extract list of available tagged configurations in $ofile.
11076 # Note that this assumes the entire list is on one line.
11077 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11080 for tagname in $tagnames; do
11082 # Check whether tagname contains only valid characters
11083 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11085 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11086 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11087 { (exit 1); exit 1; }; }
11091 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11093 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11094 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11095 { (exit 1); exit 1; }; }
11098 # Update the list of available tags.
11099 if test -n "$tagname"; then
11100 echo appending configuration tag \"$tagname\" to $ofile
11104 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11105 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11106 (test "X$CXX" != "Xg++"))) ; then
11108 ac_cpp='$CXXCPP $CPPFLAGS'
11109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11116 archive_cmds_need_lc_CXX=no
11117 allow_undefined_flag_CXX=
11118 always_export_symbols_CXX=no
11119 archive_expsym_cmds_CXX=
11120 export_dynamic_flag_spec_CXX=
11121 hardcode_direct_CXX=no
11122 hardcode_libdir_flag_spec_CXX=
11123 hardcode_libdir_flag_spec_ld_CXX=
11124 hardcode_libdir_separator_CXX=
11125 hardcode_minus_L_CXX=no
11126 hardcode_shlibpath_var_CXX=unsupported
11127 hardcode_automatic_CXX=no
11129 module_expsym_cmds_CXX=
11130 link_all_deplibs_CXX=unknown
11131 old_archive_cmds_CXX=$old_archive_cmds
11132 no_undefined_flag_CXX=
11133 whole_archive_flag_spec_CXX=
11134 enable_shared_with_static_runtimes_CXX=no
11136 # Dependencies to place before and after the object being linked:
11137 predep_objects_CXX=
11138 postdep_objects_CXX=
11141 compiler_lib_search_path_CXX=
11142 compiler_lib_search_dirs_CXX=
11144 # Source file extension for C++ test sources.
11147 # Object file extension for compiled C++ test sources.
11151 # Code to be used in simple compile tests
11152 lt_simple_compile_test_code="int some_variable = 0;"
11154 # Code to be used in simple link tests
11155 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11159 # If no C compiler was specified, use CC.
11162 # If no C compiler flags were specified, use CFLAGS.
11163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11165 # Allow CC to be a program name with arguments.
11169 # save warnings/boilerplate of simple test code
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_compiler_boilerplate=`cat conftest.err`
11176 ac_outfile=conftest.$ac_objext
11177 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11179 _lt_linker_boilerplate=`cat conftest.err`
11183 # Allow CC to be a program name with arguments.
11188 lt_save_with_gnu_ld=$with_gnu_ld
11189 lt_save_path_LD=$lt_cv_path_LD
11190 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11191 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11193 $as_unset lt_cv_prog_gnu_ld
11195 if test -n "${lt_cv_path_LDCXX+set}"; then
11196 lt_cv_path_LD=$lt_cv_path_LDCXX
11198 $as_unset lt_cv_path_LD
11200 test -z "${LDCXX+set}" || LD=$LDCXX
11204 for cc_temp in $compiler""; do
11206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11215 # We don't want -fno-exception wen compiling C++ code, so set the
11216 # no_builtin_flag separately
11217 if test "$GXX" = yes; then
11218 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11220 lt_prog_compiler_no_builtin_flag_CXX=
11223 if test "$GXX" = yes; then
11224 # Set up default GNU C++ configuration
11227 # Check whether --with-gnu-ld was given.
11228 if test "${with_gnu_ld+set}" = set; then
11229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11235 if test "$GCC" = yes; then
11236 # Check if gcc -print-prog-name=ld gives a path.
11237 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11238 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11241 # gcc leaves a trailing carriage return which upsets mingw
11242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11247 # Accept absolute paths.
11249 re_direlt='/[^/][^/]*/\.\./'
11250 # Canonicalize the pathname of ld
11251 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11252 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11253 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11255 test -z "$LD" && LD="$ac_prog"
11258 # If it fails, then pretend we aren't using GCC.
11262 # If it is relative, then search for the first ld in PATH.
11263 with_gnu_ld=unknown
11266 elif test "$with_gnu_ld" = yes; then
11267 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11268 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11270 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11271 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11273 if test "${lt_cv_path_LD+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 if test -z "$LD"; then
11277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11278 for ac_dir in $PATH; do
11280 test -z "$ac_dir" && ac_dir=.
11281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11282 lt_cv_path_LD="$ac_dir/$ac_prog"
11283 # Check to see if the program is GNU ld. I'd rather use --version,
11284 # but apparently some variants of GNU ld only accept -v.
11285 # Break only if it was the GNU/non-GNU ld that we prefer.
11286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11287 *GNU* | *'with BFD'*)
11288 test "$with_gnu_ld" != no && break
11291 test "$with_gnu_ld" != yes && break
11298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11302 LD="$lt_cv_path_LD"
11303 if test -n "$LD"; then
11304 { echo "$as_me:$LINENO: result: $LD" >&5
11305 echo "${ECHO_T}$LD" >&6; }
11307 { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11310 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11311 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11312 { (exit 1); exit 1; }; }
11313 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11314 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11315 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11319 case `$LD -v 2>&1 </dev/null` in
11320 *GNU* | *'with BFD'*)
11321 lt_cv_prog_gnu_ld=yes
11324 lt_cv_prog_gnu_ld=no
11328 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11329 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11330 with_gnu_ld=$lt_cv_prog_gnu_ld
11334 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11335 # archiving commands below assume that GNU ld is being used.
11336 if test "$with_gnu_ld" = yes; then
11337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11338 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'
11340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11343 # If archive_cmds runs LD, not CC, wlarc should be empty
11344 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11345 # investigate it a little bit more. (MM)
11348 # ancient GNU ld didn't support --whole-archive et. al.
11349 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11350 grep 'no-whole-archive' > /dev/null; then
11351 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11353 whole_archive_flag_spec_CXX=
11359 # A generic and very simple default shared library creation
11360 # command for GNU C++ for the case where it uses the native
11361 # linker, instead of GNU ld. If possible, this setting should
11362 # overridden to take advantage of the native linker features on
11363 # the platform it is being used on.
11364 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11367 # Commands to make compiler produce verbose output that lists
11368 # what "hidden" libraries, object files and flags are used when
11369 # linking a shared library.
11370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11378 # PORTME: fill in a description of your system's C++ link characteristics
11379 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11380 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11384 # FIXME: insert proper C++ library support
11388 if test "$host_cpu" = ia64; then
11389 # On IA64, the linker does run time linking by default, so we don't
11390 # have to do anything special.
11391 aix_use_runtimelinking=no
11392 exp_sym_flag='-Bexport'
11395 aix_use_runtimelinking=no
11397 # Test if we are trying to use run time linking or normal
11398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11399 # need to do runtime linking.
11400 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11401 for ld_flag in $LDFLAGS; do
11404 aix_use_runtimelinking=yes
11412 exp_sym_flag='-bexport'
11413 no_entry_flag='-bnoentry'
11416 # When large executables or shared objects are built, AIX ld can
11417 # have problems creating the table of contents. If linking a library
11418 # or program results in "error TOC overflow" add -mminimal-toc to
11419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11422 archive_cmds_CXX=''
11423 hardcode_direct_CXX=yes
11424 hardcode_libdir_separator_CXX=':'
11425 link_all_deplibs_CXX=yes
11427 if test "$GXX" = yes; then
11428 case $host_os in aix4.[012]|aix4.[012].*)
11429 # We only want to do this on AIX 4.2 and lower, the check
11430 # below for broken collect2 doesn't work under 4.3+
11431 collect2name=`${CC} -print-prog-name=collect2`
11432 if test -f "$collect2name" && \
11433 strings "$collect2name" | grep resolve_lib_name >/dev/null
11435 # We have reworked collect2
11438 # We have old collect2
11439 hardcode_direct_CXX=unsupported
11440 # It fails to find uninstalled libraries when the uninstalled
11441 # path is not listed in the libpath. Setting hardcode_minus_L
11442 # to unsupported forces relinking
11443 hardcode_minus_L_CXX=yes
11444 hardcode_libdir_flag_spec_CXX='-L$libdir'
11445 hardcode_libdir_separator_CXX=
11449 shared_flag='-shared'
11450 if test "$aix_use_runtimelinking" = yes; then
11451 shared_flag="$shared_flag "'${wl}-G'
11455 if test "$host_cpu" = ia64; then
11456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11457 # chokes on -Wl,-G. The following line is correct:
11460 if test "$aix_use_runtimelinking" = yes; then
11461 shared_flag='${wl}-G'
11463 shared_flag='${wl}-bM:SRE'
11468 # It seems that -bexpall does not export symbols beginning with
11469 # underscore (_), so it is better to generate a list of symbols to export.
11470 always_export_symbols_CXX=yes
11471 if test "$aix_use_runtimelinking" = yes; then
11472 # Warning - without using the other runtime loading flags (-brtl),
11473 # -berok will link without error, but may produce a broken library.
11474 allow_undefined_flag_CXX='-berok'
11475 # Determine the default libpath from the value encoded in an empty executable.
11476 cat >conftest.$ac_ext <<_ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11491 rm -f conftest.$ac_objext conftest$ac_exeext
11492 if { (ac_try="$ac_link"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_link") 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } && {
11505 test -z "$ac_cxx_werror_flag" ||
11506 test ! -s conftest.err
11507 } && test -s conftest$ac_exeext &&
11508 $as_test_x conftest$ac_exeext; then
11510 lt_aix_libpath_sed='
11511 /Import File Strings/,/^$/ {
11517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11518 # Check for a 64-bit object if we didn't find anything.
11519 if test -z "$aix_libpath"; then
11520 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11530 conftest$ac_exeext conftest.$ac_ext
11531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11533 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11535 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"
11537 if test "$host_cpu" = ia64; then
11538 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11539 allow_undefined_flag_CXX="-z nodefs"
11540 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"
11542 # Determine the default libpath from the value encoded in an empty executable.
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (ac_try="$ac_link"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_link") 2>conftest.er1
11567 grep -v '^ *+' conftest.er1 >conftest.err
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } && {
11572 test -z "$ac_cxx_werror_flag" ||
11573 test ! -s conftest.err
11574 } && test -s conftest$ac_exeext &&
11575 $as_test_x conftest$ac_exeext; then
11577 lt_aix_libpath_sed='
11578 /Import File Strings/,/^$/ {
11584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585 # Check for a 64-bit object if we didn't find anything.
11586 if test -z "$aix_libpath"; then
11587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11597 conftest$ac_exeext conftest.$ac_ext
11598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11600 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11601 # Warning - without using the other run time loading flags,
11602 # -berok will link without error, but may produce a broken library.
11603 no_undefined_flag_CXX=' ${wl}-bernotok'
11604 allow_undefined_flag_CXX=' ${wl}-berok'
11605 # Exported symbols can be pulled into shared objects from archives
11606 whole_archive_flag_spec_CXX='$convenience'
11607 archive_cmds_need_lc_CXX=yes
11608 # This is similar to how AIX traditionally builds its shared libraries.
11609 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'
11615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11616 allow_undefined_flag_CXX=unsupported
11617 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11618 # support --undefined. This deserves some investigation. FIXME
11619 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11626 case $cc_basename in
11628 # FIXME: insert proper C++ library support
11634 cygwin* | mingw* | pw32*)
11635 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11636 # as there is no search path for DLLs.
11637 hardcode_libdir_flag_spec_CXX='-L$libdir'
11638 allow_undefined_flag_CXX=unsupported
11639 always_export_symbols_CXX=no
11640 enable_shared_with_static_runtimes_CXX=yes
11642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11643 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'
11644 # If the export-symbols file already is a .def file (1st line
11645 # is EXPORTS), use it as is; otherwise, prepend...
11646 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11647 cp $export_symbols $output_objdir/$soname.def;
11649 echo EXPORTS > $output_objdir/$soname.def;
11650 cat $export_symbols >> $output_objdir/$soname.def;
11652 $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'
11657 darwin* | rhapsody*)
11658 archive_cmds_need_lc_CXX=no
11659 hardcode_direct_CXX=no
11660 hardcode_automatic_CXX=yes
11661 hardcode_shlibpath_var_CXX=unsupported
11662 whole_archive_flag_spec_CXX=''
11663 link_all_deplibs_CXX=yes
11664 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11665 if test "$GXX" = yes ; then
11666 output_verbose_link_cmd='echo'
11667 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11668 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11669 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11670 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11671 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11672 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${_lt_dsymutil}"
11673 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11676 case $cc_basename in
11678 output_verbose_link_cmd='echo'
11679 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11680 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11682 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11683 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}'
11693 case $cc_basename in
11695 # FIXME: insert proper C++ library support
11699 # Green Hills C++ Compiler
11700 # FIXME: insert proper C++ library support
11704 # FIXME: insert proper C++ library support
11710 # C++ shared libraries reported to be fairly broken before switch to ELF
11714 archive_cmds_need_lc_CXX=no
11716 freebsd* | dragonfly*)
11717 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11725 hardcode_libdir_separator_CXX=:
11726 export_dynamic_flag_spec_CXX='${wl}-E'
11727 hardcode_direct_CXX=yes
11728 hardcode_minus_L_CXX=yes # Not in the search PATH,
11729 # but as the default
11730 # location of the library.
11732 case $cc_basename in
11734 # FIXME: insert proper C++ library support
11738 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'
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11743 # There doesn't appear to be a way to prevent this compiler from
11744 # explicitly linking system object files so we need to strip them
11745 # from the output so that they don't get included in the library
11747 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'
11750 if test "$GXX" = yes; then
11751 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'
11753 # FIXME: insert proper C++ library support
11760 if test $with_gnu_ld = no; then
11761 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11762 hardcode_libdir_separator_CXX=:
11767 export_dynamic_flag_spec_CXX='${wl}-E'
11773 hardcode_direct_CXX=no
11774 hardcode_shlibpath_var_CXX=no
11777 hardcode_direct_CXX=yes
11778 hardcode_minus_L_CXX=yes # Not in the search PATH,
11779 # but as the default
11780 # location of the library.
11784 case $cc_basename in
11786 # FIXME: insert proper C++ library support
11792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11801 # Commands to make compiler produce verbose output that lists
11802 # what "hidden" libraries, object files and flags are used when
11803 # linking a shared library.
11805 # There doesn't appear to be a way to prevent this compiler from
11806 # explicitly linking system object files so we need to strip them
11807 # from the output so that they don't get included in the library
11809 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'
11812 if test "$GXX" = yes; then
11813 if test $with_gnu_ld = no; then
11816 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11822 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'
11827 # FIXME: insert proper C++ library support
11834 hardcode_direct_CXX=no
11835 hardcode_shlibpath_var_CXX=no
11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11837 export_dynamic_flag_spec_CXX='${wl}-E'
11838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11839 # Instead, shared libraries are loaded at an image base (0x10000000 by
11840 # default) and relocated if they conflict, which is a slow very memory
11841 # consuming and fragmenting process. To avoid this, we pick a random,
11842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11844 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'
11845 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'
11848 case $cc_basename in
11851 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'
11853 # Archives containing C++ object files must be created using
11854 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11855 # necessary to make sure instantiated templates are included
11857 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11860 if test "$GXX" = yes; then
11861 if test "$with_gnu_ld" = no; then
11862 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'
11864 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'
11867 link_all_deplibs_CXX=yes
11870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11871 hardcode_libdir_separator_CXX=:
11873 linux* | k*bsd*-gnu)
11874 case $cc_basename in
11876 # Kuck and Associates, Inc. (KAI) C++ Compiler
11878 # KCC will only create a shared library if the output file
11879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11880 # to its proper name (with version) after linking.
11881 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'
11882 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'
11883 # Commands to make compiler produce verbose output that lists
11884 # what "hidden" libraries, object files and flags are used when
11885 # linking a shared library.
11887 # There doesn't appear to be a way to prevent this compiler from
11888 # explicitly linking system object files so we need to strip them
11889 # from the output so that they don't get included in the library
11891 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'
11893 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11896 # Archives containing C++ object files must be created using
11897 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11898 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11903 # version 8.0 and above of icpc choke on multiply defined symbols
11904 # if we add $predep_objects and $postdep_objects, however 7.1 and
11905 # earlier do not add the objects themselves.
11906 case `$CC -V 2>&1` in
11908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909 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'
11911 *) # Version 8.0 or newer
11914 ia64*) tmp_idyn=' -i_dynamic';;
11916 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11917 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'
11920 archive_cmds_need_lc_CXX=no
11921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11923 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11926 # Portland Group C++ compiler
11927 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11928 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'
11930 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11932 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'
11936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937 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'
11939 runpath_var=LD_RUN_PATH
11940 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11941 hardcode_libdir_separator_CXX=:
11943 # Commands to make compiler produce verbose output that lists
11944 # what "hidden" libraries, object files and flags are used when
11945 # linking a shared library.
11947 # There doesn't appear to be a way to prevent this compiler from
11948 # explicitly linking system object files so we need to strip them
11949 # from the output so that they don't get included in the library
11951 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'
11954 case `$CC -V 2>&1 | sed 5q` in
11957 no_undefined_flag_CXX=' -zdefs'
11958 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11960 hardcode_libdir_flag_spec_CXX='-R$libdir'
11961 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11963 # Not sure whether something based on
11964 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11966 output_verbose_link_cmd='echo'
11968 # Archives containing C++ object files must be created using
11969 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11970 # necessary to make sure instantiated templates are included
11972 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11979 # FIXME: insert proper C++ library support
11983 # FIXME: insert proper C++ library support
11987 case $cc_basename in
11989 # FIXME: insert proper C++ library support
11993 # FIXME: insert proper C++ library support
11998 netbsd* | netbsdelf*-gnu)
11999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12000 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12002 hardcode_libdir_flag_spec_CXX='-R$libdir'
12003 hardcode_direct_CXX=yes
12004 hardcode_shlibpath_var_CXX=no
12006 # Workaround some broken pre-1.5 toolchains
12007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12010 # C++ shared libraries are fairly broken
12014 if test -f /usr/libexec/ld.so; then
12015 hardcode_direct_CXX=yes
12016 hardcode_shlibpath_var_CXX=no
12017 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12020 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12021 export_dynamic_flag_spec_CXX='${wl}-E'
12022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12024 output_verbose_link_cmd='echo'
12030 case $cc_basename in
12032 # Kuck and Associates, Inc. (KAI) C++ Compiler
12034 # KCC will only create a shared library if the output file
12035 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12036 # to its proper name (with version) after linking.
12037 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'
12039 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12040 hardcode_libdir_separator_CXX=:
12042 # Archives containing C++ object files must be created using
12043 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12044 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12048 # Rational C++ 2.4.1
12049 # FIXME: insert proper C++ library support
12053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12054 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'
12056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12057 hardcode_libdir_separator_CXX=:
12059 # Commands to make compiler produce verbose output that lists
12060 # what "hidden" libraries, object files and flags are used when
12061 # linking a shared library.
12063 # There doesn't appear to be a way to prevent this compiler from
12064 # explicitly linking system object files so we need to strip them
12065 # from the output so that they don't get included in the library
12067 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'
12070 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12071 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12072 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'
12074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12075 hardcode_libdir_separator_CXX=:
12077 # Commands to make compiler produce verbose output that lists
12078 # what "hidden" libraries, object files and flags are used when
12079 # linking a shared library.
12080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12083 # FIXME: insert proper C++ library support
12090 case $cc_basename in
12092 # Kuck and Associates, Inc. (KAI) C++ Compiler
12094 # KCC will only create a shared library if the output file
12095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12096 # to its proper name (with version) after linking.
12097 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'
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12100 hardcode_libdir_separator_CXX=:
12102 # Archives containing C++ object files must be created using
12103 # the KAI C++ compiler.
12104 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12107 # Rational C++ 2.4.1
12108 # FIXME: insert proper C++ library support
12112 allow_undefined_flag_CXX=' -expect_unresolved \*'
12113 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'
12114 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12115 echo "-hidden">> $lib.exp~
12116 $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~
12119 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12120 hardcode_libdir_separator_CXX=:
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12126 # There doesn't appear to be a way to prevent this compiler from
12127 # explicitly linking system object files so we need to strip them
12128 # from the output so that they don't get included in the library
12130 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'
12133 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12134 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12135 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'
12137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12138 hardcode_libdir_separator_CXX=:
12140 # Commands to make compiler produce verbose output that lists
12141 # what "hidden" libraries, object files and flags are used when
12142 # linking a shared library.
12143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12146 # FIXME: insert proper C++ library support
12153 # FIXME: insert proper C++ library support
12157 case $cc_basename in
12160 # FIXME: insert proper C++ library support
12165 # FIXME: insert proper C++ library support
12169 # FIXME: insert proper C++ library support
12175 case $cc_basename in
12177 # Sun C++ 4.2, 5.x and Centerline C++
12178 archive_cmds_need_lc_CXX=yes
12179 no_undefined_flag_CXX=' -zdefs'
12180 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12181 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12182 $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'
12184 hardcode_libdir_flag_spec_CXX='-R$libdir'
12185 hardcode_shlibpath_var_CXX=no
12187 solaris2.[0-5] | solaris2.[0-5].*) ;;
12189 # The compiler driver will combine and reorder linker options,
12190 # but understands `-z linker_flag'.
12191 # Supported since Solaris 2.6 (maybe 2.5.1?)
12192 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12195 link_all_deplibs_CXX=yes
12197 output_verbose_link_cmd='echo'
12199 # Archives containing C++ object files must be created using
12200 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12201 # necessary to make sure instantiated templates are included
12203 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12206 # Green Hills C++ Compiler
12207 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12209 # The C++ compiler must be used to create the archive.
12210 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12213 # GNU C++ compiler with Solaris linker
12214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12215 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12216 if $CC --version | grep -v '^2\.7' > /dev/null; then
12217 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12218 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12219 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12224 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12226 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12228 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12229 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12230 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12232 # Commands to make compiler produce verbose output that lists
12233 # what "hidden" libraries, object files and flags are used when
12234 # linking a shared library.
12235 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12238 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12240 solaris2.[0-5] | solaris2.[0-5].*) ;;
12242 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12249 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12250 no_undefined_flag_CXX='${wl}-z,text'
12251 archive_cmds_need_lc_CXX=no
12252 hardcode_shlibpath_var_CXX=no
12253 runpath_var='LD_RUN_PATH'
12255 case $cc_basename in
12257 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12258 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12261 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12262 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12266 sysv5* | sco3.2v5* | sco5v6*)
12267 # Note: We can NOT use -z defs as we might desire, because we do not
12268 # link with -lc, and that would cause any symbols used from libc to
12269 # always be unresolved, which means just about no library would
12270 # ever link correctly. If we're not using GNU ld we use -z text
12271 # though, which does catch some bad symbols but isn't as heavy-handed
12273 # For security reasons, it is highly recommended that you always
12274 # use absolute paths for naming shared libraries, and exclude the
12275 # DT_RUNPATH tag from executables and libraries. But doing so
12276 # requires that you compile everything twice, which is a pain.
12277 # So that behaviour is only enabled if SCOABSPATH is set to a
12278 # non-empty value in the environment. Most likely only useful for
12279 # creating official distributions of packages.
12280 # This is a hack until libtool officially supports absolute path
12281 # names for shared libraries.
12282 no_undefined_flag_CXX='${wl}-z,text'
12283 allow_undefined_flag_CXX='${wl}-z,nodefs'
12284 archive_cmds_need_lc_CXX=no
12285 hardcode_shlibpath_var_CXX=no
12286 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12287 hardcode_libdir_separator_CXX=':'
12288 link_all_deplibs_CXX=yes
12289 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12290 runpath_var='LD_RUN_PATH'
12292 case $cc_basename in
12294 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12295 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12298 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12299 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12304 case $cc_basename in
12306 # NonStop-UX NCC 3.20
12307 # FIXME: insert proper C++ library support
12311 # FIXME: insert proper C++ library support
12317 # FIXME: insert proper C++ library support
12321 # FIXME: insert proper C++ library support
12325 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12326 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12327 test "$ld_shlibs_CXX" = no && can_build_shared=no
12332 cat > conftest.$ac_ext <<EOF
12336 Foo (void) { a = 0; }
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; then
12347 # Parse the compiler output and extract the necessary
12348 # objects, libraries and library flags.
12350 # Sentinel used to keep track of whether or not we are before
12351 # the conftest object file.
12352 pre_test_object_deps_done=no
12354 # The `*' in the case matches for architectures that use `case' in
12355 # $output_verbose_cmd can trigger glob expansion during the loop
12356 # eval without this substitution.
12357 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12359 for p in `eval $output_verbose_link_cmd`; do
12363 # Some compilers place space between "-{L,R}" and the path.
12364 # Remove the space.
12365 if test $p = "-L" \
12366 || test $p = "-R"; then
12373 if test "$pre_test_object_deps_done" = no; then
12376 # Internal compiler library paths should come after those
12377 # provided the user. The postdeps already come after the
12378 # user supplied libs so there is no need to process them.
12379 if test -z "$compiler_lib_search_path_CXX"; then
12380 compiler_lib_search_path_CXX="${prev}${p}"
12382 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12385 # The "-l" case would never come before the object being
12386 # linked, so don't bother handling this case.
12389 if test -z "$postdeps_CXX"; then
12390 postdeps_CXX="${prev}${p}"
12392 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12398 # This assumes that the test object file only shows up
12399 # once in the compiler output.
12400 if test "$p" = "conftest.$objext"; then
12401 pre_test_object_deps_done=yes
12405 if test "$pre_test_object_deps_done" = no; then
12406 if test -z "$predep_objects_CXX"; then
12407 predep_objects_CXX="$p"
12409 predep_objects_CXX="$predep_objects_CXX $p"
12412 if test -z "$postdep_objects_CXX"; then
12413 postdep_objects_CXX="$p"
12415 postdep_objects_CXX="$postdep_objects_CXX $p"
12420 *) ;; # Ignore the rest.
12428 echo "libtool.m4: error: problem compiling CXX test program"
12431 $rm -f confest.$objext
12433 compiler_lib_search_dirs_CXX=
12434 if test -n "$compiler_lib_search_path_CXX"; then
12435 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12438 # PORTME: override above test on systems where it is broken
12441 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12442 # hack all around it, let's just trust "g++" to DTRT.
12443 predep_objects_CXX=
12444 postdep_objects_CXX=
12449 case `$CC -V 2>&1 | sed 5q` in
12453 # The more standards-conforming stlport4 library is
12454 # incompatible with the Cstd library. Avoid specifying
12455 # it if it's in CXXFLAGS. Ignore libCrun as
12456 # -library=stlport4 depends on it.
12457 case " $CXX $CXXFLAGS " in
12458 *" -library=stlport4 "*)
12459 solaris_use_stlport4=yes
12462 if test "$solaris_use_stlport4" != yes; then
12463 postdeps_CXX='-library=Cstd -library=Crun'
12470 case $cc_basename in
12472 # The more standards-conforming stlport4 library is
12473 # incompatible with the Cstd library. Avoid specifying
12474 # it if it's in CXXFLAGS. Ignore libCrun as
12475 # -library=stlport4 depends on it.
12476 case " $CXX $CXXFLAGS " in
12477 *" -library=stlport4 "*)
12478 solaris_use_stlport4=yes
12482 # Adding this requires a known-good setup of shared libraries for
12483 # Sun compiler versions before 5.6, else PIC objects from an old
12484 # archive will be linked into the output, leading to subtle bugs.
12485 if test "$solaris_use_stlport4" != yes; then
12486 postdeps_CXX='-library=Cstd -library=Crun'
12493 case " $postdeps_CXX " in
12494 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12497 lt_prog_compiler_wl_CXX=
12498 lt_prog_compiler_pic_CXX=
12499 lt_prog_compiler_static_CXX=
12501 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12504 # C++ specific cases for pic, static, wl, etc.
12505 if test "$GXX" = yes; then
12506 lt_prog_compiler_wl_CXX='-Wl,'
12507 lt_prog_compiler_static_CXX='-static'
12511 # All AIX code is PIC.
12512 if test "$host_cpu" = ia64; then
12513 # AIX 5 now supports IA64 processor
12514 lt_prog_compiler_static_CXX='-Bstatic'
12518 # FIXME: we need at least 68020 code to build shared libraries, but
12519 # adding the `-m68020' flag to GCC prevents building anything better,
12521 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12523 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12524 # PIC is the default for these OSes.
12526 mingw* | cygwin* | os2* | pw32*)
12527 # This hack is so that the source file can tell whether it is being
12528 # built for inclusion in a dll (and should export symbols for example).
12529 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12530 # (--disable-auto-import) libraries
12531 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12533 darwin* | rhapsody*)
12534 # PIC is the default on this platform
12535 # Common symbols not allowed in MH_DYLIB files
12536 lt_prog_compiler_pic_CXX='-fno-common'
12539 # DJGPP does not support shared libraries at all
12540 lt_prog_compiler_pic_CXX=
12543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12544 # Instead, we relocate shared libraries at runtime.
12547 if test -d /usr/nec; then
12548 lt_prog_compiler_pic_CXX=-Kconform_pic
12552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12553 # not for PA HP-UX.
12558 lt_prog_compiler_pic_CXX='-fPIC'
12563 lt_prog_compiler_pic_CXX='-fPIC'
12569 # All AIX code is PIC.
12570 if test "$host_cpu" = ia64; then
12571 # AIX 5 now supports IA64 processor
12572 lt_prog_compiler_static_CXX='-Bstatic'
12574 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12578 case $cc_basename in
12580 # Green Hills C++ Compiler
12581 # _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"
12586 # PIC is the default on this platform
12587 # Common symbols not allowed in MH_DYLIB files
12588 case $cc_basename in
12590 lt_prog_compiler_pic_CXX='-qnocommon'
12591 lt_prog_compiler_wl_CXX='-Wl,'
12596 case $cc_basename in
12598 lt_prog_compiler_pic_CXX='-KPIC'
12601 # Green Hills C++ Compiler
12602 lt_prog_compiler_pic_CXX='-pic'
12608 freebsd* | dragonfly*)
12609 # FreeBSD uses GNU C++
12611 hpux9* | hpux10* | hpux11*)
12612 case $cc_basename in
12614 lt_prog_compiler_wl_CXX='-Wl,'
12615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12616 if test "$host_cpu" != ia64; then
12617 lt_prog_compiler_pic_CXX='+Z'
12621 lt_prog_compiler_wl_CXX='-Wl,'
12622 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12628 lt_prog_compiler_pic_CXX='+Z'
12637 # This is c89, which is MS Visual C++ (no shared libs)
12638 # Anyone wants to do a port?
12640 irix5* | irix6* | nonstopux*)
12641 case $cc_basename in
12643 lt_prog_compiler_wl_CXX='-Wl,'
12644 lt_prog_compiler_static_CXX='-non_shared'
12645 # CC pic flag -KPIC is the default.
12651 linux* | k*bsd*-gnu)
12652 case $cc_basename in
12655 lt_prog_compiler_wl_CXX='--backend -Wl,'
12656 lt_prog_compiler_pic_CXX='-fPIC'
12660 lt_prog_compiler_wl_CXX='-Wl,'
12661 lt_prog_compiler_pic_CXX='-KPIC'
12662 lt_prog_compiler_static_CXX='-static'
12665 # Portland Group C++ compiler.
12666 lt_prog_compiler_wl_CXX='-Wl,'
12667 lt_prog_compiler_pic_CXX='-fpic'
12668 lt_prog_compiler_static_CXX='-Bstatic'
12672 # Make sure the PIC flag is empty. It appears that all Alpha
12673 # Linux and Compaq Tru64 Unix objects are PIC.
12674 lt_prog_compiler_pic_CXX=
12675 lt_prog_compiler_static_CXX='-non_shared'
12678 case `$CC -V 2>&1 | sed 5q` in
12681 lt_prog_compiler_pic_CXX='-KPIC'
12682 lt_prog_compiler_static_CXX='-Bstatic'
12683 lt_prog_compiler_wl_CXX='-Qoption ld '
12694 case $cc_basename in
12696 lt_prog_compiler_pic_CXX='-W c,exportall'
12702 netbsd* | netbsdelf*-gnu)
12704 osf3* | osf4* | osf5*)
12705 case $cc_basename in
12707 lt_prog_compiler_wl_CXX='--backend -Wl,'
12710 # Rational C++ 2.4.1
12711 lt_prog_compiler_pic_CXX='-pic'
12714 # Digital/Compaq C++
12715 lt_prog_compiler_wl_CXX='-Wl,'
12716 # Make sure the PIC flag is empty. It appears that all Alpha
12717 # Linux and Compaq Tru64 Unix objects are PIC.
12718 lt_prog_compiler_pic_CXX=
12719 lt_prog_compiler_static_CXX='-non_shared'
12728 case $cc_basename in
12730 # Sun C++ 4.2, 5.x and Centerline C++
12731 lt_prog_compiler_pic_CXX='-KPIC'
12732 lt_prog_compiler_static_CXX='-Bstatic'
12733 lt_prog_compiler_wl_CXX='-Qoption ld '
12736 # Green Hills C++ Compiler
12737 lt_prog_compiler_pic_CXX='-PIC'
12744 case $cc_basename in
12747 lt_prog_compiler_pic_CXX='-pic'
12748 lt_prog_compiler_static_CXX='-Bstatic'
12752 lt_prog_compiler_pic_CXX='-pic'
12759 case $cc_basename in
12761 # NonStop-UX NCC 3.20
12762 lt_prog_compiler_pic_CXX='-KPIC'
12768 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12769 case $cc_basename in
12771 lt_prog_compiler_wl_CXX='-Wl,'
12772 lt_prog_compiler_pic_CXX='-KPIC'
12773 lt_prog_compiler_static_CXX='-Bstatic'
12780 lt_prog_compiler_can_build_shared_CXX=no
12785 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12786 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12789 # Check to make sure the PIC flag actually works.
12791 if test -n "$lt_prog_compiler_pic_CXX"; then
12793 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12794 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12795 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 lt_cv_prog_compiler_pic_works_CXX=no
12799 ac_outfile=conftest.$ac_objext
12800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12802 # Insert the option either (1) after the last *FLAGS variable, or
12803 # (2) before a word containing "conftest.", or (3) at the end.
12804 # Note that $ac_compile itself does not contain backslashes and begins
12805 # with a dollar sign (not a hyphen), so the echo should work correctly.
12806 # The option is referenced via a variable to avoid confusing sed.
12807 lt_compile=`echo "$ac_compile" | $SED \
12808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810 -e 's:$: $lt_compiler_flag:'`
12811 (eval echo "\"\$as_me:12811: $lt_compile\"" >&5)
12812 (eval "$lt_compile" 2>conftest.err)
12814 cat conftest.err >&5
12815 echo "$as_me:12815: \$? = $ac_status" >&5
12816 if (exit $ac_status) && test -s "$ac_outfile"; then
12817 # The compiler can only warn and ignore the option if not recognized
12818 # So say no if there are warnings other than the usual output.
12819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12822 lt_cv_prog_compiler_pic_works_CXX=yes
12828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12829 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12831 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12832 case $lt_prog_compiler_pic_CXX in
12834 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12837 lt_prog_compiler_pic_CXX=
12838 lt_prog_compiler_can_build_shared_CXX=no
12843 # For platforms which do not support PIC, -DPIC is meaningless:
12845 lt_prog_compiler_pic_CXX=
12848 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12853 # Check to make sure the static flag actually works.
12855 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12856 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12857 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12858 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 lt_cv_prog_compiler_static_works_CXX=no
12862 save_LDFLAGS="$LDFLAGS"
12863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12866 # The linker can only warn and ignore the option if not recognized
12867 # So say no if there are warnings
12868 if test -s conftest.err; then
12869 # Append any errors to the config.log.
12870 cat conftest.err 1>&5
12871 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873 if diff conftest.exp conftest.er2 >/dev/null; then
12874 lt_cv_prog_compiler_static_works_CXX=yes
12877 lt_cv_prog_compiler_static_works_CXX=yes
12881 LDFLAGS="$save_LDFLAGS"
12884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12885 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12887 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12890 lt_prog_compiler_static_CXX=
12894 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12895 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12896 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 lt_cv_prog_compiler_c_o_CXX=no
12900 $rm -r conftest 2>/dev/null
12904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12906 lt_compiler_flag="-o out/conftest2.$ac_objext"
12907 # Insert the option either (1) after the last *FLAGS variable, or
12908 # (2) before a word containing "conftest.", or (3) at the end.
12909 # Note that $ac_compile itself does not contain backslashes and begins
12910 # with a dollar sign (not a hyphen), so the echo should work correctly.
12911 lt_compile=`echo "$ac_compile" | $SED \
12912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12914 -e 's:$: $lt_compiler_flag:'`
12915 (eval echo "\"\$as_me:12915: $lt_compile\"" >&5)
12916 (eval "$lt_compile" 2>out/conftest.err)
12918 cat out/conftest.err >&5
12919 echo "$as_me:12919: \$? = $ac_status" >&5
12920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12922 # The compiler can only warn and ignore the option if not recognized
12923 # So say no if there are warnings
12924 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12927 lt_cv_prog_compiler_c_o_CXX=yes
12932 # SGI C++ compiler will create directory out/ii_files/ for
12933 # template instantiation
12934 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12935 $rm out/* && rmdir out
12941 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12942 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12945 hard_links="nottested"
12946 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12947 # do not overwrite the value of need_locks provided by the user
12948 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12954 ln conftest.a conftest.b 2>&5 || hard_links=no
12955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12956 { echo "$as_me:$LINENO: result: $hard_links" >&5
12957 echo "${ECHO_T}$hard_links" >&6; }
12958 if test "$hard_links" = no; then
12959 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12967 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12968 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12973 # If we're using GNU nm, then we don't want the "-C" option.
12974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12976 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'
12978 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'
12982 export_symbols_cmds_CXX="$ltdll_cmds"
12985 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'
12987 linux* | k*bsd*-gnu)
12988 link_all_deplibs_CXX=no
12991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12994 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12996 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12997 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12998 test "$ld_shlibs_CXX" = no && can_build_shared=no
13001 # Do we need to explicitly link libc?
13003 case "x$archive_cmds_need_lc_CXX" in
13005 # Assume -lc should be added
13006 archive_cmds_need_lc_CXX=yes
13008 if test "$enable_shared" = yes && test "$GCC" = yes; then
13009 case $archive_cmds_CXX in
13011 # FIXME: we may have to deal with multi-command sequences.
13014 # Test whether the compiler implicitly links with -lc since on some
13015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13016 # to ld, don't add -lc before -lgcc.
13017 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13018 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } 2>conftest.err; then
13029 libobjs=conftest.$ac_objext
13031 wl=$lt_prog_compiler_wl_CXX
13032 pic_flag=$lt_prog_compiler_pic_CXX
13038 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13039 allow_undefined_flag_CXX=
13040 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13041 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }
13046 archive_cmds_need_lc_CXX=no
13048 archive_cmds_need_lc_CXX=yes
13050 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13052 cat conftest.err 1>&5
13055 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13056 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13063 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13064 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13065 library_names_spec=
13066 libname_spec='lib$name'
13070 postuninstall_cmds=
13074 shlibpath_overrides_runpath=unknown
13076 dynamic_linker="$host_os ld.so"
13077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13079 need_lib_prefix=unknown
13080 hardcode_into_libs=no
13082 # when you set need_version to no, make sure it does not cause -set_version
13083 # flags to be left without arguments
13084 need_version=unknown
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13090 shlibpath_var=LIBPATH
13092 # AIX 3 has no versioning support, so we append a major version to the name.
13093 soname_spec='${libname}${release}${shared_ext}$major'
13100 hardcode_into_libs=yes
13101 if test "$host_cpu" = ia64; then
13102 # AIX 5 supports IA64
13103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13104 shlibpath_var=LD_LIBRARY_PATH
13106 # With GCC up to 2.95.x, collect2 would create an import file
13107 # for dependence libraries. The import file would start with
13108 # the line `#! .'. This would cause the generated library to
13109 # depend on `.', always an invalid library. This was fixed in
13110 # development snapshots of GCC prior to 3.0.
13112 aix4 | aix4.[01] | aix4.[01].*)
13113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13118 can_build_shared=no
13122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13123 # soname into executable. Probably we can add versioning support to
13124 # collect2, so additional links can be useful in future.
13125 if test "$aix_use_runtimelinking" = yes; then
13126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13127 # instead of lib<name>.a to let people know that these are not
13128 # typical AIX shared libraries.
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 # We preserve .a as extension for shared libraries through AIX4.2
13132 # and later when we are not doing run time linking.
13133 library_names_spec='${libname}${release}.a $libname.a'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13136 shlibpath_var=LIBPATH
13141 library_names_spec='$libname.ixlibrary $libname.a'
13142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13143 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'
13147 library_names_spec='${libname}${shared_ext}'
13148 dynamic_linker="$host_os ld.so"
13149 shlibpath_var=LIBRARY_PATH
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13158 shlibpath_var=LD_LIBRARY_PATH
13159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13161 # the default ld.so.conf also contains /usr/contrib/lib and
13162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13163 # libtool to hard-code these into programs
13166 cygwin* | mingw* | pw32*)
13167 version_type=windows
13172 case $GCC,$host_os in
13173 yes,cygwin* | yes,mingw* | yes,pw32*)
13174 library_names_spec='$libname.dll.a'
13175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13176 postinstall_cmds='base_file=`basename \${file}`~
13177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13178 dldir=$destdir/`dirname \$dlpath`~
13179 test -d \$dldir || mkdir -p \$dldir~
13180 $install_prog $dir/$dlname \$dldir/$dlname~
13181 chmod a+x \$dldir/$dlname'
13182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183 dlpath=$dir/\$dldll~
13185 shlibpath_overrides_runpath=yes
13189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13194 # MinGW DLLs use traditional 'lib' prefix
13195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13198 # It is most probably a Windows format PATH printed by
13199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13200 # path with ; separators, and with drive letters. We can handle the
13201 # drive letters (cygwin fileutils understands them), so leave them,
13202 # especially as we might pass files found there to a mingw objdump,
13203 # which wouldn't understand a cygwinified path. Ahh.
13204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13210 # pw32 DLLs use 'pw' prefix rather than 'lib'
13211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13220 dynamic_linker='Win32 ld.exe'
13221 # FIXME: first we should search . and the directory the executable is in
13225 darwin* | rhapsody*)
13226 dynamic_linker="$host_os dyld"
13227 version_type=darwin
13230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13231 soname_spec='${libname}${release}${major}$shared_ext'
13232 shlibpath_overrides_runpath=yes
13233 shlibpath_var=DYLD_LIBRARY_PATH
13234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13252 freebsd* | dragonfly*)
13253 # DragonFly does not have aout. When/if they implement a new
13254 # versioning mechanism, adjust this.
13255 if test -x /usr/bin/objformat; then
13256 objformat=`/usr/bin/objformat`
13259 freebsd[123]*) objformat=aout ;;
13260 *) objformat=elf ;;
13263 version_type=freebsd-$objformat
13264 case $version_type in
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13275 shlibpath_var=LD_LIBRARY_PATH
13278 shlibpath_overrides_runpath=yes
13280 freebsd3.[01]* | freebsdelf3.[01]*)
13281 shlibpath_overrides_runpath=yes
13282 hardcode_into_libs=yes
13284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13286 shlibpath_overrides_runpath=no
13287 hardcode_into_libs=yes
13289 *) # from 4.6 on, and DragonFly
13290 shlibpath_overrides_runpath=yes
13291 hardcode_into_libs=yes
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 hardcode_into_libs=yes
13306 hpux9* | hpux10* | hpux11*)
13307 # Give a soname corresponding to the major version so that dld.sl refuses to
13308 # link against other versions.
13315 hardcode_into_libs=yes
13316 dynamic_linker="$host_os dld.so"
13317 shlibpath_var=LD_LIBRARY_PATH
13318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 if test "X$HPUX_IA64_MODE" = X32; then
13322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13330 hardcode_into_libs=yes
13331 dynamic_linker="$host_os dld.sl"
13332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13341 dynamic_linker="$host_os dld.sl"
13342 shlibpath_var=SHLIB_PATH
13343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13345 soname_spec='${libname}${release}${shared_ext}$major'
13348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13349 postinstall_cmds='chmod 555 $lib'
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13359 shlibpath_var=LD_LIBRARY_PATH
13360 shlibpath_overrides_runpath=no
13361 hardcode_into_libs=yes
13364 irix5* | irix6* | nonstopux*)
13366 nonstopux*) version_type=nonstopux ;;
13368 if test "$lt_cv_prog_gnu_ld" = yes; then
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13379 irix5* | nonstopux*)
13380 libsuff= shlibsuff=
13383 case $LD in # libtool.m4 will add one of these switches to LD
13384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13385 libsuff= shlibsuff= libmagic=32-bit;;
13386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13387 libsuff=32 shlibsuff=N32 libmagic=N32;;
13388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13390 *) libsuff= shlibsuff= libmagic=never-match;;
13394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13395 shlibpath_overrides_runpath=no
13396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13398 hardcode_into_libs=yes
13401 # No shared lib support for Linux oldld, aout, or coff.
13402 linux*oldld* | linux*aout* | linux*coff*)
13406 # This must be Linux ELF.
13407 linux* | k*bsd*-gnu)
13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412 soname_spec='${libname}${release}${shared_ext}$major'
13413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=no
13416 # This implies no fast_install, which is unacceptable.
13417 # Some rework will be needed to allow for fast_install
13418 # before this can be enabled.
13419 hardcode_into_libs=yes
13421 # Append ld.so.conf contents to the search path
13422 if test -f /etc/ld.so.conf; then
13423 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13427 # We used to test for /lib/ld.so.1 and disable shared libraries on
13428 # powerpc, because MkLinux only supported shared libraries with the
13429 # GNU dynamic linker. Since this was broken with cross compilers,
13430 # most powerpc-linux boxes support dynamic linking these days and
13431 # people can always --disable-shared, the test was removed, and we
13432 # assume the GNU/Linux dynamic linker is in use.
13433 dynamic_linker='GNU/Linux ld.so'
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13441 soname_spec='${libname}${release}${shared_ext}$major'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=no
13444 hardcode_into_libs=yes
13445 dynamic_linker='NetBSD ld.elf_so'
13452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455 dynamic_linker='NetBSD (a.out) ld.so'
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 dynamic_linker='NetBSD ld.elf_so'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=yes
13463 hardcode_into_libs=yes
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=yes
13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13478 soname_spec='${libname}${release}${shared_ext}$major'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 shlibpath_overrides_runpath=yes
13485 sys_lib_dlsearch_path_spec="/usr/lib"
13487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13490 *) need_version=no ;;
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13497 openbsd2.[89] | openbsd2.[89].*)
13498 shlibpath_overrides_runpath=no
13501 shlibpath_overrides_runpath=yes
13505 shlibpath_overrides_runpath=yes
13510 libname_spec='$name'
13513 library_names_spec='$libname${shared_ext} $libname.a'
13514 dynamic_linker='OS/2 ld.exe'
13515 shlibpath_var=LIBPATH
13518 osf3* | osf4* | osf5*)
13522 soname_spec='${libname}${release}${shared_ext}$major'
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=yes
13541 hardcode_into_libs=yes
13542 # ldd complains unless libraries are executable
13543 postinstall_cmds='chmod +x $lib'
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 shlibpath_overrides_runpath=yes
13552 if test "$with_gnu_ld" = yes; then
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 case $host_vendor in
13565 shlibpath_overrides_runpath=no
13567 export_dynamic_flag_spec='${wl}-Blargedynsym'
13568 runpath_var=LD_RUN_PATH
13576 shlibpath_overrides_runpath=no
13577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13583 if test -d /usr/nec ;then
13585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13586 soname_spec='$libname${shared_ext}.$major'
13587 shlibpath_var=LD_LIBRARY_PATH
13591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13592 version_type=freebsd-elf
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 shlibpath_var=LD_LIBRARY_PATH
13598 hardcode_into_libs=yes
13599 if test "$with_gnu_ld" = yes; then
13600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13601 shlibpath_overrides_runpath=no
13603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13604 shlibpath_overrides_runpath=yes
13607 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13611 sys_lib_dlsearch_path_spec='/usr/lib'
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 shlibpath_var=LD_LIBRARY_PATH
13625 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13626 echo "${ECHO_T}$dynamic_linker" >&6; }
13627 test "$dynamic_linker" = no && can_build_shared=no
13629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13635 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13642 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13645 if test "$GCC" = yes; then
13646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13649 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13651 hardcode_action_CXX=
13652 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13653 test -n "$runpath_var_CXX" || \
13654 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13656 # We can hardcode non-existant directories.
13657 if test "$hardcode_direct_CXX" != no &&
13658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13659 # have to relink, otherwise we might link with an installed library
13660 # when we should be linking with a yet-to-be-installed one
13661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13662 test "$hardcode_minus_L_CXX" != no; then
13663 # Linking always hardcodes the temporary library directory.
13664 hardcode_action_CXX=relink
13666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13667 hardcode_action_CXX=immediate
13670 # We cannot hardcode anything, or else we can only hardcode existing
13672 hardcode_action_CXX=unsupported
13674 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13675 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13677 if test "$hardcode_action_CXX" = relink; then
13678 # Fast installation is not supported
13679 enable_fast_install=no
13680 elif test "$shlibpath_overrides_runpath" = yes ||
13681 test "$enable_shared" = no; then
13682 # Fast installation is not necessary
13683 enable_fast_install=needless
13687 # The else clause should only fire when bootstrapping the
13688 # libtool distribution, otherwise you forgot to ship ltmain.sh
13689 # with your package, and you will get complaints that there are
13690 # no rules to generate ltmain.sh.
13691 if test -f "$ltmain"; then
13692 # See if we are running on zsh, and set the options which allow our commands through
13693 # without removal of \ escapes.
13694 if test -n "${ZSH_VERSION+set}" ; then
13695 setopt NO_GLOB_SUBST
13697 # Now quote all the things that may contain metacharacters while being
13698 # careful not to overquote the AC_SUBSTed values. We take copies of the
13699 # variables and quote the copies for generation of the libtool script.
13700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13704 deplibs_check_method reload_flag reload_cmds need_locks \
13705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13706 lt_cv_sys_global_symbol_to_c_name_address \
13707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13708 old_postinstall_cmds old_postuninstall_cmds \
13712 lt_prog_compiler_wl_CXX \
13713 lt_prog_compiler_pic_CXX \
13714 lt_prog_compiler_static_CXX \
13715 lt_prog_compiler_no_builtin_flag_CXX \
13716 export_dynamic_flag_spec_CXX \
13717 thread_safe_flag_spec_CXX \
13718 whole_archive_flag_spec_CXX \
13719 enable_shared_with_static_runtimes_CXX \
13720 old_archive_cmds_CXX \
13721 old_archive_from_new_cmds_CXX \
13722 predep_objects_CXX \
13723 postdep_objects_CXX \
13726 compiler_lib_search_path_CXX \
13727 compiler_lib_search_dirs_CXX \
13729 archive_expsym_cmds_CXX \
13730 postinstall_cmds_CXX \
13731 postuninstall_cmds_CXX \
13732 old_archive_from_expsyms_cmds_CXX \
13733 allow_undefined_flag_CXX \
13734 no_undefined_flag_CXX \
13735 export_symbols_cmds_CXX \
13736 hardcode_libdir_flag_spec_CXX \
13737 hardcode_libdir_flag_spec_ld_CXX \
13738 hardcode_libdir_separator_CXX \
13739 hardcode_automatic_CXX \
13741 module_expsym_cmds_CXX \
13742 lt_cv_prog_compiler_c_o_CXX \
13743 fix_srcfile_path_CXX \
13744 exclude_expsyms_CXX \
13745 include_expsyms_CXX; do
13748 old_archive_cmds_CXX | \
13749 old_archive_from_new_cmds_CXX | \
13750 archive_cmds_CXX | \
13751 archive_expsym_cmds_CXX | \
13752 module_cmds_CXX | \
13753 module_expsym_cmds_CXX | \
13754 old_archive_from_expsyms_cmds_CXX | \
13755 export_symbols_cmds_CXX | \
13756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13757 postinstall_cmds | postuninstall_cmds | \
13758 old_postinstall_cmds | old_postuninstall_cmds | \
13759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13760 # Double-quote double-evaled strings.
13761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13770 *'\$0 --fallback-echo"')
13771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13777 cat <<__EOF__ >> "$cfgfile"
13778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13782 # Shell to use when invoking shell scripts.
13785 # Whether or not to build shared libraries.
13786 build_libtool_libs=$enable_shared
13788 # Whether or not to build static libraries.
13789 build_old_libs=$enable_static
13791 # Whether or not to add -lc for building shared libraries.
13792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13794 # Whether or not to disallow shared libs when runtime libs are static
13795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13797 # Whether or not to optimize for fast installation.
13798 fast_install=$enable_fast_install
13801 host_alias=$host_alias
13805 # The build system.
13806 build_alias=$build_alias
13810 # An echo program that does not interpret backslashes.
13815 AR_FLAGS=$lt_AR_FLAGS
13820 # LTCC compiler flags.
13821 LTCFLAGS=$lt_LTCFLAGS
13823 # A language-specific compiler.
13824 CC=$lt_compiler_CXX
13826 # Is the compiler the GNU C compiler?
13832 # The linker used to build libraries.
13835 # Whether we need hard or soft links.
13838 # A BSD-compatible nm program.
13841 # A symbol stripping program
13844 # Used to examine libraries when file_magic_cmd begins "file"
13845 MAGIC_CMD=$MAGIC_CMD
13847 # Used on cygwin: DLL creation program.
13850 # Used on cygwin: object dumper.
13853 # Used on cygwin: assembler.
13856 # The name of the directory that contains temporary libtool files.
13859 # How to create reloadable object files.
13860 reload_flag=$lt_reload_flag
13861 reload_cmds=$lt_reload_cmds
13863 # How to pass a linker flag through the compiler.
13864 wl=$lt_lt_prog_compiler_wl_CXX
13866 # Object file suffix (normally "o").
13867 objext="$ac_objext"
13869 # Old archive suffix (normally "a").
13872 # Shared library suffix (normally ".so").
13873 shrext_cmds='$shrext_cmds'
13875 # Executable file suffix (normally "").
13878 # Additional compiler flags for building library objects.
13879 pic_flag=$lt_lt_prog_compiler_pic_CXX
13882 # What is the maximum length of a command?
13883 max_cmd_len=$lt_cv_sys_max_cmd_len
13885 # Does compiler simultaneously support -c and -o options?
13886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13888 # Must we lock files when doing compilation?
13889 need_locks=$lt_need_locks
13891 # Do we need the lib prefix for modules?
13892 need_lib_prefix=$need_lib_prefix
13894 # Do we need a version for libraries?
13895 need_version=$need_version
13897 # Whether dlopen is supported.
13898 dlopen_support=$enable_dlopen
13900 # Whether dlopen of programs is supported.
13901 dlopen_self=$enable_dlopen_self
13903 # Whether dlopen of statically linked programs is supported.
13904 dlopen_self_static=$enable_dlopen_self_static
13906 # Compiler flag to prevent dynamic linking.
13907 link_static_flag=$lt_lt_prog_compiler_static_CXX
13909 # Compiler flag to turn off builtin functions.
13910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13912 # Compiler flag to allow reflexive dlopens.
13913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13915 # Compiler flag to generate shared objects directly from archives.
13916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13918 # Compiler flag to generate thread-safe objects.
13919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13921 # Library versioning type.
13922 version_type=$version_type
13924 # Format of library name prefix.
13925 libname_spec=$lt_libname_spec
13927 # List of archive names. First name is the real one, the rest are links.
13928 # The last name is the one that the linker finds with -lNAME.
13929 library_names_spec=$lt_library_names_spec
13931 # The coded name of the library, if different from the real name.
13932 soname_spec=$lt_soname_spec
13934 # Commands used to build and install an old-style archive.
13936 old_archive_cmds=$lt_old_archive_cmds_CXX
13937 old_postinstall_cmds=$lt_old_postinstall_cmds
13938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13940 # Create an old-style archive from a shared archive.
13941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13943 # Create a temporary old-style archive to link instead of a shared archive.
13944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13946 # Commands used to build and install a shared archive.
13947 archive_cmds=$lt_archive_cmds_CXX
13948 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13949 postinstall_cmds=$lt_postinstall_cmds
13950 postuninstall_cmds=$lt_postuninstall_cmds
13952 # Commands used to build a loadable module (assumed same as above if empty)
13953 module_cmds=$lt_module_cmds_CXX
13954 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13956 # Commands to strip libraries.
13957 old_striplib=$lt_old_striplib
13958 striplib=$lt_striplib
13960 # Dependencies to place before the objects being linked to create a
13962 predep_objects=$lt_predep_objects_CXX
13964 # Dependencies to place after the objects being linked to create a
13966 postdep_objects=$lt_postdep_objects_CXX
13968 # Dependencies to place before the objects being linked to create a
13970 predeps=$lt_predeps_CXX
13972 # Dependencies to place after the objects being linked to create a
13974 postdeps=$lt_postdeps_CXX
13976 # The directories searched by this compiler when creating a shared
13978 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13980 # The library search path used internally by the compiler when linking
13981 # a shared library.
13982 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13984 # Method to check whether dependent libraries are shared objects.
13985 deplibs_check_method=$lt_deplibs_check_method
13987 # Command to use when deplibs_check_method == file_magic.
13988 file_magic_cmd=$lt_file_magic_cmd
13990 # Flag that allows shared libraries with undefined symbols to be built.
13991 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13993 # Flag that forces no undefined symbols.
13994 no_undefined_flag=$lt_no_undefined_flag_CXX
13996 # Commands used to finish a libtool library installation in a directory.
13997 finish_cmds=$lt_finish_cmds
13999 # Same as above, but a single script fragment to be evaled but not shown.
14000 finish_eval=$lt_finish_eval
14002 # Take the output of nm and produce a listing of raw symbols and C names.
14003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14005 # Transform the output of nm in a proper C declaration
14006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14008 # Transform the output of nm in a C name address pair
14009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14011 # This is the shared library runtime path variable.
14012 runpath_var=$runpath_var
14014 # This is the shared library path variable.
14015 shlibpath_var=$shlibpath_var
14017 # Is shlibpath searched before the hard-coded library search path?
14018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14020 # How to hardcode a shared library path into an executable.
14021 hardcode_action=$hardcode_action_CXX
14023 # Whether we should hardcode library paths into libraries.
14024 hardcode_into_libs=$hardcode_into_libs
14026 # Flag to hardcode \$libdir into a binary during linking.
14027 # This must work even if \$libdir does not exist.
14028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14030 # If ld is used when linking, flag to hardcode \$libdir into
14031 # a binary during linking. This must work even if \$libdir does
14033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14035 # Whether we need a single -rpath flag with a separated argument.
14036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14039 # resulting binary.
14040 hardcode_direct=$hardcode_direct_CXX
14042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14043 # resulting binary.
14044 hardcode_minus_L=$hardcode_minus_L_CXX
14046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14047 # the resulting binary.
14048 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14050 # Set to yes if building a shared library automatically hardcodes DIR into the library
14051 # and all subsequent libraries and executables linked against it.
14052 hardcode_automatic=$hardcode_automatic_CXX
14054 # Variables whose values should be saved in libtool wrapper scripts and
14055 # restored at relink time.
14056 variables_saved_for_relink="$variables_saved_for_relink"
14058 # Whether libtool must link a program against all its dependency libraries.
14059 link_all_deplibs=$link_all_deplibs_CXX
14061 # Compile-time system search path for libraries
14062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14064 # Run-time system search path for libraries
14065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14067 # Fix the shell variable \$srcfile for the compiler.
14068 fix_srcfile_path=$lt_fix_srcfile_path
14070 # Set to yes if exported symbols are required.
14071 always_export_symbols=$always_export_symbols_CXX
14073 # The commands to list exported symbols.
14074 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14076 # The commands to extract the exported symbol list from a shared archive.
14077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14079 # Symbols that should not be listed in the preloaded symbols.
14080 exclude_expsyms=$lt_exclude_expsyms_CXX
14082 # Symbols that must always be exported.
14083 include_expsyms=$lt_include_expsyms_CXX
14085 # ### END LIBTOOL TAG CONFIG: $tagname
14091 # If there is no Makefile yet, we rely on a make rule to execute
14092 # `config.status --recheck' to rerun these tests and create the
14093 # libtool script then.
14094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14095 if test -f "$ltmain_in"; then
14096 test -f Makefile && make "$ltmain"
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14111 with_gnu_ldcxx=$with_gnu_ld
14112 with_gnu_ld=$lt_save_with_gnu_ld
14113 lt_cv_path_LDCXX=$lt_cv_path_LD
14114 lt_cv_path_LD=$lt_save_path_LD
14115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14124 if test -n "$F77" && test "X$F77" != "Xno"; then
14127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14132 archive_cmds_need_lc_F77=no
14133 allow_undefined_flag_F77=
14134 always_export_symbols_F77=no
14135 archive_expsym_cmds_F77=
14136 export_dynamic_flag_spec_F77=
14137 hardcode_direct_F77=no
14138 hardcode_libdir_flag_spec_F77=
14139 hardcode_libdir_flag_spec_ld_F77=
14140 hardcode_libdir_separator_F77=
14141 hardcode_minus_L_F77=no
14142 hardcode_automatic_F77=no
14144 module_expsym_cmds_F77=
14145 link_all_deplibs_F77=unknown
14146 old_archive_cmds_F77=$old_archive_cmds
14147 no_undefined_flag_F77=
14148 whole_archive_flag_spec_F77=
14149 enable_shared_with_static_runtimes_F77=no
14151 # Source file extension for f77 test sources.
14154 # Object file extension for compiled f77 test sources.
14158 # Code to be used in simple compile tests
14159 lt_simple_compile_test_code="\
14165 # Code to be used in simple link tests
14166 lt_simple_link_test_code="\
14171 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14173 # If no C compiler was specified, use CC.
14176 # If no C compiler flags were specified, use CFLAGS.
14177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14179 # Allow CC to be a program name with arguments.
14183 # save warnings/boilerplate of simple test code
14184 ac_outfile=conftest.$ac_objext
14185 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187 _lt_compiler_boilerplate=`cat conftest.err`
14190 ac_outfile=conftest.$ac_objext
14191 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 _lt_linker_boilerplate=`cat conftest.err`
14197 # Allow CC to be a program name with arguments.
14202 for cc_temp in $compiler""; do
14204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14213 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14214 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14215 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14216 echo "${ECHO_T}$can_build_shared" >&6; }
14218 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14219 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14220 test "$can_build_shared" = "no" && enable_shared=no
14222 # On AIX, shared libraries and static libraries use the same namespace, and
14223 # are all built from PIC.
14226 test "$enable_shared" = yes && enable_static=no
14227 if test -n "$RANLIB"; then
14228 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14229 postinstall_cmds='$RANLIB $lib'
14233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14234 test "$enable_shared" = yes && enable_static=no
14238 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14239 echo "${ECHO_T}$enable_shared" >&6; }
14241 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14242 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14243 # Make sure either enable_shared or enable_static is yes.
14244 test "$enable_shared" = yes || enable_static=yes
14245 { echo "$as_me:$LINENO: result: $enable_static" >&5
14246 echo "${ECHO_T}$enable_static" >&6; }
14251 lt_prog_compiler_wl_F77=
14252 lt_prog_compiler_pic_F77=
14253 lt_prog_compiler_static_F77=
14255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14258 if test "$GCC" = yes; then
14259 lt_prog_compiler_wl_F77='-Wl,'
14260 lt_prog_compiler_static_F77='-static'
14264 # All AIX code is PIC.
14265 if test "$host_cpu" = ia64; then
14266 # AIX 5 now supports IA64 processor
14267 lt_prog_compiler_static_F77='-Bstatic'
14272 # FIXME: we need at least 68020 code to build shared libraries, but
14273 # adding the `-m68020' flag to GCC prevents building anything better,
14275 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14279 # PIC is the default for these OSes.
14282 mingw* | cygwin* | pw32* | os2*)
14283 # This hack is so that the source file can tell whether it is being
14284 # built for inclusion in a dll (and should export symbols for example).
14285 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14286 # (--disable-auto-import) libraries
14287 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14290 darwin* | rhapsody*)
14291 # PIC is the default on this platform
14292 # Common symbols not allowed in MH_DYLIB files
14293 lt_prog_compiler_pic_F77='-fno-common'
14297 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14298 # Instead, we relocate shared libraries at runtime.
14302 # Just because we use GCC doesn't mean we suddenly get shared libraries
14303 # on systems that don't support them.
14304 lt_prog_compiler_can_build_shared_F77=no
14309 if test -d /usr/nec; then
14310 lt_prog_compiler_pic_F77=-Kconform_pic
14315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14316 # not for PA HP-UX.
14322 lt_prog_compiler_pic_F77='-fPIC'
14328 lt_prog_compiler_pic_F77='-fPIC'
14332 # PORTME Check for flag to pass linker flags through the system compiler.
14335 lt_prog_compiler_wl_F77='-Wl,'
14336 if test "$host_cpu" = ia64; then
14337 # AIX 5 now supports IA64 processor
14338 lt_prog_compiler_static_F77='-Bstatic'
14340 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14344 # PIC is the default on this platform
14345 # Common symbols not allowed in MH_DYLIB files
14346 case $cc_basename in
14348 lt_prog_compiler_pic_F77='-qnocommon'
14349 lt_prog_compiler_wl_F77='-Wl,'
14354 mingw* | cygwin* | pw32* | os2*)
14355 # This hack is so that the source file can tell whether it is being
14356 # built for inclusion in a dll (and should export symbols for example).
14357 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14360 hpux9* | hpux10* | hpux11*)
14361 lt_prog_compiler_wl_F77='-Wl,'
14362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14363 # not for PA HP-UX.
14369 lt_prog_compiler_pic_F77='+Z'
14372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14373 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14376 irix5* | irix6* | nonstopux*)
14377 lt_prog_compiler_wl_F77='-Wl,'
14378 # PIC (with -KPIC) is the default.
14379 lt_prog_compiler_static_F77='-non_shared'
14383 lt_prog_compiler_pic_F77='-KPIC'
14384 lt_prog_compiler_static_F77='-Bstatic'
14387 linux* | k*bsd*-gnu)
14388 case $cc_basename in
14390 lt_prog_compiler_wl_F77='-Wl,'
14391 lt_prog_compiler_pic_F77='-KPIC'
14392 lt_prog_compiler_static_F77='-static'
14394 pgcc* | pgf77* | pgf90* | pgf95*)
14395 # Portland Group compilers (*not* the Pentium gcc compiler,
14396 # which looks to be a dead project)
14397 lt_prog_compiler_wl_F77='-Wl,'
14398 lt_prog_compiler_pic_F77='-fpic'
14399 lt_prog_compiler_static_F77='-Bstatic'
14402 lt_prog_compiler_wl_F77='-Wl,'
14403 # All Alpha code is PIC.
14404 lt_prog_compiler_static_F77='-non_shared'
14407 case `$CC -V 2>&1 | sed 5q` in
14410 lt_prog_compiler_pic_F77='-KPIC'
14411 lt_prog_compiler_static_F77='-Bstatic'
14412 lt_prog_compiler_wl_F77='-Wl,'
14415 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14416 lt_prog_compiler_pic_F77='-KPIC'
14417 lt_prog_compiler_static_F77='-Bstatic'
14418 lt_prog_compiler_wl_F77=''
14425 osf3* | osf4* | osf5*)
14426 lt_prog_compiler_wl_F77='-Wl,'
14427 # All OSF/1 code is PIC.
14428 lt_prog_compiler_static_F77='-non_shared'
14432 lt_prog_compiler_static_F77='-non_shared'
14436 lt_prog_compiler_pic_F77='-KPIC'
14437 lt_prog_compiler_static_F77='-Bstatic'
14438 case $cc_basename in
14439 f77* | f90* | f95*)
14440 lt_prog_compiler_wl_F77='-Qoption ld ';;
14442 lt_prog_compiler_wl_F77='-Wl,';;
14447 lt_prog_compiler_wl_F77='-Qoption ld '
14448 lt_prog_compiler_pic_F77='-PIC'
14449 lt_prog_compiler_static_F77='-Bstatic'
14452 sysv4 | sysv4.2uw2* | sysv4.3*)
14453 lt_prog_compiler_wl_F77='-Wl,'
14454 lt_prog_compiler_pic_F77='-KPIC'
14455 lt_prog_compiler_static_F77='-Bstatic'
14459 if test -d /usr/nec ;then
14460 lt_prog_compiler_pic_F77='-Kconform_pic'
14461 lt_prog_compiler_static_F77='-Bstatic'
14465 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14466 lt_prog_compiler_wl_F77='-Wl,'
14467 lt_prog_compiler_pic_F77='-KPIC'
14468 lt_prog_compiler_static_F77='-Bstatic'
14472 lt_prog_compiler_wl_F77='-Wl,'
14473 lt_prog_compiler_can_build_shared_F77=no
14477 lt_prog_compiler_pic_F77='-pic'
14478 lt_prog_compiler_static_F77='-Bstatic'
14482 lt_prog_compiler_can_build_shared_F77=no
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14491 # Check to make sure the PIC flag actually works.
14493 if test -n "$lt_prog_compiler_pic_F77"; then
14495 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14497 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 lt_cv_prog_compiler_pic_works_F77=no
14501 ac_outfile=conftest.$ac_objext
14502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14503 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14504 # Insert the option either (1) after the last *FLAGS variable, or
14505 # (2) before a word containing "conftest.", or (3) at the end.
14506 # Note that $ac_compile itself does not contain backslashes and begins
14507 # with a dollar sign (not a hyphen), so the echo should work correctly.
14508 # The option is referenced via a variable to avoid confusing sed.
14509 lt_compile=`echo "$ac_compile" | $SED \
14510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14512 -e 's:$: $lt_compiler_flag:'`
14513 (eval echo "\"\$as_me:14513: $lt_compile\"" >&5)
14514 (eval "$lt_compile" 2>conftest.err)
14516 cat conftest.err >&5
14517 echo "$as_me:14517: \$? = $ac_status" >&5
14518 if (exit $ac_status) && test -s "$ac_outfile"; then
14519 # The compiler can only warn and ignore the option if not recognized
14520 # So say no if there are warnings other than the usual output.
14521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14524 lt_cv_prog_compiler_pic_works_F77=yes
14530 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14531 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14533 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14534 case $lt_prog_compiler_pic_F77 in
14536 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14539 lt_prog_compiler_pic_F77=
14540 lt_prog_compiler_can_build_shared_F77=no
14545 # For platforms which do not support PIC, -DPIC is meaningless:
14547 lt_prog_compiler_pic_F77=
14550 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14555 # Check to make sure the static flag actually works.
14557 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14558 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14559 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14560 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 lt_cv_prog_compiler_static_works_F77=no
14564 save_LDFLAGS="$LDFLAGS"
14565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14568 # The linker can only warn and ignore the option if not recognized
14569 # So say no if there are warnings
14570 if test -s conftest.err; then
14571 # Append any errors to the config.log.
14572 cat conftest.err 1>&5
14573 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14575 if diff conftest.exp conftest.er2 >/dev/null; then
14576 lt_cv_prog_compiler_static_works_F77=yes
14579 lt_cv_prog_compiler_static_works_F77=yes
14583 LDFLAGS="$save_LDFLAGS"
14586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14587 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14589 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14592 lt_prog_compiler_static_F77=
14596 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14598 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 lt_cv_prog_compiler_c_o_F77=no
14602 $rm -r conftest 2>/dev/null
14606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14608 lt_compiler_flag="-o out/conftest2.$ac_objext"
14609 # Insert the option either (1) after the last *FLAGS variable, or
14610 # (2) before a word containing "conftest.", or (3) at the end.
14611 # Note that $ac_compile itself does not contain backslashes and begins
14612 # with a dollar sign (not a hyphen), so the echo should work correctly.
14613 lt_compile=`echo "$ac_compile" | $SED \
14614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14616 -e 's:$: $lt_compiler_flag:'`
14617 (eval echo "\"\$as_me:14617: $lt_compile\"" >&5)
14618 (eval "$lt_compile" 2>out/conftest.err)
14620 cat out/conftest.err >&5
14621 echo "$as_me:14621: \$? = $ac_status" >&5
14622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14624 # The compiler can only warn and ignore the option if not recognized
14625 # So say no if there are warnings
14626 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14629 lt_cv_prog_compiler_c_o_F77=yes
14634 # SGI C++ compiler will create directory out/ii_files/ for
14635 # template instantiation
14636 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14637 $rm out/* && rmdir out
14643 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14644 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14647 hard_links="nottested"
14648 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14649 # do not overwrite the value of need_locks provided by the user
14650 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14651 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14656 ln conftest.a conftest.b 2>&5 || hard_links=no
14657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14658 { echo "$as_me:$LINENO: result: $hard_links" >&5
14659 echo "${ECHO_T}$hard_links" >&6; }
14660 if test "$hard_links" = no; then
14661 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14662 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14669 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14670 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14673 allow_undefined_flag_F77=
14674 enable_shared_with_static_runtimes_F77=no
14676 archive_expsym_cmds_F77=
14677 old_archive_From_new_cmds_F77=
14678 old_archive_from_expsyms_cmds_F77=
14679 export_dynamic_flag_spec_F77=
14680 whole_archive_flag_spec_F77=
14681 thread_safe_flag_spec_F77=
14682 hardcode_libdir_flag_spec_F77=
14683 hardcode_libdir_flag_spec_ld_F77=
14684 hardcode_libdir_separator_F77=
14685 hardcode_direct_F77=no
14686 hardcode_minus_L_F77=no
14687 hardcode_shlibpath_var_F77=unsupported
14688 link_all_deplibs_F77=unknown
14689 hardcode_automatic_F77=no
14691 module_expsym_cmds_F77=
14692 always_export_symbols_F77=no
14693 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14694 # include_expsyms should be a list of space-separated symbols to be *always*
14695 # included in the symbol list
14696 include_expsyms_F77=
14697 # exclude_expsyms can be an extended regexp of symbols to exclude
14698 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14699 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14700 # as well as any symbol that contains `d'.
14701 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14702 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14703 # platforms (ab)use it in PIC code, but their linkers get confused if
14704 # the symbol is explicitly referenced. Since portable code cannot
14705 # rely on this symbol name, it's probably fine to never include it in
14706 # preloaded symbol tables.
14707 # Exclude shared library initialization/finalization symbols.
14708 extract_expsyms_cmds=
14709 # Just being paranoid about ensuring that cc_basename is set.
14710 for cc_temp in $compiler""; do
14712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14721 cygwin* | mingw* | pw32*)
14722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723 # When not using gcc, we currently assume that we are using
14724 # Microsoft Visual C++.
14725 if test "$GCC" != yes; then
14730 # we just hope/assume this is gcc and not c89 (= MSVC++)
14739 if test "$with_gnu_ld" = yes; then
14740 # If archive_cmds runs LD, not CC, wlarc should be empty
14743 # Set some defaults for GNU ld with shared library support. These
14744 # are reset later if shared libraries are not supported. Putting them
14745 # here allows them to be overridden if necessary.
14746 runpath_var=LD_RUN_PATH
14747 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14748 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14749 # ancient GNU ld didn't support --whole-archive et. al.
14750 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14751 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14753 whole_archive_flag_spec_F77=
14755 supports_anon_versioning=no
14756 case `$LD -v 2>/dev/null` in
14757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14760 *\ 2.11.*) ;; # other 2.11 versions
14761 *) supports_anon_versioning=yes ;;
14764 # See if GNU ld supports shared libraries.
14767 # On AIX/PPC, the GNU linker is very broken
14768 if test "$host_cpu" != ia64; then
14772 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14773 *** to be unable to reliably create shared libraries on AIX.
14774 *** Therefore, libtool is disabling shared libraries support. If you
14775 *** really care for shared libraries, you may want to modify your PATH
14776 *** so that a non-GNU linker is found, and then restart.
14783 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)'
14784 hardcode_libdir_flag_spec_F77='-L$libdir'
14785 hardcode_minus_L_F77=yes
14787 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14788 # that the semantics of dynamic libraries on AmigaOS, at least up
14789 # to version 4, is to share data among multiple programs linked
14790 # with the same dynamic library. Since this doesn't match the
14791 # behavior of shared libraries on other platforms, we can't use
14797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14798 allow_undefined_flag_F77=unsupported
14799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14800 # support --undefined. This deserves some investigation. FIXME
14801 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14807 cygwin* | mingw* | pw32*)
14808 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14809 # as there is no search path for DLLs.
14810 hardcode_libdir_flag_spec_F77='-L$libdir'
14811 allow_undefined_flag_F77=unsupported
14812 always_export_symbols_F77=no
14813 enable_shared_with_static_runtimes_F77=yes
14814 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14816 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14817 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14818 # If the export-symbols file already is a .def file (1st line
14819 # is EXPORTS), use it as is; otherwise, prepend...
14820 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14821 cp $export_symbols $output_objdir/$soname.def;
14823 echo EXPORTS > $output_objdir/$soname.def;
14824 cat $export_symbols >> $output_objdir/$soname.def;
14826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14833 hardcode_direct_F77=no
14834 hardcode_shlibpath_var_F77=no
14835 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836 export_dynamic_flag_spec_F77='${wl}-E'
14837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14838 # Instead, shared libraries are loaded at an image base (0x10000000 by
14839 # default) and relocated if they conflict, which is a slow very memory
14840 # consuming and fragmenting process. To avoid this, we pick a random,
14841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14843 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'
14844 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'
14847 gnu* | linux* | k*bsd*-gnu)
14848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14850 case $cc_basename,$host_cpu in
14851 pgcc*) # Portland Group C compiler
14852 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'
14853 tmp_addflag=' $pic_flag'
14855 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14856 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'
14857 tmp_addflag=' $pic_flag -Mnomain' ;;
14858 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14859 tmp_addflag=' -i_dynamic' ;;
14860 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14861 tmp_addflag=' -i_dynamic -nofor_main' ;;
14862 ifc* | ifort*) # Intel Fortran compiler
14863 tmp_addflag=' -nofor_main' ;;
14865 case `$CC -V 2>&1 | sed 5q` in
14866 *Sun\ C*) # Sun C 5.9
14867 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14868 tmp_sharedflag='-G' ;;
14869 *Sun\ F*) # Sun Fortran 8.3
14870 tmp_sharedflag='-G' ;;
14872 tmp_sharedflag='-shared' ;;
14874 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 if test $supports_anon_versioning = yes; then
14877 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14879 $echo "local: *; };" >> $output_objdir/$libname.ver~
14880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14882 link_all_deplibs_F77=no
14888 netbsd* | netbsdelf*-gnu)
14889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14890 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14893 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14899 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14904 *** create shared libraries on Solaris systems. Therefore, libtool
14905 *** is disabling shared libraries support. We urge you to upgrade GNU
14906 *** binutils to release 2.9.1 or newer. Another option is to modify
14907 *** your PATH or compiler configuration so that the native linker is
14908 *** used, and then restart.
14911 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14912 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14913 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14920 case `$LD -v 2>&1` in
14921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14926 *** reliably create shared libraries on SCO systems. Therefore, libtool
14927 *** is disabling shared libraries support. We urge you to upgrade GNU
14928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14929 *** your PATH or compiler configuration so that the native linker is
14930 *** used, and then restart.
14935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14936 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14947 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14949 hardcode_direct_F77=yes
14950 hardcode_shlibpath_var_F77=no
14954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14955 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14956 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14963 if test "$ld_shlibs_F77" = no; then
14965 hardcode_libdir_flag_spec_F77=
14966 export_dynamic_flag_spec_F77=
14967 whole_archive_flag_spec_F77=
14970 # PORTME fill in a description of your system's linker (not GNU ld)
14973 allow_undefined_flag_F77=unsupported
14974 always_export_symbols_F77=yes
14975 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'
14976 # Note: this linker hardcodes the directories in LIBPATH if there
14977 # are no directories specified by -L.
14978 hardcode_minus_L_F77=yes
14979 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14980 # Neither direct hardcoding nor static linking is supported with a
14982 hardcode_direct_F77=unsupported
14987 if test "$host_cpu" = ia64; then
14988 # On IA64, the linker does run time linking by default, so we don't
14989 # have to do anything special.
14990 aix_use_runtimelinking=no
14991 exp_sym_flag='-Bexport'
14994 # If we're using GNU nm, then we don't want the "-C" option.
14995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14997 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'
14999 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'
15001 aix_use_runtimelinking=no
15003 # Test if we are trying to use run time linking or normal
15004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15005 # need to do runtime linking.
15006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15007 for ld_flag in $LDFLAGS; do
15008 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15009 aix_use_runtimelinking=yes
15016 exp_sym_flag='-bexport'
15017 no_entry_flag='-bnoentry'
15020 # When large executables or shared objects are built, AIX ld can
15021 # have problems creating the table of contents. If linking a library
15022 # or program results in "error TOC overflow" add -mminimal-toc to
15023 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15024 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15026 archive_cmds_F77=''
15027 hardcode_direct_F77=yes
15028 hardcode_libdir_separator_F77=':'
15029 link_all_deplibs_F77=yes
15031 if test "$GCC" = yes; then
15032 case $host_os in aix4.[012]|aix4.[012].*)
15033 # We only want to do this on AIX 4.2 and lower, the check
15034 # below for broken collect2 doesn't work under 4.3+
15035 collect2name=`${CC} -print-prog-name=collect2`
15036 if test -f "$collect2name" && \
15037 strings "$collect2name" | grep resolve_lib_name >/dev/null
15039 # We have reworked collect2
15042 # We have old collect2
15043 hardcode_direct_F77=unsupported
15044 # It fails to find uninstalled libraries when the uninstalled
15045 # path is not listed in the libpath. Setting hardcode_minus_L
15046 # to unsupported forces relinking
15047 hardcode_minus_L_F77=yes
15048 hardcode_libdir_flag_spec_F77='-L$libdir'
15049 hardcode_libdir_separator_F77=
15053 shared_flag='-shared'
15054 if test "$aix_use_runtimelinking" = yes; then
15055 shared_flag="$shared_flag "'${wl}-G'
15059 if test "$host_cpu" = ia64; then
15060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15061 # chokes on -Wl,-G. The following line is correct:
15064 if test "$aix_use_runtimelinking" = yes; then
15065 shared_flag='${wl}-G'
15067 shared_flag='${wl}-bM:SRE'
15072 # It seems that -bexpall does not export symbols beginning with
15073 # underscore (_), so it is better to generate a list of symbols to export.
15074 always_export_symbols_F77=yes
15075 if test "$aix_use_runtimelinking" = yes; then
15076 # Warning - without using the other runtime loading flags (-brtl),
15077 # -berok will link without error, but may produce a broken library.
15078 allow_undefined_flag_F77='-berok'
15079 # Determine the default libpath from the value encoded in an empty executable.
15080 cat >conftest.$ac_ext <<_ACEOF
15085 rm -f conftest.$ac_objext conftest$ac_exeext
15086 if { (ac_try="$ac_link"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_link") 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && {
15099 test -z "$ac_f77_werror_flag" ||
15100 test ! -s conftest.err
15101 } && test -s conftest$ac_exeext &&
15102 $as_test_x conftest$ac_exeext; then
15104 lt_aix_libpath_sed='
15105 /Import File Strings/,/^$/ {
15111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15112 # Check for a 64-bit object if we didn't find anything.
15113 if test -z "$aix_libpath"; then
15114 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15124 conftest$ac_exeext conftest.$ac_ext
15125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15127 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15128 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"
15130 if test "$host_cpu" = ia64; then
15131 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15132 allow_undefined_flag_F77="-z nodefs"
15133 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"
15135 # Determine the default libpath from the value encoded in an empty executable.
15136 cat >conftest.$ac_ext <<_ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && {
15155 test -z "$ac_f77_werror_flag" ||
15156 test ! -s conftest.err
15157 } && test -s conftest$ac_exeext &&
15158 $as_test_x conftest$ac_exeext; then
15160 lt_aix_libpath_sed='
15161 /Import File Strings/,/^$/ {
15167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15168 # Check for a 64-bit object if we didn't find anything.
15169 if test -z "$aix_libpath"; then
15170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180 conftest$ac_exeext conftest.$ac_ext
15181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15183 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15184 # Warning - without using the other run time loading flags,
15185 # -berok will link without error, but may produce a broken library.
15186 no_undefined_flag_F77=' ${wl}-bernotok'
15187 allow_undefined_flag_F77=' ${wl}-berok'
15188 # Exported symbols can be pulled into shared objects from archives
15189 whole_archive_flag_spec_F77='$convenience'
15190 archive_cmds_need_lc_F77=yes
15191 # This is similar to how AIX traditionally builds its shared libraries.
15192 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'
15198 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)'
15199 hardcode_libdir_flag_spec_F77='-L$libdir'
15200 hardcode_minus_L_F77=yes
15201 # see comment about different semantics on the GNU ld section
15206 export_dynamic_flag_spec_F77=-rdynamic
15209 cygwin* | mingw* | pw32*)
15210 # When not using gcc, we currently assume that we are using
15211 # Microsoft Visual C++.
15212 # hardcode_libdir_flag_spec is actually meaningless, as there is
15213 # no search path for DLLs.
15214 hardcode_libdir_flag_spec_F77=' '
15215 allow_undefined_flag_F77=unsupported
15216 # Tell ltmain to make .lib files, not .a files.
15218 # Tell ltmain to make .dll files, not .so files.
15220 # FIXME: Setting linknames here is a bad hack.
15221 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15222 # The linker will automatically build a .lib file if we build a DLL.
15223 old_archive_From_new_cmds_F77='true'
15224 # FIXME: Should let the user specify the lib program.
15225 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15226 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15227 enable_shared_with_static_runtimes_F77=yes
15230 darwin* | rhapsody*)
15232 rhapsody* | darwin1.[012])
15233 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15236 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15239 case ${MACOSX_DEPLOYMENT_TARGET} in
15241 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15244 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15250 archive_cmds_need_lc_F77=no
15251 hardcode_direct_F77=no
15252 hardcode_automatic_F77=yes
15253 hardcode_shlibpath_var_F77=unsupported
15254 whole_archive_flag_spec_F77=''
15255 link_all_deplibs_F77=yes
15256 if test "$GCC" = yes ; then
15257 output_verbose_link_cmd='echo'
15258 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15259 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15260 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15261 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15263 case $cc_basename in
15265 output_verbose_link_cmd='echo'
15266 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15267 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15269 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15270 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}'
15280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281 hardcode_libdir_flag_spec_F77='-L$libdir'
15282 hardcode_shlibpath_var_F77=no
15289 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15290 # support. Future versions do this automatically, but an explicit c++rt0.o
15291 # does not break anything, and helps significantly (at the cost of a little
15294 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15295 hardcode_libdir_flag_spec_F77='-R$libdir'
15296 hardcode_direct_F77=yes
15297 hardcode_shlibpath_var_F77=no
15300 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15302 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15303 hardcode_direct_F77=yes
15304 hardcode_minus_L_F77=yes
15305 hardcode_shlibpath_var_F77=no
15308 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15309 freebsd* | dragonfly*)
15310 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15311 hardcode_libdir_flag_spec_F77='-R$libdir'
15312 hardcode_direct_F77=yes
15313 hardcode_shlibpath_var_F77=no
15317 if test "$GCC" = yes; then
15318 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'
15320 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'
15322 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15323 hardcode_libdir_separator_F77=:
15324 hardcode_direct_F77=yes
15326 # hardcode_minus_L: Not really in the search PATH,
15327 # but as the default location of the library.
15328 hardcode_minus_L_F77=yes
15329 export_dynamic_flag_spec_F77='${wl}-E'
15333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15334 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15336 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15338 if test "$with_gnu_ld" = no; then
15339 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15340 hardcode_libdir_separator_F77=:
15342 hardcode_direct_F77=yes
15343 export_dynamic_flag_spec_F77='${wl}-E'
15345 # hardcode_minus_L: Not really in the search PATH,
15346 # but as the default location of the library.
15347 hardcode_minus_L_F77=yes
15352 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15355 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15377 if test "$with_gnu_ld" = no; then
15378 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15379 hardcode_libdir_separator_F77=:
15383 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15384 hardcode_direct_F77=no
15385 hardcode_shlibpath_var_F77=no
15388 hardcode_direct_F77=yes
15389 export_dynamic_flag_spec_F77='${wl}-E'
15391 # hardcode_minus_L: Not really in the search PATH,
15392 # but as the default location of the library.
15393 hardcode_minus_L_F77=yes
15399 irix5* | irix6* | nonstopux*)
15400 if test "$GCC" = yes; then
15401 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'
15403 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'
15404 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15406 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15407 hardcode_libdir_separator_F77=:
15408 link_all_deplibs_F77=yes
15411 netbsd* | netbsdelf*-gnu)
15412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15415 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15417 hardcode_libdir_flag_spec_F77='-R$libdir'
15418 hardcode_direct_F77=yes
15419 hardcode_shlibpath_var_F77=no
15423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_direct_F77=yes
15425 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15426 hardcode_libdir_separator_F77=:
15427 hardcode_shlibpath_var_F77=no
15431 if test -f /usr/libexec/ld.so; then
15432 hardcode_direct_F77=yes
15433 hardcode_shlibpath_var_F77=no
15434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15435 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15436 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15437 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15438 export_dynamic_flag_spec_F77='${wl}-E'
15441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15442 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15443 hardcode_libdir_flag_spec_F77='-R$libdir'
15446 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15457 hardcode_libdir_flag_spec_F77='-L$libdir'
15458 hardcode_minus_L_F77=yes
15459 allow_undefined_flag_F77=unsupported
15460 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'
15461 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15465 if test "$GCC" = yes; then
15466 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15467 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'
15469 allow_undefined_flag_F77=' -expect_unresolved \*'
15470 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'
15472 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15473 hardcode_libdir_separator_F77=:
15476 osf4* | osf5*) # as osf3* with the addition of -msym flag
15477 if test "$GCC" = yes; then
15478 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15479 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'
15480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15482 allow_undefined_flag_F77=' -expect_unresolved \*'
15483 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'
15484 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~
15485 $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'
15487 # Both c and cxx compiler support -rpath directly
15488 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15490 hardcode_libdir_separator_F77=:
15494 no_undefined_flag_F77=' -z text'
15495 if test "$GCC" = yes; then
15497 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15499 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15502 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15504 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15506 hardcode_libdir_flag_spec_F77='-R$libdir'
15507 hardcode_shlibpath_var_F77=no
15509 solaris2.[0-5] | solaris2.[0-5].*) ;;
15511 # The compiler driver will combine and reorder linker options,
15512 # but understands `-z linker_flag'. GCC discards it without `$wl',
15513 # but is careful enough not to reorder.
15514 # Supported since Solaris 2.6 (maybe 2.5.1?)
15515 if test "$GCC" = yes; then
15516 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15518 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15522 link_all_deplibs_F77=yes
15526 if test "x$host_vendor" = xsequent; then
15527 # Use $CC to link under sequent, because it throws in some extra .o
15528 # files that make .init and .fini sections work.
15529 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_libdir_flag_spec_F77='-L$libdir'
15534 hardcode_direct_F77=yes
15535 hardcode_minus_L_F77=yes
15536 hardcode_shlibpath_var_F77=no
15540 case $host_vendor in
15542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_direct_F77=yes # is this really true???
15546 ## LD is ld it makes a PLAMLIB
15547 ## CC just makes a GrossModule.
15548 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15549 reload_cmds_F77='$CC -r -o $output$reload_objs'
15550 hardcode_direct_F77=no
15553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15557 runpath_var='LD_RUN_PATH'
15558 hardcode_shlibpath_var_F77=no
15562 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_shlibpath_var_F77=no
15564 export_dynamic_flag_spec_F77='-Bexport'
15568 if test -d /usr/nec; then
15569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_shlibpath_var_F77=no
15571 runpath_var=LD_RUN_PATH
15572 hardcode_runpath_var=yes
15577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15578 no_undefined_flag_F77='${wl}-z,text'
15579 archive_cmds_need_lc_F77=no
15580 hardcode_shlibpath_var_F77=no
15581 runpath_var='LD_RUN_PATH'
15583 if test "$GCC" = yes; then
15584 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15587 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15592 sysv5* | sco3.2v5* | sco5v6*)
15593 # Note: We can NOT use -z defs as we might desire, because we do not
15594 # link with -lc, and that would cause any symbols used from libc to
15595 # always be unresolved, which means just about no library would
15596 # ever link correctly. If we're not using GNU ld we use -z text
15597 # though, which does catch some bad symbols but isn't as heavy-handed
15599 no_undefined_flag_F77='${wl}-z,text'
15600 allow_undefined_flag_F77='${wl}-z,nodefs'
15601 archive_cmds_need_lc_F77=no
15602 hardcode_shlibpath_var_F77=no
15603 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15604 hardcode_libdir_separator_F77=':'
15605 link_all_deplibs_F77=yes
15606 export_dynamic_flag_spec_F77='${wl}-Bexport'
15607 runpath_var='LD_RUN_PATH'
15609 if test "$GCC" = yes; then
15610 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15611 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15619 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_libdir_flag_spec_F77='-L$libdir'
15621 hardcode_shlibpath_var_F77=no
15630 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15631 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15632 test "$ld_shlibs_F77" = no && can_build_shared=no
15635 # Do we need to explicitly link libc?
15637 case "x$archive_cmds_need_lc_F77" in
15639 # Assume -lc should be added
15640 archive_cmds_need_lc_F77=yes
15642 if test "$enable_shared" = yes && test "$GCC" = yes; then
15643 case $archive_cmds_F77 in
15645 # FIXME: we may have to deal with multi-command sequences.
15648 # Test whether the compiler implicitly links with -lc since on some
15649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15650 # to ld, don't add -lc before -lgcc.
15651 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15652 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657 (eval $ac_compile) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } 2>conftest.err; then
15663 libobjs=conftest.$ac_objext
15665 wl=$lt_prog_compiler_wl_F77
15666 pic_flag=$lt_prog_compiler_pic_F77
15672 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15673 allow_undefined_flag_F77=
15674 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15675 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }
15680 archive_cmds_need_lc_F77=no
15682 archive_cmds_need_lc_F77=yes
15684 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15686 cat conftest.err 1>&5
15689 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15690 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15697 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15698 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15699 library_names_spec=
15700 libname_spec='lib$name'
15704 postuninstall_cmds=
15708 shlibpath_overrides_runpath=unknown
15710 dynamic_linker="$host_os ld.so"
15711 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15713 need_lib_prefix=unknown
15714 hardcode_into_libs=no
15716 # when you set need_version to no, make sure it does not cause -set_version
15717 # flags to be left without arguments
15718 need_version=unknown
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15724 shlibpath_var=LIBPATH
15726 # AIX 3 has no versioning support, so we append a major version to the name.
15727 soname_spec='${libname}${release}${shared_ext}$major'
15734 hardcode_into_libs=yes
15735 if test "$host_cpu" = ia64; then
15736 # AIX 5 supports IA64
15737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15738 shlibpath_var=LD_LIBRARY_PATH
15740 # With GCC up to 2.95.x, collect2 would create an import file
15741 # for dependence libraries. The import file would start with
15742 # the line `#! .'. This would cause the generated library to
15743 # depend on `.', always an invalid library. This was fixed in
15744 # development snapshots of GCC prior to 3.0.
15746 aix4 | aix4.[01] | aix4.[01].*)
15747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15749 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15752 can_build_shared=no
15756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15757 # soname into executable. Probably we can add versioning support to
15758 # collect2, so additional links can be useful in future.
15759 if test "$aix_use_runtimelinking" = yes; then
15760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15761 # instead of lib<name>.a to let people know that these are not
15762 # typical AIX shared libraries.
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 # We preserve .a as extension for shared libraries through AIX4.2
15766 # and later when we are not doing run time linking.
15767 library_names_spec='${libname}${release}.a $libname.a'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15770 shlibpath_var=LIBPATH
15775 library_names_spec='$libname.ixlibrary $libname.a'
15776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15777 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'
15781 library_names_spec='${libname}${shared_ext}'
15782 dynamic_linker="$host_os ld.so"
15783 shlibpath_var=LIBRARY_PATH
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15795 # the default ld.so.conf also contains /usr/contrib/lib and
15796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15797 # libtool to hard-code these into programs
15800 cygwin* | mingw* | pw32*)
15801 version_type=windows
15806 case $GCC,$host_os in
15807 yes,cygwin* | yes,mingw* | yes,pw32*)
15808 library_names_spec='$libname.dll.a'
15809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15810 postinstall_cmds='base_file=`basename \${file}`~
15811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15812 dldir=$destdir/`dirname \$dlpath`~
15813 test -d \$dldir || mkdir -p \$dldir~
15814 $install_prog $dir/$dlname \$dldir/$dlname~
15815 chmod a+x \$dldir/$dlname'
15816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15817 dlpath=$dir/\$dldll~
15819 shlibpath_overrides_runpath=yes
15823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15825 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15828 # MinGW DLLs use traditional 'lib' prefix
15829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15831 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15832 # It is most probably a Windows format PATH printed by
15833 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15834 # path with ; separators, and with drive letters. We can handle the
15835 # drive letters (cygwin fileutils understands them), so leave them,
15836 # especially as we might pass files found there to a mingw objdump,
15837 # which wouldn't understand a cygwinified path. Ahh.
15838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15844 # pw32 DLLs use 'pw' prefix rather than 'lib'
15845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15854 dynamic_linker='Win32 ld.exe'
15855 # FIXME: first we should search . and the directory the executable is in
15859 darwin* | rhapsody*)
15860 dynamic_linker="$host_os dyld"
15861 version_type=darwin
15864 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15865 soname_spec='${libname}${release}${major}$shared_ext'
15866 shlibpath_overrides_runpath=yes
15867 shlibpath_var=DYLD_LIBRARY_PATH
15868 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15886 freebsd* | dragonfly*)
15887 # DragonFly does not have aout. When/if they implement a new
15888 # versioning mechanism, adjust this.
15889 if test -x /usr/bin/objformat; then
15890 objformat=`/usr/bin/objformat`
15893 freebsd[123]*) objformat=aout ;;
15894 *) objformat=elf ;;
15897 version_type=freebsd-$objformat
15898 case $version_type in
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15909 shlibpath_var=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath=yes
15914 freebsd3.[01]* | freebsdelf3.[01]*)
15915 shlibpath_overrides_runpath=yes
15916 hardcode_into_libs=yes
15918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15923 *) # from 4.6 on, and DragonFly
15924 shlibpath_overrides_runpath=yes
15925 hardcode_into_libs=yes
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 hardcode_into_libs=yes
15940 hpux9* | hpux10* | hpux11*)
15941 # Give a soname corresponding to the major version so that dld.sl refuses to
15942 # link against other versions.
15949 hardcode_into_libs=yes
15950 dynamic_linker="$host_os dld.so"
15951 shlibpath_var=LD_LIBRARY_PATH
15952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 if test "X$HPUX_IA64_MODE" = X32; then
15956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15964 hardcode_into_libs=yes
15965 dynamic_linker="$host_os dld.sl"
15966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15975 dynamic_linker="$host_os dld.sl"
15976 shlibpath_var=SHLIB_PATH
15977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15983 postinstall_cmds='chmod 555 $lib'
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 shlibpath_overrides_runpath=no
15995 hardcode_into_libs=yes
15998 irix5* | irix6* | nonstopux*)
16000 nonstopux*) version_type=nonstopux ;;
16002 if test "$lt_cv_prog_gnu_ld" = yes; then
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16013 irix5* | nonstopux*)
16014 libsuff= shlibsuff=
16017 case $LD in # libtool.m4 will add one of these switches to LD
16018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16019 libsuff= shlibsuff= libmagic=32-bit;;
16020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16021 libsuff=32 shlibsuff=N32 libmagic=N32;;
16022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16024 *) libsuff= shlibsuff= libmagic=never-match;;
16028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16029 shlibpath_overrides_runpath=no
16030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16032 hardcode_into_libs=yes
16035 # No shared lib support for Linux oldld, aout, or coff.
16036 linux*oldld* | linux*aout* | linux*coff*)
16040 # This must be Linux ELF.
16041 linux* | k*bsd*-gnu)
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 shlibpath_overrides_runpath=no
16050 # This implies no fast_install, which is unacceptable.
16051 # Some rework will be needed to allow for fast_install
16052 # before this can be enabled.
16053 hardcode_into_libs=yes
16055 # Append ld.so.conf contents to the search path
16056 if test -f /etc/ld.so.conf; then
16057 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16061 # We used to test for /lib/ld.so.1 and disable shared libraries on
16062 # powerpc, because MkLinux only supported shared libraries with the
16063 # GNU dynamic linker. Since this was broken with cross compilers,
16064 # most powerpc-linux boxes support dynamic linking these days and
16065 # people can always --disable-shared, the test was removed, and we
16066 # assume the GNU/Linux dynamic linker is in use.
16067 dynamic_linker='GNU/Linux ld.so'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=no
16078 hardcode_into_libs=yes
16079 dynamic_linker='NetBSD ld.elf_so'
16086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16089 dynamic_linker='NetBSD (a.out) ld.so'
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 dynamic_linker='NetBSD ld.elf_so'
16095 shlibpath_var=LD_LIBRARY_PATH
16096 shlibpath_overrides_runpath=yes
16097 hardcode_into_libs=yes
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 shlibpath_overrides_runpath=yes
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes
16119 sys_lib_dlsearch_path_spec="/usr/lib"
16121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16124 *) need_version=no ;;
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16131 openbsd2.[89] | openbsd2.[89].*)
16132 shlibpath_overrides_runpath=no
16135 shlibpath_overrides_runpath=yes
16139 shlibpath_overrides_runpath=yes
16144 libname_spec='$name'
16147 library_names_spec='$libname${shared_ext} $libname.a'
16148 dynamic_linker='OS/2 ld.exe'
16149 shlibpath_var=LIBPATH
16152 osf3* | osf4* | osf5*)
16156 soname_spec='${libname}${release}${shared_ext}$major'
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 # ldd complains unless libraries are executable
16177 postinstall_cmds='chmod +x $lib'
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes
16186 if test "$with_gnu_ld" = yes; then
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 case $host_vendor in
16199 shlibpath_overrides_runpath=no
16201 export_dynamic_flag_spec='${wl}-Blargedynsym'
16202 runpath_var=LD_RUN_PATH
16210 shlibpath_overrides_runpath=no
16211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16217 if test -d /usr/nec ;then
16219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16220 soname_spec='$libname${shared_ext}.$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16226 version_type=freebsd-elf
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 hardcode_into_libs=yes
16233 if test "$with_gnu_ld" = yes; then
16234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16235 shlibpath_overrides_runpath=no
16237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16238 shlibpath_overrides_runpath=yes
16241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16245 sys_lib_dlsearch_path_spec='/usr/lib'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 shlibpath_var=LD_LIBRARY_PATH
16259 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16260 echo "${ECHO_T}$dynamic_linker" >&6; }
16261 test "$dynamic_linker" = no && can_build_shared=no
16263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16269 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16276 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16279 if test "$GCC" = yes; then
16280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16283 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16285 hardcode_action_F77=
16286 if test -n "$hardcode_libdir_flag_spec_F77" || \
16287 test -n "$runpath_var_F77" || \
16288 test "X$hardcode_automatic_F77" = "Xyes" ; then
16290 # We can hardcode non-existant directories.
16291 if test "$hardcode_direct_F77" != no &&
16292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16293 # have to relink, otherwise we might link with an installed library
16294 # when we should be linking with a yet-to-be-installed one
16295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16296 test "$hardcode_minus_L_F77" != no; then
16297 # Linking always hardcodes the temporary library directory.
16298 hardcode_action_F77=relink
16300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16301 hardcode_action_F77=immediate
16304 # We cannot hardcode anything, or else we can only hardcode existing
16306 hardcode_action_F77=unsupported
16308 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16309 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16311 if test "$hardcode_action_F77" = relink; then
16312 # Fast installation is not supported
16313 enable_fast_install=no
16314 elif test "$shlibpath_overrides_runpath" = yes ||
16315 test "$enable_shared" = no; then
16316 # Fast installation is not necessary
16317 enable_fast_install=needless
16321 # The else clause should only fire when bootstrapping the
16322 # libtool distribution, otherwise you forgot to ship ltmain.sh
16323 # with your package, and you will get complaints that there are
16324 # no rules to generate ltmain.sh.
16325 if test -f "$ltmain"; then
16326 # See if we are running on zsh, and set the options which allow our commands through
16327 # without removal of \ escapes.
16328 if test -n "${ZSH_VERSION+set}" ; then
16329 setopt NO_GLOB_SUBST
16331 # Now quote all the things that may contain metacharacters while being
16332 # careful not to overquote the AC_SUBSTed values. We take copies of the
16333 # variables and quote the copies for generation of the libtool script.
16334 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16336 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16337 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16338 deplibs_check_method reload_flag reload_cmds need_locks \
16339 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16340 lt_cv_sys_global_symbol_to_c_name_address \
16341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16342 old_postinstall_cmds old_postuninstall_cmds \
16346 lt_prog_compiler_wl_F77 \
16347 lt_prog_compiler_pic_F77 \
16348 lt_prog_compiler_static_F77 \
16349 lt_prog_compiler_no_builtin_flag_F77 \
16350 export_dynamic_flag_spec_F77 \
16351 thread_safe_flag_spec_F77 \
16352 whole_archive_flag_spec_F77 \
16353 enable_shared_with_static_runtimes_F77 \
16354 old_archive_cmds_F77 \
16355 old_archive_from_new_cmds_F77 \
16356 predep_objects_F77 \
16357 postdep_objects_F77 \
16360 compiler_lib_search_path_F77 \
16361 compiler_lib_search_dirs_F77 \
16363 archive_expsym_cmds_F77 \
16364 postinstall_cmds_F77 \
16365 postuninstall_cmds_F77 \
16366 old_archive_from_expsyms_cmds_F77 \
16367 allow_undefined_flag_F77 \
16368 no_undefined_flag_F77 \
16369 export_symbols_cmds_F77 \
16370 hardcode_libdir_flag_spec_F77 \
16371 hardcode_libdir_flag_spec_ld_F77 \
16372 hardcode_libdir_separator_F77 \
16373 hardcode_automatic_F77 \
16375 module_expsym_cmds_F77 \
16376 lt_cv_prog_compiler_c_o_F77 \
16377 fix_srcfile_path_F77 \
16378 exclude_expsyms_F77 \
16379 include_expsyms_F77; do
16382 old_archive_cmds_F77 | \
16383 old_archive_from_new_cmds_F77 | \
16384 archive_cmds_F77 | \
16385 archive_expsym_cmds_F77 | \
16386 module_cmds_F77 | \
16387 module_expsym_cmds_F77 | \
16388 old_archive_from_expsyms_cmds_F77 | \
16389 export_symbols_cmds_F77 | \
16390 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16391 postinstall_cmds | postuninstall_cmds | \
16392 old_postinstall_cmds | old_postuninstall_cmds | \
16393 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16394 # Double-quote double-evaled strings.
16395 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16404 *'\$0 --fallback-echo"')
16405 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16411 cat <<__EOF__ >> "$cfgfile"
16412 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16416 # Shell to use when invoking shell scripts.
16419 # Whether or not to build shared libraries.
16420 build_libtool_libs=$enable_shared
16422 # Whether or not to build static libraries.
16423 build_old_libs=$enable_static
16425 # Whether or not to add -lc for building shared libraries.
16426 build_libtool_need_lc=$archive_cmds_need_lc_F77
16428 # Whether or not to disallow shared libs when runtime libs are static
16429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16431 # Whether or not to optimize for fast installation.
16432 fast_install=$enable_fast_install
16435 host_alias=$host_alias
16439 # The build system.
16440 build_alias=$build_alias
16444 # An echo program that does not interpret backslashes.
16449 AR_FLAGS=$lt_AR_FLAGS
16454 # LTCC compiler flags.
16455 LTCFLAGS=$lt_LTCFLAGS
16457 # A language-specific compiler.
16458 CC=$lt_compiler_F77
16460 # Is the compiler the GNU C compiler?
16466 # The linker used to build libraries.
16469 # Whether we need hard or soft links.
16472 # A BSD-compatible nm program.
16475 # A symbol stripping program
16478 # Used to examine libraries when file_magic_cmd begins "file"
16479 MAGIC_CMD=$MAGIC_CMD
16481 # Used on cygwin: DLL creation program.
16484 # Used on cygwin: object dumper.
16487 # Used on cygwin: assembler.
16490 # The name of the directory that contains temporary libtool files.
16493 # How to create reloadable object files.
16494 reload_flag=$lt_reload_flag
16495 reload_cmds=$lt_reload_cmds
16497 # How to pass a linker flag through the compiler.
16498 wl=$lt_lt_prog_compiler_wl_F77
16500 # Object file suffix (normally "o").
16501 objext="$ac_objext"
16503 # Old archive suffix (normally "a").
16506 # Shared library suffix (normally ".so").
16507 shrext_cmds='$shrext_cmds'
16509 # Executable file suffix (normally "").
16512 # Additional compiler flags for building library objects.
16513 pic_flag=$lt_lt_prog_compiler_pic_F77
16516 # What is the maximum length of a command?
16517 max_cmd_len=$lt_cv_sys_max_cmd_len
16519 # Does compiler simultaneously support -c and -o options?
16520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16522 # Must we lock files when doing compilation?
16523 need_locks=$lt_need_locks
16525 # Do we need the lib prefix for modules?
16526 need_lib_prefix=$need_lib_prefix
16528 # Do we need a version for libraries?
16529 need_version=$need_version
16531 # Whether dlopen is supported.
16532 dlopen_support=$enable_dlopen
16534 # Whether dlopen of programs is supported.
16535 dlopen_self=$enable_dlopen_self
16537 # Whether dlopen of statically linked programs is supported.
16538 dlopen_self_static=$enable_dlopen_self_static
16540 # Compiler flag to prevent dynamic linking.
16541 link_static_flag=$lt_lt_prog_compiler_static_F77
16543 # Compiler flag to turn off builtin functions.
16544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16546 # Compiler flag to allow reflexive dlopens.
16547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16549 # Compiler flag to generate shared objects directly from archives.
16550 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16552 # Compiler flag to generate thread-safe objects.
16553 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16555 # Library versioning type.
16556 version_type=$version_type
16558 # Format of library name prefix.
16559 libname_spec=$lt_libname_spec
16561 # List of archive names. First name is the real one, the rest are links.
16562 # The last name is the one that the linker finds with -lNAME.
16563 library_names_spec=$lt_library_names_spec
16565 # The coded name of the library, if different from the real name.
16566 soname_spec=$lt_soname_spec
16568 # Commands used to build and install an old-style archive.
16570 old_archive_cmds=$lt_old_archive_cmds_F77
16571 old_postinstall_cmds=$lt_old_postinstall_cmds
16572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16574 # Create an old-style archive from a shared archive.
16575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16577 # Create a temporary old-style archive to link instead of a shared archive.
16578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16580 # Commands used to build and install a shared archive.
16581 archive_cmds=$lt_archive_cmds_F77
16582 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16583 postinstall_cmds=$lt_postinstall_cmds
16584 postuninstall_cmds=$lt_postuninstall_cmds
16586 # Commands used to build a loadable module (assumed same as above if empty)
16587 module_cmds=$lt_module_cmds_F77
16588 module_expsym_cmds=$lt_module_expsym_cmds_F77
16590 # Commands to strip libraries.
16591 old_striplib=$lt_old_striplib
16592 striplib=$lt_striplib
16594 # Dependencies to place before the objects being linked to create a
16596 predep_objects=$lt_predep_objects_F77
16598 # Dependencies to place after the objects being linked to create a
16600 postdep_objects=$lt_postdep_objects_F77
16602 # Dependencies to place before the objects being linked to create a
16604 predeps=$lt_predeps_F77
16606 # Dependencies to place after the objects being linked to create a
16608 postdeps=$lt_postdeps_F77
16610 # The directories searched by this compiler when creating a shared
16612 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16614 # The library search path used internally by the compiler when linking
16615 # a shared library.
16616 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16618 # Method to check whether dependent libraries are shared objects.
16619 deplibs_check_method=$lt_deplibs_check_method
16621 # Command to use when deplibs_check_method == file_magic.
16622 file_magic_cmd=$lt_file_magic_cmd
16624 # Flag that allows shared libraries with undefined symbols to be built.
16625 allow_undefined_flag=$lt_allow_undefined_flag_F77
16627 # Flag that forces no undefined symbols.
16628 no_undefined_flag=$lt_no_undefined_flag_F77
16630 # Commands used to finish a libtool library installation in a directory.
16631 finish_cmds=$lt_finish_cmds
16633 # Same as above, but a single script fragment to be evaled but not shown.
16634 finish_eval=$lt_finish_eval
16636 # Take the output of nm and produce a listing of raw symbols and C names.
16637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16639 # Transform the output of nm in a proper C declaration
16640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16642 # Transform the output of nm in a C name address pair
16643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16645 # This is the shared library runtime path variable.
16646 runpath_var=$runpath_var
16648 # This is the shared library path variable.
16649 shlibpath_var=$shlibpath_var
16651 # Is shlibpath searched before the hard-coded library search path?
16652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16654 # How to hardcode a shared library path into an executable.
16655 hardcode_action=$hardcode_action_F77
16657 # Whether we should hardcode library paths into libraries.
16658 hardcode_into_libs=$hardcode_into_libs
16660 # Flag to hardcode \$libdir into a binary during linking.
16661 # This must work even if \$libdir does not exist.
16662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16664 # If ld is used when linking, flag to hardcode \$libdir into
16665 # a binary during linking. This must work even if \$libdir does
16667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16669 # Whether we need a single -rpath flag with a separated argument.
16670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16673 # resulting binary.
16674 hardcode_direct=$hardcode_direct_F77
16676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16677 # resulting binary.
16678 hardcode_minus_L=$hardcode_minus_L_F77
16680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16681 # the resulting binary.
16682 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16684 # Set to yes if building a shared library automatically hardcodes DIR into the library
16685 # and all subsequent libraries and executables linked against it.
16686 hardcode_automatic=$hardcode_automatic_F77
16688 # Variables whose values should be saved in libtool wrapper scripts and
16689 # restored at relink time.
16690 variables_saved_for_relink="$variables_saved_for_relink"
16692 # Whether libtool must link a program against all its dependency libraries.
16693 link_all_deplibs=$link_all_deplibs_F77
16695 # Compile-time system search path for libraries
16696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16698 # Run-time system search path for libraries
16699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16701 # Fix the shell variable \$srcfile for the compiler.
16702 fix_srcfile_path=$lt_fix_srcfile_path
16704 # Set to yes if exported symbols are required.
16705 always_export_symbols=$always_export_symbols_F77
16707 # The commands to list exported symbols.
16708 export_symbols_cmds=$lt_export_symbols_cmds_F77
16710 # The commands to extract the exported symbol list from a shared archive.
16711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16713 # Symbols that should not be listed in the preloaded symbols.
16714 exclude_expsyms=$lt_exclude_expsyms_F77
16716 # Symbols that must always be exported.
16717 include_expsyms=$lt_include_expsyms_F77
16719 # ### END LIBTOOL TAG CONFIG: $tagname
16725 # If there is no Makefile yet, we rely on a make rule to execute
16726 # `config.status --recheck' to rerun these tests and create the
16727 # libtool script then.
16728 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16729 if test -f "$ltmain_in"; then
16730 test -f Makefile && make "$ltmain"
16736 ac_cpp='$CPP $CPPFLAGS'
16737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16749 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16752 # Source file extension for Java test sources.
16755 # Object file extension for compiled Java test sources.
16759 # Code to be used in simple compile tests
16760 lt_simple_compile_test_code="class foo {}"
16762 # Code to be used in simple link tests
16763 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16767 # If no C compiler was specified, use CC.
16770 # If no C compiler flags were specified, use CFLAGS.
16771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16773 # Allow CC to be a program name with arguments.
16777 # save warnings/boilerplate of simple test code
16778 ac_outfile=conftest.$ac_objext
16779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16781 _lt_compiler_boilerplate=`cat conftest.err`
16784 ac_outfile=conftest.$ac_objext
16785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16787 _lt_linker_boilerplate=`cat conftest.err`
16791 # Allow CC to be a program name with arguments.
16796 for cc_temp in $compiler""; do
16798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16804 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16807 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16808 archive_cmds_need_lc_GCJ=no
16810 old_archive_cmds_GCJ=$old_archive_cmds
16813 lt_prog_compiler_no_builtin_flag_GCJ=
16815 if test "$GCC" = yes; then
16816 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16819 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16820 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16821 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 lt_cv_prog_compiler_rtti_exceptions=no
16825 ac_outfile=conftest.$ac_objext
16826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16827 lt_compiler_flag="-fno-rtti -fno-exceptions"
16828 # Insert the option either (1) after the last *FLAGS variable, or
16829 # (2) before a word containing "conftest.", or (3) at the end.
16830 # Note that $ac_compile itself does not contain backslashes and begins
16831 # with a dollar sign (not a hyphen), so the echo should work correctly.
16832 # The option is referenced via a variable to avoid confusing sed.
16833 lt_compile=`echo "$ac_compile" | $SED \
16834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16836 -e 's:$: $lt_compiler_flag:'`
16837 (eval echo "\"\$as_me:16837: $lt_compile\"" >&5)
16838 (eval "$lt_compile" 2>conftest.err)
16840 cat conftest.err >&5
16841 echo "$as_me:16841: \$? = $ac_status" >&5
16842 if (exit $ac_status) && test -s "$ac_outfile"; then
16843 # The compiler can only warn and ignore the option if not recognized
16844 # So say no if there are warnings other than the usual output.
16845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16848 lt_cv_prog_compiler_rtti_exceptions=yes
16854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16855 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16857 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16858 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16865 lt_prog_compiler_wl_GCJ=
16866 lt_prog_compiler_pic_GCJ=
16867 lt_prog_compiler_static_GCJ=
16869 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16870 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16872 if test "$GCC" = yes; then
16873 lt_prog_compiler_wl_GCJ='-Wl,'
16874 lt_prog_compiler_static_GCJ='-static'
16878 # All AIX code is PIC.
16879 if test "$host_cpu" = ia64; then
16880 # AIX 5 now supports IA64 processor
16881 lt_prog_compiler_static_GCJ='-Bstatic'
16886 # FIXME: we need at least 68020 code to build shared libraries, but
16887 # adding the `-m68020' flag to GCC prevents building anything better,
16889 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16893 # PIC is the default for these OSes.
16896 mingw* | cygwin* | pw32* | os2*)
16897 # This hack is so that the source file can tell whether it is being
16898 # built for inclusion in a dll (and should export symbols for example).
16899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16900 # (--disable-auto-import) libraries
16904 darwin* | rhapsody*)
16905 # PIC is the default on this platform
16906 # Common symbols not allowed in MH_DYLIB files
16907 lt_prog_compiler_pic_GCJ='-fno-common'
16911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16912 # Instead, we relocate shared libraries at runtime.
16916 # Just because we use GCC doesn't mean we suddenly get shared libraries
16917 # on systems that don't support them.
16918 lt_prog_compiler_can_build_shared_GCJ=no
16923 if test -d /usr/nec; then
16924 lt_prog_compiler_pic_GCJ=-Kconform_pic
16929 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16930 # not for PA HP-UX.
16936 lt_prog_compiler_pic_GCJ='-fPIC'
16942 lt_prog_compiler_pic_GCJ='-fPIC'
16946 # PORTME Check for flag to pass linker flags through the system compiler.
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 if test "$host_cpu" = ia64; then
16951 # AIX 5 now supports IA64 processor
16952 lt_prog_compiler_static_GCJ='-Bstatic'
16954 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16958 # PIC is the default on this platform
16959 # Common symbols not allowed in MH_DYLIB files
16960 case $cc_basename in
16962 lt_prog_compiler_pic_GCJ='-qnocommon'
16963 lt_prog_compiler_wl_GCJ='-Wl,'
16968 mingw* | cygwin* | pw32* | os2*)
16969 # This hack is so that the source file can tell whether it is being
16970 # built for inclusion in a dll (and should export symbols for example).
16974 hpux9* | hpux10* | hpux11*)
16975 lt_prog_compiler_wl_GCJ='-Wl,'
16976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16977 # not for PA HP-UX.
16983 lt_prog_compiler_pic_GCJ='+Z'
16986 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16987 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16990 irix5* | irix6* | nonstopux*)
16991 lt_prog_compiler_wl_GCJ='-Wl,'
16992 # PIC (with -KPIC) is the default.
16993 lt_prog_compiler_static_GCJ='-non_shared'
16997 lt_prog_compiler_pic_GCJ='-KPIC'
16998 lt_prog_compiler_static_GCJ='-Bstatic'
17001 linux* | k*bsd*-gnu)
17002 case $cc_basename in
17004 lt_prog_compiler_wl_GCJ='-Wl,'
17005 lt_prog_compiler_pic_GCJ='-KPIC'
17006 lt_prog_compiler_static_GCJ='-static'
17008 pgcc* | pgf77* | pgf90* | pgf95*)
17009 # Portland Group compilers (*not* the Pentium gcc compiler,
17010 # which looks to be a dead project)
17011 lt_prog_compiler_wl_GCJ='-Wl,'
17012 lt_prog_compiler_pic_GCJ='-fpic'
17013 lt_prog_compiler_static_GCJ='-Bstatic'
17016 lt_prog_compiler_wl_GCJ='-Wl,'
17017 # All Alpha code is PIC.
17018 lt_prog_compiler_static_GCJ='-non_shared'
17021 case `$CC -V 2>&1 | sed 5q` in
17024 lt_prog_compiler_pic_GCJ='-KPIC'
17025 lt_prog_compiler_static_GCJ='-Bstatic'
17026 lt_prog_compiler_wl_GCJ='-Wl,'
17029 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17030 lt_prog_compiler_pic_GCJ='-KPIC'
17031 lt_prog_compiler_static_GCJ='-Bstatic'
17032 lt_prog_compiler_wl_GCJ=''
17039 osf3* | osf4* | osf5*)
17040 lt_prog_compiler_wl_GCJ='-Wl,'
17041 # All OSF/1 code is PIC.
17042 lt_prog_compiler_static_GCJ='-non_shared'
17046 lt_prog_compiler_static_GCJ='-non_shared'
17050 lt_prog_compiler_pic_GCJ='-KPIC'
17051 lt_prog_compiler_static_GCJ='-Bstatic'
17052 case $cc_basename in
17053 f77* | f90* | f95*)
17054 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17056 lt_prog_compiler_wl_GCJ='-Wl,';;
17061 lt_prog_compiler_wl_GCJ='-Qoption ld '
17062 lt_prog_compiler_pic_GCJ='-PIC'
17063 lt_prog_compiler_static_GCJ='-Bstatic'
17066 sysv4 | sysv4.2uw2* | sysv4.3*)
17067 lt_prog_compiler_wl_GCJ='-Wl,'
17068 lt_prog_compiler_pic_GCJ='-KPIC'
17069 lt_prog_compiler_static_GCJ='-Bstatic'
17073 if test -d /usr/nec ;then
17074 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17080 lt_prog_compiler_wl_GCJ='-Wl,'
17081 lt_prog_compiler_pic_GCJ='-KPIC'
17082 lt_prog_compiler_static_GCJ='-Bstatic'
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17087 lt_prog_compiler_can_build_shared_GCJ=no
17091 lt_prog_compiler_pic_GCJ='-pic'
17092 lt_prog_compiler_static_GCJ='-Bstatic'
17096 lt_prog_compiler_can_build_shared_GCJ=no
17101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17102 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17105 # Check to make sure the PIC flag actually works.
17107 if test -n "$lt_prog_compiler_pic_GCJ"; then
17109 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17110 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17111 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 lt_cv_prog_compiler_pic_works_GCJ=no
17115 ac_outfile=conftest.$ac_objext
17116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17118 # Insert the option either (1) after the last *FLAGS variable, or
17119 # (2) before a word containing "conftest.", or (3) at the end.
17120 # Note that $ac_compile itself does not contain backslashes and begins
17121 # with a dollar sign (not a hyphen), so the echo should work correctly.
17122 # The option is referenced via a variable to avoid confusing sed.
17123 lt_compile=`echo "$ac_compile" | $SED \
17124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17126 -e 's:$: $lt_compiler_flag:'`
17127 (eval echo "\"\$as_me:17127: $lt_compile\"" >&5)
17128 (eval "$lt_compile" 2>conftest.err)
17130 cat conftest.err >&5
17131 echo "$as_me:17131: \$? = $ac_status" >&5
17132 if (exit $ac_status) && test -s "$ac_outfile"; then
17133 # The compiler can only warn and ignore the option if not recognized
17134 # So say no if there are warnings other than the usual output.
17135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17138 lt_cv_prog_compiler_pic_works_GCJ=yes
17144 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17145 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17147 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17148 case $lt_prog_compiler_pic_GCJ in
17150 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17153 lt_prog_compiler_pic_GCJ=
17154 lt_prog_compiler_can_build_shared_GCJ=no
17159 # For platforms which do not support PIC, -DPIC is meaningless:
17161 lt_prog_compiler_pic_GCJ=
17164 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17169 # Check to make sure the static flag actually works.
17171 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17172 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17173 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17174 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 lt_cv_prog_compiler_static_works_GCJ=no
17178 save_LDFLAGS="$LDFLAGS"
17179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17182 # The linker can only warn and ignore the option if not recognized
17183 # So say no if there are warnings
17184 if test -s conftest.err; then
17185 # Append any errors to the config.log.
17186 cat conftest.err 1>&5
17187 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17189 if diff conftest.exp conftest.er2 >/dev/null; then
17190 lt_cv_prog_compiler_static_works_GCJ=yes
17193 lt_cv_prog_compiler_static_works_GCJ=yes
17197 LDFLAGS="$save_LDFLAGS"
17200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17201 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17203 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17206 lt_prog_compiler_static_GCJ=
17210 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17211 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17212 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 lt_cv_prog_compiler_c_o_GCJ=no
17216 $rm -r conftest 2>/dev/null
17220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17222 lt_compiler_flag="-o out/conftest2.$ac_objext"
17223 # Insert the option either (1) after the last *FLAGS variable, or
17224 # (2) before a word containing "conftest.", or (3) at the end.
17225 # Note that $ac_compile itself does not contain backslashes and begins
17226 # with a dollar sign (not a hyphen), so the echo should work correctly.
17227 lt_compile=`echo "$ac_compile" | $SED \
17228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17230 -e 's:$: $lt_compiler_flag:'`
17231 (eval echo "\"\$as_me:17231: $lt_compile\"" >&5)
17232 (eval "$lt_compile" 2>out/conftest.err)
17234 cat out/conftest.err >&5
17235 echo "$as_me:17235: \$? = $ac_status" >&5
17236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17238 # The compiler can only warn and ignore the option if not recognized
17239 # So say no if there are warnings
17240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17243 lt_cv_prog_compiler_c_o_GCJ=yes
17248 # SGI C++ compiler will create directory out/ii_files/ for
17249 # template instantiation
17250 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17251 $rm out/* && rmdir out
17257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17258 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17261 hard_links="nottested"
17262 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17263 # do not overwrite the value of need_locks provided by the user
17264 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17265 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17270 ln conftest.a conftest.b 2>&5 || hard_links=no
17271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17272 { echo "$as_me:$LINENO: result: $hard_links" >&5
17273 echo "${ECHO_T}$hard_links" >&6; }
17274 if test "$hard_links" = no; then
17275 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17276 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17283 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17284 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17287 allow_undefined_flag_GCJ=
17288 enable_shared_with_static_runtimes_GCJ=no
17290 archive_expsym_cmds_GCJ=
17291 old_archive_From_new_cmds_GCJ=
17292 old_archive_from_expsyms_cmds_GCJ=
17293 export_dynamic_flag_spec_GCJ=
17294 whole_archive_flag_spec_GCJ=
17295 thread_safe_flag_spec_GCJ=
17296 hardcode_libdir_flag_spec_GCJ=
17297 hardcode_libdir_flag_spec_ld_GCJ=
17298 hardcode_libdir_separator_GCJ=
17299 hardcode_direct_GCJ=no
17300 hardcode_minus_L_GCJ=no
17301 hardcode_shlibpath_var_GCJ=unsupported
17302 link_all_deplibs_GCJ=unknown
17303 hardcode_automatic_GCJ=no
17305 module_expsym_cmds_GCJ=
17306 always_export_symbols_GCJ=no
17307 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17308 # include_expsyms should be a list of space-separated symbols to be *always*
17309 # included in the symbol list
17310 include_expsyms_GCJ=
17311 # exclude_expsyms can be an extended regexp of symbols to exclude
17312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17314 # as well as any symbol that contains `d'.
17315 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17317 # platforms (ab)use it in PIC code, but their linkers get confused if
17318 # the symbol is explicitly referenced. Since portable code cannot
17319 # rely on this symbol name, it's probably fine to never include it in
17320 # preloaded symbol tables.
17321 # Exclude shared library initialization/finalization symbols.
17322 extract_expsyms_cmds=
17323 # Just being paranoid about ensuring that cc_basename is set.
17324 for cc_temp in $compiler""; do
17326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17335 cygwin* | mingw* | pw32*)
17336 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17337 # When not using gcc, we currently assume that we are using
17338 # Microsoft Visual C++.
17339 if test "$GCC" != yes; then
17344 # we just hope/assume this is gcc and not c89 (= MSVC++)
17353 if test "$with_gnu_ld" = yes; then
17354 # If archive_cmds runs LD, not CC, wlarc should be empty
17357 # Set some defaults for GNU ld with shared library support. These
17358 # are reset later if shared libraries are not supported. Putting them
17359 # here allows them to be overridden if necessary.
17360 runpath_var=LD_RUN_PATH
17361 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17362 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17363 # ancient GNU ld didn't support --whole-archive et. al.
17364 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17365 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17367 whole_archive_flag_spec_GCJ=
17369 supports_anon_versioning=no
17370 case `$LD -v 2>/dev/null` in
17371 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17372 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17373 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17374 *\ 2.11.*) ;; # other 2.11 versions
17375 *) supports_anon_versioning=yes ;;
17378 # See if GNU ld supports shared libraries.
17381 # On AIX/PPC, the GNU linker is very broken
17382 if test "$host_cpu" != ia64; then
17386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17387 *** to be unable to reliably create shared libraries on AIX.
17388 *** Therefore, libtool is disabling shared libraries support. If you
17389 *** really care for shared libraries, you may want to modify your PATH
17390 *** so that a non-GNU linker is found, and then restart.
17397 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)'
17398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399 hardcode_minus_L_GCJ=yes
17401 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17402 # that the semantics of dynamic libraries on AmigaOS, at least up
17403 # to version 4, is to share data among multiple programs linked
17404 # with the same dynamic library. Since this doesn't match the
17405 # behavior of shared libraries on other platforms, we can't use
17411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17412 allow_undefined_flag_GCJ=unsupported
17413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17414 # support --undefined. This deserves some investigation. FIXME
17415 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17421 cygwin* | mingw* | pw32*)
17422 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17423 # as there is no search path for DLLs.
17424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425 allow_undefined_flag_GCJ=unsupported
17426 always_export_symbols_GCJ=no
17427 enable_shared_with_static_runtimes_GCJ=yes
17428 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17430 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17431 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17432 # If the export-symbols file already is a .def file (1st line
17433 # is EXPORTS), use it as is; otherwise, prepend...
17434 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17435 cp $export_symbols $output_objdir/$soname.def;
17437 echo EXPORTS > $output_objdir/$soname.def;
17438 cat $export_symbols >> $output_objdir/$soname.def;
17440 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17447 hardcode_direct_GCJ=no
17448 hardcode_shlibpath_var_GCJ=no
17449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17450 export_dynamic_flag_spec_GCJ='${wl}-E'
17451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17452 # Instead, shared libraries are loaded at an image base (0x10000000 by
17453 # default) and relocated if they conflict, which is a slow very memory
17454 # consuming and fragmenting process. To avoid this, we pick a random,
17455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17456 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17457 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'
17458 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'
17461 gnu* | linux* | k*bsd*-gnu)
17462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17464 case $cc_basename,$host_cpu in
17465 pgcc*) # Portland Group C compiler
17466 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'
17467 tmp_addflag=' $pic_flag'
17469 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17470 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'
17471 tmp_addflag=' $pic_flag -Mnomain' ;;
17472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17473 tmp_addflag=' -i_dynamic' ;;
17474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17475 tmp_addflag=' -i_dynamic -nofor_main' ;;
17476 ifc* | ifort*) # Intel Fortran compiler
17477 tmp_addflag=' -nofor_main' ;;
17479 case `$CC -V 2>&1 | sed 5q` in
17480 *Sun\ C*) # Sun C 5.9
17481 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17482 tmp_sharedflag='-G' ;;
17483 *Sun\ F*) # Sun Fortran 8.3
17484 tmp_sharedflag='-G' ;;
17486 tmp_sharedflag='-shared' ;;
17488 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490 if test $supports_anon_versioning = yes; then
17491 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17493 $echo "local: *; };" >> $output_objdir/$libname.ver~
17494 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17496 link_all_deplibs_GCJ=no
17502 netbsd* | netbsdelf*-gnu)
17503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17504 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17508 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17513 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17518 *** create shared libraries on Solaris systems. Therefore, libtool
17519 *** is disabling shared libraries support. We urge you to upgrade GNU
17520 *** binutils to release 2.9.1 or newer. Another option is to modify
17521 *** your PATH or compiler configuration so that the native linker is
17522 *** used, and then restart.
17525 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17527 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17534 case `$LD -v 2>&1` in
17535 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17540 *** reliably create shared libraries on SCO systems. Therefore, libtool
17541 *** is disabling shared libraries support. We urge you to upgrade GNU
17542 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17543 *** your PATH or compiler configuration so that the native linker is
17544 *** used, and then restart.
17549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17561 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_direct_GCJ=yes
17564 hardcode_shlibpath_var_GCJ=no
17568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17569 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17570 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17577 if test "$ld_shlibs_GCJ" = no; then
17579 hardcode_libdir_flag_spec_GCJ=
17580 export_dynamic_flag_spec_GCJ=
17581 whole_archive_flag_spec_GCJ=
17584 # PORTME fill in a description of your system's linker (not GNU ld)
17587 allow_undefined_flag_GCJ=unsupported
17588 always_export_symbols_GCJ=yes
17589 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'
17590 # Note: this linker hardcodes the directories in LIBPATH if there
17591 # are no directories specified by -L.
17592 hardcode_minus_L_GCJ=yes
17593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17594 # Neither direct hardcoding nor static linking is supported with a
17596 hardcode_direct_GCJ=unsupported
17601 if test "$host_cpu" = ia64; then
17602 # On IA64, the linker does run time linking by default, so we don't
17603 # have to do anything special.
17604 aix_use_runtimelinking=no
17605 exp_sym_flag='-Bexport'
17608 # If we're using GNU nm, then we don't want the "-C" option.
17609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17611 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'
17613 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'
17615 aix_use_runtimelinking=no
17617 # Test if we are trying to use run time linking or normal
17618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17619 # need to do runtime linking.
17620 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17621 for ld_flag in $LDFLAGS; do
17622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17623 aix_use_runtimelinking=yes
17630 exp_sym_flag='-bexport'
17631 no_entry_flag='-bnoentry'
17634 # When large executables or shared objects are built, AIX ld can
17635 # have problems creating the table of contents. If linking a library
17636 # or program results in "error TOC overflow" add -mminimal-toc to
17637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17640 archive_cmds_GCJ=''
17641 hardcode_direct_GCJ=yes
17642 hardcode_libdir_separator_GCJ=':'
17643 link_all_deplibs_GCJ=yes
17645 if test "$GCC" = yes; then
17646 case $host_os in aix4.[012]|aix4.[012].*)
17647 # We only want to do this on AIX 4.2 and lower, the check
17648 # below for broken collect2 doesn't work under 4.3+
17649 collect2name=`${CC} -print-prog-name=collect2`
17650 if test -f "$collect2name" && \
17651 strings "$collect2name" | grep resolve_lib_name >/dev/null
17653 # We have reworked collect2
17656 # We have old collect2
17657 hardcode_direct_GCJ=unsupported
17658 # It fails to find uninstalled libraries when the uninstalled
17659 # path is not listed in the libpath. Setting hardcode_minus_L
17660 # to unsupported forces relinking
17661 hardcode_minus_L_GCJ=yes
17662 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17663 hardcode_libdir_separator_GCJ=
17667 shared_flag='-shared'
17668 if test "$aix_use_runtimelinking" = yes; then
17669 shared_flag="$shared_flag "'${wl}-G'
17673 if test "$host_cpu" = ia64; then
17674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17675 # chokes on -Wl,-G. The following line is correct:
17678 if test "$aix_use_runtimelinking" = yes; then
17679 shared_flag='${wl}-G'
17681 shared_flag='${wl}-bM:SRE'
17686 # It seems that -bexpall does not export symbols beginning with
17687 # underscore (_), so it is better to generate a list of symbols to export.
17688 always_export_symbols_GCJ=yes
17689 if test "$aix_use_runtimelinking" = yes; then
17690 # Warning - without using the other runtime loading flags (-brtl),
17691 # -berok will link without error, but may produce a broken library.
17692 allow_undefined_flag_GCJ='-berok'
17693 # Determine the default libpath from the value encoded in an empty executable.
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest$ac_exeext &&
17726 $as_test_x conftest$ac_exeext; then
17728 lt_aix_libpath_sed='
17729 /Import File Strings/,/^$/ {
17735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17736 # Check for a 64-bit object if we didn't find anything.
17737 if test -z "$aix_libpath"; then
17738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17748 conftest$ac_exeext conftest.$ac_ext
17749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17751 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17752 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"
17754 if test "$host_cpu" = ia64; then
17755 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17756 allow_undefined_flag_GCJ="-z nodefs"
17757 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"
17759 # Determine the default libpath from the value encoded in an empty executable.
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (ac_try="$ac_link"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_link") 2>conftest.er1
17784 grep -v '^ *+' conftest.er1 >conftest.err
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } && {
17789 test -z "$ac_c_werror_flag" ||
17790 test ! -s conftest.err
17791 } && test -s conftest$ac_exeext &&
17792 $as_test_x conftest$ac_exeext; then
17794 lt_aix_libpath_sed='
17795 /Import File Strings/,/^$/ {
17801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17802 # Check for a 64-bit object if we didn't find anything.
17803 if test -z "$aix_libpath"; then
17804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17814 conftest$ac_exeext conftest.$ac_ext
17815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17817 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17818 # Warning - without using the other run time loading flags,
17819 # -berok will link without error, but may produce a broken library.
17820 no_undefined_flag_GCJ=' ${wl}-bernotok'
17821 allow_undefined_flag_GCJ=' ${wl}-berok'
17822 # Exported symbols can be pulled into shared objects from archives
17823 whole_archive_flag_spec_GCJ='$convenience'
17824 archive_cmds_need_lc_GCJ=yes
17825 # This is similar to how AIX traditionally builds its shared libraries.
17826 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'
17832 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)'
17833 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834 hardcode_minus_L_GCJ=yes
17835 # see comment about different semantics on the GNU ld section
17840 export_dynamic_flag_spec_GCJ=-rdynamic
17843 cygwin* | mingw* | pw32*)
17844 # When not using gcc, we currently assume that we are using
17845 # Microsoft Visual C++.
17846 # hardcode_libdir_flag_spec is actually meaningless, as there is
17847 # no search path for DLLs.
17848 hardcode_libdir_flag_spec_GCJ=' '
17849 allow_undefined_flag_GCJ=unsupported
17850 # Tell ltmain to make .lib files, not .a files.
17852 # Tell ltmain to make .dll files, not .so files.
17854 # FIXME: Setting linknames here is a bad hack.
17855 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17856 # The linker will automatically build a .lib file if we build a DLL.
17857 old_archive_From_new_cmds_GCJ='true'
17858 # FIXME: Should let the user specify the lib program.
17859 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17860 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17861 enable_shared_with_static_runtimes_GCJ=yes
17864 darwin* | rhapsody*)
17866 rhapsody* | darwin1.[012])
17867 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17870 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17871 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17873 case ${MACOSX_DEPLOYMENT_TARGET} in
17875 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17878 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17884 archive_cmds_need_lc_GCJ=no
17885 hardcode_direct_GCJ=no
17886 hardcode_automatic_GCJ=yes
17887 hardcode_shlibpath_var_GCJ=unsupported
17888 whole_archive_flag_spec_GCJ=''
17889 link_all_deplibs_GCJ=yes
17890 if test "$GCC" = yes ; then
17891 output_verbose_link_cmd='echo'
17892 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17893 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17894 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17895 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17897 case $cc_basename in
17899 output_verbose_link_cmd='echo'
17900 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17901 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17903 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17904 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}'
17914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916 hardcode_shlibpath_var_GCJ=no
17923 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17924 # support. Future versions do this automatically, but an explicit c++rt0.o
17925 # does not break anything, and helps significantly (at the cost of a little
17928 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930 hardcode_direct_GCJ=yes
17931 hardcode_shlibpath_var_GCJ=no
17934 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17936 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17937 hardcode_direct_GCJ=yes
17938 hardcode_minus_L_GCJ=yes
17939 hardcode_shlibpath_var_GCJ=no
17942 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17943 freebsd* | dragonfly*)
17944 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17945 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17946 hardcode_direct_GCJ=yes
17947 hardcode_shlibpath_var_GCJ=no
17951 if test "$GCC" = yes; then
17952 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'
17954 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'
17956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17957 hardcode_libdir_separator_GCJ=:
17958 hardcode_direct_GCJ=yes
17960 # hardcode_minus_L: Not really in the search PATH,
17961 # but as the default location of the library.
17962 hardcode_minus_L_GCJ=yes
17963 export_dynamic_flag_spec_GCJ='${wl}-E'
17967 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17968 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17970 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17972 if test "$with_gnu_ld" = no; then
17973 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17974 hardcode_libdir_separator_GCJ=:
17976 hardcode_direct_GCJ=yes
17977 export_dynamic_flag_spec_GCJ='${wl}-E'
17979 # hardcode_minus_L: Not really in the search PATH,
17980 # but as the default location of the library.
17981 hardcode_minus_L_GCJ=yes
17986 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17989 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17992 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17995 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18001 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18007 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18011 if test "$with_gnu_ld" = no; then
18012 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18013 hardcode_libdir_separator_GCJ=:
18017 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18018 hardcode_direct_GCJ=no
18019 hardcode_shlibpath_var_GCJ=no
18022 hardcode_direct_GCJ=yes
18023 export_dynamic_flag_spec_GCJ='${wl}-E'
18025 # hardcode_minus_L: Not really in the search PATH,
18026 # but as the default location of the library.
18027 hardcode_minus_L_GCJ=yes
18033 irix5* | irix6* | nonstopux*)
18034 if test "$GCC" = yes; then
18035 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'
18037 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'
18038 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18041 hardcode_libdir_separator_GCJ=:
18042 link_all_deplibs_GCJ=yes
18045 netbsd* | netbsdelf*-gnu)
18046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18049 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18051 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18052 hardcode_direct_GCJ=yes
18053 hardcode_shlibpath_var_GCJ=no
18057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_direct_GCJ=yes
18059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18060 hardcode_libdir_separator_GCJ=:
18061 hardcode_shlibpath_var_GCJ=no
18065 if test -f /usr/libexec/ld.so; then
18066 hardcode_direct_GCJ=yes
18067 hardcode_shlibpath_var_GCJ=no
18068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18069 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18070 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18072 export_dynamic_flag_spec_GCJ='${wl}-E'
18075 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18076 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18080 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18081 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18091 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18092 hardcode_minus_L_GCJ=yes
18093 allow_undefined_flag_GCJ=unsupported
18094 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'
18095 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18099 if test "$GCC" = yes; then
18100 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18101 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'
18103 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18104 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'
18106 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18107 hardcode_libdir_separator_GCJ=:
18110 osf4* | osf5*) # as osf3* with the addition of -msym flag
18111 if test "$GCC" = yes; then
18112 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18113 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'
18114 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18116 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18117 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'
18118 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~
18119 $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'
18121 # Both c and cxx compiler support -rpath directly
18122 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18124 hardcode_libdir_separator_GCJ=:
18128 no_undefined_flag_GCJ=' -z text'
18129 if test "$GCC" = yes; then
18131 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18133 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18136 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18138 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18140 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18141 hardcode_shlibpath_var_GCJ=no
18143 solaris2.[0-5] | solaris2.[0-5].*) ;;
18145 # The compiler driver will combine and reorder linker options,
18146 # but understands `-z linker_flag'. GCC discards it without `$wl',
18147 # but is careful enough not to reorder.
18148 # Supported since Solaris 2.6 (maybe 2.5.1?)
18149 if test "$GCC" = yes; then
18150 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18152 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18156 link_all_deplibs_GCJ=yes
18160 if test "x$host_vendor" = xsequent; then
18161 # Use $CC to link under sequent, because it throws in some extra .o
18162 # files that make .init and .fini sections work.
18163 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18165 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18168 hardcode_direct_GCJ=yes
18169 hardcode_minus_L_GCJ=yes
18170 hardcode_shlibpath_var_GCJ=no
18174 case $host_vendor in
18176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177 hardcode_direct_GCJ=yes # is this really true???
18180 ## LD is ld it makes a PLAMLIB
18181 ## CC just makes a GrossModule.
18182 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18183 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18184 hardcode_direct_GCJ=no
18187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18191 runpath_var='LD_RUN_PATH'
18192 hardcode_shlibpath_var_GCJ=no
18196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197 hardcode_shlibpath_var_GCJ=no
18198 export_dynamic_flag_spec_GCJ='-Bexport'
18202 if test -d /usr/nec; then
18203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 hardcode_shlibpath_var_GCJ=no
18205 runpath_var=LD_RUN_PATH
18206 hardcode_runpath_var=yes
18211 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18212 no_undefined_flag_GCJ='${wl}-z,text'
18213 archive_cmds_need_lc_GCJ=no
18214 hardcode_shlibpath_var_GCJ=no
18215 runpath_var='LD_RUN_PATH'
18217 if test "$GCC" = yes; then
18218 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18222 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18226 sysv5* | sco3.2v5* | sco5v6*)
18227 # Note: We can NOT use -z defs as we might desire, because we do not
18228 # link with -lc, and that would cause any symbols used from libc to
18229 # always be unresolved, which means just about no library would
18230 # ever link correctly. If we're not using GNU ld we use -z text
18231 # though, which does catch some bad symbols but isn't as heavy-handed
18233 no_undefined_flag_GCJ='${wl}-z,text'
18234 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18235 archive_cmds_need_lc_GCJ=no
18236 hardcode_shlibpath_var_GCJ=no
18237 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18238 hardcode_libdir_separator_GCJ=':'
18239 link_all_deplibs_GCJ=yes
18240 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18241 runpath_var='LD_RUN_PATH'
18243 if test "$GCC" = yes; then
18244 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18245 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18248 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18255 hardcode_shlibpath_var_GCJ=no
18264 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18265 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18266 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18269 # Do we need to explicitly link libc?
18271 case "x$archive_cmds_need_lc_GCJ" in
18273 # Assume -lc should be added
18274 archive_cmds_need_lc_GCJ=yes
18276 if test "$enable_shared" = yes && test "$GCC" = yes; then
18277 case $archive_cmds_GCJ in
18279 # FIXME: we may have to deal with multi-command sequences.
18282 # Test whether the compiler implicitly links with -lc since on some
18283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18284 # to ld, don't add -lc before -lgcc.
18285 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18286 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18291 (eval $ac_compile) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } 2>conftest.err; then
18297 libobjs=conftest.$ac_objext
18299 wl=$lt_prog_compiler_wl_GCJ
18300 pic_flag=$lt_prog_compiler_pic_GCJ
18306 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18307 allow_undefined_flag_GCJ=
18308 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18309 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }
18314 archive_cmds_need_lc_GCJ=no
18316 archive_cmds_need_lc_GCJ=yes
18318 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18320 cat conftest.err 1>&5
18323 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18324 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18331 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18332 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18333 library_names_spec=
18334 libname_spec='lib$name'
18338 postuninstall_cmds=
18342 shlibpath_overrides_runpath=unknown
18344 dynamic_linker="$host_os ld.so"
18345 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18347 need_lib_prefix=unknown
18348 hardcode_into_libs=no
18350 # when you set need_version to no, make sure it does not cause -set_version
18351 # flags to be left without arguments
18352 need_version=unknown
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18358 shlibpath_var=LIBPATH
18360 # AIX 3 has no versioning support, so we append a major version to the name.
18361 soname_spec='${libname}${release}${shared_ext}$major'
18368 hardcode_into_libs=yes
18369 if test "$host_cpu" = ia64; then
18370 # AIX 5 supports IA64
18371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18372 shlibpath_var=LD_LIBRARY_PATH
18374 # With GCC up to 2.95.x, collect2 would create an import file
18375 # for dependence libraries. The import file would start with
18376 # the line `#! .'. This would cause the generated library to
18377 # depend on `.', always an invalid library. This was fixed in
18378 # development snapshots of GCC prior to 3.0.
18380 aix4 | aix4.[01] | aix4.[01].*)
18381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18386 can_build_shared=no
18390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18391 # soname into executable. Probably we can add versioning support to
18392 # collect2, so additional links can be useful in future.
18393 if test "$aix_use_runtimelinking" = yes; then
18394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18395 # instead of lib<name>.a to let people know that these are not
18396 # typical AIX shared libraries.
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18399 # We preserve .a as extension for shared libraries through AIX4.2
18400 # and later when we are not doing run time linking.
18401 library_names_spec='${libname}${release}.a $libname.a'
18402 soname_spec='${libname}${release}${shared_ext}$major'
18404 shlibpath_var=LIBPATH
18409 library_names_spec='$libname.ixlibrary $libname.a'
18410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18411 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'
18415 library_names_spec='${libname}${shared_ext}'
18416 dynamic_linker="$host_os ld.so"
18417 shlibpath_var=LIBRARY_PATH
18423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18424 soname_spec='${libname}${release}${shared_ext}$major'
18425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18426 shlibpath_var=LD_LIBRARY_PATH
18427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18429 # the default ld.so.conf also contains /usr/contrib/lib and
18430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18431 # libtool to hard-code these into programs
18434 cygwin* | mingw* | pw32*)
18435 version_type=windows
18440 case $GCC,$host_os in
18441 yes,cygwin* | yes,mingw* | yes,pw32*)
18442 library_names_spec='$libname.dll.a'
18443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18444 postinstall_cmds='base_file=`basename \${file}`~
18445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18446 dldir=$destdir/`dirname \$dlpath`~
18447 test -d \$dldir || mkdir -p \$dldir~
18448 $install_prog $dir/$dlname \$dldir/$dlname~
18449 chmod a+x \$dldir/$dlname'
18450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18451 dlpath=$dir/\$dldll~
18453 shlibpath_overrides_runpath=yes
18457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18462 # MinGW DLLs use traditional 'lib' prefix
18463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18466 # It is most probably a Windows format PATH printed by
18467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18468 # path with ; separators, and with drive letters. We can handle the
18469 # drive letters (cygwin fileutils understands them), so leave them,
18470 # especially as we might pass files found there to a mingw objdump,
18471 # which wouldn't understand a cygwinified path. Ahh.
18472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18478 # pw32 DLLs use 'pw' prefix rather than 'lib'
18479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18488 dynamic_linker='Win32 ld.exe'
18489 # FIXME: first we should search . and the directory the executable is in
18493 darwin* | rhapsody*)
18494 dynamic_linker="$host_os dyld"
18495 version_type=darwin
18498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18499 soname_spec='${libname}${release}${major}$shared_ext'
18500 shlibpath_overrides_runpath=yes
18501 shlibpath_var=DYLD_LIBRARY_PATH
18502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18512 soname_spec='${libname}${release}${shared_ext}$major'
18513 shlibpath_var=LD_LIBRARY_PATH
18520 freebsd* | dragonfly*)
18521 # DragonFly does not have aout. When/if they implement a new
18522 # versioning mechanism, adjust this.
18523 if test -x /usr/bin/objformat; then
18524 objformat=`/usr/bin/objformat`
18527 freebsd[123]*) objformat=aout ;;
18528 *) objformat=elf ;;
18531 version_type=freebsd-$objformat
18532 case $version_type in
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18543 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=yes
18548 freebsd3.[01]* | freebsdelf3.[01]*)
18549 shlibpath_overrides_runpath=yes
18550 hardcode_into_libs=yes
18552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18554 shlibpath_overrides_runpath=no
18555 hardcode_into_libs=yes
18557 *) # from 4.6 on, and DragonFly
18558 shlibpath_overrides_runpath=yes
18559 hardcode_into_libs=yes
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 shlibpath_var=LD_LIBRARY_PATH
18571 hardcode_into_libs=yes
18574 hpux9* | hpux10* | hpux11*)
18575 # Give a soname corresponding to the major version so that dld.sl refuses to
18576 # link against other versions.
18583 hardcode_into_libs=yes
18584 dynamic_linker="$host_os dld.so"
18585 shlibpath_var=LD_LIBRARY_PATH
18586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 if test "X$HPUX_IA64_MODE" = X32; then
18590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18598 hardcode_into_libs=yes
18599 dynamic_linker="$host_os dld.sl"
18600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18609 dynamic_linker="$host_os dld.sl"
18610 shlibpath_var=SHLIB_PATH
18611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18613 soname_spec='${libname}${release}${shared_ext}$major'
18616 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18617 postinstall_cmds='chmod 555 $lib'
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 shlibpath_overrides_runpath=no
18629 hardcode_into_libs=yes
18632 irix5* | irix6* | nonstopux*)
18634 nonstopux*) version_type=nonstopux ;;
18636 if test "$lt_cv_prog_gnu_ld" = yes; then
18644 soname_spec='${libname}${release}${shared_ext}$major'
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18647 irix5* | nonstopux*)
18648 libsuff= shlibsuff=
18651 case $LD in # libtool.m4 will add one of these switches to LD
18652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18653 libsuff= shlibsuff= libmagic=32-bit;;
18654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18655 libsuff=32 shlibsuff=N32 libmagic=N32;;
18656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18658 *) libsuff= shlibsuff= libmagic=never-match;;
18662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18663 shlibpath_overrides_runpath=no
18664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18666 hardcode_into_libs=yes
18669 # No shared lib support for Linux oldld, aout, or coff.
18670 linux*oldld* | linux*aout* | linux*coff*)
18674 # This must be Linux ELF.
18675 linux* | k*bsd*-gnu)
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=no
18684 # This implies no fast_install, which is unacceptable.
18685 # Some rework will be needed to allow for fast_install
18686 # before this can be enabled.
18687 hardcode_into_libs=yes
18689 # Append ld.so.conf contents to the search path
18690 if test -f /etc/ld.so.conf; then
18691 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18695 # We used to test for /lib/ld.so.1 and disable shared libraries on
18696 # powerpc, because MkLinux only supported shared libraries with the
18697 # GNU dynamic linker. Since this was broken with cross compilers,
18698 # most powerpc-linux boxes support dynamic linking these days and
18699 # people can always --disable-shared, the test was removed, and we
18700 # assume the GNU/Linux dynamic linker is in use.
18701 dynamic_linker='GNU/Linux ld.so'
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 shlibpath_overrides_runpath=no
18712 hardcode_into_libs=yes
18713 dynamic_linker='NetBSD ld.elf_so'
18720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18723 dynamic_linker='NetBSD (a.out) ld.so'
18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18727 dynamic_linker='NetBSD ld.elf_so'
18729 shlibpath_var=LD_LIBRARY_PATH
18730 shlibpath_overrides_runpath=yes
18731 hardcode_into_libs=yes
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737 shlibpath_var=LD_LIBRARY_PATH
18738 shlibpath_overrides_runpath=yes
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746 soname_spec='${libname}${release}${shared_ext}$major'
18747 shlibpath_var=LD_LIBRARY_PATH
18748 shlibpath_overrides_runpath=yes
18753 sys_lib_dlsearch_path_spec="/usr/lib"
18755 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18757 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18758 *) need_version=no ;;
18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18762 shlibpath_var=LD_LIBRARY_PATH
18763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18765 openbsd2.[89] | openbsd2.[89].*)
18766 shlibpath_overrides_runpath=no
18769 shlibpath_overrides_runpath=yes
18773 shlibpath_overrides_runpath=yes
18778 libname_spec='$name'
18781 library_names_spec='$libname${shared_ext} $libname.a'
18782 dynamic_linker='OS/2 ld.exe'
18783 shlibpath_var=LIBPATH
18786 osf3* | osf4* | osf5*)
18790 soname_spec='${libname}${release}${shared_ext}$major'
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792 shlibpath_var=LD_LIBRARY_PATH
18793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18794 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath=yes
18809 hardcode_into_libs=yes
18810 # ldd complains unless libraries are executable
18811 postinstall_cmds='chmod +x $lib'
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18818 shlibpath_var=LD_LIBRARY_PATH
18819 shlibpath_overrides_runpath=yes
18820 if test "$with_gnu_ld" = yes; then
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 case $host_vendor in
18833 shlibpath_overrides_runpath=no
18835 export_dynamic_flag_spec='${wl}-Blargedynsym'
18836 runpath_var=LD_RUN_PATH
18844 shlibpath_overrides_runpath=no
18845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18851 if test -d /usr/nec ;then
18853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18854 soname_spec='$libname${shared_ext}.$major'
18855 shlibpath_var=LD_LIBRARY_PATH
18859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18860 version_type=freebsd-elf
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18864 soname_spec='${libname}${release}${shared_ext}$major'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 hardcode_into_libs=yes
18867 if test "$with_gnu_ld" = yes; then
18868 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18869 shlibpath_overrides_runpath=no
18871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18872 shlibpath_overrides_runpath=yes
18875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18879 sys_lib_dlsearch_path_spec='/usr/lib'
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885 soname_spec='${libname}${release}${shared_ext}$major'
18886 shlibpath_var=LD_LIBRARY_PATH
18893 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18894 echo "${ECHO_T}$dynamic_linker" >&6; }
18895 test "$dynamic_linker" = no && can_build_shared=no
18897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18903 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18904 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18910 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18913 if test "$GCC" = yes; then
18914 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18917 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18918 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18919 hardcode_action_GCJ=
18920 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18921 test -n "$runpath_var_GCJ" || \
18922 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18924 # We can hardcode non-existant directories.
18925 if test "$hardcode_direct_GCJ" != no &&
18926 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18927 # have to relink, otherwise we might link with an installed library
18928 # when we should be linking with a yet-to-be-installed one
18929 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18930 test "$hardcode_minus_L_GCJ" != no; then
18931 # Linking always hardcodes the temporary library directory.
18932 hardcode_action_GCJ=relink
18934 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18935 hardcode_action_GCJ=immediate
18938 # We cannot hardcode anything, or else we can only hardcode existing
18940 hardcode_action_GCJ=unsupported
18942 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18943 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18945 if test "$hardcode_action_GCJ" = relink; then
18946 # Fast installation is not supported
18947 enable_fast_install=no
18948 elif test "$shlibpath_overrides_runpath" = yes ||
18949 test "$enable_shared" = no; then
18950 # Fast installation is not necessary
18951 enable_fast_install=needless
18955 # The else clause should only fire when bootstrapping the
18956 # libtool distribution, otherwise you forgot to ship ltmain.sh
18957 # with your package, and you will get complaints that there are
18958 # no rules to generate ltmain.sh.
18959 if test -f "$ltmain"; then
18960 # See if we are running on zsh, and set the options which allow our commands through
18961 # without removal of \ escapes.
18962 if test -n "${ZSH_VERSION+set}" ; then
18963 setopt NO_GLOB_SUBST
18965 # Now quote all the things that may contain metacharacters while being
18966 # careful not to overquote the AC_SUBSTed values. We take copies of the
18967 # variables and quote the copies for generation of the libtool script.
18968 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18970 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18971 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18972 deplibs_check_method reload_flag reload_cmds need_locks \
18973 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18974 lt_cv_sys_global_symbol_to_c_name_address \
18975 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18976 old_postinstall_cmds old_postuninstall_cmds \
18980 lt_prog_compiler_wl_GCJ \
18981 lt_prog_compiler_pic_GCJ \
18982 lt_prog_compiler_static_GCJ \
18983 lt_prog_compiler_no_builtin_flag_GCJ \
18984 export_dynamic_flag_spec_GCJ \
18985 thread_safe_flag_spec_GCJ \
18986 whole_archive_flag_spec_GCJ \
18987 enable_shared_with_static_runtimes_GCJ \
18988 old_archive_cmds_GCJ \
18989 old_archive_from_new_cmds_GCJ \
18990 predep_objects_GCJ \
18991 postdep_objects_GCJ \
18994 compiler_lib_search_path_GCJ \
18995 compiler_lib_search_dirs_GCJ \
18997 archive_expsym_cmds_GCJ \
18998 postinstall_cmds_GCJ \
18999 postuninstall_cmds_GCJ \
19000 old_archive_from_expsyms_cmds_GCJ \
19001 allow_undefined_flag_GCJ \
19002 no_undefined_flag_GCJ \
19003 export_symbols_cmds_GCJ \
19004 hardcode_libdir_flag_spec_GCJ \
19005 hardcode_libdir_flag_spec_ld_GCJ \
19006 hardcode_libdir_separator_GCJ \
19007 hardcode_automatic_GCJ \
19009 module_expsym_cmds_GCJ \
19010 lt_cv_prog_compiler_c_o_GCJ \
19011 fix_srcfile_path_GCJ \
19012 exclude_expsyms_GCJ \
19013 include_expsyms_GCJ; do
19016 old_archive_cmds_GCJ | \
19017 old_archive_from_new_cmds_GCJ | \
19018 archive_cmds_GCJ | \
19019 archive_expsym_cmds_GCJ | \
19020 module_cmds_GCJ | \
19021 module_expsym_cmds_GCJ | \
19022 old_archive_from_expsyms_cmds_GCJ | \
19023 export_symbols_cmds_GCJ | \
19024 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19025 postinstall_cmds | postuninstall_cmds | \
19026 old_postinstall_cmds | old_postuninstall_cmds | \
19027 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19028 # Double-quote double-evaled strings.
19029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19038 *'\$0 --fallback-echo"')
19039 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19045 cat <<__EOF__ >> "$cfgfile"
19046 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19050 # Shell to use when invoking shell scripts.
19053 # Whether or not to build shared libraries.
19054 build_libtool_libs=$enable_shared
19056 # Whether or not to build static libraries.
19057 build_old_libs=$enable_static
19059 # Whether or not to add -lc for building shared libraries.
19060 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19062 # Whether or not to disallow shared libs when runtime libs are static
19063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19065 # Whether or not to optimize for fast installation.
19066 fast_install=$enable_fast_install
19069 host_alias=$host_alias
19073 # The build system.
19074 build_alias=$build_alias
19078 # An echo program that does not interpret backslashes.
19083 AR_FLAGS=$lt_AR_FLAGS
19088 # LTCC compiler flags.
19089 LTCFLAGS=$lt_LTCFLAGS
19091 # A language-specific compiler.
19092 CC=$lt_compiler_GCJ
19094 # Is the compiler the GNU C compiler?
19100 # The linker used to build libraries.
19103 # Whether we need hard or soft links.
19106 # A BSD-compatible nm program.
19109 # A symbol stripping program
19112 # Used to examine libraries when file_magic_cmd begins "file"
19113 MAGIC_CMD=$MAGIC_CMD
19115 # Used on cygwin: DLL creation program.
19118 # Used on cygwin: object dumper.
19121 # Used on cygwin: assembler.
19124 # The name of the directory that contains temporary libtool files.
19127 # How to create reloadable object files.
19128 reload_flag=$lt_reload_flag
19129 reload_cmds=$lt_reload_cmds
19131 # How to pass a linker flag through the compiler.
19132 wl=$lt_lt_prog_compiler_wl_GCJ
19134 # Object file suffix (normally "o").
19135 objext="$ac_objext"
19137 # Old archive suffix (normally "a").
19140 # Shared library suffix (normally ".so").
19141 shrext_cmds='$shrext_cmds'
19143 # Executable file suffix (normally "").
19146 # Additional compiler flags for building library objects.
19147 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19150 # What is the maximum length of a command?
19151 max_cmd_len=$lt_cv_sys_max_cmd_len
19153 # Does compiler simultaneously support -c and -o options?
19154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19156 # Must we lock files when doing compilation?
19157 need_locks=$lt_need_locks
19159 # Do we need the lib prefix for modules?
19160 need_lib_prefix=$need_lib_prefix
19162 # Do we need a version for libraries?
19163 need_version=$need_version
19165 # Whether dlopen is supported.
19166 dlopen_support=$enable_dlopen
19168 # Whether dlopen of programs is supported.
19169 dlopen_self=$enable_dlopen_self
19171 # Whether dlopen of statically linked programs is supported.
19172 dlopen_self_static=$enable_dlopen_self_static
19174 # Compiler flag to prevent dynamic linking.
19175 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19177 # Compiler flag to turn off builtin functions.
19178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19180 # Compiler flag to allow reflexive dlopens.
19181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19183 # Compiler flag to generate shared objects directly from archives.
19184 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19186 # Compiler flag to generate thread-safe objects.
19187 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19189 # Library versioning type.
19190 version_type=$version_type
19192 # Format of library name prefix.
19193 libname_spec=$lt_libname_spec
19195 # List of archive names. First name is the real one, the rest are links.
19196 # The last name is the one that the linker finds with -lNAME.
19197 library_names_spec=$lt_library_names_spec
19199 # The coded name of the library, if different from the real name.
19200 soname_spec=$lt_soname_spec
19202 # Commands used to build and install an old-style archive.
19204 old_archive_cmds=$lt_old_archive_cmds_GCJ
19205 old_postinstall_cmds=$lt_old_postinstall_cmds
19206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19208 # Create an old-style archive from a shared archive.
19209 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19211 # Create a temporary old-style archive to link instead of a shared archive.
19212 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19214 # Commands used to build and install a shared archive.
19215 archive_cmds=$lt_archive_cmds_GCJ
19216 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19217 postinstall_cmds=$lt_postinstall_cmds
19218 postuninstall_cmds=$lt_postuninstall_cmds
19220 # Commands used to build a loadable module (assumed same as above if empty)
19221 module_cmds=$lt_module_cmds_GCJ
19222 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19224 # Commands to strip libraries.
19225 old_striplib=$lt_old_striplib
19226 striplib=$lt_striplib
19228 # Dependencies to place before the objects being linked to create a
19230 predep_objects=$lt_predep_objects_GCJ
19232 # Dependencies to place after the objects being linked to create a
19234 postdep_objects=$lt_postdep_objects_GCJ
19236 # Dependencies to place before the objects being linked to create a
19238 predeps=$lt_predeps_GCJ
19240 # Dependencies to place after the objects being linked to create a
19242 postdeps=$lt_postdeps_GCJ
19244 # The directories searched by this compiler when creating a shared
19246 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19248 # The library search path used internally by the compiler when linking
19249 # a shared library.
19250 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19255 # Command to use when deplibs_check_method == file_magic.
19256 file_magic_cmd=$lt_file_magic_cmd
19258 # Flag that allows shared libraries with undefined symbols to be built.
19259 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19261 # Flag that forces no undefined symbols.
19262 no_undefined_flag=$lt_no_undefined_flag_GCJ
19264 # Commands used to finish a libtool library installation in a directory.
19265 finish_cmds=$lt_finish_cmds
19267 # Same as above, but a single script fragment to be evaled but not shown.
19268 finish_eval=$lt_finish_eval
19270 # Take the output of nm and produce a listing of raw symbols and C names.
19271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19273 # Transform the output of nm in a proper C declaration
19274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19276 # Transform the output of nm in a C name address pair
19277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19279 # This is the shared library runtime path variable.
19280 runpath_var=$runpath_var
19282 # This is the shared library path variable.
19283 shlibpath_var=$shlibpath_var
19285 # Is shlibpath searched before the hard-coded library search path?
19286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action_GCJ
19291 # Whether we should hardcode library paths into libraries.
19292 hardcode_into_libs=$hardcode_into_libs
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist.
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19298 # If ld is used when linking, flag to hardcode \$libdir into
19299 # a binary during linking. This must work even if \$libdir does
19301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19303 # Whether we need a single -rpath flag with a separated argument.
19304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19307 # resulting binary.
19308 hardcode_direct=$hardcode_direct_GCJ
19310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_GCJ
19314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19315 # the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19318 # Set to yes if building a shared library automatically hardcodes DIR into the library
19319 # and all subsequent libraries and executables linked against it.
19320 hardcode_automatic=$hardcode_automatic_GCJ
19322 # Variables whose values should be saved in libtool wrapper scripts and
19323 # restored at relink time.
19324 variables_saved_for_relink="$variables_saved_for_relink"
19326 # Whether libtool must link a program against all its dependency libraries.
19327 link_all_deplibs=$link_all_deplibs_GCJ
19329 # Compile-time system search path for libraries
19330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19332 # Run-time system search path for libraries
19333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path=$lt_fix_srcfile_path
19338 # Set to yes if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_GCJ
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms_GCJ
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms_GCJ
19353 # ### END LIBTOOL TAG CONFIG: $tagname
19359 # If there is no Makefile yet, we rely on a make rule to execute
19360 # `config.status --recheck' to rerun these tests and create the
19361 # libtool script then.
19362 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19363 if test -f "$ltmain_in"; then
19364 test -f Makefile && make "$ltmain"
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19385 # Source file extension for RC test sources.
19388 # Object file extension for compiled RC test sources.
19392 # Code to be used in simple compile tests
19393 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19395 # Code to be used in simple link tests
19396 lt_simple_link_test_code="$lt_simple_compile_test_code"
19398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19400 # If no C compiler was specified, use CC.
19403 # If no C compiler flags were specified, use CFLAGS.
19404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19406 # Allow CC to be a program name with arguments.
19410 # save warnings/boilerplate of simple test code
19411 ac_outfile=conftest.$ac_objext
19412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19414 _lt_compiler_boilerplate=`cat conftest.err`
19417 ac_outfile=conftest.$ac_objext
19418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19420 _lt_linker_boilerplate=`cat conftest.err`
19424 # Allow CC to be a program name with arguments.
19429 for cc_temp in $compiler""; do
19431 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19432 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19437 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19439 lt_cv_prog_compiler_c_o_RC=yes
19441 # The else clause should only fire when bootstrapping the
19442 # libtool distribution, otherwise you forgot to ship ltmain.sh
19443 # with your package, and you will get complaints that there are
19444 # no rules to generate ltmain.sh.
19445 if test -f "$ltmain"; then
19446 # See if we are running on zsh, and set the options which allow our commands through
19447 # without removal of \ escapes.
19448 if test -n "${ZSH_VERSION+set}" ; then
19449 setopt NO_GLOB_SUBST
19451 # Now quote all the things that may contain metacharacters while being
19452 # careful not to overquote the AC_SUBSTed values. We take copies of the
19453 # variables and quote the copies for generation of the libtool script.
19454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19458 deplibs_check_method reload_flag reload_cmds need_locks \
19459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19460 lt_cv_sys_global_symbol_to_c_name_address \
19461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19462 old_postinstall_cmds old_postuninstall_cmds \
19466 lt_prog_compiler_wl_RC \
19467 lt_prog_compiler_pic_RC \
19468 lt_prog_compiler_static_RC \
19469 lt_prog_compiler_no_builtin_flag_RC \
19470 export_dynamic_flag_spec_RC \
19471 thread_safe_flag_spec_RC \
19472 whole_archive_flag_spec_RC \
19473 enable_shared_with_static_runtimes_RC \
19474 old_archive_cmds_RC \
19475 old_archive_from_new_cmds_RC \
19476 predep_objects_RC \
19477 postdep_objects_RC \
19480 compiler_lib_search_path_RC \
19481 compiler_lib_search_dirs_RC \
19483 archive_expsym_cmds_RC \
19484 postinstall_cmds_RC \
19485 postuninstall_cmds_RC \
19486 old_archive_from_expsyms_cmds_RC \
19487 allow_undefined_flag_RC \
19488 no_undefined_flag_RC \
19489 export_symbols_cmds_RC \
19490 hardcode_libdir_flag_spec_RC \
19491 hardcode_libdir_flag_spec_ld_RC \
19492 hardcode_libdir_separator_RC \
19493 hardcode_automatic_RC \
19495 module_expsym_cmds_RC \
19496 lt_cv_prog_compiler_c_o_RC \
19497 fix_srcfile_path_RC \
19498 exclude_expsyms_RC \
19499 include_expsyms_RC; do
19502 old_archive_cmds_RC | \
19503 old_archive_from_new_cmds_RC | \
19504 archive_cmds_RC | \
19505 archive_expsym_cmds_RC | \
19507 module_expsym_cmds_RC | \
19508 old_archive_from_expsyms_cmds_RC | \
19509 export_symbols_cmds_RC | \
19510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19511 postinstall_cmds | postuninstall_cmds | \
19512 old_postinstall_cmds | old_postuninstall_cmds | \
19513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19514 # Double-quote double-evaled strings.
19515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19524 *'\$0 --fallback-echo"')
19525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19531 cat <<__EOF__ >> "$cfgfile"
19532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19536 # Shell to use when invoking shell scripts.
19539 # Whether or not to build shared libraries.
19540 build_libtool_libs=$enable_shared
19542 # Whether or not to build static libraries.
19543 build_old_libs=$enable_static
19545 # Whether or not to add -lc for building shared libraries.
19546 build_libtool_need_lc=$archive_cmds_need_lc_RC
19548 # Whether or not to disallow shared libs when runtime libs are static
19549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19551 # Whether or not to optimize for fast installation.
19552 fast_install=$enable_fast_install
19555 host_alias=$host_alias
19559 # The build system.
19560 build_alias=$build_alias
19564 # An echo program that does not interpret backslashes.
19569 AR_FLAGS=$lt_AR_FLAGS
19574 # LTCC compiler flags.
19575 LTCFLAGS=$lt_LTCFLAGS
19577 # A language-specific compiler.
19580 # Is the compiler the GNU C compiler?
19586 # The linker used to build libraries.
19589 # Whether we need hard or soft links.
19592 # A BSD-compatible nm program.
19595 # A symbol stripping program
19598 # Used to examine libraries when file_magic_cmd begins "file"
19599 MAGIC_CMD=$MAGIC_CMD
19601 # Used on cygwin: DLL creation program.
19604 # Used on cygwin: object dumper.
19607 # Used on cygwin: assembler.
19610 # The name of the directory that contains temporary libtool files.
19613 # How to create reloadable object files.
19614 reload_flag=$lt_reload_flag
19615 reload_cmds=$lt_reload_cmds
19617 # How to pass a linker flag through the compiler.
19618 wl=$lt_lt_prog_compiler_wl_RC
19620 # Object file suffix (normally "o").
19621 objext="$ac_objext"
19623 # Old archive suffix (normally "a").
19626 # Shared library suffix (normally ".so").
19627 shrext_cmds='$shrext_cmds'
19629 # Executable file suffix (normally "").
19632 # Additional compiler flags for building library objects.
19633 pic_flag=$lt_lt_prog_compiler_pic_RC
19636 # What is the maximum length of a command?
19637 max_cmd_len=$lt_cv_sys_max_cmd_len
19639 # Does compiler simultaneously support -c and -o options?
19640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19642 # Must we lock files when doing compilation?
19643 need_locks=$lt_need_locks
19645 # Do we need the lib prefix for modules?
19646 need_lib_prefix=$need_lib_prefix
19648 # Do we need a version for libraries?
19649 need_version=$need_version
19651 # Whether dlopen is supported.
19652 dlopen_support=$enable_dlopen
19654 # Whether dlopen of programs is supported.
19655 dlopen_self=$enable_dlopen_self
19657 # Whether dlopen of statically linked programs is supported.
19658 dlopen_self_static=$enable_dlopen_self_static
19660 # Compiler flag to prevent dynamic linking.
19661 link_static_flag=$lt_lt_prog_compiler_static_RC
19663 # Compiler flag to turn off builtin functions.
19664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19666 # Compiler flag to allow reflexive dlopens.
19667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19669 # Compiler flag to generate shared objects directly from archives.
19670 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19672 # Compiler flag to generate thread-safe objects.
19673 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19675 # Library versioning type.
19676 version_type=$version_type
19678 # Format of library name prefix.
19679 libname_spec=$lt_libname_spec
19681 # List of archive names. First name is the real one, the rest are links.
19682 # The last name is the one that the linker finds with -lNAME.
19683 library_names_spec=$lt_library_names_spec
19685 # The coded name of the library, if different from the real name.
19686 soname_spec=$lt_soname_spec
19688 # Commands used to build and install an old-style archive.
19690 old_archive_cmds=$lt_old_archive_cmds_RC
19691 old_postinstall_cmds=$lt_old_postinstall_cmds
19692 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694 # Create an old-style archive from a shared archive.
19695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19697 # Create a temporary old-style archive to link instead of a shared archive.
19698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19700 # Commands used to build and install a shared archive.
19701 archive_cmds=$lt_archive_cmds_RC
19702 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19703 postinstall_cmds=$lt_postinstall_cmds
19704 postuninstall_cmds=$lt_postuninstall_cmds
19706 # Commands used to build a loadable module (assumed same as above if empty)
19707 module_cmds=$lt_module_cmds_RC
19708 module_expsym_cmds=$lt_module_expsym_cmds_RC
19710 # Commands to strip libraries.
19711 old_striplib=$lt_old_striplib
19712 striplib=$lt_striplib
19714 # Dependencies to place before the objects being linked to create a
19716 predep_objects=$lt_predep_objects_RC
19718 # Dependencies to place after the objects being linked to create a
19720 postdep_objects=$lt_postdep_objects_RC
19722 # Dependencies to place before the objects being linked to create a
19724 predeps=$lt_predeps_RC
19726 # Dependencies to place after the objects being linked to create a
19728 postdeps=$lt_postdeps_RC
19730 # The directories searched by this compiler when creating a shared
19732 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19734 # The library search path used internally by the compiler when linking
19735 # a shared library.
19736 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19738 # Method to check whether dependent libraries are shared objects.
19739 deplibs_check_method=$lt_deplibs_check_method
19741 # Command to use when deplibs_check_method == file_magic.
19742 file_magic_cmd=$lt_file_magic_cmd
19744 # Flag that allows shared libraries with undefined symbols to be built.
19745 allow_undefined_flag=$lt_allow_undefined_flag_RC
19747 # Flag that forces no undefined symbols.
19748 no_undefined_flag=$lt_no_undefined_flag_RC
19750 # Commands used to finish a libtool library installation in a directory.
19751 finish_cmds=$lt_finish_cmds
19753 # Same as above, but a single script fragment to be evaled but not shown.
19754 finish_eval=$lt_finish_eval
19756 # Take the output of nm and produce a listing of raw symbols and C names.
19757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19759 # Transform the output of nm in a proper C declaration
19760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19762 # Transform the output of nm in a C name address pair
19763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19765 # This is the shared library runtime path variable.
19766 runpath_var=$runpath_var
19768 # This is the shared library path variable.
19769 shlibpath_var=$shlibpath_var
19771 # Is shlibpath searched before the hard-coded library search path?
19772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19774 # How to hardcode a shared library path into an executable.
19775 hardcode_action=$hardcode_action_RC
19777 # Whether we should hardcode library paths into libraries.
19778 hardcode_into_libs=$hardcode_into_libs
19780 # Flag to hardcode \$libdir into a binary during linking.
19781 # This must work even if \$libdir does not exist.
19782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19784 # If ld is used when linking, flag to hardcode \$libdir into
19785 # a binary during linking. This must work even if \$libdir does
19787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19789 # Whether we need a single -rpath flag with a separated argument.
19790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19793 # resulting binary.
19794 hardcode_direct=$hardcode_direct_RC
19796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19797 # resulting binary.
19798 hardcode_minus_L=$hardcode_minus_L_RC
19800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19801 # the resulting binary.
19802 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19804 # Set to yes if building a shared library automatically hardcodes DIR into the library
19805 # and all subsequent libraries and executables linked against it.
19806 hardcode_automatic=$hardcode_automatic_RC
19808 # Variables whose values should be saved in libtool wrapper scripts and
19809 # restored at relink time.
19810 variables_saved_for_relink="$variables_saved_for_relink"
19812 # Whether libtool must link a program against all its dependency libraries.
19813 link_all_deplibs=$link_all_deplibs_RC
19815 # Compile-time system search path for libraries
19816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19818 # Run-time system search path for libraries
19819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19821 # Fix the shell variable \$srcfile for the compiler.
19822 fix_srcfile_path=$lt_fix_srcfile_path
19824 # Set to yes if exported symbols are required.
19825 always_export_symbols=$always_export_symbols_RC
19827 # The commands to list exported symbols.
19828 export_symbols_cmds=$lt_export_symbols_cmds_RC
19830 # The commands to extract the exported symbol list from a shared archive.
19831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19833 # Symbols that should not be listed in the preloaded symbols.
19834 exclude_expsyms=$lt_exclude_expsyms_RC
19836 # Symbols that must always be exported.
19837 include_expsyms=$lt_include_expsyms_RC
19839 # ### END LIBTOOL TAG CONFIG: $tagname
19845 # If there is no Makefile yet, we rely on a make rule to execute
19846 # `config.status --recheck' to rerun these tests and create the
19847 # libtool script then.
19848 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19849 if test -f "$ltmain_in"; then
19850 test -f Makefile && make "$ltmain"
19856 ac_cpp='$CPP $CPPFLAGS'
19857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19867 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19868 { (exit 1); exit 1; }; }
19872 # Append the new tag name to the list of available tags.
19873 if test -n "$tagname" ; then
19874 available_tags="$available_tags $tagname"
19880 # Now substitute the updated list of available tags.
19881 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19882 mv "${ofile}T" "$ofile"
19886 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19887 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19888 { (exit 1); exit 1; }; }
19894 # This can be used to rebuild libtool when needed
19895 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19897 # Always use our own libtool.
19898 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19900 # Prevent multiple expansion
19924 # Checks for libraries.
19926 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19927 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19928 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 ac_check_lib_save_LIBS=$LIBS
19932 LIBS="-lapr-1 $LIBS"
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 ac_cv_lib_apr_1_main=yes
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_cv_lib_apr_1_main=no
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19980 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19981 if test $ac_cv_lib_apr_1_main = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_LIBAPR_1 1
19986 LIBS="-lapr-1 $LIBS"
19992 # Check whether --with-apache-header was given.
19993 if test "${with_apache_header+set}" = set; then
19994 withval=$with_apache_header;
19997 if test "x$with_apache_header" = "xyes"; then
19998 { { echo "$as_me:$LINENO: error:
19999 Please specify the --with-apache-header option. And, please specify the place of the header file.
20002 echo "$as_me: error:
20003 Please specify the --with-apache-header option. And, please specify the place of the header file.
20006 { (exit 1); exit 1; }; }
20010 # Check whether --with-apxs was given.
20011 if test "${with_apxs+set}" = set; then
20012 withval=$with_apxs;
20015 if test "x$with_apxs" = "x" ; then
20018 if test "x$with_apxs" = "xyes" ; then
20019 { { echo "$as_me:$LINENO: error:
20020 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20022 echo "$as_me: error:
20023 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20025 { (exit 1); exit 1; }; }
20029 # Check whether --with-apr-config was given.
20030 if test "${with_apr_config+set}" = set; then
20031 withval=$with_apr_config;
20034 if test "x$with_apr_config" = "xyes" ; then
20035 { { echo "$as_me:$LINENO: error:
20036 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20038 echo "$as_me: error:
20039 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20041 { (exit 1); exit 1; }; }
20045 # Check whether --with-apu-config was given.
20046 if test "${with_apu_config+set}" = set; then
20047 withval=$with_apu_config;
20050 if test "x$with_apu_config" = "xyes" ; then
20051 { { echo "$as_me:$LINENO: error:
20052 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20054 echo "$as_me: error:
20055 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20057 { (exit 1); exit 1; }; }
20061 # Check whether --with-pcre-config was given.
20062 if test "${with_pcre_config+set}" = set; then
20063 withval=$with_pcre_config;
20066 if test "x$with_pcre_config" = "xyes" ; then
20067 { { echo "$as_me:$LINENO: error:
20068 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
20070 echo "$as_me: error:
20071 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
20073 { (exit 1); exit 1; }; }
20078 # Check whether --enable-img-conv-f was given.
20079 if test "${enable_img_conv_f+set}" = set; then
20080 enableval=$enable_img_conv_f;
20083 if test "x$enable_img_conv_f" = "xyes"; then
20086 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
20090 # Check whether --enable-memcache-cookie was given.
20091 if test "${enable_memcache_cookie+set}" = set; then
20092 enableval=$enable_memcache_cookie;
20095 # Check whether --enable-memcached-static was given.
20096 if test "${enable_memcached_static+set}" = set; then
20097 enableval=$enable_memcached_static;
20101 # Check whether --with-memcached-header was given.
20102 if test "${with_memcached_header+set}" = set; then
20103 withval=$with_memcached_header;
20107 # Check whether --with-memcached-lib-dir was given.
20108 if test "${with_memcached_lib_dir+set}" = set; then
20109 withval=$with_memcached_lib_dir;
20112 if test "x$enable_memcache_cookie" = "xyes" ; then
20113 if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
20114 { { echo "$as_me:$LINENO: error:
20115 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
20117 echo "$as_me: error:
20118 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
20120 { (exit 1); exit 1; }; }
20122 if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
20123 { { echo "$as_me:$LINENO: error:
20124 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
20126 echo "$as_me: error:
20127 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
20129 { (exit 1); exit 1; }; }
20131 if test "x$enable_memcached_static" = "xyes" ; then
20132 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
20133 MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
20135 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
20136 MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
20139 MEMCACHE_COOKIE_DEFS=""
20140 MEMCACHE_COOKIE_LIBS=""
20142 # Check whether --enable-mysql-cookie was given.
20143 if test "${enable_mysql_cookie+set}" = set; then
20144 enableval=$enable_mysql_cookie;
20148 # Check whether --with-mysql-header was given.
20149 if test "${with_mysql_header+set}" = set; then
20150 withval=$with_mysql_header;
20154 # Check whether --with-mysql-lib-dir was given.
20155 if test "${with_mysql_lib_dir+set}" = set; then
20156 withval=$with_mysql_lib_dir;
20159 if test "x$enable_mysql_cookie" = "xyes"; then
20160 if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
20161 { { echo "$as_me:$LINENO: error:
20162 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20164 echo "$as_me: error:
20165 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20167 { (exit 1); exit 1; }; }
20169 if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
20170 { { echo "$as_me:$LINENO: error:
20171 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20173 echo "$as_me: error:
20174 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20176 { (exit 1); exit 1; }; }
20178 MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
20179 MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
20181 MYSQL_COOKIE_DEFS=""
20182 MYSQL_COOKIE_LIBS=""
20187 # Check whether --with-openssl was given.
20188 if test "${with_openssl+set}" = set; then
20189 withval=$with_openssl;
20190 if test "$withval" = "yes"; then
20191 { { echo "$as_me:$LINENO: error: --with-openssl requires a path" >&5
20192 echo "$as_me: error: --with-openssl requires a path" >&2;}
20193 { (exit 1); exit 1; }; }
20195 openssl_prefix=$withval
20197 if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
20198 { { echo "$as_me:$LINENO: error: '--with-openssl requires a path to a directory'" >&5
20199 echo "$as_me: error: '--with-openssl requires a path to a directory'" >&2;}
20200 { (exit 1); exit 1; }; }
20203 CPPFLAGS="${CPPFLAGS} -I${openssl_prefix}/include"
20204 LDFLAGS="${LDFLAGS} -L${openssl_prefix}/lib"
20205 LDFLAGS="${LDFLAGS} -R${openssl_prefix}/lib"
20206 OPENSSL_PATH="--with-openssl=${openssl_prefix}"
20212 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20213 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20214 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20215 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20219 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20221 # Is the header compilable?
20222 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20223 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230 $ac_includes_default
20231 #include <openssl/opensslv.h>
20233 rm -f conftest.$ac_objext
20234 if { (ac_try="$ac_compile"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_compile") 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && {
20247 test -z "$ac_c_werror_flag" ||
20248 test ! -s conftest.err
20249 } && test -s conftest.$ac_objext; then
20250 ac_header_compiler=yes
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_header_compiler=no
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6; }
20262 # Is the header present?
20263 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20264 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <openssl/opensslv.h>
20273 if { (ac_try="$ac_cpp conftest.$ac_ext"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } >/dev/null && {
20286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20289 ac_header_preproc=yes
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ac_header_preproc=no
20297 rm -f conftest.err conftest.$ac_ext
20298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20299 echo "${ECHO_T}$ac_header_preproc" >&6; }
20301 # So? What about this header?
20302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20304 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20305 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20307 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20308 ac_header_preproc=yes
20311 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20312 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
20314 echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20316 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
20318 echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20320 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20321 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20322 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20324 ## ---------------------------------------- ##
20325 ## Report this to konn@users.sourceforge.jp ##
20326 ## ---------------------------------------- ##
20328 ) | sed "s/^/$as_me: WARNING: /" >&2
20331 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20332 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20333 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20338 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20339 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20342 if test $ac_cv_header_openssl_opensslv_h = yes; then
20345 { { echo "$as_me:$LINENO: error: We require OpenSSL; try --with-openssl" >&5
20346 echo "$as_me: error: We require OpenSSL; try --with-openssl" >&2;}
20347 { (exit 1); exit 1; }; }
20352 # Check whether --enable-dump-log was given.
20353 if test "${enable_dump_log+set}" = set; then
20354 enableval=$enable_dump_log;
20357 if test "x$enable_dump_log" = "xyes"; then
20358 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
20360 if test "x$enable_dump_log" != "x" ; then
20361 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
20366 if test "x$with_apxs" = "x" ; then
20367 # Extract the first word of "apxs2", so it can be a program name with args.
20368 set dummy apxs2; ac_word=$2
20369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20371 if test "${ac_cv_path_APXS2+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
20379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20381 for as_dir in $as_dummy
20384 test -z "$as_dir" && as_dir=.
20385 for ac_exec_ext in '' $ac_executable_extensions; do
20386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20387 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
20388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20395 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
20399 APXS2=$ac_cv_path_APXS2
20400 if test -n "$APXS2"; then
20401 { echo "$as_me:$LINENO: result: $APXS2" >&5
20402 echo "${ECHO_T}$APXS2" >&6; }
20404 { echo "$as_me:$LINENO: result: no" >&5
20405 echo "${ECHO_T}no" >&6; }
20409 if test "x$APXS2" = "xno"; then
20410 # Extract the first word of "apxs", so it can be a program name with args.
20411 set dummy apxs; ac_word=$2
20412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20414 if test "${ac_cv_path_APXS+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
20422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20423 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20424 for as_dir in $as_dummy
20427 test -z "$as_dir" && as_dir=.
20428 for ac_exec_ext in '' $ac_executable_extensions; do
20429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20430 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
20431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20438 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
20442 APXS=$ac_cv_path_APXS
20443 if test -n "$APXS"; then
20444 { echo "$as_me:$LINENO: result: $APXS" >&5
20445 echo "${ECHO_T}$APXS" >&6; }
20447 { echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6; }
20452 if test "x$APXS" = "xno" ; then
20453 { { echo "$as_me:$LINENO: error: apxs not found." >&5
20454 echo "$as_me: error: apxs not found." >&2;}
20455 { (exit 1); exit 1; }; }
20461 if test "x$with_apxs" != "x" ; then
20465 # Extract the first word of "libtool", so it can be a program name with args.
20466 set dummy libtool; ac_word=$2
20467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20469 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20478 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20479 for as_dir in $as_dummy
20482 test -z "$as_dir" && as_dir=.
20483 for ac_exec_ext in '' $ac_executable_extensions; do
20484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20485 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20493 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20497 LIBTOOL=$ac_cv_path_LIBTOOL
20498 if test -n "$LIBTOOL"; then
20499 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20500 echo "${ECHO_T}$LIBTOOL" >&6; }
20502 { echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6; }
20507 if test "x$LIBTOOL" = "xno"; then
20508 { { echo "$as_me:$LINENO: error: libtool not found." >&5
20509 echo "$as_me: error: libtool not found." >&2;}
20510 { (exit 1); exit 1; }; }
20514 # Extract the first word of "Wand-config", so it can be a program name with args.
20515 set dummy Wand-config; ac_word=$2
20516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20518 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 case $WAND_CONFIG in
20523 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
20526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20528 for as_dir in $as_dummy
20531 test -z "$as_dir" && as_dir=.
20532 for ac_exec_ext in '' $ac_executable_extensions; do
20533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20534 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20542 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
20546 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
20547 if test -n "$WAND_CONFIG"; then
20548 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
20549 echo "${ECHO_T}$WAND_CONFIG" >&6; }
20551 { echo "$as_me:$LINENO: result: no" >&5
20552 echo "${ECHO_T}no" >&6; }
20556 if test "x$WAND_CONFIG" = "xno" ; then
20557 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
20558 echo "$as_me: error: wand-config not found." >&2;}
20559 { (exit 1); exit 1; }; }
20562 if test "x$with_apr_config" = "x" ; then
20563 # Extract the first word of "apr-config", so it can be a program name with args.
20564 set dummy apr-config; ac_word=$2
20565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20567 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 case $APR_CONFIG in
20572 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20576 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20577 for as_dir in $as_dummy
20580 test -z "$as_dir" && as_dir=.
20581 for ac_exec_ext in '' $ac_executable_extensions; do
20582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20583 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20591 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20595 APR_CONFIG=$ac_cv_path_APR_CONFIG
20596 if test -n "$APR_CONFIG"; then
20597 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20598 echo "${ECHO_T}$APR_CONFIG" >&6; }
20600 { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20605 if test "x$APR_CONFIG" = "xno" ; then
20606 # Extract the first word of "apr-1-config", so it can be a program name with args.
20607 set dummy apr-1-config; ac_word=$2
20608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20610 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 case $APR_1_CONFIG in
20615 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20619 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20620 for as_dir in $as_dummy
20623 test -z "$as_dir" && as_dir=.
20624 for ac_exec_ext in '' $ac_executable_extensions; do
20625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20626 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20634 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20638 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20639 if test -n "$APR_1_CONFIG"; then
20640 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20641 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20643 { echo "$as_me:$LINENO: result: no" >&5
20644 echo "${ECHO_T}no" >&6; }
20648 if test "x$APR_1_CONFIG" = "xno" ; then
20649 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20650 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20651 { (exit 1); exit 1; }; }
20653 APR_CONFIG="$APR_1_CONFIG"
20657 if test "x$with_apr_config" != "x" ; then
20658 APR_CONFIG=$with_apr_config
20660 if test "x$with_apu_config" = "x" ; then
20661 # Extract the first word of "apu-config", so it can be a program name with args.
20662 set dummy apu-config; ac_word=$2
20663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20665 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 case $APU_CONFIG in
20670 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20674 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20675 for as_dir in $as_dummy
20678 test -z "$as_dir" && as_dir=.
20679 for ac_exec_ext in '' $ac_executable_extensions; do
20680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20681 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20689 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20693 APU_CONFIG=$ac_cv_path_APU_CONFIG
20694 if test -n "$APU_CONFIG"; then
20695 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20696 echo "${ECHO_T}$APU_CONFIG" >&6; }
20698 { echo "$as_me:$LINENO: result: no" >&5
20699 echo "${ECHO_T}no" >&6; }
20703 if test "x$APU_CONFIG" = "xno" ; then
20704 # Extract the first word of "apu-1-config", so it can be a program name with args.
20705 set dummy apu-1-config; ac_word=$2
20706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20708 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 case $APU_1_CONFIG in
20713 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20717 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20718 for as_dir in $as_dummy
20721 test -z "$as_dir" && as_dir=.
20722 for ac_exec_ext in '' $ac_executable_extensions; do
20723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20724 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20732 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20736 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20737 if test -n "$APU_1_CONFIG"; then
20738 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20739 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20741 { echo "$as_me:$LINENO: result: no" >&5
20742 echo "${ECHO_T}no" >&6; }
20746 if test "x$APU_1_CONFIG" = "xno" ; then
20747 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20748 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20749 { (exit 1); exit 1; }; }
20751 APU_CONFIG="$APU_1_CONFIG"
20755 if test "x$with_apu_config" != "x" ; then
20756 APU_CONFIG=$with_apu_config
20761 CFLAGS="${CFLAGS} -I/usr/local/include "
20765 if test "x${with_apache_header}" = "x" ; then
20766 with_apache_header=`${APXS} -q includedir`
20769 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20770 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20771 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20772 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
20773 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
20774 LIBS="${LIBS} css/src/.libs/libscss.a"
20775 LIBS="${LIBS} -lcrypto -lssl "
20776 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20777 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20778 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20779 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
20780 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20781 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
20782 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
20783 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20785 # Checks for header files.
20786 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20787 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20788 if test "${ac_cv_header_stdc+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20797 #include <stdlib.h>
20798 #include <stdarg.h>
20799 #include <string.h>
20810 rm -f conftest.$ac_objext
20811 if { (ac_try="$ac_compile"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_compile") 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && {
20824 test -z "$ac_c_werror_flag" ||
20825 test ! -s conftest.err
20826 } && test -s conftest.$ac_objext; then
20827 ac_cv_header_stdc=yes
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 ac_cv_header_stdc=no
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837 if test $ac_cv_header_stdc = yes; then
20838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <string.h>
20848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20849 $EGREP "memchr" >/dev/null 2>&1; then
20852 ac_cv_header_stdc=no
20858 if test $ac_cv_header_stdc = yes; then
20859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20860 cat >conftest.$ac_ext <<_ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 #include <stdlib.h>
20869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20870 $EGREP "free" >/dev/null 2>&1; then
20873 ac_cv_header_stdc=no
20879 if test $ac_cv_header_stdc = yes; then
20880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20881 if test "$cross_compiling" = yes; then
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20891 #include <stdlib.h>
20892 #if ((' ' & 0x0FF) == 0x020)
20893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20896 # define ISLOWER(c) \
20897 (('a' <= (c) && (c) <= 'i') \
20898 || ('j' <= (c) && (c) <= 'r') \
20899 || ('s' <= (c) && (c) <= 'z'))
20900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20908 for (i = 0; i < 256; i++)
20909 if (XOR (islower (i), ISLOWER (i))
20910 || toupper (i) != TOUPPER (i))
20915 rm -f conftest$ac_exeext
20916 if { (ac_try="$ac_link"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_link") 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20926 { (case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_try") 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20937 echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ( exit $ac_status )
20942 ac_cv_header_stdc=no
20944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20951 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20952 if test $ac_cv_header_stdc = yes; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define STDC_HEADERS 1
20968 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 ac_res=`eval echo '${'$as_ac_Header'}'`
20978 { echo "$as_me:$LINENO: result: $ac_res" >&5
20979 echo "${ECHO_T}$ac_res" >&6; }
20981 # Is the header compilable?
20982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20984 cat >conftest.$ac_ext <<_ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20990 $ac_includes_default
20991 #include <$ac_header>
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } && {
21007 test -z "$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21009 } && test -s conftest.$ac_objext; then
21010 ac_header_compiler=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_header_compiler=no
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21020 echo "${ECHO_T}$ac_header_compiler" >&6; }
21022 # Is the header present?
21023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21025 cat >conftest.$ac_ext <<_ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21031 #include <$ac_header>
21033 if { (ac_try="$ac_cpp conftest.$ac_ext"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } >/dev/null && {
21046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21049 ac_header_preproc=yes
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 ac_header_preproc=no
21057 rm -f conftest.err conftest.$ac_ext
21058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21059 echo "${ECHO_T}$ac_header_preproc" >&6; }
21061 # So? What about this header?
21062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21068 ac_header_preproc=yes
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21084 ## ---------------------------------------- ##
21085 ## Report this to konn@users.sourceforge.jp ##
21086 ## ---------------------------------------- ##
21088 ) | sed "s/^/$as_me: WARNING: /" >&2
21091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 eval "$as_ac_Header=\$ac_header_preproc"
21098 ac_res=`eval echo '${'$as_ac_Header'}'`
21099 { echo "$as_me:$LINENO: result: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21104 cat >>confdefs.h <<_ACEOF
21105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21112 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
21115 for ac_header in apr_shm.h apr_global_mutex.h
21117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125 { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21128 # Is the header compilable?
21129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 $ac_includes_default
21138 #include <$ac_header>
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_compile") 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } && {
21154 test -z "$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21156 } && test -s conftest.$ac_objext; then
21157 ac_header_compiler=yes
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_header_compiler=no
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21167 echo "${ECHO_T}$ac_header_compiler" >&6; }
21169 # Is the header present?
21170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <$ac_header>
21180 if { (ac_try="$ac_cpp conftest.$ac_ext"
21181 case "(($ac_try" in
21182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183 *) ac_try_echo=$ac_try;;
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } >/dev/null && {
21193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21196 ac_header_preproc=yes
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 ac_header_preproc=no
21204 rm -f conftest.err conftest.$ac_ext
21205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21206 echo "${ECHO_T}$ac_header_preproc" >&6; }
21208 # So? What about this header?
21209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21215 ac_header_preproc=yes
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21231 ## ---------------------------------------- ##
21232 ## Report this to konn@users.sourceforge.jp ##
21233 ## ---------------------------------------- ##
21235 ) | sed "s/^/$as_me: WARNING: /" >&2
21238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 eval "$as_ac_Header=\$ac_header_preproc"
21245 ac_res=`eval echo '${'$as_ac_Header'}'`
21246 { echo "$as_me:$LINENO: result: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21251 cat >>confdefs.h <<_ACEOF
21252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21260 for ac_header in apr.h
21262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 ac_res=`eval echo '${'$as_ac_Header'}'`
21270 { echo "$as_me:$LINENO: result: $ac_res" >&5
21271 echo "${ECHO_T}$ac_res" >&6; }
21273 # Is the header compilable?
21274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 $ac_includes_default
21283 #include <$ac_header>
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 ac_header_compiler=yes
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_header_compiler=no
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21312 echo "${ECHO_T}$ac_header_compiler" >&6; }
21314 # Is the header present?
21315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21317 cat >conftest.$ac_ext <<_ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <$ac_header>
21325 if { (ac_try="$ac_cpp conftest.$ac_ext"
21326 case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } >/dev/null && {
21338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21341 ac_header_preproc=yes
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_header_preproc=no
21349 rm -f conftest.err conftest.$ac_ext
21350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21351 echo "${ECHO_T}$ac_header_preproc" >&6; }
21353 # So? What about this header?
21354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21360 ac_header_preproc=yes
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21376 ## ---------------------------------------- ##
21377 ## Report this to konn@users.sourceforge.jp ##
21378 ## ---------------------------------------- ##
21380 ) | sed "s/^/$as_me: WARNING: /" >&2
21383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 eval "$as_ac_Header=\$ac_header_preproc"
21390 ac_res=`eval echo '${'$as_ac_Header'}'`
21391 { echo "$as_me:$LINENO: result: $ac_res" >&5
21392 echo "${ECHO_T}$ac_res" >&6; }
21395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21396 cat >>confdefs.h <<_ACEOF
21397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21405 for ac_header in ap_config.h
21407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 ac_res=`eval echo '${'$as_ac_Header'}'`
21415 { echo "$as_me:$LINENO: result: $ac_res" >&5
21416 echo "${ECHO_T}$ac_res" >&6; }
21418 # Is the header compilable?
21419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 $ac_includes_default
21428 #include <$ac_header>
21430 rm -f conftest.$ac_objext
21431 if { (ac_try="$ac_compile"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_compile") 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } && {
21444 test -z "$ac_c_werror_flag" ||
21445 test ! -s conftest.err
21446 } && test -s conftest.$ac_objext; then
21447 ac_header_compiler=yes
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_header_compiler=no
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6; }
21459 # Is the header present?
21460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <$ac_header>
21470 if { (ac_try="$ac_cpp conftest.$ac_ext"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } >/dev/null && {
21483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21486 ac_header_preproc=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_header_preproc=no
21494 rm -f conftest.err conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21496 echo "${ECHO_T}$ac_header_preproc" >&6; }
21498 # So? What about this header?
21499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21505 ac_header_preproc=yes
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21521 ## ---------------------------------------- ##
21522 ## Report this to konn@users.sourceforge.jp ##
21523 ## ---------------------------------------- ##
21525 ) | sed "s/^/$as_me: WARNING: /" >&2
21528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 eval "$as_ac_Header=\$ac_header_preproc"
21535 ac_res=`eval echo '${'$as_ac_Header'}'`
21536 { echo "$as_me:$LINENO: result: $ac_res" >&5
21537 echo "${ECHO_T}$ac_res" >&6; }
21540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21550 for ac_header in libgen.h
21552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 ac_res=`eval echo '${'$as_ac_Header'}'`
21560 { echo "$as_me:$LINENO: result: $ac_res" >&5
21561 echo "${ECHO_T}$ac_res" >&6; }
21563 # Is the header compilable?
21564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 $ac_includes_default
21573 #include <$ac_header>
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_compile") 2>conftest.er1
21584 grep -v '^ *+' conftest.er1 >conftest.err
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } && {
21589 test -z "$ac_c_werror_flag" ||
21590 test ! -s conftest.err
21591 } && test -s conftest.$ac_objext; then
21592 ac_header_compiler=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_header_compiler=no
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21602 echo "${ECHO_T}$ac_header_compiler" >&6; }
21604 # Is the header present?
21605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 #include <$ac_header>
21615 if { (ac_try="$ac_cpp conftest.$ac_ext"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21623 grep -v '^ *+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } >/dev/null && {
21628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21629 test ! -s conftest.err
21631 ac_header_preproc=yes
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21636 ac_header_preproc=no
21639 rm -f conftest.err conftest.$ac_ext
21640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21641 echo "${ECHO_T}$ac_header_preproc" >&6; }
21643 # So? What about this header?
21644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21650 ac_header_preproc=yes
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21666 ## ---------------------------------------- ##
21667 ## Report this to konn@users.sourceforge.jp ##
21668 ## ---------------------------------------- ##
21670 ) | sed "s/^/$as_me: WARNING: /" >&2
21673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 eval "$as_ac_Header=\$ac_header_preproc"
21680 ac_res=`eval echo '${'$as_ac_Header'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21686 cat >>confdefs.h <<_ACEOF
21687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21694 #AC_CHECK_HEADERS([ap_regex.h],
21695 # AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
21700 ##ifdef HAVE_AP_CONFIG_H
21701 ##include "ap_config.h"
21705 for ac_header in ap_regex.h
21707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21722 #ifdef HAVE_AP_CONFIG_H
21723 # include "ap_config.h"
21727 #include <$ac_header>
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_compile") 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } && {
21743 test -z "$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21745 } && test -s conftest.$ac_objext; then
21746 eval "$as_ac_Header=yes"
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21751 eval "$as_ac_Header=no"
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 ac_res=`eval echo '${'$as_ac_Header'}'`
21757 { echo "$as_me:$LINENO: result: $ac_res" >&5
21758 echo "${ECHO_T}$ac_res" >&6; }
21759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21765 use_pcre_flag="yes"
21770 if test "x$use_pcre_flag" = "xyes" ; then
21771 if test "x$with_pcre_config" = "x" ; then
21772 # Extract the first word of "pcre-config", so it can be a program name with args.
21773 set dummy pcre-config; ac_word=$2
21774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21776 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 case $PCRE_CONFIG in
21781 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21786 for as_dir in $as_dummy
21789 test -z "$as_dir" && as_dir=.
21790 for ac_exec_ext in '' $ac_executable_extensions; do
21791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21792 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21800 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21804 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21805 if test -n "$PCRE_CONFIG"; then
21806 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21807 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21809 { echo "$as_me:$LINENO: result: no" >&5
21810 echo "${ECHO_T}no" >&6; }
21814 if test "x$PCRE_CONFIG" = "xno" ; then
21815 # Extract the first word of "pcre-1-config", so it can be a program name with args.
21816 set dummy pcre-1-config; ac_word=$2
21817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21819 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 case $PCRE_1_CONFIG in
21824 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21828 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21829 for as_dir in $as_dummy
21832 test -z "$as_dir" && as_dir=.
21833 for ac_exec_ext in '' $ac_executable_extensions; do
21834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21835 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21843 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21847 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21848 if test -n "$PCRE_1_CONFIG"; then
21849 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21850 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21852 { echo "$as_me:$LINENO: result: no" >&5
21853 echo "${ECHO_T}no" >&6; }
21857 if test "x$PCRE_1_CONFIG" = "xno" ; then
21858 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21859 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21860 { (exit 1); exit 1; }; }
21862 PCRE_CONFIG="$PCRE_1_CONFIG"
21866 if test "x$with_pcre_config" != "x" ; then
21867 PCRE_CONFIG=$with_pcre_config
21869 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21872 cat >>confdefs.h <<\_ACEOF
21873 #define HAVE_AP_REGEX_H 1
21878 # Checks for typedefs, structures, and compiler characteristics.
21879 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21880 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21881 if test "${ac_cv_c_const+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21894 /* FIXME: Include the comments suggested by Paul. */
21895 #ifndef __cplusplus
21896 /* Ultrix mips cc rejects this. */
21897 typedef int charset[2];
21899 /* SunOS 4.1.1 cc rejects this. */
21900 char const *const *pcpcc;
21902 /* NEC SVR4.0.2 mips cc rejects this. */
21903 struct point {int x, y;};
21904 static struct point const zero = {0,0};
21905 /* AIX XL C 1.02.0.0 rejects this.
21906 It does not let you subtract one const X* pointer from another in
21907 an arm of an if-expression whose if-part is not a constant
21909 const char *g = "string";
21910 pcpcc = &g + (g ? g-g : 0);
21911 /* HPUX 7.0 cc rejects these. */
21913 ppc = (char**) pcpcc;
21914 pcpcc = (char const *const *) ppc;
21915 { /* SCO 3.2v4 cc rejects this. */
21917 char const *s = 0 ? (char *) 0 : (char const *) 0;
21922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21923 int x[] = {25, 17};
21924 const int *foo = &x[0];
21927 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21928 typedef const int *iptr;
21932 { /* AIX XL C 1.02.0.0 rejects this saying
21933 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21934 struct s { int j; const int *ap[3]; };
21935 struct s *b; b->j = 5;
21937 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21938 const int foo = 10;
21939 if (!foo) return 0;
21941 return !cs[0] && !zero.x;
21948 rm -f conftest.$ac_objext
21949 if { (ac_try="$ac_compile"
21950 case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_compile") 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } && {
21962 test -z "$ac_c_werror_flag" ||
21963 test ! -s conftest.err
21964 } && test -s conftest.$ac_objext; then
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21976 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21977 if test $ac_cv_c_const = no; then
21979 cat >>confdefs.h <<\_ACEOF
21986 # Checks for library functions.
21988 for ac_header in stdlib.h
21990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 ac_res=`eval echo '${'$as_ac_Header'}'`
21998 { echo "$as_me:$LINENO: result: $ac_res" >&5
21999 echo "${ECHO_T}$ac_res" >&6; }
22001 # Is the header compilable?
22002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22004 cat >conftest.$ac_ext <<_ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 $ac_includes_default
22011 #include <$ac_header>
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22030 ac_header_compiler=yes
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_header_compiler=no
22038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22040 echo "${ECHO_T}$ac_header_compiler" >&6; }
22042 # Is the header present?
22043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22045 cat >conftest.$ac_ext <<_ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 #include <$ac_header>
22053 if { (ac_try="$ac_cpp conftest.$ac_ext"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22061 grep -v '^ *+' conftest.er1 >conftest.err
22063 cat conftest.err >&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } >/dev/null && {
22066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22069 ac_header_preproc=yes
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22074 ac_header_preproc=no
22077 rm -f conftest.err conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22079 echo "${ECHO_T}$ac_header_preproc" >&6; }
22081 # So? What about this header?
22082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22088 ac_header_preproc=yes
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22104 ## ---------------------------------------- ##
22105 ## Report this to konn@users.sourceforge.jp ##
22106 ## ---------------------------------------- ##
22108 ) | sed "s/^/$as_me: WARNING: /" >&2
22111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 eval "$as_ac_Header=\$ac_header_preproc"
22118 ac_res=`eval echo '${'$as_ac_Header'}'`
22119 { echo "$as_me:$LINENO: result: $ac_res" >&5
22120 echo "${ECHO_T}$ac_res" >&6; }
22123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22132 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22133 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22134 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 if test "$cross_compiling" = yes; then
22138 ac_cv_func_malloc_0_nonnull=no
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22147 # include <stdlib.h>
22155 return ! malloc (0);
22160 rm -f conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167 (eval "$ac_link") 2>&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171 { (case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_try") 2>&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ac_cv_func_malloc_0_nonnull=yes
22182 echo "$as_me: program exited with status $ac_status" >&5
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ( exit $ac_status )
22187 ac_cv_func_malloc_0_nonnull=no
22189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22195 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22196 if test $ac_cv_func_malloc_0_nonnull = yes; then
22198 cat >>confdefs.h <<\_ACEOF
22199 #define HAVE_MALLOC 1
22203 cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_MALLOC 0
22207 case " $LIBOBJS " in
22208 *" malloc.$ac_objext "* ) ;;
22209 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22214 cat >>confdefs.h <<\_ACEOF
22215 #define malloc rpl_malloc
22230 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22246 #define $ac_func innocuous_$ac_func
22248 /* System header to define __stub macros and hopefully few prototypes,
22249 which can conflict with char $ac_func (); below.
22250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251 <limits.h> exists even on freestanding compilers. */
22254 # include <limits.h>
22256 # include <assert.h>
22261 /* Override any GCC internal prototype to avoid an error.
22262 Use char because int might match the return type of a GCC
22263 builtin and then its argument prototype would still apply. */
22268 /* The GNU C library defines this for functions which it implements
22269 to always fail with ENOSYS. Some functions are actually named
22270 something starting with __ and the normal name is an alias. */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22278 return $ac_func ();
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && {
22297 test -z "$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 } && test -s conftest$ac_exeext &&
22300 $as_test_x conftest$ac_exeext; then
22301 eval "$as_ac_var=yes"
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 eval "$as_ac_var=no"
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310 conftest$ac_exeext conftest.$ac_ext
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313 { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22335 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec"
22337 cat >confcache <<\_ACEOF
22338 # This file is a shell script that caches the results of configure
22339 # tests run on this system so they can be shared between configure
22340 # scripts and configure runs, see configure's option --config-cache.
22341 # It is not useful on other systems. If it contains results you don't
22342 # want to keep, you may remove or edit it.
22344 # config.status only pays attention to the cache file if you give it
22345 # the --recheck option to rerun configure.
22347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22349 # following values.
22353 # The following way of writing the cache mishandles newlines in values,
22354 # but we know of no workaround that is simple, portable, and efficient.
22355 # So, we kill variables containing newlines.
22356 # Ultrix sh set writes to stderr and can't be redirected directly,
22357 # and sets the high bit in the cache file unless we assign to the vars.
22359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22360 eval ac_val=\$$ac_var
22364 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22365 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22368 _ | IFS | as_nl) ;; #(
22369 *) $as_unset $ac_var ;;
22375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22376 *${as_nl}ac_space=\ *)
22377 # `set' does not quote correctly, so add quotes (double-quote
22378 # substitution turns \\\\ into \\, and sed turns \\ into \).
22381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22384 # `set' quotes correctly as required by POSIX, so do not add quotes.
22385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22399 if test -w "$cache_file"; then
22400 test "x$cache_file" != "x/dev/null" &&
22401 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22402 echo "$as_me: updating cache $cache_file" >&6;}
22403 cat confcache >$cache_file
22405 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22406 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22412 # Let make expand exec_prefix.
22413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22415 DEFS=-DHAVE_CONFIG_H
22419 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22420 # 1. Remove the extension, and $U if already installed.
22421 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22422 ac_i=`echo "$ac_i" | sed "$ac_script"`
22423 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22424 # will be set to the directory where LIBOBJS objects are built.
22425 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22426 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22428 LIBOBJS=$ac_libobjs
22430 LTLIBOBJS=$ac_ltlibobjs
22433 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22434 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22435 Usually this means the macro was only invoked conditionally." >&5
22436 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22437 Usually this means the macro was only invoked conditionally." >&2;}
22438 { (exit 1); exit 1; }; }
22440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22441 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22442 Usually this means the macro was only invoked conditionally." >&5
22443 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22444 Usually this means the macro was only invoked conditionally." >&2;}
22445 { (exit 1); exit 1; }; }
22447 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22448 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22449 Usually this means the macro was only invoked conditionally." >&5
22450 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22451 Usually this means the macro was only invoked conditionally." >&2;}
22452 { (exit 1); exit 1; }; }
22455 : ${CONFIG_STATUS=./config.status}
22456 ac_clean_files_save=$ac_clean_files
22457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22460 cat >$CONFIG_STATUS <<_ACEOF
22462 # Generated by $as_me.
22463 # Run this file to recreate the current configuration.
22464 # Compiler output produced by configure, useful for debugging
22465 # configure, is in config.log if it exists.
22468 ac_cs_recheck=false
22470 SHELL=\${CONFIG_SHELL-$SHELL}
22473 cat >>$CONFIG_STATUS <<\_ACEOF
22474 ## --------------------- ##
22475 ## M4sh Initialization. ##
22476 ## --------------------- ##
22478 # Be more Bourne compatible
22479 DUALCASE=1; export DUALCASE # for MKS sh
22480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22483 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22484 # is contrary to our usage. Disable this feature.
22485 alias -g '${1+"$@"}'='"$@"'
22486 setopt NO_GLOB_SUBST
22488 case `(set -o) 2>/dev/null` in
22489 *posix*) set -o posix ;;
22498 # Avoid depending upon Character Ranges.
22499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22502 as_cr_digits='0123456789'
22503 as_cr_alnum=$as_cr_Letters$as_cr_digits
22505 # The user is always right.
22506 if test "${PATH_SEPARATOR+set}" != set; then
22507 echo "#! /bin/sh" >conf$$.sh
22508 echo "exit 0" >>conf$$.sh
22510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22518 # Support unset when possible.
22519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22527 # We need space, tab and new line, in precisely that order. Quoting is
22528 # there to prevent editors from complaining about space-tab.
22529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22530 # splitting by setting IFS to empty value.)
22535 # Find who we are. Look in the path if we contain no directory separator.
22537 *[\\/]* ) as_myself=$0 ;;
22538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22539 for as_dir in $PATH
22542 test -z "$as_dir" && as_dir=.
22543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22549 # We did not find ourselves, most probably we were run as `sh COMMAND'
22550 # in which case we are not to be found in the path.
22551 if test "x$as_myself" = x; then
22554 if test ! -f "$as_myself"; then
22555 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22556 { (exit 1); exit 1; }
22559 # Work around bugs in pre-3.0 UWIN ksh.
22560 for as_var in ENV MAIL MAILPATH
22561 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22569 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22570 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22571 LC_TELEPHONE LC_TIME
22573 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22574 eval $as_var=C; export $as_var
22576 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22580 # Required to use basename.
22581 if expr a : '\(a\)' >/dev/null 2>&1 &&
22582 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22589 as_basename=basename
22595 # Name of the executable.
22596 as_me=`$as_basename -- "$0" ||
22597 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22598 X"$0" : 'X\(//\)$' \| \
22599 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22601 sed '/^.*\/\([^/][^/]*\)\/*$/{
22620 as_lineno_1=$LINENO
22621 as_lineno_2=$LINENO
22622 test "x$as_lineno_1" != "x$as_lineno_2" &&
22623 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22625 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22626 # uniformly replaced by the line number. The first 'sed' inserts a
22627 # line-number line after each line using $LINENO; the second 'sed'
22628 # does the real work. The second script uses 'N' to pair each
22629 # line-number line with the line containing $LINENO, and appends
22630 # trailing '-' during substitution so that $LINENO is not a special
22631 # case at line end.
22632 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22633 # scripts with optimization help from Paolo Bonzini. Blame Lee
22634 # E. McMahon (1931-1989) for sed's syntax. :-)
22646 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22649 ' >$as_me.lineno &&
22650 chmod +x "$as_me.lineno" ||
22651 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22652 { (exit 1); exit 1; }; }
22654 # Don't try to exec as it changes $[0], causing all sort of problems
22655 # (the dirname of $[0] is not the place where we might find the
22656 # original and so on. Autoconf is especially sensitive to this).
22657 . "./$as_me.lineno"
22658 # Exit status is that of the last command.
22663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22669 ECHO_C= ECHO_N= ECHO_T=
22670 case `echo -n x` in
22672 case `echo 'x\c'` in
22673 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22680 if expr a : '\(a\)' >/dev/null 2>&1 &&
22681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22687 rm -f conf$$ conf$$.exe conf$$.file
22688 if test -d conf$$.dir; then
22689 rm -f conf$$.dir/conf$$.file
22695 if ln -s conf$$.file conf$$ 2>/dev/null; then
22697 # ... but there are two gotchas:
22698 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22699 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22700 # In both cases, we have to default to `cp -p'.
22701 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22703 elif ln conf$$.file conf$$ 2>/dev/null; then
22708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22709 rmdir conf$$.dir 2>/dev/null
22711 if mkdir -p . 2>/dev/null; then
22714 test -d ./-p && rmdir ./-p
22718 if test -x / >/dev/null 2>&1; then
22719 as_test_x='test -x'
22721 if ls -dL / >/dev/null 2>&1; then
22728 if test -d "$1"; then
22734 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22735 ???[sx]*):;;*)false;;esac;fi
22739 as_executable_p=$as_test_x
22741 # Sed expression to map a string onto a valid CPP name.
22742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22744 # Sed expression to map a string onto a valid variable name.
22745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22750 # Save the log message, to keep $[0] and so on meaningful, and to
22751 # report actual input values of CONFIG_FILES etc. instead of their
22752 # values after options handling.
22754 This file was extended by mod_chxj $as_me 0.13.0, which was
22755 generated by GNU Autoconf 2.61. Invocation command line was
22757 CONFIG_FILES = $CONFIG_FILES
22758 CONFIG_HEADERS = $CONFIG_HEADERS
22759 CONFIG_LINKS = $CONFIG_LINKS
22760 CONFIG_COMMANDS = $CONFIG_COMMANDS
22763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22768 cat >>$CONFIG_STATUS <<_ACEOF
22769 # Files that config.status was made for.
22770 config_files="$ac_config_files"
22771 config_headers="$ac_config_headers"
22772 config_commands="$ac_config_commands"
22776 cat >>$CONFIG_STATUS <<\_ACEOF
22778 \`$as_me' instantiates files from templates according to the
22779 current configuration.
22781 Usage: $0 [OPTIONS] [FILE]...
22783 -h, --help print this help, then exit
22784 -V, --version print version number and configuration settings, then exit
22785 -q, --quiet do not print progress messages
22786 -d, --debug don't remove temporary files
22787 --recheck update $as_me by reconfiguring in the same conditions
22788 --file=FILE[:TEMPLATE]
22789 instantiate the configuration file FILE
22790 --header=FILE[:TEMPLATE]
22791 instantiate the configuration header FILE
22793 Configuration files:
22796 Configuration headers:
22799 Configuration commands:
22802 Report bugs to <bug-autoconf@gnu.org>."
22805 cat >>$CONFIG_STATUS <<_ACEOF
22807 mod_chxj config.status 0.13.0
22808 configured by $0, generated by GNU Autoconf 2.61,
22809 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22811 Copyright (C) 2006 Free Software Foundation, Inc.
22812 This config.status script is free software; the Free Software Foundation
22813 gives unlimited permission to copy, distribute and modify it."
22821 cat >>$CONFIG_STATUS <<\_ACEOF
22822 # If no file are specified by the user, then we need to provide default
22823 # value. By we need to know if files were specified by the user.
22829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22830 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22841 # Handling of the options.
22842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22844 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22845 echo "$ac_cs_version"; exit ;;
22846 --debug | --debu | --deb | --de | --d | -d )
22848 --file | --fil | --fi | --f )
22850 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22851 ac_need_defaults=false;;
22852 --header | --heade | --head | --hea )
22854 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22855 ac_need_defaults=false;;
22857 # Conflict between --help and --header
22858 { echo "$as_me: error: ambiguous option: $1
22859 Try \`$0 --help' for more information." >&2
22860 { (exit 1); exit 1; }; };;
22861 --help | --hel | -h )
22862 echo "$ac_cs_usage"; exit ;;
22863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22864 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22867 # This is an error.
22868 -*) { echo "$as_me: error: unrecognized option: $1
22869 Try \`$0 --help' for more information." >&2
22870 { (exit 1); exit 1; }; } ;;
22872 *) ac_config_targets="$ac_config_targets $1"
22873 ac_need_defaults=false ;;
22879 ac_configure_extra_args=
22881 if $ac_cs_silent; then
22883 ac_configure_extra_args="$ac_configure_extra_args --silent"
22887 cat >>$CONFIG_STATUS <<_ACEOF
22888 if \$ac_cs_recheck; then
22889 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22890 CONFIG_SHELL=$SHELL
22891 export CONFIG_SHELL
22892 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22896 cat >>$CONFIG_STATUS <<\_ACEOF
22900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22901 ## Running $as_me. ##
22907 cat >>$CONFIG_STATUS <<_ACEOF
22911 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22915 cat >>$CONFIG_STATUS <<\_ACEOF
22917 # Handling of arguments.
22918 for ac_config_target in $ac_config_targets
22920 case $ac_config_target in
22921 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22922 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22923 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22924 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22925 "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
22927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22929 { (exit 1); exit 1; }; };;
22934 # If the user did not use the arguments to specify the items to instantiate,
22935 # then the envvar interface is used. Set only those that are not.
22936 # We use the long form for the default assignment because of an extremely
22937 # bizarre bug on SunOS 4.1.3.
22938 if $ac_need_defaults; then
22939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22944 # Have a temporary directory for convenience. Make it in the build tree
22945 # simply because there is no reason against having it here, and in addition,
22946 # creating and moving files from /tmp can sometimes cause problems.
22947 # Hook for its removal unless debugging.
22948 # Note that there is a small window in which the directory will not be cleaned:
22949 # after its creation but before its name has been assigned to `$tmp'.
22953 trap 'exit_status=$?
22954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22956 trap '{ (exit 1); exit 1; }' 1 2 13 15
22958 # Create a (secure) tmp directory for tmp files.
22961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22962 test -n "$tmp" && test -d "$tmp"
22965 tmp=./conf$$-$RANDOM
22966 (umask 077 && mkdir "$tmp")
22969 echo "$me: cannot create a temporary directory in ." >&2
22970 { (exit 1); exit 1; }
22974 # Set up the sed scripts for CONFIG_FILES section.
22977 # No need to generate the scripts if there are no CONFIG_FILES.
22978 # This happens for instance when ./config.status config.h
22979 if test -n "$CONFIG_FILES"; then
22986 for ac_last_try in false false false false false :; do
22987 cat >conf$$subs.sed <<_ACEOF
22988 SHELL!$SHELL$ac_delim
22989 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22990 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22991 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22992 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22993 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22994 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22995 exec_prefix!$exec_prefix$ac_delim
22996 prefix!$prefix$ac_delim
22997 program_transform_name!$program_transform_name$ac_delim
22998 bindir!$bindir$ac_delim
22999 sbindir!$sbindir$ac_delim
23000 libexecdir!$libexecdir$ac_delim
23001 datarootdir!$datarootdir$ac_delim
23002 datadir!$datadir$ac_delim
23003 sysconfdir!$sysconfdir$ac_delim
23004 sharedstatedir!$sharedstatedir$ac_delim
23005 localstatedir!$localstatedir$ac_delim
23006 includedir!$includedir$ac_delim
23007 oldincludedir!$oldincludedir$ac_delim
23008 docdir!$docdir$ac_delim
23009 infodir!$infodir$ac_delim
23010 htmldir!$htmldir$ac_delim
23011 dvidir!$dvidir$ac_delim
23012 pdfdir!$pdfdir$ac_delim
23013 psdir!$psdir$ac_delim
23014 libdir!$libdir$ac_delim
23015 localedir!$localedir$ac_delim
23016 mandir!$mandir$ac_delim
23017 DEFS!$DEFS$ac_delim
23018 ECHO_C!$ECHO_C$ac_delim
23019 ECHO_N!$ECHO_N$ac_delim
23020 ECHO_T!$ECHO_T$ac_delim
23021 LIBS!$LIBS$ac_delim
23022 build_alias!$build_alias$ac_delim
23023 host_alias!$host_alias$ac_delim
23024 target_alias!$target_alias$ac_delim
23025 build!$build$ac_delim
23026 build_cpu!$build_cpu$ac_delim
23027 build_vendor!$build_vendor$ac_delim
23028 build_os!$build_os$ac_delim
23029 host!$host$ac_delim
23030 host_cpu!$host_cpu$ac_delim
23031 host_vendor!$host_vendor$ac_delim
23032 host_os!$host_os$ac_delim
23033 target!$target$ac_delim
23034 target_cpu!$target_cpu$ac_delim
23035 target_vendor!$target_vendor$ac_delim
23036 target_os!$target_os$ac_delim
23037 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23038 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23039 INSTALL_DATA!$INSTALL_DATA$ac_delim
23040 am__isrc!$am__isrc$ac_delim
23041 CYGPATH_W!$CYGPATH_W$ac_delim
23042 PACKAGE!$PACKAGE$ac_delim
23043 VERSION!$VERSION$ac_delim
23044 ACLOCAL!$ACLOCAL$ac_delim
23045 AUTOCONF!$AUTOCONF$ac_delim
23046 AUTOMAKE!$AUTOMAKE$ac_delim
23047 AUTOHEADER!$AUTOHEADER$ac_delim
23048 MAKEINFO!$MAKEINFO$ac_delim
23049 install_sh!$install_sh$ac_delim
23050 STRIP!$STRIP$ac_delim
23051 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23052 mkdir_p!$mkdir_p$ac_delim
23054 SET_MAKE!$SET_MAKE$ac_delim
23055 am__leading_dot!$am__leading_dot$ac_delim
23056 AMTAR!$AMTAR$ac_delim
23057 am__tar!$am__tar$ac_delim
23058 am__untar!$am__untar$ac_delim
23060 CFLAGS!$CFLAGS$ac_delim
23061 LDFLAGS!$LDFLAGS$ac_delim
23062 CPPFLAGS!$CPPFLAGS$ac_delim
23063 ac_ct_CC!$ac_ct_CC$ac_delim
23064 EXEEXT!$EXEEXT$ac_delim
23065 OBJEXT!$OBJEXT$ac_delim
23066 DEPDIR!$DEPDIR$ac_delim
23067 am__include!$am__include$ac_delim
23068 am__quote!$am__quote$ac_delim
23069 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23070 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23071 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23072 CCDEPMODE!$CCDEPMODE$ac_delim
23073 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23074 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23076 GREP!$GREP$ac_delim
23077 EGREP!$EGREP$ac_delim
23078 LN_S!$LN_S$ac_delim
23079 ECHO!$ECHO$ac_delim
23081 RANLIB!$RANLIB$ac_delim
23082 DSYMUTIL!$DSYMUTIL$ac_delim
23083 NMEDIT!$NMEDIT$ac_delim
23087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23089 elif $ac_last_try; then
23090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23092 { (exit 1); exit 1; }; }
23094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23099 if test -n "$ac_eof"; then
23100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23101 ac_eof=`expr $ac_eof + 1`
23104 cat >>$CONFIG_STATUS <<_ACEOF
23105 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23110 s/^/s,@/; s/!/@,|#_!!_#|/
23113 s/'"$ac_delim"'$/,g/; t
23115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23116 ' >>$CONFIG_STATUS <conf$$subs.sed
23117 rm -f conf$$subs.sed
23118 cat >>$CONFIG_STATUS <<_ACEOF
23124 for ac_last_try in false false false false false :; do
23125 cat >conf$$subs.sed <<_ACEOF
23127 CXXFLAGS!$CXXFLAGS$ac_delim
23128 ac_ct_CXX!$ac_ct_CXX$ac_delim
23129 CXXDEPMODE!$CXXDEPMODE$ac_delim
23130 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23131 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23132 CXXCPP!$CXXCPP$ac_delim
23134 FFLAGS!$FFLAGS$ac_delim
23135 ac_ct_F77!$ac_ct_F77$ac_delim
23136 LIBTOOL!$LIBTOOL$ac_delim
23137 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23138 APXS2!$APXS2$ac_delim
23139 APXS!$APXS$ac_delim
23140 WAND_CONFIG!$WAND_CONFIG$ac_delim
23141 APR_CONFIG!$APR_CONFIG$ac_delim
23142 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
23143 APU_CONFIG!$APU_CONFIG$ac_delim
23144 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
23145 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
23146 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
23147 LIBOBJS!$LIBOBJS$ac_delim
23148 with_apache_header!$with_apache_header$ac_delim
23149 QDEFS!$QDEFS$ac_delim
23150 DDEFS!$DDEFS$ac_delim
23151 OPENSSL_PATH!$OPENSSL_PATH$ac_delim
23152 LTLIBOBJS!$LTLIBOBJS$ac_delim
23155 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
23157 elif $ac_last_try; then
23158 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23159 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23160 { (exit 1); exit 1; }; }
23162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23166 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23167 if test -n "$ac_eof"; then
23168 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23169 ac_eof=`expr $ac_eof + 1`
23172 cat >>$CONFIG_STATUS <<_ACEOF
23173 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23177 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23178 s/^/s,@/; s/!/@,|#_!!_#|/
23181 s/'"$ac_delim"'$/,g/; t
23183 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23184 ' >>$CONFIG_STATUS <conf$$subs.sed
23185 rm -f conf$$subs.sed
23186 cat >>$CONFIG_STATUS <<_ACEOF
23193 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23194 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23195 # trailing colons and then remove the whole line if VPATH becomes empty
23196 # (actually we leave an empty line to preserve line numbers).
23197 if test "x$srcdir" = x.; then
23198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23199 s/:*\$(srcdir):*/:/
23200 s/:*\${srcdir}:*/:/
23202 s/^\([^=]*=[ ]*\):*/\1/
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23209 fi # test -n "$CONFIG_FILES"
23212 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23215 :[FHLC]) ac_mode=$ac_tag; continue;;
23217 case $ac_mode$ac_tag in
23219 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23220 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23221 { (exit 1); exit 1; }; };;
23222 :[FH]-) ac_tag=-:-;;
23223 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23240 -) ac_f="$tmp/stdin";;
23241 *) # Look for the file first in the build tree, then in the source tree
23242 # (if the path is not absolute). The absolute path cannot be DOS-style,
23243 # because $ac_f cannot contain `:'.
23247 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23249 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23250 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23251 { (exit 1); exit 1; }; };;
23253 ac_file_inputs="$ac_file_inputs $ac_f"
23256 # Let's still pretend it is `configure' which instantiates (i.e., don't
23257 # use $as_me), people would be surprised to read:
23258 # /* config.h. Generated by config.status. */
23259 configure_input="Generated from "`IFS=:
23260 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23261 if test x"$ac_file" != x-; then
23262 configure_input="$ac_file. $configure_input"
23263 { echo "$as_me:$LINENO: creating $ac_file" >&5
23264 echo "$as_me: creating $ac_file" >&6;}
23268 *:-:* | *:-) cat >"$tmp/stdin";;
23273 ac_dir=`$as_dirname -- "$ac_file" ||
23274 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23275 X"$ac_file" : 'X\(//\)[^/]' \| \
23276 X"$ac_file" : 'X\(//\)$' \| \
23277 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23283 /^X\(\/\/\)[^/].*/{
23298 -*) as_dir=./$as_dir;;
23300 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23304 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23305 *) as_qdir=$as_dir;;
23307 as_dirs="'$as_qdir' $as_dirs"
23308 as_dir=`$as_dirname -- "$as_dir" ||
23309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310 X"$as_dir" : 'X\(//\)[^/]' \| \
23311 X"$as_dir" : 'X\(//\)$' \| \
23312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23318 /^X\(\/\/\)[^/].*/{
23331 test -d "$as_dir" && break
23333 test -z "$as_dirs" || eval "mkdir $as_dirs"
23334 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23335 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23336 { (exit 1); exit 1; }; }; }
23340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23343 # A ".." for each directory in $ac_dir_suffix.
23344 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23345 case $ac_top_builddir_sub in
23346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23350 ac_abs_top_builddir=$ac_pwd
23351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23352 # for backward compatibility:
23353 ac_top_builddir=$ac_top_build_prefix
23356 .) # We are building in place.
23358 ac_top_srcdir=$ac_top_builddir_sub
23359 ac_abs_top_srcdir=$ac_pwd ;;
23360 [\\/]* | ?:[\\/]* ) # Absolute name.
23361 ac_srcdir=$srcdir$ac_dir_suffix;
23362 ac_top_srcdir=$srcdir
23363 ac_abs_top_srcdir=$srcdir ;;
23364 *) # Relative name.
23365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23366 ac_top_srcdir=$ac_top_build_prefix$srcdir
23367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23379 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23380 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23382 ac_MKDIR_P=$MKDIR_P
23384 [\\/$]* | ?:[\\/]* ) ;;
23385 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23389 cat >>$CONFIG_STATUS <<\_ACEOF
23390 # If the template does not know about datarootdir, expand it.
23391 # FIXME: This hack should be removed a few years after 2.60.
23392 ac_datarootdir_hack=; ac_datarootdir_seen=
23394 case `sed -n '/datarootdir/ {
23403 ' $ac_file_inputs` in
23404 *datarootdir*) ac_datarootdir_seen=yes;;
23405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23406 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23407 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23409 cat >>$CONFIG_STATUS <<_ACEOF
23410 ac_datarootdir_hack='
23411 s&@datadir@&$datadir&g
23412 s&@docdir@&$docdir&g
23413 s&@infodir@&$infodir&g
23414 s&@localedir@&$localedir&g
23415 s&@mandir@&$mandir&g
23416 s&\\\${datarootdir}&$datarootdir&g' ;;
23420 # Neutralize VPATH when `$srcdir' = `.'.
23421 # Shell code in configure.ac might set extrasub.
23422 # FIXME: do we really want to maintain this feature?
23423 cat >>$CONFIG_STATUS <<_ACEOF
23427 cat >>$CONFIG_STATUS <<\_ACEOF
23429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23430 s&@configure_input@&$configure_input&;t t
23431 s&@top_builddir@&$ac_top_builddir_sub&;t t
23432 s&@srcdir@&$ac_srcdir&;t t
23433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23434 s&@top_srcdir@&$ac_top_srcdir&;t t
23435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23436 s&@builddir@&$ac_builddir&;t t
23437 s&@abs_builddir@&$ac_abs_builddir&;t t
23438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23439 s&@INSTALL@&$ac_INSTALL&;t t
23440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23441 $ac_datarootdir_hack
23442 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23444 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23445 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23447 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23448 which seems to be undefined. Please make sure it is defined." >&5
23449 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23450 which seems to be undefined. Please make sure it is defined." >&2;}
23454 -) cat "$tmp/out"; rm -f "$tmp/out";;
23455 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23464 # Transform confdefs.h into a sed script `conftest.defines', that
23465 # substitutes the proper values into config.h.in to produce config.h.
23466 rm -f conftest.defines conftest.tail
23467 # First, append a space to every undef/define line, to ease matching.
23468 echo 's/$/ /' >conftest.defines
23469 # Then, protect against being on the right side of a sed subst, or in
23470 # an unquoted here document, in config.status. If some macros were
23471 # called several times there might be several #defines for the same
23472 # symbol, which is useless. But do not sort them, since the last
23473 # AC_DEFINE must be honored.
23474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23475 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23476 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23477 # PARAMS is the parameter list in the macro definition--in most cases, it's
23478 # just an empty string.
23479 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23480 ac_dB='\\)[ (].*,\\1define\\2'
23488 s/^[ ]*#[ ]*define[ ][ ]*//
23493 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23494 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23495 ' >>conftest.defines
23497 # Remove the space that was appended to ease matching.
23498 # Then replace #undef with comments. This is necessary, for
23499 # example, in the case of _POSIX_SOURCE, which is predefined and required
23500 # on some systems where configure will not decide to define it.
23501 # (The regexp can be short, since the line contains either #define or #undef.)
23503 s,^[ #]*u.*,/* & */,' >>conftest.defines
23505 # Break up conftest.defines:
23506 ac_max_sed_lines=50
23508 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23509 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23510 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23512 ac_in='$ac_file_inputs'
23513 ac_out='"$tmp/out1"'
23514 ac_nxt='"$tmp/out2"'
23518 # Write a here document:
23519 cat >>$CONFIG_STATUS <<_ACEOF
23520 # First, check the format of the line:
23521 cat >"\$tmp/defines.sed" <<\\CEOF
23522 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23523 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23527 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23529 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23530 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23531 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23532 grep . conftest.tail >/dev/null || break
23533 rm -f conftest.defines
23534 mv conftest.tail conftest.defines
23536 rm -f conftest.defines conftest.tail
23538 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23539 cat >>$CONFIG_STATUS <<\_ACEOF
23540 if test x"$ac_file" != x-; then
23541 echo "/* $configure_input */" >"$tmp/config.h"
23542 cat "$ac_result" >>"$tmp/config.h"
23543 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23544 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23545 echo "$as_me: $ac_file is unchanged" >&6;}
23548 mv "$tmp/config.h" $ac_file
23551 echo "/* $configure_input */"
23555 # Compute $ac_file's index in $config_headers.
23558 for _am_header in $config_headers :; do
23559 case $_am_header in
23560 $_am_arg | $_am_arg:* )
23563 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23566 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23567 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23568 X"$_am_arg" : 'X\(//\)[^/]' \| \
23569 X"$_am_arg" : 'X\(//\)$' \| \
23570 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23576 /^X\(\/\/\)[^/].*/{
23588 s/.*/./; q'`/stamp-h$_am_stamp_count
23591 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23592 echo "$as_me: executing $ac_file commands" >&6;}
23597 case $ac_file$ac_mode in
23598 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23599 # Strip MF so we end up with the name of the file.
23600 mf=`echo "$mf" | sed -e 's/:.*$//'`
23601 # Check whether this is an Automake generated Makefile or not.
23602 # We used to match only the files named `Makefile.in', but
23603 # some people rename them; so instead we look at the file content.
23604 # Grep'ing the first line is not enough: some people post-process
23605 # each Makefile.in and add a new line on top of each file to say so.
23606 # Grep'ing the whole file is not good either: AIX grep has a line
23607 # limit of 2048, but all sed's we know have understand at least 4000.
23608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23609 dirpart=`$as_dirname -- "$mf" ||
23610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23611 X"$mf" : 'X\(//\)[^/]' \| \
23612 X"$mf" : 'X\(//\)$' \| \
23613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23619 /^X\(\/\/\)[^/].*/{
23635 # Extract the definition of DEPDIR, am__include, and am__quote
23636 # from the Makefile without running `make'.
23637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23638 test -z "$DEPDIR" && continue
23639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23640 test -z "am__include" && continue
23641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23642 # When using ansi2knr, U may be empty or an underscore; expand it
23643 U=`sed -n 's/^U = //p' < "$mf"`
23644 # Find all dependency output files, they are included files with
23645 # $(DEPDIR) in their names. We invoke sed twice because it is the
23646 # simplest approach to changing $(DEPDIR) to its actual value in the
23648 for file in `sed -n "
23649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23651 # Make sure the directory exists.
23652 test -f "$dirpart/$file" && continue
23653 fdir=`$as_dirname -- "$file" ||
23654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23655 X"$file" : 'X\(//\)[^/]' \| \
23656 X"$file" : 'X\(//\)$' \| \
23657 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23663 /^X\(\/\/\)[^/].*/{
23676 { as_dir=$dirpart/$fdir
23678 -*) as_dir=./$as_dir;;
23680 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23684 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23685 *) as_qdir=$as_dir;;
23687 as_dirs="'$as_qdir' $as_dirs"
23688 as_dir=`$as_dirname -- "$as_dir" ||
23689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23690 X"$as_dir" : 'X\(//\)[^/]' \| \
23691 X"$as_dir" : 'X\(//\)$' \| \
23692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23698 /^X\(\/\/\)[^/].*/{
23711 test -d "$as_dir" && break
23713 test -z "$as_dirs" || eval "mkdir $as_dirs"
23714 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23715 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23716 { (exit 1); exit 1; }; }; }
23717 # echo "creating $dirpart/$file"
23718 echo '# dummy' > "$dirpart/$file"
23727 { (exit 0); exit 0; }
23729 chmod +x $CONFIG_STATUS
23730 ac_clean_files=$ac_clean_files_save
23733 # configure is writing to config.log, and then calls config.status.
23734 # config.status does its own redirection, appending to config.log.
23735 # Unfortunately, on DOS this fails, as config.log is still kept open
23736 # by configure, so config.status won't be able to write to it; its
23737 # output is simply discarded. So we exec the FD to /dev/null,
23738 # effectively closing config.log, so it can be properly (re)opened and
23739 # appended to by config.status. When coming back to configure, we
23740 # need to make the FD available again.
23741 if test "$no_create" != yes; then
23743 ac_config_status_args=
23744 test "$silent" = yes &&
23745 ac_config_status_args="$ac_config_status_args --quiet"
23747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23750 # would make configure fail if this is the last instruction.
23751 $ac_cs_success || { (exit 1); exit 1; }