Added missing files to each core and logic makefiles (NPOTB).
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PCRE 7.9.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
689 # maybe with a smaller string...
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 # Oops. We lost completely, so just stick with echo.
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 ac_default_prefix=/usr/local
740 ac_config_libobj_dir=.
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
750 PACKAGE_TARNAME='pcre'
751 PACKAGE_VERSION='7.9'
752 PACKAGE_STRING='PCRE 7.9'
755 ac_unique_file="pcre.h.in"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
769 # ifdef HAVE_STDLIB_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
792 ac_subst_vars='LTLIBOBJS
797 DISTCHECK_CONFIGURE_FLAGS
798 EXTRA_LIBPCRECPP_LDFLAGS
799 EXTRA_LIBPCREPOSIX_LDFLAGS
800 EXTRA_LIBPCRE_LDFLAGS
803 WITH_REBUILD_CHARTABLES_FALSE
804 WITH_REBUILD_CHARTABLES_TRUE
807 pcre_have_bits_type_traits
808 pcre_have_type_traits
869 INSTALL_STRIP_PROGRAM
911 program_transform_name
923 enable_option_checking
924 enable_dependency_tracking
933 enable_rebuild_chartables
935 enable_unicode_properties
938 enable_newline_is_crlf
939 enable_newline_is_anycrlf
940 enable_newline_is_any
943 enable_stack_for_recursion
945 enable_pcregrep_libbz2
946 enable_pcretest_libreadline
947 with_posix_malloc_threshold
950 with_match_limit_recursion
952 ac_precious_vars='build_alias
969 # Initialize some variables set by options.
971 ac_init_version=false
972 ac_unrecognized_opts=
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
983 program_transform_name=s,x,x,
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1059 -datadir | --datadir | --datadi | --datad)
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1071 -disable-* | --disable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval enable_$ac_useropt=no ;;
1088 -docdir | --docdir | --docdi | --doc | --do)
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1098 -enable-* | --enable-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144 htmldir=$ac_optarg ;;
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1158 -libdir | --libdir | --libdi | --libd)
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1249 -psdir | --psdir | --psdi | --psd | --ps)
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1277 -site=* | --site=* | --sit=*)
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308 { (exit 1); exit 1; }; }
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1318 eval with_$ac_useropt=\$ac_optarg ;;
1320 -without-* | --without-*)
1321 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325 { (exit 1); exit 1; }; }
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1335 eval with_$ac_useropt=no ;;
1338 # Obsolete; use --with-x.
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1356 Try \`$0 --help' for more information." >&2
1357 { (exit 1); exit 1; }; }
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1364 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1365 { (exit 1); exit 1; }; }
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1383 { (exit 1); exit 1; }; }
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1389 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1390 { (exit 1); exit 1; }; } ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 # Check all directory arguments for consistency.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1408 # Be sure to have absolute directory names.
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1414 { (exit 1); exit 1; }; }
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1422 target=$target_alias
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
1428 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429 If a cross compiler is detected then cross compile mode will be used." >&2
1430 elif test "x$build_alias" != "x$host_alias"; then
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438 test "$silent" = yes && exec 6>/dev/null
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1445 { (exit 1); exit 1; }; }
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1448 { (exit 1); exit 1; }; }
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453 ac_srcdir_defaulted=yes
1454 # Try the directory containing this script, then the parent directory.
1455 ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457 X"$as_myself" : 'X\(//\)[^/]' \| \
1458 X"$as_myself" : 'X\(//\)$' \| \
1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1483 ac_srcdir_defaulted=no
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1488 { (exit 1); exit 1; }; }
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1493 { (exit 1); exit 1; }; }
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1519 \`configure' configures PCRE 7.9 to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1582 --build=BUILD configure for building on BUILD [guessed]
1583 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1587 if test -n "$ac_init_help"; then
1588 case $ac_init_help in
1589 short | recursive ) echo "Configuration of PCRE 7.9:";;
1594 --disable-option-checking ignore unrecognized --enable/--with options
1595 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1596 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1597 --disable-dependency-tracking speeds up one-time build
1598 --enable-dependency-tracking do not reject slow dependency extractors
1599 --enable-shared[=PKGS] build shared libraries [default=yes]
1600 --enable-static[=PKGS] build static libraries [default=yes]
1601 --enable-fast-install[=PKGS]
1602 optimize for fast installation [default=yes]
1603 --disable-libtool-lock avoid locking (might break parallel builds)
1604 --disable-cpp disable C++ support
1605 --enable-rebuild-chartables
1606 rebuild character tables in current locale
1607 --enable-utf8 enable UTF-8 support (incompatible with
1609 --enable-unicode-properties
1610 enable Unicode properties support (implies
1612 --enable-newline-is-cr use CR as newline character
1613 --enable-newline-is-lf use LF as newline character (default)
1614 --enable-newline-is-crlf
1615 use CRLF as newline sequence
1616 --enable-newline-is-anycrlf
1617 use CR, LF, or CRLF as newline sequence
1618 --enable-newline-is-any use any valid Unicode newline sequence
1619 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1620 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1621 with --enable-utf8; use only in (uncommon) EBCDIC
1622 environments; it implies --enable-rebuild-chartables
1623 --disable-stack-for-recursion
1624 don't use stack recursion when matching
1625 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1626 --enable-pcregrep-libbz2
1627 link pcregrep with libbz2 to handle .bz2 files
1628 --enable-pcretest-libreadline
1629 link pcretest with libreadline
1632 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1633 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1634 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1635 --with-pic try to use only PIC/non-PIC objects [default=use
1637 --with-tags[=TAGS] include additional configurations [automatic]
1638 --with-posix-malloc-threshold=NBYTES
1639 threshold for POSIX malloc usage (default=10)
1640 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1641 --with-match-limit=N default limit on internal looping (default=10000000)
1642 --with-match-limit-recursion=N
1643 default limit on internal recursion
1644 (default=MATCH_LIMIT)
1646 Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1654 CXX C++ compiler command
1655 CXXFLAGS C++ compiler flags
1657 CXXCPP C++ preprocessor
1658 F77 Fortran 77 compiler command
1659 FFLAGS Fortran 77 compiler flags
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1668 if test "$ac_init_help" = "recursive"; then
1669 # If there are subdirs, report their specific --help.
1670 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1671 test -d "$ac_dir" ||
1672 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1680 # A ".." for each directory in $ac_dir_suffix.
1681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1682 case $ac_top_builddir_sub in
1683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1687 ac_abs_top_builddir=$ac_pwd
1688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1689 # for backward compatibility:
1690 ac_top_builddir=$ac_top_build_prefix
1693 .) # We are building in place.
1695 ac_top_srcdir=$ac_top_builddir_sub
1696 ac_abs_top_srcdir=$ac_pwd ;;
1697 [\\/]* | ?:[\\/]* ) # Absolute name.
1698 ac_srcdir=$srcdir$ac_dir_suffix;
1699 ac_top_srcdir=$srcdir
1700 ac_abs_top_srcdir=$srcdir ;;
1702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703 ac_top_srcdir=$ac_top_build_prefix$srcdir
1704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1708 cd "$ac_dir" || { ac_status=$?; continue; }
1709 # Check for guested configure.
1710 if test -f "$ac_srcdir/configure.gnu"; then
1712 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713 elif test -f "$ac_srcdir/configure"; then
1715 $SHELL "$ac_srcdir/configure" --help=recursive
1717 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719 cd "$ac_pwd" || { ac_status=$?; break; }
1723 test -n "$ac_init_help" && exit $ac_status
1724 if $ac_init_version; then
1727 generated by GNU Autoconf 2.63
1729 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1730 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1731 This configure script is free software; the Free Software Foundation
1732 gives unlimited permission to copy, distribute and modify it.
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1740 It was created by PCRE $as_me 7.9, which was
1741 generated by GNU Autoconf 2.63. Invocation command line was
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 test -z "$as_dir" && as_dir=.
1777 $as_echo "PATH: $as_dir"
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1801 ac_must_keep_next=false
1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809 | -silent | --silent | --silen | --sile | --sil)
1812 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1817 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1818 if test $ac_must_keep_next = true; then
1819 ac_must_keep_next=false # Got value, back to normal.
1822 *=* | --config-cache | -C | -disable-* | --disable-* \
1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825 | -with-* | --with-* | -without-* | --without-* | --x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830 -* ) ac_must_keep_next=true ;;
1833 ac_configure_args="$ac_configure_args '$ac_arg'"
1838 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1839 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log. We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1852 ## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##
1857 # The following way of writing the cache mishandles newlines in values,
1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860 eval ac_val=\$$ac_var
1864 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1868 _ | IFS | as_nl) ;; #(
1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1870 *) $as_unset $ac_var ;;
1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876 *${as_nl}ac_space=\ *)
1878 "s/'\''/'\''\\\\'\'''\''/g;
1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 ## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##
1895 for ac_var in $ac_subst_vars
1897 eval ac_val=\$$ac_var
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 $as_echo "$ac_var='\''$ac_val'\''"
1905 if test -n "$ac_subst_files"; then
1907 ## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##
1912 for ac_var in $ac_subst_files
1914 eval ac_val=\$$ac_var
1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918 $as_echo "$ac_var='\''$ac_val'\''"
1923 if test -s confdefs.h; then
1933 test "$ac_signal" != 0 &&
1934 $as_echo "$as_me: caught signal $ac_signal"
1935 $as_echo "$as_me: exit $exit_status"
1937 rm -f core *.core core.conftest.* &&
1938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1941 for ac_signal in 1 2 13 15; do
1942 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest* confdefs.h
1949 # Predefined preprocessor variables.
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_NAME "$PACKAGE_NAME"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer an explicitly selected file to automatically selected ones.
1980 if test -n "$CONFIG_SITE"; then
1981 ac_site_file1=$CONFIG_SITE
1982 elif test "x$prefix" != xNONE; then
1983 ac_site_file1=$prefix/share/config.site
1984 ac_site_file2=$prefix/etc/config.site
1986 ac_site_file1=$ac_default_prefix/share/config.site
1987 ac_site_file2=$ac_default_prefix/etc/config.site
1989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1991 test "x$ac_site_file" = xNONE && continue
1992 if test -r "$ac_site_file"; then
1993 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995 sed 's/^/| /' "$ac_site_file" >&5
2000 if test -r "$cache_file"; then
2001 # Some versions of bash will fail to source /dev/null (special
2002 # files actually), so we avoid doing that.
2003 if test -f "$cache_file"; then
2004 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2005 $as_echo "$as_me: loading cache $cache_file" >&6;}
2007 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2008 *) . "./$cache_file";;
2012 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2013 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017 # Check that the precious variables saved in the cache have kept the same
2019 ac_cache_corrupted=false
2020 for ac_var in $ac_precious_vars; do
2021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2022 eval ac_new_set=\$ac_env_${ac_var}_set
2023 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2024 eval ac_new_val=\$ac_env_${ac_var}_value
2025 case $ac_old_set,$ac_new_set in
2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2029 ac_cache_corrupted=: ;;
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2033 ac_cache_corrupted=: ;;
2036 if test "x$ac_old_val" != "x$ac_new_val"; then
2037 # differences in whitespace do not lead to failure.
2038 ac_old_val_w=`echo x $ac_old_val`
2039 ac_new_val_w=`echo x $ac_new_val`
2040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2042 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043 ac_cache_corrupted=:
2045 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047 eval $ac_var=\$ac_old_val
2049 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2050 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2051 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2052 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2055 # Pass precious variables to config.status.
2056 if test "$ac_new_set" = set; then
2058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 *) ac_arg=$ac_var=$ac_new_val ;;
2061 case " $ac_configure_args " in
2062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2063 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2067 if $ac_cache_corrupted; then
2068 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2071 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2073 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2074 { (exit 1); exit 1; }; }
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 am__api_version='1.10'
2112 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2113 if test -f "$ac_dir/install-sh"; then
2115 ac_install_sh="$ac_aux_dir/install-sh -c"
2117 elif test -f "$ac_dir/install.sh"; then
2119 ac_install_sh="$ac_aux_dir/install.sh -c"
2121 elif test -f "$ac_dir/shtool"; then
2123 ac_install_sh="$ac_aux_dir/shtool install -c"
2127 if test -z "$ac_aux_dir"; then
2128 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2129 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2130 { (exit 1); exit 1; }; }
2133 # These three variables are undocumented and unsupported,
2134 # and are intended to be withdrawn in a future Autoconf release.
2135 # They can cause serious problems if a builder's source tree is in a directory
2136 # whose full name contains unusual characters.
2137 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2138 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2139 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2142 # Find a good install program. We prefer a C program (faster),
2143 # so one script is as good as another. But avoid the broken or
2144 # incompatible versions:
2145 # SysV /etc/install, /usr/sbin/install
2146 # SunOS /usr/etc/install
2147 # IRIX /sbin/install
2149 # AmigaOS /C/install, which installs bootblocks on floppy discs
2150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153 # OS/2's system install, which has a completely different semantic
2154 # ./install, which can be erroneously created by make from ./install.sh.
2155 # Reject install programs that cannot install multiple files.
2156 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2157 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2158 if test -z "$INSTALL"; then
2159 if test "${ac_cv_path_install+set}" = set; then
2160 $as_echo_n "(cached) " >&6
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 # Account for people who put trailing slashes in PATH elements.
2169 ./ | .// | /cC/* | \
2170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2171 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2174 # OSF1 and SCO ODT 3.0 have their own names for install.
2175 # Don't use installbsd from OSF since it installs stuff as root
2177 for ac_prog in ginstall scoinst install; do
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2180 if test $ac_prog = install &&
2181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182 # AIX install. It has an incompatible calling convention.
2184 elif test $ac_prog = install &&
2185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186 # program-specific install script used by HP pwplus--don't use.
2189 rm -rf conftest.one conftest.two conftest.dir
2190 echo one > conftest.one
2191 echo two > conftest.two
2193 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2194 test -s conftest.one && test -s conftest.two &&
2195 test -s conftest.dir/conftest.one &&
2196 test -s conftest.dir/conftest.two
2198 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2211 rm -rf conftest.one conftest.two conftest.dir
2214 if test "${ac_cv_path_install+set}" = set; then
2215 INSTALL=$ac_cv_path_install
2217 # As a last resort, use the slow shell script. Don't cache a
2218 # value for INSTALL within a source directory, because that will
2219 # break other packages using the cache if that directory is
2220 # removed, or if the value is a relative name.
2221 INSTALL=$ac_install_sh
2224 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2225 $as_echo "$INSTALL" >&6; }
2227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2228 # It thinks the first close brace ends the variable substitution.
2229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2235 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2236 $as_echo_n "checking whether build environment is sane... " >&6; }
2239 echo timestamp > conftest.file
2240 # Do `set' in a subshell so we don't clobber the current shell's
2241 # arguments. Must try -L first in case configure is actually a
2242 # symlink; some systems play weird games with the mod time of symlinks
2243 # (eg FreeBSD returns the mod time of the symlink's containing
2246 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2247 if test "$*" = "X"; then
2249 set X `ls -t $srcdir/configure conftest.file`
2252 if test "$*" != "X $srcdir/configure conftest.file" \
2253 && test "$*" != "X conftest.file $srcdir/configure"; then
2255 # If neither matched, then we have a broken ls. This can happen
2256 # if, for instance, CONFIG_SHELL is bash and it inherits a
2257 # broken ls alias from the environment. This has actually
2258 # happened. Such a system could not be considered "sane".
2259 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2260 alias in your environment" >&5
2261 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2262 alias in your environment" >&2;}
2263 { (exit 1); exit 1; }; }
2266 test "$2" = conftest.file
2272 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2273 Check your system clock" >&5
2274 $as_echo "$as_me: error: newly created file is older than distributed files!
2275 Check your system clock" >&2;}
2276 { (exit 1); exit 1; }; }
2278 { $as_echo "$as_me:$LINENO: result: yes" >&5
2279 $as_echo "yes" >&6; }
2280 test "$program_prefix" != NONE &&
2281 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2282 # Use a double $ so make ignores it.
2283 test "$program_suffix" != NONE &&
2284 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2285 # Double any \ or $.
2286 # By default was `s,x,x', remove it if useless.
2287 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2288 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2290 # expand $ac_aux_dir to an absolute path
2291 am_aux_dir=`cd $ac_aux_dir && pwd`
2293 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2294 # Use eval to expand $SHELL
2295 if eval "$MISSING --run true"; then
2296 am_missing_run="$MISSING --run "
2299 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2300 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2303 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2304 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2305 if test -z "$MKDIR_P"; then
2306 if test "${ac_cv_path_mkdir+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2313 test -z "$as_dir" && as_dir=.
2314 for ac_prog in mkdir gmkdir; do
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2317 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2318 'mkdir (GNU coreutils) '* | \
2319 'mkdir (coreutils) '* | \
2320 'mkdir (fileutils) '4.1*)
2321 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2331 if test "${ac_cv_path_mkdir+set}" = set; then
2332 MKDIR_P="$ac_cv_path_mkdir -p"
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for MKDIR_P within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 test -d ./--version && rmdir ./--version
2339 MKDIR_P="$ac_install_sh -d"
2342 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2343 $as_echo "$MKDIR_P" >&6; }
2347 [\\/$]* | ?:[\\/]*) ;;
2348 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2351 for ac_prog in gawk mawk nawk awk
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if test "${ac_cv_prog_AWK+set}" = set; then
2358 $as_echo_n "(cached) " >&6
2360 if test -n "$AWK"; then
2361 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_AWK="$ac_prog"
2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test -n "$AWK"; then
2382 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2383 $as_echo "$AWK" >&6; }
2385 { $as_echo "$as_me:$LINENO: result: no" >&5
2386 $as_echo "no" >&6; }
2390 test -n "$AWK" && break
2393 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2397 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2398 $as_echo_n "(cached) " >&6
2400 cat >conftest.make <<\_ACEOF
2403 @echo '@@@%%%=$(MAKE)=@@@%%%'
2405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2408 eval ac_cv_prog_make_${ac_make}_set=yes;;
2410 eval ac_cv_prog_make_${ac_make}_set=no;;
2414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2415 { $as_echo "$as_me:$LINENO: result: yes" >&5
2416 $as_echo "yes" >&6; }
2419 { $as_echo "$as_me:$LINENO: result: no" >&5
2420 $as_echo "no" >&6; }
2421 SET_MAKE="MAKE=${MAKE-make}"
2424 rm -rf .tst 2>/dev/null
2425 mkdir .tst 2>/dev/null
2426 if test -d .tst; then
2431 rmdir .tst 2>/dev/null
2433 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2435 # is not polluted with repeated "-I."
2436 am__isrc=' -I$(srcdir)'
2437 # test to see if srcdir already configured
2438 if test -f $srcdir/config.status; then
2439 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2440 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2441 { (exit 1); exit 1; }; }
2445 # test whether we have cygpath
2446 if test -z "$CYGPATH_W"; then
2447 if (cygpath --version) >/dev/null 2>/dev/null; then
2448 CYGPATH_W='cygpath -w'
2455 # Define the identity of the package.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE "$PACKAGE"
2465 cat >>confdefs.h <<_ACEOF
2466 #define VERSION "$VERSION"
2469 # Some tools Automake needs.
2471 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2474 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2477 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2480 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2483 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2485 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2487 # Installed binaries are usually stripped using `strip' when the user
2488 # run `make install-strip'. However `strip' might not be the right
2489 # tool to use in cross-compilation environments, therefore Automake
2490 # will honor the `STRIP' environment variable to overrule this program.
2491 if test "$cross_compiling" != no; then
2492 if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}strip; ac_word=$2
2495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if test "${ac_cv_prog_STRIP+set}" = set; then
2498 $as_echo_n "(cached) " >&6
2500 if test -n "$STRIP"; then
2501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 STRIP=$ac_cv_prog_STRIP
2521 if test -n "$STRIP"; then
2522 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2523 $as_echo "$STRIP" >&6; }
2525 { $as_echo "$as_me:$LINENO: result: no" >&5
2526 $as_echo "no" >&6; }
2531 if test -z "$ac_cv_prog_STRIP"; then
2533 # Extract the first word of "strip", so it can be a program name with args.
2534 set dummy strip; ac_word=$2
2535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2540 if test -n "$ac_ct_STRIP"; then
2541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_STRIP="strip"
2551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2561 if test -n "$ac_ct_STRIP"; then
2562 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2563 $as_echo "$ac_ct_STRIP" >&6; }
2565 { $as_echo "$as_me:$LINENO: result: no" >&5
2566 $as_echo "no" >&6; }
2569 if test "x$ac_ct_STRIP" = x; then
2572 case $cross_compiling:$ac_tool_warned in
2574 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2576 ac_tool_warned=yes ;;
2581 STRIP="$ac_cv_prog_STRIP"
2585 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2587 # We need awk for the "check" target. The system "awk" is bad on
2589 # Always define AMTAR for backward compatibility.
2591 AMTAR=${AMTAR-"${am_missing_run}tar"}
2593 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2599 ac_config_headers="$ac_config_headers config.h"
2602 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
2603 # "-g" for any other compiler. There doesn't seem to be a standard way of
2604 # getting rid of the -g (which I don't think is needed for a production
2605 # library). This fudge seems to achieve the necessary. First, we remember the
2606 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
2607 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
2608 # set, they will be set to Autoconf's defaults. Afterwards, if the original
2609 # values were not set, remove the -g from the Autoconf defaults.
2612 remember_set_CFLAGS="$CFLAGS"
2613 remember_set_CXXFLAGS="$CXXFLAGS"
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test -n "$CC"; then
2650 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2651 $as_echo "$CC" >&6; }
2653 { $as_echo "$as_me:$LINENO: result: no" >&5
2654 $as_echo "no" >&6; }
2659 if test -z "$ac_cv_prog_CC"; then
2661 # Extract the first word of "gcc", so it can be a program name with args.
2662 set dummy gcc; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2668 if test -n "$ac_ct_CC"; then
2669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_ac_ct_CC="gcc"
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2689 if test -n "$ac_ct_CC"; then
2690 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2691 $as_echo "$ac_ct_CC" >&6; }
2693 { $as_echo "$as_me:$LINENO: result: no" >&5
2694 $as_echo "no" >&6; }
2697 if test "x$ac_ct_CC" = x; then
2700 case $cross_compiling:$ac_tool_warned in
2702 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704 ac_tool_warned=yes ;;
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}cc; ac_word=$2
2716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_CC+set}" = set; then
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_CC="${ac_tool_prefix}cc"
2732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2746 { $as_echo "$as_me:$LINENO: result: no" >&5
2747 $as_echo "no" >&6; }
2753 if test -z "$CC"; then
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773 ac_prog_rejected=yes
2777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test $ac_prog_rejected = yes; then
2785 # We found a bogon in the path, so make sure we never use it.
2786 set dummy $ac_cv_prog_CC
2788 if test $# != 0; then
2789 # We chose a different compiler from the bogus one.
2790 # However, it has the same basename, so the bogon will be chosen
2791 # first if we set CC to just the basename; use the full file name.
2793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2803 { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 for ac_prog in cl.exe
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$CC" && break
2853 if test -z "$CC"; then
2855 for ac_prog in cl.exe
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CC="$ac_prog"
2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887 $as_echo "$ac_ct_CC" >&6; }
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890 $as_echo "no" >&6; }
2894 test -n "$ac_ct_CC" && break
2897 if test "x$ac_ct_CC" = x; then
2900 case $cross_compiling:$ac_tool_warned in
2902 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2913 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2916 See \`config.log' for more details." >&5
2917 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }; }
2921 # Provide some information about the compiler.
2922 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2925 { (ac_try="$ac_compiler --version >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932 (eval "$ac_compiler --version >&5") 2>&5
2934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (ac_try="$ac_compiler -v >&5"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942 $as_echo "$ac_try_echo") >&5
2943 (eval "$ac_compiler -v >&5") 2>&5
2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -V >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2953 $as_echo "$ac_try_echo") >&5
2954 (eval "$ac_compiler -V >&5") 2>&5
2956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2974 ac_clean_files_save=$ac_clean_files
2975 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2979 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2980 $as_echo_n "checking for C compiler default output file name... " >&6; }
2981 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 # The possible output files:
2984 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987 for ac_file in $ac_files
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2991 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 if { (ac_try="$ac_link_default"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3002 $as_echo "$ac_try_echo") >&5
3003 (eval "$ac_link_default") 2>&5
3005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; then
3007 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3008 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3009 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3010 # so that the user can short-circuit this test for compilers unknown to
3012 for ac_file in $ac_files ''
3014 test -f "$ac_file" || continue
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019 # We found the default executable, but exeext='' is most
3023 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3025 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 # We set ac_cv_exeext here because the later test for it is not
3028 # safe: cross compilers may not add the suffix if given an `-o'
3029 # argument, so we may need to know it at that point already.
3030 # Even if this section looks crufty: it has the advantage of
3037 test "$ac_cv_exeext" = no && ac_cv_exeext=
3043 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3044 $as_echo "$ac_file" >&6; }
3045 if test -z "$ac_file"; then
3046 $as_echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3052 See \`config.log' for more details." >&5
3053 $as_echo "$as_me: error: C compiler cannot create executables
3054 See \`config.log' for more details." >&2;}
3055 { (exit 77); exit 77; }; }; }
3058 ac_exeext=$ac_cv_exeext
3060 # Check that the compiler produces executables we can run. If not, either
3061 # the compiler is broken, or we cross compile.
3062 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3063 $as_echo_n "checking whether the C compiler works... " >&6; }
3064 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3065 # If not cross compiling, check that we can run a simple program.
3066 if test "$cross_compiling" != yes; then
3067 if { ac_try='./$ac_file'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 $as_echo "$ac_try_echo") >&5
3074 (eval "$ac_try") 2>&5
3076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3080 if test "$cross_compiling" = maybe; then
3083 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details." >&5
3088 $as_echo "$as_me: error: cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }; }
3095 { $as_echo "$as_me:$LINENO: result: yes" >&5
3096 $as_echo "yes" >&6; }
3098 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3099 ac_clean_files=$ac_clean_files_save
3100 # Check that the compiler produces executables we can run. If not, either
3101 # the compiler is broken, or we cross compile.
3102 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3103 $as_echo_n "checking whether we are cross compiling... " >&6; }
3104 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3105 $as_echo "$cross_compiling" >&6; }
3107 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3108 $as_echo_n "checking for suffix of executables... " >&6; }
3109 if { (ac_try="$ac_link"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3115 $as_echo "$ac_try_echo") >&5
3116 (eval "$ac_link") 2>&5
3118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3121 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3122 # work properly (i.e., refer to `conftest.exe'), while it won't with
3124 for ac_file in conftest.exe conftest conftest.*; do
3125 test -f "$ac_file" || continue
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3137 See \`config.log' for more details." >&5
3138 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }; }
3143 rm -f conftest$ac_cv_exeext
3144 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3145 $as_echo "$ac_cv_exeext" >&6; }
3147 rm -f conftest.$ac_ext
3148 EXEEXT=$ac_cv_exeext
3150 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3151 $as_echo_n "checking for suffix of object files... " >&6; }
3152 if test "${ac_cv_objext+set}" = set; then
3153 $as_echo_n "(cached) " >&6
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.o conftest.obj
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178 (eval "$ac_compile") 2>&5
3180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; then
3182 for ac_file in conftest.o conftest.obj conftest.*; do
3183 test -f "$ac_file" || continue;
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3197 See \`config.log' for more details." >&5
3198 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details." >&2;}
3200 { (exit 1); exit 1; }; }; }
3203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3205 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3206 $as_echo "$ac_cv_objext" >&6; }
3207 OBJEXT=$ac_cv_objext
3209 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3210 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3211 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3212 $as_echo_n "(cached) " >&6
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239 $as_echo "$ac_try_echo") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3262 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3264 if test $ac_compiler_gnu = yes; then
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3272 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3273 if test "${ac_cv_prog_cc_g+set}" = set; then
3274 $as_echo_n "(cached) " >&6
3276 ac_save_c_werror_flag=$ac_c_werror_flag
3277 ac_c_werror_flag=yes
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3302 $as_echo "$ac_try_echo") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_compile") 2>conftest.er1
3344 grep -v '^ *+' conftest.er1 >conftest.err
3346 cat conftest.err >&5
3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && {
3349 test -z "$ac_c_werror_flag" ||
3350 test ! -s conftest.err
3351 } && test -s conftest.$ac_objext; then
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_c_werror_flag=$ac_save_c_werror_flag
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381 $as_echo "$ac_try_echo") >&5
3382 (eval "$ac_compile") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } && {
3389 test -z "$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 } && test -s conftest.$ac_objext; then
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_c_werror_flag=$ac_save_c_werror_flag
3409 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3410 $as_echo "$ac_cv_prog_cc_g" >&6; }
3411 if test "$ac_test_CFLAGS" = set; then
3412 CFLAGS=$ac_save_CFLAGS
3413 elif test $ac_cv_prog_cc_g = yes; then
3414 if test "$GCC" = yes; then
3420 if test "$GCC" = yes; then
3426 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3428 if test "${ac_cv_prog_cc_c89+set}" = set; then
3429 $as_echo_n "(cached) " >&6
3431 ac_cv_prog_cc_c89=no
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3441 #include <sys/types.h>
3442 #include <sys/stat.h>
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3457 s = g (p, va_arg (v,int));
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472 inside strings and character constants. */
3474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3476 int test (int i, double x);
3477 struct s1 {int (*f) (int a);};
3478 struct s2 {int (*f) (double a);};
3479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493 CC="$ac_save_CC $ac_arg"
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3501 $as_echo "$ac_try_echo") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3512 ac_cv_prog_cc_c89=$ac_arg
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f core conftest.err conftest.$ac_objext
3521 test "x$ac_cv_prog_cc_c89" != "xno" && break
3523 rm -f conftest.$ac_ext
3528 case "x$ac_cv_prog_cc_c89" in
3530 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3531 $as_echo "none needed" >&6; } ;;
3533 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3534 $as_echo "unsupported" >&6; } ;;
3536 CC="$CC $ac_cv_prog_cc_c89"
3537 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3538 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 DEPDIR="${am__leading_dot}deps"
3549 ac_config_commands="$ac_config_commands depfiles"
3552 am_make=${MAKE-make}
3553 cat > confinc << 'END'
3558 # If we don't find an include directive, just comment out the code.
3559 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3560 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3564 # First try GNU make style include.
3565 echo "include confinc" > confmf
3566 # We grep out `Entering directory' and `Leaving directory'
3567 # messages which can occur if `w' ends up in MAKEFLAGS.
3568 # In particular we don't look at `^make:' because GNU make might
3569 # be invoked under some other name (usually "gmake"), in which
3570 # case it prints its new name instead of `make'.
3571 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3576 # Now try BSD make style include.
3577 if test "$am__include" = "#"; then
3578 echo '.include "confinc"' > confmf
3579 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3580 am__include=.include
3587 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3588 $as_echo "$_am_result" >&6; }
3589 rm -f confinc confmf
3591 # Check whether --enable-dependency-tracking was given.
3592 if test "${enable_dependency_tracking+set}" = set; then
3593 enableval=$enable_dependency_tracking;
3596 if test "x$enable_dependency_tracking" != xno; then
3597 am_depcomp="$ac_aux_dir/depcomp"
3600 if test "x$enable_dependency_tracking" != xno; then
3610 depcc="$CC" am_compiler_list=
3612 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3613 $as_echo_n "checking dependency style of $depcc... " >&6; }
3614 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3615 $as_echo_n "(cached) " >&6
3617 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3618 # We make a subdir and do the tests there. Otherwise we can end up
3619 # making bogus files that we don't know about and never remove. For
3620 # instance it was reported that on HP-UX the gcc test will end up
3621 # making a dummy file named `D' -- because `-MD' means `put the output
3624 # Copy depcomp to subdir because otherwise we won't find it if we're
3625 # using a relative directory.
3626 cp "$am_depcomp" conftest.dir
3628 # We will build objects and dependencies in a subdirectory because
3629 # it helps to detect inapplicable dependency modes. For instance
3630 # both Tru64's cc and ICC support -MD to output dependencies as a
3631 # side effect of compilation, but ICC will put the dependencies in
3632 # the current directory while Tru64 will put them in the object
3636 am_cv_CC_dependencies_compiler_type=none
3637 if test "$am_compiler_list" = ""; then
3638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3640 for depmode in $am_compiler_list; do
3641 # Setup a source with many dependencies, because some compilers
3642 # like to wrap large dependency lists on column 80 (with \), and
3643 # we should not choose a depcomp mode which is confused by this.
3645 # We need to recreate these files for each test, as the compiler may
3646 # overwrite some of them when testing with obscure command lines.
3647 # This happens at least with the AIX C compiler.
3649 for i in 1 2 3 4 5 6; do
3650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3652 # Solaris 8's {/usr,}/bin/sh.
3653 touch sub/conftst$i.h
3655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3659 # after this tag, mechanisms are not by side-effect, so they'll
3660 # only be used when explicitly requested
3661 if test "x$enable_dependency_tracking" = xyes; then
3669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3670 # mode. It turns out that the SunPro C++ compiler does not properly
3671 # handle `-M -o', and we need to detect this.
3672 if depmode=$depmode \
3673 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3676 >/dev/null 2>conftest.err &&
3677 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681 # icc doesn't choke on unknown options, it will just issue warnings
3682 # or remarks (even with -Werror). So we grep stderr for any message
3683 # that says an option was ignored or not supported.
3684 # When given -MP, icc 7.0 and 7.1 complain thusly:
3685 # icc: Command line warning: ignoring option '-M'; no argument required
3686 # The diagnosis changed in icc 8.0:
3687 # icc: Command line remark: option '-MP' not supported
3688 if (grep 'ignoring option' conftest.err ||
3689 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690 am_cv_CC_dependencies_compiler_type=$depmode
3699 am_cv_CC_dependencies_compiler_type=none
3703 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3704 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3705 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3708 test "x$enable_dependency_tracking" != xno \
3709 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3711 am__fastdepCC_FALSE='#'
3713 am__fastdepCC_TRUE='#'
3714 am__fastdepCC_FALSE=
3719 ac_cpp='$CXXCPP $CPPFLAGS'
3720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3723 if test -z "$CXX"; then
3724 if test -n "$CCC"; then
3727 if test -n "$ac_tool_prefix"; then
3728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_CXX+set}" = set; then
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$CXX"; then
3738 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 if test -n "$CXX"; then
3759 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3760 $as_echo "$CXX" >&6; }
3762 { $as_echo "$as_me:$LINENO: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$CXX" && break
3770 if test -z "$CXX"; then
3772 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3779 $as_echo_n "(cached) " >&6
3781 if test -n "$ac_ct_CXX"; then
3782 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_ac_ct_CXX="$ac_prog"
3792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3802 if test -n "$ac_ct_CXX"; then
3803 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3804 $as_echo "$ac_ct_CXX" >&6; }
3806 { $as_echo "$as_me:$LINENO: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$ac_ct_CXX" && break
3814 if test "x$ac_ct_CXX" = x; then
3817 case $cross_compiling:$ac_tool_warned in
3819 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned=yes ;;
3829 # Provide some information about the compiler.
3830 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3833 { (ac_try="$ac_compiler --version >&5"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3839 $as_echo "$ac_try_echo") >&5
3840 (eval "$ac_compiler --version >&5") 2>&5
3842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }
3844 { (ac_try="$ac_compiler -v >&5"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3850 $as_echo "$ac_try_echo") >&5
3851 (eval "$ac_compiler -v >&5") 2>&5
3853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }
3855 { (ac_try="$ac_compiler -V >&5"
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3861 $as_echo "$ac_try_echo") >&5
3862 (eval "$ac_compiler -V >&5") 2>&5
3864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3867 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 $as_echo_n "(cached) " >&6
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_cxx_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest.$ac_objext; then
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3920 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3921 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3922 if test $ac_compiler_gnu = yes; then
3927 ac_test_CXXFLAGS=${CXXFLAGS+set}
3928 ac_save_CXXFLAGS=$CXXFLAGS
3929 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 $as_echo_n "(cached) " >&6
3934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3935 ac_cxx_werror_flag=yes
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3953 rm -f conftest.$ac_objext
3954 if { (ac_try="$ac_compile"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3960 $as_echo "$ac_try_echo") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && {
3968 test -z "$ac_cxx_werror_flag" ||
3969 test ! -s conftest.err
3970 } && test -s conftest.$ac_objext; then
3971 ac_cv_prog_cxx_g=yes
3973 $as_echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3992 rm -f conftest.$ac_objext
3993 if { (ac_try="$ac_compile"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3999 $as_echo "$ac_try_echo") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_cxx_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest.$ac_objext; then
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4032 rm -f conftest.$ac_objext
4033 if { (ac_try="$ac_compile"
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4039 $as_echo "$ac_try_echo") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } && {
4047 test -z "$ac_cxx_werror_flag" ||
4048 test ! -s conftest.err
4049 } && test -s conftest.$ac_objext; then
4050 ac_cv_prog_cxx_g=yes
4052 $as_echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4067 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4068 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4069 if test "$ac_test_CXXFLAGS" = set; then
4070 CXXFLAGS=$ac_save_CXXFLAGS
4071 elif test $ac_cv_prog_cxx_g = yes; then
4072 if test "$GXX" = yes; then
4078 if test "$GXX" = yes; then
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 depcc="$CXX" am_compiler_list=
4092 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4093 $as_echo_n "checking dependency style of $depcc... " >&6; }
4094 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4095 $as_echo_n "(cached) " >&6
4097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4098 # We make a subdir and do the tests there. Otherwise we can end up
4099 # making bogus files that we don't know about and never remove. For
4100 # instance it was reported that on HP-UX the gcc test will end up
4101 # making a dummy file named `D' -- because `-MD' means `put the output
4104 # Copy depcomp to subdir because otherwise we won't find it if we're
4105 # using a relative directory.
4106 cp "$am_depcomp" conftest.dir
4108 # We will build objects and dependencies in a subdirectory because
4109 # it helps to detect inapplicable dependency modes. For instance
4110 # both Tru64's cc and ICC support -MD to output dependencies as a
4111 # side effect of compilation, but ICC will put the dependencies in
4112 # the current directory while Tru64 will put them in the object
4116 am_cv_CXX_dependencies_compiler_type=none
4117 if test "$am_compiler_list" = ""; then
4118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4132 # Solaris 8's {/usr,}/bin/sh.
4133 touch sub/conftst$i.h
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4139 # after this tag, mechanisms are not by side-effect, so they'll
4140 # only be used when explicitly requested
4141 if test "x$enable_dependency_tracking" = xyes; then
4149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4150 # mode. It turns out that the SunPro C++ compiler does not properly
4151 # handle `-M -o', and we need to detect this.
4152 if depmode=$depmode \
4153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4156 >/dev/null 2>conftest.err &&
4157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4159 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4161 # icc doesn't choke on unknown options, it will just issue warnings
4162 # or remarks (even with -Werror). So we grep stderr for any message
4163 # that says an option was ignored or not supported.
4164 # When given -MP, icc 7.0 and 7.1 complain thusly:
4165 # icc: Command line warning: ignoring option '-M'; no argument required
4166 # The diagnosis changed in icc 8.0:
4167 # icc: Command line remark: option '-MP' not supported
4168 if (grep 'ignoring option' conftest.err ||
4169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4170 am_cv_CXX_dependencies_compiler_type=$depmode
4179 am_cv_CXX_dependencies_compiler_type=none
4183 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4184 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4185 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4188 test "x$enable_dependency_tracking" != xno \
4189 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4190 am__fastdepCXX_TRUE=
4191 am__fastdepCXX_FALSE='#'
4193 am__fastdepCXX_TRUE='#'
4194 am__fastdepCXX_FALSE=
4199 if test "x$remember_set_CFLAGS" = "x"
4201 if test "$CFLAGS" = "-g -O2"
4204 elif test "$CFLAGS" = "-g"
4210 if test "x$remember_set_CXXFLAGS" = "x"
4212 if test "$CXXFLAGS" = "-g -O2"
4215 elif test "$CXXFLAGS" = "-g"
4221 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4222 # Check for that case, and just disable c++ code if g++ doesn't run.
4224 ac_cpp='$CXXCPP $CPPFLAGS'
4225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4252 $as_echo "$ac_try_echo") >&5
4253 (eval "$ac_compile") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_cxx_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest.$ac_objext; then
4265 $as_echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 CXX=""; CXXCP=""; CXXFLAGS=""
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 # Reject install programs that cannot install multiple files.
4293 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4294 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4295 if test -z "$INSTALL"; then
4296 if test "${ac_cv_path_install+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 # Account for people who put trailing slashes in PATH elements.
4306 ./ | .// | /cC/* | \
4307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4311 # OSF1 and SCO ODT 3.0 have their own names for install.
4312 # Don't use installbsd from OSF since it installs stuff as root
4314 for ac_prog in ginstall scoinst install; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4317 if test $ac_prog = install &&
4318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4319 # AIX install. It has an incompatible calling convention.
4321 elif test $ac_prog = install &&
4322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4323 # program-specific install script used by HP pwplus--don't use.
4326 rm -rf conftest.one conftest.two conftest.dir
4327 echo one > conftest.one
4328 echo two > conftest.two
4330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4331 test -s conftest.one && test -s conftest.two &&
4332 test -s conftest.dir/conftest.one &&
4333 test -s conftest.dir/conftest.two
4335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4348 rm -rf conftest.one conftest.two conftest.dir
4351 if test "${ac_cv_path_install+set}" = set; then
4352 INSTALL=$ac_cv_path_install
4354 # As a last resort, use the slow shell script. Don't cache a
4355 # value for INSTALL within a source directory, because that will
4356 # break other packages using the cache if that directory is
4357 # removed, or if the value is a relative name.
4358 INSTALL=$ac_install_sh
4361 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4362 $as_echo "$INSTALL" >&6; }
4364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4365 # It thinks the first close brace ends the variable substitution.
4366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4370 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374 # Check whether --enable-shared was given.
4375 if test "${enable_shared+set}" = set; then
4376 enableval=$enable_shared; p=${PACKAGE-default}
4378 yes) enable_shared=yes ;;
4379 no) enable_shared=no ;;
4382 # Look at the argument we got. We use all the common list separators.
4383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4384 for pkg in $enableval; do
4386 if test "X$pkg" = "X$p"; then
4398 # Check whether --enable-static was given.
4399 if test "${enable_static+set}" = set; then
4400 enableval=$enable_static; p=${PACKAGE-default}
4402 yes) enable_static=yes ;;
4403 no) enable_static=no ;;
4406 # Look at the argument we got. We use all the common list separators.
4407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4408 for pkg in $enableval; do
4410 if test "X$pkg" = "X$p"; then
4422 # Check whether --enable-fast-install was given.
4423 if test "${enable_fast_install+set}" = set; then
4424 enableval=$enable_fast_install; p=${PACKAGE-default}
4426 yes) enable_fast_install=yes ;;
4427 no) enable_fast_install=no ;;
4429 enable_fast_install=no
4430 # Look at the argument we got. We use all the common list separators.
4431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4432 for pkg in $enableval; do
4434 if test "X$pkg" = "X$p"; then
4435 enable_fast_install=yes
4442 enable_fast_install=yes
4446 # Make sure we can run config.sub.
4447 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4448 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4449 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4450 { (exit 1); exit 1; }; }
4452 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4453 $as_echo_n "checking build system type... " >&6; }
4454 if test "${ac_cv_build+set}" = set; then
4455 $as_echo_n "(cached) " >&6
4457 ac_build_alias=$build_alias
4458 test "x$ac_build_alias" = x &&
4459 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4460 test "x$ac_build_alias" = x &&
4461 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4462 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4463 { (exit 1); exit 1; }; }
4464 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4465 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4466 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4467 { (exit 1); exit 1; }; }
4470 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4471 $as_echo "$ac_cv_build" >&6; }
4472 case $ac_cv_build in
4474 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4475 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4476 { (exit 1); exit 1; }; };;
4479 ac_save_IFS=$IFS; IFS='-'
4485 # Remember, the first character of IFS is used to create $*,
4486 # except with old shells:
4489 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4492 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4493 $as_echo_n "checking host system type... " >&6; }
4494 if test "${ac_cv_host+set}" = set; then
4495 $as_echo_n "(cached) " >&6
4497 if test "x$host_alias" = x; then
4498 ac_cv_host=$ac_cv_build
4500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4501 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4502 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4503 { (exit 1); exit 1; }; }
4507 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4508 $as_echo "$ac_cv_host" >&6; }
4511 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4512 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4513 { (exit 1); exit 1; }; };;
4516 ac_save_IFS=$IFS; IFS='-'
4522 # Remember, the first character of IFS is used to create $*,
4523 # except with old shells:
4526 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4529 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4530 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4531 if test "${lt_cv_path_SED+set}" = set; then
4532 $as_echo_n "(cached) " >&6
4534 # Loop through the user's path and test for sed and gsed.
4535 # Then use that list of sed's as ones to test for truncation.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for lt_ac_prog in sed gsed; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4544 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4552 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4553 # along with /bin/sed that truncates output.
4554 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4555 test ! -f $lt_ac_sed && continue
4556 cat /dev/null > conftest.in
4558 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4559 # Check for GNU sed and select it if it is found.
4560 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4561 lt_cv_path_SED=$lt_ac_sed
4565 cat conftest.in conftest.in >conftest.tmp
4566 mv conftest.tmp conftest.in
4567 cp conftest.in conftest.nl
4569 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4570 cmp -s conftest.out conftest.nl || break
4571 # 10000 chars as input seems more than enough
4572 test $lt_ac_count -gt 10 && break
4573 lt_ac_count=`expr $lt_ac_count + 1`
4574 if test $lt_ac_count -gt $lt_ac_max; then
4575 lt_ac_max=$lt_ac_count
4576 lt_cv_path_SED=$lt_ac_sed
4585 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4586 $as_echo "$SED" >&6; }
4588 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if test "${ac_cv_path_GREP+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4593 if test -z "$GREP"; then
4594 ac_path_GREP_found=false
4595 # Loop through the user's path and test for each of PROGNAME-LIST
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 test -z "$as_dir" && as_dir=.
4601 for ac_prog in grep ggrep; do
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606 # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612 $as_echo_n 0123456789 >"conftest.in"
4615 cat "conftest.in" "conftest.in" >"conftest.tmp"
4616 mv "conftest.tmp" "conftest.in"
4617 cp "conftest.in" "conftest.nl"
4618 $as_echo 'GREP' >> "conftest.nl"
4619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621 ac_count=`expr $ac_count + 1`
4622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623 # Best one so far, save it but keep looking for a better one
4624 ac_cv_path_GREP="$ac_path_GREP"
4625 ac_path_GREP_max=$ac_count
4627 # 10*(2^10) chars as input seems more than enough
4628 test $ac_count -gt 10 && break
4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 $ac_path_GREP_found && break 3
4638 if test -z "$ac_cv_path_GREP"; then
4639 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4640 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4641 { (exit 1); exit 1; }; }
4644 ac_cv_path_GREP=$GREP
4648 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP="$ac_cv_path_GREP"
4653 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if test "${ac_cv_path_EGREP+set}" = set; then
4656 $as_echo_n "(cached) " >&6
4658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659 then ac_cv_path_EGREP="$GREP -E"
4661 if test -z "$EGREP"; then
4662 ac_path_EGREP_found=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 test -z "$as_dir" && as_dir=.
4669 for ac_prog in egrep; do
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680 $as_echo_n 0123456789 >"conftest.in"
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 ac_count=`expr $ac_count + 1`
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP="$ac_path_EGREP"
4693 ac_path_EGREP_max=$ac_count
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 $ac_path_EGREP_found && break 3
4706 if test -z "$ac_cv_path_EGREP"; then
4707 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4708 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4709 { (exit 1); exit 1; }; }
4712 ac_cv_path_EGREP=$EGREP
4717 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4718 $as_echo "$ac_cv_path_EGREP" >&6; }
4719 EGREP="$ac_cv_path_EGREP"
4723 # Check whether --with-gnu-ld was given.
4724 if test "${with_gnu_ld+set}" = set; then
4725 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4731 if test "$GCC" = yes; then
4732 # Check if gcc -print-prog-name=ld gives a path.
4733 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4734 $as_echo_n "checking for ld used by $CC... " >&6; }
4737 # gcc leaves a trailing carriage return which upsets mingw
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4743 # Accept absolute paths.
4745 re_direlt='/[^/][^/]*/\.\./'
4746 # Canonicalize the pathname of ld
4747 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4748 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4749 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4751 test -z "$LD" && LD="$ac_prog"
4754 # If it fails, then pretend we aren't using GCC.
4758 # If it is relative, then search for the first ld in PATH.
4762 elif test "$with_gnu_ld" = yes; then
4763 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4764 $as_echo_n "checking for GNU ld... " >&6; }
4766 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4767 $as_echo_n "checking for non-GNU ld... " >&6; }
4769 if test "${lt_cv_path_LD+set}" = set; then
4770 $as_echo_n "(cached) " >&6
4772 if test -z "$LD"; then
4773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4774 for ac_dir in $PATH; do
4776 test -z "$ac_dir" && ac_dir=.
4777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4778 lt_cv_path_LD="$ac_dir/$ac_prog"
4779 # Check to see if the program is GNU ld. I'd rather use --version,
4780 # but apparently some variants of GNU ld only accept -v.
4781 # Break only if it was the GNU/non-GNU ld that we prefer.
4782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4783 *GNU* | *'with BFD'*)
4784 test "$with_gnu_ld" != no && break
4787 test "$with_gnu_ld" != yes && break
4794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4799 if test -n "$LD"; then
4800 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4801 $as_echo "$LD" >&6; }
4803 { $as_echo "$as_me:$LINENO: result: no" >&5
4804 $as_echo "no" >&6; }
4806 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4807 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4808 { (exit 1); exit 1; }; }
4809 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4810 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4811 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4812 $as_echo_n "(cached) " >&6
4814 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4815 case `$LD -v 2>&1 </dev/null` in
4816 *GNU* | *'with BFD'*)
4817 lt_cv_prog_gnu_ld=yes
4820 lt_cv_prog_gnu_ld=no
4824 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4825 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4826 with_gnu_ld=$lt_cv_prog_gnu_ld
4829 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4830 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4831 if test "${lt_cv_ld_reload_flag+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4834 lt_cv_ld_reload_flag='-r'
4836 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4837 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4838 reload_flag=$lt_cv_ld_reload_flag
4839 case $reload_flag in
4841 *) reload_flag=" $reload_flag" ;;
4843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4846 if test "$GCC" = yes; then
4847 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4854 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4855 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4856 if test "${lt_cv_path_NM+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$NM"; then
4860 # Let the user override the test.
4863 lt_nm_to_check="${ac_tool_prefix}nm"
4864 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4865 lt_nm_to_check="$lt_nm_to_check nm"
4867 for lt_tmp_nm in $lt_nm_to_check; do
4868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4869 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4871 test -z "$ac_dir" && ac_dir=.
4872 tmp_nm="$ac_dir/$lt_tmp_nm"
4873 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4874 # Check to see if the nm accepts a BSD-compat flag.
4875 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4876 # nm: unknown option "B" ignored
4877 # Tru64's nm complains that /dev/null is an invalid object file
4878 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4879 */dev/null* | *'Invalid file or object type'*)
4880 lt_cv_path_NM="$tmp_nm -B"
4884 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4886 lt_cv_path_NM="$tmp_nm -p"
4890 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4891 continue # so that we can try to find one that supports BSD flags
4900 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4903 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4904 $as_echo "$lt_cv_path_NM" >&6; }
4907 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4908 $as_echo_n "checking whether ln -s works... " >&6; }
4910 if test "$LN_S" = "ln -s"; then
4911 { $as_echo "$as_me:$LINENO: result: yes" >&5
4912 $as_echo "yes" >&6; }
4914 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4915 $as_echo "no, using $LN_S" >&6; }
4918 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4919 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4920 if test "${lt_cv_deplibs_check_method+set}" = set; then
4921 $as_echo_n "(cached) " >&6
4923 lt_cv_file_magic_cmd='$MAGIC_CMD'
4924 lt_cv_file_magic_test_file=
4925 lt_cv_deplibs_check_method='unknown'
4926 # Need to set the preceding variable on all platforms that support
4927 # interlibrary dependencies.
4928 # 'none' -- dependencies not supported.
4929 # `unknown' -- same as none, but documents that we really don't know.
4930 # 'pass_all' -- all dependencies passed with no checks.
4931 # 'test_compile' -- check by making test program.
4932 # 'file_magic [[regex]]' -- check by looking for files in library path
4933 # which responds to the $file_magic_cmd with a given extended regex.
4934 # If you have `file' or equivalent on your system and you're not sure
4935 # whether `pass_all' will *always* work, you probably want this one.
4939 lt_cv_deplibs_check_method=pass_all
4943 lt_cv_deplibs_check_method=pass_all
4947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4948 lt_cv_file_magic_cmd='/usr/bin/file -L'
4949 lt_cv_file_magic_test_file=/shlib/libc.so
4953 # func_win32_libid is a shell function defined in ltmain.sh
4954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955 lt_cv_file_magic_cmd='func_win32_libid'
4959 # Base MSYS/MinGW do not provide the 'file' command needed by
4960 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4961 # unless we find 'file', for example because we are cross-compiling.
4962 if ( file / ) >/dev/null 2>&1; then
4963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4964 lt_cv_file_magic_cmd='func_win32_libid'
4966 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4967 lt_cv_file_magic_cmd='$OBJDUMP -f'
4971 darwin* | rhapsody*)
4972 lt_cv_deplibs_check_method=pass_all
4975 freebsd* | dragonfly*)
4976 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4979 # Not sure whether the presence of OpenBSD here was a mistake.
4980 # Let's accept both of them until this is cleared up.
4981 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4982 lt_cv_file_magic_cmd=/usr/bin/file
4983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4987 lt_cv_deplibs_check_method=pass_all
4992 lt_cv_deplibs_check_method=pass_all
4995 hpux10.20* | hpux11*)
4996 lt_cv_file_magic_cmd=/usr/bin/file
4999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5003 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]'
5004 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5008 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5014 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5018 irix5* | irix6* | nonstopux*)
5020 *-32|*"-32 ") libmagic=32-bit;;
5021 *-n32|*"-n32 ") libmagic=N32;;
5022 *-64|*"-64 ") libmagic=64-bit;;
5023 *) libmagic=never-match;;
5025 lt_cv_deplibs_check_method=pass_all
5028 # This must be Linux ELF.
5029 linux* | k*bsd*-gnu)
5030 lt_cv_deplibs_check_method=pass_all
5034 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5043 lt_cv_file_magic_cmd=/usr/bin/file
5044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5048 lt_cv_deplibs_check_method=unknown
5052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5059 osf3* | osf4* | osf5*)
5060 lt_cv_deplibs_check_method=pass_all
5064 lt_cv_deplibs_check_method=pass_all
5068 lt_cv_deplibs_check_method=pass_all
5072 case $host_vendor in
5074 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]'
5075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5078 lt_cv_deplibs_check_method=pass_all
5081 lt_cv_file_magic_cmd='/bin/file'
5082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5085 lt_cv_file_magic_cmd='/bin/file'
5086 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5087 lt_cv_file_magic_test_file=/lib/libc.so
5090 lt_cv_deplibs_check_method=pass_all
5093 lt_cv_deplibs_check_method=pass_all
5098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5099 lt_cv_deplibs_check_method=pass_all
5104 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5106 file_magic_cmd=$lt_cv_file_magic_cmd
5107 deplibs_check_method=$lt_cv_deplibs_check_method
5108 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5113 # If no C compiler was specified, use CC.
5116 # If no C compiler flags were specified, use CFLAGS.
5117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5119 # Allow CC to be a program name with arguments.
5123 # Check whether --enable-libtool-lock was given.
5124 if test "${enable_libtool_lock+set}" = set; then
5125 enableval=$enable_libtool_lock;
5128 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5130 # Some flags need to be propagated to the compiler or linker for good
5134 # Find out which ABI we are using.
5135 echo 'int i;' > conftest.$ac_ext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; then
5141 case `/usr/bin/file conftest.$ac_objext` in
5153 # Find out which ABI we are using.
5154 echo '#line 5154 "configure"' > conftest.$ac_ext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>&5
5158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; then
5160 if test "$lt_cv_prog_gnu_ld" = yes; then
5161 case `/usr/bin/file conftest.$ac_objext` in
5163 LD="${LD-ld} -melf32bsmip"
5166 LD="${LD-ld} -melf32bmipn32"
5169 LD="${LD-ld} -melf64bmip"
5173 case `/usr/bin/file conftest.$ac_objext` in
5189 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5190 s390*-*linux*|sparc*-*linux*)
5191 # Find out which ABI we are using.
5192 echo 'int i;' > conftest.$ac_ext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>&5
5196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; then
5198 case `/usr/bin/file conftest.o` in
5201 x86_64-*kfreebsd*-gnu)
5202 LD="${LD-ld} -m elf_i386_fbsd"
5205 LD="${LD-ld} -m elf_i386"
5207 ppc64-*linux*|powerpc64-*linux*)
5208 LD="${LD-ld} -m elf32ppclinux"
5211 LD="${LD-ld} -m elf_s390"
5214 LD="${LD-ld} -m elf32_sparc"
5220 x86_64-*kfreebsd*-gnu)
5221 LD="${LD-ld} -m elf_x86_64_fbsd"
5224 LD="${LD-ld} -m elf_x86_64"
5226 ppc*-*linux*|powerpc*-*linux*)
5227 LD="${LD-ld} -m elf64ppc"
5230 LD="${LD-ld} -m elf64_s390"
5233 LD="${LD-ld} -m elf64_sparc"
5243 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5244 SAVE_CFLAGS="$CFLAGS"
5245 CFLAGS="$CFLAGS -belf"
5246 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5247 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5248 if test "${lt_cv_cc_needs_belf+set}" = set; then
5249 $as_echo_n "(cached) " >&6
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (ac_try="$ac_link"
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5279 $as_echo "$ac_try_echo") >&5
5280 (eval "$ac_link") 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest$ac_exeext && {
5290 test "$cross_compiling" = yes ||
5291 $as_test_x conftest$ac_exeext
5293 lt_cv_cc_needs_belf=yes
5295 $as_echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 lt_cv_cc_needs_belf=no
5301 rm -rf conftest.dSYM
5302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5303 conftest$ac_exeext conftest.$ac_ext
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5312 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5313 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5314 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5315 CFLAGS="$SAVE_CFLAGS"
5319 # Find out which ABI we are using.
5320 echo 'int i;' > conftest.$ac_ext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>&5
5324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; then
5326 case `/usr/bin/file conftest.o` in
5328 case $lt_cv_prog_gnu_ld in
5329 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5331 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5342 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5349 $as_echo_n "(cached) " >&6
5351 if test -n "$DLLTOOL"; then
5352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 DLLTOOL=$ac_cv_prog_DLLTOOL
5372 if test -n "$DLLTOOL"; then
5373 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5374 $as_echo "$DLLTOOL" >&6; }
5376 { $as_echo "$as_me:$LINENO: result: no" >&5
5377 $as_echo "no" >&6; }
5382 if test -z "$ac_cv_prog_DLLTOOL"; then
5383 ac_ct_DLLTOOL=$DLLTOOL
5384 # Extract the first word of "dlltool", so it can be a program name with args.
5385 set dummy dlltool; ac_word=$2
5386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5389 $as_echo_n "(cached) " >&6
5391 if test -n "$ac_ct_DLLTOOL"; then
5392 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5412 if test -n "$ac_ct_DLLTOOL"; then
5413 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5414 $as_echo "$ac_ct_DLLTOOL" >&6; }
5416 { $as_echo "$as_me:$LINENO: result: no" >&5
5417 $as_echo "no" >&6; }
5420 if test "x$ac_ct_DLLTOOL" = x; then
5423 case $cross_compiling:$ac_tool_warned in
5425 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5429 DLLTOOL=$ac_ct_DLLTOOL
5432 DLLTOOL="$ac_cv_prog_DLLTOOL"
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}as; ac_word=$2
5438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if test "${ac_cv_prog_AS+set}" = set; then
5441 $as_echo_n "(cached) " >&6
5443 if test -n "$AS"; then
5444 ac_cv_prog_AS="$AS" # Let the user override the test.
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_AS="${ac_tool_prefix}as"
5454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 if test -n "$AS"; then
5465 { $as_echo "$as_me:$LINENO: result: $AS" >&5
5466 $as_echo "$AS" >&6; }
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5474 if test -z "$ac_cv_prog_AS"; then
5476 # Extract the first word of "as", so it can be a program name with args.
5477 set dummy as; ac_word=$2
5478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$ac_ct_AS"; then
5484 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_ac_ct_AS="as"
5494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5504 if test -n "$ac_ct_AS"; then
5505 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5506 $as_echo "$ac_ct_AS" >&6; }
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5512 if test "x$ac_ct_AS" = x; then
5515 case $cross_compiling:$ac_tool_warned in
5517 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5527 if test -n "$ac_tool_prefix"; then
5528 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5529 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5533 $as_echo_n "(cached) " >&6
5535 if test -n "$OBJDUMP"; then
5536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 OBJDUMP=$ac_cv_prog_OBJDUMP
5556 if test -n "$OBJDUMP"; then
5557 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5558 $as_echo "$OBJDUMP" >&6; }
5560 { $as_echo "$as_me:$LINENO: result: no" >&5
5561 $as_echo "no" >&6; }
5566 if test -z "$ac_cv_prog_OBJDUMP"; then
5567 ac_ct_OBJDUMP=$OBJDUMP
5568 # Extract the first word of "objdump", so it can be a program name with args.
5569 set dummy objdump; ac_word=$2
5570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5573 $as_echo_n "(cached) " >&6
5575 if test -n "$ac_ct_OBJDUMP"; then
5576 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5596 if test -n "$ac_ct_OBJDUMP"; then
5597 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5598 $as_echo "$ac_ct_OBJDUMP" >&6; }
5600 { $as_echo "$as_me:$LINENO: result: no" >&5
5601 $as_echo "no" >&6; }
5604 if test "x$ac_ct_OBJDUMP" = x; then
5607 case $cross_compiling:$ac_tool_warned in
5609 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611 ac_tool_warned=yes ;;
5613 OBJDUMP=$ac_ct_OBJDUMP
5616 OBJDUMP="$ac_cv_prog_OBJDUMP"
5623 need_locks="$enable_libtool_lock"
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5632 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5633 # On Suns, sometimes $CPP names a directory.
5634 if test -n "$CPP" && test -d "$CPP"; then
5637 if test -z "$CPP"; then
5638 if test "${ac_cv_prog_CPP+set}" = set; then
5639 $as_echo_n "(cached) " >&6
5641 # Double quotes because CPP needs to be expanded
5642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5645 for ac_c_preproc_warn_flag in '' yes
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5660 # include <limits.h>
5662 # include <assert.h>
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672 $as_echo "$ac_try_echo") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null && {
5680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5685 $as_echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 # Broken: fails on valid input.
5692 rm -f conftest.err conftest.$ac_ext
5694 # OK, works on sane cases. Now check whether nonexistent headers
5695 # can be detected and how.
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <ac_nonexistent.h>
5704 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5710 $as_echo "$ac_try_echo") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5721 # Broken: success on invalid input.
5724 $as_echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5727 # Passes both tests.
5732 rm -f conftest.err conftest.$ac_ext
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then
5749 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5750 $as_echo "$CPP" >&6; }
5752 for ac_c_preproc_warn_flag in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5767 # include <limits.h>
5769 # include <assert.h>
5773 if { (ac_try="$ac_cpp conftest.$ac_ext"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5779 $as_echo "$ac_try_echo") >&5
5780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } >/dev/null && {
5787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5792 $as_echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 # Broken: fails on valid input.
5799 rm -f conftest.err conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <ac_nonexistent.h>
5811 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5817 $as_echo "$ac_try_echo") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 grep -v '^ *+' conftest.er1 >conftest.err
5822 cat conftest.err >&5
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5828 # Broken: success on invalid input.
5831 $as_echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 # Passes both tests.
5839 rm -f conftest.err conftest.$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then
5847 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." >&5
5851 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5852 See \`config.log' for more details." >&2;}
5853 { (exit 1); exit 1; }; }; }
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5864 $as_echo_n "checking for ANSI C header files... " >&6; }
5865 if test "${ac_cv_header_stdc+set}" = set; then
5866 $as_echo_n "(cached) " >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5887 rm -f conftest.$ac_objext
5888 if { (ac_try="$ac_compile"
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894 $as_echo "$ac_try_echo") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1 >conftest.err
5899 cat conftest.err >&5
5900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 ac_cv_header_stdc=yes
5907 $as_echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_header_stdc=no
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev/null 2>&1; then
5930 ac_cv_header_stdc=no
5936 if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev/null 2>&1; then
5951 ac_cv_header_stdc=no
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5970 #if ((' ' & 0x0FF) == 0x020)
5971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5974 # define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
5993 rm -f conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000 $as_echo "$ac_try_echo") >&5
6001 (eval "$ac_link") 2>&5
6003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6005 { (case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010 $as_echo "$ac_try_echo") >&5
6011 (eval "$ac_try") 2>&5
6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6017 $as_echo "$as_me: program exited with status $ac_status" >&5
6018 $as_echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_header_stdc=no
6024 rm -rf conftest.dSYM
6025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6032 $as_echo "$ac_cv_header_stdc" >&6; }
6033 if test $ac_cv_header_stdc = yes; then
6035 cat >>confdefs.h <<\_ACEOF
6036 #define STDC_HEADERS 1
6041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6052 inttypes.h stdint.h unistd.h
6054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6056 $as_echo_n "checking for $ac_header... " >&6; }
6057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6058 $as_echo_n "(cached) " >&6
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6068 #include <$ac_header>
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6088 eval "$as_ac_Header=yes"
6090 $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 eval "$as_ac_Header=no"
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_res=`eval 'as_val=${'$as_ac_Header'}
6099 $as_echo "$as_val"'`
6100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6101 $as_echo "$ac_res" >&6; }
6102 as_val=`eval 'as_val=${'$as_ac_Header'}
6103 $as_echo "$as_val"'`
6104 if test "x$as_val" = x""yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6115 for ac_header in dlfcn.h
6117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6120 $as_echo_n "checking for $ac_header... " >&6; }
6121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6122 $as_echo_n "(cached) " >&6
6124 ac_res=`eval 'as_val=${'$as_ac_Header'}
6125 $as_echo "$as_val"'`
6126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6127 $as_echo "$ac_res" >&6; }
6129 # Is the header compilable?
6130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6131 $as_echo_n "checking $ac_header usability... " >&6; }
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6139 #include <$ac_header>
6141 rm -f conftest.$ac_objext
6142 if { (ac_try="$ac_compile"
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6148 $as_echo "$ac_try_echo") >&5
6149 (eval "$ac_compile") 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && {
6156 test -z "$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 } && test -s conftest.$ac_objext; then
6159 ac_header_compiler=yes
6161 $as_echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_compiler=no
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169 $as_echo "$ac_header_compiler" >&6; }
6171 # Is the header present?
6172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6173 $as_echo_n "checking $ac_header presence... " >&6; }
6174 cat >conftest.$ac_ext <<_ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <$ac_header>
6182 if { (ac_try="$ac_cpp conftest.$ac_ext"
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188 $as_echo "$ac_try_echo") >&5
6189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } >/dev/null && {
6196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6199 ac_header_preproc=yes
6201 $as_echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_header_preproc=no
6207 rm -f conftest.err conftest.$ac_ext
6208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 $as_echo "$ac_header_preproc" >&6; }
6211 # So? What about this header?
6212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6218 ac_header_preproc=yes
6221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6224 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6228 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 $as_echo_n "checking for $ac_header... " >&6; }
6238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6239 $as_echo_n "(cached) " >&6
6241 eval "$as_ac_Header=\$ac_header_preproc"
6243 ac_res=`eval 'as_val=${'$as_ac_Header'}
6244 $as_echo "$as_val"'`
6245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6246 $as_echo "$ac_res" >&6; }
6249 as_val=`eval 'as_val=${'$as_ac_Header'}
6250 $as_echo "$as_val"'`
6251 if test "x$as_val" = x""yes; then
6252 cat >>confdefs.h <<_ACEOF
6253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6263 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6264 (test "X$CXX" != "Xg++"))) ; then
6266 ac_cpp='$CXXCPP $CPPFLAGS'
6267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6270 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6271 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6272 if test -z "$CXXCPP"; then
6273 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6274 $as_echo_n "(cached) " >&6
6276 # Double quotes because CXXCPP needs to be expanded
6277 for CXXCPP in "$CXX -E" "/lib/cpp"
6280 for ac_cxx_preproc_warn_flag in '' yes
6282 # Use a header file that comes with gcc, so configuring glibc
6283 # with a fresh cross-compiler works.
6284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6285 # <limits.h> exists even on freestanding compilers.
6286 # On the NeXT, cc -E runs the code through the compiler's parser,
6287 # not just through cpp. "Syntax error" is here to catch this case.
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6295 # include <limits.h>
6297 # include <assert.h>
6301 if { (ac_try="$ac_cpp conftest.$ac_ext"
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307 $as_echo "$ac_try_echo") >&5
6308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null && {
6315 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6316 test ! -s conftest.err
6320 $as_echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 # Broken: fails on valid input.
6327 rm -f conftest.err conftest.$ac_ext
6329 # OK, works on sane cases. Now check whether nonexistent headers
6330 # can be detected and how.
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 #include <ac_nonexistent.h>
6339 if { (ac_try="$ac_cpp conftest.$ac_ext"
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null && {
6353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6354 test ! -s conftest.err
6356 # Broken: success on invalid input.
6359 $as_echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 # Passes both tests.
6367 rm -f conftest.err conftest.$ac_ext
6370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6371 rm -f conftest.err conftest.$ac_ext
6372 if $ac_preproc_ok; then
6377 ac_cv_prog_CXXCPP=$CXXCPP
6380 CXXCPP=$ac_cv_prog_CXXCPP
6382 ac_cv_prog_CXXCPP=$CXXCPP
6384 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6385 $as_echo "$CXXCPP" >&6; }
6387 for ac_cxx_preproc_warn_flag in '' yes
6389 # Use a header file that comes with gcc, so configuring glibc
6390 # with a fresh cross-compiler works.
6391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6392 # <limits.h> exists even on freestanding compilers.
6393 # On the NeXT, cc -E runs the code through the compiler's parser,
6394 # not just through cpp. "Syntax error" is here to catch this case.
6395 cat >conftest.$ac_ext <<_ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6402 # include <limits.h>
6404 # include <assert.h>
6408 if { (ac_try="$ac_cpp conftest.$ac_ext"
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6414 $as_echo "$ac_try_echo") >&5
6415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } >/dev/null && {
6422 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6423 test ! -s conftest.err
6427 $as_echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 # Broken: fails on valid input.
6434 rm -f conftest.err conftest.$ac_ext
6436 # OK, works on sane cases. Now check whether nonexistent headers
6437 # can be detected and how.
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <ac_nonexistent.h>
6446 if { (ac_try="$ac_cpp conftest.$ac_ext"
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6452 $as_echo "$ac_try_echo") >&5
6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev/null && {
6460 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6461 test ! -s conftest.err
6463 # Broken: success on invalid input.
6466 $as_echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 # Passes both tests.
6474 rm -f conftest.err conftest.$ac_ext
6477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6478 rm -f conftest.err conftest.$ac_ext
6479 if $ac_preproc_ok; then
6482 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6484 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6485 See \`config.log' for more details." >&5
6486 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6487 See \`config.log' for more details." >&2;}
6488 { (exit 1); exit 1; }; }; }
6492 ac_cpp='$CXXCPP $CPPFLAGS'
6493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6500 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6501 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6503 if test -n "$ac_tool_prefix"; then
6504 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
6506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_prog_F77+set}" = set; then
6511 $as_echo_n "(cached) " >&6
6513 if test -n "$F77"; then
6514 ac_cv_prog_F77="$F77" # Let the user override the test.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 if test -n "$F77"; then
6535 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6536 $as_echo "$F77" >&6; }
6538 { $as_echo "$as_me:$LINENO: result: no" >&5
6539 $as_echo "no" >&6; }
6543 test -n "$F77" && break
6546 if test -z "$F77"; then
6548 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
6550 # Extract the first word of "$ac_prog", so it can be a program name with args.
6551 set dummy $ac_prog; ac_word=$2
6552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6555 $as_echo_n "(cached) " >&6
6557 if test -n "$ac_ct_F77"; then
6558 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_ac_ct_F77="$ac_prog"
6568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6578 if test -n "$ac_ct_F77"; then
6579 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6580 $as_echo "$ac_ct_F77" >&6; }
6582 { $as_echo "$as_me:$LINENO: result: no" >&5
6583 $as_echo "no" >&6; }
6587 test -n "$ac_ct_F77" && break
6590 if test "x$ac_ct_F77" = x; then
6593 case $cross_compiling:$ac_tool_warned in
6595 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6604 # Provide some information about the compiler.
6605 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6608 { (ac_try="$ac_compiler --version >&5"
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6614 $as_echo "$ac_try_echo") >&5
6615 (eval "$ac_compiler --version >&5") 2>&5
6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }
6619 { (ac_try="$ac_compiler -v >&5"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compiler -v >&5") 2>&5
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }
6630 { (ac_try="$ac_compiler -V >&5"
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6636 $as_echo "$ac_try_echo") >&5
6637 (eval "$ac_compiler -V >&5") 2>&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }
6643 # If we don't use `.F' as extension, the preprocessor is not run on the
6644 # input file. (Note that this only needs to work for GNU compilers.)
6647 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6648 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6649 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6650 $as_echo_n "(cached) " >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (ac_try="$ac_compile"
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_f77_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6680 $as_echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6690 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6691 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6693 ac_test_FFLAGS=${FFLAGS+set}
6694 ac_save_FFLAGS=$FFLAGS
6696 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6697 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6698 if test "${ac_cv_prog_f77_g+set}" = set; then
6699 $as_echo_n "(cached) " >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1 >conftest.err
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_f77_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 ac_cv_prog_f77_g=yes
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6737 $as_echo "$ac_cv_prog_f77_g" >&6; }
6738 if test "$ac_test_FFLAGS" = set; then
6739 FFLAGS=$ac_save_FFLAGS
6740 elif test $ac_cv_prog_f77_g = yes; then
6741 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6747 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6754 if test $ac_compiler_gnu = yes; then
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6767 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6768 # find the maximum length of command line arguments
6769 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6770 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6771 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6772 $as_echo_n "(cached) " >&6
6779 # On DJGPP, this test can blow up pretty badly due to problems in libc
6780 # (any single argument exceeding 2000 bytes causes a buffer overrun
6781 # during glob expansion). Even if it were fixed, the result of this
6782 # check would be larger than it should be.
6783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6787 # Under GNU Hurd, this test is not required because there is
6788 # no limit to the length of command line arguments.
6789 # Libtool will interpret -1 as no limit whatsoever
6790 lt_cv_sys_max_cmd_len=-1;
6794 # On Win9x/ME, this test blows up -- it succeeds, but takes
6795 # about 5 minutes as the teststring grows exponentially.
6796 # Worse, since 9x/ME are not pre-emptively multitasking,
6797 # you end up with a "frozen" computer, even though with patience
6798 # the test eventually succeeds (with a max line length of 256k).
6799 # Instead, let's just punt: use the minimum linelength reported by
6800 # all of the supported platforms: 8192 (on NT/2K/XP).
6801 lt_cv_sys_max_cmd_len=8192;
6805 # On AmigaOS with pdksh, this test takes hours, literally.
6806 # So we just punt and use a minimum line length of 8192.
6807 lt_cv_sys_max_cmd_len=8192;
6810 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6811 # This has been around since 386BSD, at least. Likely further.
6812 if test -x /sbin/sysctl; then
6813 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6814 elif test -x /usr/sbin/sysctl; then
6815 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6817 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6819 # And add a safety zone
6820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6825 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6826 lt_cv_sys_max_cmd_len=196608
6830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6832 # nice to cause kernel panics so lets avoid the loop below.
6833 # First set a reasonable default.
6834 lt_cv_sys_max_cmd_len=16384
6836 if test -x /sbin/sysconfig; then
6837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6843 lt_cv_sys_max_cmd_len=102400
6845 sysv5* | sco5v6* | sysv4.2uw2*)
6846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6847 if test -n "$kargmax"; then
6848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6850 lt_cv_sys_max_cmd_len=32768
6854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6855 if test -n "$lt_cv_sys_max_cmd_len"; then
6856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6861 = "XX$teststring") >/dev/null 2>&1 &&
6862 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6863 lt_cv_sys_max_cmd_len=$new_result &&
6864 test $i != 17 # 1/2 MB should be enough
6867 teststring=$teststring$teststring
6870 # Add a significant safety factor because C++ compilers can tack on massive
6871 # amounts of additional arguments before passing them to the linker.
6872 # It appears as though 1/2 is a usable value.
6873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6880 if test -n $lt_cv_sys_max_cmd_len ; then
6881 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6882 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6884 { $as_echo "$as_me:$LINENO: result: none" >&5
6885 $as_echo "none" >&6; }
6892 # Check for command to grab the raw symbol name followed by C symbol from nm.
6893 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6894 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6896 $as_echo_n "(cached) " >&6
6899 # These are sane defaults that work on at least a few old systems.
6900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6902 # Character class describing NM global symbol codes.
6903 symcode='[BCDEGRST]'
6905 # Regexp to match symbols that can be accessed directly from C.
6906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6908 # Transform an extracted symbol line into a proper C declaration
6909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6911 # Transform an extracted symbol line into symbol name and symbol address
6912 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'"
6914 # Define system-specific variables.
6919 cygwin* | mingw* | pw32*)
6920 symcode='[ABCDGISTW]'
6922 hpux*) # Its linker distinguishes data from code symbols
6923 if test "$host_cpu" = ia64; then
6924 symcode='[ABCDEGRST]'
6926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6927 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'"
6929 linux* | k*bsd*-gnu)
6930 if test "$host_cpu" = ia64; then
6931 symcode='[ABCDGIRSTW]'
6932 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6933 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'"
6937 symcode='[BCDEGRST]'
6940 symcode='[BCDEGQRST]'
6951 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6959 # Handle CRLF in mingw tool chain
6963 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6967 # If we're using GNU nm, then use its standard symbol codes.
6968 case `$NM -V 2>&1` in
6969 *GNU* | *'with BFD'*)
6970 symcode='[ABCDGIRSTW]' ;;
6973 # Try without a prefix undercore, then with it.
6974 for ac_symprfx in "" "_"; do
6976 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6977 symxfrm="\\1 $ac_symprfx\\2 \\2"
6979 # Write the raw and C identifiers.
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6982 # Check to see that the pipe works correctly.
6986 cat > conftest.$ac_ext <<EOF
6991 void nm_test_func(){}
6995 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999 (eval $ac_compile) 2>&5
7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; then
7003 # Now try to grab the symbols.
7005 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && test -s "$nlist"; then
7010 # Try sorting and uniquifying the output.
7011 if sort "$nlist" | uniq > "$nlist"T; then
7012 mv -f "$nlist"T "$nlist"
7017 # Make sure that we snagged all the symbols we need.
7018 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7019 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7020 cat <<EOF > conftest.$ac_ext
7026 # Now generate the symbol file.
7027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7029 cat <<EOF >> conftest.$ac_ext
7030 #if defined (__STDC__) && __STDC__
7031 # define lt_ptr_t void *
7033 # define lt_ptr_t char *
7037 /* The mapping between symbol names and symbols. */
7042 lt_preloaded_symbols[] =
7045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7046 cat <<\EOF >> conftest.$ac_ext
7054 # Now try linking the two files.
7055 mv conftest.$ac_objext conftstm.$ac_objext
7056 lt_save_LIBS="$LIBS"
7057 lt_save_CFLAGS="$CFLAGS"
7058 LIBS="conftstm.$ac_objext"
7059 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>&5
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7067 LIBS="$lt_save_LIBS"
7068 CFLAGS="$lt_save_CFLAGS"
7070 echo "cannot find nm_test_func in $nlist" >&5
7073 echo "cannot find nm_test_var in $nlist" >&5
7076 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7079 echo "$progname: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 rm -rf conftest* conftst*
7084 # Do not use the global_symbol_pipe unless it works.
7085 if test "$pipe_works" = yes; then
7088 lt_cv_sys_global_symbol_pipe=
7094 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7095 lt_cv_sys_global_symbol_to_cdecl=
7097 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7098 { $as_echo "$as_me:$LINENO: result: failed" >&5
7099 $as_echo "failed" >&6; }
7101 { $as_echo "$as_me:$LINENO: result: ok" >&5
7102 $as_echo "ok" >&6; }
7105 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7106 $as_echo_n "checking for objdir... " >&6; }
7107 if test "${lt_cv_objdir+set}" = set; then
7108 $as_echo_n "(cached) " >&6
7110 rm -f .libs 2>/dev/null
7111 mkdir .libs 2>/dev/null
7112 if test -d .libs; then
7115 # MS-DOS does not allow filenames that begin with a dot.
7118 rmdir .libs 2>/dev/null
7120 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7121 $as_echo "$lt_cv_objdir" >&6; }
7122 objdir=$lt_cv_objdir
7130 # AIX sometimes has problems with the GCC collect2 program. For some
7131 # reason, if we set the COLLECT_NAMES environment variable, the problems
7132 # vanish in a puff of smoke.
7133 if test "X${COLLECT_NAMES+set}" != Xset; then
7135 export COLLECT_NAMES
7140 # Sed substitution that helps us do robust quoting. It backslashifies
7141 # metacharacters that are still active within double-quoted strings.
7142 Xsed='sed -e 1s/^X//'
7143 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7145 # Same as above, but do not quote variable references.
7146 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7148 # Sed substitution to delay expansion of an escaped shell variable in a
7149 # double_quote_subst'ed string.
7150 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7152 # Sed substitution to avoid accidental globbing in evaled expressions
7153 no_glob_subst='s/\*/\\\*/g'
7159 default_ofile=libtool
7160 can_build_shared=yes
7162 # All known linkers require a `.a' archive for static linking (except MSVC,
7163 # which needs '.lib').
7165 ltmain="$ac_aux_dir/ltmain.sh"
7166 ofile="$default_ofile"
7167 with_gnu_ld="$lt_cv_prog_gnu_ld"
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}ar; ac_word=$2
7172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if test "${ac_cv_prog_AR+set}" = set; then
7175 $as_echo_n "(cached) " >&6
7177 if test -n "$AR"; then
7178 ac_cv_prog_AR="$AR" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_AR="${ac_tool_prefix}ar"
7188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 if test -n "$AR"; then
7199 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7200 $as_echo "$AR" >&6; }
7202 { $as_echo "$as_me:$LINENO: result: no" >&5
7203 $as_echo "no" >&6; }
7208 if test -z "$ac_cv_prog_AR"; then
7210 # Extract the first word of "ar", so it can be a program name with args.
7211 set dummy ar; ac_word=$2
7212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7215 $as_echo_n "(cached) " >&6
7217 if test -n "$ac_ct_AR"; then
7218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_ac_ct_AR="ar"
7228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7238 if test -n "$ac_ct_AR"; then
7239 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7240 $as_echo "$ac_ct_AR" >&6; }
7242 { $as_echo "$as_me:$LINENO: result: no" >&5
7243 $as_echo "no" >&6; }
7246 if test "x$ac_ct_AR" = x; then
7249 case $cross_compiling:$ac_tool_warned in
7251 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_prog_RANLIB+set}" = set; then
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$RANLIB"; then
7270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 RANLIB=$ac_cv_prog_RANLIB
7290 if test -n "$RANLIB"; then
7291 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7292 $as_echo "$RANLIB" >&6; }
7294 { $as_echo "$as_me:$LINENO: result: no" >&5
7295 $as_echo "no" >&6; }
7300 if test -z "$ac_cv_prog_RANLIB"; then
7301 ac_ct_RANLIB=$RANLIB
7302 # Extract the first word of "ranlib", so it can be a program name with args.
7303 set dummy ranlib; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$ac_ct_RANLIB"; then
7310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_ac_ct_RANLIB="ranlib"
7320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7330 if test -n "$ac_ct_RANLIB"; then
7331 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7332 $as_echo "$ac_ct_RANLIB" >&6; }
7334 { $as_echo "$as_me:$LINENO: result: no" >&5
7335 $as_echo "no" >&6; }
7338 if test "x$ac_ct_RANLIB" = x; then
7341 case $cross_compiling:$ac_tool_warned in
7343 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7347 RANLIB=$ac_ct_RANLIB
7350 RANLIB="$ac_cv_prog_RANLIB"
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}strip; ac_word=$2
7356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_STRIP+set}" = set; then
7359 $as_echo_n "(cached) " >&6
7361 if test -n "$STRIP"; then
7362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 STRIP=$ac_cv_prog_STRIP
7382 if test -n "$STRIP"; then
7383 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7384 $as_echo "$STRIP" >&6; }
7386 { $as_echo "$as_me:$LINENO: result: no" >&5
7387 $as_echo "no" >&6; }
7392 if test -z "$ac_cv_prog_STRIP"; then
7394 # Extract the first word of "strip", so it can be a program name with args.
7395 set dummy strip; ac_word=$2
7396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7399 $as_echo_n "(cached) " >&6
7401 if test -n "$ac_ct_STRIP"; then
7402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_ac_ct_STRIP="strip"
7412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7422 if test -n "$ac_ct_STRIP"; then
7423 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7424 $as_echo "$ac_ct_STRIP" >&6; }
7426 { $as_echo "$as_me:$LINENO: result: no" >&5
7427 $as_echo "no" >&6; }
7430 if test "x$ac_ct_STRIP" = x; then
7433 case $cross_compiling:$ac_tool_warned in
7435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7442 STRIP="$ac_cv_prog_STRIP"
7447 old_CFLAGS="$CFLAGS"
7449 # Set sane defaults for various variables
7450 test -z "$AR" && AR=ar
7451 test -z "$AR_FLAGS" && AR_FLAGS=cru
7452 test -z "$AS" && AS=as
7453 test -z "$CC" && CC=cc
7454 test -z "$LTCC" && LTCC=$CC
7455 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7456 test -z "$DLLTOOL" && DLLTOOL=dlltool
7457 test -z "$LD" && LD=ld
7458 test -z "$LN_S" && LN_S="ln -s"
7459 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7460 test -z "$NM" && NM=nm
7461 test -z "$SED" && SED=sed
7462 test -z "$OBJDUMP" && OBJDUMP=objdump
7463 test -z "$RANLIB" && RANLIB=:
7464 test -z "$STRIP" && STRIP=:
7465 test -z "$ac_objext" && ac_objext=o
7467 # Determine commands to create old-style static archives.
7468 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7469 old_postinstall_cmds='chmod 644 $oldlib'
7470 old_postuninstall_cmds=
7472 if test -n "$RANLIB"; then
7475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7481 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7484 for cc_temp in $compiler""; do
7486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7492 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7495 # Only perform the check for file, if the check method requires it
7496 case $deplibs_check_method in
7498 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7499 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7500 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7502 $as_echo_n "(cached) " >&6
7506 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7509 lt_save_MAGIC_CMD="$MAGIC_CMD"
7510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7511 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7512 for ac_dir in $ac_dummy; do
7514 test -z "$ac_dir" && ac_dir=.
7515 if test -f $ac_dir/${ac_tool_prefix}file; then
7516 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7517 if test -n "$file_magic_test_file"; then
7518 case $deplibs_check_method in
7520 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7523 $EGREP "$file_magic_regex" > /dev/null; then
7528 *** Warning: the command libtool uses to detect shared libraries,
7529 *** $file_magic_cmd, produces output that libtool cannot recognize.
7530 *** The result is that libtool may fail to recognize shared libraries
7531 *** as such. This will affect the creation of libtool libraries that
7532 *** depend on shared libraries, but programs linked with such libtool
7533 *** libraries will work regardless of this problem. Nevertheless, you
7534 *** may want to report the problem to your system manager and/or to
7545 MAGIC_CMD="$lt_save_MAGIC_CMD"
7550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551 if test -n "$MAGIC_CMD"; then
7552 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7553 $as_echo "$MAGIC_CMD" >&6; }
7555 { $as_echo "$as_me:$LINENO: result: no" >&5
7556 $as_echo "no" >&6; }
7559 if test -z "$lt_cv_path_MAGIC_CMD"; then
7560 if test -n "$ac_tool_prefix"; then
7561 { $as_echo "$as_me:$LINENO: checking for file" >&5
7562 $as_echo_n "checking for file... " >&6; }
7563 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7564 $as_echo_n "(cached) " >&6
7568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7571 lt_save_MAGIC_CMD="$MAGIC_CMD"
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574 for ac_dir in $ac_dummy; do
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/file; then
7578 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7579 if test -n "$file_magic_test_file"; then
7580 case $deplibs_check_method in
7582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585 $EGREP "$file_magic_regex" > /dev/null; then
7590 *** Warning: the command libtool uses to detect shared libraries,
7591 *** $file_magic_cmd, produces output that libtool cannot recognize.
7592 *** The result is that libtool may fail to recognize shared libraries
7593 *** as such. This will affect the creation of libtool libraries that
7594 *** depend on shared libraries, but programs linked with such libtool
7595 *** libraries will work regardless of this problem. Nevertheless, you
7596 *** may want to report the problem to your system manager and/or to
7607 MAGIC_CMD="$lt_save_MAGIC_CMD"
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if test -n "$MAGIC_CMD"; then
7614 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7615 $as_echo "$MAGIC_CMD" >&6; }
7617 { $as_echo "$as_me:$LINENO: result: no" >&5
7618 $as_echo "no" >&6; }
7632 rhapsody* | darwin*)
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$DSYMUTIL"; then
7642 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7662 if test -n "$DSYMUTIL"; then
7663 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7664 $as_echo "$DSYMUTIL" >&6; }
7666 { $as_echo "$as_me:$LINENO: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_DSYMUTIL"; then
7673 ac_ct_DSYMUTIL=$DSYMUTIL
7674 # Extract the first word of "dsymutil", so it can be a program name with args.
7675 set dummy dsymutil; ac_word=$2
7676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_DSYMUTIL"; then
7682 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7702 if test -n "$ac_ct_DSYMUTIL"; then
7703 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7704 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7706 { $as_echo "$as_me:$LINENO: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_DSYMUTIL" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7719 DSYMUTIL=$ac_ct_DSYMUTIL
7722 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$NMEDIT"; then
7734 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 NMEDIT=$ac_cv_prog_NMEDIT
7754 if test -n "$NMEDIT"; then
7755 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7756 $as_echo "$NMEDIT" >&6; }
7758 { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_NMEDIT"; then
7765 ac_ct_NMEDIT=$NMEDIT
7766 # Extract the first word of "nmedit", so it can be a program name with args.
7767 set dummy nmedit; ac_word=$2
7768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$ac_ct_NMEDIT"; then
7774 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7794 if test -n "$ac_ct_NMEDIT"; then
7795 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7796 $as_echo "$ac_ct_NMEDIT" >&6; }
7798 { $as_echo "$as_me:$LINENO: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_NMEDIT" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7811 NMEDIT=$ac_ct_NMEDIT
7814 NMEDIT="$ac_cv_prog_NMEDIT"
7818 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7819 $as_echo_n "checking for -single_module linker flag... " >&6; }
7820 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7821 $as_echo_n "(cached) " >&6
7823 lt_cv_apple_cc_single_mod=no
7824 if test -z "${LT_MULTI_MODULE}"; then
7825 # By default we will add the -single_module flag. You can override
7826 # by either setting the environment variable LT_MULTI_MODULE
7827 # non-empty at configure time, or by adding -multi_module to the
7829 echo "int foo(void){return 1;}" > conftest.c
7830 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7831 -dynamiclib ${wl}-single_module conftest.c
7832 if test -f libconftest.dylib; then
7833 lt_cv_apple_cc_single_mod=yes
7834 rm -rf libconftest.dylib*
7839 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7842 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7844 $as_echo_n "(cached) " >&6
7846 lt_cv_ld_exported_symbols_list=no
7847 save_LDFLAGS=$LDFLAGS
7848 echo "_main" > conftest.sym
7849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (ac_try="$ac_link"
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_link") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest$ac_exeext && {
7883 test "$cross_compiling" = yes ||
7884 $as_test_x conftest$ac_exeext
7886 lt_cv_ld_exported_symbols_list=yes
7888 $as_echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 lt_cv_ld_exported_symbols_list=no
7894 rm -rf conftest.dSYM
7895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7896 conftest$ac_exeext conftest.$ac_ext
7897 LDFLAGS="$save_LDFLAGS"
7900 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7901 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7903 rhapsody* | darwin1.[0123])
7904 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7906 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908 # if running on 10.5 or later, the deployment target defaults
7909 # to the OS version, if on x86, and 10.4, the deployment
7910 # target defaults to 10.4. Don't you love it?
7911 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7912 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7913 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7921 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7922 _lt_dar_single_mod='$single_module'
7924 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7925 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7929 if test "$DSYMUTIL" != ":"; then
7930 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7939 enable_win32_dll=yes
7941 # Check whether --enable-libtool-lock was given.
7942 if test "${enable_libtool_lock+set}" = set; then
7943 enableval=$enable_libtool_lock;
7946 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7949 # Check whether --with-pic was given.
7950 if test "${with_pic+set}" = set; then
7951 withval=$with_pic; pic_mode="$withval"
7956 test -z "$pic_mode" && pic_mode=default
7958 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7960 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7961 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7962 # calls AC_LIBTOOL_CONFIG and creates libtool.
7964 { $as_echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7965 $as_echo_n "checking for correct ltmain.sh version... " >&6; }
7966 if test "x$ltmain" = "x" ; then
7967 { $as_echo "$as_me:$LINENO: result: no" >&5
7968 $as_echo "no" >&6; }
7969 { { $as_echo "$as_me:$LINENO: error:
7971 *** [Gentoo] sanity check failed! ***
7972 *** \$ltmain is not defined, please check the patch for consistency! ***
7974 $as_echo "$as_me: error:
7976 *** [Gentoo] sanity check failed! ***
7977 *** \$ltmain is not defined, please check the patch for consistency! ***
7979 { (exit 1); exit 1; }; }
7981 gentoo_lt_version="1.5.26"
7982 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7983 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7984 { $as_echo "$as_me:$LINENO: result: no" >&5
7985 $as_echo "no" >&6; }
7986 { { $as_echo "$as_me:$LINENO: error:
7988 *** [Gentoo] sanity check failed! ***
7989 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7990 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7994 libtoolize --copy --force
7996 if appropriate, please contact the maintainer of this
7997 package (or your distribution) for help.
7999 $as_echo "$as_me: error:
8001 *** [Gentoo] sanity check failed! ***
8002 *** libtool.m4 and ltmain.sh have a version mismatch! ***
8003 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
8007 libtoolize --copy --force
8009 if appropriate, please contact the maintainer of this
8010 package (or your distribution) for help.
8012 { (exit 1); exit 1; }; }
8014 { $as_echo "$as_me:$LINENO: result: yes" >&5
8015 $as_echo "yes" >&6; }
8019 # Use C for the default configuration in the libtool script
8023 ac_cpp='$CPP $CPPFLAGS'
8024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029 # Source file extension for C test sources.
8032 # Object file extension for compiled C test sources.
8036 # Code to be used in simple compile tests
8037 lt_simple_compile_test_code="int some_variable = 0;"
8039 # Code to be used in simple link tests
8040 lt_simple_link_test_code='int main(){return(0);}'
8043 # If no C compiler was specified, use CC.
8046 # If no C compiler flags were specified, use CFLAGS.
8047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8049 # Allow CC to be a program name with arguments.
8053 # save warnings/boilerplate of simple test code
8054 ac_outfile=conftest.$ac_objext
8055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8057 _lt_compiler_boilerplate=`cat conftest.err`
8060 ac_outfile=conftest.$ac_objext
8061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063 _lt_linker_boilerplate=`cat conftest.err`
8068 lt_prog_compiler_no_builtin_flag=
8070 if test "$GCC" = yes; then
8071 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8074 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8075 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8077 $as_echo_n "(cached) " >&6
8079 lt_cv_prog_compiler_rtti_exceptions=no
8080 ac_outfile=conftest.$ac_objext
8081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8082 lt_compiler_flag="-fno-rtti -fno-exceptions"
8083 # Insert the option either (1) after the last *FLAGS variable, or
8084 # (2) before a word containing "conftest.", or (3) at the end.
8085 # Note that $ac_compile itself does not contain backslashes and begins
8086 # with a dollar sign (not a hyphen), so the echo should work correctly.
8087 # The option is referenced via a variable to avoid confusing sed.
8088 lt_compile=`echo "$ac_compile" | $SED \
8089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8091 -e 's:$: $lt_compiler_flag:'`
8092 (eval echo "\"\$as_me:8092: $lt_compile\"" >&5)
8093 (eval "$lt_compile" 2>conftest.err)
8095 cat conftest.err >&5
8096 echo "$as_me:8096: \$? = $ac_status" >&5
8097 if (exit $ac_status) && test -s "$ac_outfile"; then
8098 # The compiler can only warn and ignore the option if not recognized
8099 # So say no if there are warnings other than the usual output.
8100 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8103 lt_cv_prog_compiler_rtti_exceptions=yes
8109 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8110 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8120 lt_prog_compiler_wl=
8121 lt_prog_compiler_pic=
8122 lt_prog_compiler_static=
8124 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8125 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8127 if test "$GCC" = yes; then
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_static='-static'
8133 # All AIX code is PIC.
8134 if test "$host_cpu" = ia64; then
8135 # AIX 5 now supports IA64 processor
8136 lt_prog_compiler_static='-Bstatic'
8141 # FIXME: we need at least 68020 code to build shared libraries, but
8142 # adding the `-m68020' flag to GCC prevents building anything better,
8144 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8148 # PIC is the default for these OSes.
8151 mingw* | cygwin* | pw32* | os2*)
8152 # This hack is so that the source file can tell whether it is being
8153 # built for inclusion in a dll (and should export symbols for example).
8154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8155 # (--disable-auto-import) libraries
8156 lt_prog_compiler_pic='-DDLL_EXPORT'
8159 darwin* | rhapsody*)
8160 # PIC is the default on this platform
8161 # Common symbols not allowed in MH_DYLIB files
8162 lt_prog_compiler_pic='-fno-common'
8166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8167 # Instead, we relocate shared libraries at runtime.
8171 # Just because we use GCC doesn't mean we suddenly get shared libraries
8172 # on systems that don't support them.
8173 lt_prog_compiler_can_build_shared=no
8178 if test -d /usr/nec; then
8179 lt_prog_compiler_pic=-Kconform_pic
8184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8191 lt_prog_compiler_pic='-fPIC'
8197 lt_prog_compiler_pic='-fPIC'
8201 # PORTME Check for flag to pass linker flags through the system compiler.
8204 lt_prog_compiler_wl='-Wl,'
8205 if test "$host_cpu" = ia64; then
8206 # AIX 5 now supports IA64 processor
8207 lt_prog_compiler_static='-Bstatic'
8209 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8213 # PIC is the default on this platform
8214 # Common symbols not allowed in MH_DYLIB files
8215 case $cc_basename in
8217 lt_prog_compiler_pic='-qnocommon'
8218 lt_prog_compiler_wl='-Wl,'
8223 mingw* | cygwin* | pw32* | os2*)
8224 # This hack is so that the source file can tell whether it is being
8225 # built for inclusion in a dll (and should export symbols for example).
8226 lt_prog_compiler_pic='-DDLL_EXPORT'
8229 hpux9* | hpux10* | hpux11*)
8230 lt_prog_compiler_wl='-Wl,'
8231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8238 lt_prog_compiler_pic='+Z'
8241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8242 lt_prog_compiler_static='${wl}-a ${wl}archive'
8245 irix5* | irix6* | nonstopux*)
8246 lt_prog_compiler_wl='-Wl,'
8247 # PIC (with -KPIC) is the default.
8248 lt_prog_compiler_static='-non_shared'
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8256 linux* | k*bsd*-gnu)
8257 case $cc_basename in
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-static'
8263 pgcc* | pgf77* | pgf90* | pgf95*)
8264 # Portland Group compilers (*not* the Pentium gcc compiler,
8265 # which looks to be a dead project)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fpic'
8268 lt_prog_compiler_static='-Bstatic'
8271 lt_prog_compiler_wl='-Wl,'
8272 # All Alpha code is PIC.
8273 lt_prog_compiler_static='-non_shared'
8276 case `$CC -V 2>&1 | sed 5q` in
8279 lt_prog_compiler_pic='-KPIC'
8280 lt_prog_compiler_static='-Bstatic'
8281 lt_prog_compiler_wl='-Wl,'
8284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8285 lt_prog_compiler_pic='-KPIC'
8286 lt_prog_compiler_static='-Bstatic'
8287 lt_prog_compiler_wl=''
8294 osf3* | osf4* | osf5*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # All OSF/1 code is PIC.
8297 lt_prog_compiler_static='-non_shared'
8301 lt_prog_compiler_static='-non_shared'
8305 lt_prog_compiler_pic='-KPIC'
8306 lt_prog_compiler_static='-Bstatic'
8307 case $cc_basename in
8309 lt_prog_compiler_wl='-Qoption ld ';;
8311 lt_prog_compiler_wl='-Wl,';;
8316 lt_prog_compiler_wl='-Qoption ld '
8317 lt_prog_compiler_pic='-PIC'
8318 lt_prog_compiler_static='-Bstatic'
8321 sysv4 | sysv4.2uw2* | sysv4.3*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-KPIC'
8324 lt_prog_compiler_static='-Bstatic'
8328 if test -d /usr/nec ;then
8329 lt_prog_compiler_pic='-Kconform_pic'
8330 lt_prog_compiler_static='-Bstatic'
8334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_can_build_shared=no
8346 lt_prog_compiler_pic='-pic'
8347 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_can_build_shared=no
8356 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8357 $as_echo "$lt_prog_compiler_pic" >&6; }
8360 # Check to make sure the PIC flag actually works.
8362 if test -n "$lt_prog_compiler_pic"; then
8364 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8366 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8367 $as_echo_n "(cached) " >&6
8369 lt_cv_prog_compiler_pic_works=no
8370 ac_outfile=conftest.$ac_objext
8371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8373 # Insert the option either (1) after the last *FLAGS variable, or
8374 # (2) before a word containing "conftest.", or (3) at the end.
8375 # Note that $ac_compile itself does not contain backslashes and begins
8376 # with a dollar sign (not a hyphen), so the echo should work correctly.
8377 # The option is referenced via a variable to avoid confusing sed.
8378 lt_compile=`echo "$ac_compile" | $SED \
8379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8381 -e 's:$: $lt_compiler_flag:'`
8382 (eval echo "\"\$as_me:8382: $lt_compile\"" >&5)
8383 (eval "$lt_compile" 2>conftest.err)
8385 cat conftest.err >&5
8386 echo "$as_me:8386: \$? = $ac_status" >&5
8387 if (exit $ac_status) && test -s "$ac_outfile"; then
8388 # The compiler can only warn and ignore the option if not recognized
8389 # So say no if there are warnings other than the usual output.
8390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8393 lt_cv_prog_compiler_pic_works=yes
8399 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8400 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8402 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8403 case $lt_prog_compiler_pic in
8405 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8408 lt_prog_compiler_pic=
8409 lt_prog_compiler_can_build_shared=no
8414 # For platforms which do not support PIC, -DPIC is meaningless:
8416 lt_prog_compiler_pic=
8419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8424 # Check to make sure the static flag actually works.
8426 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8427 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8428 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8429 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8432 lt_cv_prog_compiler_static_works=no
8433 save_LDFLAGS="$LDFLAGS"
8434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8437 # The linker can only warn and ignore the option if not recognized
8438 # So say no if there are warnings
8439 if test -s conftest.err; then
8440 # Append any errors to the config.log.
8441 cat conftest.err 1>&5
8442 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8444 if diff conftest.exp conftest.er2 >/dev/null; then
8445 lt_cv_prog_compiler_static_works=yes
8448 lt_cv_prog_compiler_static_works=yes
8452 LDFLAGS="$save_LDFLAGS"
8455 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8456 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8458 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8461 lt_prog_compiler_static=
8465 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8468 $as_echo_n "(cached) " >&6
8470 lt_cv_prog_compiler_c_o=no
8471 $rm -r conftest 2>/dev/null
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477 lt_compiler_flag="-o out/conftest2.$ac_objext"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>out/conftest.err)
8489 cat out/conftest.err >&5
8490 echo "$as_me:8490: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings
8495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_c_o=yes
8503 # SGI C++ compiler will create directory out/ii_files/ for
8504 # template instantiation
8505 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8506 $rm out/* && rmdir out
8512 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8516 hard_links="nottested"
8517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518 # do not overwrite the value of need_locks provided by the user
8519 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8520 $as_echo_n "checking if we can lock with hard links... " >&6; }
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8525 ln conftest.a conftest.b 2>&5 || hard_links=no
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8528 $as_echo "$hard_links" >&6; }
8529 if test "$hard_links" = no; then
8530 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8538 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8542 allow_undefined_flag=
8543 enable_shared_with_static_runtimes=no
8545 archive_expsym_cmds=
8546 old_archive_From_new_cmds=
8547 old_archive_from_expsyms_cmds=
8548 export_dynamic_flag_spec=
8549 whole_archive_flag_spec=
8550 thread_safe_flag_spec=
8551 hardcode_libdir_flag_spec=
8552 hardcode_libdir_flag_spec_ld=
8553 hardcode_libdir_separator=
8556 hardcode_shlibpath_var=unsupported
8557 link_all_deplibs=unknown
8558 hardcode_automatic=no
8561 always_export_symbols=no
8562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8563 # include_expsyms should be a list of space-separated symbols to be *always*
8564 # included in the symbol list
8566 # exclude_expsyms can be an extended regexp of symbols to exclude
8567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8569 # as well as any symbol that contains `d'.
8570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8572 # platforms (ab)use it in PIC code, but their linkers get confused if
8573 # the symbol is explicitly referenced. Since portable code cannot
8574 # rely on this symbol name, it's probably fine to never include it in
8575 # preloaded symbol tables.
8576 # Exclude shared library initialization/finalization symbols.
8577 extract_expsyms_cmds=
8578 # Just being paranoid about ensuring that cc_basename is set.
8579 for cc_temp in $compiler""; do
8581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8587 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8590 cygwin* | mingw* | pw32*)
8591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 if test "$GCC" != yes; then
8599 # we just hope/assume this is gcc and not c89 (= MSVC++)
8608 if test "$with_gnu_ld" = yes; then
8609 # If archive_cmds runs LD, not CC, wlarc should be empty
8612 # Set some defaults for GNU ld with shared library support. These
8613 # are reset later if shared libraries are not supported. Putting them
8614 # here allows them to be overridden if necessary.
8615 runpath_var=LD_RUN_PATH
8616 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8617 export_dynamic_flag_spec='${wl}--export-dynamic'
8618 # ancient GNU ld didn't support --whole-archive et. al.
8619 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8620 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8622 whole_archive_flag_spec=
8624 supports_anon_versioning=no
8625 case `$LD -v 2>/dev/null` in
8626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8629 *\ 2.11.*) ;; # other 2.11 versions
8630 *) supports_anon_versioning=yes ;;
8633 # See if GNU ld supports shared libraries.
8636 # On AIX/PPC, the GNU linker is very broken
8637 if test "$host_cpu" != ia64; then
8641 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8642 *** to be unable to reliably create shared libraries on AIX.
8643 *** Therefore, libtool is disabling shared libraries support. If you
8644 *** really care for shared libraries, you may want to modify your PATH
8645 *** so that a non-GNU linker is found, and then restart.
8652 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)'
8653 hardcode_libdir_flag_spec='-L$libdir'
8654 hardcode_minus_L=yes
8657 # that the semantics of dynamic libraries on AmigaOS, at least up
8658 # to version 4, is to share data among multiple programs linked
8659 # with the same dynamic library. Since this doesn't match the
8660 # behavior of shared libraries on other platforms, we can't use
8666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8667 allow_undefined_flag=unsupported
8669 # support --undefined. This deserves some investigation. FIXME
8670 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 cygwin* | mingw* | pw32*)
8677 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8678 # as there is no search path for DLLs.
8679 hardcode_libdir_flag_spec='-L$libdir'
8680 allow_undefined_flag=unsupported
8681 always_export_symbols=no
8682 enable_shared_with_static_runtimes=yes
8683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8687 # If the export-symbols file already is a .def file (1st line
8688 # is EXPORTS), use it as is; otherwise, prepend...
8689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8690 cp $export_symbols $output_objdir/$soname.def;
8692 echo EXPORTS > $output_objdir/$soname.def;
8693 cat $export_symbols >> $output_objdir/$soname.def;
8695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8703 hardcode_shlibpath_var=no
8704 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8705 export_dynamic_flag_spec='${wl}-E'
8706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8707 # Instead, shared libraries are loaded at an image base (0x10000000 by
8708 # default) and relocated if they conflict, which is a slow very memory
8709 # consuming and fragmenting process. To avoid this, we pick a random,
8710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8711 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8712 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8713 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'
8716 gnu* | linux* | k*bsd*-gnu)
8717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8719 case $cc_basename,$host_cpu in
8720 pgcc*) # Portland Group C compiler
8721 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'
8722 tmp_addflag=' $pic_flag'
8724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8725 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'
8726 tmp_addflag=' $pic_flag -Mnomain' ;;
8727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8728 tmp_addflag=' -i_dynamic' ;;
8729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8730 tmp_addflag=' -i_dynamic -nofor_main' ;;
8731 ifc* | ifort*) # Intel Fortran compiler
8732 tmp_addflag=' -nofor_main' ;;
8734 case `$CC -V 2>&1 | sed 5q` in
8735 *Sun\ C*) # Sun C 5.9
8736 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'
8737 tmp_sharedflag='-G' ;;
8738 *Sun\ F*) # Sun Fortran 8.3
8739 tmp_sharedflag='-G' ;;
8741 tmp_sharedflag='-shared' ;;
8743 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745 if test $supports_anon_versioning = yes; then
8746 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8748 $echo "local: *; };" >> $output_objdir/$libname.ver~
8749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8758 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8772 *** create shared libraries on Solaris systems. Therefore, libtool
8773 *** is disabling shared libraries support. We urge you to upgrade GNU
8774 *** binutils to release 2.9.1 or newer. Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8779 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8788 case `$LD -v 2>&1` in
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8794 *** reliably create shared libraries on SCO systems. Therefore, libtool
8795 *** is disabling shared libraries support. We urge you to upgrade GNU
8796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8804 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_shlibpath_var=no
8822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 if test "$ld_shlibs" = no; then
8833 hardcode_libdir_flag_spec=
8834 export_dynamic_flag_spec=
8835 whole_archive_flag_spec=
8838 # PORTME fill in a description of your system's linker (not GNU ld)
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=yes
8843 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'
8844 # Note: this linker hardcodes the directories in LIBPATH if there
8845 # are no directories specified by -L.
8846 hardcode_minus_L=yes
8847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8848 # Neither direct hardcoding nor static linking is supported with a
8850 hardcode_direct=unsupported
8855 if test "$host_cpu" = ia64; then
8856 # On IA64, the linker does run time linking by default, so we don't
8857 # have to do anything special.
8858 aix_use_runtimelinking=no
8859 exp_sym_flag='-Bexport'
8862 # If we're using GNU nm, then we don't want the "-C" option.
8863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8865 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'
8867 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'
8869 aix_use_runtimelinking=no
8871 # Test if we are trying to use run time linking or normal
8872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8873 # need to do runtime linking.
8874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8875 for ld_flag in $LDFLAGS; do
8876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8877 aix_use_runtimelinking=yes
8884 exp_sym_flag='-bexport'
8885 no_entry_flag='-bnoentry'
8888 # When large executables or shared objects are built, AIX ld can
8889 # have problems creating the table of contents. If linking a library
8890 # or program results in "error TOC overflow" add -mminimal-toc to
8891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8896 hardcode_libdir_separator=':'
8897 link_all_deplibs=yes
8899 if test "$GCC" = yes; then
8900 case $host_os in aix4.[012]|aix4.[012].*)
8901 # We only want to do this on AIX 4.2 and lower, the check
8902 # below for broken collect2 doesn't work under 4.3+
8903 collect2name=`${CC} -print-prog-name=collect2`
8904 if test -f "$collect2name" && \
8905 strings "$collect2name" | grep resolve_lib_name >/dev/null
8907 # We have reworked collect2
8910 # We have old collect2
8911 hardcode_direct=unsupported
8912 # It fails to find uninstalled libraries when the uninstalled
8913 # path is not listed in the libpath. Setting hardcode_minus_L
8914 # to unsupported forces relinking
8915 hardcode_minus_L=yes
8916 hardcode_libdir_flag_spec='-L$libdir'
8917 hardcode_libdir_separator=
8921 shared_flag='-shared'
8922 if test "$aix_use_runtimelinking" = yes; then
8923 shared_flag="$shared_flag "'${wl}-G'
8927 if test "$host_cpu" = ia64; then
8928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8929 # chokes on -Wl,-G. The following line is correct:
8932 if test "$aix_use_runtimelinking" = yes; then
8933 shared_flag='${wl}-G'
8935 shared_flag='${wl}-bM:SRE'
8940 # It seems that -bexpall does not export symbols beginning with
8941 # underscore (_), so it is better to generate a list of symbols to export.
8942 always_export_symbols=yes
8943 if test "$aix_use_runtimelinking" = yes; then
8944 # Warning - without using the other runtime loading flags (-brtl),
8945 # -berok will link without error, but may produce a broken library.
8946 allow_undefined_flag='-berok'
8947 # Determine the default libpath from the value encoded in an empty executable.
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (ac_try="$ac_link"
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8970 $as_echo "$ac_try_echo") >&5
8971 (eval "$ac_link") 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest$ac_exeext && {
8981 test "$cross_compiling" = yes ||
8982 $as_test_x conftest$ac_exeext
8985 lt_aix_libpath_sed='
8986 /Import File Strings/,/^$/ {
8992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8993 # Check for a 64-bit object if we didn't find anything.
8994 if test -z "$aix_libpath"; then
8995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8998 $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006 conftest$ac_exeext conftest.$ac_ext
9007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9010 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"
9012 if test "$host_cpu" = ia64; then
9013 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9014 allow_undefined_flag="-z nodefs"
9015 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"
9017 # Determine the default libpath from the value encoded in an empty executable.
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest$ac_exeext
9055 lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063 # Check for a 64-bit object if we didn't find anything.
9064 if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9074 rm -rf conftest.dSYM
9075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076 conftest$ac_exeext conftest.$ac_ext
9077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9080 # Warning - without using the other run time loading flags,
9081 # -berok will link without error, but may produce a broken library.
9082 no_undefined_flag=' ${wl}-bernotok'
9083 allow_undefined_flag=' ${wl}-berok'
9084 # Exported symbols can be pulled into shared objects from archives
9085 whole_archive_flag_spec='$convenience'
9086 archive_cmds_need_lc=yes
9087 # This is similar to how AIX traditionally builds its shared libraries.
9088 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'
9094 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)'
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 # see comment about different semantics on the GNU ld section
9102 export_dynamic_flag_spec=-rdynamic
9105 cygwin* | mingw* | pw32*)
9106 # When not using gcc, we currently assume that we are using
9107 # Microsoft Visual C++.
9108 # hardcode_libdir_flag_spec is actually meaningless, as there is
9109 # no search path for DLLs.
9110 hardcode_libdir_flag_spec=' '
9111 allow_undefined_flag=unsupported
9112 # Tell ltmain to make .lib files, not .a files.
9114 # Tell ltmain to make .dll files, not .so files.
9116 # FIXME: Setting linknames here is a bad hack.
9117 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9118 # The linker will automatically build a .lib file if we build a DLL.
9119 old_archive_From_new_cmds='true'
9120 # FIXME: Should let the user specify the lib program.
9121 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9122 fix_srcfile_path='`cygpath -w "$srcfile"`'
9123 enable_shared_with_static_runtimes=yes
9126 darwin* | rhapsody*)
9128 rhapsody* | darwin1.[012])
9129 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9132 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9133 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9135 case ${MACOSX_DEPLOYMENT_TARGET} in
9137 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9140 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9146 archive_cmds_need_lc=no
9148 hardcode_automatic=yes
9149 hardcode_shlibpath_var=unsupported
9150 whole_archive_flag_spec=''
9151 link_all_deplibs=yes
9152 if test "$GCC" = yes ; then
9153 output_verbose_link_cmd='echo'
9154 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9155 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9156 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}"
9157 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}"
9159 case $cc_basename in
9161 output_verbose_link_cmd='echo'
9162 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9163 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9165 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}'
9166 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}'
9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_shlibpath_var=no
9185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9186 # support. Future versions do this automatically, but an explicit c++rt0.o
9187 # does not break anything, and helps significantly (at the cost of a little
9190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9191 hardcode_libdir_flag_spec='-R$libdir'
9193 hardcode_shlibpath_var=no
9196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_minus_L=yes
9201 hardcode_shlibpath_var=no
9204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9205 freebsd* | dragonfly*)
9206 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9207 hardcode_libdir_flag_spec='-R$libdir'
9209 hardcode_shlibpath_var=no
9213 if test "$GCC" = yes; then
9214 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'
9216 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'
9218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219 hardcode_libdir_separator=:
9222 # hardcode_minus_L: Not really in the search PATH,
9223 # but as the default location of the library.
9224 hardcode_minus_L=yes
9225 export_dynamic_flag_spec='${wl}-E'
9229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9234 if test "$with_gnu_ld" = no; then
9235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9236 hardcode_libdir_separator=:
9239 export_dynamic_flag_spec='${wl}-E'
9241 # hardcode_minus_L: Not really in the search PATH,
9242 # but as the default location of the library.
9243 hardcode_minus_L=yes
9248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9251 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9257 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9273 if test "$with_gnu_ld" = no; then
9274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9275 hardcode_libdir_separator=:
9279 hardcode_libdir_flag_spec_ld='+b $libdir'
9281 hardcode_shlibpath_var=no
9285 export_dynamic_flag_spec='${wl}-E'
9287 # hardcode_minus_L: Not really in the search PATH,
9288 # but as the default location of the library.
9289 hardcode_minus_L=yes
9295 irix5* | irix6* | nonstopux*)
9296 if test "$GCC" = yes; then
9297 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'
9299 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'
9300 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303 hardcode_libdir_separator=:
9304 link_all_deplibs=yes
9308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9313 hardcode_libdir_flag_spec='-R$libdir'
9315 hardcode_shlibpath_var=no
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 hardcode_libdir_separator=:
9323 hardcode_shlibpath_var=no
9327 if test -f /usr/libexec/ld.so; then
9329 hardcode_shlibpath_var=no
9330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334 export_dynamic_flag_spec='${wl}-E'
9337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-R$libdir'
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_minus_L=yes
9355 allow_undefined_flag=unsupported
9356 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'
9357 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9361 if test "$GCC" = yes; then
9362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9363 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'
9365 allow_undefined_flag=' -expect_unresolved \*'
9366 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'
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 hardcode_libdir_separator=:
9372 osf4* | osf5*) # as osf3* with the addition of -msym flag
9373 if test "$GCC" = yes; then
9374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9375 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'
9376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 allow_undefined_flag=' -expect_unresolved \*'
9379 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'
9380 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9381 $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'
9383 # Both c and cxx compiler support -rpath directly
9384 hardcode_libdir_flag_spec='-rpath $libdir'
9386 hardcode_libdir_separator=:
9390 no_undefined_flag=' -z text'
9391 if test "$GCC" = yes; then
9393 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9395 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9398 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9402 hardcode_libdir_flag_spec='-R$libdir'
9403 hardcode_shlibpath_var=no
9405 solaris2.[0-5] | solaris2.[0-5].*) ;;
9407 # The compiler driver will combine and reorder linker options,
9408 # but understands `-z linker_flag'. GCC discards it without `$wl',
9409 # but is careful enough not to reorder.
9410 # Supported since Solaris 2.6 (maybe 2.5.1?)
9411 if test "$GCC" = yes; then
9412 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9414 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9418 link_all_deplibs=yes
9422 if test "x$host_vendor" = xsequent; then
9423 # Use $CC to link under sequent, because it throws in some extra .o
9424 # files that make .init and .fini sections work.
9425 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_minus_L=yes
9432 hardcode_shlibpath_var=no
9436 case $host_vendor in
9438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_direct=yes # is this really true???
9442 ## LD is ld it makes a PLAMLIB
9443 ## CC just makes a GrossModule.
9444 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9445 reload_cmds='$CC -r -o $output$reload_objs'
9449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9453 runpath_var='LD_RUN_PATH'
9454 hardcode_shlibpath_var=no
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_shlibpath_var=no
9460 export_dynamic_flag_spec='-Bexport'
9464 if test -d /usr/nec; then
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_shlibpath_var=no
9467 runpath_var=LD_RUN_PATH
9468 hardcode_runpath_var=yes
9473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9474 no_undefined_flag='${wl}-z,text'
9475 archive_cmds_need_lc=no
9476 hardcode_shlibpath_var=no
9477 runpath_var='LD_RUN_PATH'
9479 if test "$GCC" = yes; then
9480 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 sysv5* | sco3.2v5* | sco5v6*)
9489 # Note: We can NOT use -z defs as we might desire, because we do not
9490 # link with -lc, and that would cause any symbols used from libc to
9491 # always be unresolved, which means just about no library would
9492 # ever link correctly. If we're not using GNU ld we use -z text
9493 # though, which does catch some bad symbols but isn't as heavy-handed
9495 no_undefined_flag='${wl}-z,text'
9496 allow_undefined_flag='${wl}-z,nodefs'
9497 archive_cmds_need_lc=no
9498 hardcode_shlibpath_var=no
9499 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9500 hardcode_libdir_separator=':'
9501 link_all_deplibs=yes
9502 export_dynamic_flag_spec='${wl}-Bexport'
9503 runpath_var='LD_RUN_PATH'
9505 if test "$GCC" = yes; then
9506 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 hardcode_shlibpath_var=no
9526 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9527 $as_echo "$ld_shlibs" >&6; }
9528 test "$ld_shlibs" = no && can_build_shared=no
9531 # Do we need to explicitly link libc?
9533 case "x$archive_cmds_need_lc" in
9535 # Assume -lc should be added
9536 archive_cmds_need_lc=yes
9538 if test "$enable_shared" = yes && test "$GCC" = yes; then
9539 case $archive_cmds in
9541 # FIXME: we may have to deal with multi-command sequences.
9544 # Test whether the compiler implicitly links with -lc since on some
9545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9546 # to ld, don't add -lc before -lgcc.
9547 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9548 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553 (eval $ac_compile) 2>&5
9555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } 2>conftest.err; then
9559 libobjs=conftest.$ac_objext
9561 wl=$lt_prog_compiler_wl
9562 pic_flag=$lt_prog_compiler_pic
9568 lt_save_allow_undefined_flag=$allow_undefined_flag
9569 allow_undefined_flag=
9570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9571 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }
9576 archive_cmds_need_lc=no
9578 archive_cmds_need_lc=yes
9580 allow_undefined_flag=$lt_save_allow_undefined_flag
9582 cat conftest.err 1>&5
9585 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9586 $as_echo "$archive_cmds_need_lc" >&6; }
9593 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9594 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9596 libname_spec='lib$name'
9604 shlibpath_overrides_runpath=unknown
9606 dynamic_linker="$host_os ld.so"
9607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9609 if test "$GCC" = yes; then
9611 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9612 *) lt_awk_arg="/^libraries:/" ;;
9614 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9615 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9616 # if the path contains ";" then we assume it to be the separator
9617 # otherwise default to the standard path separator (i.e. ":") - it is
9618 # assumed that no part of a normal pathname contains ";" but that should
9619 # okay in the real world where ";" in dirpaths is itself problematic.
9620 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9622 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9624 # Ok, now we have the path, separated by spaces, we can step through it
9625 # and add multilib dir if necessary.
9626 lt_tmp_lt_search_path_spec=
9627 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9628 for lt_sys_path in $lt_search_path_spec; do
9629 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9630 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9632 test -d "$lt_sys_path" && \
9633 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9636 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9637 BEGIN {RS=" "; FS="/|\n";} {
9640 for (lt_i = NF; lt_i > 0; lt_i--) {
9641 if ($lt_i != "" && $lt_i != ".") {
9642 if ($lt_i == "..") {
9645 if (lt_count == 0) {
9646 lt_foo="/" $lt_i lt_foo;
9653 if (lt_foo != "") { lt_freq[lt_foo]++; }
9654 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9656 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9660 need_lib_prefix=unknown
9661 hardcode_into_libs=no
9663 # when you set need_version to no, make sure it does not cause -set_version
9664 # flags to be left without arguments
9665 need_version=unknown
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9671 shlibpath_var=LIBPATH
9673 # AIX 3 has no versioning support, so we append a major version to the name.
9674 soname_spec='${libname}${release}${shared_ext}$major'
9681 hardcode_into_libs=yes
9682 if test "$host_cpu" = ia64; then
9683 # AIX 5 supports IA64
9684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9685 shlibpath_var=LD_LIBRARY_PATH
9687 # With GCC up to 2.95.x, collect2 would create an import file
9688 # for dependence libraries. The import file would start with
9689 # the line `#! .'. This would cause the generated library to
9690 # depend on `.', always an invalid library. This was fixed in
9691 # development snapshots of GCC prior to 3.0.
9693 aix4 | aix4.[01] | aix4.[01].*)
9694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9704 # soname into executable. Probably we can add versioning support to
9705 # collect2, so additional links can be useful in future.
9706 if test "$aix_use_runtimelinking" = yes; then
9707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9708 # instead of lib<name>.a to let people know that these are not
9709 # typical AIX shared libraries.
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712 # We preserve .a as extension for shared libraries through AIX4.2
9713 # and later when we are not doing run time linking.
9714 library_names_spec='${libname}${release}.a $libname.a'
9715 soname_spec='${libname}${release}${shared_ext}$major'
9717 shlibpath_var=LIBPATH
9722 library_names_spec='$libname.ixlibrary $libname.a'
9723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9724 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'
9728 library_names_spec='${libname}${shared_ext}'
9729 dynamic_linker="$host_os ld.so"
9730 shlibpath_var=LIBRARY_PATH
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9742 # the default ld.so.conf also contains /usr/contrib/lib and
9743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9744 # libtool to hard-code these into programs
9747 cygwin* | mingw* | pw32*)
9748 version_type=windows
9753 case $GCC,$host_os in
9754 yes,cygwin* | yes,mingw* | yes,pw32*)
9755 library_names_spec='$libname.dll.a'
9756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9757 postinstall_cmds='base_file=`basename \${file}`~
9758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9759 dldir=$destdir/`dirname \$dlpath`~
9760 test -d \$dldir || mkdir -p \$dldir~
9761 $install_prog $dir/$dlname \$dldir/$dlname~
9762 chmod a+x \$dldir/$dlname'
9763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9764 dlpath=$dir/\$dldll~
9766 shlibpath_overrides_runpath=yes
9770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9772 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9775 # MinGW DLLs use traditional 'lib' prefix
9776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9778 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9779 # It is most probably a Windows format PATH printed by
9780 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9781 # path with ; separators, and with drive letters. We can handle the
9782 # drive letters (cygwin fileutils understands them), so leave them,
9783 # especially as we might pass files found there to a mingw objdump,
9784 # which wouldn't understand a cygwinified path. Ahh.
9785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9791 # pw32 DLLs use 'pw' prefix rather than 'lib'
9792 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9801 dynamic_linker='Win32 ld.exe'
9802 # FIXME: first we should search . and the directory the executable is in
9806 darwin* | rhapsody*)
9807 dynamic_linker="$host_os dyld"
9811 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9812 soname_spec='${libname}${release}${major}$shared_ext'
9813 shlibpath_overrides_runpath=yes
9814 shlibpath_var=DYLD_LIBRARY_PATH
9815 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9817 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9834 freebsd* | dragonfly*)
9835 # DragonFly does not have aout. When/if they implement a new
9836 # versioning mechanism, adjust this.
9837 if test -x /usr/bin/objformat; then
9838 objformat=`/usr/bin/objformat`
9841 freebsd[123]*) objformat=aout ;;
9845 # Handle Gentoo/FreeBSD as it was Linux
9846 case $host_vendor in
9848 version_type=linux ;;
9850 version_type=freebsd-$objformat ;;
9853 case $version_type in
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9870 shlibpath_var=LD_LIBRARY_PATH
9873 shlibpath_overrides_runpath=yes
9875 freebsd3.[01]* | freebsdelf3.[01]*)
9876 shlibpath_overrides_runpath=yes
9877 hardcode_into_libs=yes
9879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9881 shlibpath_overrides_runpath=no
9882 hardcode_into_libs=yes
9884 *) # from 4.6 on, and DragonFly
9885 shlibpath_overrides_runpath=yes
9886 hardcode_into_libs=yes
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 hardcode_into_libs=yes
9901 hpux9* | hpux10* | hpux11*)
9902 # Give a soname corresponding to the major version so that dld.sl refuses to
9903 # link against other versions.
9910 hardcode_into_libs=yes
9911 dynamic_linker="$host_os dld.so"
9912 shlibpath_var=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 if test "X$HPUX_IA64_MODE" = X32; then
9917 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9925 hardcode_into_libs=yes
9926 dynamic_linker="$host_os dld.sl"
9927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9936 dynamic_linker="$host_os dld.sl"
9937 shlibpath_var=SHLIB_PATH
9938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9943 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9944 postinstall_cmds='chmod 555 $lib'
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9954 shlibpath_var=LD_LIBRARY_PATH
9955 shlibpath_overrides_runpath=no
9956 hardcode_into_libs=yes
9959 irix5* | irix6* | nonstopux*)
9961 nonstopux*) version_type=nonstopux ;;
9963 if test "$lt_cv_prog_gnu_ld" = yes; then
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9974 irix5* | nonstopux*)
9978 case $LD in # libtool.m4 will add one of these switches to LD
9979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9980 libsuff= shlibsuff= libmagic=32-bit;;
9981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9982 libsuff=32 shlibsuff=N32 libmagic=N32;;
9983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9985 *) libsuff= shlibsuff= libmagic=never-match;;
9989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9990 shlibpath_overrides_runpath=no
9991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9993 hardcode_into_libs=yes
9996 # No shared lib support for Linux oldld, aout, or coff.
9997 linux*oldld* | linux*aout* | linux*coff*)
10001 # This must be Linux ELF.
10002 linux* | k*bsd*-gnu)
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10009 shlibpath_var=LD_LIBRARY_PATH
10010 shlibpath_overrides_runpath=no
10011 # This implies no fast_install, which is unacceptable.
10012 # Some rework will be needed to allow for fast_install
10013 # before this can be enabled.
10014 hardcode_into_libs=yes
10016 # Append ld.so.conf contents to the search path
10017 if test -f /etc/ld.so.conf; then
10018 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' ' '`
10019 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10022 # We used to test for /lib/ld.so.1 and disable shared libraries on
10023 # powerpc, because MkLinux only supported shared libraries with the
10024 # GNU dynamic linker. Since this was broken with cross compilers,
10025 # most powerpc-linux boxes support dynamic linking these days and
10026 # people can always --disable-shared, the test was removed, and we
10027 # assume the GNU/Linux dynamic linker is in use.
10028 dynamic_linker='GNU/Linux ld.so'
10035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10038 dynamic_linker='NetBSD (a.out) ld.so'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 dynamic_linker='NetBSD ld.elf_so'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=yes
10046 hardcode_into_libs=yes
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath=yes
10068 sys_lib_dlsearch_path_spec="/usr/lib"
10070 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10072 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10073 *) need_version=no ;;
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10080 openbsd2.[89] | openbsd2.[89].*)
10081 shlibpath_overrides_runpath=no
10084 shlibpath_overrides_runpath=yes
10088 shlibpath_overrides_runpath=yes
10093 libname_spec='$name'
10096 library_names_spec='$libname${shared_ext} $libname.a'
10097 dynamic_linker='OS/2 ld.exe'
10098 shlibpath_var=LIBPATH
10101 osf3* | osf4* | osf5*)
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10109 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 shlibpath_var=LD_LIBRARY_PATH
10123 shlibpath_overrides_runpath=yes
10124 hardcode_into_libs=yes
10125 # ldd complains unless libraries are executable
10126 postinstall_cmds='chmod +x $lib'
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath=yes
10135 if test "$with_gnu_ld" = yes; then
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 case $host_vendor in
10148 shlibpath_overrides_runpath=no
10150 export_dynamic_flag_spec='${wl}-Blargedynsym'
10151 runpath_var=LD_RUN_PATH
10159 shlibpath_overrides_runpath=no
10160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10166 if test -d /usr/nec ;then
10168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10169 soname_spec='$libname${shared_ext}.$major'
10170 shlibpath_var=LD_LIBRARY_PATH
10174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10175 version_type=freebsd-elf
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 hardcode_into_libs=yes
10182 if test "$with_gnu_ld" = yes; then
10183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10184 shlibpath_overrides_runpath=no
10186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10187 shlibpath_overrides_runpath=yes
10190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194 sys_lib_dlsearch_path_spec='/usr/lib'
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10208 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10209 $as_echo "$dynamic_linker" >&6; }
10210 test "$dynamic_linker" = no && can_build_shared=no
10212 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10213 $as_echo_n "(cached) " >&6
10215 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10219 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10220 $as_echo_n "(cached) " >&6
10222 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10227 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10228 if test "$GCC" = yes; then
10229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10232 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10233 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10235 if test -n "$hardcode_libdir_flag_spec" || \
10236 test -n "$runpath_var" || \
10237 test "X$hardcode_automatic" = "Xyes" ; then
10239 # We can hardcode non-existant directories.
10240 if test "$hardcode_direct" != no &&
10241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10242 # have to relink, otherwise we might link with an installed library
10243 # when we should be linking with a yet-to-be-installed one
10244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10245 test "$hardcode_minus_L" != no; then
10246 # Linking always hardcodes the temporary library directory.
10247 hardcode_action=relink
10249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10250 hardcode_action=immediate
10253 # We cannot hardcode anything, or else we can only hardcode existing
10255 hardcode_action=unsupported
10257 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10258 $as_echo "$hardcode_action" >&6; }
10260 if test "$hardcode_action" = relink; then
10261 # Fast installation is not supported
10262 enable_fast_install=no
10263 elif test "$shlibpath_overrides_runpath" = yes ||
10264 test "$enable_shared" = no; then
10265 # Fast installation is not necessary
10266 enable_fast_install=needless
10271 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10272 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10275 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10276 { $as_echo "$as_me:$LINENO: result: yes" >&5
10277 $as_echo "yes" >&6; }
10279 # FIXME - insert some real tests, host_os isn't really good enough
10282 if test -n "$STRIP" ; then
10283 striplib="$STRIP -x"
10284 old_striplib="$STRIP -S"
10285 { $as_echo "$as_me:$LINENO: result: yes" >&5
10286 $as_echo "yes" >&6; }
10288 { $as_echo "$as_me:$LINENO: result: no" >&5
10289 $as_echo "no" >&6; }
10293 { $as_echo "$as_me:$LINENO: result: no" >&5
10294 $as_echo "no" >&6; }
10299 if test "x$enable_dlopen" != xyes; then
10300 enable_dlopen=unknown
10301 enable_dlopen_self=unknown
10302 enable_dlopen_self_static=unknown
10309 lt_cv_dlopen="load_add_on"
10311 lt_cv_dlopen_self=yes
10315 lt_cv_dlopen="LoadLibrary"
10320 lt_cv_dlopen="dlopen"
10325 # if libdl is installed we need to link against it
10326 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10329 $as_echo_n "(cached) " >&6
10331 ac_check_lib_save_LIBS=$LIBS
10333 cat >conftest.$ac_ext <<_ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10340 /* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (ac_try="$ac_link"
10357 case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10362 $as_echo "$ac_try_echo") >&5
10363 (eval "$ac_link") 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext && {
10373 test "$cross_compiling" = yes ||
10374 $as_test_x conftest$ac_exeext
10376 ac_cv_lib_dl_dlopen=yes
10378 $as_echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_cv_lib_dl_dlopen=no
10384 rm -rf conftest.dSYM
10385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10390 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10391 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10395 lt_cv_dlopen="dyld"
10397 lt_cv_dlopen_self=yes
10404 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10405 $as_echo_n "checking for shl_load... " >&6; }
10406 if test "${ac_cv_func_shl_load+set}" = set; then
10407 $as_echo_n "(cached) " >&6
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10417 #define shl_load innocuous_shl_load
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char shl_load (); below.
10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422 <limits.h> exists even on freestanding compilers. */
10425 # include <limits.h>
10427 # include <assert.h>
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10439 /* The GNU C library defines this for functions which it implements
10440 to always fail with ENOSYS. Some functions are actually named
10441 something starting with __ and the normal name is an alias. */
10442 #if defined __stub_shl_load || defined __stub___shl_load
10449 return shl_load ();
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10461 $as_echo "$ac_try_echo") >&5
10462 (eval "$ac_link") 2>conftest.er1
10464 grep -v '^ *+' conftest.er1 >conftest.err
10466 cat conftest.err >&5
10467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } && {
10469 test -z "$ac_c_werror_flag" ||
10470 test ! -s conftest.err
10471 } && test -s conftest$ac_exeext && {
10472 test "$cross_compiling" = yes ||
10473 $as_test_x conftest$ac_exeext
10475 ac_cv_func_shl_load=yes
10477 $as_echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10480 ac_cv_func_shl_load=no
10483 rm -rf conftest.dSYM
10484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10485 conftest$ac_exeext conftest.$ac_ext
10487 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10488 $as_echo "$ac_cv_func_shl_load" >&6; }
10489 if test "x$ac_cv_func_shl_load" = x""yes; then
10490 lt_cv_dlopen="shl_load"
10492 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10493 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10494 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10495 $as_echo_n "(cached) " >&6
10497 ac_check_lib_save_LIBS=$LIBS
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10516 return shl_load ();
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10528 $as_echo "$ac_try_echo") >&5
10529 (eval "$ac_link") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext && {
10539 test "$cross_compiling" = yes ||
10540 $as_test_x conftest$ac_exeext
10542 ac_cv_lib_dld_shl_load=yes
10544 $as_echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_dld_shl_load=no
10550 rm -rf conftest.dSYM
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10556 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10557 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10558 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10560 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10561 $as_echo_n "checking for dlopen... " >&6; }
10562 if test "${ac_cv_func_dlopen+set}" = set; then
10563 $as_echo_n "(cached) " >&6
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10573 #define dlopen innocuous_dlopen
10575 /* System header to define __stub macros and hopefully few prototypes,
10576 which can conflict with char dlopen (); below.
10577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10578 <limits.h> exists even on freestanding compilers. */
10581 # include <limits.h>
10583 # include <assert.h>
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10595 /* The GNU C library defines this for functions which it implements
10596 to always fail with ENOSYS. Some functions are actually named
10597 something starting with __ and the normal name is an alias. */
10598 #if defined __stub_dlopen || defined __stub___dlopen
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10617 $as_echo "$ac_try_echo") >&5
10618 (eval "$ac_link") 2>conftest.er1
10620 grep -v '^ *+' conftest.er1 >conftest.err
10622 cat conftest.err >&5
10623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && {
10625 test -z "$ac_c_werror_flag" ||
10626 test ! -s conftest.err
10627 } && test -s conftest$ac_exeext && {
10628 test "$cross_compiling" = yes ||
10629 $as_test_x conftest$ac_exeext
10631 ac_cv_func_dlopen=yes
10633 $as_echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_cv_func_dlopen=no
10639 rm -rf conftest.dSYM
10640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10641 conftest$ac_exeext conftest.$ac_ext
10643 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10644 $as_echo "$ac_cv_func_dlopen" >&6; }
10645 if test "x$ac_cv_func_dlopen" = x""yes; then
10646 lt_cv_dlopen="dlopen"
10648 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10649 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10651 $as_echo_n "(cached) " >&6
10653 ac_check_lib_save_LIBS=$LIBS
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_link") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest$ac_exeext && {
10695 test "$cross_compiling" = yes ||
10696 $as_test_x conftest$ac_exeext
10698 ac_cv_lib_dl_dlopen=yes
10700 $as_echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10703 ac_cv_lib_dl_dlopen=no
10706 rm -rf conftest.dSYM
10707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10712 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10713 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10716 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10717 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10718 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10719 $as_echo_n "(cached) " >&6
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-lsvld $LIBS"
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (ac_try="$ac_link"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752 $as_echo "$ac_try_echo") >&5
10753 (eval "$ac_link") 2>conftest.er1
10755 grep -v '^ *+' conftest.er1 >conftest.err
10757 cat conftest.err >&5
10758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && {
10760 test -z "$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 } && test -s conftest$ac_exeext && {
10763 test "$cross_compiling" = yes ||
10764 $as_test_x conftest$ac_exeext
10766 ac_cv_lib_svld_dlopen=yes
10768 $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ac_cv_lib_svld_dlopen=no
10774 rm -rf conftest.dSYM
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10780 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10781 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10784 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10785 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10786 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10787 $as_echo_n "(cached) " >&6
10789 ac_check_lib_save_LIBS=$LIBS
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10808 return dld_link ();
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10820 $as_echo "$ac_try_echo") >&5
10821 (eval "$ac_link") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest$ac_exeext && {
10831 test "$cross_compiling" = yes ||
10832 $as_test_x conftest$ac_exeext
10834 ac_cv_lib_dld_dld_link=yes
10836 $as_echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_cv_lib_dld_dld_link=no
10842 rm -rf conftest.dSYM
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10847 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10848 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10849 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10850 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10871 if test "x$lt_cv_dlopen" != xno; then
10877 case $lt_cv_dlopen in
10879 save_CPPFLAGS="$CPPFLAGS"
10880 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10882 save_LDFLAGS="$LDFLAGS"
10883 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10886 LIBS="$lt_cv_dlopen_libs $LIBS"
10888 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10889 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10890 if test "${lt_cv_dlopen_self+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10893 if test "$cross_compiling" = yes; then :
10894 lt_cv_dlopen_self=cross
10896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10897 lt_status=$lt_dlunknown
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10899 "configure"
10900 #include "confdefs.h"
10909 # define LT_DLGLOBAL RTLD_GLOBAL
10912 # define LT_DLGLOBAL DL_GLOBAL
10914 # define LT_DLGLOBAL 0
10918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10919 find out it does not work in some platform. */
10920 #ifndef LT_DLLAZY_OR_NOW
10922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10925 # define LT_DLLAZY_OR_NOW DL_LAZY
10928 # define LT_DLLAZY_OR_NOW RTLD_NOW
10931 # define LT_DLLAZY_OR_NOW DL_NOW
10933 # define LT_DLLAZY_OR_NOW 0
10941 extern "C" void exit (int);
10944 void fnord() { int i=42;}
10947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10948 int status = $lt_dlunknown;
10952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10954 /* dlclose (self); */
10962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>&5
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10967 (./conftest; exit; ) >&5 2>/dev/null
10969 case x$lt_status in
10970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10975 # compilation failed
10976 lt_cv_dlopen_self=no
10983 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10984 $as_echo "$lt_cv_dlopen_self" >&6; }
10986 if test "x$lt_cv_dlopen_self" = xyes; then
10987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10988 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10990 if test "${lt_cv_dlopen_self_static+set}" = set; then
10991 $as_echo_n "(cached) " >&6
10993 if test "$cross_compiling" = yes; then :
10994 lt_cv_dlopen_self_static=cross
10996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10997 lt_status=$lt_dlunknown
10998 cat > conftest.$ac_ext <<EOF
10999 #line 10999 "configure"
11000 #include "confdefs.h"
11009 # define LT_DLGLOBAL RTLD_GLOBAL
11012 # define LT_DLGLOBAL DL_GLOBAL
11014 # define LT_DLGLOBAL 0
11018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11019 find out it does not work in some platform. */
11020 #ifndef LT_DLLAZY_OR_NOW
11022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11025 # define LT_DLLAZY_OR_NOW DL_LAZY
11028 # define LT_DLLAZY_OR_NOW RTLD_NOW
11031 # define LT_DLLAZY_OR_NOW DL_NOW
11033 # define LT_DLLAZY_OR_NOW 0
11041 extern "C" void exit (int);
11044 void fnord() { int i=42;}
11047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11048 int status = $lt_dlunknown;
11052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11053 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11054 /* dlclose (self); */
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>&5
11065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11067 (./conftest; exit; ) >&5 2>/dev/null
11069 case x$lt_status in
11070 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11071 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11072 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11075 # compilation failed
11076 lt_cv_dlopen_self_static=no
11083 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11084 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11087 CPPFLAGS="$save_CPPFLAGS"
11088 LDFLAGS="$save_LDFLAGS"
11093 case $lt_cv_dlopen_self in
11094 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11095 *) enable_dlopen_self=unknown ;;
11098 case $lt_cv_dlopen_self_static in
11099 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11100 *) enable_dlopen_self_static=unknown ;;
11105 # Report which library types will actually be built
11106 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11107 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11108 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11109 $as_echo "$can_build_shared" >&6; }
11111 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11112 $as_echo_n "checking whether to build shared libraries... " >&6; }
11113 test "$can_build_shared" = "no" && enable_shared=no
11115 # On AIX, shared libraries and static libraries use the same namespace, and
11116 # are all built from PIC.
11119 test "$enable_shared" = yes && enable_static=no
11120 if test -n "$RANLIB"; then
11121 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11122 postinstall_cmds='$RANLIB $lib'
11127 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11128 test "$enable_shared" = yes && enable_static=no
11132 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11133 $as_echo "$enable_shared" >&6; }
11135 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11136 $as_echo_n "checking whether to build static libraries... " >&6; }
11137 # Make sure either enable_shared or enable_static is yes.
11138 test "$enable_shared" = yes || enable_static=yes
11139 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11140 $as_echo "$enable_static" >&6; }
11142 # The else clause should only fire when bootstrapping the
11143 # libtool distribution, otherwise you forgot to ship ltmain.sh
11144 # with your package, and you will get complaints that there are
11145 # no rules to generate ltmain.sh.
11146 if test -f "$ltmain"; then
11147 # See if we are running on zsh, and set the options which allow our commands through
11148 # without removal of \ escapes.
11149 if test -n "${ZSH_VERSION+set}" ; then
11150 setopt NO_GLOB_SUBST
11152 # Now quote all the things that may contain metacharacters while being
11153 # careful not to overquote the AC_SUBSTed values. We take copies of the
11154 # variables and quote the copies for generation of the libtool script.
11155 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11157 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11158 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11159 deplibs_check_method reload_flag reload_cmds need_locks \
11160 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11161 lt_cv_sys_global_symbol_to_c_name_address \
11162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11163 old_postinstall_cmds old_postuninstall_cmds \
11167 lt_prog_compiler_wl \
11168 lt_prog_compiler_pic \
11169 lt_prog_compiler_static \
11170 lt_prog_compiler_no_builtin_flag \
11171 export_dynamic_flag_spec \
11172 thread_safe_flag_spec \
11173 whole_archive_flag_spec \
11174 enable_shared_with_static_runtimes \
11176 old_archive_from_new_cmds \
11181 compiler_lib_search_path \
11182 compiler_lib_search_dirs \
11184 archive_expsym_cmds \
11186 postuninstall_cmds \
11187 old_archive_from_expsyms_cmds \
11188 allow_undefined_flag \
11189 no_undefined_flag \
11190 export_symbols_cmds \
11191 hardcode_libdir_flag_spec \
11192 hardcode_libdir_flag_spec_ld \
11193 hardcode_libdir_separator \
11194 hardcode_automatic \
11196 module_expsym_cmds \
11197 lt_cv_prog_compiler_c_o \
11200 include_expsyms; do
11203 old_archive_cmds | \
11204 old_archive_from_new_cmds | \
11206 archive_expsym_cmds | \
11208 module_expsym_cmds | \
11209 old_archive_from_expsyms_cmds | \
11210 export_symbols_cmds | \
11211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11212 postinstall_cmds | postuninstall_cmds | \
11213 old_postinstall_cmds | old_postuninstall_cmds | \
11214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11215 # Double-quote double-evaled strings.
11216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11225 *'\$0 --fallback-echo"')
11226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11230 cfgfile="${ofile}T"
11231 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11233 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11234 $as_echo "$as_me: creating $ofile" >&6;}
11236 cat <<__EOF__ >> "$cfgfile"
11239 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11240 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11241 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11243 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11244 # Free Software Foundation, Inc.
11246 # This file is part of GNU Libtool:
11249 # This program is free software; you can redistribute it and/or modify
11250 # it under the terms of the GNU General Public License as published by
11251 # the Free Software Foundation; either version 2 of the License, or
11252 # (at your option) any later version.
11254 # This program is distributed in the hope that it will be useful, but
11255 # WITHOUT ANY WARRANTY; without even the implied warranty of
11256 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11257 # General Public License for more details.
11259 # You should have received a copy of the GNU General Public License
11260 # along with this program; if not, write to the Free Software
11261 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11263 # As a special exception to the GNU General Public License, if you
11264 # distribute this file as part of a program that contains a
11265 # configuration script generated by Autoconf, you may include it under
11266 # the same distribution terms that you use for the rest of that program.
11268 # A sed program that does not truncate output.
11271 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11272 Xsed="$SED -e 1s/^X//"
11274 # The HP-UX ksh and POSIX shell print the target directory to stdout
11275 # if CDPATH is set.
11276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11278 # The names of the tagged configurations supported by this script.
11281 # ### BEGIN LIBTOOL CONFIG
11283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11285 # Shell to use when invoking shell scripts.
11288 # Whether or not to build shared libraries.
11289 build_libtool_libs=$enable_shared
11291 # Whether or not to build static libraries.
11292 build_old_libs=$enable_static
11294 # Whether or not to add -lc for building shared libraries.
11295 build_libtool_need_lc=$archive_cmds_need_lc
11297 # Whether or not to disallow shared libs when runtime libs are static
11298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11300 # Whether or not to optimize for fast installation.
11301 fast_install=$enable_fast_install
11304 host_alias=$host_alias
11308 # The build system.
11309 build_alias=$build_alias
11313 # An echo program that does not interpret backslashes.
11318 AR_FLAGS=$lt_AR_FLAGS
11323 # LTCC compiler flags.
11324 LTCFLAGS=$lt_LTCFLAGS
11326 # A language-specific compiler.
11329 # Is the compiler the GNU C compiler?
11335 # The linker used to build libraries.
11338 # Whether we need hard or soft links.
11341 # A BSD-compatible nm program.
11344 # A symbol stripping program
11347 # Used to examine libraries when file_magic_cmd begins "file"
11348 MAGIC_CMD=$MAGIC_CMD
11350 # Used on cygwin: DLL creation program.
11353 # Used on cygwin: object dumper.
11356 # Used on cygwin: assembler.
11359 # The name of the directory that contains temporary libtool files.
11362 # How to create reloadable object files.
11363 reload_flag=$lt_reload_flag
11364 reload_cmds=$lt_reload_cmds
11366 # How to pass a linker flag through the compiler.
11367 wl=$lt_lt_prog_compiler_wl
11369 # Object file suffix (normally "o").
11370 objext="$ac_objext"
11372 # Old archive suffix (normally "a").
11375 # Shared library suffix (normally ".so").
11376 shrext_cmds='$shrext_cmds'
11378 # Executable file suffix (normally "").
11381 # Additional compiler flags for building library objects.
11382 pic_flag=$lt_lt_prog_compiler_pic
11385 # What is the maximum length of a command?
11386 max_cmd_len=$lt_cv_sys_max_cmd_len
11388 # Does compiler simultaneously support -c and -o options?
11389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11391 # Must we lock files when doing compilation?
11392 need_locks=$lt_need_locks
11394 # Do we need the lib prefix for modules?
11395 need_lib_prefix=$need_lib_prefix
11397 # Do we need a version for libraries?
11398 need_version=$need_version
11400 # Whether dlopen is supported.
11401 dlopen_support=$enable_dlopen
11403 # Whether dlopen of programs is supported.
11404 dlopen_self=$enable_dlopen_self
11406 # Whether dlopen of statically linked programs is supported.
11407 dlopen_self_static=$enable_dlopen_self_static
11409 # Compiler flag to prevent dynamic linking.
11410 link_static_flag=$lt_lt_prog_compiler_static
11412 # Compiler flag to turn off builtin functions.
11413 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11415 # Compiler flag to allow reflexive dlopens.
11416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11418 # Compiler flag to generate shared objects directly from archives.
11419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11421 # Compiler flag to generate thread-safe objects.
11422 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11424 # Library versioning type.
11425 version_type=$version_type
11427 # Format of library name prefix.
11428 libname_spec=$lt_libname_spec
11430 # List of archive names. First name is the real one, the rest are links.
11431 # The last name is the one that the linker finds with -lNAME.
11432 library_names_spec=$lt_library_names_spec
11434 # The coded name of the library, if different from the real name.
11435 soname_spec=$lt_soname_spec
11437 # Commands used to build and install an old-style archive.
11439 old_archive_cmds=$lt_old_archive_cmds
11440 old_postinstall_cmds=$lt_old_postinstall_cmds
11441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11443 # Create an old-style archive from a shared archive.
11444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11446 # Create a temporary old-style archive to link instead of a shared archive.
11447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11449 # Commands used to build and install a shared archive.
11450 archive_cmds=$lt_archive_cmds
11451 archive_expsym_cmds=$lt_archive_expsym_cmds
11452 postinstall_cmds=$lt_postinstall_cmds
11453 postuninstall_cmds=$lt_postuninstall_cmds
11455 # Commands used to build a loadable module (assumed same as above if empty)
11456 module_cmds=$lt_module_cmds
11457 module_expsym_cmds=$lt_module_expsym_cmds
11459 # Commands to strip libraries.
11460 old_striplib=$lt_old_striplib
11461 striplib=$lt_striplib
11463 # Dependencies to place before the objects being linked to create a
11465 predep_objects=$lt_predep_objects
11467 # Dependencies to place after the objects being linked to create a
11469 postdep_objects=$lt_postdep_objects
11471 # Dependencies to place before the objects being linked to create a
11473 predeps=$lt_predeps
11475 # Dependencies to place after the objects being linked to create a
11477 postdeps=$lt_postdeps
11479 # The directories searched by this compiler when creating a shared
11481 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11483 # The library search path used internally by the compiler when linking
11484 # a shared library.
11485 compiler_lib_search_path=$lt_compiler_lib_search_path
11487 # Method to check whether dependent libraries are shared objects.
11488 deplibs_check_method=$lt_deplibs_check_method
11490 # Command to use when deplibs_check_method == file_magic.
11491 file_magic_cmd=$lt_file_magic_cmd
11493 # Flag that allows shared libraries with undefined symbols to be built.
11494 allow_undefined_flag=$lt_allow_undefined_flag
11496 # Flag that forces no undefined symbols.
11497 no_undefined_flag=$lt_no_undefined_flag
11499 # Commands used to finish a libtool library installation in a directory.
11500 finish_cmds=$lt_finish_cmds
11502 # Same as above, but a single script fragment to be evaled but not shown.
11503 finish_eval=$lt_finish_eval
11505 # Take the output of nm and produce a listing of raw symbols and C names.
11506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11508 # Transform the output of nm in a proper C declaration
11509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11511 # Transform the output of nm in a C name address pair
11512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11514 # This is the shared library runtime path variable.
11515 runpath_var=$runpath_var
11517 # This is the shared library path variable.
11518 shlibpath_var=$shlibpath_var
11520 # Is shlibpath searched before the hard-coded library search path?
11521 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11523 # How to hardcode a shared library path into an executable.
11524 hardcode_action=$hardcode_action
11526 # Whether we should hardcode library paths into libraries.
11527 hardcode_into_libs=$hardcode_into_libs
11529 # Flag to hardcode \$libdir into a binary during linking.
11530 # This must work even if \$libdir does not exist.
11531 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11533 # If ld is used when linking, flag to hardcode \$libdir into
11534 # a binary during linking. This must work even if \$libdir does
11536 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11538 # Whether we need a single -rpath flag with a separated argument.
11539 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11541 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11542 # resulting binary.
11543 hardcode_direct=$hardcode_direct
11545 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11546 # resulting binary.
11547 hardcode_minus_L=$hardcode_minus_L
11549 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11550 # the resulting binary.
11551 hardcode_shlibpath_var=$hardcode_shlibpath_var
11553 # Set to yes if building a shared library automatically hardcodes DIR into the library
11554 # and all subsequent libraries and executables linked against it.
11555 hardcode_automatic=$hardcode_automatic
11557 # Variables whose values should be saved in libtool wrapper scripts and
11558 # restored at relink time.
11559 variables_saved_for_relink="$variables_saved_for_relink"
11561 # Whether libtool must link a program against all its dependency libraries.
11562 link_all_deplibs=$link_all_deplibs
11564 # Compile-time system search path for libraries
11565 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11567 # Run-time system search path for libraries
11568 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11570 # Fix the shell variable \$srcfile for the compiler.
11571 fix_srcfile_path=$lt_fix_srcfile_path
11573 # Set to yes if exported symbols are required.
11574 always_export_symbols=$always_export_symbols
11576 # The commands to list exported symbols.
11577 export_symbols_cmds=$lt_export_symbols_cmds
11579 # The commands to extract the exported symbol list from a shared archive.
11580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11582 # Symbols that should not be listed in the preloaded symbols.
11583 exclude_expsyms=$lt_exclude_expsyms
11585 # Symbols that must always be exported.
11586 include_expsyms=$lt_include_expsyms
11588 # ### END LIBTOOL CONFIG
11595 cat <<\EOF >> "$cfgfile"
11597 # AIX sometimes has problems with the GCC collect2 program. For some
11598 # reason, if we set the COLLECT_NAMES environment variable, the problems
11599 # vanish in a puff of smoke.
11600 if test "X${COLLECT_NAMES+set}" != Xset; then
11602 export COLLECT_NAMES
11608 # We use sed instead of cat because bash on DJGPP gets confused if
11609 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11610 # text mode, it properly converts lines to CR/LF. This bash problem
11611 # is reportedly fixed, but why not run on old versions too?
11612 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11614 mv -f "$cfgfile" "$ofile" || \
11615 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11619 # If there is no Makefile yet, we rely on a make rule to execute
11620 # `config.status --recheck' to rerun these tests and create the
11621 # libtool script then.
11622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11623 if test -f "$ltmain_in"; then
11624 test -f Makefile && make "$ltmain"
11630 ac_cpp='$CPP $CPPFLAGS'
11631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11638 # Check whether --with-tags was given.
11639 if test "${with_tags+set}" = set; then
11640 withval=$with_tags; tagnames="$withval"
11644 if test -f "$ltmain" && test -n "$tagnames"; then
11645 if test ! -f "${ofile}"; then
11646 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11647 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11650 if test -z "$LTCC"; then
11651 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11652 if test -z "$LTCC"; then
11653 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11654 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11656 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11657 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11660 if test -z "$LTCFLAGS"; then
11661 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11664 # Extract list of available tagged configurations in $ofile.
11665 # Note that this assumes the entire list is on one line.
11666 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11669 for tagname in $tagnames; do
11671 # Check whether tagname contains only valid characters
11672 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11674 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11675 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11676 { (exit 1); exit 1; }; }
11680 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11682 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11683 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11684 { (exit 1); exit 1; }; }
11687 # Update the list of available tags.
11688 if test -n "$tagname"; then
11689 echo appending configuration tag \"$tagname\" to $ofile
11693 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11694 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11695 (test "X$CXX" != "Xg++"))) ; then
11697 ac_cpp='$CXXCPP $CPPFLAGS'
11698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11705 archive_cmds_need_lc_CXX=no
11706 allow_undefined_flag_CXX=
11707 always_export_symbols_CXX=no
11708 archive_expsym_cmds_CXX=
11709 export_dynamic_flag_spec_CXX=
11710 hardcode_direct_CXX=no
11711 hardcode_libdir_flag_spec_CXX=
11712 hardcode_libdir_flag_spec_ld_CXX=
11713 hardcode_libdir_separator_CXX=
11714 hardcode_minus_L_CXX=no
11715 hardcode_shlibpath_var_CXX=unsupported
11716 hardcode_automatic_CXX=no
11718 module_expsym_cmds_CXX=
11719 link_all_deplibs_CXX=unknown
11720 old_archive_cmds_CXX=$old_archive_cmds
11721 no_undefined_flag_CXX=
11722 whole_archive_flag_spec_CXX=
11723 enable_shared_with_static_runtimes_CXX=no
11725 # Dependencies to place before and after the object being linked:
11726 predep_objects_CXX=
11727 postdep_objects_CXX=
11730 compiler_lib_search_path_CXX=
11731 compiler_lib_search_dirs_CXX=
11733 # Source file extension for C++ test sources.
11736 # Object file extension for compiled C++ test sources.
11740 # Code to be used in simple compile tests
11741 lt_simple_compile_test_code="int some_variable = 0;"
11743 # Code to be used in simple link tests
11744 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11746 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11748 # If no C compiler was specified, use CC.
11751 # If no C compiler flags were specified, use CFLAGS.
11752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11754 # Allow CC to be a program name with arguments.
11758 # save warnings/boilerplate of simple test code
11759 ac_outfile=conftest.$ac_objext
11760 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11761 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11762 _lt_compiler_boilerplate=`cat conftest.err`
11765 ac_outfile=conftest.$ac_objext
11766 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11767 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11768 _lt_linker_boilerplate=`cat conftest.err`
11772 # Allow CC to be a program name with arguments.
11777 lt_save_with_gnu_ld=$with_gnu_ld
11778 lt_save_path_LD=$lt_cv_path_LD
11779 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11780 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11782 $as_unset lt_cv_prog_gnu_ld
11784 if test -n "${lt_cv_path_LDCXX+set}"; then
11785 lt_cv_path_LD=$lt_cv_path_LDCXX
11787 $as_unset lt_cv_path_LD
11789 test -z "${LDCXX+set}" || LD=$LDCXX
11793 for cc_temp in $compiler""; do
11795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11804 # We don't want -fno-exception wen compiling C++ code, so set the
11805 # no_builtin_flag separately
11806 if test "$GXX" = yes; then
11807 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11809 lt_prog_compiler_no_builtin_flag_CXX=
11812 if test "$GXX" = yes; then
11813 # Set up default GNU C++ configuration
11816 # Check whether --with-gnu-ld was given.
11817 if test "${with_gnu_ld+set}" = set; then
11818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11824 if test "$GCC" = yes; then
11825 # Check if gcc -print-prog-name=ld gives a path.
11826 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11827 $as_echo_n "checking for ld used by $CC... " >&6; }
11830 # gcc leaves a trailing carriage return which upsets mingw
11831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11836 # Accept absolute paths.
11838 re_direlt='/[^/][^/]*/\.\./'
11839 # Canonicalize the pathname of ld
11840 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11841 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11842 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11844 test -z "$LD" && LD="$ac_prog"
11847 # If it fails, then pretend we aren't using GCC.
11851 # If it is relative, then search for the first ld in PATH.
11852 with_gnu_ld=unknown
11855 elif test "$with_gnu_ld" = yes; then
11856 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11857 $as_echo_n "checking for GNU ld... " >&6; }
11859 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11860 $as_echo_n "checking for non-GNU ld... " >&6; }
11862 if test "${lt_cv_path_LD+set}" = set; then
11863 $as_echo_n "(cached) " >&6
11865 if test -z "$LD"; then
11866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11867 for ac_dir in $PATH; do
11869 test -z "$ac_dir" && ac_dir=.
11870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11871 lt_cv_path_LD="$ac_dir/$ac_prog"
11872 # Check to see if the program is GNU ld. I'd rather use --version,
11873 # but apparently some variants of GNU ld only accept -v.
11874 # Break only if it was the GNU/non-GNU ld that we prefer.
11875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11876 *GNU* | *'with BFD'*)
11877 test "$with_gnu_ld" != no && break
11880 test "$with_gnu_ld" != yes && break
11887 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11891 LD="$lt_cv_path_LD"
11892 if test -n "$LD"; then
11893 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11894 $as_echo "$LD" >&6; }
11896 { $as_echo "$as_me:$LINENO: result: no" >&5
11897 $as_echo "no" >&6; }
11899 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11900 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11901 { (exit 1); exit 1; }; }
11902 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11904 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11905 $as_echo_n "(cached) " >&6
11907 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11908 case `$LD -v 2>&1 </dev/null` in
11909 *GNU* | *'with BFD'*)
11910 lt_cv_prog_gnu_ld=yes
11913 lt_cv_prog_gnu_ld=no
11917 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11919 with_gnu_ld=$lt_cv_prog_gnu_ld
11923 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11924 # archiving commands below assume that GNU ld is being used.
11925 if test "$with_gnu_ld" = yes; then
11926 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11927 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'
11929 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11932 # If archive_cmds runs LD, not CC, wlarc should be empty
11933 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11934 # investigate it a little bit more. (MM)
11937 # ancient GNU ld didn't support --whole-archive et. al.
11938 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11939 grep 'no-whole-archive' > /dev/null; then
11940 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11942 whole_archive_flag_spec_CXX=
11948 # A generic and very simple default shared library creation
11949 # command for GNU C++ for the case where it uses the native
11950 # linker, instead of GNU ld. If possible, this setting should
11951 # overridden to take advantage of the native linker features on
11952 # the platform it is being used on.
11953 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11956 # Commands to make compiler produce verbose output that lists
11957 # what "hidden" libraries, object files and flags are used when
11958 # linking a shared library.
11959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967 # PORTME: fill in a description of your system's C++ link characteristics
11968 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11973 # FIXME: insert proper C++ library support
11977 if test "$host_cpu" = ia64; then
11978 # On IA64, the linker does run time linking by default, so we don't
11979 # have to do anything special.
11980 aix_use_runtimelinking=no
11981 exp_sym_flag='-Bexport'
11984 aix_use_runtimelinking=no
11986 # Test if we are trying to use run time linking or normal
11987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11988 # need to do runtime linking.
11989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11990 for ld_flag in $LDFLAGS; do
11993 aix_use_runtimelinking=yes
12001 exp_sym_flag='-bexport'
12002 no_entry_flag='-bnoentry'
12005 # When large executables or shared objects are built, AIX ld can
12006 # have problems creating the table of contents. If linking a library
12007 # or program results in "error TOC overflow" add -mminimal-toc to
12008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12011 archive_cmds_CXX=''
12012 hardcode_direct_CXX=yes
12013 hardcode_libdir_separator_CXX=':'
12014 link_all_deplibs_CXX=yes
12016 if test "$GXX" = yes; then
12017 case $host_os in aix4.[012]|aix4.[012].*)
12018 # We only want to do this on AIX 4.2 and lower, the check
12019 # below for broken collect2 doesn't work under 4.3+
12020 collect2name=`${CC} -print-prog-name=collect2`
12021 if test -f "$collect2name" && \
12022 strings "$collect2name" | grep resolve_lib_name >/dev/null
12024 # We have reworked collect2
12027 # We have old collect2
12028 hardcode_direct_CXX=unsupported
12029 # It fails to find uninstalled libraries when the uninstalled
12030 # path is not listed in the libpath. Setting hardcode_minus_L
12031 # to unsupported forces relinking
12032 hardcode_minus_L_CXX=yes
12033 hardcode_libdir_flag_spec_CXX='-L$libdir'
12034 hardcode_libdir_separator_CXX=
12038 shared_flag='-shared'
12039 if test "$aix_use_runtimelinking" = yes; then
12040 shared_flag="$shared_flag "'${wl}-G'
12044 if test "$host_cpu" = ia64; then
12045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12046 # chokes on -Wl,-G. The following line is correct:
12049 if test "$aix_use_runtimelinking" = yes; then
12050 shared_flag='${wl}-G'
12052 shared_flag='${wl}-bM:SRE'
12057 # It seems that -bexpall does not export symbols beginning with
12058 # underscore (_), so it is better to generate a list of symbols to export.
12059 always_export_symbols_CXX=yes
12060 if test "$aix_use_runtimelinking" = yes; then
12061 # Warning - without using the other runtime loading flags (-brtl),
12062 # -berok will link without error, but may produce a broken library.
12063 allow_undefined_flag_CXX='-berok'
12064 # Determine the default libpath from the value encoded in an empty executable.
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_link") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_cxx_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext && {
12098 test "$cross_compiling" = yes ||
12099 $as_test_x conftest$ac_exeext
12102 lt_aix_libpath_sed='
12103 /Import File Strings/,/^$/ {
12109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12110 # Check for a 64-bit object if we didn't find anything.
12111 if test -z "$aix_libpath"; then
12112 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12115 $as_echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12121 rm -rf conftest.dSYM
12122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12123 conftest$ac_exeext conftest.$ac_ext
12124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12126 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12128 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"
12130 if test "$host_cpu" = ia64; then
12131 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12132 allow_undefined_flag_CXX="-z nodefs"
12133 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"
12135 # Determine the default libpath from the value encoded in an empty executable.
12136 cat >conftest.$ac_ext <<_ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12158 $as_echo "$ac_try_echo") >&5
12159 (eval "$ac_link") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_cxx_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext && {
12169 test "$cross_compiling" = yes ||
12170 $as_test_x conftest$ac_exeext
12173 lt_aix_libpath_sed='
12174 /Import File Strings/,/^$/ {
12180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12181 # Check for a 64-bit object if we didn't find anything.
12182 if test -z "$aix_libpath"; then
12183 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12186 $as_echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12192 rm -rf conftest.dSYM
12193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12194 conftest$ac_exeext conftest.$ac_ext
12195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12197 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12198 # Warning - without using the other run time loading flags,
12199 # -berok will link without error, but may produce a broken library.
12200 no_undefined_flag_CXX=' ${wl}-bernotok'
12201 allow_undefined_flag_CXX=' ${wl}-berok'
12202 # Exported symbols can be pulled into shared objects from archives
12203 whole_archive_flag_spec_CXX='$convenience'
12204 archive_cmds_need_lc_CXX=yes
12205 # This is similar to how AIX traditionally builds its shared libraries.
12206 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'
12212 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12213 allow_undefined_flag_CXX=unsupported
12215 # support --undefined. This deserves some investigation. FIXME
12216 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223 case $cc_basename in
12225 # FIXME: insert proper C++ library support
12231 cygwin* | mingw* | pw32*)
12232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12233 # as there is no search path for DLLs.
12234 hardcode_libdir_flag_spec_CXX='-L$libdir'
12235 allow_undefined_flag_CXX=unsupported
12236 always_export_symbols_CXX=no
12237 enable_shared_with_static_runtimes_CXX=yes
12239 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12240 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'
12241 # If the export-symbols file already is a .def file (1st line
12242 # is EXPORTS), use it as is; otherwise, prepend...
12243 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12244 cp $export_symbols $output_objdir/$soname.def;
12246 echo EXPORTS > $output_objdir/$soname.def;
12247 cat $export_symbols >> $output_objdir/$soname.def;
12249 $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'
12254 darwin* | rhapsody*)
12255 archive_cmds_need_lc_CXX=no
12256 hardcode_direct_CXX=no
12257 hardcode_automatic_CXX=yes
12258 hardcode_shlibpath_var_CXX=unsupported
12259 whole_archive_flag_spec_CXX=''
12260 link_all_deplibs_CXX=yes
12261 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12262 if test "$GXX" = yes ; then
12263 output_verbose_link_cmd='echo'
12264 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}"
12265 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12266 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}"
12267 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}"
12268 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12269 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}"
12270 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}"
12273 case $cc_basename in
12275 output_verbose_link_cmd='echo'
12276 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'
12277 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12278 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12279 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}'
12280 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}'
12290 case $cc_basename in
12292 # FIXME: insert proper C++ library support
12296 # Green Hills C++ Compiler
12297 # FIXME: insert proper C++ library support
12301 # FIXME: insert proper C++ library support
12307 # C++ shared libraries reported to be fairly broken before switch to ELF
12311 archive_cmds_need_lc_CXX=no
12313 freebsd* | dragonfly*)
12314 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12322 hardcode_libdir_separator_CXX=:
12323 export_dynamic_flag_spec_CXX='${wl}-E'
12324 hardcode_direct_CXX=yes
12325 hardcode_minus_L_CXX=yes # Not in the search PATH,
12326 # but as the default
12327 # location of the library.
12329 case $cc_basename in
12331 # FIXME: insert proper C++ library support
12335 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'
12336 # Commands to make compiler produce verbose output that lists
12337 # what "hidden" libraries, object files and flags are used when
12338 # linking a shared library.
12340 # There doesn't appear to be a way to prevent this compiler from
12341 # explicitly linking system object files so we need to strip them
12342 # from the output so that they don't get included in the library
12344 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'
12347 if test "$GXX" = yes; then
12348 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'
12350 # FIXME: insert proper C++ library support
12357 if test $with_gnu_ld = no; then
12358 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12359 hardcode_libdir_separator_CXX=:
12364 export_dynamic_flag_spec_CXX='${wl}-E'
12370 hardcode_direct_CXX=no
12371 hardcode_shlibpath_var_CXX=no
12374 hardcode_direct_CXX=yes
12375 hardcode_minus_L_CXX=yes # Not in the search PATH,
12376 # but as the default
12377 # location of the library.
12381 case $cc_basename in
12383 # FIXME: insert proper C++ library support
12389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12402 # There doesn't appear to be a way to prevent this compiler from
12403 # explicitly linking system object files so we need to strip them
12404 # from the output so that they don't get included in the library
12406 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'
12409 if test "$GXX" = yes; then
12410 if test $with_gnu_ld = no; then
12413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12419 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'
12424 # FIXME: insert proper C++ library support
12431 hardcode_direct_CXX=no
12432 hardcode_shlibpath_var_CXX=no
12433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12434 export_dynamic_flag_spec_CXX='${wl}-E'
12435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12436 # Instead, shared libraries are loaded at an image base (0x10000000 by
12437 # default) and relocated if they conflict, which is a slow very memory
12438 # consuming and fragmenting process. To avoid this, we pick a random,
12439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12441 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'
12442 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'
12445 case $cc_basename in
12448 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'
12450 # Archives containing C++ object files must be created using
12451 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12452 # necessary to make sure instantiated templates are included
12454 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12457 if test "$GXX" = yes; then
12458 if test "$with_gnu_ld" = no; then
12459 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'
12461 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'
12464 link_all_deplibs_CXX=yes
12467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12468 hardcode_libdir_separator_CXX=:
12470 linux* | k*bsd*-gnu)
12471 case $cc_basename in
12473 # Kuck and Associates, Inc. (KAI) C++ Compiler
12475 # KCC will only create a shared library if the output file
12476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12477 # to its proper name (with version) after linking.
12478 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'
12479 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'
12480 # Commands to make compiler produce verbose output that lists
12481 # what "hidden" libraries, object files and flags are used when
12482 # linking a shared library.
12484 # There doesn't appear to be a way to prevent this compiler from
12485 # explicitly linking system object files so we need to strip them
12486 # from the output so that they don't get included in the library
12488 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'
12490 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12493 # Archives containing C++ object files must be created using
12494 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12495 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12500 # version 8.0 and above of icpc choke on multiply defined symbols
12501 # if we add $predep_objects and $postdep_objects, however 7.1 and
12502 # earlier do not add the objects themselves.
12503 case `$CC -V 2>&1` in
12505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 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'
12508 *) # Version 8.0 or newer
12511 ia64*) tmp_idyn=' -i_dynamic';;
12513 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12514 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'
12517 archive_cmds_need_lc_CXX=no
12518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12520 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12523 # Portland Group C++ compiler
12524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12525 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'
12527 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12529 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'
12533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12534 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'
12536 runpath_var=LD_RUN_PATH
12537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12538 hardcode_libdir_separator_CXX=:
12540 # Commands to make compiler produce verbose output that lists
12541 # what "hidden" libraries, object files and flags are used when
12542 # linking a shared library.
12544 # There doesn't appear to be a way to prevent this compiler from
12545 # explicitly linking system object files so we need to strip them
12546 # from the output so that they don't get included in the library
12548 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'
12551 case `$CC -V 2>&1 | sed 5q` in
12554 no_undefined_flag_CXX=' -zdefs'
12555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12556 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'
12557 hardcode_libdir_flag_spec_CXX='-R$libdir'
12558 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'
12560 # Not sure whether something based on
12561 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12563 output_verbose_link_cmd='echo'
12565 # Archives containing C++ object files must be created using
12566 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12567 # necessary to make sure instantiated templates are included
12569 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12576 # FIXME: insert proper C++ library support
12580 # FIXME: insert proper C++ library support
12584 case $cc_basename in
12586 # FIXME: insert proper C++ library support
12590 # FIXME: insert proper C++ library support
12596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12597 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12599 hardcode_libdir_flag_spec_CXX='-R$libdir'
12600 hardcode_direct_CXX=yes
12601 hardcode_shlibpath_var_CXX=no
12603 # Workaround some broken pre-1.5 toolchains
12604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12607 # C++ shared libraries are fairly broken
12611 if test -f /usr/libexec/ld.so; then
12612 hardcode_direct_CXX=yes
12613 hardcode_shlibpath_var_CXX=no
12614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12617 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12618 export_dynamic_flag_spec_CXX='${wl}-E'
12619 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12621 output_verbose_link_cmd='echo'
12627 case $cc_basename in
12629 # Kuck and Associates, Inc. (KAI) C++ Compiler
12631 # KCC will only create a shared library if the output file
12632 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12633 # to its proper name (with version) after linking.
12634 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'
12636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12637 hardcode_libdir_separator_CXX=:
12639 # Archives containing C++ object files must be created using
12640 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12641 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12645 # Rational C++ 2.4.1
12646 # FIXME: insert proper C++ library support
12650 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12651 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'
12653 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12654 hardcode_libdir_separator_CXX=:
12656 # Commands to make compiler produce verbose output that lists
12657 # what "hidden" libraries, object files and flags are used when
12658 # linking a shared library.
12660 # There doesn't appear to be a way to prevent this compiler from
12661 # explicitly linking system object files so we need to strip them
12662 # from the output so that they don't get included in the library
12664 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'
12667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12669 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'
12671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12672 hardcode_libdir_separator_CXX=:
12674 # Commands to make compiler produce verbose output that lists
12675 # what "hidden" libraries, object files and flags are used when
12676 # linking a shared library.
12677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12680 # FIXME: insert proper C++ library support
12687 case $cc_basename in
12689 # Kuck and Associates, Inc. (KAI) C++ Compiler
12691 # KCC will only create a shared library if the output file
12692 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12693 # to its proper name (with version) after linking.
12694 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'
12696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12697 hardcode_libdir_separator_CXX=:
12699 # Archives containing C++ object files must be created using
12700 # the KAI C++ compiler.
12701 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12704 # Rational C++ 2.4.1
12705 # FIXME: insert proper C++ library support
12709 allow_undefined_flag_CXX=' -expect_unresolved \*'
12710 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'
12711 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12712 echo "-hidden">> $lib.exp~
12713 $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~
12716 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12717 hardcode_libdir_separator_CXX=:
12719 # Commands to make compiler produce verbose output that lists
12720 # what "hidden" libraries, object files and flags are used when
12721 # linking a shared library.
12723 # There doesn't appear to be a way to prevent this compiler from
12724 # explicitly linking system object files so we need to strip them
12725 # from the output so that they don't get included in the library
12727 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'
12730 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12731 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12732 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'
12734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12735 hardcode_libdir_separator_CXX=:
12737 # Commands to make compiler produce verbose output that lists
12738 # what "hidden" libraries, object files and flags are used when
12739 # linking a shared library.
12740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12743 # FIXME: insert proper C++ library support
12750 # FIXME: insert proper C++ library support
12754 case $cc_basename in
12757 # FIXME: insert proper C++ library support
12762 # FIXME: insert proper C++ library support
12766 # FIXME: insert proper C++ library support
12772 case $cc_basename in
12774 # Sun C++ 4.2, 5.x and Centerline C++
12775 archive_cmds_need_lc_CXX=yes
12776 no_undefined_flag_CXX=' -zdefs'
12777 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12778 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12779 $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'
12781 hardcode_libdir_flag_spec_CXX='-R$libdir'
12782 hardcode_shlibpath_var_CXX=no
12784 solaris2.[0-5] | solaris2.[0-5].*) ;;
12786 # The compiler driver will combine and reorder linker options,
12787 # but understands `-z linker_flag'.
12788 # Supported since Solaris 2.6 (maybe 2.5.1?)
12789 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12792 link_all_deplibs_CXX=yes
12794 output_verbose_link_cmd='echo'
12796 # Archives containing C++ object files must be created using
12797 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12798 # necessary to make sure instantiated templates are included
12800 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12803 # Green Hills C++ Compiler
12804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12806 # The C++ compiler must be used to create the archive.
12807 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12810 # GNU C++ compiler with Solaris linker
12811 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12812 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12813 if $CC --version | grep -v '^2\.7' > /dev/null; then
12814 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12815 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12818 # Commands to make compiler produce verbose output that lists
12819 # what "hidden" libraries, object files and flags are used when
12820 # linking a shared library.
12821 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12823 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12825 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12826 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12827 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12829 # Commands to make compiler produce verbose output that lists
12830 # what "hidden" libraries, object files and flags are used when
12831 # linking a shared library.
12832 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12835 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12837 solaris2.[0-5] | solaris2.[0-5].*) ;;
12839 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12846 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12847 no_undefined_flag_CXX='${wl}-z,text'
12848 archive_cmds_need_lc_CXX=no
12849 hardcode_shlibpath_var_CXX=no
12850 runpath_var='LD_RUN_PATH'
12852 case $cc_basename in
12854 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12855 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12858 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12859 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12863 sysv5* | sco3.2v5* | sco5v6*)
12864 # Note: We can NOT use -z defs as we might desire, because we do not
12865 # link with -lc, and that would cause any symbols used from libc to
12866 # always be unresolved, which means just about no library would
12867 # ever link correctly. If we're not using GNU ld we use -z text
12868 # though, which does catch some bad symbols but isn't as heavy-handed
12870 # For security reasons, it is highly recommended that you always
12871 # use absolute paths for naming shared libraries, and exclude the
12872 # DT_RUNPATH tag from executables and libraries. But doing so
12873 # requires that you compile everything twice, which is a pain.
12874 # So that behaviour is only enabled if SCOABSPATH is set to a
12875 # non-empty value in the environment. Most likely only useful for
12876 # creating official distributions of packages.
12877 # This is a hack until libtool officially supports absolute path
12878 # names for shared libraries.
12879 no_undefined_flag_CXX='${wl}-z,text'
12880 allow_undefined_flag_CXX='${wl}-z,nodefs'
12881 archive_cmds_need_lc_CXX=no
12882 hardcode_shlibpath_var_CXX=no
12883 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12884 hardcode_libdir_separator_CXX=':'
12885 link_all_deplibs_CXX=yes
12886 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12887 runpath_var='LD_RUN_PATH'
12889 case $cc_basename in
12891 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12892 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12901 case $cc_basename in
12903 # NonStop-UX NCC 3.20
12904 # FIXME: insert proper C++ library support
12908 # FIXME: insert proper C++ library support
12914 # FIXME: insert proper C++ library support
12918 # FIXME: insert proper C++ library support
12922 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12923 $as_echo "$ld_shlibs_CXX" >&6; }
12924 test "$ld_shlibs_CXX" = no && can_build_shared=no
12929 cat > conftest.$ac_ext <<EOF
12933 Foo (void) { a = 0; }
12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940 (eval $ac_compile) 2>&5
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; then
12944 # Parse the compiler output and extract the necessary
12945 # objects, libraries and library flags.
12947 # Sentinel used to keep track of whether or not we are before
12948 # the conftest object file.
12949 pre_test_object_deps_done=no
12951 # The `*' in the case matches for architectures that use `case' in
12952 # $output_verbose_cmd can trigger glob expansion during the loop
12953 # eval without this substitution.
12954 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12956 for p in `eval $output_verbose_link_cmd`; do
12960 # Some compilers place space between "-{L,R}" and the path.
12961 # Remove the space.
12962 if test $p = "-L" \
12963 || test $p = "-R"; then
12970 if test "$pre_test_object_deps_done" = no; then
12973 # Internal compiler library paths should come after those
12974 # provided the user. The postdeps already come after the
12975 # user supplied libs so there is no need to process them.
12976 if test -z "$compiler_lib_search_path_CXX"; then
12977 compiler_lib_search_path_CXX="${prev}${p}"
12979 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12982 # The "-l" case would never come before the object being
12983 # linked, so don't bother handling this case.
12986 if test -z "$postdeps_CXX"; then
12987 postdeps_CXX="${prev}${p}"
12989 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12995 # This assumes that the test object file only shows up
12996 # once in the compiler output.
12997 if test "$p" = "conftest.$objext"; then
12998 pre_test_object_deps_done=yes
13002 if test "$pre_test_object_deps_done" = no; then
13003 if test -z "$predep_objects_CXX"; then
13004 predep_objects_CXX="$p"
13006 predep_objects_CXX="$predep_objects_CXX $p"
13009 if test -z "$postdep_objects_CXX"; then
13010 postdep_objects_CXX="$p"
13012 postdep_objects_CXX="$postdep_objects_CXX $p"
13017 *) ;; # Ignore the rest.
13025 echo "libtool.m4: error: problem compiling CXX test program"
13028 $rm -f confest.$objext
13030 compiler_lib_search_dirs_CXX=
13031 if test -n "$compiler_lib_search_path_CXX"; then
13032 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13035 # PORTME: override above test on systems where it is broken
13038 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13039 # hack all around it, let's just trust "g++" to DTRT.
13040 predep_objects_CXX=
13041 postdep_objects_CXX=
13046 case `$CC -V 2>&1 | sed 5q` in
13050 # The more standards-conforming stlport4 library is
13051 # incompatible with the Cstd library. Avoid specifying
13052 # it if it's in CXXFLAGS. Ignore libCrun as
13053 # -library=stlport4 depends on it.
13054 case " $CXX $CXXFLAGS " in
13055 *" -library=stlport4 "*)
13056 solaris_use_stlport4=yes
13059 if test "$solaris_use_stlport4" != yes; then
13060 postdeps_CXX='-library=Cstd -library=Crun'
13067 case $cc_basename in
13069 # The more standards-conforming stlport4 library is
13070 # incompatible with the Cstd library. Avoid specifying
13071 # it if it's in CXXFLAGS. Ignore libCrun as
13072 # -library=stlport4 depends on it.
13073 case " $CXX $CXXFLAGS " in
13074 *" -library=stlport4 "*)
13075 solaris_use_stlport4=yes
13079 # Adding this requires a known-good setup of shared libraries for
13080 # Sun compiler versions before 5.6, else PIC objects from an old
13081 # archive will be linked into the output, leading to subtle bugs.
13082 if test "$solaris_use_stlport4" != yes; then
13083 postdeps_CXX='-library=Cstd -library=Crun'
13090 case " $postdeps_CXX " in
13091 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13094 lt_prog_compiler_wl_CXX=
13095 lt_prog_compiler_pic_CXX=
13096 lt_prog_compiler_static_CXX=
13098 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13099 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13101 # C++ specific cases for pic, static, wl, etc.
13102 if test "$GXX" = yes; then
13103 lt_prog_compiler_wl_CXX='-Wl,'
13104 lt_prog_compiler_static_CXX='-static'
13108 # All AIX code is PIC.
13109 if test "$host_cpu" = ia64; then
13110 # AIX 5 now supports IA64 processor
13111 lt_prog_compiler_static_CXX='-Bstatic'
13115 # FIXME: we need at least 68020 code to build shared libraries, but
13116 # adding the `-m68020' flag to GCC prevents building anything better,
13118 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13121 # PIC is the default for these OSes.
13123 mingw* | cygwin* | os2* | pw32*)
13124 # This hack is so that the source file can tell whether it is being
13125 # built for inclusion in a dll (and should export symbols for example).
13126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13127 # (--disable-auto-import) libraries
13128 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13130 darwin* | rhapsody*)
13131 # PIC is the default on this platform
13132 # Common symbols not allowed in MH_DYLIB files
13133 lt_prog_compiler_pic_CXX='-fno-common'
13136 # DJGPP does not support shared libraries at all
13137 lt_prog_compiler_pic_CXX=
13140 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13141 # Instead, we relocate shared libraries at runtime.
13144 if test -d /usr/nec; then
13145 lt_prog_compiler_pic_CXX=-Kconform_pic
13149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13150 # not for PA HP-UX.
13155 lt_prog_compiler_pic_CXX='-fPIC'
13160 lt_prog_compiler_pic_CXX='-fPIC'
13166 # All AIX code is PIC.
13167 if test "$host_cpu" = ia64; then
13168 # AIX 5 now supports IA64 processor
13169 lt_prog_compiler_static_CXX='-Bstatic'
13171 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13175 case $cc_basename in
13177 # Green Hills C++ Compiler
13178 # _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"
13183 # PIC is the default on this platform
13184 # Common symbols not allowed in MH_DYLIB files
13185 case $cc_basename in
13187 lt_prog_compiler_pic_CXX='-qnocommon'
13188 lt_prog_compiler_wl_CXX='-Wl,'
13193 case $cc_basename in
13195 lt_prog_compiler_pic_CXX='-KPIC'
13198 # Green Hills C++ Compiler
13199 lt_prog_compiler_pic_CXX='-pic'
13205 freebsd* | dragonfly*)
13206 # FreeBSD uses GNU C++
13208 hpux9* | hpux10* | hpux11*)
13209 case $cc_basename in
13211 lt_prog_compiler_wl_CXX='-Wl,'
13212 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13213 if test "$host_cpu" != ia64; then
13214 lt_prog_compiler_pic_CXX='+Z'
13218 lt_prog_compiler_wl_CXX='-Wl,'
13219 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13225 lt_prog_compiler_pic_CXX='+Z'
13234 # This is c89, which is MS Visual C++ (no shared libs)
13235 # Anyone wants to do a port?
13237 irix5* | irix6* | nonstopux*)
13238 case $cc_basename in
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_static_CXX='-non_shared'
13242 # CC pic flag -KPIC is the default.
13248 linux* | k*bsd*-gnu)
13249 case $cc_basename in
13252 lt_prog_compiler_wl_CXX='--backend -Wl,'
13253 lt_prog_compiler_pic_CXX='-fPIC'
13257 lt_prog_compiler_wl_CXX='-Wl,'
13258 lt_prog_compiler_pic_CXX='-KPIC'
13259 lt_prog_compiler_static_CXX='-static'
13262 # Portland Group C++ compiler.
13263 lt_prog_compiler_wl_CXX='-Wl,'
13264 lt_prog_compiler_pic_CXX='-fpic'
13265 lt_prog_compiler_static_CXX='-Bstatic'
13269 # Make sure the PIC flag is empty. It appears that all Alpha
13270 # Linux and Compaq Tru64 Unix objects are PIC.
13271 lt_prog_compiler_pic_CXX=
13272 lt_prog_compiler_static_CXX='-non_shared'
13275 case `$CC -V 2>&1 | sed 5q` in
13278 lt_prog_compiler_pic_CXX='-KPIC'
13279 lt_prog_compiler_static_CXX='-Bstatic'
13280 lt_prog_compiler_wl_CXX='-Qoption ld '
13291 case $cc_basename in
13293 lt_prog_compiler_pic_CXX='-W c,exportall'
13301 osf3* | osf4* | osf5*)
13302 case $cc_basename in
13304 lt_prog_compiler_wl_CXX='--backend -Wl,'
13307 # Rational C++ 2.4.1
13308 lt_prog_compiler_pic_CXX='-pic'
13311 # Digital/Compaq C++
13312 lt_prog_compiler_wl_CXX='-Wl,'
13313 # Make sure the PIC flag is empty. It appears that all Alpha
13314 # Linux and Compaq Tru64 Unix objects are PIC.
13315 lt_prog_compiler_pic_CXX=
13316 lt_prog_compiler_static_CXX='-non_shared'
13325 case $cc_basename in
13327 # Sun C++ 4.2, 5.x and Centerline C++
13328 lt_prog_compiler_pic_CXX='-KPIC'
13329 lt_prog_compiler_static_CXX='-Bstatic'
13330 lt_prog_compiler_wl_CXX='-Qoption ld '
13333 # Green Hills C++ Compiler
13334 lt_prog_compiler_pic_CXX='-PIC'
13341 case $cc_basename in
13344 lt_prog_compiler_pic_CXX='-pic'
13345 lt_prog_compiler_static_CXX='-Bstatic'
13349 lt_prog_compiler_pic_CXX='-pic'
13356 case $cc_basename in
13358 # NonStop-UX NCC 3.20
13359 lt_prog_compiler_pic_CXX='-KPIC'
13365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13366 case $cc_basename in
13368 lt_prog_compiler_wl_CXX='-Wl,'
13369 lt_prog_compiler_pic_CXX='-KPIC'
13370 lt_prog_compiler_static_CXX='-Bstatic'
13377 lt_prog_compiler_can_build_shared_CXX=no
13382 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13383 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13386 # Check to make sure the PIC flag actually works.
13388 if test -n "$lt_prog_compiler_pic_CXX"; then
13390 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13391 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13392 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13393 $as_echo_n "(cached) " >&6
13395 lt_cv_prog_compiler_pic_works_CXX=no
13396 ac_outfile=conftest.$ac_objext
13397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13398 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13399 # Insert the option either (1) after the last *FLAGS variable, or
13400 # (2) before a word containing "conftest.", or (3) at the end.
13401 # Note that $ac_compile itself does not contain backslashes and begins
13402 # with a dollar sign (not a hyphen), so the echo should work correctly.
13403 # The option is referenced via a variable to avoid confusing sed.
13404 lt_compile=`echo "$ac_compile" | $SED \
13405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13407 -e 's:$: $lt_compiler_flag:'`
13408 (eval echo "\"\$as_me:13408: $lt_compile\"" >&5)
13409 (eval "$lt_compile" 2>conftest.err)
13411 cat conftest.err >&5
13412 echo "$as_me:13412: \$? = $ac_status" >&5
13413 if (exit $ac_status) && test -s "$ac_outfile"; then
13414 # The compiler can only warn and ignore the option if not recognized
13415 # So say no if there are warnings other than the usual output.
13416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13419 lt_cv_prog_compiler_pic_works_CXX=yes
13425 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13426 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13428 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13429 case $lt_prog_compiler_pic_CXX in
13431 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13434 lt_prog_compiler_pic_CXX=
13435 lt_prog_compiler_can_build_shared_CXX=no
13440 # For platforms which do not support PIC, -DPIC is meaningless:
13442 lt_prog_compiler_pic_CXX=
13445 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13450 # Check to make sure the static flag actually works.
13452 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13453 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13454 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13455 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13456 $as_echo_n "(cached) " >&6
13458 lt_cv_prog_compiler_static_works_CXX=no
13459 save_LDFLAGS="$LDFLAGS"
13460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13461 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13463 # The linker can only warn and ignore the option if not recognized
13464 # So say no if there are warnings
13465 if test -s conftest.err; then
13466 # Append any errors to the config.log.
13467 cat conftest.err 1>&5
13468 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13470 if diff conftest.exp conftest.er2 >/dev/null; then
13471 lt_cv_prog_compiler_static_works_CXX=yes
13474 lt_cv_prog_compiler_static_works_CXX=yes
13478 LDFLAGS="$save_LDFLAGS"
13481 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13482 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13484 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13487 lt_prog_compiler_static_CXX=
13491 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13492 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13493 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13494 $as_echo_n "(cached) " >&6
13496 lt_cv_prog_compiler_c_o_CXX=no
13497 $rm -r conftest 2>/dev/null
13501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503 lt_compiler_flag="-o out/conftest2.$ac_objext"
13504 # Insert the option either (1) after the last *FLAGS variable, or
13505 # (2) before a word containing "conftest.", or (3) at the end.
13506 # Note that $ac_compile itself does not contain backslashes and begins
13507 # with a dollar sign (not a hyphen), so the echo should work correctly.
13508 lt_compile=`echo "$ac_compile" | $SED \
13509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13511 -e 's:$: $lt_compiler_flag:'`
13512 (eval echo "\"\$as_me:13512: $lt_compile\"" >&5)
13513 (eval "$lt_compile" 2>out/conftest.err)
13515 cat out/conftest.err >&5
13516 echo "$as_me:13516: \$? = $ac_status" >&5
13517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13519 # The compiler can only warn and ignore the option if not recognized
13520 # So say no if there are warnings
13521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13524 lt_cv_prog_compiler_c_o_CXX=yes
13529 # SGI C++ compiler will create directory out/ii_files/ for
13530 # template instantiation
13531 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13532 $rm out/* && rmdir out
13538 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13539 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13542 hard_links="nottested"
13543 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13544 # do not overwrite the value of need_locks provided by the user
13545 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13546 $as_echo_n "checking if we can lock with hard links... " >&6; }
13549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13551 ln conftest.a conftest.b 2>&5 || hard_links=no
13552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13553 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13554 $as_echo "$hard_links" >&6; }
13555 if test "$hard_links" = no; then
13556 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13557 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13564 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13565 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13567 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13570 # If we're using GNU nm, then we don't want the "-C" option.
13571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13572 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13573 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'
13575 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'
13579 export_symbols_cmds_CXX="$ltdll_cmds"
13582 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'
13585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13588 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13590 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13591 $as_echo "$ld_shlibs_CXX" >&6; }
13592 test "$ld_shlibs_CXX" = no && can_build_shared=no
13595 # Do we need to explicitly link libc?
13597 case "x$archive_cmds_need_lc_CXX" in
13599 # Assume -lc should be added
13600 archive_cmds_need_lc_CXX=yes
13602 if test "$enable_shared" = yes && test "$GCC" = yes; then
13603 case $archive_cmds_CXX in
13605 # FIXME: we may have to deal with multi-command sequences.
13608 # Test whether the compiler implicitly links with -lc since on some
13609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13610 # to ld, don't add -lc before -lgcc.
13611 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13612 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13617 (eval $ac_compile) 2>&5
13619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } 2>conftest.err; then
13623 libobjs=conftest.$ac_objext
13625 wl=$lt_prog_compiler_wl_CXX
13626 pic_flag=$lt_prog_compiler_pic_CXX
13632 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13633 allow_undefined_flag_CXX=
13634 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13635 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }
13640 archive_cmds_need_lc_CXX=no
13642 archive_cmds_need_lc_CXX=yes
13644 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13646 cat conftest.err 1>&5
13649 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13650 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13657 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13659 library_names_spec=
13660 libname_spec='lib$name'
13664 postuninstall_cmds=
13668 shlibpath_overrides_runpath=unknown
13670 dynamic_linker="$host_os ld.so"
13671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13673 need_lib_prefix=unknown
13674 hardcode_into_libs=no
13676 # when you set need_version to no, make sure it does not cause -set_version
13677 # flags to be left without arguments
13678 need_version=unknown
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13684 shlibpath_var=LIBPATH
13686 # AIX 3 has no versioning support, so we append a major version to the name.
13687 soname_spec='${libname}${release}${shared_ext}$major'
13694 hardcode_into_libs=yes
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 supports IA64
13697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13698 shlibpath_var=LD_LIBRARY_PATH
13700 # With GCC up to 2.95.x, collect2 would create an import file
13701 # for dependence libraries. The import file would start with
13702 # the line `#! .'. This would cause the generated library to
13703 # depend on `.', always an invalid library. This was fixed in
13704 # development snapshots of GCC prior to 3.0.
13706 aix4 | aix4.[01] | aix4.[01].*)
13707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13709 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13712 can_build_shared=no
13716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13717 # soname into executable. Probably we can add versioning support to
13718 # collect2, so additional links can be useful in future.
13719 if test "$aix_use_runtimelinking" = yes; then
13720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13721 # instead of lib<name>.a to let people know that these are not
13722 # typical AIX shared libraries.
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725 # We preserve .a as extension for shared libraries through AIX4.2
13726 # and later when we are not doing run time linking.
13727 library_names_spec='${libname}${release}.a $libname.a'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13730 shlibpath_var=LIBPATH
13735 library_names_spec='$libname.ixlibrary $libname.a'
13736 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13737 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'
13741 library_names_spec='${libname}${shared_ext}'
13742 dynamic_linker="$host_os ld.so"
13743 shlibpath_var=LIBRARY_PATH
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13755 # the default ld.so.conf also contains /usr/contrib/lib and
13756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13757 # libtool to hard-code these into programs
13760 cygwin* | mingw* | pw32*)
13761 version_type=windows
13766 case $GCC,$host_os in
13767 yes,cygwin* | yes,mingw* | yes,pw32*)
13768 library_names_spec='$libname.dll.a'
13769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13770 postinstall_cmds='base_file=`basename \${file}`~
13771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13772 dldir=$destdir/`dirname \$dlpath`~
13773 test -d \$dldir || mkdir -p \$dldir~
13774 $install_prog $dir/$dlname \$dldir/$dlname~
13775 chmod a+x \$dldir/$dlname'
13776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13777 dlpath=$dir/\$dldll~
13779 shlibpath_overrides_runpath=yes
13783 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13784 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13785 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13788 # MinGW DLLs use traditional 'lib' prefix
13789 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13791 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13792 # It is most probably a Windows format PATH printed by
13793 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13794 # path with ; separators, and with drive letters. We can handle the
13795 # drive letters (cygwin fileutils understands them), so leave them,
13796 # especially as we might pass files found there to a mingw objdump,
13797 # which wouldn't understand a cygwinified path. Ahh.
13798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13804 # pw32 DLLs use 'pw' prefix rather than 'lib'
13805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13814 dynamic_linker='Win32 ld.exe'
13815 # FIXME: first we should search . and the directory the executable is in
13819 darwin* | rhapsody*)
13820 dynamic_linker="$host_os dyld"
13821 version_type=darwin
13824 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13825 soname_spec='${libname}${release}${major}$shared_ext'
13826 shlibpath_overrides_runpath=yes
13827 shlibpath_var=DYLD_LIBRARY_PATH
13828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13838 soname_spec='${libname}${release}${shared_ext}$major'
13839 shlibpath_var=LD_LIBRARY_PATH
13846 freebsd* | dragonfly*)
13847 # DragonFly does not have aout. When/if they implement a new
13848 # versioning mechanism, adjust this.
13849 if test -x /usr/bin/objformat; then
13850 objformat=`/usr/bin/objformat`
13853 freebsd[123]*) objformat=aout ;;
13854 *) objformat=elf ;;
13857 # Handle Gentoo/FreeBSD as it was Linux
13858 case $host_vendor in
13860 version_type=linux ;;
13862 version_type=freebsd-$objformat ;;
13865 case $version_type in
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13877 soname_spec='${libname}${release}${shared_ext}$major'
13882 shlibpath_var=LD_LIBRARY_PATH
13885 shlibpath_overrides_runpath=yes
13887 freebsd3.[01]* | freebsdelf3.[01]*)
13888 shlibpath_overrides_runpath=yes
13889 hardcode_into_libs=yes
13891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13893 shlibpath_overrides_runpath=no
13894 hardcode_into_libs=yes
13896 *) # from 4.6 on, and DragonFly
13897 shlibpath_overrides_runpath=yes
13898 hardcode_into_libs=yes
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 hardcode_into_libs=yes
13913 hpux9* | hpux10* | hpux11*)
13914 # Give a soname corresponding to the major version so that dld.sl refuses to
13915 # link against other versions.
13922 hardcode_into_libs=yes
13923 dynamic_linker="$host_os dld.so"
13924 shlibpath_var=LD_LIBRARY_PATH
13925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927 soname_spec='${libname}${release}${shared_ext}$major'
13928 if test "X$HPUX_IA64_MODE" = X32; then
13929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13937 hardcode_into_libs=yes
13938 dynamic_linker="$host_os dld.sl"
13939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13948 dynamic_linker="$host_os dld.sl"
13949 shlibpath_var=SHLIB_PATH
13950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13956 postinstall_cmds='chmod 555 $lib'
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 shlibpath_overrides_runpath=no
13968 hardcode_into_libs=yes
13971 irix5* | irix6* | nonstopux*)
13973 nonstopux*) version_type=nonstopux ;;
13975 if test "$lt_cv_prog_gnu_ld" = yes; then
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13986 irix5* | nonstopux*)
13987 libsuff= shlibsuff=
13990 case $LD in # libtool.m4 will add one of these switches to LD
13991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13992 libsuff= shlibsuff= libmagic=32-bit;;
13993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13994 libsuff=32 shlibsuff=N32 libmagic=N32;;
13995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13997 *) libsuff= shlibsuff= libmagic=never-match;;
14001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14002 shlibpath_overrides_runpath=no
14003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14005 hardcode_into_libs=yes
14008 # No shared lib support for Linux oldld, aout, or coff.
14009 linux*oldld* | linux*aout* | linux*coff*)
14013 # This must be Linux ELF.
14014 linux* | k*bsd*-gnu)
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 shlibpath_overrides_runpath=no
14023 # This implies no fast_install, which is unacceptable.
14024 # Some rework will be needed to allow for fast_install
14025 # before this can be enabled.
14026 hardcode_into_libs=yes
14028 # Append ld.so.conf contents to the search path
14029 if test -f /etc/ld.so.conf; then
14030 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' ' '`
14031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14034 # We used to test for /lib/ld.so.1 and disable shared libraries on
14035 # powerpc, because MkLinux only supported shared libraries with the
14036 # GNU dynamic linker. Since this was broken with cross compilers,
14037 # most powerpc-linux boxes support dynamic linking these days and
14038 # people can always --disable-shared, the test was removed, and we
14039 # assume the GNU/Linux dynamic linker is in use.
14040 dynamic_linker='GNU/Linux ld.so'
14047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14050 dynamic_linker='NetBSD (a.out) ld.so'
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 dynamic_linker='NetBSD ld.elf_so'
14056 shlibpath_var=LD_LIBRARY_PATH
14057 shlibpath_overrides_runpath=yes
14058 hardcode_into_libs=yes
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14080 sys_lib_dlsearch_path_spec="/usr/lib"
14082 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14084 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14085 *) need_version=no ;;
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14092 openbsd2.[89] | openbsd2.[89].*)
14093 shlibpath_overrides_runpath=no
14096 shlibpath_overrides_runpath=yes
14100 shlibpath_overrides_runpath=yes
14105 libname_spec='$name'
14108 library_names_spec='$libname${shared_ext} $libname.a'
14109 dynamic_linker='OS/2 ld.exe'
14110 shlibpath_var=LIBPATH
14113 osf3* | osf4* | osf5*)
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14121 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 shlibpath_overrides_runpath=yes
14136 hardcode_into_libs=yes
14137 # ldd complains unless libraries are executable
14138 postinstall_cmds='chmod +x $lib'
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14144 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14145 shlibpath_var=LD_LIBRARY_PATH
14146 shlibpath_overrides_runpath=yes
14147 if test "$with_gnu_ld" = yes; then
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 shlibpath_var=LD_LIBRARY_PATH
14158 case $host_vendor in
14160 shlibpath_overrides_runpath=no
14162 export_dynamic_flag_spec='${wl}-Blargedynsym'
14163 runpath_var=LD_RUN_PATH
14171 shlibpath_overrides_runpath=no
14172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14178 if test -d /usr/nec ;then
14180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14181 soname_spec='$libname${shared_ext}.$major'
14182 shlibpath_var=LD_LIBRARY_PATH
14186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14187 version_type=freebsd-elf
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 hardcode_into_libs=yes
14194 if test "$with_gnu_ld" = yes; then
14195 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14196 shlibpath_overrides_runpath=no
14198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14199 shlibpath_overrides_runpath=yes
14202 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14206 sys_lib_dlsearch_path_spec='/usr/lib'
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 shlibpath_var=LD_LIBRARY_PATH
14220 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14221 $as_echo "$dynamic_linker" >&6; }
14222 test "$dynamic_linker" = no && can_build_shared=no
14224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14225 $as_echo_n "(cached) " >&6
14227 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14230 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14232 $as_echo_n "(cached) " >&6
14234 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14237 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14240 if test "$GCC" = yes; then
14241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14244 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14245 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14246 hardcode_action_CXX=
14247 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14248 test -n "$runpath_var_CXX" || \
14249 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14251 # We can hardcode non-existant directories.
14252 if test "$hardcode_direct_CXX" != no &&
14253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14254 # have to relink, otherwise we might link with an installed library
14255 # when we should be linking with a yet-to-be-installed one
14256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14257 test "$hardcode_minus_L_CXX" != no; then
14258 # Linking always hardcodes the temporary library directory.
14259 hardcode_action_CXX=relink
14261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14262 hardcode_action_CXX=immediate
14265 # We cannot hardcode anything, or else we can only hardcode existing
14267 hardcode_action_CXX=unsupported
14269 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14270 $as_echo "$hardcode_action_CXX" >&6; }
14272 if test "$hardcode_action_CXX" = relink; then
14273 # Fast installation is not supported
14274 enable_fast_install=no
14275 elif test "$shlibpath_overrides_runpath" = yes ||
14276 test "$enable_shared" = no; then
14277 # Fast installation is not necessary
14278 enable_fast_install=needless
14282 # The else clause should only fire when bootstrapping the
14283 # libtool distribution, otherwise you forgot to ship ltmain.sh
14284 # with your package, and you will get complaints that there are
14285 # no rules to generate ltmain.sh.
14286 if test -f "$ltmain"; then
14287 # See if we are running on zsh, and set the options which allow our commands through
14288 # without removal of \ escapes.
14289 if test -n "${ZSH_VERSION+set}" ; then
14290 setopt NO_GLOB_SUBST
14292 # Now quote all the things that may contain metacharacters while being
14293 # careful not to overquote the AC_SUBSTed values. We take copies of the
14294 # variables and quote the copies for generation of the libtool script.
14295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14299 deplibs_check_method reload_flag reload_cmds need_locks \
14300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14301 lt_cv_sys_global_symbol_to_c_name_address \
14302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14303 old_postinstall_cmds old_postuninstall_cmds \
14307 lt_prog_compiler_wl_CXX \
14308 lt_prog_compiler_pic_CXX \
14309 lt_prog_compiler_static_CXX \
14310 lt_prog_compiler_no_builtin_flag_CXX \
14311 export_dynamic_flag_spec_CXX \
14312 thread_safe_flag_spec_CXX \
14313 whole_archive_flag_spec_CXX \
14314 enable_shared_with_static_runtimes_CXX \
14315 old_archive_cmds_CXX \
14316 old_archive_from_new_cmds_CXX \
14317 predep_objects_CXX \
14318 postdep_objects_CXX \
14321 compiler_lib_search_path_CXX \
14322 compiler_lib_search_dirs_CXX \
14324 archive_expsym_cmds_CXX \
14325 postinstall_cmds_CXX \
14326 postuninstall_cmds_CXX \
14327 old_archive_from_expsyms_cmds_CXX \
14328 allow_undefined_flag_CXX \
14329 no_undefined_flag_CXX \
14330 export_symbols_cmds_CXX \
14331 hardcode_libdir_flag_spec_CXX \
14332 hardcode_libdir_flag_spec_ld_CXX \
14333 hardcode_libdir_separator_CXX \
14334 hardcode_automatic_CXX \
14336 module_expsym_cmds_CXX \
14337 lt_cv_prog_compiler_c_o_CXX \
14338 fix_srcfile_path_CXX \
14339 exclude_expsyms_CXX \
14340 include_expsyms_CXX; do
14343 old_archive_cmds_CXX | \
14344 old_archive_from_new_cmds_CXX | \
14345 archive_cmds_CXX | \
14346 archive_expsym_cmds_CXX | \
14347 module_cmds_CXX | \
14348 module_expsym_cmds_CXX | \
14349 old_archive_from_expsyms_cmds_CXX | \
14350 export_symbols_cmds_CXX | \
14351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14352 postinstall_cmds | postuninstall_cmds | \
14353 old_postinstall_cmds | old_postuninstall_cmds | \
14354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14355 # Double-quote double-evaled strings.
14356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14365 *'\$0 --fallback-echo"')
14366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14372 cat <<__EOF__ >> "$cfgfile"
14373 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14377 # Shell to use when invoking shell scripts.
14380 # Whether or not to build shared libraries.
14381 build_libtool_libs=$enable_shared
14383 # Whether or not to build static libraries.
14384 build_old_libs=$enable_static
14386 # Whether or not to add -lc for building shared libraries.
14387 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14389 # Whether or not to disallow shared libs when runtime libs are static
14390 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14392 # Whether or not to optimize for fast installation.
14393 fast_install=$enable_fast_install
14396 host_alias=$host_alias
14400 # The build system.
14401 build_alias=$build_alias
14405 # An echo program that does not interpret backslashes.
14410 AR_FLAGS=$lt_AR_FLAGS
14415 # LTCC compiler flags.
14416 LTCFLAGS=$lt_LTCFLAGS
14418 # A language-specific compiler.
14419 CC=$lt_compiler_CXX
14421 # Is the compiler the GNU C compiler?
14427 # The linker used to build libraries.
14430 # Whether we need hard or soft links.
14433 # A BSD-compatible nm program.
14436 # A symbol stripping program
14439 # Used to examine libraries when file_magic_cmd begins "file"
14440 MAGIC_CMD=$MAGIC_CMD
14442 # Used on cygwin: DLL creation program.
14445 # Used on cygwin: object dumper.
14448 # Used on cygwin: assembler.
14451 # The name of the directory that contains temporary libtool files.
14454 # How to create reloadable object files.
14455 reload_flag=$lt_reload_flag
14456 reload_cmds=$lt_reload_cmds
14458 # How to pass a linker flag through the compiler.
14459 wl=$lt_lt_prog_compiler_wl_CXX
14461 # Object file suffix (normally "o").
14462 objext="$ac_objext"
14464 # Old archive suffix (normally "a").
14467 # Shared library suffix (normally ".so").
14468 shrext_cmds='$shrext_cmds'
14470 # Executable file suffix (normally "").
14473 # Additional compiler flags for building library objects.
14474 pic_flag=$lt_lt_prog_compiler_pic_CXX
14477 # What is the maximum length of a command?
14478 max_cmd_len=$lt_cv_sys_max_cmd_len
14480 # Does compiler simultaneously support -c and -o options?
14481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14483 # Must we lock files when doing compilation?
14484 need_locks=$lt_need_locks
14486 # Do we need the lib prefix for modules?
14487 need_lib_prefix=$need_lib_prefix
14489 # Do we need a version for libraries?
14490 need_version=$need_version
14492 # Whether dlopen is supported.
14493 dlopen_support=$enable_dlopen
14495 # Whether dlopen of programs is supported.
14496 dlopen_self=$enable_dlopen_self
14498 # Whether dlopen of statically linked programs is supported.
14499 dlopen_self_static=$enable_dlopen_self_static
14501 # Compiler flag to prevent dynamic linking.
14502 link_static_flag=$lt_lt_prog_compiler_static_CXX
14504 # Compiler flag to turn off builtin functions.
14505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14507 # Compiler flag to allow reflexive dlopens.
14508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14510 # Compiler flag to generate shared objects directly from archives.
14511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14513 # Compiler flag to generate thread-safe objects.
14514 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14516 # Library versioning type.
14517 version_type=$version_type
14519 # Format of library name prefix.
14520 libname_spec=$lt_libname_spec
14522 # List of archive names. First name is the real one, the rest are links.
14523 # The last name is the one that the linker finds with -lNAME.
14524 library_names_spec=$lt_library_names_spec
14526 # The coded name of the library, if different from the real name.
14527 soname_spec=$lt_soname_spec
14529 # Commands used to build and install an old-style archive.
14531 old_archive_cmds=$lt_old_archive_cmds_CXX
14532 old_postinstall_cmds=$lt_old_postinstall_cmds
14533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14535 # Create an old-style archive from a shared archive.
14536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14538 # Create a temporary old-style archive to link instead of a shared archive.
14539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14541 # Commands used to build and install a shared archive.
14542 archive_cmds=$lt_archive_cmds_CXX
14543 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14544 postinstall_cmds=$lt_postinstall_cmds
14545 postuninstall_cmds=$lt_postuninstall_cmds
14547 # Commands used to build a loadable module (assumed same as above if empty)
14548 module_cmds=$lt_module_cmds_CXX
14549 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14551 # Commands to strip libraries.
14552 old_striplib=$lt_old_striplib
14553 striplib=$lt_striplib
14555 # Dependencies to place before the objects being linked to create a
14557 predep_objects=$lt_predep_objects_CXX
14559 # Dependencies to place after the objects being linked to create a
14561 postdep_objects=$lt_postdep_objects_CXX
14563 # Dependencies to place before the objects being linked to create a
14565 predeps=$lt_predeps_CXX
14567 # Dependencies to place after the objects being linked to create a
14569 postdeps=$lt_postdeps_CXX
14571 # The directories searched by this compiler when creating a shared
14573 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14575 # The library search path used internally by the compiler when linking
14576 # a shared library.
14577 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14579 # Method to check whether dependent libraries are shared objects.
14580 deplibs_check_method=$lt_deplibs_check_method
14582 # Command to use when deplibs_check_method == file_magic.
14583 file_magic_cmd=$lt_file_magic_cmd
14585 # Flag that allows shared libraries with undefined symbols to be built.
14586 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14588 # Flag that forces no undefined symbols.
14589 no_undefined_flag=$lt_no_undefined_flag_CXX
14591 # Commands used to finish a libtool library installation in a directory.
14592 finish_cmds=$lt_finish_cmds
14594 # Same as above, but a single script fragment to be evaled but not shown.
14595 finish_eval=$lt_finish_eval
14597 # Take the output of nm and produce a listing of raw symbols and C names.
14598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14600 # Transform the output of nm in a proper C declaration
14601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14603 # Transform the output of nm in a C name address pair
14604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14606 # This is the shared library runtime path variable.
14607 runpath_var=$runpath_var
14609 # This is the shared library path variable.
14610 shlibpath_var=$shlibpath_var
14612 # Is shlibpath searched before the hard-coded library search path?
14613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14615 # How to hardcode a shared library path into an executable.
14616 hardcode_action=$hardcode_action_CXX
14618 # Whether we should hardcode library paths into libraries.
14619 hardcode_into_libs=$hardcode_into_libs
14621 # Flag to hardcode \$libdir into a binary during linking.
14622 # This must work even if \$libdir does not exist.
14623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14625 # If ld is used when linking, flag to hardcode \$libdir into
14626 # a binary during linking. This must work even if \$libdir does
14628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14630 # Whether we need a single -rpath flag with a separated argument.
14631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14634 # resulting binary.
14635 hardcode_direct=$hardcode_direct_CXX
14637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14638 # resulting binary.
14639 hardcode_minus_L=$hardcode_minus_L_CXX
14641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14642 # the resulting binary.
14643 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14645 # Set to yes if building a shared library automatically hardcodes DIR into the library
14646 # and all subsequent libraries and executables linked against it.
14647 hardcode_automatic=$hardcode_automatic_CXX
14649 # Variables whose values should be saved in libtool wrapper scripts and
14650 # restored at relink time.
14651 variables_saved_for_relink="$variables_saved_for_relink"
14653 # Whether libtool must link a program against all its dependency libraries.
14654 link_all_deplibs=$link_all_deplibs_CXX
14656 # Compile-time system search path for libraries
14657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14659 # Run-time system search path for libraries
14660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14662 # Fix the shell variable \$srcfile for the compiler.
14663 fix_srcfile_path=$lt_fix_srcfile_path
14665 # Set to yes if exported symbols are required.
14666 always_export_symbols=$always_export_symbols_CXX
14668 # The commands to list exported symbols.
14669 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14671 # The commands to extract the exported symbol list from a shared archive.
14672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14674 # Symbols that should not be listed in the preloaded symbols.
14675 exclude_expsyms=$lt_exclude_expsyms_CXX
14677 # Symbols that must always be exported.
14678 include_expsyms=$lt_include_expsyms_CXX
14680 # ### END LIBTOOL TAG CONFIG: $tagname
14686 # If there is no Makefile yet, we rely on a make rule to execute
14687 # `config.status --recheck' to rerun these tests and create the
14688 # libtool script then.
14689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14690 if test -f "$ltmain_in"; then
14691 test -f Makefile && make "$ltmain"
14697 ac_cpp='$CPP $CPPFLAGS'
14698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14706 with_gnu_ldcxx=$with_gnu_ld
14707 with_gnu_ld=$lt_save_with_gnu_ld
14708 lt_cv_path_LDCXX=$lt_cv_path_LD
14709 lt_cv_path_LD=$lt_save_path_LD
14710 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14711 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14719 if test -n "$F77" && test "X$F77" != "Xno"; then
14722 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14723 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14724 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14727 archive_cmds_need_lc_F77=no
14728 allow_undefined_flag_F77=
14729 always_export_symbols_F77=no
14730 archive_expsym_cmds_F77=
14731 export_dynamic_flag_spec_F77=
14732 hardcode_direct_F77=no
14733 hardcode_libdir_flag_spec_F77=
14734 hardcode_libdir_flag_spec_ld_F77=
14735 hardcode_libdir_separator_F77=
14736 hardcode_minus_L_F77=no
14737 hardcode_automatic_F77=no
14739 module_expsym_cmds_F77=
14740 link_all_deplibs_F77=unknown
14741 old_archive_cmds_F77=$old_archive_cmds
14742 no_undefined_flag_F77=
14743 whole_archive_flag_spec_F77=
14744 enable_shared_with_static_runtimes_F77=no
14746 # Source file extension for f77 test sources.
14749 # Object file extension for compiled f77 test sources.
14753 # Code to be used in simple compile tests
14754 lt_simple_compile_test_code="\
14760 # Code to be used in simple link tests
14761 lt_simple_link_test_code="\
14766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14768 # If no C compiler was specified, use CC.
14771 # If no C compiler flags were specified, use CFLAGS.
14772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14774 # Allow CC to be a program name with arguments.
14778 # save warnings/boilerplate of simple test code
14779 ac_outfile=conftest.$ac_objext
14780 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14781 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14782 _lt_compiler_boilerplate=`cat conftest.err`
14785 ac_outfile=conftest.$ac_objext
14786 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14787 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14788 _lt_linker_boilerplate=`cat conftest.err`
14792 # Allow CC to be a program name with arguments.
14797 for cc_temp in $compiler""; do
14799 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14800 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14805 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14808 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14809 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14810 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14811 $as_echo "$can_build_shared" >&6; }
14813 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14814 $as_echo_n "checking whether to build shared libraries... " >&6; }
14815 test "$can_build_shared" = "no" && enable_shared=no
14817 # On AIX, shared libraries and static libraries use the same namespace, and
14818 # are all built from PIC.
14821 test "$enable_shared" = yes && enable_static=no
14822 if test -n "$RANLIB"; then
14823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14824 postinstall_cmds='$RANLIB $lib'
14828 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14829 test "$enable_shared" = yes && enable_static=no
14833 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14834 $as_echo "$enable_shared" >&6; }
14836 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14837 $as_echo_n "checking whether to build static libraries... " >&6; }
14838 # Make sure either enable_shared or enable_static is yes.
14839 test "$enable_shared" = yes || enable_static=yes
14840 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14841 $as_echo "$enable_static" >&6; }
14846 lt_prog_compiler_wl_F77=
14847 lt_prog_compiler_pic_F77=
14848 lt_prog_compiler_static_F77=
14850 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14851 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14853 if test "$GCC" = yes; then
14854 lt_prog_compiler_wl_F77='-Wl,'
14855 lt_prog_compiler_static_F77='-static'
14859 # All AIX code is PIC.
14860 if test "$host_cpu" = ia64; then
14861 # AIX 5 now supports IA64 processor
14862 lt_prog_compiler_static_F77='-Bstatic'
14867 # FIXME: we need at least 68020 code to build shared libraries, but
14868 # adding the `-m68020' flag to GCC prevents building anything better,
14870 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14874 # PIC is the default for these OSes.
14877 mingw* | cygwin* | pw32* | os2*)
14878 # This hack is so that the source file can tell whether it is being
14879 # built for inclusion in a dll (and should export symbols for example).
14880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14881 # (--disable-auto-import) libraries
14882 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14885 darwin* | rhapsody*)
14886 # PIC is the default on this platform
14887 # Common symbols not allowed in MH_DYLIB files
14888 lt_prog_compiler_pic_F77='-fno-common'
14892 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14893 # Instead, we relocate shared libraries at runtime.
14897 # Just because we use GCC doesn't mean we suddenly get shared libraries
14898 # on systems that don't support them.
14899 lt_prog_compiler_can_build_shared_F77=no
14904 if test -d /usr/nec; then
14905 lt_prog_compiler_pic_F77=-Kconform_pic
14910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14911 # not for PA HP-UX.
14917 lt_prog_compiler_pic_F77='-fPIC'
14923 lt_prog_compiler_pic_F77='-fPIC'
14927 # PORTME Check for flag to pass linker flags through the system compiler.
14930 lt_prog_compiler_wl_F77='-Wl,'
14931 if test "$host_cpu" = ia64; then
14932 # AIX 5 now supports IA64 processor
14933 lt_prog_compiler_static_F77='-Bstatic'
14935 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14939 # PIC is the default on this platform
14940 # Common symbols not allowed in MH_DYLIB files
14941 case $cc_basename in
14943 lt_prog_compiler_pic_F77='-qnocommon'
14944 lt_prog_compiler_wl_F77='-Wl,'
14949 mingw* | cygwin* | pw32* | os2*)
14950 # This hack is so that the source file can tell whether it is being
14951 # built for inclusion in a dll (and should export symbols for example).
14952 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14955 hpux9* | hpux10* | hpux11*)
14956 lt_prog_compiler_wl_F77='-Wl,'
14957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14958 # not for PA HP-UX.
14964 lt_prog_compiler_pic_F77='+Z'
14967 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14968 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14971 irix5* | irix6* | nonstopux*)
14972 lt_prog_compiler_wl_F77='-Wl,'
14973 # PIC (with -KPIC) is the default.
14974 lt_prog_compiler_static_F77='-non_shared'
14978 lt_prog_compiler_pic_F77='-KPIC'
14979 lt_prog_compiler_static_F77='-Bstatic'
14982 linux* | k*bsd*-gnu)
14983 case $cc_basename in
14985 lt_prog_compiler_wl_F77='-Wl,'
14986 lt_prog_compiler_pic_F77='-KPIC'
14987 lt_prog_compiler_static_F77='-static'
14989 pgcc* | pgf77* | pgf90* | pgf95*)
14990 # Portland Group compilers (*not* the Pentium gcc compiler,
14991 # which looks to be a dead project)
14992 lt_prog_compiler_wl_F77='-Wl,'
14993 lt_prog_compiler_pic_F77='-fpic'
14994 lt_prog_compiler_static_F77='-Bstatic'
14997 lt_prog_compiler_wl_F77='-Wl,'
14998 # All Alpha code is PIC.
14999 lt_prog_compiler_static_F77='-non_shared'
15002 case `$CC -V 2>&1 | sed 5q` in
15005 lt_prog_compiler_pic_F77='-KPIC'
15006 lt_prog_compiler_static_F77='-Bstatic'
15007 lt_prog_compiler_wl_F77='-Wl,'
15010 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15011 lt_prog_compiler_pic_F77='-KPIC'
15012 lt_prog_compiler_static_F77='-Bstatic'
15013 lt_prog_compiler_wl_F77=''
15020 osf3* | osf4* | osf5*)
15021 lt_prog_compiler_wl_F77='-Wl,'
15022 # All OSF/1 code is PIC.
15023 lt_prog_compiler_static_F77='-non_shared'
15027 lt_prog_compiler_static_F77='-non_shared'
15031 lt_prog_compiler_pic_F77='-KPIC'
15032 lt_prog_compiler_static_F77='-Bstatic'
15033 case $cc_basename in
15034 f77* | f90* | f95*)
15035 lt_prog_compiler_wl_F77='-Qoption ld ';;
15037 lt_prog_compiler_wl_F77='-Wl,';;
15042 lt_prog_compiler_wl_F77='-Qoption ld '
15043 lt_prog_compiler_pic_F77='-PIC'
15044 lt_prog_compiler_static_F77='-Bstatic'
15047 sysv4 | sysv4.2uw2* | sysv4.3*)
15048 lt_prog_compiler_wl_F77='-Wl,'
15049 lt_prog_compiler_pic_F77='-KPIC'
15050 lt_prog_compiler_static_F77='-Bstatic'
15054 if test -d /usr/nec ;then
15055 lt_prog_compiler_pic_F77='-Kconform_pic'
15056 lt_prog_compiler_static_F77='-Bstatic'
15060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15061 lt_prog_compiler_wl_F77='-Wl,'
15062 lt_prog_compiler_pic_F77='-KPIC'
15063 lt_prog_compiler_static_F77='-Bstatic'
15067 lt_prog_compiler_wl_F77='-Wl,'
15068 lt_prog_compiler_can_build_shared_F77=no
15072 lt_prog_compiler_pic_F77='-pic'
15073 lt_prog_compiler_static_F77='-Bstatic'
15077 lt_prog_compiler_can_build_shared_F77=no
15082 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15083 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15086 # Check to make sure the PIC flag actually works.
15088 if test -n "$lt_prog_compiler_pic_F77"; then
15090 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15091 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15092 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15093 $as_echo_n "(cached) " >&6
15095 lt_cv_prog_compiler_pic_works_F77=no
15096 ac_outfile=conftest.$ac_objext
15097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15098 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15099 # Insert the option either (1) after the last *FLAGS variable, or
15100 # (2) before a word containing "conftest.", or (3) at the end.
15101 # Note that $ac_compile itself does not contain backslashes and begins
15102 # with a dollar sign (not a hyphen), so the echo should work correctly.
15103 # The option is referenced via a variable to avoid confusing sed.
15104 lt_compile=`echo "$ac_compile" | $SED \
15105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15107 -e 's:$: $lt_compiler_flag:'`
15108 (eval echo "\"\$as_me:15108: $lt_compile\"" >&5)
15109 (eval "$lt_compile" 2>conftest.err)
15111 cat conftest.err >&5
15112 echo "$as_me:15112: \$? = $ac_status" >&5
15113 if (exit $ac_status) && test -s "$ac_outfile"; then
15114 # The compiler can only warn and ignore the option if not recognized
15115 # So say no if there are warnings other than the usual output.
15116 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15119 lt_cv_prog_compiler_pic_works_F77=yes
15125 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15126 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15128 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15129 case $lt_prog_compiler_pic_F77 in
15131 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15134 lt_prog_compiler_pic_F77=
15135 lt_prog_compiler_can_build_shared_F77=no
15140 # For platforms which do not support PIC, -DPIC is meaningless:
15142 lt_prog_compiler_pic_F77=
15145 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15150 # Check to make sure the static flag actually works.
15152 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15153 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15154 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15155 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15156 $as_echo_n "(cached) " >&6
15158 lt_cv_prog_compiler_static_works_F77=no
15159 save_LDFLAGS="$LDFLAGS"
15160 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15161 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15163 # The linker can only warn and ignore the option if not recognized
15164 # So say no if there are warnings
15165 if test -s conftest.err; then
15166 # Append any errors to the config.log.
15167 cat conftest.err 1>&5
15168 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15170 if diff conftest.exp conftest.er2 >/dev/null; then
15171 lt_cv_prog_compiler_static_works_F77=yes
15174 lt_cv_prog_compiler_static_works_F77=yes
15178 LDFLAGS="$save_LDFLAGS"
15181 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15182 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15184 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15187 lt_prog_compiler_static_F77=
15191 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15193 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15194 $as_echo_n "(cached) " >&6
15196 lt_cv_prog_compiler_c_o_F77=no
15197 $rm -r conftest 2>/dev/null
15201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15203 lt_compiler_flag="-o out/conftest2.$ac_objext"
15204 # Insert the option either (1) after the last *FLAGS variable, or
15205 # (2) before a word containing "conftest.", or (3) at the end.
15206 # Note that $ac_compile itself does not contain backslashes and begins
15207 # with a dollar sign (not a hyphen), so the echo should work correctly.
15208 lt_compile=`echo "$ac_compile" | $SED \
15209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15211 -e 's:$: $lt_compiler_flag:'`
15212 (eval echo "\"\$as_me:15212: $lt_compile\"" >&5)
15213 (eval "$lt_compile" 2>out/conftest.err)
15215 cat out/conftest.err >&5
15216 echo "$as_me:15216: \$? = $ac_status" >&5
15217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15219 # The compiler can only warn and ignore the option if not recognized
15220 # So say no if there are warnings
15221 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15224 lt_cv_prog_compiler_c_o_F77=yes
15229 # SGI C++ compiler will create directory out/ii_files/ for
15230 # template instantiation
15231 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15232 $rm out/* && rmdir out
15238 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15239 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15242 hard_links="nottested"
15243 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15244 # do not overwrite the value of need_locks provided by the user
15245 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15246 $as_echo_n "checking if we can lock with hard links... " >&6; }
15249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15251 ln conftest.a conftest.b 2>&5 || hard_links=no
15252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15253 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15254 $as_echo "$hard_links" >&6; }
15255 if test "$hard_links" = no; then
15256 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15257 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15264 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15265 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15268 allow_undefined_flag_F77=
15269 enable_shared_with_static_runtimes_F77=no
15271 archive_expsym_cmds_F77=
15272 old_archive_From_new_cmds_F77=
15273 old_archive_from_expsyms_cmds_F77=
15274 export_dynamic_flag_spec_F77=
15275 whole_archive_flag_spec_F77=
15276 thread_safe_flag_spec_F77=
15277 hardcode_libdir_flag_spec_F77=
15278 hardcode_libdir_flag_spec_ld_F77=
15279 hardcode_libdir_separator_F77=
15280 hardcode_direct_F77=no
15281 hardcode_minus_L_F77=no
15282 hardcode_shlibpath_var_F77=unsupported
15283 link_all_deplibs_F77=unknown
15284 hardcode_automatic_F77=no
15286 module_expsym_cmds_F77=
15287 always_export_symbols_F77=no
15288 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15289 # include_expsyms should be a list of space-separated symbols to be *always*
15290 # included in the symbol list
15291 include_expsyms_F77=
15292 # exclude_expsyms can be an extended regexp of symbols to exclude
15293 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15294 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15295 # as well as any symbol that contains `d'.
15296 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15297 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15298 # platforms (ab)use it in PIC code, but their linkers get confused if
15299 # the symbol is explicitly referenced. Since portable code cannot
15300 # rely on this symbol name, it's probably fine to never include it in
15301 # preloaded symbol tables.
15302 # Exclude shared library initialization/finalization symbols.
15303 extract_expsyms_cmds=
15304 # Just being paranoid about ensuring that cc_basename is set.
15305 for cc_temp in $compiler""; do
15307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15316 cygwin* | mingw* | pw32*)
15317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15318 # When not using gcc, we currently assume that we are using
15319 # Microsoft Visual C++.
15320 if test "$GCC" != yes; then
15325 # we just hope/assume this is gcc and not c89 (= MSVC++)
15334 if test "$with_gnu_ld" = yes; then
15335 # If archive_cmds runs LD, not CC, wlarc should be empty
15338 # Set some defaults for GNU ld with shared library support. These
15339 # are reset later if shared libraries are not supported. Putting them
15340 # here allows them to be overridden if necessary.
15341 runpath_var=LD_RUN_PATH
15342 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15343 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15344 # ancient GNU ld didn't support --whole-archive et. al.
15345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15346 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15348 whole_archive_flag_spec_F77=
15350 supports_anon_versioning=no
15351 case `$LD -v 2>/dev/null` in
15352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15355 *\ 2.11.*) ;; # other 2.11 versions
15356 *) supports_anon_versioning=yes ;;
15359 # See if GNU ld supports shared libraries.
15362 # On AIX/PPC, the GNU linker is very broken
15363 if test "$host_cpu" != ia64; then
15367 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15368 *** to be unable to reliably create shared libraries on AIX.
15369 *** Therefore, libtool is disabling shared libraries support. If you
15370 *** really care for shared libraries, you may want to modify your PATH
15371 *** so that a non-GNU linker is found, and then restart.
15378 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)'
15379 hardcode_libdir_flag_spec_F77='-L$libdir'
15380 hardcode_minus_L_F77=yes
15383 # that the semantics of dynamic libraries on AmigaOS, at least up
15384 # to version 4, is to share data among multiple programs linked
15385 # with the same dynamic library. Since this doesn't match the
15386 # behavior of shared libraries on other platforms, we can't use
15392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15393 allow_undefined_flag_F77=unsupported
15395 # support --undefined. This deserves some investigation. FIXME
15396 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15402 cygwin* | mingw* | pw32*)
15403 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15404 # as there is no search path for DLLs.
15405 hardcode_libdir_flag_spec_F77='-L$libdir'
15406 allow_undefined_flag_F77=unsupported
15407 always_export_symbols_F77=no
15408 enable_shared_with_static_runtimes_F77=yes
15409 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15412 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15413 # If the export-symbols file already is a .def file (1st line
15414 # is EXPORTS), use it as is; otherwise, prepend...
15415 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15416 cp $export_symbols $output_objdir/$soname.def;
15418 echo EXPORTS > $output_objdir/$soname.def;
15419 cat $export_symbols >> $output_objdir/$soname.def;
15421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15428 hardcode_direct_F77=no
15429 hardcode_shlibpath_var_F77=no
15430 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15431 export_dynamic_flag_spec_F77='${wl}-E'
15432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15433 # Instead, shared libraries are loaded at an image base (0x10000000 by
15434 # default) and relocated if they conflict, which is a slow very memory
15435 # consuming and fragmenting process. To avoid this, we pick a random,
15436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15438 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'
15439 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'
15442 gnu* | linux* | k*bsd*-gnu)
15443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15445 case $cc_basename,$host_cpu in
15446 pgcc*) # Portland Group C compiler
15447 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'
15448 tmp_addflag=' $pic_flag'
15450 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15451 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'
15452 tmp_addflag=' $pic_flag -Mnomain' ;;
15453 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15454 tmp_addflag=' -i_dynamic' ;;
15455 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15456 tmp_addflag=' -i_dynamic -nofor_main' ;;
15457 ifc* | ifort*) # Intel Fortran compiler
15458 tmp_addflag=' -nofor_main' ;;
15460 case `$CC -V 2>&1 | sed 5q` in
15461 *Sun\ C*) # Sun C 5.9
15462 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'
15463 tmp_sharedflag='-G' ;;
15464 *Sun\ F*) # Sun Fortran 8.3
15465 tmp_sharedflag='-G' ;;
15467 tmp_sharedflag='-shared' ;;
15469 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15471 if test $supports_anon_versioning = yes; then
15472 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15474 $echo "local: *; };" >> $output_objdir/$libname.ver~
15475 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15484 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15493 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15498 *** create shared libraries on Solaris systems. Therefore, libtool
15499 *** is disabling shared libraries support. We urge you to upgrade GNU
15500 *** binutils to release 2.9.1 or newer. Another option is to modify
15501 *** your PATH or compiler configuration so that the native linker is
15502 *** used, and then restart.
15505 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15514 case `$LD -v 2>&1` in
15515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15520 *** reliably create shared libraries on SCO systems. Therefore, libtool
15521 *** is disabling shared libraries support. We urge you to upgrade GNU
15522 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15523 *** your PATH or compiler configuration so that the native linker is
15524 *** used, and then restart.
15529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15530 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15541 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_direct_F77=yes
15544 hardcode_shlibpath_var_F77=no
15548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15557 if test "$ld_shlibs_F77" = no; then
15559 hardcode_libdir_flag_spec_F77=
15560 export_dynamic_flag_spec_F77=
15561 whole_archive_flag_spec_F77=
15564 # PORTME fill in a description of your system's linker (not GNU ld)
15567 allow_undefined_flag_F77=unsupported
15568 always_export_symbols_F77=yes
15569 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'
15570 # Note: this linker hardcodes the directories in LIBPATH if there
15571 # are no directories specified by -L.
15572 hardcode_minus_L_F77=yes
15573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15574 # Neither direct hardcoding nor static linking is supported with a
15576 hardcode_direct_F77=unsupported
15581 if test "$host_cpu" = ia64; then
15582 # On IA64, the linker does run time linking by default, so we don't
15583 # have to do anything special.
15584 aix_use_runtimelinking=no
15585 exp_sym_flag='-Bexport'
15588 # If we're using GNU nm, then we don't want the "-C" option.
15589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15591 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'
15593 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'
15595 aix_use_runtimelinking=no
15597 # Test if we are trying to use run time linking or normal
15598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15599 # need to do runtime linking.
15600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15601 for ld_flag in $LDFLAGS; do
15602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15603 aix_use_runtimelinking=yes
15610 exp_sym_flag='-bexport'
15611 no_entry_flag='-bnoentry'
15614 # When large executables or shared objects are built, AIX ld can
15615 # have problems creating the table of contents. If linking a library
15616 # or program results in "error TOC overflow" add -mminimal-toc to
15617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15620 archive_cmds_F77=''
15621 hardcode_direct_F77=yes
15622 hardcode_libdir_separator_F77=':'
15623 link_all_deplibs_F77=yes
15625 if test "$GCC" = yes; then
15626 case $host_os in aix4.[012]|aix4.[012].*)
15627 # We only want to do this on AIX 4.2 and lower, the check
15628 # below for broken collect2 doesn't work under 4.3+
15629 collect2name=`${CC} -print-prog-name=collect2`
15630 if test -f "$collect2name" && \
15631 strings "$collect2name" | grep resolve_lib_name >/dev/null
15633 # We have reworked collect2
15636 # We have old collect2
15637 hardcode_direct_F77=unsupported
15638 # It fails to find uninstalled libraries when the uninstalled
15639 # path is not listed in the libpath. Setting hardcode_minus_L
15640 # to unsupported forces relinking
15641 hardcode_minus_L_F77=yes
15642 hardcode_libdir_flag_spec_F77='-L$libdir'
15643 hardcode_libdir_separator_F77=
15647 shared_flag='-shared'
15648 if test "$aix_use_runtimelinking" = yes; then
15649 shared_flag="$shared_flag "'${wl}-G'
15653 if test "$host_cpu" = ia64; then
15654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15655 # chokes on -Wl,-G. The following line is correct:
15658 if test "$aix_use_runtimelinking" = yes; then
15659 shared_flag='${wl}-G'
15661 shared_flag='${wl}-bM:SRE'
15666 # It seems that -bexpall does not export symbols beginning with
15667 # underscore (_), so it is better to generate a list of symbols to export.
15668 always_export_symbols_F77=yes
15669 if test "$aix_use_runtimelinking" = yes; then
15670 # Warning - without using the other runtime loading flags (-brtl),
15671 # -berok will link without error, but may produce a broken library.
15672 allow_undefined_flag_F77='-berok'
15673 # Determine the default libpath from the value encoded in an empty executable.
15674 cat >conftest.$ac_ext <<_ACEOF
15679 rm -f conftest.$ac_objext conftest$ac_exeext
15680 if { (ac_try="$ac_link"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15686 $as_echo "$ac_try_echo") >&5
15687 (eval "$ac_link") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && {
15694 test -z "$ac_f77_werror_flag" ||
15695 test ! -s conftest.err
15696 } && test -s conftest$ac_exeext && {
15697 test "$cross_compiling" = yes ||
15698 $as_test_x conftest$ac_exeext
15701 lt_aix_libpath_sed='
15702 /Import File Strings/,/^$/ {
15708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15709 # Check for a 64-bit object if we didn't find anything.
15710 if test -z "$aix_libpath"; then
15711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15714 $as_echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15720 rm -rf conftest.dSYM
15721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15722 conftest$ac_exeext conftest.$ac_ext
15723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15725 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15726 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"
15728 if test "$host_cpu" = ia64; then
15729 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15730 allow_undefined_flag_F77="-z nodefs"
15731 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"
15733 # Determine the default libpath from the value encoded in an empty executable.
15734 cat >conftest.$ac_ext <<_ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15746 $as_echo "$ac_try_echo") >&5
15747 (eval "$ac_link") 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } && {
15754 test -z "$ac_f77_werror_flag" ||
15755 test ! -s conftest.err
15756 } && test -s conftest$ac_exeext && {
15757 test "$cross_compiling" = yes ||
15758 $as_test_x conftest$ac_exeext
15761 lt_aix_libpath_sed='
15762 /Import File Strings/,/^$/ {
15768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15769 # Check for a 64-bit object if we didn't find anything.
15770 if test -z "$aix_libpath"; then
15771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15774 $as_echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15780 rm -rf conftest.dSYM
15781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15782 conftest$ac_exeext conftest.$ac_ext
15783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15785 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15786 # Warning - without using the other run time loading flags,
15787 # -berok will link without error, but may produce a broken library.
15788 no_undefined_flag_F77=' ${wl}-bernotok'
15789 allow_undefined_flag_F77=' ${wl}-berok'
15790 # Exported symbols can be pulled into shared objects from archives
15791 whole_archive_flag_spec_F77='$convenience'
15792 archive_cmds_need_lc_F77=yes
15793 # This is similar to how AIX traditionally builds its shared libraries.
15794 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'
15800 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)'
15801 hardcode_libdir_flag_spec_F77='-L$libdir'
15802 hardcode_minus_L_F77=yes
15803 # see comment about different semantics on the GNU ld section
15808 export_dynamic_flag_spec_F77=-rdynamic
15811 cygwin* | mingw* | pw32*)
15812 # When not using gcc, we currently assume that we are using
15813 # Microsoft Visual C++.
15814 # hardcode_libdir_flag_spec is actually meaningless, as there is
15815 # no search path for DLLs.
15816 hardcode_libdir_flag_spec_F77=' '
15817 allow_undefined_flag_F77=unsupported
15818 # Tell ltmain to make .lib files, not .a files.
15820 # Tell ltmain to make .dll files, not .so files.
15822 # FIXME: Setting linknames here is a bad hack.
15823 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15824 # The linker will automatically build a .lib file if we build a DLL.
15825 old_archive_From_new_cmds_F77='true'
15826 # FIXME: Should let the user specify the lib program.
15827 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15828 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15829 enable_shared_with_static_runtimes_F77=yes
15832 darwin* | rhapsody*)
15834 rhapsody* | darwin1.[012])
15835 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15838 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15839 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15841 case ${MACOSX_DEPLOYMENT_TARGET} in
15843 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15846 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15852 archive_cmds_need_lc_F77=no
15853 hardcode_direct_F77=no
15854 hardcode_automatic_F77=yes
15855 hardcode_shlibpath_var_F77=unsupported
15856 whole_archive_flag_spec_F77=''
15857 link_all_deplibs_F77=yes
15858 if test "$GCC" = yes ; then
15859 output_verbose_link_cmd='echo'
15860 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}"
15861 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15862 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}"
15863 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}"
15865 case $cc_basename in
15867 output_verbose_link_cmd='echo'
15868 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15869 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15871 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}'
15872 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}'
15882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15883 hardcode_libdir_flag_spec_F77='-L$libdir'
15884 hardcode_shlibpath_var_F77=no
15891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15892 # support. Future versions do this automatically, but an explicit c++rt0.o
15893 # does not break anything, and helps significantly (at the cost of a little
15896 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15897 hardcode_libdir_flag_spec_F77='-R$libdir'
15898 hardcode_direct_F77=yes
15899 hardcode_shlibpath_var_F77=no
15902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15904 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15905 hardcode_direct_F77=yes
15906 hardcode_minus_L_F77=yes
15907 hardcode_shlibpath_var_F77=no
15910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15911 freebsd* | dragonfly*)
15912 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15913 hardcode_libdir_flag_spec_F77='-R$libdir'
15914 hardcode_direct_F77=yes
15915 hardcode_shlibpath_var_F77=no
15919 if test "$GCC" = yes; then
15920 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'
15922 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'
15924 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15925 hardcode_libdir_separator_F77=:
15926 hardcode_direct_F77=yes
15928 # hardcode_minus_L: Not really in the search PATH,
15929 # but as the default location of the library.
15930 hardcode_minus_L_F77=yes
15931 export_dynamic_flag_spec_F77='${wl}-E'
15935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15936 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15940 if test "$with_gnu_ld" = no; then
15941 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15942 hardcode_libdir_separator_F77=:
15944 hardcode_direct_F77=yes
15945 export_dynamic_flag_spec_F77='${wl}-E'
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L_F77=yes
15954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15957 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15963 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15972 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15975 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15979 if test "$with_gnu_ld" = no; then
15980 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15981 hardcode_libdir_separator_F77=:
15985 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15986 hardcode_direct_F77=no
15987 hardcode_shlibpath_var_F77=no
15990 hardcode_direct_F77=yes
15991 export_dynamic_flag_spec_F77='${wl}-E'
15993 # hardcode_minus_L: Not really in the search PATH,
15994 # but as the default location of the library.
15995 hardcode_minus_L_F77=yes
16001 irix5* | irix6* | nonstopux*)
16002 if test "$GCC" = yes; then
16003 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'
16005 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'
16006 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16008 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16009 hardcode_libdir_separator_F77=:
16010 link_all_deplibs_F77=yes
16014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16015 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16017 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16019 hardcode_libdir_flag_spec_F77='-R$libdir'
16020 hardcode_direct_F77=yes
16021 hardcode_shlibpath_var_F77=no
16025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026 hardcode_direct_F77=yes
16027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16028 hardcode_libdir_separator_F77=:
16029 hardcode_shlibpath_var_F77=no
16033 if test -f /usr/libexec/ld.so; then
16034 hardcode_direct_F77=yes
16035 hardcode_shlibpath_var_F77=no
16036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16037 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16038 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16039 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16040 export_dynamic_flag_spec_F77='${wl}-E'
16043 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16045 hardcode_libdir_flag_spec_F77='-R$libdir'
16048 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16049 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16059 hardcode_libdir_flag_spec_F77='-L$libdir'
16060 hardcode_minus_L_F77=yes
16061 allow_undefined_flag_F77=unsupported
16062 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'
16063 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16067 if test "$GCC" = yes; then
16068 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16069 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'
16071 allow_undefined_flag_F77=' -expect_unresolved \*'
16072 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'
16074 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16075 hardcode_libdir_separator_F77=:
16078 osf4* | osf5*) # as osf3* with the addition of -msym flag
16079 if test "$GCC" = yes; then
16080 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16081 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'
16082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16084 allow_undefined_flag_F77=' -expect_unresolved \*'
16085 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'
16086 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~
16087 $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'
16089 # Both c and cxx compiler support -rpath directly
16090 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16092 hardcode_libdir_separator_F77=:
16096 no_undefined_flag_F77=' -z text'
16097 if test "$GCC" = yes; then
16099 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16100 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16101 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16104 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16108 hardcode_libdir_flag_spec_F77='-R$libdir'
16109 hardcode_shlibpath_var_F77=no
16111 solaris2.[0-5] | solaris2.[0-5].*) ;;
16113 # The compiler driver will combine and reorder linker options,
16114 # but understands `-z linker_flag'. GCC discards it without `$wl',
16115 # but is careful enough not to reorder.
16116 # Supported since Solaris 2.6 (maybe 2.5.1?)
16117 if test "$GCC" = yes; then
16118 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16120 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16124 link_all_deplibs_F77=yes
16128 if test "x$host_vendor" = xsequent; then
16129 # Use $CC to link under sequent, because it throws in some extra .o
16130 # files that make .init and .fini sections work.
16131 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16133 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec_F77='-L$libdir'
16136 hardcode_direct_F77=yes
16137 hardcode_minus_L_F77=yes
16138 hardcode_shlibpath_var_F77=no
16142 case $host_vendor in
16144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_direct_F77=yes # is this really true???
16148 ## LD is ld it makes a PLAMLIB
16149 ## CC just makes a GrossModule.
16150 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16151 reload_cmds_F77='$CC -r -o $output$reload_objs'
16152 hardcode_direct_F77=no
16155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16156 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16159 runpath_var='LD_RUN_PATH'
16160 hardcode_shlibpath_var_F77=no
16164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165 hardcode_shlibpath_var_F77=no
16166 export_dynamic_flag_spec_F77='-Bexport'
16170 if test -d /usr/nec; then
16171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_shlibpath_var_F77=no
16173 runpath_var=LD_RUN_PATH
16174 hardcode_runpath_var=yes
16179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16180 no_undefined_flag_F77='${wl}-z,text'
16181 archive_cmds_need_lc_F77=no
16182 hardcode_shlibpath_var_F77=no
16183 runpath_var='LD_RUN_PATH'
16185 if test "$GCC" = yes; then
16186 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16187 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16189 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 sysv5* | sco3.2v5* | sco5v6*)
16195 # Note: We can NOT use -z defs as we might desire, because we do not
16196 # link with -lc, and that would cause any symbols used from libc to
16197 # always be unresolved, which means just about no library would
16198 # ever link correctly. If we're not using GNU ld we use -z text
16199 # though, which does catch some bad symbols but isn't as heavy-handed
16201 no_undefined_flag_F77='${wl}-z,text'
16202 allow_undefined_flag_F77='${wl}-z,nodefs'
16203 archive_cmds_need_lc_F77=no
16204 hardcode_shlibpath_var_F77=no
16205 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16206 hardcode_libdir_separator_F77=':'
16207 link_all_deplibs_F77=yes
16208 export_dynamic_flag_spec_F77='${wl}-Bexport'
16209 runpath_var='LD_RUN_PATH'
16211 if test "$GCC" = yes; then
16212 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16213 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16215 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16216 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16222 hardcode_libdir_flag_spec_F77='-L$libdir'
16223 hardcode_shlibpath_var_F77=no
16232 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16233 $as_echo "$ld_shlibs_F77" >&6; }
16234 test "$ld_shlibs_F77" = no && can_build_shared=no
16237 # Do we need to explicitly link libc?
16239 case "x$archive_cmds_need_lc_F77" in
16241 # Assume -lc should be added
16242 archive_cmds_need_lc_F77=yes
16244 if test "$enable_shared" = yes && test "$GCC" = yes; then
16245 case $archive_cmds_F77 in
16247 # FIXME: we may have to deal with multi-command sequences.
16250 # Test whether the compiler implicitly links with -lc since on some
16251 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16252 # to ld, don't add -lc before -lgcc.
16253 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16254 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16259 (eval $ac_compile) 2>&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } 2>conftest.err; then
16265 libobjs=conftest.$ac_objext
16267 wl=$lt_prog_compiler_wl_F77
16268 pic_flag=$lt_prog_compiler_pic_F77
16274 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16275 allow_undefined_flag_F77=
16276 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16277 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }
16282 archive_cmds_need_lc_F77=no
16284 archive_cmds_need_lc_F77=yes
16286 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16288 cat conftest.err 1>&5
16291 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16292 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16299 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16300 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16301 library_names_spec=
16302 libname_spec='lib$name'
16306 postuninstall_cmds=
16310 shlibpath_overrides_runpath=unknown
16312 dynamic_linker="$host_os ld.so"
16313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16315 need_lib_prefix=unknown
16316 hardcode_into_libs=no
16318 # when you set need_version to no, make sure it does not cause -set_version
16319 # flags to be left without arguments
16320 need_version=unknown
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16326 shlibpath_var=LIBPATH
16328 # AIX 3 has no versioning support, so we append a major version to the name.
16329 soname_spec='${libname}${release}${shared_ext}$major'
16336 hardcode_into_libs=yes
16337 if test "$host_cpu" = ia64; then
16338 # AIX 5 supports IA64
16339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16340 shlibpath_var=LD_LIBRARY_PATH
16342 # With GCC up to 2.95.x, collect2 would create an import file
16343 # for dependence libraries. The import file would start with
16344 # the line `#! .'. This would cause the generated library to
16345 # depend on `.', always an invalid library. This was fixed in
16346 # development snapshots of GCC prior to 3.0.
16348 aix4 | aix4.[01] | aix4.[01].*)
16349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16354 can_build_shared=no
16358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16359 # soname into executable. Probably we can add versioning support to
16360 # collect2, so additional links can be useful in future.
16361 if test "$aix_use_runtimelinking" = yes; then
16362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16363 # instead of lib<name>.a to let people know that these are not
16364 # typical AIX shared libraries.
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 # We preserve .a as extension for shared libraries through AIX4.2
16368 # and later when we are not doing run time linking.
16369 library_names_spec='${libname}${release}.a $libname.a'
16370 soname_spec='${libname}${release}${shared_ext}$major'
16372 shlibpath_var=LIBPATH
16377 library_names_spec='$libname.ixlibrary $libname.a'
16378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16379 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'
16383 library_names_spec='${libname}${shared_ext}'
16384 dynamic_linker="$host_os ld.so"
16385 shlibpath_var=LIBRARY_PATH
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16397 # the default ld.so.conf also contains /usr/contrib/lib and
16398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16399 # libtool to hard-code these into programs
16402 cygwin* | mingw* | pw32*)
16403 version_type=windows
16408 case $GCC,$host_os in
16409 yes,cygwin* | yes,mingw* | yes,pw32*)
16410 library_names_spec='$libname.dll.a'
16411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16412 postinstall_cmds='base_file=`basename \${file}`~
16413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16414 dldir=$destdir/`dirname \$dlpath`~
16415 test -d \$dldir || mkdir -p \$dldir~
16416 $install_prog $dir/$dlname \$dldir/$dlname~
16417 chmod a+x \$dldir/$dlname'
16418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16419 dlpath=$dir/\$dldll~
16421 shlibpath_overrides_runpath=yes
16425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16430 # MinGW DLLs use traditional 'lib' prefix
16431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16433 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16434 # It is most probably a Windows format PATH printed by
16435 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16436 # path with ; separators, and with drive letters. We can handle the
16437 # drive letters (cygwin fileutils understands them), so leave them,
16438 # especially as we might pass files found there to a mingw objdump,
16439 # which wouldn't understand a cygwinified path. Ahh.
16440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16446 # pw32 DLLs use 'pw' prefix rather than 'lib'
16447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16456 dynamic_linker='Win32 ld.exe'
16457 # FIXME: first we should search . and the directory the executable is in
16461 darwin* | rhapsody*)
16462 dynamic_linker="$host_os dyld"
16463 version_type=darwin
16466 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16467 soname_spec='${libname}${release}${major}$shared_ext'
16468 shlibpath_overrides_runpath=yes
16469 shlibpath_var=DYLD_LIBRARY_PATH
16470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LD_LIBRARY_PATH
16488 freebsd* | dragonfly*)
16489 # DragonFly does not have aout. When/if they implement a new
16490 # versioning mechanism, adjust this.
16491 if test -x /usr/bin/objformat; then
16492 objformat=`/usr/bin/objformat`
16495 freebsd[123]*) objformat=aout ;;
16496 *) objformat=elf ;;
16499 # Handle Gentoo/FreeBSD as it was Linux
16500 case $host_vendor in
16502 version_type=linux ;;
16504 version_type=freebsd-$objformat ;;
16507 case $version_type in
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16524 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=yes
16529 freebsd3.[01]* | freebsdelf3.[01]*)
16530 shlibpath_overrides_runpath=yes
16531 hardcode_into_libs=yes
16533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16535 shlibpath_overrides_runpath=no
16536 hardcode_into_libs=yes
16538 *) # from 4.6 on, and DragonFly
16539 shlibpath_overrides_runpath=yes
16540 hardcode_into_libs=yes
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 hardcode_into_libs=yes
16555 hpux9* | hpux10* | hpux11*)
16556 # Give a soname corresponding to the major version so that dld.sl refuses to
16557 # link against other versions.
16564 hardcode_into_libs=yes
16565 dynamic_linker="$host_os dld.so"
16566 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 if test "X$HPUX_IA64_MODE" = X32; then
16571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16579 hardcode_into_libs=yes
16580 dynamic_linker="$host_os dld.sl"
16581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16590 dynamic_linker="$host_os dld.sl"
16591 shlibpath_var=SHLIB_PATH
16592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16598 postinstall_cmds='chmod 555 $lib'
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16608 shlibpath_var=LD_LIBRARY_PATH
16609 shlibpath_overrides_runpath=no
16610 hardcode_into_libs=yes
16613 irix5* | irix6* | nonstopux*)
16615 nonstopux*) version_type=nonstopux ;;
16617 if test "$lt_cv_prog_gnu_ld" = yes; then
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16628 irix5* | nonstopux*)
16629 libsuff= shlibsuff=
16632 case $LD in # libtool.m4 will add one of these switches to LD
16633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16634 libsuff= shlibsuff= libmagic=32-bit;;
16635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16636 libsuff=32 shlibsuff=N32 libmagic=N32;;
16637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16639 *) libsuff= shlibsuff= libmagic=never-match;;
16643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16644 shlibpath_overrides_runpath=no
16645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16647 hardcode_into_libs=yes
16650 # No shared lib support for Linux oldld, aout, or coff.
16651 linux*oldld* | linux*aout* | linux*coff*)
16655 # This must be Linux ELF.
16656 linux* | k*bsd*-gnu)
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=no
16665 # This implies no fast_install, which is unacceptable.
16666 # Some rework will be needed to allow for fast_install
16667 # before this can be enabled.
16668 hardcode_into_libs=yes
16670 # Append ld.so.conf contents to the search path
16671 if test -f /etc/ld.so.conf; then
16672 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' ' '`
16673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16676 # We used to test for /lib/ld.so.1 and disable shared libraries on
16677 # powerpc, because MkLinux only supported shared libraries with the
16678 # GNU dynamic linker. Since this was broken with cross compilers,
16679 # most powerpc-linux boxes support dynamic linking these days and
16680 # people can always --disable-shared, the test was removed, and we
16681 # assume the GNU/Linux dynamic linker is in use.
16682 dynamic_linker='GNU/Linux ld.so'
16689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16692 dynamic_linker='NetBSD (a.out) ld.so'
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 dynamic_linker='NetBSD ld.elf_so'
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes
16700 hardcode_into_libs=yes
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=yes
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16722 sys_lib_dlsearch_path_spec="/usr/lib"
16724 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16726 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16727 *) need_version=no ;;
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16734 openbsd2.[89] | openbsd2.[89].*)
16735 shlibpath_overrides_runpath=no
16738 shlibpath_overrides_runpath=yes
16742 shlibpath_overrides_runpath=yes
16747 libname_spec='$name'
16750 library_names_spec='$libname${shared_ext} $libname.a'
16751 dynamic_linker='OS/2 ld.exe'
16752 shlibpath_var=LIBPATH
16755 osf3* | osf4* | osf5*)
16759 soname_spec='${libname}${release}${shared_ext}$major'
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16763 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16778 hardcode_into_libs=yes
16779 # ldd complains unless libraries are executable
16780 postinstall_cmds='chmod +x $lib'
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=yes
16789 if test "$with_gnu_ld" = yes; then
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798 soname_spec='${libname}${release}${shared_ext}$major'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 case $host_vendor in
16802 shlibpath_overrides_runpath=no
16804 export_dynamic_flag_spec='${wl}-Blargedynsym'
16805 runpath_var=LD_RUN_PATH
16813 shlibpath_overrides_runpath=no
16814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16820 if test -d /usr/nec ;then
16822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16823 soname_spec='$libname${shared_ext}.$major'
16824 shlibpath_var=LD_LIBRARY_PATH
16828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16829 version_type=freebsd-elf
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 hardcode_into_libs=yes
16836 if test "$with_gnu_ld" = yes; then
16837 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16838 shlibpath_overrides_runpath=no
16840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16841 shlibpath_overrides_runpath=yes
16844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16848 sys_lib_dlsearch_path_spec='/usr/lib'
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 shlibpath_var=LD_LIBRARY_PATH
16862 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16863 $as_echo "$dynamic_linker" >&6; }
16864 test "$dynamic_linker" = no && can_build_shared=no
16866 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16867 $as_echo_n "(cached) " >&6
16869 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16872 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16873 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16874 $as_echo_n "(cached) " >&6
16876 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16879 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16881 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16882 if test "$GCC" = yes; then
16883 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16886 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16887 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16888 hardcode_action_F77=
16889 if test -n "$hardcode_libdir_flag_spec_F77" || \
16890 test -n "$runpath_var_F77" || \
16891 test "X$hardcode_automatic_F77" = "Xyes" ; then
16893 # We can hardcode non-existant directories.
16894 if test "$hardcode_direct_F77" != no &&
16895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16896 # have to relink, otherwise we might link with an installed library
16897 # when we should be linking with a yet-to-be-installed one
16898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16899 test "$hardcode_minus_L_F77" != no; then
16900 # Linking always hardcodes the temporary library directory.
16901 hardcode_action_F77=relink
16903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16904 hardcode_action_F77=immediate
16907 # We cannot hardcode anything, or else we can only hardcode existing
16909 hardcode_action_F77=unsupported
16911 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16912 $as_echo "$hardcode_action_F77" >&6; }
16914 if test "$hardcode_action_F77" = relink; then
16915 # Fast installation is not supported
16916 enable_fast_install=no
16917 elif test "$shlibpath_overrides_runpath" = yes ||
16918 test "$enable_shared" = no; then
16919 # Fast installation is not necessary
16920 enable_fast_install=needless
16924 # The else clause should only fire when bootstrapping the
16925 # libtool distribution, otherwise you forgot to ship ltmain.sh
16926 # with your package, and you will get complaints that there are
16927 # no rules to generate ltmain.sh.
16928 if test -f "$ltmain"; then
16929 # See if we are running on zsh, and set the options which allow our commands through
16930 # without removal of \ escapes.
16931 if test -n "${ZSH_VERSION+set}" ; then
16932 setopt NO_GLOB_SUBST
16934 # Now quote all the things that may contain metacharacters while being
16935 # careful not to overquote the AC_SUBSTed values. We take copies of the
16936 # variables and quote the copies for generation of the libtool script.
16937 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16939 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16940 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16941 deplibs_check_method reload_flag reload_cmds need_locks \
16942 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16943 lt_cv_sys_global_symbol_to_c_name_address \
16944 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16945 old_postinstall_cmds old_postuninstall_cmds \
16949 lt_prog_compiler_wl_F77 \
16950 lt_prog_compiler_pic_F77 \
16951 lt_prog_compiler_static_F77 \
16952 lt_prog_compiler_no_builtin_flag_F77 \
16953 export_dynamic_flag_spec_F77 \
16954 thread_safe_flag_spec_F77 \
16955 whole_archive_flag_spec_F77 \
16956 enable_shared_with_static_runtimes_F77 \
16957 old_archive_cmds_F77 \
16958 old_archive_from_new_cmds_F77 \
16959 predep_objects_F77 \
16960 postdep_objects_F77 \
16963 compiler_lib_search_path_F77 \
16964 compiler_lib_search_dirs_F77 \
16966 archive_expsym_cmds_F77 \
16967 postinstall_cmds_F77 \
16968 postuninstall_cmds_F77 \
16969 old_archive_from_expsyms_cmds_F77 \
16970 allow_undefined_flag_F77 \
16971 no_undefined_flag_F77 \
16972 export_symbols_cmds_F77 \
16973 hardcode_libdir_flag_spec_F77 \
16974 hardcode_libdir_flag_spec_ld_F77 \
16975 hardcode_libdir_separator_F77 \
16976 hardcode_automatic_F77 \
16978 module_expsym_cmds_F77 \
16979 lt_cv_prog_compiler_c_o_F77 \
16980 fix_srcfile_path_F77 \
16981 exclude_expsyms_F77 \
16982 include_expsyms_F77; do
16985 old_archive_cmds_F77 | \
16986 old_archive_from_new_cmds_F77 | \
16987 archive_cmds_F77 | \
16988 archive_expsym_cmds_F77 | \
16989 module_cmds_F77 | \
16990 module_expsym_cmds_F77 | \
16991 old_archive_from_expsyms_cmds_F77 | \
16992 export_symbols_cmds_F77 | \
16993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16994 postinstall_cmds | postuninstall_cmds | \
16995 old_postinstall_cmds | old_postuninstall_cmds | \
16996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16997 # Double-quote double-evaled strings.
16998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17007 *'\$0 --fallback-echo"')
17008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17014 cat <<__EOF__ >> "$cfgfile"
17015 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17019 # Shell to use when invoking shell scripts.
17022 # Whether or not to build shared libraries.
17023 build_libtool_libs=$enable_shared
17025 # Whether or not to build static libraries.
17026 build_old_libs=$enable_static
17028 # Whether or not to add -lc for building shared libraries.
17029 build_libtool_need_lc=$archive_cmds_need_lc_F77
17031 # Whether or not to disallow shared libs when runtime libs are static
17032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17034 # Whether or not to optimize for fast installation.
17035 fast_install=$enable_fast_install
17038 host_alias=$host_alias
17042 # The build system.
17043 build_alias=$build_alias
17047 # An echo program that does not interpret backslashes.
17052 AR_FLAGS=$lt_AR_FLAGS
17057 # LTCC compiler flags.
17058 LTCFLAGS=$lt_LTCFLAGS
17060 # A language-specific compiler.
17061 CC=$lt_compiler_F77
17063 # Is the compiler the GNU C compiler?
17069 # The linker used to build libraries.
17072 # Whether we need hard or soft links.
17075 # A BSD-compatible nm program.
17078 # A symbol stripping program
17081 # Used to examine libraries when file_magic_cmd begins "file"
17082 MAGIC_CMD=$MAGIC_CMD
17084 # Used on cygwin: DLL creation program.
17087 # Used on cygwin: object dumper.
17090 # Used on cygwin: assembler.
17093 # The name of the directory that contains temporary libtool files.
17096 # How to create reloadable object files.
17097 reload_flag=$lt_reload_flag
17098 reload_cmds=$lt_reload_cmds
17100 # How to pass a linker flag through the compiler.
17101 wl=$lt_lt_prog_compiler_wl_F77
17103 # Object file suffix (normally "o").
17104 objext="$ac_objext"
17106 # Old archive suffix (normally "a").
17109 # Shared library suffix (normally ".so").
17110 shrext_cmds='$shrext_cmds'
17112 # Executable file suffix (normally "").
17115 # Additional compiler flags for building library objects.
17116 pic_flag=$lt_lt_prog_compiler_pic_F77
17119 # What is the maximum length of a command?
17120 max_cmd_len=$lt_cv_sys_max_cmd_len
17122 # Does compiler simultaneously support -c and -o options?
17123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17125 # Must we lock files when doing compilation?
17126 need_locks=$lt_need_locks
17128 # Do we need the lib prefix for modules?
17129 need_lib_prefix=$need_lib_prefix
17131 # Do we need a version for libraries?
17132 need_version=$need_version
17134 # Whether dlopen is supported.
17135 dlopen_support=$enable_dlopen
17137 # Whether dlopen of programs is supported.
17138 dlopen_self=$enable_dlopen_self
17140 # Whether dlopen of statically linked programs is supported.
17141 dlopen_self_static=$enable_dlopen_self_static
17143 # Compiler flag to prevent dynamic linking.
17144 link_static_flag=$lt_lt_prog_compiler_static_F77
17146 # Compiler flag to turn off builtin functions.
17147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17149 # Compiler flag to allow reflexive dlopens.
17150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17152 # Compiler flag to generate shared objects directly from archives.
17153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17155 # Compiler flag to generate thread-safe objects.
17156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17158 # Library versioning type.
17159 version_type=$version_type
17161 # Format of library name prefix.
17162 libname_spec=$lt_libname_spec
17164 # List of archive names. First name is the real one, the rest are links.
17165 # The last name is the one that the linker finds with -lNAME.
17166 library_names_spec=$lt_library_names_spec
17168 # The coded name of the library, if different from the real name.
17169 soname_spec=$lt_soname_spec
17171 # Commands used to build and install an old-style archive.
17173 old_archive_cmds=$lt_old_archive_cmds_F77
17174 old_postinstall_cmds=$lt_old_postinstall_cmds
17175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17177 # Create an old-style archive from a shared archive.
17178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17180 # Create a temporary old-style archive to link instead of a shared archive.
17181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17183 # Commands used to build and install a shared archive.
17184 archive_cmds=$lt_archive_cmds_F77
17185 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17186 postinstall_cmds=$lt_postinstall_cmds
17187 postuninstall_cmds=$lt_postuninstall_cmds
17189 # Commands used to build a loadable module (assumed same as above if empty)
17190 module_cmds=$lt_module_cmds_F77
17191 module_expsym_cmds=$lt_module_expsym_cmds_F77
17193 # Commands to strip libraries.
17194 old_striplib=$lt_old_striplib
17195 striplib=$lt_striplib
17197 # Dependencies to place before the objects being linked to create a
17199 predep_objects=$lt_predep_objects_F77
17201 # Dependencies to place after the objects being linked to create a
17203 postdep_objects=$lt_postdep_objects_F77
17205 # Dependencies to place before the objects being linked to create a
17207 predeps=$lt_predeps_F77
17209 # Dependencies to place after the objects being linked to create a
17211 postdeps=$lt_postdeps_F77
17213 # The directories searched by this compiler when creating a shared
17215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17217 # The library search path used internally by the compiler when linking
17218 # a shared library.
17219 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17221 # Method to check whether dependent libraries are shared objects.
17222 deplibs_check_method=$lt_deplibs_check_method
17224 # Command to use when deplibs_check_method == file_magic.
17225 file_magic_cmd=$lt_file_magic_cmd
17227 # Flag that allows shared libraries with undefined symbols to be built.
17228 allow_undefined_flag=$lt_allow_undefined_flag_F77
17230 # Flag that forces no undefined symbols.
17231 no_undefined_flag=$lt_no_undefined_flag_F77
17233 # Commands used to finish a libtool library installation in a directory.
17234 finish_cmds=$lt_finish_cmds
17236 # Same as above, but a single script fragment to be evaled but not shown.
17237 finish_eval=$lt_finish_eval
17239 # Take the output of nm and produce a listing of raw symbols and C names.
17240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17242 # Transform the output of nm in a proper C declaration
17243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17245 # Transform the output of nm in a C name address pair
17246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17248 # This is the shared library runtime path variable.
17249 runpath_var=$runpath_var
17251 # This is the shared library path variable.
17252 shlibpath_var=$shlibpath_var
17254 # Is shlibpath searched before the hard-coded library search path?
17255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17257 # How to hardcode a shared library path into an executable.
17258 hardcode_action=$hardcode_action_F77
17260 # Whether we should hardcode library paths into libraries.
17261 hardcode_into_libs=$hardcode_into_libs
17263 # Flag to hardcode \$libdir into a binary during linking.
17264 # This must work even if \$libdir does not exist.
17265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17267 # If ld is used when linking, flag to hardcode \$libdir into
17268 # a binary during linking. This must work even if \$libdir does
17270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17272 # Whether we need a single -rpath flag with a separated argument.
17273 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17276 # resulting binary.
17277 hardcode_direct=$hardcode_direct_F77
17279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17280 # resulting binary.
17281 hardcode_minus_L=$hardcode_minus_L_F77
17283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17284 # the resulting binary.
17285 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17287 # Set to yes if building a shared library automatically hardcodes DIR into the library
17288 # and all subsequent libraries and executables linked against it.
17289 hardcode_automatic=$hardcode_automatic_F77
17291 # Variables whose values should be saved in libtool wrapper scripts and
17292 # restored at relink time.
17293 variables_saved_for_relink="$variables_saved_for_relink"
17295 # Whether libtool must link a program against all its dependency libraries.
17296 link_all_deplibs=$link_all_deplibs_F77
17298 # Compile-time system search path for libraries
17299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17301 # Run-time system search path for libraries
17302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17304 # Fix the shell variable \$srcfile for the compiler.
17305 fix_srcfile_path=$lt_fix_srcfile_path
17307 # Set to yes if exported symbols are required.
17308 always_export_symbols=$always_export_symbols_F77
17310 # The commands to list exported symbols.
17311 export_symbols_cmds=$lt_export_symbols_cmds_F77
17313 # The commands to extract the exported symbol list from a shared archive.
17314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17316 # Symbols that should not be listed in the preloaded symbols.
17317 exclude_expsyms=$lt_exclude_expsyms_F77
17319 # Symbols that must always be exported.
17320 include_expsyms=$lt_include_expsyms_F77
17322 # ### END LIBTOOL TAG CONFIG: $tagname
17328 # If there is no Makefile yet, we rely on a make rule to execute
17329 # `config.status --recheck' to rerun these tests and create the
17330 # libtool script then.
17331 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17332 if test -f "$ltmain_in"; then
17333 test -f Makefile && make "$ltmain"
17339 ac_cpp='$CPP $CPPFLAGS'
17340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17352 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17355 # Source file extension for Java test sources.
17358 # Object file extension for compiled Java test sources.
17362 # Code to be used in simple compile tests
17363 lt_simple_compile_test_code="class foo {}"
17365 # Code to be used in simple link tests
17366 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17368 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17370 # If no C compiler was specified, use CC.
17373 # If no C compiler flags were specified, use CFLAGS.
17374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17376 # Allow CC to be a program name with arguments.
17380 # save warnings/boilerplate of simple test code
17381 ac_outfile=conftest.$ac_objext
17382 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17383 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17384 _lt_compiler_boilerplate=`cat conftest.err`
17387 ac_outfile=conftest.$ac_objext
17388 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17389 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17390 _lt_linker_boilerplate=`cat conftest.err`
17394 # Allow CC to be a program name with arguments.
17399 for cc_temp in $compiler""; do
17401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17410 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17411 archive_cmds_need_lc_GCJ=no
17413 old_archive_cmds_GCJ=$old_archive_cmds
17416 lt_prog_compiler_no_builtin_flag_GCJ=
17418 if test "$GCC" = yes; then
17419 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17422 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17423 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17425 $as_echo_n "(cached) " >&6
17427 lt_cv_prog_compiler_rtti_exceptions=no
17428 ac_outfile=conftest.$ac_objext
17429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17430 lt_compiler_flag="-fno-rtti -fno-exceptions"
17431 # Insert the option either (1) after the last *FLAGS variable, or
17432 # (2) before a word containing "conftest.", or (3) at the end.
17433 # Note that $ac_compile itself does not contain backslashes and begins
17434 # with a dollar sign (not a hyphen), so the echo should work correctly.
17435 # The option is referenced via a variable to avoid confusing sed.
17436 lt_compile=`echo "$ac_compile" | $SED \
17437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17439 -e 's:$: $lt_compiler_flag:'`
17440 (eval echo "\"\$as_me:17440: $lt_compile\"" >&5)
17441 (eval "$lt_compile" 2>conftest.err)
17443 cat conftest.err >&5
17444 echo "$as_me:17444: \$? = $ac_status" >&5
17445 if (exit $ac_status) && test -s "$ac_outfile"; then
17446 # The compiler can only warn and ignore the option if not recognized
17447 # So say no if there are warnings other than the usual output.
17448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17451 lt_cv_prog_compiler_rtti_exceptions=yes
17457 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17458 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17461 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17468 lt_prog_compiler_wl_GCJ=
17469 lt_prog_compiler_pic_GCJ=
17470 lt_prog_compiler_static_GCJ=
17472 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17473 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17475 if test "$GCC" = yes; then
17476 lt_prog_compiler_wl_GCJ='-Wl,'
17477 lt_prog_compiler_static_GCJ='-static'
17481 # All AIX code is PIC.
17482 if test "$host_cpu" = ia64; then
17483 # AIX 5 now supports IA64 processor
17484 lt_prog_compiler_static_GCJ='-Bstatic'
17489 # FIXME: we need at least 68020 code to build shared libraries, but
17490 # adding the `-m68020' flag to GCC prevents building anything better,
17492 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17496 # PIC is the default for these OSes.
17499 mingw* | cygwin* | pw32* | os2*)
17500 # This hack is so that the source file can tell whether it is being
17501 # built for inclusion in a dll (and should export symbols for example).
17502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17503 # (--disable-auto-import) libraries
17507 darwin* | rhapsody*)
17508 # PIC is the default on this platform
17509 # Common symbols not allowed in MH_DYLIB files
17510 lt_prog_compiler_pic_GCJ='-fno-common'
17514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17515 # Instead, we relocate shared libraries at runtime.
17519 # Just because we use GCC doesn't mean we suddenly get shared libraries
17520 # on systems that don't support them.
17521 lt_prog_compiler_can_build_shared_GCJ=no
17526 if test -d /usr/nec; then
17527 lt_prog_compiler_pic_GCJ=-Kconform_pic
17532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17533 # not for PA HP-UX.
17539 lt_prog_compiler_pic_GCJ='-fPIC'
17545 lt_prog_compiler_pic_GCJ='-fPIC'
17549 # PORTME Check for flag to pass linker flags through the system compiler.
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 if test "$host_cpu" = ia64; then
17554 # AIX 5 now supports IA64 processor
17555 lt_prog_compiler_static_GCJ='-Bstatic'
17557 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17561 # PIC is the default on this platform
17562 # Common symbols not allowed in MH_DYLIB files
17563 case $cc_basename in
17565 lt_prog_compiler_pic_GCJ='-qnocommon'
17566 lt_prog_compiler_wl_GCJ='-Wl,'
17571 mingw* | cygwin* | pw32* | os2*)
17572 # This hack is so that the source file can tell whether it is being
17573 # built for inclusion in a dll (and should export symbols for example).
17577 hpux9* | hpux10* | hpux11*)
17578 lt_prog_compiler_wl_GCJ='-Wl,'
17579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17580 # not for PA HP-UX.
17586 lt_prog_compiler_pic_GCJ='+Z'
17589 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17590 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17593 irix5* | irix6* | nonstopux*)
17594 lt_prog_compiler_wl_GCJ='-Wl,'
17595 # PIC (with -KPIC) is the default.
17596 lt_prog_compiler_static_GCJ='-non_shared'
17600 lt_prog_compiler_pic_GCJ='-KPIC'
17601 lt_prog_compiler_static_GCJ='-Bstatic'
17604 linux* | k*bsd*-gnu)
17605 case $cc_basename in
17607 lt_prog_compiler_wl_GCJ='-Wl,'
17608 lt_prog_compiler_pic_GCJ='-KPIC'
17609 lt_prog_compiler_static_GCJ='-static'
17611 pgcc* | pgf77* | pgf90* | pgf95*)
17612 # Portland Group compilers (*not* the Pentium gcc compiler,
17613 # which looks to be a dead project)
17614 lt_prog_compiler_wl_GCJ='-Wl,'
17615 lt_prog_compiler_pic_GCJ='-fpic'
17616 lt_prog_compiler_static_GCJ='-Bstatic'
17619 lt_prog_compiler_wl_GCJ='-Wl,'
17620 # All Alpha code is PIC.
17621 lt_prog_compiler_static_GCJ='-non_shared'
17624 case `$CC -V 2>&1 | sed 5q` in
17627 lt_prog_compiler_pic_GCJ='-KPIC'
17628 lt_prog_compiler_static_GCJ='-Bstatic'
17629 lt_prog_compiler_wl_GCJ='-Wl,'
17632 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17633 lt_prog_compiler_pic_GCJ='-KPIC'
17634 lt_prog_compiler_static_GCJ='-Bstatic'
17635 lt_prog_compiler_wl_GCJ=''
17642 osf3* | osf4* | osf5*)
17643 lt_prog_compiler_wl_GCJ='-Wl,'
17644 # All OSF/1 code is PIC.
17645 lt_prog_compiler_static_GCJ='-non_shared'
17649 lt_prog_compiler_static_GCJ='-non_shared'
17653 lt_prog_compiler_pic_GCJ='-KPIC'
17654 lt_prog_compiler_static_GCJ='-Bstatic'
17655 case $cc_basename in
17656 f77* | f90* | f95*)
17657 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17659 lt_prog_compiler_wl_GCJ='-Wl,';;
17664 lt_prog_compiler_wl_GCJ='-Qoption ld '
17665 lt_prog_compiler_pic_GCJ='-PIC'
17666 lt_prog_compiler_static_GCJ='-Bstatic'
17669 sysv4 | sysv4.2uw2* | sysv4.3*)
17670 lt_prog_compiler_wl_GCJ='-Wl,'
17671 lt_prog_compiler_pic_GCJ='-KPIC'
17672 lt_prog_compiler_static_GCJ='-Bstatic'
17676 if test -d /usr/nec ;then
17677 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17678 lt_prog_compiler_static_GCJ='-Bstatic'
17682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17683 lt_prog_compiler_wl_GCJ='-Wl,'
17684 lt_prog_compiler_pic_GCJ='-KPIC'
17685 lt_prog_compiler_static_GCJ='-Bstatic'
17689 lt_prog_compiler_wl_GCJ='-Wl,'
17690 lt_prog_compiler_can_build_shared_GCJ=no
17694 lt_prog_compiler_pic_GCJ='-pic'
17695 lt_prog_compiler_static_GCJ='-Bstatic'
17699 lt_prog_compiler_can_build_shared_GCJ=no
17704 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17705 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17708 # Check to make sure the PIC flag actually works.
17710 if test -n "$lt_prog_compiler_pic_GCJ"; then
17712 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17713 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17714 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17715 $as_echo_n "(cached) " >&6
17717 lt_cv_prog_compiler_pic_works_GCJ=no
17718 ac_outfile=conftest.$ac_objext
17719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17720 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17721 # Insert the option either (1) after the last *FLAGS variable, or
17722 # (2) before a word containing "conftest.", or (3) at the end.
17723 # Note that $ac_compile itself does not contain backslashes and begins
17724 # with a dollar sign (not a hyphen), so the echo should work correctly.
17725 # The option is referenced via a variable to avoid confusing sed.
17726 lt_compile=`echo "$ac_compile" | $SED \
17727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17729 -e 's:$: $lt_compiler_flag:'`
17730 (eval echo "\"\$as_me:17730: $lt_compile\"" >&5)
17731 (eval "$lt_compile" 2>conftest.err)
17733 cat conftest.err >&5
17734 echo "$as_me:17734: \$? = $ac_status" >&5
17735 if (exit $ac_status) && test -s "$ac_outfile"; then
17736 # The compiler can only warn and ignore the option if not recognized
17737 # So say no if there are warnings other than the usual output.
17738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17741 lt_cv_prog_compiler_pic_works_GCJ=yes
17747 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17748 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17750 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17751 case $lt_prog_compiler_pic_GCJ in
17753 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17756 lt_prog_compiler_pic_GCJ=
17757 lt_prog_compiler_can_build_shared_GCJ=no
17762 # For platforms which do not support PIC, -DPIC is meaningless:
17764 lt_prog_compiler_pic_GCJ=
17767 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17772 # Check to make sure the static flag actually works.
17774 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17775 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17776 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17777 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17778 $as_echo_n "(cached) " >&6
17780 lt_cv_prog_compiler_static_works_GCJ=no
17781 save_LDFLAGS="$LDFLAGS"
17782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17785 # The linker can only warn and ignore the option if not recognized
17786 # So say no if there are warnings
17787 if test -s conftest.err; then
17788 # Append any errors to the config.log.
17789 cat conftest.err 1>&5
17790 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17792 if diff conftest.exp conftest.er2 >/dev/null; then
17793 lt_cv_prog_compiler_static_works_GCJ=yes
17796 lt_cv_prog_compiler_static_works_GCJ=yes
17800 LDFLAGS="$save_LDFLAGS"
17803 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17804 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17806 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17809 lt_prog_compiler_static_GCJ=
17813 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17815 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17816 $as_echo_n "(cached) " >&6
17818 lt_cv_prog_compiler_c_o_GCJ=no
17819 $rm -r conftest 2>/dev/null
17823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17825 lt_compiler_flag="-o out/conftest2.$ac_objext"
17826 # Insert the option either (1) after the last *FLAGS variable, or
17827 # (2) before a word containing "conftest.", or (3) at the end.
17828 # Note that $ac_compile itself does not contain backslashes and begins
17829 # with a dollar sign (not a hyphen), so the echo should work correctly.
17830 lt_compile=`echo "$ac_compile" | $SED \
17831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17833 -e 's:$: $lt_compiler_flag:'`
17834 (eval echo "\"\$as_me:17834: $lt_compile\"" >&5)
17835 (eval "$lt_compile" 2>out/conftest.err)
17837 cat out/conftest.err >&5
17838 echo "$as_me:17838: \$? = $ac_status" >&5
17839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17841 # The compiler can only warn and ignore the option if not recognized
17842 # So say no if there are warnings
17843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17846 lt_cv_prog_compiler_c_o_GCJ=yes
17851 # SGI C++ compiler will create directory out/ii_files/ for
17852 # template instantiation
17853 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17854 $rm out/* && rmdir out
17860 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17861 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17864 hard_links="nottested"
17865 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17866 # do not overwrite the value of need_locks provided by the user
17867 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17868 $as_echo_n "checking if we can lock with hard links... " >&6; }
17871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17873 ln conftest.a conftest.b 2>&5 || hard_links=no
17874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17875 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17876 $as_echo "$hard_links" >&6; }
17877 if test "$hard_links" = no; then
17878 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17879 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17886 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17890 allow_undefined_flag_GCJ=
17891 enable_shared_with_static_runtimes_GCJ=no
17893 archive_expsym_cmds_GCJ=
17894 old_archive_From_new_cmds_GCJ=
17895 old_archive_from_expsyms_cmds_GCJ=
17896 export_dynamic_flag_spec_GCJ=
17897 whole_archive_flag_spec_GCJ=
17898 thread_safe_flag_spec_GCJ=
17899 hardcode_libdir_flag_spec_GCJ=
17900 hardcode_libdir_flag_spec_ld_GCJ=
17901 hardcode_libdir_separator_GCJ=
17902 hardcode_direct_GCJ=no
17903 hardcode_minus_L_GCJ=no
17904 hardcode_shlibpath_var_GCJ=unsupported
17905 link_all_deplibs_GCJ=unknown
17906 hardcode_automatic_GCJ=no
17908 module_expsym_cmds_GCJ=
17909 always_export_symbols_GCJ=no
17910 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17911 # include_expsyms should be a list of space-separated symbols to be *always*
17912 # included in the symbol list
17913 include_expsyms_GCJ=
17914 # exclude_expsyms can be an extended regexp of symbols to exclude
17915 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17916 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17917 # as well as any symbol that contains `d'.
17918 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17920 # platforms (ab)use it in PIC code, but their linkers get confused if
17921 # the symbol is explicitly referenced. Since portable code cannot
17922 # rely on this symbol name, it's probably fine to never include it in
17923 # preloaded symbol tables.
17924 # Exclude shared library initialization/finalization symbols.
17925 extract_expsyms_cmds=
17926 # Just being paranoid about ensuring that cc_basename is set.
17927 for cc_temp in $compiler""; do
17929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17938 cygwin* | mingw* | pw32*)
17939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17940 # When not using gcc, we currently assume that we are using
17941 # Microsoft Visual C++.
17942 if test "$GCC" != yes; then
17947 # we just hope/assume this is gcc and not c89 (= MSVC++)
17956 if test "$with_gnu_ld" = yes; then
17957 # If archive_cmds runs LD, not CC, wlarc should be empty
17960 # Set some defaults for GNU ld with shared library support. These
17961 # are reset later if shared libraries are not supported. Putting them
17962 # here allows them to be overridden if necessary.
17963 runpath_var=LD_RUN_PATH
17964 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17965 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17966 # ancient GNU ld didn't support --whole-archive et. al.
17967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17968 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17970 whole_archive_flag_spec_GCJ=
17972 supports_anon_versioning=no
17973 case `$LD -v 2>/dev/null` in
17974 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17975 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17976 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17977 *\ 2.11.*) ;; # other 2.11 versions
17978 *) supports_anon_versioning=yes ;;
17981 # See if GNU ld supports shared libraries.
17984 # On AIX/PPC, the GNU linker is very broken
17985 if test "$host_cpu" != ia64; then
17989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17990 *** to be unable to reliably create shared libraries on AIX.
17991 *** Therefore, libtool is disabling shared libraries support. If you
17992 *** really care for shared libraries, you may want to modify your PATH
17993 *** so that a non-GNU linker is found, and then restart.
18000 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)'
18001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002 hardcode_minus_L_GCJ=yes
18005 # that the semantics of dynamic libraries on AmigaOS, at least up
18006 # to version 4, is to share data among multiple programs linked
18007 # with the same dynamic library. Since this doesn't match the
18008 # behavior of shared libraries on other platforms, we can't use
18014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18015 allow_undefined_flag_GCJ=unsupported
18017 # support --undefined. This deserves some investigation. FIXME
18018 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18024 cygwin* | mingw* | pw32*)
18025 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18026 # as there is no search path for DLLs.
18027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028 allow_undefined_flag_GCJ=unsupported
18029 always_export_symbols_GCJ=no
18030 enable_shared_with_static_runtimes_GCJ=yes
18031 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18035 # If the export-symbols file already is a .def file (1st line
18036 # is EXPORTS), use it as is; otherwise, prepend...
18037 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18038 cp $export_symbols $output_objdir/$soname.def;
18040 echo EXPORTS > $output_objdir/$soname.def;
18041 cat $export_symbols >> $output_objdir/$soname.def;
18043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18050 hardcode_direct_GCJ=no
18051 hardcode_shlibpath_var_GCJ=no
18052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18053 export_dynamic_flag_spec_GCJ='${wl}-E'
18054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18055 # Instead, shared libraries are loaded at an image base (0x10000000 by
18056 # default) and relocated if they conflict, which is a slow very memory
18057 # consuming and fragmenting process. To avoid this, we pick a random,
18058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18060 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'
18061 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'
18064 gnu* | linux* | k*bsd*-gnu)
18065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18067 case $cc_basename,$host_cpu in
18068 pgcc*) # Portland Group C compiler
18069 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'
18070 tmp_addflag=' $pic_flag'
18072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18073 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'
18074 tmp_addflag=' $pic_flag -Mnomain' ;;
18075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18076 tmp_addflag=' -i_dynamic' ;;
18077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18078 tmp_addflag=' -i_dynamic -nofor_main' ;;
18079 ifc* | ifort*) # Intel Fortran compiler
18080 tmp_addflag=' -nofor_main' ;;
18082 case `$CC -V 2>&1 | sed 5q` in
18083 *Sun\ C*) # Sun C 5.9
18084 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'
18085 tmp_sharedflag='-G' ;;
18086 *Sun\ F*) # Sun Fortran 8.3
18087 tmp_sharedflag='-G' ;;
18089 tmp_sharedflag='-shared' ;;
18091 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18093 if test $supports_anon_versioning = yes; then
18094 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18096 $echo "local: *; };" >> $output_objdir/$libname.ver~
18097 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18106 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18109 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18110 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18115 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18120 *** create shared libraries on Solaris systems. Therefore, libtool
18121 *** is disabling shared libraries support. We urge you to upgrade GNU
18122 *** binutils to release 2.9.1 or newer. Another option is to modify
18123 *** your PATH or compiler configuration so that the native linker is
18124 *** used, and then restart.
18127 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18128 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18129 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18136 case `$LD -v 2>&1` in
18137 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18142 *** reliably create shared libraries on SCO systems. Therefore, libtool
18143 *** is disabling shared libraries support. We urge you to upgrade GNU
18144 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18145 *** your PATH or compiler configuration so that the native linker is
18146 *** used, and then restart.
18151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18152 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18154 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18163 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18165 hardcode_direct_GCJ=yes
18166 hardcode_shlibpath_var_GCJ=no
18170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18171 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18172 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18179 if test "$ld_shlibs_GCJ" = no; then
18181 hardcode_libdir_flag_spec_GCJ=
18182 export_dynamic_flag_spec_GCJ=
18183 whole_archive_flag_spec_GCJ=
18186 # PORTME fill in a description of your system's linker (not GNU ld)
18189 allow_undefined_flag_GCJ=unsupported
18190 always_export_symbols_GCJ=yes
18191 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'
18192 # Note: this linker hardcodes the directories in LIBPATH if there
18193 # are no directories specified by -L.
18194 hardcode_minus_L_GCJ=yes
18195 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18196 # Neither direct hardcoding nor static linking is supported with a
18198 hardcode_direct_GCJ=unsupported
18203 if test "$host_cpu" = ia64; then
18204 # On IA64, the linker does run time linking by default, so we don't
18205 # have to do anything special.
18206 aix_use_runtimelinking=no
18207 exp_sym_flag='-Bexport'
18210 # If we're using GNU nm, then we don't want the "-C" option.
18211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18212 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18213 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'
18215 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'
18217 aix_use_runtimelinking=no
18219 # Test if we are trying to use run time linking or normal
18220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18221 # need to do runtime linking.
18222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18223 for ld_flag in $LDFLAGS; do
18224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18225 aix_use_runtimelinking=yes
18232 exp_sym_flag='-bexport'
18233 no_entry_flag='-bnoentry'
18236 # When large executables or shared objects are built, AIX ld can
18237 # have problems creating the table of contents. If linking a library
18238 # or program results in "error TOC overflow" add -mminimal-toc to
18239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18242 archive_cmds_GCJ=''
18243 hardcode_direct_GCJ=yes
18244 hardcode_libdir_separator_GCJ=':'
18245 link_all_deplibs_GCJ=yes
18247 if test "$GCC" = yes; then
18248 case $host_os in aix4.[012]|aix4.[012].*)
18249 # We only want to do this on AIX 4.2 and lower, the check
18250 # below for broken collect2 doesn't work under 4.3+
18251 collect2name=`${CC} -print-prog-name=collect2`
18252 if test -f "$collect2name" && \
18253 strings "$collect2name" | grep resolve_lib_name >/dev/null
18255 # We have reworked collect2
18258 # We have old collect2
18259 hardcode_direct_GCJ=unsupported
18260 # It fails to find uninstalled libraries when the uninstalled
18261 # path is not listed in the libpath. Setting hardcode_minus_L
18262 # to unsupported forces relinking
18263 hardcode_minus_L_GCJ=yes
18264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18265 hardcode_libdir_separator_GCJ=
18269 shared_flag='-shared'
18270 if test "$aix_use_runtimelinking" = yes; then
18271 shared_flag="$shared_flag "'${wl}-G'
18275 if test "$host_cpu" = ia64; then
18276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18277 # chokes on -Wl,-G. The following line is correct:
18280 if test "$aix_use_runtimelinking" = yes; then
18281 shared_flag='${wl}-G'
18283 shared_flag='${wl}-bM:SRE'
18288 # It seems that -bexpall does not export symbols beginning with
18289 # underscore (_), so it is better to generate a list of symbols to export.
18290 always_export_symbols_GCJ=yes
18291 if test "$aix_use_runtimelinking" = yes; then
18292 # Warning - without using the other runtime loading flags (-brtl),
18293 # -berok will link without error, but may produce a broken library.
18294 allow_undefined_flag_GCJ='-berok'
18295 # Determine the default libpath from the value encoded in an empty executable.
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18318 $as_echo "$ac_try_echo") >&5
18319 (eval "$ac_link") 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } && {
18326 test -z "$ac_c_werror_flag" ||
18327 test ! -s conftest.err
18328 } && test -s conftest$ac_exeext && {
18329 test "$cross_compiling" = yes ||
18330 $as_test_x conftest$ac_exeext
18333 lt_aix_libpath_sed='
18334 /Import File Strings/,/^$/ {
18340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18341 # Check for a 64-bit object if we didn't find anything.
18342 if test -z "$aix_libpath"; then
18343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18346 $as_echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18352 rm -rf conftest.dSYM
18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354 conftest$ac_exeext conftest.$ac_ext
18355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18357 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18358 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"
18360 if test "$host_cpu" = ia64; then
18361 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18362 allow_undefined_flag_GCJ="-z nodefs"
18363 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"
18365 # Determine the default libpath from the value encoded in an empty executable.
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (ac_try="$ac_link"
18383 case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18388 $as_echo "$ac_try_echo") >&5
18389 (eval "$ac_link") 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } && {
18396 test -z "$ac_c_werror_flag" ||
18397 test ! -s conftest.err
18398 } && test -s conftest$ac_exeext && {
18399 test "$cross_compiling" = yes ||
18400 $as_test_x conftest$ac_exeext
18403 lt_aix_libpath_sed='
18404 /Import File Strings/,/^$/ {
18410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18411 # Check for a 64-bit object if we didn't find anything.
18412 if test -z "$aix_libpath"; then
18413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18416 $as_echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18422 rm -rf conftest.dSYM
18423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18424 conftest$ac_exeext conftest.$ac_ext
18425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18427 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18428 # Warning - without using the other run time loading flags,
18429 # -berok will link without error, but may produce a broken library.
18430 no_undefined_flag_GCJ=' ${wl}-bernotok'
18431 allow_undefined_flag_GCJ=' ${wl}-berok'
18432 # Exported symbols can be pulled into shared objects from archives
18433 whole_archive_flag_spec_GCJ='$convenience'
18434 archive_cmds_need_lc_GCJ=yes
18435 # This is similar to how AIX traditionally builds its shared libraries.
18436 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'
18442 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)'
18443 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18444 hardcode_minus_L_GCJ=yes
18445 # see comment about different semantics on the GNU ld section
18450 export_dynamic_flag_spec_GCJ=-rdynamic
18453 cygwin* | mingw* | pw32*)
18454 # When not using gcc, we currently assume that we are using
18455 # Microsoft Visual C++.
18456 # hardcode_libdir_flag_spec is actually meaningless, as there is
18457 # no search path for DLLs.
18458 hardcode_libdir_flag_spec_GCJ=' '
18459 allow_undefined_flag_GCJ=unsupported
18460 # Tell ltmain to make .lib files, not .a files.
18462 # Tell ltmain to make .dll files, not .so files.
18464 # FIXME: Setting linknames here is a bad hack.
18465 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18466 # The linker will automatically build a .lib file if we build a DLL.
18467 old_archive_From_new_cmds_GCJ='true'
18468 # FIXME: Should let the user specify the lib program.
18469 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18470 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18471 enable_shared_with_static_runtimes_GCJ=yes
18474 darwin* | rhapsody*)
18476 rhapsody* | darwin1.[012])
18477 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18480 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18481 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18483 case ${MACOSX_DEPLOYMENT_TARGET} in
18485 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18488 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18494 archive_cmds_need_lc_GCJ=no
18495 hardcode_direct_GCJ=no
18496 hardcode_automatic_GCJ=yes
18497 hardcode_shlibpath_var_GCJ=unsupported
18498 whole_archive_flag_spec_GCJ=''
18499 link_all_deplibs_GCJ=yes
18500 if test "$GCC" = yes ; then
18501 output_verbose_link_cmd='echo'
18502 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}"
18503 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18504 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}"
18505 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}"
18507 case $cc_basename in
18509 output_verbose_link_cmd='echo'
18510 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18511 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18513 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}'
18514 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}'
18524 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18526 hardcode_shlibpath_var_GCJ=no
18533 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18534 # support. Future versions do this automatically, but an explicit c++rt0.o
18535 # does not break anything, and helps significantly (at the cost of a little
18538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18539 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18540 hardcode_direct_GCJ=yes
18541 hardcode_shlibpath_var_GCJ=no
18544 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18547 hardcode_direct_GCJ=yes
18548 hardcode_minus_L_GCJ=yes
18549 hardcode_shlibpath_var_GCJ=no
18552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18553 freebsd* | dragonfly*)
18554 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18556 hardcode_direct_GCJ=yes
18557 hardcode_shlibpath_var_GCJ=no
18561 if test "$GCC" = yes; then
18562 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'
18564 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'
18566 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18567 hardcode_libdir_separator_GCJ=:
18568 hardcode_direct_GCJ=yes
18570 # hardcode_minus_L: Not really in the search PATH,
18571 # but as the default location of the library.
18572 hardcode_minus_L_GCJ=yes
18573 export_dynamic_flag_spec_GCJ='${wl}-E'
18577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18578 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18580 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18582 if test "$with_gnu_ld" = no; then
18583 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18584 hardcode_libdir_separator_GCJ=:
18586 hardcode_direct_GCJ=yes
18587 export_dynamic_flag_spec_GCJ='${wl}-E'
18589 # hardcode_minus_L: Not really in the search PATH,
18590 # but as the default location of the library.
18591 hardcode_minus_L_GCJ=yes
18596 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18599 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18602 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18605 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18611 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18614 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18617 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18621 if test "$with_gnu_ld" = no; then
18622 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18623 hardcode_libdir_separator_GCJ=:
18627 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18628 hardcode_direct_GCJ=no
18629 hardcode_shlibpath_var_GCJ=no
18632 hardcode_direct_GCJ=yes
18633 export_dynamic_flag_spec_GCJ='${wl}-E'
18635 # hardcode_minus_L: Not really in the search PATH,
18636 # but as the default location of the library.
18637 hardcode_minus_L_GCJ=yes
18643 irix5* | irix6* | nonstopux*)
18644 if test "$GCC" = yes; then
18645 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'
18647 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'
18648 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18651 hardcode_libdir_separator_GCJ=:
18652 link_all_deplibs_GCJ=yes
18656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18657 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18659 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18661 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18662 hardcode_direct_GCJ=yes
18663 hardcode_shlibpath_var_GCJ=no
18667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18668 hardcode_direct_GCJ=yes
18669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18670 hardcode_libdir_separator_GCJ=:
18671 hardcode_shlibpath_var_GCJ=no
18675 if test -f /usr/libexec/ld.so; then
18676 hardcode_direct_GCJ=yes
18677 hardcode_shlibpath_var_GCJ=no
18678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18679 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18680 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18682 export_dynamic_flag_spec_GCJ='${wl}-E'
18685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18690 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18702 hardcode_minus_L_GCJ=yes
18703 allow_undefined_flag_GCJ=unsupported
18704 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'
18705 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18709 if test "$GCC" = yes; then
18710 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18711 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'
18713 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18714 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'
18716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18717 hardcode_libdir_separator_GCJ=:
18720 osf4* | osf5*) # as osf3* with the addition of -msym flag
18721 if test "$GCC" = yes; then
18722 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18723 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'
18724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18726 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18727 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'
18728 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~
18729 $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'
18731 # Both c and cxx compiler support -rpath directly
18732 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18734 hardcode_libdir_separator_GCJ=:
18738 no_undefined_flag_GCJ=' -z text'
18739 if test "$GCC" = yes; then
18741 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18742 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18743 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18746 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18747 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18751 hardcode_shlibpath_var_GCJ=no
18753 solaris2.[0-5] | solaris2.[0-5].*) ;;
18755 # The compiler driver will combine and reorder linker options,
18756 # but understands `-z linker_flag'. GCC discards it without `$wl',
18757 # but is careful enough not to reorder.
18758 # Supported since Solaris 2.6 (maybe 2.5.1?)
18759 if test "$GCC" = yes; then
18760 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18762 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18766 link_all_deplibs_GCJ=yes
18770 if test "x$host_vendor" = xsequent; then
18771 # Use $CC to link under sequent, because it throws in some extra .o
18772 # files that make .init and .fini sections work.
18773 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18775 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18778 hardcode_direct_GCJ=yes
18779 hardcode_minus_L_GCJ=yes
18780 hardcode_shlibpath_var_GCJ=no
18784 case $host_vendor in
18786 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18787 hardcode_direct_GCJ=yes # is this really true???
18790 ## LD is ld it makes a PLAMLIB
18791 ## CC just makes a GrossModule.
18792 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18793 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18794 hardcode_direct_GCJ=no
18797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18798 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18801 runpath_var='LD_RUN_PATH'
18802 hardcode_shlibpath_var_GCJ=no
18806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18807 hardcode_shlibpath_var_GCJ=no
18808 export_dynamic_flag_spec_GCJ='-Bexport'
18812 if test -d /usr/nec; then
18813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18814 hardcode_shlibpath_var_GCJ=no
18815 runpath_var=LD_RUN_PATH
18816 hardcode_runpath_var=yes
18821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18822 no_undefined_flag_GCJ='${wl}-z,text'
18823 archive_cmds_need_lc_GCJ=no
18824 hardcode_shlibpath_var_GCJ=no
18825 runpath_var='LD_RUN_PATH'
18827 if test "$GCC" = yes; then
18828 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18831 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18832 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18836 sysv5* | sco3.2v5* | sco5v6*)
18837 # Note: We can NOT use -z defs as we might desire, because we do not
18838 # link with -lc, and that would cause any symbols used from libc to
18839 # always be unresolved, which means just about no library would
18840 # ever link correctly. If we're not using GNU ld we use -z text
18841 # though, which does catch some bad symbols but isn't as heavy-handed
18843 no_undefined_flag_GCJ='${wl}-z,text'
18844 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18845 archive_cmds_need_lc_GCJ=no
18846 hardcode_shlibpath_var_GCJ=no
18847 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18848 hardcode_libdir_separator_GCJ=':'
18849 link_all_deplibs_GCJ=yes
18850 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18851 runpath_var='LD_RUN_PATH'
18853 if test "$GCC" = yes; then
18854 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18855 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18857 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18858 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18865 hardcode_shlibpath_var_GCJ=no
18874 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18875 $as_echo "$ld_shlibs_GCJ" >&6; }
18876 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18879 # Do we need to explicitly link libc?
18881 case "x$archive_cmds_need_lc_GCJ" in
18883 # Assume -lc should be added
18884 archive_cmds_need_lc_GCJ=yes
18886 if test "$enable_shared" = yes && test "$GCC" = yes; then
18887 case $archive_cmds_GCJ in
18889 # FIXME: we may have to deal with multi-command sequences.
18892 # Test whether the compiler implicitly links with -lc since on some
18893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18894 # to ld, don't add -lc before -lgcc.
18895 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18896 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>&5
18903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } 2>conftest.err; then
18907 libobjs=conftest.$ac_objext
18909 wl=$lt_prog_compiler_wl_GCJ
18910 pic_flag=$lt_prog_compiler_pic_GCJ
18916 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18917 allow_undefined_flag_GCJ=
18918 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18919 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }
18924 archive_cmds_need_lc_GCJ=no
18926 archive_cmds_need_lc_GCJ=yes
18928 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18930 cat conftest.err 1>&5
18933 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18934 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18941 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18942 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18943 library_names_spec=
18944 libname_spec='lib$name'
18948 postuninstall_cmds=
18952 shlibpath_overrides_runpath=unknown
18954 dynamic_linker="$host_os ld.so"
18955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18957 need_lib_prefix=unknown
18958 hardcode_into_libs=no
18960 # when you set need_version to no, make sure it does not cause -set_version
18961 # flags to be left without arguments
18962 need_version=unknown
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18968 shlibpath_var=LIBPATH
18970 # AIX 3 has no versioning support, so we append a major version to the name.
18971 soname_spec='${libname}${release}${shared_ext}$major'
18978 hardcode_into_libs=yes
18979 if test "$host_cpu" = ia64; then
18980 # AIX 5 supports IA64
18981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18982 shlibpath_var=LD_LIBRARY_PATH
18984 # With GCC up to 2.95.x, collect2 would create an import file
18985 # for dependence libraries. The import file would start with
18986 # the line `#! .'. This would cause the generated library to
18987 # depend on `.', always an invalid library. This was fixed in
18988 # development snapshots of GCC prior to 3.0.
18990 aix4 | aix4.[01] | aix4.[01].*)
18991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18996 can_build_shared=no
19000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19001 # soname into executable. Probably we can add versioning support to
19002 # collect2, so additional links can be useful in future.
19003 if test "$aix_use_runtimelinking" = yes; then
19004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19005 # instead of lib<name>.a to let people know that these are not
19006 # typical AIX shared libraries.
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19009 # We preserve .a as extension for shared libraries through AIX4.2
19010 # and later when we are not doing run time linking.
19011 library_names_spec='${libname}${release}.a $libname.a'
19012 soname_spec='${libname}${release}${shared_ext}$major'
19014 shlibpath_var=LIBPATH
19019 library_names_spec='$libname.ixlibrary $libname.a'
19020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19021 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'
19025 library_names_spec='${libname}${shared_ext}'
19026 dynamic_linker="$host_os ld.so"
19027 shlibpath_var=LIBRARY_PATH
19033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19034 soname_spec='${libname}${release}${shared_ext}$major'
19035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19036 shlibpath_var=LD_LIBRARY_PATH
19037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19039 # the default ld.so.conf also contains /usr/contrib/lib and
19040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19041 # libtool to hard-code these into programs
19044 cygwin* | mingw* | pw32*)
19045 version_type=windows
19050 case $GCC,$host_os in
19051 yes,cygwin* | yes,mingw* | yes,pw32*)
19052 library_names_spec='$libname.dll.a'
19053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19054 postinstall_cmds='base_file=`basename \${file}`~
19055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19056 dldir=$destdir/`dirname \$dlpath`~
19057 test -d \$dldir || mkdir -p \$dldir~
19058 $install_prog $dir/$dlname \$dldir/$dlname~
19059 chmod a+x \$dldir/$dlname'
19060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19061 dlpath=$dir/\$dldll~
19063 shlibpath_overrides_runpath=yes
19067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19072 # MinGW DLLs use traditional 'lib' prefix
19073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19076 # It is most probably a Windows format PATH printed by
19077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19078 # path with ; separators, and with drive letters. We can handle the
19079 # drive letters (cygwin fileutils understands them), so leave them,
19080 # especially as we might pass files found there to a mingw objdump,
19081 # which wouldn't understand a cygwinified path. Ahh.
19082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19088 # pw32 DLLs use 'pw' prefix rather than 'lib'
19089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19098 dynamic_linker='Win32 ld.exe'
19099 # FIXME: first we should search . and the directory the executable is in
19103 darwin* | rhapsody*)
19104 dynamic_linker="$host_os dyld"
19105 version_type=darwin
19108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19109 soname_spec='${libname}${release}${major}$shared_ext'
19110 shlibpath_overrides_runpath=yes
19111 shlibpath_var=DYLD_LIBRARY_PATH
19112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19122 soname_spec='${libname}${release}${shared_ext}$major'
19123 shlibpath_var=LD_LIBRARY_PATH
19130 freebsd* | dragonfly*)
19131 # DragonFly does not have aout. When/if they implement a new
19132 # versioning mechanism, adjust this.
19133 if test -x /usr/bin/objformat; then
19134 objformat=`/usr/bin/objformat`
19137 freebsd[123]*) objformat=aout ;;
19138 *) objformat=elf ;;
19141 # Handle Gentoo/FreeBSD as it was Linux
19142 case $host_vendor in
19144 version_type=linux ;;
19146 version_type=freebsd-$objformat ;;
19149 case $version_type in
19151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19161 soname_spec='${libname}${release}${shared_ext}$major'
19166 shlibpath_var=LD_LIBRARY_PATH
19169 shlibpath_overrides_runpath=yes
19171 freebsd3.[01]* | freebsdelf3.[01]*)
19172 shlibpath_overrides_runpath=yes
19173 hardcode_into_libs=yes
19175 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19176 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19177 shlibpath_overrides_runpath=no
19178 hardcode_into_libs=yes
19180 *) # from 4.6 on, and DragonFly
19181 shlibpath_overrides_runpath=yes
19182 hardcode_into_libs=yes
19191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19192 soname_spec='${libname}${release}${shared_ext}$major'
19193 shlibpath_var=LD_LIBRARY_PATH
19194 hardcode_into_libs=yes
19197 hpux9* | hpux10* | hpux11*)
19198 # Give a soname corresponding to the major version so that dld.sl refuses to
19199 # link against other versions.
19206 hardcode_into_libs=yes
19207 dynamic_linker="$host_os dld.so"
19208 shlibpath_var=LD_LIBRARY_PATH
19209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19211 soname_spec='${libname}${release}${shared_ext}$major'
19212 if test "X$HPUX_IA64_MODE" = X32; then
19213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19221 hardcode_into_libs=yes
19222 dynamic_linker="$host_os dld.sl"
19223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19226 soname_spec='${libname}${release}${shared_ext}$major'
19227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19232 dynamic_linker="$host_os dld.sl"
19233 shlibpath_var=SHLIB_PATH
19234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19236 soname_spec='${libname}${release}${shared_ext}$major'
19239 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19240 postinstall_cmds='chmod 555 $lib'
19247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19248 soname_spec='${libname}${release}${shared_ext}$major'
19249 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19250 shlibpath_var=LD_LIBRARY_PATH
19251 shlibpath_overrides_runpath=no
19252 hardcode_into_libs=yes
19255 irix5* | irix6* | nonstopux*)
19257 nonstopux*) version_type=nonstopux ;;
19259 if test "$lt_cv_prog_gnu_ld" = yes; then
19267 soname_spec='${libname}${release}${shared_ext}$major'
19268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19270 irix5* | nonstopux*)
19271 libsuff= shlibsuff=
19274 case $LD in # libtool.m4 will add one of these switches to LD
19275 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19276 libsuff= shlibsuff= libmagic=32-bit;;
19277 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19278 libsuff=32 shlibsuff=N32 libmagic=N32;;
19279 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19280 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19281 *) libsuff= shlibsuff= libmagic=never-match;;
19285 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19286 shlibpath_overrides_runpath=no
19287 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19288 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19289 hardcode_into_libs=yes
19292 # No shared lib support for Linux oldld, aout, or coff.
19293 linux*oldld* | linux*aout* | linux*coff*)
19297 # This must be Linux ELF.
19298 linux* | k*bsd*-gnu)
19302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19303 soname_spec='${libname}${release}${shared_ext}$major'
19304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19305 shlibpath_var=LD_LIBRARY_PATH
19306 shlibpath_overrides_runpath=no
19307 # This implies no fast_install, which is unacceptable.
19308 # Some rework will be needed to allow for fast_install
19309 # before this can be enabled.
19310 hardcode_into_libs=yes
19312 # Append ld.so.conf contents to the search path
19313 if test -f /etc/ld.so.conf; then
19314 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' ' '`
19315 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19318 # We used to test for /lib/ld.so.1 and disable shared libraries on
19319 # powerpc, because MkLinux only supported shared libraries with the
19320 # GNU dynamic linker. Since this was broken with cross compilers,
19321 # most powerpc-linux boxes support dynamic linking these days and
19322 # people can always --disable-shared, the test was removed, and we
19323 # assume the GNU/Linux dynamic linker is in use.
19324 dynamic_linker='GNU/Linux ld.so'
19331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19334 dynamic_linker='NetBSD (a.out) ld.so'
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 dynamic_linker='NetBSD ld.elf_so'
19340 shlibpath_var=LD_LIBRARY_PATH
19341 shlibpath_overrides_runpath=yes
19342 hardcode_into_libs=yes
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19348 shlibpath_var=LD_LIBRARY_PATH
19349 shlibpath_overrides_runpath=yes
19356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357 soname_spec='${libname}${release}${shared_ext}$major'
19358 shlibpath_var=LD_LIBRARY_PATH
19359 shlibpath_overrides_runpath=yes
19364 sys_lib_dlsearch_path_spec="/usr/lib"
19366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19369 *) need_version=no ;;
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19376 openbsd2.[89] | openbsd2.[89].*)
19377 shlibpath_overrides_runpath=no
19380 shlibpath_overrides_runpath=yes
19384 shlibpath_overrides_runpath=yes
19389 libname_spec='$name'
19392 library_names_spec='$libname${shared_ext} $libname.a'
19393 dynamic_linker='OS/2 ld.exe'
19394 shlibpath_var=LIBPATH
19397 osf3* | osf4* | osf5*)
19401 soname_spec='${libname}${release}${shared_ext}$major'
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 shlibpath_var=LD_LIBRARY_PATH
19404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 soname_spec='${libname}${release}${shared_ext}$major'
19418 shlibpath_var=LD_LIBRARY_PATH
19419 shlibpath_overrides_runpath=yes
19420 hardcode_into_libs=yes
19421 # ldd complains unless libraries are executable
19422 postinstall_cmds='chmod +x $lib'
19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19429 shlibpath_var=LD_LIBRARY_PATH
19430 shlibpath_overrides_runpath=yes
19431 if test "$with_gnu_ld" = yes; then
19439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19440 soname_spec='${libname}${release}${shared_ext}$major'
19441 shlibpath_var=LD_LIBRARY_PATH
19442 case $host_vendor in
19444 shlibpath_overrides_runpath=no
19446 export_dynamic_flag_spec='${wl}-Blargedynsym'
19447 runpath_var=LD_RUN_PATH
19455 shlibpath_overrides_runpath=no
19456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19462 if test -d /usr/nec ;then
19464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19465 soname_spec='$libname${shared_ext}.$major'
19466 shlibpath_var=LD_LIBRARY_PATH
19470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19471 version_type=freebsd-elf
19474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19475 soname_spec='${libname}${release}${shared_ext}$major'
19476 shlibpath_var=LD_LIBRARY_PATH
19477 hardcode_into_libs=yes
19478 if test "$with_gnu_ld" = yes; then
19479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19480 shlibpath_overrides_runpath=no
19482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19483 shlibpath_overrides_runpath=yes
19486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19490 sys_lib_dlsearch_path_spec='/usr/lib'
19495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19496 soname_spec='${libname}${release}${shared_ext}$major'
19497 shlibpath_var=LD_LIBRARY_PATH
19504 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19505 $as_echo "$dynamic_linker" >&6; }
19506 test "$dynamic_linker" = no && can_build_shared=no
19508 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19509 $as_echo_n "(cached) " >&6
19511 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19516 $as_echo_n "(cached) " >&6
19518 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19521 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19523 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19524 if test "$GCC" = yes; then
19525 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19528 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19529 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19530 hardcode_action_GCJ=
19531 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19532 test -n "$runpath_var_GCJ" || \
19533 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19535 # We can hardcode non-existant directories.
19536 if test "$hardcode_direct_GCJ" != no &&
19537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19538 # have to relink, otherwise we might link with an installed library
19539 # when we should be linking with a yet-to-be-installed one
19540 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19541 test "$hardcode_minus_L_GCJ" != no; then
19542 # Linking always hardcodes the temporary library directory.
19543 hardcode_action_GCJ=relink
19545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19546 hardcode_action_GCJ=immediate
19549 # We cannot hardcode anything, or else we can only hardcode existing
19551 hardcode_action_GCJ=unsupported
19553 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19554 $as_echo "$hardcode_action_GCJ" >&6; }
19556 if test "$hardcode_action_GCJ" = relink; then
19557 # Fast installation is not supported
19558 enable_fast_install=no
19559 elif test "$shlibpath_overrides_runpath" = yes ||
19560 test "$enable_shared" = no; then
19561 # Fast installation is not necessary
19562 enable_fast_install=needless
19566 # The else clause should only fire when bootstrapping the
19567 # libtool distribution, otherwise you forgot to ship ltmain.sh
19568 # with your package, and you will get complaints that there are
19569 # no rules to generate ltmain.sh.
19570 if test -f "$ltmain"; then
19571 # See if we are running on zsh, and set the options which allow our commands through
19572 # without removal of \ escapes.
19573 if test -n "${ZSH_VERSION+set}" ; then
19574 setopt NO_GLOB_SUBST
19576 # Now quote all the things that may contain metacharacters while being
19577 # careful not to overquote the AC_SUBSTed values. We take copies of the
19578 # variables and quote the copies for generation of the libtool script.
19579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19581 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19582 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19583 deplibs_check_method reload_flag reload_cmds need_locks \
19584 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19585 lt_cv_sys_global_symbol_to_c_name_address \
19586 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19587 old_postinstall_cmds old_postuninstall_cmds \
19591 lt_prog_compiler_wl_GCJ \
19592 lt_prog_compiler_pic_GCJ \
19593 lt_prog_compiler_static_GCJ \
19594 lt_prog_compiler_no_builtin_flag_GCJ \
19595 export_dynamic_flag_spec_GCJ \
19596 thread_safe_flag_spec_GCJ \
19597 whole_archive_flag_spec_GCJ \
19598 enable_shared_with_static_runtimes_GCJ \
19599 old_archive_cmds_GCJ \
19600 old_archive_from_new_cmds_GCJ \
19601 predep_objects_GCJ \
19602 postdep_objects_GCJ \
19605 compiler_lib_search_path_GCJ \
19606 compiler_lib_search_dirs_GCJ \
19608 archive_expsym_cmds_GCJ \
19609 postinstall_cmds_GCJ \
19610 postuninstall_cmds_GCJ \
19611 old_archive_from_expsyms_cmds_GCJ \
19612 allow_undefined_flag_GCJ \
19613 no_undefined_flag_GCJ \
19614 export_symbols_cmds_GCJ \
19615 hardcode_libdir_flag_spec_GCJ \
19616 hardcode_libdir_flag_spec_ld_GCJ \
19617 hardcode_libdir_separator_GCJ \
19618 hardcode_automatic_GCJ \
19620 module_expsym_cmds_GCJ \
19621 lt_cv_prog_compiler_c_o_GCJ \
19622 fix_srcfile_path_GCJ \
19623 exclude_expsyms_GCJ \
19624 include_expsyms_GCJ; do
19627 old_archive_cmds_GCJ | \
19628 old_archive_from_new_cmds_GCJ | \
19629 archive_cmds_GCJ | \
19630 archive_expsym_cmds_GCJ | \
19631 module_cmds_GCJ | \
19632 module_expsym_cmds_GCJ | \
19633 old_archive_from_expsyms_cmds_GCJ | \
19634 export_symbols_cmds_GCJ | \
19635 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19636 postinstall_cmds | postuninstall_cmds | \
19637 old_postinstall_cmds | old_postuninstall_cmds | \
19638 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19639 # Double-quote double-evaled strings.
19640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19649 *'\$0 --fallback-echo"')
19650 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19656 cat <<__EOF__ >> "$cfgfile"
19657 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19659 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19661 # Shell to use when invoking shell scripts.
19664 # Whether or not to build shared libraries.
19665 build_libtool_libs=$enable_shared
19667 # Whether or not to build static libraries.
19668 build_old_libs=$enable_static
19670 # Whether or not to add -lc for building shared libraries.
19671 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19673 # Whether or not to disallow shared libs when runtime libs are static
19674 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19676 # Whether or not to optimize for fast installation.
19677 fast_install=$enable_fast_install
19680 host_alias=$host_alias
19684 # The build system.
19685 build_alias=$build_alias
19689 # An echo program that does not interpret backslashes.
19694 AR_FLAGS=$lt_AR_FLAGS
19699 # LTCC compiler flags.
19700 LTCFLAGS=$lt_LTCFLAGS
19702 # A language-specific compiler.
19703 CC=$lt_compiler_GCJ
19705 # Is the compiler the GNU C compiler?
19711 # The linker used to build libraries.
19714 # Whether we need hard or soft links.
19717 # A BSD-compatible nm program.
19720 # A symbol stripping program
19723 # Used to examine libraries when file_magic_cmd begins "file"
19724 MAGIC_CMD=$MAGIC_CMD
19726 # Used on cygwin: DLL creation program.
19729 # Used on cygwin: object dumper.
19732 # Used on cygwin: assembler.
19735 # The name of the directory that contains temporary libtool files.
19738 # How to create reloadable object files.
19739 reload_flag=$lt_reload_flag
19740 reload_cmds=$lt_reload_cmds
19742 # How to pass a linker flag through the compiler.
19743 wl=$lt_lt_prog_compiler_wl_GCJ
19745 # Object file suffix (normally "o").
19746 objext="$ac_objext"
19748 # Old archive suffix (normally "a").
19751 # Shared library suffix (normally ".so").
19752 shrext_cmds='$shrext_cmds'
19754 # Executable file suffix (normally "").
19757 # Additional compiler flags for building library objects.
19758 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19761 # What is the maximum length of a command?
19762 max_cmd_len=$lt_cv_sys_max_cmd_len
19764 # Does compiler simultaneously support -c and -o options?
19765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19767 # Must we lock files when doing compilation?
19768 need_locks=$lt_need_locks
19770 # Do we need the lib prefix for modules?
19771 need_lib_prefix=$need_lib_prefix
19773 # Do we need a version for libraries?
19774 need_version=$need_version
19776 # Whether dlopen is supported.
19777 dlopen_support=$enable_dlopen
19779 # Whether dlopen of programs is supported.
19780 dlopen_self=$enable_dlopen_self
19782 # Whether dlopen of statically linked programs is supported.
19783 dlopen_self_static=$enable_dlopen_self_static
19785 # Compiler flag to prevent dynamic linking.
19786 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19788 # Compiler flag to turn off builtin functions.
19789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19791 # Compiler flag to allow reflexive dlopens.
19792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19794 # Compiler flag to generate shared objects directly from archives.
19795 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19797 # Compiler flag to generate thread-safe objects.
19798 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19800 # Library versioning type.
19801 version_type=$version_type
19803 # Format of library name prefix.
19804 libname_spec=$lt_libname_spec
19806 # List of archive names. First name is the real one, the rest are links.
19807 # The last name is the one that the linker finds with -lNAME.
19808 library_names_spec=$lt_library_names_spec
19810 # The coded name of the library, if different from the real name.
19811 soname_spec=$lt_soname_spec
19813 # Commands used to build and install an old-style archive.
19815 old_archive_cmds=$lt_old_archive_cmds_GCJ
19816 old_postinstall_cmds=$lt_old_postinstall_cmds
19817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19819 # Create an old-style archive from a shared archive.
19820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19822 # Create a temporary old-style archive to link instead of a shared archive.
19823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19825 # Commands used to build and install a shared archive.
19826 archive_cmds=$lt_archive_cmds_GCJ
19827 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19828 postinstall_cmds=$lt_postinstall_cmds
19829 postuninstall_cmds=$lt_postuninstall_cmds
19831 # Commands used to build a loadable module (assumed same as above if empty)
19832 module_cmds=$lt_module_cmds_GCJ
19833 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19835 # Commands to strip libraries.
19836 old_striplib=$lt_old_striplib
19837 striplib=$lt_striplib
19839 # Dependencies to place before the objects being linked to create a
19841 predep_objects=$lt_predep_objects_GCJ
19843 # Dependencies to place after the objects being linked to create a
19845 postdep_objects=$lt_postdep_objects_GCJ
19847 # Dependencies to place before the objects being linked to create a
19849 predeps=$lt_predeps_GCJ
19851 # Dependencies to place after the objects being linked to create a
19853 postdeps=$lt_postdeps_GCJ
19855 # The directories searched by this compiler when creating a shared
19857 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19859 # The library search path used internally by the compiler when linking
19860 # a shared library.
19861 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19863 # Method to check whether dependent libraries are shared objects.
19864 deplibs_check_method=$lt_deplibs_check_method
19866 # Command to use when deplibs_check_method == file_magic.
19867 file_magic_cmd=$lt_file_magic_cmd
19869 # Flag that allows shared libraries with undefined symbols to be built.
19870 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19872 # Flag that forces no undefined symbols.
19873 no_undefined_flag=$lt_no_undefined_flag_GCJ
19875 # Commands used to finish a libtool library installation in a directory.
19876 finish_cmds=$lt_finish_cmds
19878 # Same as above, but a single script fragment to be evaled but not shown.
19879 finish_eval=$lt_finish_eval
19881 # Take the output of nm and produce a listing of raw symbols and C names.
19882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19884 # Transform the output of nm in a proper C declaration
19885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19887 # Transform the output of nm in a C name address pair
19888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19890 # This is the shared library runtime path variable.
19891 runpath_var=$runpath_var
19893 # This is the shared library path variable.
19894 shlibpath_var=$shlibpath_var
19896 # Is shlibpath searched before the hard-coded library search path?
19897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19899 # How to hardcode a shared library path into an executable.
19900 hardcode_action=$hardcode_action_GCJ
19902 # Whether we should hardcode library paths into libraries.
19903 hardcode_into_libs=$hardcode_into_libs
19905 # Flag to hardcode \$libdir into a binary during linking.
19906 # This must work even if \$libdir does not exist.
19907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19909 # If ld is used when linking, flag to hardcode \$libdir into
19910 # a binary during linking. This must work even if \$libdir does
19912 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19914 # Whether we need a single -rpath flag with a separated argument.
19915 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19917 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19918 # resulting binary.
19919 hardcode_direct=$hardcode_direct_GCJ
19921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19922 # resulting binary.
19923 hardcode_minus_L=$hardcode_minus_L_GCJ
19925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19926 # the resulting binary.
19927 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19929 # Set to yes if building a shared library automatically hardcodes DIR into the library
19930 # and all subsequent libraries and executables linked against it.
19931 hardcode_automatic=$hardcode_automatic_GCJ
19933 # Variables whose values should be saved in libtool wrapper scripts and
19934 # restored at relink time.
19935 variables_saved_for_relink="$variables_saved_for_relink"
19937 # Whether libtool must link a program against all its dependency libraries.
19938 link_all_deplibs=$link_all_deplibs_GCJ
19940 # Compile-time system search path for libraries
19941 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19943 # Run-time system search path for libraries
19944 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19946 # Fix the shell variable \$srcfile for the compiler.
19947 fix_srcfile_path=$lt_fix_srcfile_path
19949 # Set to yes if exported symbols are required.
19950 always_export_symbols=$always_export_symbols_GCJ
19952 # The commands to list exported symbols.
19953 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19955 # The commands to extract the exported symbol list from a shared archive.
19956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19958 # Symbols that should not be listed in the preloaded symbols.
19959 exclude_expsyms=$lt_exclude_expsyms_GCJ
19961 # Symbols that must always be exported.
19962 include_expsyms=$lt_include_expsyms_GCJ
19964 # ### END LIBTOOL TAG CONFIG: $tagname
19970 # If there is no Makefile yet, we rely on a make rule to execute
19971 # `config.status --recheck' to rerun these tests and create the
19972 # libtool script then.
19973 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19974 if test -f "$ltmain_in"; then
19975 test -f Makefile && make "$ltmain"
19981 ac_cpp='$CPP $CPPFLAGS'
19982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996 # Source file extension for RC test sources.
19999 # Object file extension for compiled RC test sources.
20003 # Code to be used in simple compile tests
20004 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20006 # Code to be used in simple link tests
20007 lt_simple_link_test_code="$lt_simple_compile_test_code"
20009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20011 # If no C compiler was specified, use CC.
20014 # If no C compiler flags were specified, use CFLAGS.
20015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20017 # Allow CC to be a program name with arguments.
20021 # save warnings/boilerplate of simple test code
20022 ac_outfile=conftest.$ac_objext
20023 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20025 _lt_compiler_boilerplate=`cat conftest.err`
20028 ac_outfile=conftest.$ac_objext
20029 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20031 _lt_linker_boilerplate=`cat conftest.err`
20035 # Allow CC to be a program name with arguments.
20040 for cc_temp in $compiler""; do
20042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20050 lt_cv_prog_compiler_c_o_RC=yes
20052 # The else clause should only fire when bootstrapping the
20053 # libtool distribution, otherwise you forgot to ship ltmain.sh
20054 # with your package, and you will get complaints that there are
20055 # no rules to generate ltmain.sh.
20056 if test -f "$ltmain"; then
20057 # See if we are running on zsh, and set the options which allow our commands through
20058 # without removal of \ escapes.
20059 if test -n "${ZSH_VERSION+set}" ; then
20060 setopt NO_GLOB_SUBST
20062 # Now quote all the things that may contain metacharacters while being
20063 # careful not to overquote the AC_SUBSTed values. We take copies of the
20064 # variables and quote the copies for generation of the libtool script.
20065 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20067 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20068 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20069 deplibs_check_method reload_flag reload_cmds need_locks \
20070 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20071 lt_cv_sys_global_symbol_to_c_name_address \
20072 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20073 old_postinstall_cmds old_postuninstall_cmds \
20077 lt_prog_compiler_wl_RC \
20078 lt_prog_compiler_pic_RC \
20079 lt_prog_compiler_static_RC \
20080 lt_prog_compiler_no_builtin_flag_RC \
20081 export_dynamic_flag_spec_RC \
20082 thread_safe_flag_spec_RC \
20083 whole_archive_flag_spec_RC \
20084 enable_shared_with_static_runtimes_RC \
20085 old_archive_cmds_RC \
20086 old_archive_from_new_cmds_RC \
20087 predep_objects_RC \
20088 postdep_objects_RC \
20091 compiler_lib_search_path_RC \
20092 compiler_lib_search_dirs_RC \
20094 archive_expsym_cmds_RC \
20095 postinstall_cmds_RC \
20096 postuninstall_cmds_RC \
20097 old_archive_from_expsyms_cmds_RC \
20098 allow_undefined_flag_RC \
20099 no_undefined_flag_RC \
20100 export_symbols_cmds_RC \
20101 hardcode_libdir_flag_spec_RC \
20102 hardcode_libdir_flag_spec_ld_RC \
20103 hardcode_libdir_separator_RC \
20104 hardcode_automatic_RC \
20106 module_expsym_cmds_RC \
20107 lt_cv_prog_compiler_c_o_RC \
20108 fix_srcfile_path_RC \
20109 exclude_expsyms_RC \
20110 include_expsyms_RC; do
20113 old_archive_cmds_RC | \
20114 old_archive_from_new_cmds_RC | \
20115 archive_cmds_RC | \
20116 archive_expsym_cmds_RC | \
20118 module_expsym_cmds_RC | \
20119 old_archive_from_expsyms_cmds_RC | \
20120 export_symbols_cmds_RC | \
20121 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20122 postinstall_cmds | postuninstall_cmds | \
20123 old_postinstall_cmds | old_postuninstall_cmds | \
20124 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20125 # Double-quote double-evaled strings.
20126 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20135 *'\$0 --fallback-echo"')
20136 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20142 cat <<__EOF__ >> "$cfgfile"
20143 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20147 # Shell to use when invoking shell scripts.
20150 # Whether or not to build shared libraries.
20151 build_libtool_libs=$enable_shared
20153 # Whether or not to build static libraries.
20154 build_old_libs=$enable_static
20156 # Whether or not to add -lc for building shared libraries.
20157 build_libtool_need_lc=$archive_cmds_need_lc_RC
20159 # Whether or not to disallow shared libs when runtime libs are static
20160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20162 # Whether or not to optimize for fast installation.
20163 fast_install=$enable_fast_install
20166 host_alias=$host_alias
20170 # The build system.
20171 build_alias=$build_alias
20175 # An echo program that does not interpret backslashes.
20180 AR_FLAGS=$lt_AR_FLAGS
20185 # LTCC compiler flags.
20186 LTCFLAGS=$lt_LTCFLAGS
20188 # A language-specific compiler.
20191 # Is the compiler the GNU C compiler?
20197 # The linker used to build libraries.
20200 # Whether we need hard or soft links.
20203 # A BSD-compatible nm program.
20206 # A symbol stripping program
20209 # Used to examine libraries when file_magic_cmd begins "file"
20210 MAGIC_CMD=$MAGIC_CMD
20212 # Used on cygwin: DLL creation program.
20215 # Used on cygwin: object dumper.
20218 # Used on cygwin: assembler.
20221 # The name of the directory that contains temporary libtool files.
20224 # How to create reloadable object files.
20225 reload_flag=$lt_reload_flag
20226 reload_cmds=$lt_reload_cmds
20228 # How to pass a linker flag through the compiler.
20229 wl=$lt_lt_prog_compiler_wl_RC
20231 # Object file suffix (normally "o").
20232 objext="$ac_objext"
20234 # Old archive suffix (normally "a").
20237 # Shared library suffix (normally ".so").
20238 shrext_cmds='$shrext_cmds'
20240 # Executable file suffix (normally "").
20243 # Additional compiler flags for building library objects.
20244 pic_flag=$lt_lt_prog_compiler_pic_RC
20247 # What is the maximum length of a command?
20248 max_cmd_len=$lt_cv_sys_max_cmd_len
20250 # Does compiler simultaneously support -c and -o options?
20251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20253 # Must we lock files when doing compilation?
20254 need_locks=$lt_need_locks
20256 # Do we need the lib prefix for modules?
20257 need_lib_prefix=$need_lib_prefix
20259 # Do we need a version for libraries?
20260 need_version=$need_version
20262 # Whether dlopen is supported.
20263 dlopen_support=$enable_dlopen
20265 # Whether dlopen of programs is supported.
20266 dlopen_self=$enable_dlopen_self
20268 # Whether dlopen of statically linked programs is supported.
20269 dlopen_self_static=$enable_dlopen_self_static
20271 # Compiler flag to prevent dynamic linking.
20272 link_static_flag=$lt_lt_prog_compiler_static_RC
20274 # Compiler flag to turn off builtin functions.
20275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20277 # Compiler flag to allow reflexive dlopens.
20278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20280 # Compiler flag to generate shared objects directly from archives.
20281 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20283 # Compiler flag to generate thread-safe objects.
20284 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20286 # Library versioning type.
20287 version_type=$version_type
20289 # Format of library name prefix.
20290 libname_spec=$lt_libname_spec
20292 # List of archive names. First name is the real one, the rest are links.
20293 # The last name is the one that the linker finds with -lNAME.
20294 library_names_spec=$lt_library_names_spec
20296 # The coded name of the library, if different from the real name.
20297 soname_spec=$lt_soname_spec
20299 # Commands used to build and install an old-style archive.
20301 old_archive_cmds=$lt_old_archive_cmds_RC
20302 old_postinstall_cmds=$lt_old_postinstall_cmds
20303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20305 # Create an old-style archive from a shared archive.
20306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20308 # Create a temporary old-style archive to link instead of a shared archive.
20309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20311 # Commands used to build and install a shared archive.
20312 archive_cmds=$lt_archive_cmds_RC
20313 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20314 postinstall_cmds=$lt_postinstall_cmds
20315 postuninstall_cmds=$lt_postuninstall_cmds
20317 # Commands used to build a loadable module (assumed same as above if empty)
20318 module_cmds=$lt_module_cmds_RC
20319 module_expsym_cmds=$lt_module_expsym_cmds_RC
20321 # Commands to strip libraries.
20322 old_striplib=$lt_old_striplib
20323 striplib=$lt_striplib
20325 # Dependencies to place before the objects being linked to create a
20327 predep_objects=$lt_predep_objects_RC
20329 # Dependencies to place after the objects being linked to create a
20331 postdep_objects=$lt_postdep_objects_RC
20333 # Dependencies to place before the objects being linked to create a
20335 predeps=$lt_predeps_RC
20337 # Dependencies to place after the objects being linked to create a
20339 postdeps=$lt_postdeps_RC
20341 # The directories searched by this compiler when creating a shared
20343 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20345 # The library search path used internally by the compiler when linking
20346 # a shared library.
20347 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20349 # Method to check whether dependent libraries are shared objects.
20350 deplibs_check_method=$lt_deplibs_check_method
20352 # Command to use when deplibs_check_method == file_magic.
20353 file_magic_cmd=$lt_file_magic_cmd
20355 # Flag that allows shared libraries with undefined symbols to be built.
20356 allow_undefined_flag=$lt_allow_undefined_flag_RC
20358 # Flag that forces no undefined symbols.
20359 no_undefined_flag=$lt_no_undefined_flag_RC
20361 # Commands used to finish a libtool library installation in a directory.
20362 finish_cmds=$lt_finish_cmds
20364 # Same as above, but a single script fragment to be evaled but not shown.
20365 finish_eval=$lt_finish_eval
20367 # Take the output of nm and produce a listing of raw symbols and C names.
20368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20370 # Transform the output of nm in a proper C declaration
20371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20373 # Transform the output of nm in a C name address pair
20374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20376 # This is the shared library runtime path variable.
20377 runpath_var=$runpath_var
20379 # This is the shared library path variable.
20380 shlibpath_var=$shlibpath_var
20382 # Is shlibpath searched before the hard-coded library search path?
20383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20385 # How to hardcode a shared library path into an executable.
20386 hardcode_action=$hardcode_action_RC
20388 # Whether we should hardcode library paths into libraries.
20389 hardcode_into_libs=$hardcode_into_libs
20391 # Flag to hardcode \$libdir into a binary during linking.
20392 # This must work even if \$libdir does not exist.
20393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20395 # If ld is used when linking, flag to hardcode \$libdir into
20396 # a binary during linking. This must work even if \$libdir does
20398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20400 # Whether we need a single -rpath flag with a separated argument.
20401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20404 # resulting binary.
20405 hardcode_direct=$hardcode_direct_RC
20407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20408 # resulting binary.
20409 hardcode_minus_L=$hardcode_minus_L_RC
20411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20412 # the resulting binary.
20413 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20415 # Set to yes if building a shared library automatically hardcodes DIR into the library
20416 # and all subsequent libraries and executables linked against it.
20417 hardcode_automatic=$hardcode_automatic_RC
20419 # Variables whose values should be saved in libtool wrapper scripts and
20420 # restored at relink time.
20421 variables_saved_for_relink="$variables_saved_for_relink"
20423 # Whether libtool must link a program against all its dependency libraries.
20424 link_all_deplibs=$link_all_deplibs_RC
20426 # Compile-time system search path for libraries
20427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20429 # Run-time system search path for libraries
20430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20432 # Fix the shell variable \$srcfile for the compiler.
20433 fix_srcfile_path=$lt_fix_srcfile_path
20435 # Set to yes if exported symbols are required.
20436 always_export_symbols=$always_export_symbols_RC
20438 # The commands to list exported symbols.
20439 export_symbols_cmds=$lt_export_symbols_cmds_RC
20441 # The commands to extract the exported symbol list from a shared archive.
20442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20444 # Symbols that should not be listed in the preloaded symbols.
20445 exclude_expsyms=$lt_exclude_expsyms_RC
20447 # Symbols that must always be exported.
20448 include_expsyms=$lt_include_expsyms_RC
20450 # ### END LIBTOOL TAG CONFIG: $tagname
20456 # If there is no Makefile yet, we rely on a make rule to execute
20457 # `config.status --recheck' to rerun these tests and create the
20458 # libtool script then.
20459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20460 if test -f "$ltmain_in"; then
20461 test -f Makefile && make "$ltmain"
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20478 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20479 { (exit 1); exit 1; }; }
20483 # Append the new tag name to the list of available tags.
20484 if test -n "$tagname" ; then
20485 available_tags="$available_tags $tagname"
20491 # Now substitute the updated list of available tags.
20492 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20493 mv "${ofile}T" "$ofile"
20497 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20498 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20499 { (exit 1); exit 1; }; }
20505 # This can be used to rebuild libtool when needed
20506 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20508 # Always use our own libtool.
20509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20511 # Prevent multiple expansion
20532 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
20533 $as_echo_n "checking whether ln -s works... " >&6; }
20535 if test "$LN_S" = "ln -s"; then
20536 { $as_echo "$as_me:$LINENO: result: yes" >&5
20537 $as_echo "yes" >&6; }
20539 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20540 $as_echo "no, using $LN_S" >&6; }
20547 PCRE_DATE="2009-04-11"
20554 # Set a more sensible default value for $(htmldir).
20555 if test "x$htmldir" = 'x${docdir}'
20557 htmldir='${docdir}/html'
20560 # Handle --disable-cpp
20561 # Check whether --enable-cpp was given.
20562 if test "${enable_cpp+set}" = set; then
20563 enableval=$enable_cpp;
20569 # Handle --enable-rebuild-chartables
20570 # Check whether --enable-rebuild-chartables was given.
20571 if test "${enable_rebuild_chartables+set}" = set; then
20572 enableval=$enable_rebuild_chartables;
20574 enable_rebuild_chartables=no
20578 # Handle --enable-utf8 (disabled by default)
20579 # Check whether --enable-utf8 was given.
20580 if test "${enable_utf8+set}" = set; then
20581 enableval=$enable_utf8;
20587 # Handle --enable-unicode-properties
20588 # Check whether --enable-unicode-properties was given.
20589 if test "${enable_unicode_properties+set}" = set; then
20590 enableval=$enable_unicode_properties;
20592 enable_unicode_properties=no
20596 # Handle --enable-newline=NL
20598 # Separate newline options
20600 # Check whether --enable-newline-is-cr was given.
20601 if test "${enable_newline_is_cr+set}" = set; then
20602 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
20605 # Check whether --enable-newline-is-lf was given.
20606 if test "${enable_newline_is_lf+set}" = set; then
20607 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
20610 # Check whether --enable-newline-is-crlf was given.
20611 if test "${enable_newline_is_crlf+set}" = set; then
20612 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
20615 # Check whether --enable-newline-is-anycrlf was given.
20616 if test "${enable_newline_is_anycrlf+set}" = set; then
20617 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
20620 # Check whether --enable-newline-is-any was given.
20621 if test "${enable_newline_is_any+set}" = set; then
20622 enableval=$enable_newline_is_any; ac_pcre_newline=any
20625 enable_newline="$ac_pcre_newline"
20627 # Handle --enable-bsr-anycrlf
20628 # Check whether --enable-bsr-anycrlf was given.
20629 if test "${enable_bsr_anycrlf+set}" = set; then
20630 enableval=$enable_bsr_anycrlf;
20632 enable_bsr_anycrlf=no
20636 # Handle --enable-ebcdic
20637 # Check whether --enable-ebcdic was given.
20638 if test "${enable_ebcdic+set}" = set; then
20639 enableval=$enable_ebcdic;
20645 # Handle --disable-stack-for-recursion
20646 # Check whether --enable-stack-for-recursion was given.
20647 if test "${enable_stack_for_recursion+set}" = set; then
20648 enableval=$enable_stack_for_recursion;
20650 enable_stack_for_recursion=yes
20654 # Handle --enable-pcregrep-libz
20655 # Check whether --enable-pcregrep-libz was given.
20656 if test "${enable_pcregrep_libz+set}" = set; then
20657 enableval=$enable_pcregrep_libz;
20659 enable_pcregrep_libz=no
20663 # Handle --enable-pcregrep-libbz2
20664 # Check whether --enable-pcregrep-libbz2 was given.
20665 if test "${enable_pcregrep_libbz2+set}" = set; then
20666 enableval=$enable_pcregrep_libbz2;
20668 enable_pcregrep_libbz2=no
20672 # Handle --enable-pcretest-libreadline
20673 # Check whether --enable-pcretest-libreadline was given.
20674 if test "${enable_pcretest_libreadline+set}" = set; then
20675 enableval=$enable_pcretest_libreadline;
20677 enable_pcretest_libreadline=no
20681 # Handle --with-posix-malloc-threshold=NBYTES
20683 # Check whether --with-posix-malloc-threshold was given.
20684 if test "${with_posix_malloc_threshold+set}" = set; then
20685 withval=$with_posix_malloc_threshold;
20687 with_posix_malloc_threshold=10
20691 # Handle --with-link-size=N
20693 # Check whether --with-link-size was given.
20694 if test "${with_link_size+set}" = set; then
20695 withval=$with_link_size;
20701 # Handle --with-match-limit=N
20703 # Check whether --with-match-limit was given.
20704 if test "${with_match_limit+set}" = set; then
20705 withval=$with_match_limit;
20707 with_match_limit=10000000
20711 # Handle --with-match-limit_recursion=N
20713 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
20714 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
20715 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
20716 # different numeric value (or even the same numeric value as MATCH_LIMIT,
20717 # though no longer defined in terms of the latter).
20720 # Check whether --with-match-limit-recursion was given.
20721 if test "${with_match_limit_recursion+set}" = set; then
20722 withval=$with_match_limit_recursion;
20724 with_match_limit_recursion=MATCH_LIMIT
20728 # Make sure that if enable_unicode_properties was set, that UTF-8 support
20731 if test "x$enable_unicode_properties" = "xyes"
20733 if test "x$enable_utf8" = "xno"
20735 { { $as_echo "$as_me:$LINENO: error: support for Unicode properties requires UTF-8 support" >&5
20736 $as_echo "$as_me: error: support for Unicode properties requires UTF-8 support" >&2;}
20737 { (exit 1); exit 1; }; }
20742 if test "x$enable_utf8" = "xunset"
20747 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
20748 # Also check that UTF-8 support is not requested, because PCRE cannot handle
20749 # EBCDIC and UTF-8 in the same build. To do so it would need to use different
20750 # character constants depending on the mode.
20752 if test "x$enable_ebcdic" = "xyes"
20754 enable_rebuild_chartables=yes
20755 if test "x$enable_utf8" = "xyes"
20757 { { $as_echo "$as_me:$LINENO: error: support for EBCDIC and UTF-8 cannot be enabled at the same time" >&5
20758 $as_echo "$as_me: error: support for EBCDIC and UTF-8 cannot be enabled at the same time" >&2;}
20759 { (exit 1); exit 1; }; }
20763 # Convert the newline identifier into the appropriate integer value.
20764 case "$enable_newline" in
20765 lf) ac_pcre_newline_value=10 ;;
20766 cr) ac_pcre_newline_value=13 ;;
20767 crlf) ac_pcre_newline_value=3338 ;;
20768 anycrlf) ac_pcre_newline_value=-2 ;;
20769 any) ac_pcre_newline_value=-1 ;;
20771 { { $as_echo "$as_me:$LINENO: error: invalid argument \"$enable_newline\" to --enable-newline option" >&5
20772 $as_echo "$as_me: error: invalid argument \"$enable_newline\" to --enable-newline option" >&2;}
20773 { (exit 1); exit 1; }; }
20777 # Check argument to --with-link-size
20778 case "$with_link_size" in
20781 { { $as_echo "$as_me:$LINENO: error: invalid argument \"$with_link_size\" to --with-link-size option" >&5
20782 $as_echo "$as_me: error: invalid argument \"$with_link_size\" to --with-link-size option" >&2;}
20783 { (exit 1); exit 1; }; }
20790 # Checks for header files.
20791 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20792 $as_echo_n "checking for ANSI C header files... " >&6; }
20793 if test "${ac_cv_header_stdc+set}" = set; then
20794 $as_echo_n "(cached) " >&6
20796 cat >conftest.$ac_ext <<_ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 #include <stdlib.h>
20803 #include <stdarg.h>
20804 #include <string.h>
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20822 $as_echo "$ac_try_echo") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_cv_header_stdc=yes
20835 $as_echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 ac_cv_header_stdc=no
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 if test $ac_cv_header_stdc = yes; then
20844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <string.h>
20854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20855 $EGREP "memchr" >/dev/null 2>&1; then
20858 ac_cv_header_stdc=no
20864 if test $ac_cv_header_stdc = yes; then
20865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20866 cat >conftest.$ac_ext <<_ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 #include <stdlib.h>
20875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20876 $EGREP "free" >/dev/null 2>&1; then
20879 ac_cv_header_stdc=no
20885 if test $ac_cv_header_stdc = yes; then
20886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20887 if test "$cross_compiling" = yes; then
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20897 #include <stdlib.h>
20898 #if ((' ' & 0x0FF) == 0x020)
20899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20902 # define ISLOWER(c) \
20903 (('a' <= (c) && (c) <= 'i') \
20904 || ('j' <= (c) && (c) <= 'r') \
20905 || ('s' <= (c) && (c) <= 'z'))
20906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20914 for (i = 0; i < 256; i++)
20915 if (XOR (islower (i), ISLOWER (i))
20916 || toupper (i) != TOUPPER (i))
20921 rm -f conftest$ac_exeext
20922 if { (ac_try="$ac_link"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20928 $as_echo "$ac_try_echo") >&5
20929 (eval "$ac_link") 2>&5
20931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20933 { (case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939 (eval "$ac_try") 2>&5
20941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20945 $as_echo "$as_me: program exited with status $ac_status" >&5
20946 $as_echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ( exit $ac_status )
20950 ac_cv_header_stdc=no
20952 rm -rf conftest.dSYM
20953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20960 $as_echo "$ac_cv_header_stdc" >&6; }
20961 if test $ac_cv_header_stdc = yes; then
20963 cat >>confdefs.h <<\_ACEOF
20964 #define STDC_HEADERS 1
20974 for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
20976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 $as_echo_n "checking for $ac_header... " >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981 $as_echo_n "(cached) " >&6
20983 ac_res=`eval 'as_val=${'$as_ac_Header'}
20984 $as_echo "$as_val"'`
20985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20986 $as_echo "$ac_res" >&6; }
20988 # Is the header compilable?
20989 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20990 $as_echo_n "checking $ac_header usability... " >&6; }
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 $ac_includes_default
20998 #include <$ac_header>
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21007 $as_echo "$ac_try_echo") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest.$ac_objext; then
21018 ac_header_compiler=yes
21020 $as_echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ac_header_compiler=no
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21028 $as_echo "$ac_header_compiler" >&6; }
21030 # Is the header present?
21031 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21032 $as_echo_n "checking $ac_header presence... " >&6; }
21033 cat >conftest.$ac_ext <<_ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <$ac_header>
21041 if { (ac_try="$ac_cpp conftest.$ac_ext"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21047 $as_echo "$ac_try_echo") >&5
21048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21050 grep -v '^ *+' conftest.er1 >conftest.err
21052 cat conftest.err >&5
21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } >/dev/null && {
21055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21056 test ! -s conftest.err
21058 ac_header_preproc=yes
21060 $as_echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_header_preproc=no
21066 rm -f conftest.err conftest.$ac_ext
21067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21068 $as_echo "$ac_header_preproc" >&6; }
21070 # So? What about this header?
21071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21074 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21077 ac_header_preproc=yes
21080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21081 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21083 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21085 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21087 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21091 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 $as_echo_n "checking for $ac_header... " >&6; }
21097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21098 $as_echo_n "(cached) " >&6
21100 eval "$as_ac_Header=\$ac_header_preproc"
21102 ac_res=`eval 'as_val=${'$as_ac_Header'}
21103 $as_echo "$as_val"'`
21104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21105 $as_echo "$ac_res" >&6; }
21108 as_val=`eval 'as_val=${'$as_ac_Header'}
21109 $as_echo "$as_val"'`
21110 if test "x$as_val" = x""yes; then
21111 cat >>confdefs.h <<_ACEOF
21112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21120 # The files below are C++ header files.
21121 pcre_have_type_traits="0"
21122 pcre_have_bits_type_traits="0"
21123 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
21126 ac_cpp='$CXXCPP $CPPFLAGS'
21127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21132 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
21133 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
21134 # we want to make one an alias for the other. Different systems do
21135 # this in different ways. Some systems, for instance, can do it via
21136 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
21137 OLD_LDFLAGS="$LDFLAGS"
21138 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
21139 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
21140 { $as_echo "$as_me:$LINENO: checking for alias support in the linker" >&5
21141 $as_echo_n "checking for alias support in the linker... " >&6; }
21142 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
21143 # We try to run the linker with this new ld flag. If the link fails,
21144 # we give up and remove the new flag from LDFLAGS.
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 namespace pcrecpp {
21152 class RE { static int no_arg; };
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171 (eval "$ac_link") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_cxx_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest$ac_exeext && {
21181 test "$cross_compiling" = yes ||
21182 $as_test_x conftest$ac_exeext
21184 { $as_echo "$as_me:$LINENO: result: yes" >&5
21185 $as_echo "yes" >&6; };
21186 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
21189 $as_echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21192 { $as_echo "$as_me:$LINENO: result: no" >&5
21193 $as_echo "no" >&6; }
21196 rm -rf conftest.dSYM
21197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21198 conftest$ac_exeext conftest.$ac_ext
21200 LDFLAGS="$OLD_LDFLAGS"
21202 # We could be more clever here, given we're doing AC_SUBST with this
21203 # (eg set a var to be the name of the include file we want). But we're not
21204 # so it's easy to change back to 'regular' autoconf vars if we needed to.
21207 for ac_header in string
21209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21212 $as_echo_n "checking for $ac_header... " >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 $as_echo_n "(cached) " >&6
21216 ac_res=`eval 'as_val=${'$as_ac_Header'}
21217 $as_echo "$as_val"'`
21218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21219 $as_echo "$ac_res" >&6; }
21221 # Is the header compilable?
21222 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21223 $as_echo_n "checking $ac_header usability... " >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <$ac_header>
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21240 $as_echo "$ac_try_echo") >&5
21241 (eval "$ac_compile") 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_cxx_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest.$ac_objext; then
21251 ac_header_compiler=yes
21253 $as_echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21256 ac_header_compiler=no
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21261 $as_echo "$ac_header_compiler" >&6; }
21263 # Is the header present?
21264 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21265 $as_echo_n "checking $ac_header presence... " >&6; }
21266 cat >conftest.$ac_ext <<_ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21272 #include <$ac_header>
21274 if { (ac_try="$ac_cpp conftest.$ac_ext"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21280 $as_echo "$ac_try_echo") >&5
21281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } >/dev/null && {
21288 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21289 test ! -s conftest.err
21291 ac_header_preproc=yes
21293 $as_echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_header_preproc=no
21299 rm -f conftest.err conftest.$ac_ext
21300 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21301 $as_echo "$ac_header_preproc" >&6; }
21303 # So? What about this header?
21304 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21307 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21310 ac_header_preproc=yes
21313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21314 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21316 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21318 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21320 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21324 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21329 $as_echo_n "checking for $ac_header... " >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21331 $as_echo_n "(cached) " >&6
21333 eval "$as_ac_Header=\$ac_header_preproc"
21335 ac_res=`eval 'as_val=${'$as_ac_Header'}
21336 $as_echo "$as_val"'`
21337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21338 $as_echo "$ac_res" >&6; }
21341 as_val=`eval 'as_val=${'$as_ac_Header'}
21342 $as_echo "$as_val"'`
21343 if test "x$as_val" = x""yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21347 pcre_have_cpp_headers="1"
21349 pcre_have_cpp_headers="0"
21355 for ac_header in bits/type_traits.h
21357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21360 $as_echo_n "checking for $ac_header... " >&6; }
21361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21362 $as_echo_n "(cached) " >&6
21364 ac_res=`eval 'as_val=${'$as_ac_Header'}
21365 $as_echo "$as_val"'`
21366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21367 $as_echo "$ac_res" >&6; }
21369 # Is the header compilable?
21370 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21371 $as_echo_n "checking $ac_header usability... " >&6; }
21372 cat >conftest.$ac_ext <<_ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h. */
21378 $ac_includes_default
21379 #include <$ac_header>
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21388 $as_echo "$ac_try_echo") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_cxx_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 ac_header_compiler=yes
21401 $as_echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_header_compiler=no
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21409 $as_echo "$ac_header_compiler" >&6; }
21411 # Is the header present?
21412 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21413 $as_echo_n "checking $ac_header presence... " >&6; }
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <$ac_header>
21422 if { (ac_try="$ac_cpp conftest.$ac_ext"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21428 $as_echo "$ac_try_echo") >&5
21429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } >/dev/null && {
21436 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21437 test ! -s conftest.err
21439 ac_header_preproc=yes
21441 $as_echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ac_header_preproc=no
21447 rm -f conftest.err conftest.$ac_ext
21448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21449 $as_echo "$ac_header_preproc" >&6; }
21451 # So? What about this header?
21452 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21455 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21458 ac_header_preproc=yes
21461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21462 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21464 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21466 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21468 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21472 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21476 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21477 $as_echo_n "checking for $ac_header... " >&6; }
21478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21479 $as_echo_n "(cached) " >&6
21481 eval "$as_ac_Header=\$ac_header_preproc"
21483 ac_res=`eval 'as_val=${'$as_ac_Header'}
21484 $as_echo "$as_val"'`
21485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21486 $as_echo "$ac_res" >&6; }
21489 as_val=`eval 'as_val=${'$as_ac_Header'}
21490 $as_echo "$as_val"'`
21491 if test "x$as_val" = x""yes; then
21492 cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21495 pcre_have_bits_type_traits="1"
21497 pcre_have_bits_type_traits="0"
21503 for ac_header in type_traits.h
21505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21508 $as_echo_n "checking for $ac_header... " >&6; }
21509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21510 $as_echo_n "(cached) " >&6
21512 ac_res=`eval 'as_val=${'$as_ac_Header'}
21513 $as_echo "$as_val"'`
21514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21515 $as_echo "$ac_res" >&6; }
21517 # Is the header compilable?
21518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21519 $as_echo_n "checking $ac_header usability... " >&6; }
21520 cat >conftest.$ac_ext <<_ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 $ac_includes_default
21527 #include <$ac_header>
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21536 $as_echo "$ac_try_echo") >&5
21537 (eval "$ac_compile") 2>conftest.er1
21539 grep -v '^ *+' conftest.er1 >conftest.err
21541 cat conftest.err >&5
21542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } && {
21544 test -z "$ac_cxx_werror_flag" ||
21545 test ! -s conftest.err
21546 } && test -s conftest.$ac_objext; then
21547 ac_header_compiler=yes
21549 $as_echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 ac_header_compiler=no
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21557 $as_echo "$ac_header_compiler" >&6; }
21559 # Is the header present?
21560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21561 $as_echo_n "checking $ac_header presence... " >&6; }
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 #include <$ac_header>
21570 if { (ac_try="$ac_cpp conftest.$ac_ext"
21571 case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21576 $as_echo "$ac_try_echo") >&5
21577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21579 grep -v '^ *+' conftest.er1 >conftest.err
21581 cat conftest.err >&5
21582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } >/dev/null && {
21584 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21585 test ! -s conftest.err
21587 ac_header_preproc=yes
21589 $as_echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21597 $as_echo "$ac_header_preproc" >&6; }
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21606 ac_header_preproc=yes
21609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21625 $as_echo_n "checking for $ac_header... " >&6; }
21626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21627 $as_echo_n "(cached) " >&6
21629 eval "$as_ac_Header=\$ac_header_preproc"
21631 ac_res=`eval 'as_val=${'$as_ac_Header'}
21632 $as_echo "$as_val"'`
21633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21634 $as_echo "$ac_res" >&6; }
21637 as_val=`eval 'as_val=${'$as_ac_Header'}
21638 $as_echo "$as_val"'`
21639 if test "x$as_val" = x""yes; then
21640 cat >>confdefs.h <<_ACEOF
21641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21643 pcre_have_type_traits="1"
21645 pcre_have_type_traits="0"
21652 ac_cpp='$CPP $CPPFLAGS'
21653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21658 # Using AC_SUBST eliminates the need to include config.h in a public .h file
21662 # Conditional compilation
21663 if test "x$enable_cpp" = "xyes"; then
21664 WITH_PCRE_CPP_TRUE=
21665 WITH_PCRE_CPP_FALSE='#'
21667 WITH_PCRE_CPP_TRUE='#'
21668 WITH_PCRE_CPP_FALSE=
21671 if test "x$enable_rebuild_chartables" = "xyes"; then
21672 WITH_REBUILD_CHARTABLES_TRUE=
21673 WITH_REBUILD_CHARTABLES_FALSE='#'
21675 WITH_REBUILD_CHARTABLES_TRUE='#'
21676 WITH_REBUILD_CHARTABLES_FALSE=
21680 # Checks for typedefs, structures, and compiler characteristics.
21682 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21683 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21684 if test "${ac_cv_c_const+set}" = set; then
21685 $as_echo_n "(cached) " >&6
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21697 /* FIXME: Include the comments suggested by Paul. */
21698 #ifndef __cplusplus
21699 /* Ultrix mips cc rejects this. */
21700 typedef int charset[2];
21702 /* SunOS 4.1.1 cc rejects this. */
21703 char const *const *pcpcc;
21705 /* NEC SVR4.0.2 mips cc rejects this. */
21706 struct point {int x, y;};
21707 static struct point const zero = {0,0};
21708 /* AIX XL C 1.02.0.0 rejects this.
21709 It does not let you subtract one const X* pointer from another in
21710 an arm of an if-expression whose if-part is not a constant
21712 const char *g = "string";
21713 pcpcc = &g + (g ? g-g : 0);
21714 /* HPUX 7.0 cc rejects these. */
21716 ppc = (char**) pcpcc;
21717 pcpcc = (char const *const *) ppc;
21718 { /* SCO 3.2v4 cc rejects this. */
21720 char const *s = 0 ? (char *) 0 : (char const *) 0;
21725 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21726 int x[] = {25, 17};
21727 const int *foo = &x[0];
21730 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21731 typedef const int *iptr;
21735 { /* AIX XL C 1.02.0.0 rejects this saying
21736 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21737 struct s { int j; const int *ap[3]; };
21738 struct s *b; b->j = 5;
21740 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21741 const int foo = 10;
21742 if (!foo) return 0;
21744 return !cs[0] && !zero.x;
21751 rm -f conftest.$ac_objext
21752 if { (ac_try="$ac_compile"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1 >conftest.err
21763 cat conftest.err >&5
21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21771 $as_echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21780 $as_echo "$ac_cv_c_const" >&6; }
21781 if test $ac_cv_c_const = no; then
21783 cat >>confdefs.h <<\_ACEOF
21789 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21790 $as_echo_n "checking for size_t... " >&6; }
21791 if test "${ac_cv_type_size_t+set}" = set; then
21792 $as_echo_n "(cached) " >&6
21794 ac_cv_type_size_t=no
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21801 $ac_includes_default
21805 if (sizeof (size_t))
21811 rm -f conftest.$ac_objext
21812 if { (ac_try="$ac_compile"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21818 $as_echo "$ac_try_echo") >&5
21819 (eval "$ac_compile") 2>conftest.er1
21821 grep -v '^ *+' conftest.er1 >conftest.err
21823 cat conftest.err >&5
21824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } && {
21826 test -z "$ac_c_werror_flag" ||
21827 test ! -s conftest.err
21828 } && test -s conftest.$ac_objext; then
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 $ac_includes_default
21839 if (sizeof ((size_t)))
21845 rm -f conftest.$ac_objext
21846 if { (ac_try="$ac_compile"
21847 case "(($ac_try" in
21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 *) ac_try_echo=$ac_try;;
21851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21852 $as_echo "$ac_try_echo") >&5
21853 (eval "$ac_compile") 2>conftest.er1
21855 grep -v '^ *+' conftest.er1 >conftest.err
21857 cat conftest.err >&5
21858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } && {
21860 test -z "$ac_c_werror_flag" ||
21861 test ! -s conftest.err
21862 } && test -s conftest.$ac_objext; then
21865 $as_echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21868 ac_cv_type_size_t=yes
21871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 $as_echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21882 $as_echo "$ac_cv_type_size_t" >&6; }
21883 if test "x$ac_cv_type_size_t" = x""yes; then
21887 cat >>confdefs.h <<_ACEOF
21888 #define size_t unsigned int
21894 pcre_have_strotolonglong=0
21898 for ac_func in strtoq strtoll _strtoi64
21900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21902 $as_echo_n "checking for $ac_func... " >&6; }
21903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21904 $as_echo_n "(cached) " >&6
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21914 #define $ac_func innocuous_$ac_func
21916 /* System header to define __stub macros and hopefully few prototypes,
21917 which can conflict with char $ac_func (); below.
21918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21919 <limits.h> exists even on freestanding compilers. */
21922 # include <limits.h>
21924 # include <assert.h>
21929 /* Override any GCC internal prototype to avoid an error.
21930 Use char because int might match the return type of a GCC
21931 builtin and then its argument prototype would still apply. */
21936 /* The GNU C library defines this for functions which it implements
21937 to always fail with ENOSYS. Some functions are actually named
21938 something starting with __ and the normal name is an alias. */
21939 #if defined __stub_$ac_func || defined __stub___$ac_func
21946 return $ac_func ();
21951 rm -f conftest.$ac_objext conftest$ac_exeext
21952 if { (ac_try="$ac_link"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21958 $as_echo "$ac_try_echo") >&5
21959 (eval "$ac_link") 2>conftest.er1
21961 grep -v '^ *+' conftest.er1 >conftest.err
21963 cat conftest.err >&5
21964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && {
21966 test -z "$ac_c_werror_flag" ||
21967 test ! -s conftest.err
21968 } && test -s conftest$ac_exeext && {
21969 test "$cross_compiling" = yes ||
21970 $as_test_x conftest$ac_exeext
21972 eval "$as_ac_var=yes"
21974 $as_echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 eval "$as_ac_var=no"
21980 rm -rf conftest.dSYM
21981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21982 conftest$ac_exeext conftest.$ac_ext
21984 ac_res=`eval 'as_val=${'$as_ac_var'}
21985 $as_echo "$as_val"'`
21986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21987 $as_echo "$ac_res" >&6; }
21988 as_val=`eval 'as_val=${'$as_ac_var'}
21989 $as_echo "$as_val"'`
21990 if test "x$as_val" = x""yes; then
21991 cat >>confdefs.h <<_ACEOF
21992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21994 pcre_have_strotolonglong="1"; break
21998 # If we can't convert a string to a long long, pretend we don't even
21999 # have a long long.
22000 if test $pcre_have_strotolonglong = "0"; then
22001 pcre_have_long_long="0"
22002 pcre_have_ulong_long="0"
22004 { $as_echo "$as_me:$LINENO: checking for long long" >&5
22005 $as_echo_n "checking for long long... " >&6; }
22006 if test "${ac_cv_type_long_long+set}" = set; then
22007 $as_echo_n "(cached) " >&6
22009 ac_cv_type_long_long=no
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22020 if (sizeof (long long))
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22033 $as_echo "$ac_try_echo") >&5
22034 (eval "$ac_compile") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 $ac_includes_default
22054 if (sizeof ((long long)))
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22067 $as_echo "$ac_try_echo") >&5
22068 (eval "$ac_compile") 2>conftest.er1
22070 grep -v '^ *+' conftest.er1 >conftest.err
22072 cat conftest.err >&5
22073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } && {
22075 test -z "$ac_c_werror_flag" ||
22076 test ! -s conftest.err
22077 } && test -s conftest.$ac_objext; then
22080 $as_echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ac_cv_type_long_long=yes
22086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 $as_echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22097 $as_echo "$ac_cv_type_long_long" >&6; }
22098 if test "x$ac_cv_type_long_long" = x""yes; then
22100 cat >>confdefs.h <<_ACEOF
22101 #define HAVE_LONG_LONG 1
22104 pcre_have_long_long="1"
22106 pcre_have_long_long="0"
22109 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
22110 $as_echo_n "checking for unsigned long long... " >&6; }
22111 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
22112 $as_echo_n "(cached) " >&6
22114 ac_cv_type_unsigned_long_long=no
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 $ac_includes_default
22125 if (sizeof (unsigned long long))
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22138 $as_echo "$ac_try_echo") >&5
22139 (eval "$ac_compile") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1 >conftest.err
22143 cat conftest.err >&5
22144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest.$ac_objext; then
22149 cat >conftest.$ac_ext <<_ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155 $ac_includes_default
22159 if (sizeof ((unsigned long long)))
22165 rm -f conftest.$ac_objext
22166 if { (ac_try="$ac_compile"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22172 $as_echo "$ac_try_echo") >&5
22173 (eval "$ac_compile") 2>conftest.er1
22175 grep -v '^ *+' conftest.er1 >conftest.err
22177 cat conftest.err >&5
22178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && {
22180 test -z "$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 } && test -s conftest.$ac_objext; then
22185 $as_echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_cv_type_unsigned_long_long=yes
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 $as_echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
22202 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
22203 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then
22205 cat >>confdefs.h <<_ACEOF
22206 #define HAVE_UNSIGNED_LONG_LONG 1
22209 pcre_have_ulong_long="1"
22211 pcre_have_ulong_long="0"
22218 # Checks for library functions.
22223 for ac_func in bcopy memmove strerror
22225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22227 $as_echo_n "checking for $ac_func... " >&6; }
22228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22229 $as_echo_n "(cached) " >&6
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22239 #define $ac_func innocuous_$ac_func
22241 /* System header to define __stub macros and hopefully few prototypes,
22242 which can conflict with char $ac_func (); below.
22243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22244 <limits.h> exists even on freestanding compilers. */
22247 # include <limits.h>
22249 # include <assert.h>
22254 /* Override any GCC internal prototype to avoid an error.
22255 Use char because int might match the return type of a GCC
22256 builtin and then its argument prototype would still apply. */
22261 /* The GNU C library defines this for functions which it implements
22262 to always fail with ENOSYS. Some functions are actually named
22263 something starting with __ and the normal name is an alias. */
22264 #if defined __stub_$ac_func || defined __stub___$ac_func
22271 return $ac_func ();
22276 rm -f conftest.$ac_objext conftest$ac_exeext
22277 if { (ac_try="$ac_link"
22278 case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22283 $as_echo "$ac_try_echo") >&5
22284 (eval "$ac_link") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest$ac_exeext && {
22294 test "$cross_compiling" = yes ||
22295 $as_test_x conftest$ac_exeext
22297 eval "$as_ac_var=yes"
22299 $as_echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 eval "$as_ac_var=no"
22305 rm -rf conftest.dSYM
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 conftest$ac_exeext conftest.$ac_ext
22309 ac_res=`eval 'as_val=${'$as_ac_var'}
22310 $as_echo "$as_val"'`
22311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22312 $as_echo "$ac_res" >&6; }
22313 as_val=`eval 'as_val=${'$as_ac_var'}
22314 $as_echo "$as_val"'`
22315 if test "x$as_val" = x""yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 # Check for the availability of libz (aka zlib)
22327 for ac_header in zlib.h
22329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22332 $as_echo_n "checking for $ac_header... " >&6; }
22333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22334 $as_echo_n "(cached) " >&6
22336 ac_res=`eval 'as_val=${'$as_ac_Header'}
22337 $as_echo "$as_val"'`
22338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22339 $as_echo "$ac_res" >&6; }
22341 # Is the header compilable?
22342 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22343 $as_echo_n "checking $ac_header usability... " >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 $ac_includes_default
22351 #include <$ac_header>
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22360 $as_echo "$ac_try_echo") >&5
22361 (eval "$ac_compile") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest.$ac_objext; then
22371 ac_header_compiler=yes
22373 $as_echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_header_compiler=no
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22381 $as_echo "$ac_header_compiler" >&6; }
22383 # Is the header present?
22384 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22385 $as_echo_n "checking $ac_header presence... " >&6; }
22386 cat >conftest.$ac_ext <<_ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h. */
22392 #include <$ac_header>
22394 if { (ac_try="$ac_cpp conftest.$ac_ext"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400 $as_echo "$ac_try_echo") >&5
22401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } >/dev/null && {
22408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22411 ac_header_preproc=yes
22413 $as_echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_header_preproc=no
22419 rm -f conftest.err conftest.$ac_ext
22420 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22421 $as_echo "$ac_header_preproc" >&6; }
22423 # So? What about this header?
22424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22427 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22430 ac_header_preproc=yes
22433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22434 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22436 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22438 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22440 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22444 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22448 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22449 $as_echo_n "checking for $ac_header... " >&6; }
22450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22451 $as_echo_n "(cached) " >&6
22453 eval "$as_ac_Header=\$ac_header_preproc"
22455 ac_res=`eval 'as_val=${'$as_ac_Header'}
22456 $as_echo "$as_val"'`
22457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22458 $as_echo "$ac_res" >&6; }
22461 as_val=`eval 'as_val=${'$as_ac_Header'}
22462 $as_echo "$as_val"'`
22463 if test "x$as_val" = x""yes; then
22464 cat >>confdefs.h <<_ACEOF
22465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22472 { $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
22473 $as_echo_n "checking for gzopen in -lz... " >&6; }
22474 if test "${ac_cv_lib_z_gzopen+set}" = set; then
22475 $as_echo_n "(cached) " >&6
22477 ac_check_lib_save_LIBS=$LIBS
22479 cat >conftest.$ac_ext <<_ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22486 /* Override any GCC internal prototype to avoid an error.
22487 Use char because int might match the return type of a GCC
22488 builtin and then its argument prototype would still apply. */
22501 rm -f conftest.$ac_objext conftest$ac_exeext
22502 if { (ac_try="$ac_link"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22508 $as_echo "$ac_try_echo") >&5
22509 (eval "$ac_link") 2>conftest.er1
22511 grep -v '^ *+' conftest.er1 >conftest.err
22513 cat conftest.err >&5
22514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } && {
22516 test -z "$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 } && test -s conftest$ac_exeext && {
22519 test "$cross_compiling" = yes ||
22520 $as_test_x conftest$ac_exeext
22522 ac_cv_lib_z_gzopen=yes
22524 $as_echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ac_cv_lib_z_gzopen=no
22530 rm -rf conftest.dSYM
22531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22532 conftest$ac_exeext conftest.$ac_ext
22533 LIBS=$ac_check_lib_save_LIBS
22535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
22536 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
22537 if test "x$ac_cv_lib_z_gzopen" = x""yes; then
22542 # Check for the availability of libbz2
22545 for ac_header in bzlib.h
22547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22550 $as_echo_n "checking for $ac_header... " >&6; }
22551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22552 $as_echo_n "(cached) " >&6
22554 ac_res=`eval 'as_val=${'$as_ac_Header'}
22555 $as_echo "$as_val"'`
22556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22557 $as_echo "$ac_res" >&6; }
22559 # Is the header compilable?
22560 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22561 $as_echo_n "checking $ac_header usability... " >&6; }
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22568 $ac_includes_default
22569 #include <$ac_header>
22571 rm -f conftest.$ac_objext
22572 if { (ac_try="$ac_compile"
22573 case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22578 $as_echo "$ac_try_echo") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22589 ac_header_compiler=yes
22591 $as_echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_header_compiler=no
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22599 $as_echo "$ac_header_compiler" >&6; }
22601 # Is the header present?
22602 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22603 $as_echo_n "checking $ac_header presence... " >&6; }
22604 cat >conftest.$ac_ext <<_ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 #include <$ac_header>
22612 if { (ac_try="$ac_cpp conftest.$ac_ext"
22613 case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22618 $as_echo "$ac_try_echo") >&5
22619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } >/dev/null && {
22626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22629 ac_header_preproc=yes
22631 $as_echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 ac_header_preproc=no
22637 rm -f conftest.err conftest.$ac_ext
22638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22639 $as_echo "$ac_header_preproc" >&6; }
22641 # So? What about this header?
22642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22645 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22648 ac_header_preproc=yes
22651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22652 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22654 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22656 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22658 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22660 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22662 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22667 $as_echo_n "checking for $ac_header... " >&6; }
22668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22669 $as_echo_n "(cached) " >&6
22671 eval "$as_ac_Header=\$ac_header_preproc"
22673 ac_res=`eval 'as_val=${'$as_ac_Header'}
22674 $as_echo "$as_val"'`
22675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22676 $as_echo "$ac_res" >&6; }
22679 as_val=`eval 'as_val=${'$as_ac_Header'}
22680 $as_echo "$as_val"'`
22681 if test "x$as_val" = x""yes; then
22682 cat >>confdefs.h <<_ACEOF
22683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22690 { $as_echo "$as_me:$LINENO: checking for BZ2_bzopen in -lbz2" >&5
22691 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
22692 if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then
22693 $as_echo_n "(cached) " >&6
22695 ac_check_lib_save_LIBS=$LIBS
22697 cat >conftest.$ac_ext <<_ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h. */
22704 /* Override any GCC internal prototype to avoid an error.
22705 Use char because int might match the return type of a GCC
22706 builtin and then its argument prototype would still apply. */
22710 char BZ2_bzopen ();
22714 return BZ2_bzopen ();
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22726 $as_echo "$ac_try_echo") >&5
22727 (eval "$ac_link") 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest$ac_exeext && {
22737 test "$cross_compiling" = yes ||
22738 $as_test_x conftest$ac_exeext
22740 ac_cv_lib_bz2_BZ2_bzopen=yes
22742 $as_echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ac_cv_lib_bz2_BZ2_bzopen=no
22748 rm -rf conftest.dSYM
22749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22750 conftest$ac_exeext conftest.$ac_ext
22751 LIBS=$ac_check_lib_save_LIBS
22753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
22754 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
22755 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = x""yes; then
22760 # Check for the availabiity of libreadline
22763 for ac_header in readline/readline.h
22765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22768 $as_echo_n "checking for $ac_header... " >&6; }
22769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22770 $as_echo_n "(cached) " >&6
22772 ac_res=`eval 'as_val=${'$as_ac_Header'}
22773 $as_echo "$as_val"'`
22774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22775 $as_echo "$ac_res" >&6; }
22777 # Is the header compilable?
22778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22779 $as_echo_n "checking $ac_header usability... " >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 $ac_includes_default
22787 #include <$ac_header>
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22796 $as_echo "$ac_try_echo") >&5
22797 (eval "$ac_compile") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && {
22804 test -z "$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22806 } && test -s conftest.$ac_objext; then
22807 ac_header_compiler=yes
22809 $as_echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 ac_header_compiler=no
22815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22817 $as_echo "$ac_header_compiler" >&6; }
22819 # Is the header present?
22820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22821 $as_echo_n "checking $ac_header presence... " >&6; }
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 #include <$ac_header>
22830 if { (ac_try="$ac_cpp conftest.$ac_ext"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22836 $as_echo "$ac_try_echo") >&5
22837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } >/dev/null && {
22844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22847 ac_header_preproc=yes
22849 $as_echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_header_preproc=no
22855 rm -f conftest.err conftest.$ac_ext
22856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22857 $as_echo "$ac_header_preproc" >&6; }
22859 # So? What about this header?
22860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22866 ac_header_preproc=yes
22869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22872 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22876 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22885 $as_echo_n "checking for $ac_header... " >&6; }
22886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22887 $as_echo_n "(cached) " >&6
22889 eval "$as_ac_Header=\$ac_header_preproc"
22891 ac_res=`eval 'as_val=${'$as_ac_Header'}
22892 $as_echo "$as_val"'`
22893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22894 $as_echo "$ac_res" >&6; }
22897 as_val=`eval 'as_val=${'$as_ac_Header'}
22898 $as_echo "$as_val"'`
22899 if test "x$as_val" = x""yes; then
22900 cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22909 for ac_header in readline/history.h
22911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22913 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22914 $as_echo_n "checking for $ac_header... " >&6; }
22915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22916 $as_echo_n "(cached) " >&6
22918 ac_res=`eval 'as_val=${'$as_ac_Header'}
22919 $as_echo "$as_val"'`
22920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22921 $as_echo "$ac_res" >&6; }
22923 # Is the header compilable?
22924 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22925 $as_echo_n "checking $ac_header usability... " >&6; }
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 $ac_includes_default
22933 #include <$ac_header>
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22942 $as_echo "$ac_try_echo") >&5
22943 (eval "$ac_compile") 2>conftest.er1
22945 grep -v '^ *+' conftest.er1 >conftest.err
22947 cat conftest.err >&5
22948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest.$ac_objext; then
22953 ac_header_compiler=yes
22955 $as_echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ac_header_compiler=no
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22963 $as_echo "$ac_header_compiler" >&6; }
22965 # Is the header present?
22966 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22967 $as_echo_n "checking $ac_header presence... " >&6; }
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22974 #include <$ac_header>
22976 if { (ac_try="$ac_cpp conftest.$ac_ext"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22982 $as_echo "$ac_try_echo") >&5
22983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } >/dev/null && {
22990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22993 ac_header_preproc=yes
22995 $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_preproc=no
23001 rm -f conftest.err conftest.$ac_ext
23002 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23003 $as_echo "$ac_header_preproc" >&6; }
23005 # So? What about this header?
23006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23009 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23012 ac_header_preproc=yes
23015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23016 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23018 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23020 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23022 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23026 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23031 $as_echo_n "checking for $ac_header... " >&6; }
23032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 $as_echo_n "(cached) " >&6
23035 eval "$as_ac_Header=\$ac_header_preproc"
23037 ac_res=`eval 'as_val=${'$as_ac_Header'}
23038 $as_echo "$as_val"'`
23039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23040 $as_echo "$ac_res" >&6; }
23043 as_val=`eval 'as_val=${'$as_ac_Header'}
23044 $as_echo "$as_val"'`
23045 if test "x$as_val" = x""yes; then
23046 cat >>confdefs.h <<_ACEOF
23047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23054 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
23055 $as_echo_n "checking for readline in -lreadline... " >&6; }
23056 if test "${ac_cv_lib_readline_readline+set}" = set; then
23057 $as_echo_n "(cached) " >&6
23059 ac_check_lib_save_LIBS=$LIBS
23060 LIBS="-lreadline $LIBS"
23061 cat >conftest.$ac_ext <<_ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23068 /* Override any GCC internal prototype to avoid an error.
23069 Use char because int might match the return type of a GCC
23070 builtin and then its argument prototype would still apply. */
23078 return readline ();
23083 rm -f conftest.$ac_objext conftest$ac_exeext
23084 if { (ac_try="$ac_link"
23085 case "(($ac_try" in
23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087 *) ac_try_echo=$ac_try;;
23089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23090 $as_echo "$ac_try_echo") >&5
23091 (eval "$ac_link") 2>conftest.er1
23093 grep -v '^ *+' conftest.er1 >conftest.err
23095 cat conftest.err >&5
23096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } && {
23098 test -z "$ac_c_werror_flag" ||
23099 test ! -s conftest.err
23100 } && test -s conftest$ac_exeext && {
23101 test "$cross_compiling" = yes ||
23102 $as_test_x conftest$ac_exeext
23104 ac_cv_lib_readline_readline=yes
23106 $as_echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 ac_cv_lib_readline_readline=no
23112 rm -rf conftest.dSYM
23113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23114 conftest$ac_exeext conftest.$ac_ext
23115 LIBS=$ac_check_lib_save_LIBS
23117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
23118 $as_echo "$ac_cv_lib_readline_readline" >&6; }
23119 if test "x$ac_cv_lib_readline_readline" = x""yes; then
23120 HAVE_LIB_READLINE=1
23124 # This facilitates -ansi builds under Linux
23126 if test "x$enable_shared" = "xno" ; then
23128 cat >>confdefs.h <<\_ACEOF
23129 #define PCRE_STATIC 1
23134 # Here is where pcre specific defines are handled
23136 if test "$enable_utf8" = "yes"; then
23138 cat >>confdefs.h <<\_ACEOF
23139 #define SUPPORT_UTF8 /**/
23144 if test "$enable_unicode_properties" = "yes"; then
23146 cat >>confdefs.h <<\_ACEOF
23147 #define SUPPORT_UCP /**/
23152 if test "$enable_stack_for_recursion" = "no"; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define NO_RECURSE /**/
23160 if test "$enable_pcregrep_libz" = "yes"; then
23162 cat >>confdefs.h <<\_ACEOF
23163 #define SUPPORT_LIBZ /**/
23168 if test "$enable_pcregrep_libbz2" = "yes"; then
23170 cat >>confdefs.h <<\_ACEOF
23171 #define SUPPORT_LIBBZ2 /**/
23176 if test "$enable_pcretest_libreadline" = "yes"; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define SUPPORT_LIBREADLINE /**/
23185 cat >>confdefs.h <<_ACEOF
23186 #define NEWLINE $ac_pcre_newline_value
23190 if test "$enable_bsr_anycrlf" = "yes"; then
23192 cat >>confdefs.h <<\_ACEOF
23193 #define BSR_ANYCRLF /**/
23199 cat >>confdefs.h <<_ACEOF
23200 #define LINK_SIZE $with_link_size
23205 cat >>confdefs.h <<_ACEOF
23206 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
23211 cat >>confdefs.h <<_ACEOF
23212 #define MATCH_LIMIT $with_match_limit
23217 cat >>confdefs.h <<_ACEOF
23218 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
23223 cat >>confdefs.h <<\_ACEOF
23224 #define MAX_NAME_SIZE 32
23229 cat >>confdefs.h <<\_ACEOF
23230 #define MAX_NAME_COUNT 10000
23237 if test "$enable_ebcdic" = "yes"; then
23239 cat >>confdefs.h <<_ACEOF
23240 #define EBCDIC /**/
23245 # Platform specific issues
23247 EXPORT_ALL_SYMBOLS=
23250 if test X"$enable_shared" = Xyes; then
23251 NO_UNDEFINED="-no-undefined"
23252 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
23257 # The extra LDFLAGS for each particular library
23258 # (Note: The libpcre*_version bits are m4 variables, assigned above)
23260 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
23261 $NO_UNDEFINED -version-info 0:1:0"
23263 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
23264 $NO_UNDEFINED -version-info 0:0:0"
23266 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
23267 $NO_UNDEFINED -version-info 0:0:0 \
23268 $EXPORT_ALL_SYMBOLS"
23274 # When we run 'make distcheck', use these arguments.
23275 DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties"
23278 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
23279 # specified, the relevant library is available.
23281 if test "$enable_pcregrep_libz" = "yes"; then
23282 if test "$HAVE_ZLIB_H" != "1"; then
23283 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
23286 if test "$HAVE_LIBZ" != "1"; then
23287 echo "** Cannot --enable-pcregrep-libz because libz was not found"
23294 if test "$enable_pcregrep_libbz2" = "yes"; then
23295 if test "$HAVE_BZLIB_H" != "1"; then
23296 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
23299 if test "$HAVE_LIBBZ2" != "1"; then
23300 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
23307 # Similarly for --enable-pcretest-readline
23309 if test "$enable_pcretest_libreadline" = "yes"; then
23310 if test "$HAVE_READLINE_H" != "1"; then
23311 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
23314 if test "$HAVE_HISTORY_H" != "1"; then
23315 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
23318 LIBREADLINE="-lreadline"
23322 # Produce these files, in addition to config.h.
23323 ac_config_files="$ac_config_files Makefile libpcre.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
23326 # Make the generated script files executable.
23327 ac_config_commands="$ac_config_commands script-chmod"
23330 # Make sure that pcre_chartables.c is removed in case the method for
23331 # creating it was changed by reconfiguration.
23332 ac_config_commands="$ac_config_commands delete-old-chartables"
23335 cat >confcache <<\_ACEOF
23336 # This file is a shell script that caches the results of configure
23337 # tests run on this system so they can be shared between configure
23338 # scripts and configure runs, see configure's option --config-cache.
23339 # It is not useful on other systems. If it contains results you don't
23340 # want to keep, you may remove or edit it.
23342 # config.status only pays attention to the cache file if you give it
23343 # the --recheck option to rerun configure.
23345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23347 # following values.
23351 # The following way of writing the cache mishandles newlines in values,
23352 # but we know of no workaround that is simple, portable, and efficient.
23353 # So, we kill variables containing newlines.
23354 # Ultrix sh set writes to stderr and can't be redirected directly,
23355 # and sets the high bit in the cache file unless we assign to the vars.
23357 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23358 eval ac_val=\$$ac_var
23362 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23366 _ | IFS | as_nl) ;; #(
23367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23368 *) $as_unset $ac_var ;;
23374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23375 *${as_nl}ac_space=\ *)
23376 # `set' does not quote correctly, so add quotes (double-quote
23377 # substitution turns \\\\ into \\, and sed turns \\ into \).
23380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23383 # `set' quotes correctly as required by POSIX, so do not add quotes.
23384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23398 if test -w "$cache_file"; then
23399 test "x$cache_file" != "x/dev/null" &&
23400 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23401 $as_echo "$as_me: updating cache $cache_file" >&6;}
23402 cat confcache >$cache_file
23404 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23405 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23411 # Let make expand exec_prefix.
23412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23414 DEFS=-DHAVE_CONFIG_H
23418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23419 # 1. Remove the extension, and $U if already installed.
23420 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23421 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23422 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23423 # will be set to the directory where LIBOBJS objects are built.
23424 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23425 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23427 LIBOBJS=$ac_libobjs
23429 LTLIBOBJS=$ac_ltlibobjs
23432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23433 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23434 Usually this means the macro was only invoked conditionally." >&5
23435 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23436 Usually this means the macro was only invoked conditionally." >&2;}
23437 { (exit 1); exit 1; }; }
23439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23440 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23441 Usually this means the macro was only invoked conditionally." >&5
23442 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23443 Usually this means the macro was only invoked conditionally." >&2;}
23444 { (exit 1); exit 1; }; }
23446 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23447 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23448 Usually this means the macro was only invoked conditionally." >&5
23449 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23450 Usually this means the macro was only invoked conditionally." >&2;}
23451 { (exit 1); exit 1; }; }
23453 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
23454 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PCRE_CPP\" was never defined.
23455 Usually this means the macro was only invoked conditionally." >&5
23456 $as_echo "$as_me: error: conditional \"WITH_PCRE_CPP\" was never defined.
23457 Usually this means the macro was only invoked conditionally." >&2;}
23458 { (exit 1); exit 1; }; }
23460 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
23461 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
23462 Usually this means the macro was only invoked conditionally." >&5
23463 $as_echo "$as_me: error: conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
23464 Usually this means the macro was only invoked conditionally." >&2;}
23465 { (exit 1); exit 1; }; }
23468 : ${CONFIG_STATUS=./config.status}
23470 ac_clean_files_save=$ac_clean_files
23471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23472 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23474 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23476 # Generated by $as_me.
23477 # Run this file to recreate the current configuration.
23478 # Compiler output produced by configure, useful for debugging
23479 # configure, is in config.log if it exists.
23482 ac_cs_recheck=false
23484 SHELL=\${CONFIG_SHELL-$SHELL}
23487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23488 ## --------------------- ##
23489 ## M4sh Initialization. ##
23490 ## --------------------- ##
23492 # Be more Bourne compatible
23493 DUALCASE=1; export DUALCASE # for MKS sh
23494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23498 # is contrary to our usage. Disable this feature.
23499 alias -g '${1+"$@"}'='"$@"'
23500 setopt NO_GLOB_SUBST
23502 case `(set -o) 2>/dev/null` in
23503 *posix*) set -o posix ;;
23512 # Avoid depending upon Character Ranges.
23513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23516 as_cr_digits='0123456789'
23517 as_cr_alnum=$as_cr_Letters$as_cr_digits
23522 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23523 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23526 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23527 as_echo='printf %s\n'
23528 as_echo_n='printf %s'
23530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23532 as_echo_n='/usr/ucb/echo -n'
23534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23535 as_echo_n_body='eval
23539 expr "X$arg" : "X\\(.*\\)$as_nl";
23540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23544 export as_echo_n_body
23545 as_echo_n='sh -c $as_echo_n_body as_echo'
23547 export as_echo_body
23548 as_echo='sh -c $as_echo_body as_echo'
23551 # The user is always right.
23552 if test "${PATH_SEPARATOR+set}" != set; then
23554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23560 # Support unset when possible.
23561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23569 # We need space, tab and new line, in precisely that order. Quoting is
23570 # there to prevent editors from complaining about space-tab.
23571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23572 # splitting by setting IFS to empty value.)
23575 # Find who we are. Look in the path if we contain no directory separator.
23577 *[\\/]* ) as_myself=$0 ;;
23578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23579 for as_dir in $PATH
23582 test -z "$as_dir" && as_dir=.
23583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23589 # We did not find ourselves, most probably we were run as `sh COMMAND'
23590 # in which case we are not to be found in the path.
23591 if test "x$as_myself" = x; then
23594 if test ! -f "$as_myself"; then
23595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23596 { (exit 1); exit 1; }
23599 # Work around bugs in pre-3.0 UWIN ksh.
23600 for as_var in ENV MAIL MAILPATH
23601 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23613 # Required to use basename.
23614 if expr a : '\(a\)' >/dev/null 2>&1 &&
23615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23622 as_basename=basename
23628 # Name of the executable.
23629 as_me=`$as_basename -- "$0" ||
23630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23631 X"$0" : 'X\(//\)$' \| \
23632 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23634 sed '/^.*\/\([^/][^/]*\)\/*$/{
23653 as_lineno_1=$LINENO
23654 as_lineno_2=$LINENO
23655 test "x$as_lineno_1" != "x$as_lineno_2" &&
23656 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23658 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23659 # uniformly replaced by the line number. The first 'sed' inserts a
23660 # line-number line after each line using $LINENO; the second 'sed'
23661 # does the real work. The second script uses 'N' to pair each
23662 # line-number line with the line containing $LINENO, and appends
23663 # trailing '-' during substitution so that $LINENO is not a special
23664 # case at line end.
23665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23666 # scripts with optimization help from Paolo Bonzini. Blame Lee
23667 # E. McMahon (1931-1989) for sed's syntax. :-)
23679 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23682 ' >$as_me.lineno &&
23683 chmod +x "$as_me.lineno" ||
23684 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23685 { (exit 1); exit 1; }; }
23687 # Don't try to exec as it changes $[0], causing all sort of problems
23688 # (the dirname of $[0] is not the place where we might find the
23689 # original and so on. Autoconf is especially sensitive to this).
23690 . "./$as_me.lineno"
23691 # Exit status is that of the last command.
23696 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23702 ECHO_C= ECHO_N= ECHO_T=
23703 case `echo -n x` in
23705 case `echo 'x\c'` in
23706 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23712 if expr a : '\(a\)' >/dev/null 2>&1 &&
23713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23719 rm -f conf$$ conf$$.exe conf$$.file
23720 if test -d conf$$.dir; then
23721 rm -f conf$$.dir/conf$$.file
23724 mkdir conf$$.dir 2>/dev/null
23726 if (echo >conf$$.file) 2>/dev/null; then
23727 if ln -s conf$$.file conf$$ 2>/dev/null; then
23729 # ... but there are two gotchas:
23730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23732 # In both cases, we have to default to `cp -p'.
23733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23735 elif ln conf$$.file conf$$ 2>/dev/null; then
23743 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23744 rmdir conf$$.dir 2>/dev/null
23746 if mkdir -p . 2>/dev/null; then
23749 test -d ./-p && rmdir ./-p
23753 if test -x / >/dev/null 2>&1; then
23754 as_test_x='test -x'
23756 if ls -dL / >/dev/null 2>&1; then
23763 if test -d "$1"; then
23769 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23770 ???[sx]*):;;*)false;;esac;fi
23774 as_executable_p=$as_test_x
23776 # Sed expression to map a string onto a valid CPP name.
23777 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23779 # Sed expression to map a string onto a valid variable name.
23780 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23785 # Save the log message, to keep $[0] and so on meaningful, and to
23786 # report actual input values of CONFIG_FILES etc. instead of their
23787 # values after options handling.
23789 This file was extended by PCRE $as_me 7.9, which was
23790 generated by GNU Autoconf 2.63. Invocation command line was
23792 CONFIG_FILES = $CONFIG_FILES
23793 CONFIG_HEADERS = $CONFIG_HEADERS
23794 CONFIG_LINKS = $CONFIG_LINKS
23795 CONFIG_COMMANDS = $CONFIG_COMMANDS
23798 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23803 case $ac_config_files in *"
23804 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23807 case $ac_config_headers in *"
23808 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23813 # Files that config.status was made for.
23814 config_files="$ac_config_files"
23815 config_headers="$ac_config_headers"
23816 config_commands="$ac_config_commands"
23820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23822 \`$as_me' instantiates files from templates according to the
23823 current configuration.
23825 Usage: $0 [OPTION]... [FILE]...
23827 -h, --help print this help, then exit
23828 -V, --version print version number and configuration settings, then exit
23829 -q, --quiet, --silent
23830 do not print progress messages
23831 -d, --debug don't remove temporary files
23832 --recheck update $as_me by reconfiguring in the same conditions
23833 --file=FILE[:TEMPLATE]
23834 instantiate the configuration file FILE
23835 --header=FILE[:TEMPLATE]
23836 instantiate the configuration header FILE
23838 Configuration files:
23841 Configuration headers:
23844 Configuration commands:
23850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23852 PCRE config.status 7.9
23853 configured by $0, generated by GNU Autoconf 2.63,
23854 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23856 Copyright (C) 2008 Free Software Foundation, Inc.
23857 This config.status script is free software; the Free Software Foundation
23858 gives unlimited permission to copy, distribute and modify it."
23865 test -n "\$AWK" || AWK=awk
23868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23869 # The default lists apply if the user does not specify any file.
23875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23887 # Handling of the options.
23888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23891 $as_echo "$ac_cs_version"; exit ;;
23892 --debug | --debu | --deb | --de | --d | -d )
23894 --file | --fil | --fi | --f )
23897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23899 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23900 ac_need_defaults=false;;
23901 --header | --heade | --head | --hea )
23904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23906 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23907 ac_need_defaults=false;;
23909 # Conflict between --help and --header
23910 { $as_echo "$as_me: error: ambiguous option: $1
23911 Try \`$0 --help' for more information." >&2
23912 { (exit 1); exit 1; }; };;
23913 --help | --hel | -h )
23914 $as_echo "$ac_cs_usage"; exit ;;
23915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23919 # This is an error.
23920 -*) { $as_echo "$as_me: error: unrecognized option: $1
23921 Try \`$0 --help' for more information." >&2
23922 { (exit 1); exit 1; }; } ;;
23924 *) ac_config_targets="$ac_config_targets $1"
23925 ac_need_defaults=false ;;
23931 ac_configure_extra_args=
23933 if $ac_cs_silent; then
23935 ac_configure_extra_args="$ac_configure_extra_args --silent"
23939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23940 if \$ac_cs_recheck; then
23941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23943 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23944 CONFIG_SHELL='$SHELL'
23945 export CONFIG_SHELL
23950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23954 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23955 ## Running $as_me. ##
23961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23965 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23971 # Handling of arguments.
23972 for ac_config_target in $ac_config_targets
23974 case $ac_config_target in
23975 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23978 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
23979 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
23980 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
23981 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
23982 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
23983 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
23984 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
23985 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
23987 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23988 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23989 { (exit 1); exit 1; }; };;
23994 # If the user did not use the arguments to specify the items to instantiate,
23995 # then the envvar interface is used. Set only those that are not.
23996 # We use the long form for the default assignment because of an extremely
23997 # bizarre bug on SunOS 4.1.3.
23998 if $ac_need_defaults; then
23999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24001 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24004 # Have a temporary directory for convenience. Make it in the build tree
24005 # simply because there is no reason against having it here, and in addition,
24006 # creating and moving files from /tmp can sometimes cause problems.
24007 # Hook for its removal unless debugging.
24008 # Note that there is a small window in which the directory will not be cleaned:
24009 # after its creation but before its name has been assigned to `$tmp'.
24013 trap 'exit_status=$?
24014 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24016 trap '{ (exit 1); exit 1; }' 1 2 13 15
24018 # Create a (secure) tmp directory for tmp files.
24021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24022 test -n "$tmp" && test -d "$tmp"
24025 tmp=./conf$$-$RANDOM
24026 (umask 077 && mkdir "$tmp")
24029 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24030 { (exit 1); exit 1; }
24033 # Set up the scripts for CONFIG_FILES section.
24034 # No need to generate them if there are no CONFIG_FILES.
24035 # This happens for instance with `./config.status config.h'.
24036 if test -n "$CONFIG_FILES"; then
24041 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24042 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24045 ac_cs_awk_cr=$ac_cr
24048 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24053 echo "cat >conf$$subs.awk <<_ACEOF" &&
24054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24056 } >conf$$subs.sh ||
24057 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24058 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24059 { (exit 1); exit 1; }; }
24060 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24062 for ac_last_try in false false false false false :; do
24063 . ./conf$$subs.sh ||
24064 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24065 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24066 { (exit 1); exit 1; }; }
24068 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24069 if test $ac_delim_n = $ac_delim_num; then
24071 elif $ac_last_try; then
24072 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24073 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24074 { (exit 1); exit 1; }; }
24076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24079 rm -f conf$$subs.sh
24081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24082 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24086 s/^/S["/; s/!.*/"]=/
24096 s/\(.\{148\}\).*/\1/
24098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24110 s/\(.\{148\}\).*/\1/
24112 s/["\\]/\\&/g; s/^/"/; s/$/"/
24116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24121 ' <conf$$subs.awk | sed '
24126 ' >>$CONFIG_STATUS || ac_write_fail=1
24127 rm -f conf$$subs.awk
24128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24130 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24131 for (key in S) S_is_set[key] = 1
24137 nfields = split(line, field, "@")
24139 len = length(field[1])
24140 for (i = 2; i < nfields; i++) {
24142 keylen = length(key)
24143 if (S_is_set[key]) {
24145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24146 len += length(value) + length(field[++i])
24157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24162 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24163 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24164 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
24165 { (exit 1); exit 1; }; }
24168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24170 # trailing colons and then remove the whole line if VPATH becomes empty
24171 # (actually we leave an empty line to preserve line numbers).
24172 if test "x$srcdir" = x.; then
24173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24174 s/:*\$(srcdir):*/:/
24175 s/:*\${srcdir}:*/:/
24177 s/^\([^=]*=[ ]*\):*/\1/
24183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24184 fi # test -n "$CONFIG_FILES"
24186 # Set up the scripts for CONFIG_HEADERS section.
24187 # No need to generate them if there are no CONFIG_HEADERS.
24188 # This happens for instance with `./config.status Makefile'.
24189 if test -n "$CONFIG_HEADERS"; then
24190 cat >"$tmp/defines.awk" <<\_ACAWK ||
24194 # Transform confdefs.h into an awk script `defines.awk', embedded as
24195 # here-document in config.status, that substitutes the proper values into
24196 # config.h.in to produce config.h.
24198 # Create a delimiter string that does not exist in confdefs.h, to ease
24199 # handling of long lines.
24201 for ac_last_try in false false :; do
24202 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24203 if test -z "$ac_t"; then
24205 elif $ac_last_try; then
24206 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24207 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24208 { (exit 1); exit 1; }; }
24210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24214 # For the awk script, D is an array of macro values keyed by name,
24215 # likewise P contains macro parameters if any. Preserve backslash
24216 # newline sequences.
24218 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24220 s/.\{148\}/&'"$ac_delim"'/g
24223 s/^[ ]*#[ ]*define[ ][ ]*/ /
24230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24237 D["\1"]=" \3\\\\\\n"\\/p
24239 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24244 s/.\{148\}/&'"$ac_delim"'/g
24249 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24252 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24254 ' <confdefs.h | sed '
24255 s/'"$ac_delim"'/"\\\
24256 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24259 for (key in D) D_is_set[key] = 1
24262 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24264 split(line, arg, " ")
24265 if (arg[1] == "#") {
24269 defundef = substr(arg[1], 2)
24272 split(mac1, mac2, "(") #)
24274 prefix = substr(line, 1, index(line, defundef) - 1)
24275 if (D_is_set[macro]) {
24276 # Preserve the white space surrounding the "#".
24277 print prefix "define", macro P[macro] D[macro]
24280 # Replace #undef with comments. This is necessary, for example,
24281 # in the case of _POSIX_SOURCE, which is predefined and required
24282 # on some systems where configure will not decide to define it.
24283 if (defundef == "undef") {
24284 print "/*", prefix defundef, macro, "*/"
24292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24293 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24294 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24295 { (exit 1); exit 1; }; }
24296 fi # test -n "$CONFIG_HEADERS"
24299 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24304 :[FHLC]) ac_mode=$ac_tag; continue;;
24306 case $ac_mode$ac_tag in
24308 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24309 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24310 { (exit 1); exit 1; }; };;
24311 :[FH]-) ac_tag=-:-;;
24312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24329 -) ac_f="$tmp/stdin";;
24330 *) # Look for the file first in the build tree, then in the source tree
24331 # (if the path is not absolute). The absolute path cannot be DOS-style,
24332 # because $ac_f cannot contain `:'.
24336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24338 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24339 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24340 { (exit 1); exit 1; }; };;
24342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24343 ac_file_inputs="$ac_file_inputs '$ac_f'"
24346 # Let's still pretend it is `configure' which instantiates (i.e., don't
24347 # use $as_me), people would be surprised to read:
24348 # /* config.h. Generated by config.status. */
24349 configure_input='Generated from '`
24350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24352 if test x"$ac_file" != x-; then
24353 configure_input="$ac_file. $configure_input"
24354 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24355 $as_echo "$as_me: creating $ac_file" >&6;}
24357 # Neutralize special characters interpreted by sed in replacement strings.
24358 case $configure_input in #(
24359 *\&* | *\|* | *\\* )
24360 ac_sed_conf_input=`$as_echo "$configure_input" |
24361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24362 *) ac_sed_conf_input=$configure_input;;
24366 *:-:* | *:-) cat >"$tmp/stdin" \
24367 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24369 { (exit 1); exit 1; }; } ;;
24374 ac_dir=`$as_dirname -- "$ac_file" ||
24375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24376 X"$ac_file" : 'X\(//\)[^/]' \| \
24377 X"$ac_file" : 'X\(//\)$' \| \
24378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24379 $as_echo X"$ac_file" |
24380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24384 /^X\(\/\/\)[^/].*/{
24399 -*) as_dir=./$as_dir;;
24401 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24406 *) as_qdir=$as_dir;;
24408 as_dirs="'$as_qdir' $as_dirs"
24409 as_dir=`$as_dirname -- "$as_dir" ||
24410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24411 X"$as_dir" : 'X\(//\)[^/]' \| \
24412 X"$as_dir" : 'X\(//\)$' \| \
24413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24414 $as_echo X"$as_dir" |
24415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24419 /^X\(\/\/\)[^/].*/{
24432 test -d "$as_dir" && break
24434 test -z "$as_dirs" || eval "mkdir $as_dirs"
24435 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24436 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24437 { (exit 1); exit 1; }; }; }
24441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24444 # A ".." for each directory in $ac_dir_suffix.
24445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24446 case $ac_top_builddir_sub in
24447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24451 ac_abs_top_builddir=$ac_pwd
24452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24453 # for backward compatibility:
24454 ac_top_builddir=$ac_top_build_prefix
24457 .) # We are building in place.
24459 ac_top_srcdir=$ac_top_builddir_sub
24460 ac_abs_top_srcdir=$ac_pwd ;;
24461 [\\/]* | ?:[\\/]* ) # Absolute name.
24462 ac_srcdir=$srcdir$ac_dir_suffix;
24463 ac_top_srcdir=$srcdir
24464 ac_abs_top_srcdir=$srcdir ;;
24465 *) # Relative name.
24466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24467 ac_top_srcdir=$ac_top_build_prefix$srcdir
24468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24483 ac_MKDIR_P=$MKDIR_P
24485 [\\/$]* | ?:[\\/]* ) ;;
24486 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24491 # If the template does not know about datarootdir, expand it.
24492 # FIXME: This hack should be removed a few years after 2.60.
24493 ac_datarootdir_hack=; ac_datarootdir_seen=
24506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24507 *datarootdir*) ac_datarootdir_seen=yes;;
24508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24509 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24513 ac_datarootdir_hack='
24514 s&@datadir@&$datadir&g
24515 s&@docdir@&$docdir&g
24516 s&@infodir@&$infodir&g
24517 s&@localedir@&$localedir&g
24518 s&@mandir@&$mandir&g
24519 s&\\\${datarootdir}&$datarootdir&g' ;;
24523 # Neutralize VPATH when `$srcdir' = `.'.
24524 # Shell code in configure.ac might set extrasub.
24525 # FIXME: do we really want to maintain this feature?
24526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24527 ac_sed_extra="$ac_vpsub
24530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24533 s|@configure_input@|$ac_sed_conf_input|;t t
24534 s&@top_builddir@&$ac_top_builddir_sub&;t t
24535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24536 s&@srcdir@&$ac_srcdir&;t t
24537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24538 s&@top_srcdir@&$ac_top_srcdir&;t t
24539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24540 s&@builddir@&$ac_builddir&;t t
24541 s&@abs_builddir@&$ac_abs_builddir&;t t
24542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24543 s&@INSTALL@&$ac_INSTALL&;t t
24544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24545 $ac_datarootdir_hack
24547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24548 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24549 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24550 { (exit 1); exit 1; }; }
24552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24553 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24555 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24556 which seems to be undefined. Please make sure it is defined." >&5
24557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24558 which seems to be undefined. Please make sure it is defined." >&2;}
24562 -) cat "$tmp/out" && rm -f "$tmp/out";;
24563 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24565 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24566 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24567 { (exit 1); exit 1; }; }
24573 if test x"$ac_file" != x-; then
24575 $as_echo "/* $configure_input */" \
24576 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24577 } >"$tmp/config.h" \
24578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24579 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24580 { (exit 1); exit 1; }; }
24581 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24582 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24583 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24586 mv "$tmp/config.h" "$ac_file" \
24587 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24588 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24589 { (exit 1); exit 1; }; }
24592 $as_echo "/* $configure_input */" \
24593 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24594 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24595 $as_echo "$as_me: error: could not create -" >&2;}
24596 { (exit 1); exit 1; }; }
24598 # Compute "$ac_file"'s index in $config_headers.
24601 for _am_header in $config_headers :; do
24602 case $_am_header in
24603 $_am_arg | $_am_arg:* )
24606 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24609 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24610 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611 X"$_am_arg" : 'X\(//\)[^/]' \| \
24612 X"$_am_arg" : 'X\(//\)$' \| \
24613 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24614 $as_echo X"$_am_arg" |
24615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24619 /^X\(\/\/\)[^/].*/{
24631 s/.*/./; q'`/stamp-h$_am_stamp_count
24634 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24635 $as_echo "$as_me: executing $ac_file commands" >&6;}
24640 case $ac_file$ac_mode in
24641 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
24642 # are listed without --file. Let's play safe and only enable the eval
24643 # if we detect the quoting.
24644 case $CONFIG_FILES in
24645 *\'*) eval set x "$CONFIG_FILES" ;;
24646 *) set x $CONFIG_FILES ;;
24651 # Strip MF so we end up with the name of the file.
24652 mf=`echo "$mf" | sed -e 's/:.*$//'`
24653 # Check whether this is an Automake generated Makefile or not.
24654 # We used to match only the files named `Makefile.in', but
24655 # some people rename them; so instead we look at the file content.
24656 # Grep'ing the first line is not enough: some people post-process
24657 # each Makefile.in and add a new line on top of each file to say so.
24658 # Grep'ing the whole file is not good either: AIX grep has a line
24659 # limit of 2048, but all sed's we know have understand at least 4000.
24660 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24661 dirpart=`$as_dirname -- "$mf" ||
24662 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24663 X"$mf" : 'X\(//\)[^/]' \| \
24664 X"$mf" : 'X\(//\)$' \| \
24665 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24671 /^X\(\/\/\)[^/].*/{
24687 # Extract the definition of DEPDIR, am__include, and am__quote
24688 # from the Makefile without running `make'.
24689 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24690 test -z "$DEPDIR" && continue
24691 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24692 test -z "am__include" && continue
24693 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24694 # When using ansi2knr, U may be empty or an underscore; expand it
24695 U=`sed -n 's/^U = //p' < "$mf"`
24696 # Find all dependency output files, they are included files with
24697 # $(DEPDIR) in their names. We invoke sed twice because it is the
24698 # simplest approach to changing $(DEPDIR) to its actual value in the
24700 for file in `sed -n "
24701 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24702 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24703 # Make sure the directory exists.
24704 test -f "$dirpart/$file" && continue
24705 fdir=`$as_dirname -- "$file" ||
24706 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24707 X"$file" : 'X\(//\)[^/]' \| \
24708 X"$file" : 'X\(//\)$' \| \
24709 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24710 $as_echo X"$file" |
24711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24715 /^X\(\/\/\)[^/].*/{
24728 { as_dir=$dirpart/$fdir
24730 -*) as_dir=./$as_dir;;
24732 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24737 *) as_qdir=$as_dir;;
24739 as_dirs="'$as_qdir' $as_dirs"
24740 as_dir=`$as_dirname -- "$as_dir" ||
24741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24742 X"$as_dir" : 'X\(//\)[^/]' \| \
24743 X"$as_dir" : 'X\(//\)$' \| \
24744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24745 $as_echo X"$as_dir" |
24746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24750 /^X\(\/\/\)[^/].*/{
24763 test -d "$as_dir" && break
24765 test -z "$as_dirs" || eval "mkdir $as_dirs"
24766 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24767 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24768 { (exit 1); exit 1; }; }; }
24769 # echo "creating $dirpart/$file"
24770 echo '# dummy' > "$dirpart/$file"
24774 "script-chmod":C) chmod a+x pcre-config ;;
24775 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
24781 { (exit 0); exit 0; }
24783 chmod +x $CONFIG_STATUS
24784 ac_clean_files=$ac_clean_files_save
24786 test $ac_write_fail = 0 ||
24787 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24788 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24789 { (exit 1); exit 1; }; }
24792 # configure is writing to config.log, and then calls config.status.
24793 # config.status does its own redirection, appending to config.log.
24794 # Unfortunately, on DOS this fails, as config.log is still kept open
24795 # by configure, so config.status won't be able to write to it; its
24796 # output is simply discarded. So we exec the FD to /dev/null,
24797 # effectively closing config.log, so it can be properly (re)opened and
24798 # appended to by config.status. When coming back to configure, we
24799 # need to make the FD available again.
24800 if test "$no_create" != yes; then
24802 ac_config_status_args=
24803 test "$silent" = yes &&
24804 ac_config_status_args="$ac_config_status_args --quiet"
24806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24809 # would make configure fail if this is the last instruction.
24810 $ac_cs_success || { (exit 1); exit 1; }
24812 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24813 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24814 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24818 # Print out a nice little message after configure is run displaying your
24823 $PACKAGE-$VERSION configuration summary:
24825 Install prefix .................. : ${prefix}
24826 C preprocessor .................. : ${CPP}
24827 C compiler ...................... : ${CC}
24828 C++ preprocessor ................ : ${CXXCPP}
24829 C++ compiler .................... : ${CXX}
24830 Linker .......................... : ${LD}
24831 C preprocessor flags ............ : ${CPPFLAGS}
24832 C compiler flags ................ : ${CFLAGS}
24833 C++ compiler flags .............. : ${CXXFLAGS}
24834 Linker flags .................... : ${LDFLAGS}
24835 Extra libraries ................. : ${LIBS}
24837 Build C++ library ............... : ${enable_cpp}
24838 Enable UTF-8 support ............ : ${enable_utf8}
24839 Unicode properties .............. : ${enable_unicode_properties}
24840 Newline char/sequence ........... : ${enable_newline}
24841 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
24842 EBCDIC coding ................... : ${enable_ebcdic}
24843 Rebuild char tables ............. : ${enable_rebuild_chartables}
24844 Use stack recursion ............. : ${enable_stack_for_recursion}
24845 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
24846 Internal link size .............. : ${with_link_size}
24847 Match limit ..................... : ${with_match_limit}
24848 Match limit recursion ........... : ${with_match_limit_recursion}
24849 Build shared libs ............... : ${enable_shared}
24850 Build static libs ............... : ${enable_static}
24851 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
24852 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
24853 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}