2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for PCRE 8.30.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='pcre'
570 PACKAGE_VERSION='8.30'
571 PACKAGE_STRING='PCRE 8.30'
575 ac_unique_file="pcre.h.in"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
618 DISTCHECK_CONFIGURE_FLAGS
619 EXTRA_LIBPCRECPP_LDFLAGS
620 EXTRA_LIBPCREPOSIX_LDFLAGS
621 EXTRA_LIBPCRE16_LDFLAGS
622 EXTRA_LIBPCRE_LDFLAGS
629 WITH_REBUILD_CHARTABLES_FALSE
630 WITH_REBUILD_CHARTABLES_TRUE
637 pcre_have_bits_type_traits
638 pcre_have_type_traits
712 INSTALL_STRIP_PROGRAM
754 program_transform_name
767 enable_option_checking
769 enable_dependency_tracking
782 enable_rebuild_chartables
785 enable_unicode_properties
788 enable_newline_is_crlf
789 enable_newline_is_anycrlf
790 enable_newline_is_any
793 enable_stack_for_recursion
795 enable_pcregrep_libbz2
796 with_pcregrep_bufsize
797 enable_pcretest_libreadline
798 with_posix_malloc_threshold
801 with_match_limit_recursion
803 ac_precious_vars='build_alias
818 # Initialize some variables set by options.
820 ac_init_version=false
821 ac_unrecognized_opts=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
961 eval enable_$ac_useropt=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
976 -help | --help | --hel | --he | -h)
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1125 -site=* | --site=* | --sit=*)
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval with_$ac_useropt=\$ac_optarg ;;
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1181 eval with_$ac_useropt=no ;;
1184 # Obsolete; use --with-x.
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1252 # Be sure to have absolute directory names.
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used" >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1324 ac_srcdir_defaulted=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures PCRE 8.30 to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of PCRE 8.30:";;
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-silent-rules less verbose build output (undo: `make V=1')
1437 --disable-silent-rules verbose build output (undo: `make V=0')
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --disable-pcre8 disable 8 bit character support
1446 --enable-pcre16 enable 16 bit character support
1447 --disable-cpp disable C++ support
1448 --enable-jit enable Just-In-Time compiling support
1449 --disable-pcregrep-jit disable JIT support in pcregrep
1450 --enable-rebuild-chartables
1451 rebuild character tables in current locale
1452 --enable-utf8 another name for --enable-utf. Kept only for
1453 compatibility reasons
1454 --enable-utf enable UTF-8/16 support (incompatible with
1456 --enable-unicode-properties
1457 enable Unicode properties support (implies
1459 --enable-newline-is-cr use CR as newline character
1460 --enable-newline-is-lf use LF as newline character (default)
1461 --enable-newline-is-crlf
1462 use CRLF as newline sequence
1463 --enable-newline-is-anycrlf
1464 use CR, LF, or CRLF as newline sequence
1465 --enable-newline-is-any use any valid Unicode newline sequence
1466 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1467 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1468 with --enable-utf; use only in (uncommon) EBCDIC
1469 environments; it implies --enable-rebuild-chartables
1470 --disable-stack-for-recursion
1471 don't use stack recursion when matching
1472 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1473 --enable-pcregrep-libbz2
1474 link pcregrep with libbz2 to handle .bz2 files
1475 --enable-pcretest-libreadline
1476 link pcretest with libreadline
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic try to use only PIC/non-PIC objects [default=use
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot=DIR Search for dependent libraries within DIR
1485 (or the compiler's sysroot if not specified).
1486 --with-pcregrep-bufsize=N
1487 pcregrep buffer size (default=20480)
1488 --with-posix-malloc-threshold=NBYTES
1489 threshold for POSIX malloc usage (default=10)
1490 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1491 --with-match-limit=N default limit on internal looping (default=10000000)
1492 --with-match-limit-recursion=N
1493 default limit on internal recursion
1494 (default=MATCH_LIMIT)
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1512 Report bugs to the package provider.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1576 generated by GNU Autoconf 2.68
1578 Copyright (C) 2010 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1625 } # ac_fn_c_try_compile
1627 # ac_fn_cxx_try_compile LINENO
1628 # ----------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_cxx_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_cxx_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_cxx_try_compile
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } > conftest.i && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 ac_retval=$ac_status
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists and can be compiled using the include files in
1747 # INCLUDES, setting the cache variable VAR accordingly.
1748 ac_fn_c_check_header_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1761 if ac_fn_c_try_compile "$LINENO"; then :
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_header_compile
1775 # ac_fn_c_find_intX_t LINENO BITS VAR
1776 # -----------------------------------
1777 # Finds a signed integer type with width BITS, setting cache variable VAR
1779 ac_fn_c_find_intX_t ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1783 $as_echo_n "checking for int$2_t... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 # Order is important - never check a type that is potentially smaller
1789 # than half of the expected target width.
1790 for ac_type in int$2_t 'int' 'long int' \
1791 'long long int' 'short int' 'signed char'; do
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $ac_includes_default
1795 enum { N = $2 / 2 - 1 };
1799 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 $ac_includes_default
1810 enum { N = $2 / 2 - 1 };
1814 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1815 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1822 if ac_fn_c_try_compile "$LINENO"; then :
1829 eval "$3=\$ac_type" ;;
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 if eval test \"x\$"$3"\" = x"no"; then :
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_find_intX_t
1849 # ac_fn_c_try_link LINENO
1850 # -----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext conftest$ac_exeext
1856 if { { ac_try="$ac_link"
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>conftest.err
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes ||
1876 $as_test_x conftest$ac_exeext
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887 # interfere with the next link command; also delete a directory that is
1888 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_c_try_link
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1918 # include <limits.h>
1920 # include <assert.h>
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1947 if ac_fn_c_try_link "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_func
1962 # ac_fn_cxx_try_cpp LINENO
1963 # ------------------------
1964 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_cxx_try_cpp ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } > conftest.i && {
1984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1997 } # ac_fn_cxx_try_cpp
1999 # ac_fn_cxx_try_link LINENO
2000 # -------------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded.
2002 ac_fn_cxx_try_link ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 rm -f conftest.$ac_objext conftest$ac_exeext
2006 if { { ac_try="$ac_link"
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>conftest.err
2015 if test -s conftest.err; then
2016 grep -v '^ *+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && {
2022 test -z "$ac_cxx_werror_flag" ||
2023 test ! -s conftest.err
2024 } && test -s conftest$ac_exeext && {
2025 test "$cross_compiling" = yes ||
2026 $as_test_x conftest$ac_exeext
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2035 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2036 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2037 # interfere with the next link command; also delete a directory that is
2038 # left behind by Apple's compiler. We do this before executing the actions.
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2043 } # ac_fn_cxx_try_link
2045 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2050 ac_fn_c_check_header_mongrel ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if eval \${$3+:} false; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_header_compiler=yes
2074 ac_header_compiler=no
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 if ac_fn_c_try_cpp "$LINENO"; then :
2088 ac_header_preproc=yes
2090 ac_header_preproc=no
2092 rm -f conftest.err conftest.i conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2122 eval "$3=\$ac_header_compiler"
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_header_mongrel
2132 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2133 # ---------------------------------------------------------
2134 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2135 # the include files in INCLUDES and setting the cache variable VAR
2137 ac_fn_cxx_check_header_mongrel ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 if eval \${$3+:} false; then :
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2150 # Is the header compilable?
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2152 $as_echo_n "checking $2 usability... " >&6; }
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2158 if ac_fn_cxx_try_compile "$LINENO"; then :
2159 ac_header_compiler=yes
2161 ac_header_compiler=no
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2165 $as_echo "$ac_header_compiler" >&6; }
2167 # Is the header present?
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2169 $as_echo_n "checking $2 presence... " >&6; }
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 if ac_fn_cxx_try_cpp "$LINENO"; then :
2175 ac_header_preproc=yes
2177 ac_header_preproc=no
2179 rm -f conftest.err conftest.i conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2181 $as_echo "$ac_header_preproc" >&6; }
2183 # So? What about this header?
2184 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2187 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2193 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2195 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2197 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2199 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2201 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205 $as_echo_n "checking for $2... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2209 eval "$3=\$ac_header_compiler"
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_cxx_check_header_mongrel
2219 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2220 # ---------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_cxx_check_type ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2244 if ac_fn_cxx_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_cxx_check_type
2273 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2274 # -------------------------------------------
2275 # Tests whether TYPE exists after having included INCLUDES, setting cache
2276 # variable VAR accordingly.
2277 ac_fn_c_check_type ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2311 if ac_fn_c_try_compile "$LINENO"; then :
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2322 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325 } # ac_fn_c_check_type
2326 cat >config.log <<_ACEOF
2327 This file contains any messages produced by compilers while
2328 running configure, to aid debugging if configure makes a mistake.
2330 It was created by PCRE $as_me 8.30, which was
2331 generated by GNU Autoconf 2.68. Invocation command line was
2343 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2344 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2345 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2346 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2347 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2349 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2350 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2352 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2353 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2354 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2355 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2356 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2357 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2358 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 $as_echo "PATH: $as_dir"
2383 # Keep a trace of the command line.
2384 # Strip out --no-create and --no-recursion so they do not pile up.
2385 # Strip out --silent because we don't want to record it for future runs.
2386 # Also quote any args containing shell meta-characters.
2387 # Make two passes to allow for proper duplicate-argument suppression.
2391 ac_must_keep_next=false
2397 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2399 | -silent | --silent | --silen | --sile | --sil)
2402 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2405 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2407 as_fn_append ac_configure_args1 " '$ac_arg'"
2408 if test $ac_must_keep_next = true; then
2409 ac_must_keep_next=false # Got value, back to normal.
2412 *=* | --config-cache | -C | -disable-* | --disable-* \
2413 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2414 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2415 | -with-* | --with-* | -without-* | --without-* | --x)
2416 case "$ac_configure_args0 " in
2417 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2420 -* ) ac_must_keep_next=true ;;
2423 as_fn_append ac_configure_args " '$ac_arg'"
2428 { ac_configure_args0=; unset ac_configure_args0;}
2429 { ac_configure_args1=; unset ac_configure_args1;}
2431 # When interrupted or exit'd, cleanup temporary files, and complete
2432 # config.log. We remove comments because anyway the quotes in there
2433 # would cause problems or look ugly.
2434 # WARNING: Use '\'' to represent an apostrophe within the trap.
2435 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2436 trap 'exit_status=$?
2437 # Save into config.log some information that might help in debugging.
2441 $as_echo "## ---------------- ##
2442 ## Cache variables. ##
2443 ## ---------------- ##"
2445 # The following way of writing the cache mishandles newlines in values,
2447 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2448 eval ac_val=\$$ac_var
2452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2456 _ | IFS | as_nl) ;; #(
2457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2458 *) { eval $ac_var=; unset $ac_var;} ;;
2463 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2464 *${as_nl}ac_space=\ *)
2466 "s/'\''/'\''\\\\'\'''\''/g;
2467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477 $as_echo "## ----------------- ##
2478 ## Output variables. ##
2479 ## ----------------- ##"
2481 for ac_var in $ac_subst_vars
2483 eval ac_val=\$$ac_var
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2487 $as_echo "$ac_var='\''$ac_val'\''"
2491 if test -n "$ac_subst_files"; then
2492 $as_echo "## ------------------- ##
2493 ## File substitutions. ##
2494 ## ------------------- ##"
2496 for ac_var in $ac_subst_files
2498 eval ac_val=\$$ac_var
2500 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2502 $as_echo "$ac_var='\''$ac_val'\''"
2507 if test -s confdefs.h; then
2508 $as_echo "## ----------- ##
2515 test "$ac_signal" != 0 &&
2516 $as_echo "$as_me: caught signal $ac_signal"
2517 $as_echo "$as_me: exit $exit_status"
2519 rm -f core *.core core.conftest.* &&
2520 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2523 for ac_signal in 1 2 13 15; do
2524 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2529 rm -f -r conftest* confdefs.h
2531 $as_echo "/* confdefs.h */" > confdefs.h
2533 # Predefined preprocessor variables.
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_NAME "$PACKAGE_NAME"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_STRING "$PACKAGE_STRING"
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_URL "$PACKAGE_URL"
2560 # Let the site file select an alternate cache file if it wants to.
2561 # Prefer an explicitly selected file to automatically selected ones.
2564 if test -n "$CONFIG_SITE"; then
2565 # We do not want a PATH search for config.site.
2566 case $CONFIG_SITE in #((
2567 -*) ac_site_file1=./$CONFIG_SITE;;
2568 */*) ac_site_file1=$CONFIG_SITE;;
2569 *) ac_site_file1=./$CONFIG_SITE;;
2571 elif test "x$prefix" != xNONE; then
2572 ac_site_file1=$prefix/share/config.site
2573 ac_site_file2=$prefix/etc/config.site
2575 ac_site_file1=$ac_default_prefix/share/config.site
2576 ac_site_file2=$ac_default_prefix/etc/config.site
2578 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2580 test "x$ac_site_file" = xNONE && continue
2581 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2583 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2584 sed 's/^/| /' "$ac_site_file" >&5
2586 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 as_fn_error $? "failed to load site script $ac_site_file
2589 See \`config.log' for more details" "$LINENO" 5; }
2593 if test -r "$cache_file"; then
2594 # Some versions of bash will fail to source /dev/null (special files
2595 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2596 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598 $as_echo "$as_me: loading cache $cache_file" >&6;}
2600 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601 *) . "./$cache_file";;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606 $as_echo "$as_me: creating cache $cache_file" >&6;}
2610 # Check that the precious variables saved in the cache have kept the same
2612 ac_cache_corrupted=false
2613 for ac_var in $ac_precious_vars; do
2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615 eval ac_new_set=\$ac_env_${ac_var}_set
2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617 eval ac_new_val=\$ac_env_${ac_var}_value
2618 case $ac_old_set,$ac_new_set in
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2629 if test "x$ac_old_val" != "x$ac_new_val"; then
2630 # differences in whitespace do not lead to failure.
2631 ac_old_val_w=`echo x $ac_old_val`
2632 ac_new_val_w=`echo x $ac_new_val`
2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636 ac_cache_corrupted=:
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640 eval $ac_var=\$ac_old_val
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2643 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2645 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 # Pass precious variables to config.status.
2649 if test "$ac_new_set" = set; then
2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 *) ac_arg=$ac_var=$ac_new_val ;;
2654 case " $ac_configure_args " in
2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 if $ac_cache_corrupted; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2667 ## -------------------- ##
2668 ## Main body of script. ##
2669 ## -------------------- ##
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 am__api_version='1.11'
2682 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2683 if test -f "$ac_dir/install-sh"; then
2685 ac_install_sh="$ac_aux_dir/install-sh -c"
2687 elif test -f "$ac_dir/install.sh"; then
2689 ac_install_sh="$ac_aux_dir/install.sh -c"
2691 elif test -f "$ac_dir/shtool"; then
2693 ac_install_sh="$ac_aux_dir/shtool install -c"
2697 if test -z "$ac_aux_dir"; then
2698 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2701 # These three variables are undocumented and unsupported,
2702 # and are intended to be withdrawn in a future Autoconf release.
2703 # They can cause serious problems if a builder's source tree is in a directory
2704 # whose full name contains unusual characters.
2705 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2706 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2707 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2710 # Find a good install program. We prefer a C program (faster),
2711 # so one script is as good as another. But avoid the broken or
2712 # incompatible versions:
2713 # SysV /etc/install, /usr/sbin/install
2714 # SunOS /usr/etc/install
2715 # IRIX /sbin/install
2717 # AmigaOS /C/install, which installs bootblocks on floppy discs
2718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2721 # OS/2's system install, which has a completely different semantic
2722 # ./install, which can be erroneously created by make from ./install.sh.
2723 # Reject install programs that cannot install multiple files.
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2725 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2726 if test -z "$INSTALL"; then
2727 if ${ac_cv_path_install+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 # Account for people who put trailing slashes in PATH elements.
2736 case $as_dir/ in #((
2737 ./ | .// | /[cC]/* | \
2738 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2739 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2742 # OSF1 and SCO ODT 3.0 have their own names for install.
2743 # Don't use installbsd from OSF since it installs stuff as root
2745 for ac_prog in ginstall scoinst install; do
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2748 if test $ac_prog = install &&
2749 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2750 # AIX install. It has an incompatible calling convention.
2752 elif test $ac_prog = install &&
2753 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2754 # program-specific install script used by HP pwplus--don't use.
2757 rm -rf conftest.one conftest.two conftest.dir
2758 echo one > conftest.one
2759 echo two > conftest.two
2761 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2762 test -s conftest.one && test -s conftest.two &&
2763 test -s conftest.dir/conftest.one &&
2764 test -s conftest.dir/conftest.two
2766 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2779 rm -rf conftest.one conftest.two conftest.dir
2782 if test "${ac_cv_path_install+set}" = set; then
2783 INSTALL=$ac_cv_path_install
2785 # As a last resort, use the slow shell script. Don't cache a
2786 # value for INSTALL within a source directory, because that will
2787 # break other packages using the cache if that directory is
2788 # removed, or if the value is a relative name.
2789 INSTALL=$ac_install_sh
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2793 $as_echo "$INSTALL" >&6; }
2795 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2796 # It thinks the first close brace ends the variable substitution.
2797 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2799 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2801 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2804 $as_echo_n "checking whether build environment is sane... " >&6; }
2807 echo timestamp > conftest.file
2808 # Reject unsafe characters in $srcdir or the absolute working directory
2809 # name. Accept space and tab only in the latter.
2813 *[\\\"\#\$\&\'\`$am_lf]*)
2814 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2817 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2818 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2821 # Do `set' in a subshell so we don't clobber the current shell's
2822 # arguments. Must try -L first in case configure is actually a
2823 # symlink; some systems play weird games with the mod time of symlinks
2824 # (eg FreeBSD returns the mod time of the symlink's containing
2827 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2828 if test "$*" = "X"; then
2830 set X `ls -t "$srcdir/configure" conftest.file`
2833 if test "$*" != "X $srcdir/configure conftest.file" \
2834 && test "$*" != "X conftest.file $srcdir/configure"; then
2836 # If neither matched, then we have a broken ls. This can happen
2837 # if, for instance, CONFIG_SHELL is bash and it inherits a
2838 # broken ls alias from the environment. This has actually
2839 # happened. Such a system could not be considered "sane".
2840 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2841 alias in your environment" "$LINENO" 5
2844 test "$2" = conftest.file
2850 as_fn_error $? "newly created file is older than distributed files!
2851 Check your system clock" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854 $as_echo "yes" >&6; }
2855 test "$program_prefix" != NONE &&
2856 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2857 # Use a double $ so make ignores it.
2858 test "$program_suffix" != NONE &&
2859 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2860 # Double any \ or $.
2861 # By default was `s,x,x', remove it if useless.
2862 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2863 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2865 # expand $ac_aux_dir to an absolute path
2866 am_aux_dir=`cd $ac_aux_dir && pwd`
2868 if test x"${MISSING+set}" != xset; then
2871 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2873 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2876 # Use eval to expand $SHELL
2877 if eval "$MISSING --run true"; then
2878 am_missing_run="$MISSING --run "
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2882 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2885 if test x"${install_sh}" != xset; then
2888 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2890 install_sh="\${SHELL} $am_aux_dir/install-sh"
2894 # Installed binaries are usually stripped using `strip' when the user
2895 # run `make install-strip'. However `strip' might not be the right
2896 # tool to use in cross-compilation environments, therefore Automake
2897 # will honor the `STRIP' environment variable to overrule this program.
2898 if test "$cross_compiling" != no; then
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_STRIP+:} false; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$STRIP"; then
2908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 STRIP=$ac_cv_prog_STRIP
2928 if test -n "$STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2930 $as_echo "$STRIP" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$ac_cv_prog_STRIP"; then
2940 # Extract the first word of "strip", so it can be a program name with args.
2941 set dummy strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$ac_ct_STRIP"; then
2948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_STRIP="strip"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968 if test -n "$ac_ct_STRIP"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970 $as_echo "$ac_ct_STRIP" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2976 if test "x$ac_ct_STRIP" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2988 STRIP="$ac_cv_prog_STRIP"
2992 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2995 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2996 if test -z "$MKDIR_P"; then
2997 if ${ac_cv_path_mkdir+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3004 test -z "$as_dir" && as_dir=.
3005 for ac_prog in mkdir gmkdir; do
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3008 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3009 'mkdir (GNU coreutils) '* | \
3010 'mkdir (coreutils) '* | \
3011 'mkdir (fileutils) '4.1*)
3012 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3022 test -d ./--version && rmdir ./--version
3023 if test "${ac_cv_path_mkdir+set}" = set; then
3024 MKDIR_P="$ac_cv_path_mkdir -p"
3026 # As a last resort, use the slow shell script. Don't cache a
3027 # value for MKDIR_P within a source directory, because that will
3028 # break other packages using the cache if that directory is
3029 # removed, or if the value is a relative name.
3030 MKDIR_P="$ac_install_sh -d"
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3034 $as_echo "$MKDIR_P" >&6; }
3038 [\\/$]* | ?:[\\/]*) ;;
3039 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3042 for ac_prog in gawk mawk nawk awk
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$AWK"; then
3052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_AWK="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$AWK"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$AWK" && break
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 cat >conftest.make <<\_ACEOF
3094 @echo '@@@%%%=$(MAKE)=@@@%%%'
3096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3099 eval ac_cv_prog_make_${ac_make}_set=yes;;
3101 eval ac_cv_prog_make_${ac_make}_set=no;;
3105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 SET_MAKE="MAKE=${MAKE-make}"
3115 rm -rf .tst 2>/dev/null
3116 mkdir .tst 2>/dev/null
3117 if test -d .tst; then
3122 rmdir .tst 2>/dev/null
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3144 # Define the identity of the package.
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3158 # Some tools Automake needs.
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174 # We need awk for the "check" target. The system "awk" is bad on
3176 # Always define AMTAR for backward compatibility.
3178 AMTAR=${AMTAR-"${am_missing_run}tar"}
3180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3186 # Check whether --enable-silent-rules was given.
3187 if test "${enable_silent_rules+set}" = set; then :
3188 enableval=$enable_silent_rules;
3191 case $enable_silent_rules in
3192 yes) AM_DEFAULT_VERBOSITY=0;;
3193 no) AM_DEFAULT_VERBOSITY=1;;
3194 *) AM_DEFAULT_VERBOSITY=0;;
3198 ac_config_headers="$ac_config_headers config.h"
3201 # This was added at the suggestion of libtoolize (03-Jan-10)
3204 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
3205 # "-g" for any other compiler. There doesn't seem to be a standard way of
3206 # getting rid of the -g (which I don't think is needed for a production
3207 # library). This fudge seems to achieve the necessary. First, we remember the
3208 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
3209 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
3210 # set, they will be set to Autoconf's defaults. Afterwards, if the original
3211 # values were not set, remove the -g from the Autoconf defaults.
3214 remember_set_CFLAGS="$CFLAGS"
3215 remember_set_CXXFLAGS="$CXXFLAGS"
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 if test -z "$ac_cv_prog_CC"; then
3263 # Extract the first word of "gcc", so it can be a program name with args.
3264 set dummy gcc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_CC="gcc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3299 if test "x$ac_ct_CC" = x; then
3302 case $cross_compiling:$ac_tool_warned in
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3314 if test -z "$CC"; then
3315 if test -n "$ac_tool_prefix"; then
3316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3317 set dummy ${ac_tool_prefix}cc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CC="${ac_tool_prefix}cc"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3355 if test -z "$CC"; then
3356 # Extract the first word of "cc", so it can be a program name with args.
3357 set dummy cc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3375 ac_prog_rejected=yes
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test $ac_prog_rejected = yes; then
3387 # We found a bogon in the path, so make sure we never use it.
3388 set dummy $ac_cv_prog_CC
3390 if test $# != 0; then
3391 # We chose a different compiler from the bogus one.
3392 # However, it has the same basename, so the bogon will be chosen
3393 # first if we set CC to just the basename; use the full file name.
3395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 for ac_prog in cl.exe
3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3452 test -n "$CC" && break
3455 if test -z "$CC"; then
3457 for ac_prog in cl.exe
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_ac_ct_CC="$ac_prog"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3496 test -n "$ac_ct_CC" && break
3499 if test "x$ac_ct_CC" = x; then
3502 case $cross_compiling:$ac_tool_warned in
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3515 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "no acceptable C compiler found in \$PATH
3518 See \`config.log' for more details" "$LINENO" 5; }
3520 # Provide some information about the compiler.
3521 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3524 for ac_option in --version -v -V -qversion; do
3525 { { ac_try="$ac_compiler $ac_option >&5"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3534 if test -s conftest.err; then
3536 ... rest of stderr output deleted ...
3537 10q' conftest.err >conftest.er1
3538 cat conftest.er1 >&5
3540 rm -f conftest.er1 conftest.err
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3556 ac_clean_files_save=$ac_clean_files
3557 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3558 # Try to create an executable without -o first, disregard a.out.
3559 # It will help us diagnose broken compilers, and finding out an intuition
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3562 $as_echo_n "checking whether the C compiler works... " >&6; }
3563 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3565 # The possible output files:
3566 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3569 for ac_file in $ac_files
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3573 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578 if { { ac_try="$ac_link_default"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_link_default") 2>&5
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3590 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3591 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3592 # so that the user can short-circuit this test for compilers unknown to
3594 for ac_file in $ac_files ''
3596 test -f "$ac_file" || continue
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3601 # We found the default executable, but exeext='' is most
3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 # We set ac_cv_exeext here because the later test for it is not
3610 # safe: cross compilers may not add the suffix if given an `-o'
3611 # argument, so we may need to know it at that point already.
3612 # Even if this section looks crufty: it has the advantage of
3619 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624 if test -z "$ac_file"; then :
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3627 $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error 77 "C compiler cannot create executables
3633 See \`config.log' for more details" "$LINENO" 5; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636 $as_echo "yes" >&6; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3639 $as_echo_n "checking for C compiler default output file name... " >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3641 $as_echo "$ac_file" >&6; }
3642 ac_exeext=$ac_cv_exeext
3644 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3645 ac_clean_files=$ac_clean_files_save
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3647 $as_echo_n "checking for suffix of executables... " >&6; }
3648 if { { ac_try="$ac_link"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3660 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3661 # work properly (i.e., refer to `conftest.exe'), while it won't with
3663 for ac_file in conftest.exe conftest conftest.*; do
3664 test -f "$ac_file" || continue
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3676 See \`config.log' for more details" "$LINENO" 5; }
3678 rm -f conftest conftest$ac_cv_exeext
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3680 $as_echo "$ac_cv_exeext" >&6; }
3682 rm -f conftest.$ac_ext
3683 EXEEXT=$ac_cv_exeext
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3691 FILE *f = fopen ("conftest.out", "w");
3692 return ferror (f) || fclose (f) != 0;
3698 ac_clean_files="$ac_clean_files conftest.out"
3699 # Check that the compiler produces executables we can run. If not, either
3700 # the compiler is broken, or we cross compile.
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3702 $as_echo_n "checking whether we are cross compiling... " >&6; }
3703 if test "$cross_compiling" != yes; then
3704 { { ac_try="$ac_link"
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_link") 2>&5
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }
3715 if { ac_try='./conftest$ac_cv_exeext'
3716 { { case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_try") 2>&5
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; }; then
3728 if test "$cross_compiling" = maybe; then
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "cannot run C compiled programs.
3734 If you meant to cross compile, use \`--host'.
3735 See \`config.log' for more details" "$LINENO" 5; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3740 $as_echo "$cross_compiling" >&6; }
3742 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3743 ac_clean_files=$ac_clean_files_save
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3745 $as_echo_n "checking for suffix of object files... " >&6; }
3746 if ${ac_cv_objext+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 rm -f conftest.o conftest.obj
3761 if { { ac_try="$ac_compile"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compile") 2>&5
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; then :
3772 for ac_file in conftest.o conftest.obj conftest.*; do
3773 test -f "$ac_file" || continue;
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "cannot compute suffix of object files: cannot compile
3787 See \`config.log' for more details" "$LINENO" 5; }
3789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3792 $as_echo "$ac_cv_objext" >&6; }
3793 OBJEXT=$ac_cv_objext
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3797 if ${ac_cv_c_compiler_gnu+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3814 if ac_fn_c_try_compile "$LINENO"; then :
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3825 if test $ac_compiler_gnu = yes; then
3830 ac_test_CFLAGS=${CFLAGS+set}
3831 ac_save_CFLAGS=$CFLAGS
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3834 if ${ac_cv_prog_cc_g+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 ac_save_c_werror_flag=$ac_c_werror_flag
3838 ac_c_werror_flag=yes
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3852 if ac_fn_c_try_compile "$LINENO"; then :
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3867 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_c_werror_flag=$ac_save_c_werror_flag
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_c_werror_flag=$ac_save_c_werror_flag
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3894 $as_echo "$ac_cv_prog_cc_g" >&6; }
3895 if test "$ac_test_CFLAGS" = set; then
3896 CFLAGS=$ac_save_CFLAGS
3897 elif test $ac_cv_prog_cc_g = yes; then
3898 if test "$GCC" = yes; then
3904 if test "$GCC" = yes; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3912 if ${ac_cv_prog_cc_c89+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 ac_cv_prog_cc_c89=no
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3921 #include <sys/types.h>
3922 #include <sys/stat.h>
3923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924 struct buf { int x; };
3925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926 static char *e (p, i)
3932 static char *f (char * (*g) (char **, int), char **p, ...)
3937 s = g (p, va_arg (v,int));
3942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
3945 as 'x'. The following induces an error, until -std is added to get
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
3948 that's true only with -std. */
3949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3956 int test (int i, double x);
3957 struct s1 {int (*f) (int a);};
3958 struct s2 {int (*f) (double a);};
3959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973 CC="$ac_save_CC $ac_arg"
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
3977 rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
3980 rm -f conftest.$ac_ext
3985 case "x$ac_cv_prog_cc_c89" in
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988 $as_echo "none needed" >&6; } ;;
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991 $as_echo "unsupported" >&6; } ;;
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3997 if test "x$ac_cv_prog_cc_c89" != xno; then :
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 DEPDIR="${am__leading_dot}deps"
4008 ac_config_commands="$ac_config_commands depfiles"
4011 am_make=${MAKE-make}
4012 cat > confinc << 'END'
4014 @echo this is the am__doit target
4017 # If we don't find an include directive, just comment out the code.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4023 # First try GNU make style include.
4024 echo "include confinc" > confmf
4025 # Ignore all kinds of additional output from `make'.
4026 case `$am_make -s -f confmf 2> /dev/null` in #(
4027 *the\ am__doit\ target*)
4033 # Now try BSD make style include.
4034 if test "$am__include" = "#"; then
4035 echo '.include "confinc"' > confmf
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038 am__include=.include
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4047 $as_echo "$_am_result" >&6; }
4048 rm -f confinc confmf
4050 # Check whether --enable-dependency-tracking was given.
4051 if test "${enable_dependency_tracking+set}" = set; then :
4052 enableval=$enable_dependency_tracking;
4055 if test "x$enable_dependency_tracking" != xno; then
4056 am_depcomp="$ac_aux_dir/depcomp"
4059 if test "x$enable_dependency_tracking" != xno; then
4069 depcc="$CC" am_compiler_list=
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072 $as_echo_n "checking dependency style of $depcc... " >&6; }
4073 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077 # We make a subdir and do the tests there. Otherwise we can end up
4078 # making bogus files that we don't know about and never remove. For
4079 # instance it was reported that on HP-UX the gcc test will end up
4080 # making a dummy file named `D' -- because `-MD' means `put the output
4083 # Copy depcomp to subdir because otherwise we won't find it if we're
4084 # using a relative directory.
4085 cp "$am_depcomp" conftest.dir
4087 # We will build objects and dependencies in a subdirectory because
4088 # it helps to detect inapplicable dependency modes. For instance
4089 # both Tru64's cc and ICC support -MD to output dependencies as a
4090 # side effect of compilation, but ICC will put the dependencies in
4091 # the current directory while Tru64 will put them in the object
4095 am_cv_CC_dependencies_compiler_type=none
4096 if test "$am_compiler_list" = ""; then
4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4100 case " $depcc " in #(
4101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4104 for depmode in $am_compiler_list; do
4105 # Setup a source with many dependencies, because some compilers
4106 # like to wrap large dependency lists on column 80 (with \), and
4107 # we should not choose a depcomp mode which is confused by this.
4109 # We need to recreate these files for each test, as the compiler may
4110 # overwrite some of them when testing with obscure command lines.
4111 # This happens at least with the AIX C compiler.
4113 for i in 1 2 3 4 5 6; do
4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4116 # Solaris 8's {/usr,}/bin/sh.
4117 touch sub/conftst$i.h
4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4122 # mode. It turns out that the SunPro C++ compiler does not properly
4123 # handle `-M -o', and we need to detect this. Also, some Intel
4124 # versions had trouble with output in subdirs
4125 am__obj=sub/conftest.${OBJEXT-o}
4126 am__minus_obj="-o $am__obj"
4129 # This depmode causes a compiler race in universal mode.
4130 test "$am__universal" = false || continue
4133 # after this tag, mechanisms are not by side-effect, so they'll
4134 # only be used when explicitly requested
4135 if test "x$enable_dependency_tracking" = xyes; then
4141 msvisualcpp | msvcmsys)
4142 # This compiler won't grok `-c -o', but also, the minuso test has
4143 # not run yet. These depmodes are late enough in the game, and
4144 # so weak that their functioning should not be impacted.
4145 am__obj=conftest.${OBJEXT-o}
4150 if depmode=$depmode \
4151 source=sub/conftest.c object=$am__obj \
4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4154 >/dev/null 2>conftest.err &&
4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4159 # icc doesn't choke on unknown options, it will just issue warnings
4160 # or remarks (even with -Werror). So we grep stderr for any message
4161 # that says an option was ignored or not supported.
4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
4163 # icc: Command line warning: ignoring option '-M'; no argument required
4164 # The diagnosis changed in icc 8.0:
4165 # icc: Command line remark: option '-MP' not supported
4166 if (grep 'ignoring option' conftest.err ||
4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4168 am_cv_CC_dependencies_compiler_type=$depmode
4177 am_cv_CC_dependencies_compiler_type=none
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4186 test "x$enable_dependency_tracking" != xno \
4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4189 am__fastdepCC_FALSE='#'
4191 am__fastdepCC_TRUE='#'
4192 am__fastdepCC_FALSE=
4197 ac_cpp='$CXXCPP $CPPFLAGS'
4198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4201 if test -z "$CXX"; then
4202 if test -n "$CCC"; then
4205 if test -n "$ac_tool_prefix"; then
4206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_CXX+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -n "$CXX"; then
4216 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 if test -n "$CXX"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4238 $as_echo "$CXX" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4245 test -n "$CXX" && break
4248 if test -z "$CXX"; then
4250 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 if test -n "$ac_ct_CXX"; then
4260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_prog_ac_ct_CXX="$ac_prog"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4280 if test -n "$ac_ct_CXX"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4282 $as_echo "$ac_ct_CXX" >&6; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4289 test -n "$ac_ct_CXX" && break
4292 if test "x$ac_ct_CXX" = x; then
4295 case $cross_compiling:$ac_tool_warned in
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4307 # Provide some information about the compiler.
4308 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4311 for ac_option in --version -v -V -qversion; do
4312 { { ac_try="$ac_compiler $ac_option >&5"
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4321 if test -s conftest.err; then
4323 ... rest of stderr output deleted ...
4324 10q' conftest.err >conftest.er1
4325 cat conftest.er1 >&5
4327 rm -f conftest.er1 conftest.err
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4333 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4334 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4361 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4362 if test $ac_compiler_gnu = yes; then
4367 ac_test_CXXFLAGS=${CXXFLAGS+set}
4368 ac_save_CXXFLAGS=$CXXFLAGS
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4370 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4371 if ${ac_cv_prog_cxx_g+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4375 ac_cxx_werror_flag=yes
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_cxx_try_compile "$LINENO"; then :
4390 ac_cv_prog_cxx_g=yes
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4404 if ac_fn_cxx_try_compile "$LINENO"; then :
4407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4420 if ac_fn_cxx_try_compile "$LINENO"; then :
4421 ac_cv_prog_cxx_g=yes
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4431 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4432 if test "$ac_test_CXXFLAGS" = set; then
4433 CXXFLAGS=$ac_save_CXXFLAGS
4434 elif test $ac_cv_prog_cxx_g = yes; then
4435 if test "$GXX" = yes; then
4441 if test "$GXX" = yes; then
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 depcc="$CXX" am_compiler_list=
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named `D' -- because `-MD' means `put the output
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4479 am_cv_CXX_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4500 # Solaris 8's {/usr,}/bin/sh.
4501 touch sub/conftst$i.h
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle `-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4517 # after this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested
4519 if test "x$enable_dependency_tracking" = xyes; then
4525 msvisualcpp | msvcmsys)
4526 # This compiler won't grok `-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4534 if depmode=$depmode \
4535 source=sub/conftest.c object=$am__obj \
4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538 >/dev/null 2>conftest.err &&
4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CXX_dependencies_compiler_type=$depmode
4561 am_cv_CXX_dependencies_compiler_type=none
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4566 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4567 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCXX_TRUE=
4573 am__fastdepCXX_FALSE='#'
4575 am__fastdepCXX_TRUE='#'
4576 am__fastdepCXX_FALSE=
4581 if test "x$remember_set_CFLAGS" = "x"
4583 if test "$CFLAGS" = "-g -O2"
4586 elif test "$CFLAGS" = "-g"
4592 if test "x$remember_set_CXXFLAGS" = "x"
4594 if test "$CXXFLAGS" = "-g -O2"
4597 elif test "$CXXFLAGS" = "-g"
4603 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4604 # Check for that case, and just disable c++ code if g++ doesn't run.
4606 ac_cpp='$CXXCPP $CPPFLAGS'
4607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4626 CXX=""; CXXCP=""; CXXFLAGS=""
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 # Check for a 64-bit integer type
4639 ac_cpp='$CPP $CPPFLAGS'
4640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4644 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4645 # On Suns, sometimes $CPP names a directory.
4646 if test -n "$CPP" && test -d "$CPP"; then
4649 if test -z "$CPP"; then
4650 if ${ac_cv_prog_CPP+:} false; then :
4651 $as_echo_n "(cached) " >&6
4653 # Double quotes because CPP needs to be expanded
4654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4657 for ac_c_preproc_warn_flag in '' yes
4659 # Use a header file that comes with gcc, so configuring glibc
4660 # with a fresh cross-compiler works.
4661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662 # <limits.h> exists even on freestanding compilers.
4663 # On the NeXT, cc -E runs the code through the compiler's parser,
4664 # not just through cpp. "Syntax error" is here to catch this case.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4668 # include <limits.h>
4670 # include <assert.h>
4674 if ac_fn_c_try_cpp "$LINENO"; then :
4677 # Broken: fails on valid input.
4680 rm -f conftest.err conftest.i conftest.$ac_ext
4682 # OK, works on sane cases. Now check whether nonexistent headers
4683 # can be detected and how.
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #include <ac_nonexistent.h>
4688 if ac_fn_c_try_cpp "$LINENO"; then :
4689 # Broken: success on invalid input.
4692 # Passes both tests.
4696 rm -f conftest.err conftest.i conftest.$ac_ext
4699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700 rm -f conftest.i conftest.err conftest.$ac_ext
4701 if $ac_preproc_ok; then :
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4714 $as_echo "$CPP" >&6; }
4716 for ac_c_preproc_warn_flag in '' yes
4718 # Use a header file that comes with gcc, so configuring glibc
4719 # with a fresh cross-compiler works.
4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721 # <limits.h> exists even on freestanding compilers.
4722 # On the NeXT, cc -E runs the code through the compiler's parser,
4723 # not just through cpp. "Syntax error" is here to catch this case.
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4727 # include <limits.h>
4729 # include <assert.h>
4733 if ac_fn_c_try_cpp "$LINENO"; then :
4736 # Broken: fails on valid input.
4739 rm -f conftest.err conftest.i conftest.$ac_ext
4741 # OK, works on sane cases. Now check whether nonexistent headers
4742 # can be detected and how.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <ac_nonexistent.h>
4747 if ac_fn_c_try_cpp "$LINENO"; then :
4748 # Broken: success on invalid input.
4751 # Passes both tests.
4755 rm -f conftest.err conftest.i conftest.$ac_ext
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.i conftest.err conftest.$ac_ext
4760 if $ac_preproc_ok; then :
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4765 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4766 See \`config.log' for more details" "$LINENO" 5; }
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4777 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4778 if ${ac_cv_path_GREP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -z "$GREP"; then
4782 ac_path_GREP_found=false
4783 # Loop through the user's path and test for each of PROGNAME-LIST
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788 test -z "$as_dir" && as_dir=.
4789 for ac_prog in grep ggrep; do
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4792 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4793 # Check for GNU ac_path_GREP and select it if it is found.
4794 # Check for GNU $ac_path_GREP
4795 case `"$ac_path_GREP" --version 2>&1` in
4797 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4800 $as_echo_n 0123456789 >"conftest.in"
4803 cat "conftest.in" "conftest.in" >"conftest.tmp"
4804 mv "conftest.tmp" "conftest.in"
4805 cp "conftest.in" "conftest.nl"
4806 $as_echo 'GREP' >> "conftest.nl"
4807 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809 as_fn_arith $ac_count + 1 && ac_count=$as_val
4810 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4811 # Best one so far, save it but keep looking for a better one
4812 ac_cv_path_GREP="$ac_path_GREP"
4813 ac_path_GREP_max=$ac_count
4815 # 10*(2^10) chars as input seems more than enough
4816 test $ac_count -gt 10 && break
4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821 $ac_path_GREP_found && break 3
4826 if test -z "$ac_cv_path_GREP"; then
4827 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4830 ac_cv_path_GREP=$GREP
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4835 $as_echo "$ac_cv_path_GREP" >&6; }
4836 GREP="$ac_cv_path_GREP"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4840 $as_echo_n "checking for egrep... " >&6; }
4841 if ${ac_cv_path_EGREP+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4845 then ac_cv_path_EGREP="$GREP -E"
4847 if test -z "$EGREP"; then
4848 ac_path_EGREP_found=false
4849 # Loop through the user's path and test for each of PROGNAME-LIST
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4854 test -z "$as_dir" && as_dir=.
4855 for ac_prog in egrep; do
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4858 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4859 # Check for GNU ac_path_EGREP and select it if it is found.
4860 # Check for GNU $ac_path_EGREP
4861 case `"$ac_path_EGREP" --version 2>&1` in
4863 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4866 $as_echo_n 0123456789 >"conftest.in"
4869 cat "conftest.in" "conftest.in" >"conftest.tmp"
4870 mv "conftest.tmp" "conftest.in"
4871 cp "conftest.in" "conftest.nl"
4872 $as_echo 'EGREP' >> "conftest.nl"
4873 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4875 as_fn_arith $ac_count + 1 && ac_count=$as_val
4876 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4877 # Best one so far, save it but keep looking for a better one
4878 ac_cv_path_EGREP="$ac_path_EGREP"
4879 ac_path_EGREP_max=$ac_count
4881 # 10*(2^10) chars as input seems more than enough
4882 test $ac_count -gt 10 && break
4884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4887 $ac_path_EGREP_found && break 3
4892 if test -z "$ac_cv_path_EGREP"; then
4893 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4896 ac_cv_path_EGREP=$EGREP
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4902 $as_echo "$ac_cv_path_EGREP" >&6; }
4903 EGREP="$ac_cv_path_EGREP"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4907 $as_echo_n "checking for ANSI C header files... " >&6; }
4908 if ${ac_cv_header_stdc+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 ac_cv_header_stdc=yes
4929 ac_cv_header_stdc=no
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 if test $ac_cv_header_stdc = yes; then
4934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "memchr" >/dev/null 2>&1; then :
4944 ac_cv_header_stdc=no
4950 if test $ac_cv_header_stdc = yes; then
4951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 $EGREP "free" >/dev/null 2>&1; then :
4961 ac_cv_header_stdc=no
4967 if test $ac_cv_header_stdc = yes; then
4968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4969 if test "$cross_compiling" = yes; then :
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4976 #if ((' ' & 0x0FF) == 0x020)
4977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4980 # define ISLOWER(c) \
4981 (('a' <= (c) && (c) <= 'i') \
4982 || ('j' <= (c) && (c) <= 'r') \
4983 || ('s' <= (c) && (c) <= 'z'))
4984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4992 for (i = 0; i < 256; i++)
4993 if (XOR (islower (i), ISLOWER (i))
4994 || toupper (i) != TOUPPER (i))
4999 if ac_fn_c_try_run "$LINENO"; then :
5002 ac_cv_header_stdc=no
5004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5005 conftest.$ac_objext conftest.beam conftest.$ac_ext
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5011 $as_echo "$ac_cv_header_stdc" >&6; }
5012 if test $ac_cv_header_stdc = yes; then
5014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5020 inttypes.h stdint.h unistd.h
5022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5026 cat >>confdefs.h <<_ACEOF
5027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5036 case $ac_cv_c_int64_t in #(
5040 cat >>confdefs.h <<_ACEOF
5041 #define int64_t $ac_cv_c_int64_t
5048 # Make sure we can run config.sub.
5049 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5050 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5053 $as_echo_n "checking build system type... " >&6; }
5054 if ${ac_cv_build+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 ac_build_alias=$build_alias
5058 test "x$ac_build_alias" = x &&
5059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5060 test "x$ac_build_alias" = x &&
5061 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5063 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5067 $as_echo "$ac_cv_build" >&6; }
5068 case $ac_cv_build in
5070 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5073 ac_save_IFS=$IFS; IFS='-'
5079 # Remember, the first character of IFS is used to create $*,
5080 # except with old shells:
5083 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5087 $as_echo_n "checking host system type... " >&6; }
5088 if ${ac_cv_host+:} false; then :
5089 $as_echo_n "(cached) " >&6
5091 if test "x$host_alias" = x; then
5092 ac_cv_host=$ac_cv_build
5094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5100 $as_echo "$ac_cv_host" >&6; }
5103 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5106 ac_save_IFS=$IFS; IFS='-'
5112 # Remember, the first character of IFS is used to create $*,
5113 # except with old shells:
5116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5119 enable_win32_dll=yes
5122 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}as; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_AS+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 if test -n "$AS"; then
5132 ac_cv_prog_AS="$AS" # Let the user override the test.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_AS="${ac_tool_prefix}as"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 if test -n "$AS"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5154 $as_echo "$AS" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5162 if test -z "$ac_cv_prog_AS"; then
5164 # Extract the first word of "as", so it can be a program name with args.
5165 set dummy as; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$ac_ct_AS"; then
5172 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ac_ct_AS="as"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5192 if test -n "$ac_ct_AS"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5194 $as_echo "$ac_ct_AS" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5200 if test "x$ac_ct_AS" = x; then
5203 case $cross_compiling:$ac_tool_warned in
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_DLLTOOL+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$DLLTOOL"; then
5224 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 DLLTOOL=$ac_cv_prog_DLLTOOL
5244 if test -n "$DLLTOOL"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5246 $as_echo "$DLLTOOL" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_DLLTOOL"; then
5255 ac_ct_DLLTOOL=$DLLTOOL
5256 # Extract the first word of "dlltool", so it can be a program name with args.
5257 set dummy dlltool; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$ac_ct_DLLTOOL"; then
5264 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5284 if test -n "$ac_ct_DLLTOOL"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5286 $as_echo "$ac_ct_DLLTOOL" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_DLLTOOL" = x; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5301 DLLTOOL=$ac_ct_DLLTOOL
5304 DLLTOOL="$ac_cv_prog_DLLTOOL"
5307 if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5309 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_OBJDUMP+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$OBJDUMP"; then
5316 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 OBJDUMP=$ac_cv_prog_OBJDUMP
5336 if test -n "$OBJDUMP"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5338 $as_echo "$OBJDUMP" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5346 if test -z "$ac_cv_prog_OBJDUMP"; then
5347 ac_ct_OBJDUMP=$OBJDUMP
5348 # Extract the first word of "objdump", so it can be a program name with args.
5349 set dummy objdump; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 if test -n "$ac_ct_OBJDUMP"; then
5356 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5376 if test -n "$ac_ct_OBJDUMP"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5378 $as_echo "$ac_ct_OBJDUMP" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5384 if test "x$ac_ct_OBJDUMP" = x; then
5387 case $cross_compiling:$ac_tool_warned in
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5391 ac_tool_warned=yes ;;
5393 OBJDUMP=$ac_ct_OBJDUMP
5396 OBJDUMP="$ac_cv_prog_OBJDUMP"
5402 test -z "$AS" && AS=as
5408 test -z "$DLLTOOL" && DLLTOOL=dlltool
5414 test -z "$OBJDUMP" && OBJDUMP=objdump
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5425 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5431 macro_revision='1.3293'
5445 ltmain="$ac_aux_dir/ltmain.sh"
5447 # Backslashify metacharacters that are still active within
5448 # double-quoted strings.
5449 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5451 # Same as above, but do not quote variable references.
5452 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5454 # Sed substitution to delay expansion of an escaped shell variable in a
5455 # double_quote_subst'ed string.
5456 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5458 # Sed substitution to delay expansion of an escaped single quote.
5459 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5461 # Sed substitution to avoid accidental globbing in evaled expressions
5462 no_glob_subst='s/\*/\\\*/g'
5464 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5465 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5469 $as_echo_n "checking how to print strings... " >&6; }
5470 # Test print first, because it will be a builtin if present.
5471 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5472 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5474 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5477 # Use this function as a fallback that always works.
5478 func_fallback_echo ()
5480 eval 'cat <<_LTECHO_EOF
5484 ECHO='func_fallback_echo'
5487 # func_echo_all arg...
5488 # Invoke $ECHO with all args, space-separated.
5495 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5496 $as_echo "printf" >&6; } ;;
5497 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5498 $as_echo "print -r" >&6; } ;;
5499 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5500 $as_echo "cat" >&6; } ;;
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5517 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5518 if ${ac_cv_path_SED+:} false; then :
5519 $as_echo_n "(cached) " >&6
5521 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5522 for ac_i in 1 2 3 4 5 6 7; do
5523 ac_script="$ac_script$as_nl$ac_script"
5525 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5526 { ac_script=; unset ac_script;}
5527 if test -z "$SED"; then
5528 ac_path_SED_found=false
5529 # Loop through the user's path and test for each of PROGNAME-LIST
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_prog in sed gsed; do
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5538 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5539 # Check for GNU ac_path_SED and select it if it is found.
5540 # Check for GNU $ac_path_SED
5541 case `"$ac_path_SED" --version 2>&1` in
5543 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5546 $as_echo_n 0123456789 >"conftest.in"
5549 cat "conftest.in" "conftest.in" >"conftest.tmp"
5550 mv "conftest.tmp" "conftest.in"
5551 cp "conftest.in" "conftest.nl"
5552 $as_echo '' >> "conftest.nl"
5553 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555 as_fn_arith $ac_count + 1 && ac_count=$as_val
5556 if test $ac_count -gt ${ac_path_SED_max-0}; then
5557 # Best one so far, save it but keep looking for a better one
5558 ac_cv_path_SED="$ac_path_SED"
5559 ac_path_SED_max=$ac_count
5561 # 10*(2^10) chars as input seems more than enough
5562 test $ac_count -gt 10 && break
5564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567 $ac_path_SED_found && break 3
5572 if test -z "$ac_cv_path_SED"; then
5573 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5581 $as_echo "$ac_cv_path_SED" >&6; }
5582 SED="$ac_cv_path_SED"
5585 test -z "$SED" && SED=sed
5586 Xsed="$SED -e 1s/^X//"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5599 $as_echo_n "checking for fgrep... " >&6; }
5600 if ${ac_cv_path_FGREP+:} false; then :
5601 $as_echo_n "(cached) " >&6
5603 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5604 then ac_cv_path_FGREP="$GREP -F"
5606 if test -z "$FGREP"; then
5607 ac_path_FGREP_found=false
5608 # Loop through the user's path and test for each of PROGNAME-LIST
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5613 test -z "$as_dir" && as_dir=.
5614 for ac_prog in fgrep; do
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5617 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5618 # Check for GNU ac_path_FGREP and select it if it is found.
5619 # Check for GNU $ac_path_FGREP
5620 case `"$ac_path_FGREP" --version 2>&1` in
5622 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5625 $as_echo_n 0123456789 >"conftest.in"
5628 cat "conftest.in" "conftest.in" >"conftest.tmp"
5629 mv "conftest.tmp" "conftest.in"
5630 cp "conftest.in" "conftest.nl"
5631 $as_echo 'FGREP' >> "conftest.nl"
5632 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5634 as_fn_arith $ac_count + 1 && ac_count=$as_val
5635 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5636 # Best one so far, save it but keep looking for a better one
5637 ac_cv_path_FGREP="$ac_path_FGREP"
5638 ac_path_FGREP_max=$ac_count
5640 # 10*(2^10) chars as input seems more than enough
5641 test $ac_count -gt 10 && break
5643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5646 $ac_path_FGREP_found && break 3
5651 if test -z "$ac_cv_path_FGREP"; then
5652 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5655 ac_cv_path_FGREP=$FGREP
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5661 $as_echo "$ac_cv_path_FGREP" >&6; }
5662 FGREP="$ac_cv_path_FGREP"
5665 test -z "$GREP" && GREP=grep
5685 # Check whether --with-gnu-ld was given.
5686 if test "${with_gnu_ld+set}" = set; then :
5687 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5693 if test "$GCC" = yes; then
5694 # Check if gcc -print-prog-name=ld gives a path.
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5696 $as_echo_n "checking for ld used by $CC... " >&6; }
5699 # gcc leaves a trailing carriage return which upsets mingw
5700 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5702 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5705 # Accept absolute paths.
5707 re_direlt='/[^/][^/]*/\.\./'
5708 # Canonicalize the pathname of ld
5709 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5710 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5711 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5713 test -z "$LD" && LD="$ac_prog"
5716 # If it fails, then pretend we aren't using GCC.
5720 # If it is relative, then search for the first ld in PATH.
5724 elif test "$with_gnu_ld" = yes; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5726 $as_echo_n "checking for GNU ld... " >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5729 $as_echo_n "checking for non-GNU ld... " >&6; }
5731 if ${lt_cv_path_LD+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -z "$LD"; then
5735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5736 for ac_dir in $PATH; do
5738 test -z "$ac_dir" && ac_dir=.
5739 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5740 lt_cv_path_LD="$ac_dir/$ac_prog"
5741 # Check to see if the program is GNU ld. I'd rather use --version,
5742 # but apparently some variants of GNU ld only accept -v.
5743 # Break only if it was the GNU/non-GNU ld that we prefer.
5744 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5745 *GNU* | *'with BFD'*)
5746 test "$with_gnu_ld" != no && break
5749 test "$with_gnu_ld" != yes && break
5756 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5761 if test -n "$LD"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5763 $as_echo "$LD" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5768 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5770 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5771 if ${lt_cv_prog_gnu_ld+:} false; then :
5772 $as_echo_n "(cached) " >&6
5774 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5775 case `$LD -v 2>&1 </dev/null` in
5776 *GNU* | *'with BFD'*)
5777 lt_cv_prog_gnu_ld=yes
5780 lt_cv_prog_gnu_ld=no
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5785 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5786 with_gnu_ld=$lt_cv_prog_gnu_ld
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5797 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5798 if ${lt_cv_path_NM+:} false; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$NM"; then
5802 # Let the user override the test.
5805 lt_nm_to_check="${ac_tool_prefix}nm"
5806 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5807 lt_nm_to_check="$lt_nm_to_check nm"
5809 for lt_tmp_nm in $lt_nm_to_check; do
5810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5811 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5813 test -z "$ac_dir" && ac_dir=.
5814 tmp_nm="$ac_dir/$lt_tmp_nm"
5815 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5816 # Check to see if the nm accepts a BSD-compat flag.
5817 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5818 # nm: unknown option "B" ignored
5819 # Tru64's nm complains that /dev/null is an invalid object file
5820 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5821 */dev/null* | *'Invalid file or object type'*)
5822 lt_cv_path_NM="$tmp_nm -B"
5826 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5828 lt_cv_path_NM="$tmp_nm -p"
5832 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5833 continue # so that we can try to find one that supports BSD flags
5842 : ${lt_cv_path_NM=no}
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5846 $as_echo "$lt_cv_path_NM" >&6; }
5847 if test "$lt_cv_path_NM" != "no"; then
5850 # Didn't find any BSD compatible name lister, look for dumpbin.
5851 if test -n "$DUMPBIN"; then :
5852 # Let the user override the test.
5854 if test -n "$ac_tool_prefix"; then
5855 for ac_prog in dumpbin "link -dump"
5857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_DUMPBIN+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -n "$DUMPBIN"; then
5865 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 DUMPBIN=$ac_cv_prog_DUMPBIN
5885 if test -n "$DUMPBIN"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5887 $as_echo "$DUMPBIN" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5894 test -n "$DUMPBIN" && break
5897 if test -z "$DUMPBIN"; then
5898 ac_ct_DUMPBIN=$DUMPBIN
5899 for ac_prog in dumpbin "link -dump"
5901 # Extract the first word of "$ac_prog", so it can be a program name with args.
5902 set dummy $ac_prog; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -n "$ac_ct_DUMPBIN"; then
5909 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5929 if test -n "$ac_ct_DUMPBIN"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5931 $as_echo "$ac_ct_DUMPBIN" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5938 test -n "$ac_ct_DUMPBIN" && break
5941 if test "x$ac_ct_DUMPBIN" = x; then
5944 case $cross_compiling:$ac_tool_warned in
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5948 ac_tool_warned=yes ;;
5950 DUMPBIN=$ac_ct_DUMPBIN
5954 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5956 DUMPBIN="$DUMPBIN -symbols"
5964 if test "$DUMPBIN" != ":"; then
5968 test -z "$NM" && NM=nm
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5976 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5977 if ${lt_cv_nm_interface+:} false; then :
5978 $as_echo_n "(cached) " >&6
5980 lt_cv_nm_interface="BSD nm"
5981 echo "int some_variable = 0;" > conftest.$ac_ext
5982 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5983 (eval "$ac_compile" 2>conftest.err)
5984 cat conftest.err >&5
5985 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5986 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5987 cat conftest.err >&5
5988 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5989 cat conftest.out >&5
5990 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5991 lt_cv_nm_interface="MS dumpbin"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5996 $as_echo "$lt_cv_nm_interface" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5999 $as_echo_n "checking whether ln -s works... " >&6; }
6001 if test "$LN_S" = "ln -s"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6003 $as_echo "yes" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6006 $as_echo "no, using $LN_S" >&6; }
6009 # find the maximum length of command line arguments
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6011 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6012 if ${lt_cv_sys_max_cmd_len+:} false; then :
6013 $as_echo_n "(cached) " >&6
6020 # On DJGPP, this test can blow up pretty badly due to problems in libc
6021 # (any single argument exceeding 2000 bytes causes a buffer overrun
6022 # during glob expansion). Even if it were fixed, the result of this
6023 # check would be larger than it should be.
6024 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6028 # Under GNU Hurd, this test is not required because there is
6029 # no limit to the length of command line arguments.
6030 # Libtool will interpret -1 as no limit whatsoever
6031 lt_cv_sys_max_cmd_len=-1;
6034 cygwin* | mingw* | cegcc*)
6035 # On Win9x/ME, this test blows up -- it succeeds, but takes
6036 # about 5 minutes as the teststring grows exponentially.
6037 # Worse, since 9x/ME are not pre-emptively multitasking,
6038 # you end up with a "frozen" computer, even though with patience
6039 # the test eventually succeeds (with a max line length of 256k).
6040 # Instead, let's just punt: use the minimum linelength reported by
6041 # all of the supported platforms: 8192 (on NT/2K/XP).
6042 lt_cv_sys_max_cmd_len=8192;
6046 # On MiNT this can take a long time and run out of memory.
6047 lt_cv_sys_max_cmd_len=8192;
6051 # On AmigaOS with pdksh, this test takes hours, literally.
6052 # So we just punt and use a minimum line length of 8192.
6053 lt_cv_sys_max_cmd_len=8192;
6056 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6057 # This has been around since 386BSD, at least. Likely further.
6058 if test -x /sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6060 elif test -x /usr/sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6065 # And add a safety zone
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6072 lt_cv_sys_max_cmd_len=196608
6076 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6077 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6078 # nice to cause kernel panics so lets avoid the loop below.
6079 # First set a reasonable default.
6080 lt_cv_sys_max_cmd_len=16384
6082 if test -x /sbin/sysconfig; then
6083 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6084 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6089 lt_cv_sys_max_cmd_len=102400
6091 sysv5* | sco5v6* | sysv4.2uw2*)
6092 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6093 if test -n "$kargmax"; then
6094 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6096 lt_cv_sys_max_cmd_len=32768
6100 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6101 if test -n "$lt_cv_sys_max_cmd_len"; then
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6105 # Make teststring a little bigger before we do anything with it.
6106 # a 1K string should be a reasonable start.
6107 for i in 1 2 3 4 5 6 7 8 ; do
6108 teststring=$teststring$teststring
6110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6111 # If test is not a shell built-in, we'll probably end up computing a
6112 # maximum length that is only half of the actual maximum length, but
6114 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6115 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6116 test $i != 17 # 1/2 MB should be enough
6119 teststring=$teststring$teststring
6121 # Only check the string length outside the loop.
6122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6124 # Add a significant safety factor because C++ compilers can tack on
6125 # massive amounts of additional arguments before passing them to the
6126 # linker. It appears as though 1/2 is a usable value.
6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6134 if test -n $lt_cv_sys_max_cmd_len ; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6136 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6139 $as_echo "none" >&6; }
6141 max_cmd_len=$lt_cv_sys_max_cmd_len
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6153 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6154 # Try some XSI features
6157 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6159 && eval 'test $(( 1 + 1 )) -eq 2 \
6160 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6163 $as_echo "$xsi_shell" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6167 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6169 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6171 && lt_shell_append=yes
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6173 $as_echo "$lt_shell_append" >&6; }
6176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6186 # test EBCDIC or ASCII
6187 case `echo X|tr X '\101'` in
6188 A) # ASCII based system
6189 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6190 lt_SP2NL='tr \040 \012'
6191 lt_NL2SP='tr \015\012 \040\040'
6193 *) # EBCDIC based system
6194 lt_SP2NL='tr \100 \n'
6195 lt_NL2SP='tr \r\n \100\100'
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6208 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6209 if ${lt_cv_to_host_file_cmd+:} false; then :
6210 $as_echo_n "(cached) " >&6
6215 *-*-mingw* ) # actually msys
6216 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6219 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6221 * ) # otherwise, assume *nix
6222 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6228 *-*-mingw* ) # actually msys
6229 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6232 lt_cv_to_host_file_cmd=func_convert_file_noop
6234 * ) # otherwise, assume *nix
6235 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6239 * ) # unhandled hosts (and "normal" native builds)
6240 lt_cv_to_host_file_cmd=func_convert_file_noop
6246 to_host_file_cmd=$lt_cv_to_host_file_cmd
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6248 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6255 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6256 if ${lt_cv_to_tool_file_cmd+:} false; then :
6257 $as_echo_n "(cached) " >&6
6259 #assume ordinary cross tools, or native build.
6260 lt_cv_to_tool_file_cmd=func_convert_file_noop
6264 *-*-mingw* ) # actually msys
6265 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6273 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6275 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6282 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6283 if ${lt_cv_ld_reload_flag+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 lt_cv_ld_reload_flag='-r'
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6289 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6290 reload_flag=$lt_cv_ld_reload_flag
6291 case $reload_flag in
6293 *) reload_flag=" $reload_flag" ;;
6295 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6297 cygwin* | mingw* | pw32* | cegcc*)
6298 if test "$GCC" != yes; then
6303 if test "$GCC" = yes; then
6304 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_OBJDUMP+:} false; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$OBJDUMP"; then
6328 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 OBJDUMP=$ac_cv_prog_OBJDUMP
6348 if test -n "$OBJDUMP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6350 $as_echo "$OBJDUMP" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6358 if test -z "$ac_cv_prog_OBJDUMP"; then
6359 ac_ct_OBJDUMP=$OBJDUMP
6360 # Extract the first word of "objdump", so it can be a program name with args.
6361 set dummy objdump; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6365 $as_echo_n "(cached) " >&6
6367 if test -n "$ac_ct_OBJDUMP"; then
6368 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6388 if test -n "$ac_ct_OBJDUMP"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6390 $as_echo "$ac_ct_OBJDUMP" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 if test "x$ac_ct_OBJDUMP" = x; then
6399 case $cross_compiling:$ac_tool_warned in
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6405 OBJDUMP=$ac_ct_OBJDUMP
6408 OBJDUMP="$ac_cv_prog_OBJDUMP"
6411 test -z "$OBJDUMP" && OBJDUMP=objdump
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6419 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6420 if ${lt_cv_deplibs_check_method+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 lt_cv_file_magic_cmd='$MAGIC_CMD'
6424 lt_cv_file_magic_test_file=
6425 lt_cv_deplibs_check_method='unknown'
6426 # Need to set the preceding variable on all platforms that support
6427 # interlibrary dependencies.
6428 # 'none' -- dependencies not supported.
6429 # `unknown' -- same as none, but documents that we really don't know.
6430 # 'pass_all' -- all dependencies passed with no checks.
6431 # 'test_compile' -- check by making test program.
6432 # 'file_magic [[regex]]' -- check by looking for files in library path
6433 # which responds to the $file_magic_cmd with a given extended regex.
6434 # If you have `file' or equivalent on your system and you're not sure
6435 # whether `pass_all' will *always* work, you probably want this one.
6439 lt_cv_deplibs_check_method=pass_all
6443 lt_cv_deplibs_check_method=pass_all
6447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6448 lt_cv_file_magic_cmd='/usr/bin/file -L'
6449 lt_cv_file_magic_test_file=/shlib/libc.so
6453 # func_win32_libid is a shell function defined in ltmain.sh
6454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6455 lt_cv_file_magic_cmd='func_win32_libid'
6459 # Base MSYS/MinGW do not provide the 'file' command needed by
6460 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6461 # unless we find 'file', for example because we are cross-compiling.
6462 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6463 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6465 lt_cv_file_magic_cmd='func_win32_libid'
6467 # Keep this pattern in sync with the one in func_win32_libid.
6468 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6469 lt_cv_file_magic_cmd='$OBJDUMP -f'
6474 # use the weaker test based on 'objdump'. See mingw*.
6475 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6476 lt_cv_file_magic_cmd='$OBJDUMP -f'
6479 darwin* | rhapsody*)
6480 lt_cv_deplibs_check_method=pass_all
6483 freebsd* | dragonfly*)
6484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6487 # Not sure whether the presence of OpenBSD here was a mistake.
6488 # Let's accept both of them until this is cleared up.
6489 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6490 lt_cv_file_magic_cmd=/usr/bin/file
6491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6495 lt_cv_deplibs_check_method=pass_all
6500 lt_cv_deplibs_check_method=pass_all
6504 lt_cv_deplibs_check_method=pass_all
6507 hpux10.20* | hpux11*)
6508 lt_cv_file_magic_cmd=/usr/bin/file
6511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6530 irix5* | irix6* | nonstopux*)
6532 *-32|*"-32 ") libmagic=32-bit;;
6533 *-n32|*"-n32 ") libmagic=N32;;
6534 *-64|*"-64 ") libmagic=64-bit;;
6535 *) libmagic=never-match;;
6537 lt_cv_deplibs_check_method=pass_all
6540 # This must be Linux ELF.
6541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6542 lt_cv_deplibs_check_method=pass_all
6546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6555 lt_cv_file_magic_cmd=/usr/bin/file
6556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6560 lt_cv_deplibs_check_method=pass_all
6564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6571 osf3* | osf4* | osf5*)
6572 lt_cv_deplibs_check_method=pass_all
6576 lt_cv_deplibs_check_method=pass_all
6580 lt_cv_deplibs_check_method=pass_all
6583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6584 lt_cv_deplibs_check_method=pass_all
6588 case $host_vendor in
6590 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]'
6591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6594 lt_cv_deplibs_check_method=pass_all
6597 lt_cv_file_magic_cmd='/bin/file'
6598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6601 lt_cv_file_magic_cmd='/bin/file'
6602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6603 lt_cv_file_magic_test_file=/lib/libc.so
6606 lt_cv_deplibs_check_method=pass_all
6609 lt_cv_deplibs_check_method=pass_all
6615 lt_cv_deplibs_check_method=pass_all
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6621 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6625 if test "$build" = "$host"; then
6628 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6631 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6637 file_magic_cmd=$lt_cv_file_magic_cmd
6638 deplibs_check_method=$lt_cv_deplibs_check_method
6639 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_DLLTOOL+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$DLLTOOL"; then
6671 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 DLLTOOL=$ac_cv_prog_DLLTOOL
6691 if test -n "$DLLTOOL"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6693 $as_echo "$DLLTOOL" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6701 if test -z "$ac_cv_prog_DLLTOOL"; then
6702 ac_ct_DLLTOOL=$DLLTOOL
6703 # Extract the first word of "dlltool", so it can be a program name with args.
6704 set dummy dlltool; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6708 $as_echo_n "(cached) " >&6
6710 if test -n "$ac_ct_DLLTOOL"; then
6711 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6731 if test -n "$ac_ct_DLLTOOL"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6733 $as_echo "$ac_ct_DLLTOOL" >&6; }
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6739 if test "x$ac_ct_DLLTOOL" = x; then
6742 case $cross_compiling:$ac_tool_warned in
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6748 DLLTOOL=$ac_ct_DLLTOOL
6751 DLLTOOL="$ac_cv_prog_DLLTOOL"
6754 test -z "$DLLTOOL" && DLLTOOL=dlltool
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6763 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6764 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6765 $as_echo_n "(cached) " >&6
6767 lt_cv_sharedlib_from_linklib_cmd='unknown'
6770 cygwin* | mingw* | pw32* | cegcc*)
6771 # two different shell functions defined in ltmain.sh
6772 # decide which to use based on capabilities of $DLLTOOL
6773 case `$DLLTOOL --help 2>&1` in
6774 *--identify-strict*)
6775 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6778 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6783 # fallback: assume linklib IS sharedlib
6784 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6790 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6791 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6792 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6800 if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_AR+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 if test -n "$AR"; then
6811 ac_cv_prog_AR="$AR" # Let the user override the test.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 if test -n "$AR"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6833 $as_echo "$AR" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6840 test -n "$AR" && break
6843 if test -z "$AR"; then
6847 # Extract the first word of "$ac_prog", so it can be a program name with args.
6848 set dummy $ac_prog; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 if test -n "$ac_ct_AR"; then
6855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_AR="$ac_prog"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6875 if test -n "$ac_ct_AR"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6877 $as_echo "$ac_ct_AR" >&6; }
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6884 test -n "$ac_ct_AR" && break
6887 if test "x$ac_ct_AR" = x; then
6890 case $cross_compiling:$ac_tool_warned in
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6914 $as_echo_n "checking for archiver @FILE support... " >&6; }
6915 if ${lt_cv_ar_at_file+:} false; then :
6916 $as_echo_n "(cached) " >&6
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 echo conftest.$ac_objext > conftest.lst
6932 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6934 (eval $lt_ar_try) 2>&5
6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }
6938 if test "$ac_status" -eq 0; then
6939 # Ensure the archiver fails upon bogus file names.
6940 rm -f conftest.$ac_objext libconftest.a
6941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6942 (eval $lt_ar_try) 2>&5
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }
6946 if test "$ac_status" -ne 0; then
6950 rm -f conftest.* libconftest.a
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6957 $as_echo "$lt_cv_ar_at_file" >&6; }
6959 if test "x$lt_cv_ar_at_file" = xno; then
6962 archiver_list_spec=$lt_cv_ar_at_file
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}strip; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_STRIP+:} false; then :
6977 $as_echo_n "(cached) " >&6
6979 if test -n "$STRIP"; then
6980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 STRIP=$ac_cv_prog_STRIP
7000 if test -n "$STRIP"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7002 $as_echo "$STRIP" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7010 if test -z "$ac_cv_prog_STRIP"; then
7012 # Extract the first word of "strip", so it can be a program name with args.
7013 set dummy strip; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7017 $as_echo_n "(cached) " >&6
7019 if test -n "$ac_ct_STRIP"; then
7020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_ac_ct_STRIP="strip"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7040 if test -n "$ac_ct_STRIP"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7042 $as_echo "$ac_ct_STRIP" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7048 if test "x$ac_ct_STRIP" = x; then
7051 case $cross_compiling:$ac_tool_warned in
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7060 STRIP="$ac_cv_prog_STRIP"
7063 test -z "$STRIP" && STRIP=:
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_RANLIB+:} false; then :
7076 $as_echo_n "(cached) " >&6
7078 if test -n "$RANLIB"; then
7079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 RANLIB=$ac_cv_prog_RANLIB
7099 if test -n "$RANLIB"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7101 $as_echo "$RANLIB" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7109 if test -z "$ac_cv_prog_RANLIB"; then
7110 ac_ct_RANLIB=$RANLIB
7111 # Extract the first word of "ranlib", so it can be a program name with args.
7112 set dummy ranlib; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 if test -n "$ac_ct_RANLIB"; then
7119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_RANLIB="ranlib"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7139 if test -n "$ac_ct_RANLIB"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7141 $as_echo "$ac_ct_RANLIB" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7147 if test "x$ac_ct_RANLIB" = x; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7156 RANLIB=$ac_ct_RANLIB
7159 RANLIB="$ac_cv_prog_RANLIB"
7162 test -z "$RANLIB" && RANLIB=:
7169 # Determine commands to create old-style static archives.
7170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7171 old_postinstall_cmds='chmod 644 $oldlib'
7172 old_postuninstall_cmds=
7174 if test -n "$RANLIB"; then
7177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7188 lock_old_archive_extraction=yes ;;
7190 lock_old_archive_extraction=no ;;
7231 # If no C compiler was specified, use CC.
7234 # If no C compiler flags were specified, use CFLAGS.
7235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7237 # Allow CC to be a program name with arguments.
7241 # Check for command to grab the raw symbol name followed by C symbol from nm.
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7243 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7244 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7245 $as_echo_n "(cached) " >&6
7248 # These are sane defaults that work on at least a few old systems.
7249 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7251 # Character class describing NM global symbol codes.
7252 symcode='[BCDEGRST]'
7254 # Regexp to match symbols that can be accessed directly from C.
7255 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7257 # Define system-specific variables.
7262 cygwin* | mingw* | pw32* | cegcc*)
7263 symcode='[ABCDGISTW]'
7266 if test "$host_cpu" = ia64; then
7267 symcode='[ABCDEGRST]'
7271 symcode='[BCDEGRST]'
7274 symcode='[BCDEGQRST]'
7285 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7293 # If we're using GNU nm, then use its standard symbol codes.
7294 case `$NM -V 2>&1` in
7295 *GNU* | *'with BFD'*)
7296 symcode='[ABCDGIRSTW]' ;;
7299 # Transform an extracted symbol line into a proper C declaration.
7300 # Some systems (esp. on ia64) link data and code symbols differently,
7301 # so use this general approach.
7302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7304 # Transform an extracted symbol line into symbol name and symbol address
7305 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7306 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7308 # Handle CRLF in mingw tool chain
7312 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7316 # Try without a prefix underscore, then with it.
7317 for ac_symprfx in "" "_"; do
7319 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7320 symxfrm="\\1 $ac_symprfx\\2 \\2"
7322 # Write the raw and C identifiers.
7323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7324 # Fake it for dumpbin and say T for any non-static function
7325 # and D for any global variable.
7326 # Also find C++ and __fastcall symbols from MSVC++,
7327 # which start with @ or ?.
7328 lt_cv_sys_global_symbol_pipe="$AWK '"\
7329 " {last_section=section; section=\$ 3};"\
7330 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7331 " \$ 0!~/External *\|/{next};"\
7332 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7333 " {if(hide[section]) next};"\
7334 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7335 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7336 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7337 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7338 " ' prfx=^$ac_symprfx"
7340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7342 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7344 # Check to see that the pipe works correctly.
7348 cat > conftest.$ac_ext <<_LT_EOF
7353 void nm_test_func(void);
7354 void nm_test_func(void){}
7358 int main(){nm_test_var='a';nm_test_func();return(0);}
7361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7362 (eval $ac_compile) 2>&5
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; then
7366 # Now try to grab the symbols.
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7369 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; } && test -s "$nlist"; then
7373 # Try sorting and uniquifying the output.
7374 if sort "$nlist" | uniq > "$nlist"T; then
7375 mv -f "$nlist"T "$nlist"
7380 # Make sure that we snagged all the symbols we need.
7381 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7382 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7383 cat <<_LT_EOF > conftest.$ac_ext
7384 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7385 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7386 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7387 relocations are performed -- see ld's documentation on pseudo-relocs. */
7388 # define LT_DLSYM_CONST
7389 #elif defined(__osf__)
7390 /* This system does not cope well with relocations in const data. */
7391 # define LT_DLSYM_CONST
7393 # define LT_DLSYM_CONST const
7401 # Now generate the symbol file.
7402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7404 cat <<_LT_EOF >> conftest.$ac_ext
7406 /* The mapping between symbol names and symbols. */
7407 LT_DLSYM_CONST struct {
7411 lt__PROGRAM__LTX_preloaded_symbols[] =
7413 { "@PROGRAM@", (void *) 0 },
7415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7416 cat <<\_LT_EOF >> conftest.$ac_ext
7420 /* This works around a problem in FreeBSD linker */
7421 #ifdef FREEBSD_WORKAROUND
7422 static const void *lt_preloaded_setup() {
7423 return lt__PROGRAM__LTX_preloaded_symbols;
7431 # Now try linking the two files.
7432 mv conftest.$ac_objext conftstm.$ac_objext
7433 lt_globsym_save_LIBS=$LIBS
7434 lt_globsym_save_CFLAGS=$CFLAGS
7435 LIBS="conftstm.$ac_objext"
7436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7438 (eval $ac_link) 2>&5
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7444 LIBS=$lt_globsym_save_LIBS
7445 CFLAGS=$lt_globsym_save_CFLAGS
7447 echo "cannot find nm_test_func in $nlist" >&5
7450 echo "cannot find nm_test_var in $nlist" >&5
7453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7456 echo "$progname: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 rm -rf conftest* conftst*
7461 # Do not use the global_symbol_pipe unless it works.
7462 if test "$pipe_works" = yes; then
7465 lt_cv_sys_global_symbol_pipe=
7471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7472 lt_cv_sys_global_symbol_to_cdecl=
7474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7476 $as_echo "failed" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7479 $as_echo "ok" >&6; }
7482 # Response file support.
7483 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7484 nm_file_list_spec='@'
7485 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7486 nm_file_list_spec='@'
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7516 $as_echo_n "checking for sysroot... " >&6; }
7518 # Check whether --with-sysroot was given.
7519 if test "${with_sysroot+set}" = set; then :
7520 withval=$with_sysroot;
7527 case ${with_sysroot} in #(
7529 if test "$GCC" = yes; then
7530 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7534 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7540 $as_echo "${with_sysroot}" >&6; }
7541 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7546 $as_echo "${lt_sysroot:-no}" >&6; }
7552 # Check whether --enable-libtool-lock was given.
7553 if test "${enable_libtool_lock+set}" = set; then :
7554 enableval=$enable_libtool_lock;
7557 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7559 # Some flags need to be propagated to the compiler or linker for good
7563 # Find out which ABI we are using.
7564 echo 'int i;' > conftest.$ac_ext
7565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7566 (eval $ac_compile) 2>&5
7568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7569 test $ac_status = 0; }; then
7570 case `/usr/bin/file conftest.$ac_objext` in
7582 # Find out which ABI we are using.
7583 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585 (eval $ac_compile) 2>&5
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }; then
7589 if test "$lt_cv_prog_gnu_ld" = yes; then
7590 case `/usr/bin/file conftest.$ac_objext` in
7592 LD="${LD-ld} -melf32bsmip"
7595 LD="${LD-ld} -melf32bmipn32"
7598 LD="${LD-ld} -melf64bmip"
7602 case `/usr/bin/file conftest.$ac_objext` in
7618 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7619 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7620 # Find out which ABI we are using.
7621 echo 'int i;' > conftest.$ac_ext
7622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7623 (eval $ac_compile) 2>&5
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; }; then
7627 case `/usr/bin/file conftest.o` in
7630 x86_64-*kfreebsd*-gnu)
7631 LD="${LD-ld} -m elf_i386_fbsd"
7634 LD="${LD-ld} -m elf_i386"
7636 ppc64-*linux*|powerpc64-*linux*)
7637 LD="${LD-ld} -m elf32ppclinux"
7640 LD="${LD-ld} -m elf_s390"
7643 LD="${LD-ld} -m elf32_sparc"
7649 x86_64-*kfreebsd*-gnu)
7650 LD="${LD-ld} -m elf_x86_64_fbsd"
7653 LD="${LD-ld} -m elf_x86_64"
7655 ppc*-*linux*|powerpc*-*linux*)
7656 LD="${LD-ld} -m elf64ppc"
7658 s390*-*linux*|s390*-*tpf*)
7659 LD="${LD-ld} -m elf64_s390"
7662 LD="${LD-ld} -m elf64_sparc"
7672 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7673 SAVE_CFLAGS="$CFLAGS"
7674 CFLAGS="$CFLAGS -belf"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7676 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7677 if ${lt_cv_cc_needs_belf+:} false; then :
7678 $as_echo_n "(cached) " >&6
7681 ac_cpp='$CPP $CPPFLAGS'
7682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7697 if ac_fn_c_try_link "$LINENO"; then :
7698 lt_cv_cc_needs_belf=yes
7700 lt_cv_cc_needs_belf=no
7702 rm -f core conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7712 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7713 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7714 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7715 CFLAGS="$SAVE_CFLAGS"
7719 # Find out which ABI we are using.
7720 echo 'int i;' > conftest.$ac_ext
7721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7722 (eval $ac_compile) 2>&5
7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725 test $ac_status = 0; }; then
7726 case `/usr/bin/file conftest.o` in
7728 case $lt_cv_prog_gnu_ld in
7729 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7743 need_locks="$enable_libtool_lock"
7745 if test -n "$ac_tool_prefix"; then
7746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7747 set dummy ${ac_tool_prefix}mt; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7751 $as_echo_n "(cached) " >&6
7753 if test -n "$MANIFEST_TOOL"; then
7754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7774 if test -n "$MANIFEST_TOOL"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7776 $as_echo "$MANIFEST_TOOL" >&6; }
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7784 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7786 # Extract the first word of "mt", so it can be a program name with args.
7787 set dummy mt; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 if test -n "$ac_ct_MANIFEST_TOOL"; then
7794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7814 if test -n "$ac_ct_MANIFEST_TOOL"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7816 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7822 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7825 case $cross_compiling:$ac_tool_warned in
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829 ac_tool_warned=yes ;;
7831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7837 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7839 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7840 if ${lt_cv_path_mainfest_tool+:} false; then :
7841 $as_echo_n "(cached) " >&6
7843 lt_cv_path_mainfest_tool=no
7844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7846 cat conftest.err >&5
7847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7848 lt_cv_path_mainfest_tool=yes
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7853 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7854 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7864 rhapsody* | darwin*)
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 if test -n "$DSYMUTIL"; then
7874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7894 if test -n "$DSYMUTIL"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7896 $as_echo "$DSYMUTIL" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7904 if test -z "$ac_cv_prog_DSYMUTIL"; then
7905 ac_ct_DSYMUTIL=$DSYMUTIL
7906 # Extract the first word of "dsymutil", so it can be a program name with args.
7907 set dummy dsymutil; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$ac_ct_DSYMUTIL"; then
7914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7934 if test -n "$ac_ct_DSYMUTIL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7936 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7942 if test "x$ac_ct_DSYMUTIL" = x; then
7945 case $cross_compiling:$ac_tool_warned in
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949 ac_tool_warned=yes ;;
7951 DSYMUTIL=$ac_ct_DSYMUTIL
7954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_NMEDIT+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 if test -n "$NMEDIT"; then
7966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 NMEDIT=$ac_cv_prog_NMEDIT
7986 if test -n "$NMEDIT"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7988 $as_echo "$NMEDIT" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_NMEDIT"; then
7997 ac_ct_NMEDIT=$NMEDIT
7998 # Extract the first word of "nmedit", so it can be a program name with args.
7999 set dummy nmedit; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$ac_ct_NMEDIT"; then
8006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8026 if test -n "$ac_ct_NMEDIT"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8028 $as_echo "$ac_ct_NMEDIT" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8034 if test "x$ac_ct_NMEDIT" = x; then
8037 case $cross_compiling:$ac_tool_warned in
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8043 NMEDIT=$ac_ct_NMEDIT
8046 NMEDIT="$ac_cv_prog_NMEDIT"
8049 if test -n "$ac_tool_prefix"; then
8050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8051 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if ${ac_cv_prog_LIPO+:} false; then :
8055 $as_echo_n "(cached) " >&6
8057 if test -n "$LIPO"; then
8058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 LIPO=$ac_cv_prog_LIPO
8078 if test -n "$LIPO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8080 $as_echo "$LIPO" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8088 if test -z "$ac_cv_prog_LIPO"; then
8090 # Extract the first word of "lipo", so it can be a program name with args.
8091 set dummy lipo; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8095 $as_echo_n "(cached) " >&6
8097 if test -n "$ac_ct_LIPO"; then
8098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_ac_ct_LIPO="lipo"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8118 if test -n "$ac_ct_LIPO"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8120 $as_echo "$ac_ct_LIPO" >&6; }
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8126 if test "x$ac_ct_LIPO" = x; then
8129 case $cross_compiling:$ac_tool_warned in
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133 ac_tool_warned=yes ;;
8138 LIPO="$ac_cv_prog_LIPO"
8141 if test -n "$ac_tool_prefix"; then
8142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8143 set dummy ${ac_tool_prefix}otool; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if ${ac_cv_prog_OTOOL+:} false; then :
8147 $as_echo_n "(cached) " >&6
8149 if test -n "$OTOOL"; then
8150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 OTOOL=$ac_cv_prog_OTOOL
8170 if test -n "$OTOOL"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8172 $as_echo "$OTOOL" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8180 if test -z "$ac_cv_prog_OTOOL"; then
8182 # Extract the first word of "otool", so it can be a program name with args.
8183 set dummy otool; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8187 $as_echo_n "(cached) " >&6
8189 if test -n "$ac_ct_OTOOL"; then
8190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_ac_ct_OTOOL="otool"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8210 if test -n "$ac_ct_OTOOL"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8212 $as_echo "$ac_ct_OTOOL" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8218 if test "x$ac_ct_OTOOL" = x; then
8221 case $cross_compiling:$ac_tool_warned in
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225 ac_tool_warned=yes ;;
8230 OTOOL="$ac_cv_prog_OTOOL"
8233 if test -n "$ac_tool_prefix"; then
8234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8235 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_prog_OTOOL64+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 if test -n "$OTOOL64"; then
8242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 OTOOL64=$ac_cv_prog_OTOOL64
8262 if test -n "$OTOOL64"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8264 $as_echo "$OTOOL64" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8272 if test -z "$ac_cv_prog_OTOOL64"; then
8273 ac_ct_OTOOL64=$OTOOL64
8274 # Extract the first word of "otool64", so it can be a program name with args.
8275 set dummy otool64; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8279 $as_echo_n "(cached) " >&6
8281 if test -n "$ac_ct_OTOOL64"; then
8282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_ac_ct_OTOOL64="otool64"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8302 if test -n "$ac_ct_OTOOL64"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8304 $as_echo "$ac_ct_OTOOL64" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8310 if test "x$ac_ct_OTOOL64" = x; then
8313 case $cross_compiling:$ac_tool_warned in
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8317 ac_tool_warned=yes ;;
8319 OTOOL64=$ac_ct_OTOOL64
8322 OTOOL64="$ac_cv_prog_OTOOL64"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8352 $as_echo_n "checking for -single_module linker flag... " >&6; }
8353 if ${lt_cv_apple_cc_single_mod+:} false; then :
8354 $as_echo_n "(cached) " >&6
8356 lt_cv_apple_cc_single_mod=no
8357 if test -z "${LT_MULTI_MODULE}"; then
8358 # By default we will add the -single_module flag. You can override
8359 # by either setting the environment variable LT_MULTI_MODULE
8360 # non-empty at configure time, or by adding -multi_module to the
8362 rm -rf libconftest.dylib*
8363 echo "int foo(void){return 1;}" > conftest.c
8364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8365 -dynamiclib -Wl,-single_module conftest.c" >&5
8366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8369 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8370 lt_cv_apple_cc_single_mod=yes
8372 cat conftest.err >&5
8374 rm -rf libconftest.dylib*
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8379 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8381 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8382 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 lt_cv_ld_exported_symbols_list=no
8386 save_LDFLAGS=$LDFLAGS
8387 echo "_main" > conftest.sym
8388 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8400 if ac_fn_c_try_link "$LINENO"; then :
8401 lt_cv_ld_exported_symbols_list=yes
8403 lt_cv_ld_exported_symbols_list=no
8405 rm -f core conftest.err conftest.$ac_objext \
8406 conftest$ac_exeext conftest.$ac_ext
8407 LDFLAGS="$save_LDFLAGS"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8411 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8413 $as_echo_n "checking for -force_load linker flag... " >&6; }
8414 if ${lt_cv_ld_force_load+:} false; then :
8415 $as_echo_n "(cached) " >&6
8417 lt_cv_ld_force_load=no
8418 cat > conftest.c << _LT_EOF
8419 int forced_loaded() { return 2;}
8421 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8422 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8423 echo "$AR cru libconftest.a conftest.o" >&5
8424 $AR cru libconftest.a conftest.o 2>&5
8425 echo "$RANLIB libconftest.a" >&5
8426 $RANLIB libconftest.a 2>&5
8427 cat > conftest.c << _LT_EOF
8428 int main() { return 0;}
8430 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8431 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8433 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8434 lt_cv_ld_force_load=yes
8436 cat conftest.err >&5
8438 rm -f conftest.err libconftest.a conftest conftest.c
8439 rm -rf conftest.dSYM
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8443 $as_echo "$lt_cv_ld_force_load" >&6; }
8445 rhapsody* | darwin1.[012])
8446 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8448 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8449 darwin*) # darwin 5.x on
8450 # if running on 10.5 or later, the deployment target defaults
8451 # to the OS version, if on x86, and 10.4, the deployment
8452 # target defaults to 10.4. Don't you love it?
8453 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8454 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8459 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8463 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8464 _lt_dar_single_mod='$single_module'
8466 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8467 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8469 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8471 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8472 _lt_dsymutil='~$DSYMUTIL $lib || :'
8479 for ac_header in dlfcn.h
8481 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8483 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_DLFCN_H 1
8494 func_stripname_cnf ()
8497 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8498 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8500 } # func_stripname_cnf
8514 # Check whether --enable-shared was given.
8515 if test "${enable_shared+set}" = set; then :
8516 enableval=$enable_shared; p=${PACKAGE-default}
8518 yes) enable_shared=yes ;;
8519 no) enable_shared=no ;;
8522 # Look at the argument we got. We use all the common list separators.
8523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8524 for pkg in $enableval; do
8526 if test "X$pkg" = "X$p"; then
8545 # Check whether --enable-static was given.
8546 if test "${enable_static+set}" = set; then :
8547 enableval=$enable_static; p=${PACKAGE-default}
8549 yes) enable_static=yes ;;
8550 no) enable_static=no ;;
8553 # Look at the argument we got. We use all the common list separators.
8554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8555 for pkg in $enableval; do
8557 if test "X$pkg" = "X$p"; then
8577 # Check whether --with-pic was given.
8578 if test "${with_pic+set}" = set; then :
8579 withval=$with_pic; pic_mode="$withval"
8585 test -z "$pic_mode" && pic_mode=default
8593 # Check whether --enable-fast-install was given.
8594 if test "${enable_fast_install+set}" = set; then :
8595 enableval=$enable_fast_install; p=${PACKAGE-default}
8597 yes) enable_fast_install=yes ;;
8598 no) enable_fast_install=no ;;
8600 enable_fast_install=no
8601 # Look at the argument we got. We use all the common list separators.
8602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8603 for pkg in $enableval; do
8605 if test "X$pkg" = "X$p"; then
8606 enable_fast_install=yes
8613 enable_fast_install=yes
8626 # This can be used to rebuild libtool when needed
8627 LIBTOOL_DEPS="$ltmain"
8629 # Always use our own libtool.
8630 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8657 test -z "$LN_S" && LN_S="ln -s"
8672 if test -n "${ZSH_VERSION+set}" ; then
8673 setopt NO_GLOB_SUBST
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8677 $as_echo_n "checking for objdir... " >&6; }
8678 if ${lt_cv_objdir+:} false; then :
8679 $as_echo_n "(cached) " >&6
8681 rm -f .libs 2>/dev/null
8682 mkdir .libs 2>/dev/null
8683 if test -d .libs; then
8686 # MS-DOS does not allow filenames that begin with a dot.
8689 rmdir .libs 2>/dev/null
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8692 $as_echo "$lt_cv_objdir" >&6; }
8693 objdir=$lt_cv_objdir
8699 cat >>confdefs.h <<_ACEOF
8700 #define LT_OBJDIR "$lt_cv_objdir/"
8708 # AIX sometimes has problems with the GCC collect2 program. For some
8709 # reason, if we set the COLLECT_NAMES environment variable, the problems
8710 # vanish in a puff of smoke.
8711 if test "X${COLLECT_NAMES+set}" != Xset; then
8713 export COLLECT_NAMES
8720 can_build_shared=yes
8722 # All known linkers require a `.a' archive for static linking (except MSVC,
8723 # which needs '.lib').
8726 with_gnu_ld="$lt_cv_prog_gnu_ld"
8729 old_CFLAGS="$CFLAGS"
8731 # Set sane defaults for various variables
8732 test -z "$CC" && CC=cc
8733 test -z "$LTCC" && LTCC=$CC
8734 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8735 test -z "$LD" && LD=ld
8736 test -z "$ac_objext" && ac_objext=o
8738 for cc_temp in $compiler""; do
8740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8746 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8749 # Only perform the check for file, if the check method requires it
8750 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8751 case $deplibs_check_method in
8753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8755 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8757 $as_echo_n "(cached) " >&6
8761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8764 lt_save_MAGIC_CMD="$MAGIC_CMD"
8765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8767 for ac_dir in $ac_dummy; do
8769 test -z "$ac_dir" && ac_dir=.
8770 if test -f $ac_dir/${ac_tool_prefix}file; then
8771 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8772 if test -n "$file_magic_test_file"; then
8773 case $deplibs_check_method in
8775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8778 $EGREP "$file_magic_regex" > /dev/null; then
8783 *** Warning: the command libtool uses to detect shared libraries,
8784 *** $file_magic_cmd, produces output that libtool cannot recognize.
8785 *** The result is that libtool may fail to recognize shared libraries
8786 *** as such. This will affect the creation of libtool libraries that
8787 *** depend on shared libraries, but programs linked with such libtool
8788 *** libraries will work regardless of this problem. Nevertheless, you
8789 *** may want to report the problem to your system manager and/or to
8790 *** bug-libtool@gnu.org
8800 MAGIC_CMD="$lt_save_MAGIC_CMD"
8805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8806 if test -n "$MAGIC_CMD"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8808 $as_echo "$MAGIC_CMD" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8818 if test -z "$lt_cv_path_MAGIC_CMD"; then
8819 if test -n "$ac_tool_prefix"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8821 $as_echo_n "checking for file... " >&6; }
8822 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8823 $as_echo_n "(cached) " >&6
8827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8830 lt_save_MAGIC_CMD="$MAGIC_CMD"
8831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8832 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8833 for ac_dir in $ac_dummy; do
8835 test -z "$ac_dir" && ac_dir=.
8836 if test -f $ac_dir/file; then
8837 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8838 if test -n "$file_magic_test_file"; then
8839 case $deplibs_check_method in
8841 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8844 $EGREP "$file_magic_regex" > /dev/null; then
8849 *** Warning: the command libtool uses to detect shared libraries,
8850 *** $file_magic_cmd, produces output that libtool cannot recognize.
8851 *** The result is that libtool may fail to recognize shared libraries
8852 *** as such. This will affect the creation of libtool libraries that
8853 *** depend on shared libraries, but programs linked with such libtool
8854 *** libraries will work regardless of this problem. Nevertheless, you
8855 *** may want to report the problem to your system manager and/or to
8856 *** bug-libtool@gnu.org
8866 MAGIC_CMD="$lt_save_MAGIC_CMD"
8871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8872 if test -n "$MAGIC_CMD"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8874 $as_echo "$MAGIC_CMD" >&6; }
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8890 # Use C for the default configuration in the libtool script
8894 ac_cpp='$CPP $CPPFLAGS'
8895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8900 # Source file extension for C test sources.
8903 # Object file extension for compiled C test sources.
8907 # Code to be used in simple compile tests
8908 lt_simple_compile_test_code="int some_variable = 0;"
8910 # Code to be used in simple link tests
8911 lt_simple_link_test_code='int main(){return(0);}'
8919 # If no C compiler was specified, use CC.
8922 # If no C compiler flags were specified, use CFLAGS.
8923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8925 # Allow CC to be a program name with arguments.
8928 # Save the default compiler, since it gets overwritten when the other
8929 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8930 compiler_DEFAULT=$CC
8932 # save warnings/boilerplate of simple test code
8933 ac_outfile=conftest.$ac_objext
8934 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8936 _lt_compiler_boilerplate=`cat conftest.err`
8939 ac_outfile=conftest.$ac_objext
8940 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8942 _lt_linker_boilerplate=`cat conftest.err`
8946 if test -n "$compiler"; then
8948 lt_prog_compiler_no_builtin_flag=
8950 if test "$GCC" = yes; then
8951 case $cc_basename in
8953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8959 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8960 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8961 $as_echo_n "(cached) " >&6
8963 lt_cv_prog_compiler_rtti_exceptions=no
8964 ac_outfile=conftest.$ac_objext
8965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8966 lt_compiler_flag="-fno-rtti -fno-exceptions"
8967 # Insert the option either (1) after the last *FLAGS variable, or
8968 # (2) before a word containing "conftest.", or (3) at the end.
8969 # Note that $ac_compile itself does not contain backslashes and begins
8970 # with a dollar sign (not a hyphen), so the echo should work correctly.
8971 # The option is referenced via a variable to avoid confusing sed.
8972 lt_compile=`echo "$ac_compile" | $SED \
8973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8975 -e 's:$: $lt_compiler_flag:'`
8976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8977 (eval "$lt_compile" 2>conftest.err)
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 if (exit $ac_status) && test -s "$ac_outfile"; then
8982 # The compiler can only warn and ignore the option if not recognized
8983 # So say no if there are warnings other than the usual output.
8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8987 lt_cv_prog_compiler_rtti_exceptions=yes
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8994 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9009 lt_prog_compiler_wl=
9010 lt_prog_compiler_pic=
9011 lt_prog_compiler_static=
9014 if test "$GCC" = yes; then
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_static='-static'
9020 # All AIX code is PIC.
9021 if test "$host_cpu" = ia64; then
9022 # AIX 5 now supports IA64 processor
9023 lt_prog_compiler_static='-Bstatic'
9030 # see comment about AmigaOS4 .so support
9031 lt_prog_compiler_pic='-fPIC'
9034 # FIXME: we need at least 68020 code to build shared libraries, but
9035 # adding the `-m68020' flag to GCC prevents building anything better,
9037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9043 # PIC is the default for these OSes.
9046 mingw* | cygwin* | pw32* | os2* | cegcc*)
9047 # This hack is so that the source file can tell whether it is being
9048 # built for inclusion in a dll (and should export symbols for example).
9049 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9050 # (--disable-auto-import) libraries
9051 lt_prog_compiler_pic='-DDLL_EXPORT'
9054 darwin* | rhapsody*)
9055 # PIC is the default on this platform
9056 # Common symbols not allowed in MH_DYLIB files
9057 lt_prog_compiler_pic='-fno-common'
9061 # PIC is the default for Haiku.
9062 # The "-static" flag exists, but is broken.
9063 lt_prog_compiler_static=
9067 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9068 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9069 # sets the default TLS model and affects inlining.
9075 lt_prog_compiler_pic='-fPIC'
9081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9082 # Instead, we relocate shared libraries at runtime.
9086 # Just because we use GCC doesn't mean we suddenly get shared libraries
9087 # on systems that don't support them.
9088 lt_prog_compiler_can_build_shared=no
9093 # QNX uses GNU C++, but need to define -shared option too, otherwise
9095 lt_prog_compiler_pic='-fPIC -shared'
9099 if test -d /usr/nec; then
9100 lt_prog_compiler_pic=-Kconform_pic
9105 lt_prog_compiler_pic='-fPIC'
9109 case $cc_basename in
9110 nvcc*) # Cuda Compiler Driver 2.2
9111 lt_prog_compiler_wl='-Xlinker '
9112 lt_prog_compiler_pic='-Xcompiler -fPIC'
9116 # PORTME Check for flag to pass linker flags through the system compiler.
9119 lt_prog_compiler_wl='-Wl,'
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9128 mingw* | cygwin* | pw32* | os2* | cegcc*)
9129 # This hack is so that the source file can tell whether it is being
9130 # built for inclusion in a dll (and should export symbols for example).
9131 lt_prog_compiler_pic='-DDLL_EXPORT'
9134 hpux9* | hpux10* | hpux11*)
9135 lt_prog_compiler_wl='-Wl,'
9136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9143 lt_prog_compiler_pic='+Z'
9146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9147 lt_prog_compiler_static='${wl}-a ${wl}archive'
9150 irix5* | irix6* | nonstopux*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # PIC (with -KPIC) is the default.
9153 lt_prog_compiler_static='-non_shared'
9156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9157 case $cc_basename in
9158 # old Intel for x86_64 which still supported -KPIC.
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-static'
9164 # icc used to be incompatible with GCC.
9165 # ICC 10 doesn't accept -KPIC any more.
9167 lt_prog_compiler_wl='-Wl,'
9168 lt_prog_compiler_pic='-fPIC'
9169 lt_prog_compiler_static='-static'
9171 # Lahey Fortran 8.1.
9173 lt_prog_compiler_wl='-Wl,'
9174 lt_prog_compiler_pic='--shared'
9175 lt_prog_compiler_static='--static'
9178 # NAG Fortran compiler
9179 lt_prog_compiler_wl='-Wl,-Wl,,'
9180 lt_prog_compiler_pic='-PIC'
9181 lt_prog_compiler_static='-Bstatic'
9183 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9184 # Portland Group compilers (*not* the Pentium gcc compiler,
9185 # which looks to be a dead project)
9186 lt_prog_compiler_wl='-Wl,'
9187 lt_prog_compiler_pic='-fpic'
9188 lt_prog_compiler_static='-Bstatic'
9191 lt_prog_compiler_wl='-Wl,'
9192 # All Alpha code is PIC.
9193 lt_prog_compiler_static='-non_shared'
9195 xl* | bgxl* | bgf* | mpixl*)
9196 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9197 lt_prog_compiler_wl='-Wl,'
9198 lt_prog_compiler_pic='-qpic'
9199 lt_prog_compiler_static='-qstaticlink'
9202 case `$CC -V 2>&1 | sed 5q` in
9203 *Sun\ F* | *Sun*Fortran*)
9204 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_wl=''
9211 lt_prog_compiler_pic='-KPIC'
9212 lt_prog_compiler_static='-Bstatic'
9213 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-Bstatic'
9226 # QNX uses GNU C++, but need to define -shared option too, otherwise
9228 lt_prog_compiler_pic='-fPIC -shared'
9231 osf3* | osf4* | osf5*)
9232 lt_prog_compiler_wl='-Wl,'
9233 # All OSF/1 code is PIC.
9234 lt_prog_compiler_static='-non_shared'
9238 lt_prog_compiler_static='-non_shared'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-Bstatic'
9244 case $cc_basename in
9245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9246 lt_prog_compiler_wl='-Qoption ld ';;
9248 lt_prog_compiler_wl='-Wl,';;
9253 lt_prog_compiler_wl='-Qoption ld '
9254 lt_prog_compiler_pic='-PIC'
9255 lt_prog_compiler_static='-Bstatic'
9258 sysv4 | sysv4.2uw2* | sysv4.3*)
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_pic='-KPIC'
9261 lt_prog_compiler_static='-Bstatic'
9265 if test -d /usr/nec ;then
9266 lt_prog_compiler_pic='-Kconform_pic'
9267 lt_prog_compiler_static='-Bstatic'
9271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_can_build_shared=no
9283 lt_prog_compiler_pic='-pic'
9284 lt_prog_compiler_static='-Bstatic'
9288 lt_prog_compiler_can_build_shared=no
9294 # For platforms which do not support PIC, -DPIC is meaningless:
9296 lt_prog_compiler_pic=
9299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9304 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9305 if ${lt_cv_prog_compiler_pic+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9311 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9312 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9315 # Check to make sure the PIC flag actually works.
9317 if test -n "$lt_prog_compiler_pic"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9320 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9321 $as_echo_n "(cached) " >&6
9323 lt_cv_prog_compiler_pic_works=no
9324 ac_outfile=conftest.$ac_objext
9325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9327 # Insert the option either (1) after the last *FLAGS variable, or
9328 # (2) before a word containing "conftest.", or (3) at the end.
9329 # Note that $ac_compile itself does not contain backslashes and begins
9330 # with a dollar sign (not a hyphen), so the echo should work correctly.
9331 # The option is referenced via a variable to avoid confusing sed.
9332 lt_compile=`echo "$ac_compile" | $SED \
9333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9335 -e 's:$: $lt_compiler_flag:'`
9336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9337 (eval "$lt_compile" 2>conftest.err)
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 if (exit $ac_status) && test -s "$ac_outfile"; then
9342 # The compiler can only warn and ignore the option if not recognized
9343 # So say no if there are warnings other than the usual output.
9344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9347 lt_cv_prog_compiler_pic_works=yes
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9356 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9357 case $lt_prog_compiler_pic in
9359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9362 lt_prog_compiler_pic=
9363 lt_prog_compiler_can_build_shared=no
9379 # Check to make sure the static flag actually works.
9381 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9383 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9384 if ${lt_cv_prog_compiler_static_works+:} false; then :
9385 $as_echo_n "(cached) " >&6
9387 lt_cv_prog_compiler_static_works=no
9388 save_LDFLAGS="$LDFLAGS"
9389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9392 # The linker can only warn and ignore the option if not recognized
9393 # So say no if there are warnings
9394 if test -s conftest.err; then
9395 # Append any errors to the config.log.
9396 cat conftest.err 1>&5
9397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399 if diff conftest.exp conftest.er2 >/dev/null; then
9400 lt_cv_prog_compiler_static_works=yes
9403 lt_cv_prog_compiler_static_works=yes
9407 LDFLAGS="$save_LDFLAGS"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9411 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9413 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9416 lt_prog_compiler_static=
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9427 if ${lt_cv_prog_compiler_c_o+:} false; then :
9428 $as_echo_n "(cached) " >&6
9430 lt_cv_prog_compiler_c_o=no
9431 $RM -r conftest 2>/dev/null
9435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9437 lt_compiler_flag="-o out/conftest2.$ac_objext"
9438 # Insert the option either (1) after the last *FLAGS variable, or
9439 # (2) before a word containing "conftest.", or (3) at the end.
9440 # Note that $ac_compile itself does not contain backslashes and begins
9441 # with a dollar sign (not a hyphen), so the echo should work correctly.
9442 lt_compile=`echo "$ac_compile" | $SED \
9443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445 -e 's:$: $lt_compiler_flag:'`
9446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9447 (eval "$lt_compile" 2>out/conftest.err)
9449 cat out/conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9453 # The compiler can only warn and ignore the option if not recognized
9454 # So say no if there are warnings
9455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9458 lt_cv_prog_compiler_c_o=yes
9463 # SGI C++ compiler will create directory out/ii_files/ for
9464 # template instantiation
9465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9466 $RM out/* && rmdir out
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9482 if ${lt_cv_prog_compiler_c_o+:} false; then :
9483 $as_echo_n "(cached) " >&6
9485 lt_cv_prog_compiler_c_o=no
9486 $RM -r conftest 2>/dev/null
9490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9492 lt_compiler_flag="-o out/conftest2.$ac_objext"
9493 # Insert the option either (1) after the last *FLAGS variable, or
9494 # (2) before a word containing "conftest.", or (3) at the end.
9495 # Note that $ac_compile itself does not contain backslashes and begins
9496 # with a dollar sign (not a hyphen), so the echo should work correctly.
9497 lt_compile=`echo "$ac_compile" | $SED \
9498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500 -e 's:$: $lt_compiler_flag:'`
9501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9502 (eval "$lt_compile" 2>out/conftest.err)
9504 cat out/conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9508 # The compiler can only warn and ignore the option if not recognized
9509 # So say no if there are warnings
9510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9513 lt_cv_prog_compiler_c_o=yes
9518 # SGI C++ compiler will create directory out/ii_files/ for
9519 # template instantiation
9520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9521 $RM out/* && rmdir out
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9533 hard_links="nottested"
9534 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9535 # do not overwrite the value of need_locks provided by the user
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9537 $as_echo_n "checking if we can lock with hard links... " >&6; }
9540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9542 ln conftest.a conftest.b 2>&5 || hard_links=no
9543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9545 $as_echo "$hard_links" >&6; }
9546 if test "$hard_links" = no; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9548 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9564 allow_undefined_flag=
9565 always_export_symbols=no
9567 archive_expsym_cmds=
9568 compiler_needs_object=no
9569 enable_shared_with_static_runtimes=no
9570 export_dynamic_flag_spec=
9571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9572 hardcode_automatic=no
9574 hardcode_direct_absolute=no
9575 hardcode_libdir_flag_spec=
9576 hardcode_libdir_flag_spec_ld=
9577 hardcode_libdir_separator=
9579 hardcode_shlibpath_var=unsupported
9581 link_all_deplibs=unknown
9584 old_archive_from_new_cmds=
9585 old_archive_from_expsyms_cmds=
9586 thread_safe_flag_spec=
9587 whole_archive_flag_spec=
9588 # include_expsyms should be a list of space-separated symbols to be *always*
9589 # included in the symbol list
9591 # exclude_expsyms can be an extended regexp of symbols to exclude
9592 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9593 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9594 # as well as any symbol that contains `d'.
9595 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9597 # platforms (ab)use it in PIC code, but their linkers get confused if
9598 # the symbol is explicitly referenced. Since portable code cannot
9599 # rely on this symbol name, it's probably fine to never include it in
9600 # preloaded symbol tables.
9601 # Exclude shared library initialization/finalization symbols.
9602 extract_expsyms_cmds=
9605 cygwin* | mingw* | pw32* | cegcc*)
9606 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9607 # When not using gcc, we currently assume that we are using
9608 # Microsoft Visual C++.
9609 if test "$GCC" != yes; then
9614 # we just hope/assume this is gcc and not c89 (= MSVC++)
9624 # On some targets, GNU ld is compatible enough with the native linker
9625 # that we're better off using the native interface for both.
9626 lt_use_gnu_ld_interface=no
9627 if test "$with_gnu_ld" = yes; then
9630 # The AIX port of GNU ld has always aspired to compatibility
9631 # with the native linker. However, as the warning in the GNU ld
9632 # block says, versions before 2.19.5* couldn't really create working
9633 # shared libraries, regardless of the interface used.
9634 case `$LD -v 2>&1` in
9635 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9636 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9637 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9639 lt_use_gnu_ld_interface=yes
9644 lt_use_gnu_ld_interface=yes
9649 if test "$lt_use_gnu_ld_interface" = yes; then
9650 # If archive_cmds runs LD, not CC, wlarc should be empty
9653 # Set some defaults for GNU ld with shared library support. These
9654 # are reset later if shared libraries are not supported. Putting them
9655 # here allows them to be overridden if necessary.
9656 runpath_var=LD_RUN_PATH
9657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658 export_dynamic_flag_spec='${wl}--export-dynamic'
9659 # ancient GNU ld didn't support --whole-archive et. al.
9660 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9661 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9663 whole_archive_flag_spec=
9665 supports_anon_versioning=no
9666 case `$LD -v 2>&1` in
9667 *GNU\ gold*) supports_anon_versioning=yes ;;
9668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9671 *\ 2.11.*) ;; # other 2.11 versions
9672 *) supports_anon_versioning=yes ;;
9675 # See if GNU ld supports shared libraries.
9678 # On AIX/PPC, the GNU linker is very broken
9679 if test "$host_cpu" != ia64; then
9683 *** Warning: the GNU linker, at least up to release 2.19, is reported
9684 *** to be unable to reliably create shared libraries on AIX.
9685 *** Therefore, libtool is disabling shared libraries support. If you
9686 *** really care for shared libraries, you may want to install binutils
9687 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9688 *** You will then need to restart the configuration process.
9697 # see comment about AmigaOS4 .so support
9698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699 archive_expsym_cmds=''
9702 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)'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_minus_L=yes
9710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9711 allow_undefined_flag=unsupported
9712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9713 # support --undefined. This deserves some investigation. FIXME
9714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720 cygwin* | mingw* | pw32* | cegcc*)
9721 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9722 # as there is no search path for DLLs.
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 export_dynamic_flag_spec='${wl}--export-all-symbols'
9725 allow_undefined_flag=unsupported
9726 always_export_symbols=no
9727 enable_shared_with_static_runtimes=yes
9728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9729 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9731 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9733 # If the export-symbols file already is a .def file (1st line
9734 # is EXPORTS), use it as is; otherwise, prepend...
9735 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9736 cp $export_symbols $output_objdir/$soname.def;
9738 echo EXPORTS > $output_objdir/$soname.def;
9739 cat $export_symbols >> $output_objdir/$soname.def;
9741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 link_all_deplibs=yes
9754 hardcode_shlibpath_var=no
9755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9756 export_dynamic_flag_spec='${wl}-E'
9757 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9758 # Instead, shared libraries are loaded at an image base (0x10000000 by
9759 # default) and relocated if they conflict, which is a slow very memory
9760 # consuming and fragmenting process. To avoid this, we pick a random,
9761 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9762 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9764 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'
9767 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9769 if test "$host_os" = linux-dietlibc; then
9770 case $cc_basename in
9771 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9774 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9775 && test "$tmp_diet" = no
9777 tmp_addflag=' $pic_flag'
9778 tmp_sharedflag='-shared'
9779 case $cc_basename,$host_cpu in
9780 pgcc*) # Portland Group C compiler
9781 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9782 tmp_addflag=' $pic_flag'
9784 pgf77* | pgf90* | pgf95* | pgfortran*)
9785 # Portland Group f77 and f90 compilers
9786 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9787 tmp_addflag=' $pic_flag -Mnomain' ;;
9788 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9789 tmp_addflag=' -i_dynamic' ;;
9790 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9791 tmp_addflag=' -i_dynamic -nofor_main' ;;
9792 ifc* | ifort*) # Intel Fortran compiler
9793 tmp_addflag=' -nofor_main' ;;
9794 lf95*) # Lahey Fortran 8.1
9795 whole_archive_flag_spec=
9796 tmp_sharedflag='--shared' ;;
9797 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9798 tmp_sharedflag='-qmkshrobj'
9800 nvcc*) # Cuda Compiler Driver 2.2
9801 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9802 compiler_needs_object=yes
9805 case `$CC -V 2>&1 | sed 5q` in
9806 *Sun\ C*) # Sun C 5.9
9807 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9808 compiler_needs_object=yes
9809 tmp_sharedflag='-G' ;;
9810 *Sun\ F*) # Sun Fortran 8.3
9811 tmp_sharedflag='-G' ;;
9813 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 if test "x$supports_anon_versioning" = xyes; then
9816 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9818 echo "local: *; };" >> $output_objdir/$libname.ver~
9819 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9822 case $cc_basename in
9823 xlf* | bgf* | bgxlf* | mpixlf*)
9824 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9825 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9826 hardcode_libdir_flag_spec=
9827 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9828 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9829 if test "x$supports_anon_versioning" = xyes; then
9830 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9832 echo "local: *; };" >> $output_objdir/$libname.ver~
9833 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9844 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9848 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9853 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9858 *** create shared libraries on Solaris systems. Therefore, libtool
9859 *** is disabling shared libraries support. We urge you to upgrade GNU
9860 *** binutils to release 2.9.1 or newer. Another option is to modify
9861 *** your PATH or compiler configuration so that the native linker is
9862 *** used, and then restart.
9865 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9874 case `$LD -v 2>&1` in
9875 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9879 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9880 *** reliably create shared libraries on SCO systems. Therefore, libtool
9881 *** is disabling shared libraries support. We urge you to upgrade GNU
9882 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9883 *** your PATH or compiler configuration so that the native linker is
9884 *** used, and then restart.
9889 # For security reasons, it is highly recommended that you always
9890 # use absolute paths for naming shared libraries, and exclude the
9891 # DT_RUNPATH tag from executables and libraries. But doing so
9892 # requires that you compile everything twice, which is a pain.
9893 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9905 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_shlibpath_var=no
9912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9921 if test "$ld_shlibs" = no; then
9923 hardcode_libdir_flag_spec=
9924 export_dynamic_flag_spec=
9925 whole_archive_flag_spec=
9928 # PORTME fill in a description of your system's linker (not GNU ld)
9931 allow_undefined_flag=unsupported
9932 always_export_symbols=yes
9933 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'
9934 # Note: this linker hardcodes the directories in LIBPATH if there
9935 # are no directories specified by -L.
9936 hardcode_minus_L=yes
9937 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9938 # Neither direct hardcoding nor static linking is supported with a
9940 hardcode_direct=unsupported
9945 if test "$host_cpu" = ia64; then
9946 # On IA64, the linker does run time linking by default, so we don't
9947 # have to do anything special.
9948 aix_use_runtimelinking=no
9949 exp_sym_flag='-Bexport'
9952 # If we're using GNU nm, then we don't want the "-C" option.
9953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9954 # Also, AIX nm treats weak defined symbols like other global
9955 # defined symbols, whereas GNU nm marks them as "W".
9956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9957 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9959 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'
9961 aix_use_runtimelinking=no
9963 # Test if we are trying to use run time linking or normal
9964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9965 # need to do runtime linking.
9966 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9967 for ld_flag in $LDFLAGS; do
9968 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9969 aix_use_runtimelinking=yes
9976 exp_sym_flag='-bexport'
9977 no_entry_flag='-bnoentry'
9980 # When large executables or shared objects are built, AIX ld can
9981 # have problems creating the table of contents. If linking a library
9982 # or program results in "error TOC overflow" add -mminimal-toc to
9983 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9984 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9988 hardcode_direct_absolute=yes
9989 hardcode_libdir_separator=':'
9990 link_all_deplibs=yes
9991 file_list_spec='${wl}-f,'
9993 if test "$GCC" = yes; then
9994 case $host_os in aix4.[012]|aix4.[012].*)
9995 # We only want to do this on AIX 4.2 and lower, the check
9996 # below for broken collect2 doesn't work under 4.3+
9997 collect2name=`${CC} -print-prog-name=collect2`
9998 if test -f "$collect2name" &&
9999 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10001 # We have reworked collect2
10004 # We have old collect2
10005 hardcode_direct=unsupported
10006 # It fails to find uninstalled libraries when the uninstalled
10007 # path is not listed in the libpath. Setting hardcode_minus_L
10008 # to unsupported forces relinking
10009 hardcode_minus_L=yes
10010 hardcode_libdir_flag_spec='-L$libdir'
10011 hardcode_libdir_separator=
10015 shared_flag='-shared'
10016 if test "$aix_use_runtimelinking" = yes; then
10017 shared_flag="$shared_flag "'${wl}-G'
10021 if test "$host_cpu" = ia64; then
10022 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10023 # chokes on -Wl,-G. The following line is correct:
10026 if test "$aix_use_runtimelinking" = yes; then
10027 shared_flag='${wl}-G'
10029 shared_flag='${wl}-bM:SRE'
10034 export_dynamic_flag_spec='${wl}-bexpall'
10035 # It seems that -bexpall does not export symbols beginning with
10036 # underscore (_), so it is better to generate a list of symbols to export.
10037 always_export_symbols=yes
10038 if test "$aix_use_runtimelinking" = yes; then
10039 # Warning - without using the other runtime loading flags (-brtl),
10040 # -berok will link without error, but may produce a broken library.
10041 allow_undefined_flag='-berok'
10042 # Determine the default libpath from the value encoded in an
10043 # empty executable.
10044 if test "${lt_cv_aix_libpath+set}" = set; then
10045 aix_libpath=$lt_cv_aix_libpath
10047 if ${lt_cv_aix_libpath_+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10061 if ac_fn_c_try_link "$LINENO"; then :
10063 lt_aix_libpath_sed='
10064 /Import File Strings/,/^$/ {
10066 s/^0 *\([^ ]*\) *$/\1/
10070 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071 # Check for a 64-bit object if we didn't find anything.
10072 if test -z "$lt_cv_aix_libpath_"; then
10073 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 if test -z "$lt_cv_aix_libpath_"; then
10079 lt_cv_aix_libpath_="/usr/lib:/lib"
10084 aix_libpath=$lt_cv_aix_libpath_
10087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10088 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10090 if test "$host_cpu" = ia64; then
10091 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10092 allow_undefined_flag="-z nodefs"
10093 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"
10095 # Determine the default libpath from the value encoded in an
10096 # empty executable.
10097 if test "${lt_cv_aix_libpath+set}" = set; then
10098 aix_libpath=$lt_cv_aix_libpath
10100 if ${lt_cv_aix_libpath_+:} false; then :
10101 $as_echo_n "(cached) " >&6
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10114 if ac_fn_c_try_link "$LINENO"; then :
10116 lt_aix_libpath_sed='
10117 /Import File Strings/,/^$/ {
10119 s/^0 *\([^ ]*\) *$/\1/
10123 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10124 # Check for a 64-bit object if we didn't find anything.
10125 if test -z "$lt_cv_aix_libpath_"; then
10126 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10129 rm -f core conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 if test -z "$lt_cv_aix_libpath_"; then
10132 lt_cv_aix_libpath_="/usr/lib:/lib"
10137 aix_libpath=$lt_cv_aix_libpath_
10140 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10141 # Warning - without using the other run time loading flags,
10142 # -berok will link without error, but may produce a broken library.
10143 no_undefined_flag=' ${wl}-bernotok'
10144 allow_undefined_flag=' ${wl}-berok'
10145 if test "$with_gnu_ld" = yes; then
10146 # We only use this code for GNU lds that support --whole-archive.
10147 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10149 # Exported symbols can be pulled into shared objects from archives
10150 whole_archive_flag_spec='$convenience'
10152 archive_cmds_need_lc=yes
10153 # This is similar to how AIX traditionally builds its shared libraries.
10154 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'
10162 # see comment about AmigaOS4 .so support
10163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164 archive_expsym_cmds=''
10167 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)'
10168 hardcode_libdir_flag_spec='-L$libdir'
10169 hardcode_minus_L=yes
10175 export_dynamic_flag_spec=-rdynamic
10178 cygwin* | mingw* | pw32* | cegcc*)
10179 # When not using gcc, we currently assume that we are using
10180 # Microsoft Visual C++.
10181 # hardcode_libdir_flag_spec is actually meaningless, as there is
10182 # no search path for DLLs.
10183 case $cc_basename in
10186 hardcode_libdir_flag_spec=' '
10187 allow_undefined_flag=unsupported
10188 always_export_symbols=yes
10190 # Tell ltmain to make .lib files, not .a files.
10192 # Tell ltmain to make .dll files, not .so files.
10194 # FIXME: Setting linknames here is a bad hack.
10195 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10196 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10197 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10199 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10201 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10203 # The linker will not automatically build a static lib if we build a DLL.
10204 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10205 enable_shared_with_static_runtimes=yes
10206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10208 old_postinstall_cmds='chmod 644 $oldlib'
10209 postlink_cmds='lt_outputfile="@OUTPUT@"~
10210 lt_tool_outputfile="@TOOL_OUTPUT@"~
10211 case $lt_outputfile in
10214 lt_outputfile="$lt_outputfile.exe"
10215 lt_tool_outputfile="$lt_tool_outputfile.exe"
10218 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10219 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10220 $RM "$lt_outputfile.manifest";
10224 # Assume MSVC wrapper
10225 hardcode_libdir_flag_spec=' '
10226 allow_undefined_flag=unsupported
10227 # Tell ltmain to make .lib files, not .a files.
10229 # Tell ltmain to make .dll files, not .so files.
10231 # FIXME: Setting linknames here is a bad hack.
10232 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10233 # The linker will automatically build a .lib file if we build a DLL.
10234 old_archive_from_new_cmds='true'
10235 # FIXME: Should let the user specify the lib program.
10236 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10237 enable_shared_with_static_runtimes=yes
10242 darwin* | rhapsody*)
10245 archive_cmds_need_lc=no
10247 hardcode_automatic=yes
10248 hardcode_shlibpath_var=unsupported
10249 if test "$lt_cv_ld_force_load" = "yes"; then
10250 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10252 whole_archive_flag_spec=''
10254 link_all_deplibs=yes
10255 allow_undefined_flag="$_lt_dar_allow_undefined"
10256 case $cc_basename in
10257 ifort*) _lt_dar_can_shared=yes ;;
10258 *) _lt_dar_can_shared=$GCC ;;
10260 if test "$_lt_dar_can_shared" = "yes"; then
10261 output_verbose_link_cmd=func_echo_all
10262 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10263 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10264 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}"
10265 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}"
10274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_libdir_flag_spec='-L$libdir'
10276 hardcode_shlibpath_var=no
10283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10284 # support. Future versions do this automatically, but an explicit c++rt0.o
10285 # does not break anything, and helps significantly (at the cost of a little
10288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10289 hardcode_libdir_flag_spec='-R$libdir'
10290 hardcode_direct=yes
10291 hardcode_shlibpath_var=no
10294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_direct=yes
10298 hardcode_minus_L=yes
10299 hardcode_shlibpath_var=no
10302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10303 freebsd* | dragonfly*)
10304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10305 hardcode_libdir_flag_spec='-R$libdir'
10306 hardcode_direct=yes
10307 hardcode_shlibpath_var=no
10311 if test "$GCC" = yes; then
10312 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10314 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'
10316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10317 hardcode_libdir_separator=:
10318 hardcode_direct=yes
10320 # hardcode_minus_L: Not really in the search PATH,
10321 # but as the default location of the library.
10322 hardcode_minus_L=yes
10323 export_dynamic_flag_spec='${wl}-E'
10327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10332 if test "$with_gnu_ld" = no; then
10333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10334 hardcode_libdir_flag_spec_ld='+b $libdir'
10335 hardcode_libdir_separator=:
10336 hardcode_direct=yes
10337 hardcode_direct_absolute=yes
10338 export_dynamic_flag_spec='${wl}-E'
10339 # hardcode_minus_L: Not really in the search PATH,
10340 # but as the default location of the library.
10341 hardcode_minus_L=yes
10346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10349 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10355 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10368 # Older versions of the 11.00 compiler do not understand -b yet
10369 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10371 $as_echo_n "checking if $CC understands -b... " >&6; }
10372 if ${lt_cv_prog_compiler__b+:} false; then :
10373 $as_echo_n "(cached) " >&6
10375 lt_cv_prog_compiler__b=no
10376 save_LDFLAGS="$LDFLAGS"
10377 LDFLAGS="$LDFLAGS -b"
10378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10380 # The linker can only warn and ignore the option if not recognized
10381 # So say no if there are warnings
10382 if test -s conftest.err; then
10383 # Append any errors to the config.log.
10384 cat conftest.err 1>&5
10385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10387 if diff conftest.exp conftest.er2 >/dev/null; then
10388 lt_cv_prog_compiler__b=yes
10391 lt_cv_prog_compiler__b=yes
10395 LDFLAGS="$save_LDFLAGS"
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10399 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10401 if test x"$lt_cv_prog_compiler__b" = xyes; then
10402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10410 if test "$with_gnu_ld" = no; then
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_separator=:
10417 hardcode_shlibpath_var=no
10420 hardcode_direct=yes
10421 hardcode_direct_absolute=yes
10422 export_dynamic_flag_spec='${wl}-E'
10424 # hardcode_minus_L: Not really in the search PATH,
10425 # but as the default location of the library.
10426 hardcode_minus_L=yes
10432 irix5* | irix6* | nonstopux*)
10433 if test "$GCC" = yes; then
10434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10435 # Try to use the -exported_symbol ld option, if it does not
10436 # work, assume that -exports_file does not work either and
10437 # implicitly export all symbols.
10438 # This should be the same for all languages, so no per-tag cache variable.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10440 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10441 if ${lt_cv_irix_exported_symbol+:} false; then :
10442 $as_echo_n "(cached) " >&6
10444 save_LDFLAGS="$LDFLAGS"
10445 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 int foo (void) { return 0; }
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 lt_cv_irix_exported_symbol=yes
10453 lt_cv_irix_exported_symbol=no
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LDFLAGS="$save_LDFLAGS"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10460 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10461 if test "$lt_cv_irix_exported_symbol" = yes; then
10462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10468 archive_cmds_need_lc='no'
10469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470 hardcode_libdir_separator=:
10472 link_all_deplibs=yes
10476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10479 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10481 hardcode_libdir_flag_spec='-R$libdir'
10482 hardcode_direct=yes
10483 hardcode_shlibpath_var=no
10487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10488 hardcode_direct=yes
10489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491 hardcode_shlibpath_var=no
10498 if test -f /usr/libexec/ld.so; then
10499 hardcode_direct=yes
10500 hardcode_shlibpath_var=no
10501 hardcode_direct_absolute=yes
10502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10506 export_dynamic_flag_spec='${wl}-E'
10509 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10511 hardcode_libdir_flag_spec='-R$libdir'
10514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_minus_L=yes
10527 allow_undefined_flag=unsupported
10528 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'
10529 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10533 if test "$GCC" = yes; then
10534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10535 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10537 allow_undefined_flag=' -expect_unresolved \*'
10538 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10540 archive_cmds_need_lc='no'
10541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10542 hardcode_libdir_separator=:
10545 osf4* | osf5*) # as osf3* with the addition of -msym flag
10546 if test "$GCC" = yes; then
10547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10548 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10551 allow_undefined_flag=' -expect_unresolved \*'
10552 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10553 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10554 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10556 # Both c and cxx compiler support -rpath directly
10557 hardcode_libdir_flag_spec='-rpath $libdir'
10559 archive_cmds_need_lc='no'
10560 hardcode_libdir_separator=:
10564 no_undefined_flag=' -z defs'
10565 if test "$GCC" = yes; then
10567 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10569 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10571 case `$CC -V 2>&1` in
10574 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10580 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10582 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586 hardcode_libdir_flag_spec='-R$libdir'
10587 hardcode_shlibpath_var=no
10589 solaris2.[0-5] | solaris2.[0-5].*) ;;
10591 # The compiler driver will combine and reorder linker options,
10592 # but understands `-z linker_flag'. GCC discards it without `$wl',
10593 # but is careful enough not to reorder.
10594 # Supported since Solaris 2.6 (maybe 2.5.1?)
10595 if test "$GCC" = yes; then
10596 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10598 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10602 link_all_deplibs=yes
10606 if test "x$host_vendor" = xsequent; then
10607 # Use $CC to link under sequent, because it throws in some extra .o
10608 # files that make .init and .fini sections work.
10609 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_libdir_flag_spec='-L$libdir'
10614 hardcode_direct=yes
10615 hardcode_minus_L=yes
10616 hardcode_shlibpath_var=no
10620 case $host_vendor in
10622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_direct=yes # is this really true???
10626 ## LD is ld it makes a PLAMLIB
10627 ## CC just makes a GrossModule.
10628 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10629 reload_cmds='$CC -r -o $output$reload_objs'
10633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10637 runpath_var='LD_RUN_PATH'
10638 hardcode_shlibpath_var=no
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_shlibpath_var=no
10644 export_dynamic_flag_spec='-Bexport'
10648 if test -d /usr/nec; then
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_shlibpath_var=no
10651 runpath_var=LD_RUN_PATH
10652 hardcode_runpath_var=yes
10657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10658 no_undefined_flag='${wl}-z,text'
10659 archive_cmds_need_lc=no
10660 hardcode_shlibpath_var=no
10661 runpath_var='LD_RUN_PATH'
10663 if test "$GCC" = yes; then
10664 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 sysv5* | sco3.2v5* | sco5v6*)
10673 # Note: We can NOT use -z defs as we might desire, because we do not
10674 # link with -lc, and that would cause any symbols used from libc to
10675 # always be unresolved, which means just about no library would
10676 # ever link correctly. If we're not using GNU ld we use -z text
10677 # though, which does catch some bad symbols but isn't as heavy-handed
10679 no_undefined_flag='${wl}-z,text'
10680 allow_undefined_flag='${wl}-z,nodefs'
10681 archive_cmds_need_lc=no
10682 hardcode_shlibpath_var=no
10683 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10684 hardcode_libdir_separator=':'
10685 link_all_deplibs=yes
10686 export_dynamic_flag_spec='${wl}-Bexport'
10687 runpath_var='LD_RUN_PATH'
10689 if test "$GCC" = yes; then
10690 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_libdir_flag_spec='-L$libdir'
10701 hardcode_shlibpath_var=no
10709 if test x$host_vendor = xsni; then
10711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10712 export_dynamic_flag_spec='${wl}-Blargedynsym'
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10719 $as_echo "$ld_shlibs" >&6; }
10720 test "$ld_shlibs" = no && can_build_shared=no
10722 with_gnu_ld=$with_gnu_ld
10739 # Do we need to explicitly link libc?
10741 case "x$archive_cmds_need_lc" in
10743 # Assume -lc should be added
10744 archive_cmds_need_lc=yes
10746 if test "$enable_shared" = yes && test "$GCC" = yes; then
10747 case $archive_cmds in
10749 # FIXME: we may have to deal with multi-command sequences.
10752 # Test whether the compiler implicitly links with -lc since on some
10753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10754 # to ld, don't add -lc before -lgcc.
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10756 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10757 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10758 $as_echo_n "(cached) " >&6
10761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10764 (eval $ac_compile) 2>&5
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; } 2>conftest.err; then
10770 libobjs=conftest.$ac_objext
10772 wl=$lt_prog_compiler_wl
10773 pic_flag=$lt_prog_compiler_pic
10779 lt_save_allow_undefined_flag=$allow_undefined_flag
10780 allow_undefined_flag=
10781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10782 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10785 test $ac_status = 0; }
10787 lt_cv_archive_cmds_need_lc=no
10789 lt_cv_archive_cmds_need_lc=yes
10791 allow_undefined_flag=$lt_save_allow_undefined_flag
10793 cat conftest.err 1>&5
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10799 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10800 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10964 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10966 if test "$GCC" = yes; then
10968 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10969 *) lt_awk_arg="/^libraries:/" ;;
10972 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10973 *) lt_sed_strip_eq="s,=/,/,g" ;;
10975 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10976 case $lt_search_path_spec in
10978 # if the path contains ";" then we assume it to be the separator
10979 # otherwise default to the standard path separator (i.e. ":") - it is
10980 # assumed that no part of a normal pathname contains ";" but that should
10981 # okay in the real world where ";" in dirpaths is itself problematic.
10982 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10988 # Ok, now we have the path, separated by spaces, we can step through it
10989 # and add multilib dir if necessary.
10990 lt_tmp_lt_search_path_spec=
10991 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10992 for lt_sys_path in $lt_search_path_spec; do
10993 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10994 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10996 test -d "$lt_sys_path" && \
10997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11000 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11001 BEGIN {RS=" "; FS="/|\n";} {
11004 for (lt_i = NF; lt_i > 0; lt_i--) {
11005 if ($lt_i != "" && $lt_i != ".") {
11006 if ($lt_i == "..") {
11009 if (lt_count == 0) {
11010 lt_foo="/" $lt_i lt_foo;
11017 if (lt_foo != "") { lt_freq[lt_foo]++; }
11018 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11020 # AWK program above erroneously prepends '/' to C:/dos/paths
11023 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11024 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11026 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11030 library_names_spec=
11031 libname_spec='lib$name'
11035 postuninstall_cmds=
11039 shlibpath_overrides_runpath=unknown
11041 dynamic_linker="$host_os ld.so"
11042 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11043 need_lib_prefix=unknown
11044 hardcode_into_libs=no
11046 # when you set need_version to no, make sure it does not cause -set_version
11047 # flags to be left without arguments
11048 need_version=unknown
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11054 shlibpath_var=LIBPATH
11056 # AIX 3 has no versioning support, so we append a major version to the name.
11057 soname_spec='${libname}${release}${shared_ext}$major'
11064 hardcode_into_libs=yes
11065 if test "$host_cpu" = ia64; then
11066 # AIX 5 supports IA64
11067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11068 shlibpath_var=LD_LIBRARY_PATH
11070 # With GCC up to 2.95.x, collect2 would create an import file
11071 # for dependence libraries. The import file would start with
11072 # the line `#! .'. This would cause the generated library to
11073 # depend on `.', always an invalid library. This was fixed in
11074 # development snapshots of GCC prior to 3.0.
11076 aix4 | aix4.[01] | aix4.[01].*)
11077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11079 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11082 can_build_shared=no
11086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11087 # soname into executable. Probably we can add versioning support to
11088 # collect2, so additional links can be useful in future.
11089 if test "$aix_use_runtimelinking" = yes; then
11090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11091 # instead of lib<name>.a to let people know that these are not
11092 # typical AIX shared libraries.
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 # We preserve .a as extension for shared libraries through AIX4.2
11096 # and later when we are not doing run time linking.
11097 library_names_spec='${libname}${release}.a $libname.a'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LIBPATH
11107 # Since July 2007 AmigaOS4 officially supports .so libraries.
11108 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 library_names_spec='$libname.ixlibrary $libname.a'
11113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11114 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11120 library_names_spec='${libname}${shared_ext}'
11121 dynamic_linker="$host_os ld.so"
11122 shlibpath_var=LIBRARY_PATH
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11133 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11134 # the default ld.so.conf also contains /usr/contrib/lib and
11135 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11136 # libtool to hard-code these into programs
11139 cygwin* | mingw* | pw32* | cegcc*)
11140 version_type=windows
11145 case $GCC,$cc_basename in
11148 library_names_spec='$libname.dll.a'
11149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11150 postinstall_cmds='base_file=`basename \${file}`~
11151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11152 dldir=$destdir/`dirname \$dlpath`~
11153 test -d \$dldir || mkdir -p \$dldir~
11154 $install_prog $dir/$dlname \$dldir/$dlname~
11155 chmod a+x \$dldir/$dlname~
11156 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11157 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11160 dlpath=$dir/\$dldll~
11162 shlibpath_overrides_runpath=yes
11166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11169 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11172 # MinGW DLLs use traditional 'lib' prefix
11173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176 # pw32 DLLs use 'pw' prefix rather than 'lib'
11177 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11180 dynamic_linker='Win32 ld.exe'
11185 libname_spec='$name'
11186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11187 library_names_spec='${libname}.dll.lib'
11191 sys_lib_search_path_spec=
11194 for lt_path in $LIB
11197 # Let DOS variable expansion print the short 8.3 style file name.
11198 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11199 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11202 # Convert to MSYS style.
11203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11206 # Convert to unix form, then to dos form, then back to unix form
11207 # but this time dos style (no spaces!) so that the unix form looks
11208 # like /cygdrive/c/PROGRA~1:/cygdr...
11209 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11210 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11211 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11214 sys_lib_search_path_spec="$LIB"
11215 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11216 # It is most probably a Windows format PATH.
11217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11221 # FIXME: find the short name or the path components, as spaces are
11222 # common. (e.g. "Program Files" -> "PROGRA~1")
11226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11227 postinstall_cmds='base_file=`basename \${file}`~
11228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11229 dldir=$destdir/`dirname \$dlpath`~
11230 test -d \$dldir || mkdir -p \$dldir~
11231 $install_prog $dir/$dlname \$dldir/$dlname'
11232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11233 dlpath=$dir/\$dldll~
11235 shlibpath_overrides_runpath=yes
11236 dynamic_linker='Win32 link.exe'
11240 # Assume MSVC wrapper
11241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11242 dynamic_linker='Win32 ld.exe'
11245 # FIXME: first we should search . and the directory the executable is in
11249 darwin* | rhapsody*)
11250 dynamic_linker="$host_os dyld"
11251 version_type=darwin
11254 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11255 soname_spec='${libname}${release}${major}$shared_ext'
11256 shlibpath_overrides_runpath=yes
11257 shlibpath_var=DYLD_LIBRARY_PATH
11258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11260 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11277 freebsd* | dragonfly*)
11278 # DragonFly does not have aout. When/if they implement a new
11279 # versioning mechanism, adjust this.
11280 if test -x /usr/bin/objformat; then
11281 objformat=`/usr/bin/objformat`
11284 freebsd[123]*) objformat=aout ;;
11285 *) objformat=elf ;;
11288 # Handle Gentoo/FreeBSD as it was Linux
11289 case $host_vendor in
11291 version_type=linux ;;
11293 version_type=freebsd-$objformat ;;
11296 case $version_type in
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11313 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes
11318 freebsd3.[01]* | freebsdelf3.[01]*)
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11324 shlibpath_overrides_runpath=no
11325 hardcode_into_libs=yes
11327 *) # from 4.6 on, and DragonFly
11328 shlibpath_overrides_runpath=yes
11329 hardcode_into_libs=yes
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 hardcode_into_libs=yes
11348 dynamic_linker="$host_os runtime_loader"
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LIBRARY_PATH
11352 shlibpath_overrides_runpath=yes
11353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11354 hardcode_into_libs=yes
11357 hpux9* | hpux10* | hpux11*)
11358 # Give a soname corresponding to the major version so that dld.sl refuses to
11359 # link against other versions.
11366 hardcode_into_libs=yes
11367 dynamic_linker="$host_os dld.so"
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 if test "X$HPUX_IA64_MODE" = X32; then
11373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381 hardcode_into_libs=yes
11382 dynamic_linker="$host_os dld.sl"
11383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11392 dynamic_linker="$host_os dld.sl"
11393 shlibpath_var=SHLIB_PATH
11394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11400 postinstall_cmds='chmod 555 $lib'
11401 # or fails outright, so override atomically:
11402 install_override_mode=555
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=no
11414 hardcode_into_libs=yes
11417 irix5* | irix6* | nonstopux*)
11419 nonstopux*) version_type=nonstopux ;;
11421 if test "$lt_cv_prog_gnu_ld" = yes; then
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11432 irix5* | nonstopux*)
11433 libsuff= shlibsuff=
11436 case $LD in # libtool.m4 will add one of these switches to LD
11437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11438 libsuff= shlibsuff= libmagic=32-bit;;
11439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11440 libsuff=32 shlibsuff=N32 libmagic=N32;;
11441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11443 *) libsuff= shlibsuff= libmagic=never-match;;
11447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11448 shlibpath_overrides_runpath=no
11449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11451 hardcode_into_libs=yes
11454 # No shared lib support for Linux oldld, aout, or coff.
11455 linux*oldld* | linux*aout* | linux*coff*)
11459 # This must be Linux ELF.
11460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=no
11470 # Some binutils ld are patched to set DT_RUNPATH
11471 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11472 $as_echo_n "(cached) " >&6
11474 lt_cv_shlibpath_overrides_runpath=no
11475 save_LDFLAGS=$LDFLAGS
11476 save_libdir=$libdir
11477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11492 lt_cv_shlibpath_overrides_runpath=yes
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LDFLAGS=$save_LDFLAGS
11498 libdir=$save_libdir
11502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11504 # This implies no fast_install, which is unacceptable.
11505 # Some rework will be needed to allow for fast_install
11506 # before this can be enabled.
11507 hardcode_into_libs=yes
11509 # Append ld.so.conf contents to the search path
11510 if test -f /etc/ld.so.conf; then
11511 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;s/"//g;/^$/d' | tr '\n' ' '`
11512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11515 # We used to test for /lib/ld.so.1 and disable shared libraries on
11516 # powerpc, because MkLinux only supported shared libraries with the
11517 # GNU dynamic linker. Since this was broken with cross compilers,
11518 # most powerpc-linux boxes support dynamic linking these days and
11519 # people can always --disable-shared, the test was removed, and we
11520 # assume the GNU/Linux dynamic linker is in use.
11521 dynamic_linker='GNU/Linux ld.so'
11528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11531 dynamic_linker='NetBSD (a.out) ld.so'
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 dynamic_linker='NetBSD ld.elf_so'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 hardcode_into_libs=yes
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=no
11557 hardcode_into_libs=yes
11558 dynamic_linker='ldqnx.so'
11563 sys_lib_dlsearch_path_spec="/usr/lib"
11565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11568 *) need_version=no ;;
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11575 openbsd2.[89] | openbsd2.[89].*)
11576 shlibpath_overrides_runpath=no
11579 shlibpath_overrides_runpath=yes
11583 shlibpath_overrides_runpath=yes
11588 libname_spec='$name'
11591 library_names_spec='$libname${shared_ext} $libname.a'
11592 dynamic_linker='OS/2 ld.exe'
11593 shlibpath_var=LIBPATH
11596 osf3* | osf4* | osf5*)
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 # ldd complains unless libraries are executable
11621 postinstall_cmds='chmod +x $lib'
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 if test "$with_gnu_ld" = yes; then
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 case $host_vendor in
11643 shlibpath_overrides_runpath=no
11645 runpath_var=LD_RUN_PATH
11653 shlibpath_overrides_runpath=no
11654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11660 if test -d /usr/nec ;then
11662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11663 soname_spec='$libname${shared_ext}.$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11669 version_type=freebsd-elf
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=yes
11676 hardcode_into_libs=yes
11677 if test "$with_gnu_ld" = yes; then
11678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11687 sys_lib_dlsearch_path_spec='/usr/lib'
11691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=no
11698 hardcode_into_libs=yes
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11713 $as_echo "$dynamic_linker" >&6; }
11714 test "$dynamic_linker" = no && can_build_shared=no
11716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11717 if test "$GCC" = yes; then
11718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11721 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11722 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11724 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11725 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11822 if test -n "$hardcode_libdir_flag_spec" ||
11823 test -n "$runpath_var" ||
11824 test "X$hardcode_automatic" = "Xyes" ; then
11826 # We can hardcode non-existent directories.
11827 if test "$hardcode_direct" != no &&
11828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11829 # have to relink, otherwise we might link with an installed library
11830 # when we should be linking with a yet-to-be-installed one
11831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11832 test "$hardcode_minus_L" != no; then
11833 # Linking always hardcodes the temporary library directory.
11834 hardcode_action=relink
11836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11837 hardcode_action=immediate
11840 # We cannot hardcode anything, or else we can only hardcode existing
11842 hardcode_action=unsupported
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11845 $as_echo "$hardcode_action" >&6; }
11847 if test "$hardcode_action" = relink ||
11848 test "$inherit_rpath" = yes; then
11849 # Fast installation is not supported
11850 enable_fast_install=no
11851 elif test "$shlibpath_overrides_runpath" = yes ||
11852 test "$enable_shared" = no; then
11853 # Fast installation is not necessary
11854 enable_fast_install=needless
11862 if test "x$enable_dlopen" != xyes; then
11863 enable_dlopen=unknown
11864 enable_dlopen_self=unknown
11865 enable_dlopen_self_static=unknown
11872 lt_cv_dlopen="load_add_on"
11874 lt_cv_dlopen_self=yes
11877 mingw* | pw32* | cegcc*)
11878 lt_cv_dlopen="LoadLibrary"
11883 lt_cv_dlopen="dlopen"
11888 # if libdl is installed we need to link against it
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11891 if ${ac_cv_lib_dl_dlopen+:} false; then :
11892 $as_echo_n "(cached) " >&6
11894 ac_check_lib_save_LIBS=$LIBS
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_dl_dlopen=yes
11917 ac_cv_lib_dl_dlopen=no
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11925 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11929 lt_cv_dlopen="dyld"
11931 lt_cv_dlopen_self=yes
11938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11939 if test "x$ac_cv_func_shl_load" = xyes; then :
11940 lt_cv_dlopen="shl_load"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11944 if ${ac_cv_lib_dld_shl_load+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 ac_check_lib_save_LIBS=$LIBS
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11962 return shl_load ();
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_dld_shl_load=yes
11970 ac_cv_lib_dld_shl_load=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11978 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11982 if test "x$ac_cv_func_dlopen" = xyes; then :
11983 lt_cv_dlopen="dlopen"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11987 if ${ac_cv_lib_dl_dlopen+:} false; then :
11988 $as_echo_n "(cached) " >&6
11990 ac_check_lib_save_LIBS=$LIBS
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dl_dlopen=yes
12013 ac_cv_lib_dl_dlopen=no
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12021 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12025 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12026 if ${ac_cv_lib_svld_dlopen+:} false; then :
12027 $as_echo_n "(cached) " >&6
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lsvld $LIBS"
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 ac_cv_lib_svld_dlopen=yes
12052 ac_cv_lib_svld_dlopen=no
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12059 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12060 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12064 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12065 if ${ac_cv_lib_dld_dld_link+:} false; then :
12066 $as_echo_n "(cached) " >&6
12068 ac_check_lib_save_LIBS=$LIBS
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12083 return dld_link ();
12088 if ac_fn_c_try_link "$LINENO"; then :
12089 ac_cv_lib_dld_dld_link=yes
12091 ac_cv_lib_dld_dld_link=no
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12098 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12099 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12100 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12121 if test "x$lt_cv_dlopen" != xno; then
12127 case $lt_cv_dlopen in
12129 save_CPPFLAGS="$CPPFLAGS"
12130 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12132 save_LDFLAGS="$LDFLAGS"
12133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12136 LIBS="$lt_cv_dlopen_libs $LIBS"
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12139 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12140 if ${lt_cv_dlopen_self+:} false; then :
12141 $as_echo_n "(cached) " >&6
12143 if test "$cross_compiling" = yes; then :
12144 lt_cv_dlopen_self=cross
12146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12147 lt_status=$lt_dlunknown
12148 cat > conftest.$ac_ext <<_LT_EOF
12149 #line $LINENO "configure"
12150 #include "confdefs.h"
12159 # define LT_DLGLOBAL RTLD_GLOBAL
12162 # define LT_DLGLOBAL DL_GLOBAL
12164 # define LT_DLGLOBAL 0
12168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12169 find out it does not work in some platform. */
12170 #ifndef LT_DLLAZY_OR_NOW
12172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12175 # define LT_DLLAZY_OR_NOW DL_LAZY
12178 # define LT_DLLAZY_OR_NOW RTLD_NOW
12181 # define LT_DLLAZY_OR_NOW DL_NOW
12183 # define LT_DLLAZY_OR_NOW 0
12190 /* When -fvisbility=hidden is used, assume the code has been annotated
12191 correspondingly for the symbols needed. */
12192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12193 int fnord () __attribute__((visibility("default")));
12196 int fnord () { return 42; }
12199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200 int status = $lt_dlunknown;
12204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12208 else puts (dlerror ());
12210 /* dlclose (self); */
12218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12219 (eval $ac_link) 2>&5
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12223 (./conftest; exit; ) >&5 2>/dev/null
12225 case x$lt_status in
12226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12231 # compilation failed
12232 lt_cv_dlopen_self=no
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12240 $as_echo "$lt_cv_dlopen_self" >&6; }
12242 if test "x$lt_cv_dlopen_self" = xyes; then
12243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12245 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12246 if ${lt_cv_dlopen_self_static+:} false; then :
12247 $as_echo_n "(cached) " >&6
12249 if test "$cross_compiling" = yes; then :
12250 lt_cv_dlopen_self_static=cross
12252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12253 lt_status=$lt_dlunknown
12254 cat > conftest.$ac_ext <<_LT_EOF
12255 #line $LINENO "configure"
12256 #include "confdefs.h"
12265 # define LT_DLGLOBAL RTLD_GLOBAL
12268 # define LT_DLGLOBAL DL_GLOBAL
12270 # define LT_DLGLOBAL 0
12274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12275 find out it does not work in some platform. */
12276 #ifndef LT_DLLAZY_OR_NOW
12278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12281 # define LT_DLLAZY_OR_NOW DL_LAZY
12284 # define LT_DLLAZY_OR_NOW RTLD_NOW
12287 # define LT_DLLAZY_OR_NOW DL_NOW
12289 # define LT_DLLAZY_OR_NOW 0
12296 /* When -fvisbility=hidden is used, assume the code has been annotated
12297 correspondingly for the symbols needed. */
12298 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12299 int fnord () __attribute__((visibility("default")));
12302 int fnord () { return 42; }
12305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12306 int status = $lt_dlunknown;
12310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12314 else puts (dlerror ());
12316 /* dlclose (self); */
12324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12325 (eval $ac_link) 2>&5
12327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12329 (./conftest; exit; ) >&5 2>/dev/null
12331 case x$lt_status in
12332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12337 # compilation failed
12338 lt_cv_dlopen_self_static=no
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12346 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12349 CPPFLAGS="$save_CPPFLAGS"
12350 LDFLAGS="$save_LDFLAGS"
12355 case $lt_cv_dlopen_self in
12356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12357 *) enable_dlopen_self=unknown ;;
12360 case $lt_cv_dlopen_self_static in
12361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12362 *) enable_dlopen_self_static=unknown ;;
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12385 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12386 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390 $as_echo "yes" >&6; }
12392 # FIXME - insert some real tests, host_os isn't really good enough
12395 if test -n "$STRIP" ; then
12396 striplib="$STRIP -x"
12397 old_striplib="$STRIP -S"
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12399 $as_echo "yes" >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12423 # Report which library types will actually be built
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12427 $as_echo "$can_build_shared" >&6; }
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12430 $as_echo_n "checking whether to build shared libraries... " >&6; }
12431 test "$can_build_shared" = "no" && enable_shared=no
12433 # On AIX, shared libraries and static libraries use the same namespace, and
12434 # are all built from PIC.
12437 test "$enable_shared" = yes && enable_static=no
12438 if test -n "$RANLIB"; then
12439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12440 postinstall_cmds='$RANLIB $lib'
12445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12446 test "$enable_shared" = yes && enable_static=no
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12451 $as_echo "$enable_shared" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12454 $as_echo_n "checking whether to build static libraries... " >&6; }
12455 # Make sure either enable_shared or enable_static is yes.
12456 test "$enable_shared" = yes || enable_static=yes
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12458 $as_echo "$enable_static" >&6; }
12465 ac_cpp='$CPP $CPPFLAGS'
12466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12474 (test "X$CXX" != "Xg++"))) ; then
12476 ac_cpp='$CXXCPP $CPPFLAGS'
12477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12481 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12482 if test -z "$CXXCPP"; then
12483 if ${ac_cv_prog_CXXCPP+:} false; then :
12484 $as_echo_n "(cached) " >&6
12486 # Double quotes because CXXCPP needs to be expanded
12487 for CXXCPP in "$CXX -E" "/lib/cpp"
12489 ac_preproc_ok=false
12490 for ac_cxx_preproc_warn_flag in '' yes
12492 # Use a header file that comes with gcc, so configuring glibc
12493 # with a fresh cross-compiler works.
12494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 # <limits.h> exists even on freestanding compilers.
12496 # On the NeXT, cc -E runs the code through the compiler's parser,
12497 # not just through cpp. "Syntax error" is here to catch this case.
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 # include <limits.h>
12503 # include <assert.h>
12507 if ac_fn_cxx_try_cpp "$LINENO"; then :
12510 # Broken: fails on valid input.
12513 rm -f conftest.err conftest.i conftest.$ac_ext
12515 # OK, works on sane cases. Now check whether nonexistent headers
12516 # can be detected and how.
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include <ac_nonexistent.h>
12521 if ac_fn_cxx_try_cpp "$LINENO"; then :
12522 # Broken: success on invalid input.
12525 # Passes both tests.
12529 rm -f conftest.err conftest.i conftest.$ac_ext
12532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12533 rm -f conftest.i conftest.err conftest.$ac_ext
12534 if $ac_preproc_ok; then :
12539 ac_cv_prog_CXXCPP=$CXXCPP
12542 CXXCPP=$ac_cv_prog_CXXCPP
12544 ac_cv_prog_CXXCPP=$CXXCPP
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12547 $as_echo "$CXXCPP" >&6; }
12548 ac_preproc_ok=false
12549 for ac_cxx_preproc_warn_flag in '' yes
12551 # Use a header file that comes with gcc, so configuring glibc
12552 # with a fresh cross-compiler works.
12553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554 # <limits.h> exists even on freestanding compilers.
12555 # On the NeXT, cc -E runs the code through the compiler's parser,
12556 # not just through cpp. "Syntax error" is here to catch this case.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 # include <limits.h>
12562 # include <assert.h>
12566 if ac_fn_cxx_try_cpp "$LINENO"; then :
12569 # Broken: fails on valid input.
12572 rm -f conftest.err conftest.i conftest.$ac_ext
12574 # OK, works on sane cases. Now check whether nonexistent headers
12575 # can be detected and how.
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 #include <ac_nonexistent.h>
12580 if ac_fn_cxx_try_cpp "$LINENO"; then :
12581 # Broken: success on invalid input.
12584 # Passes both tests.
12588 rm -f conftest.err conftest.i conftest.$ac_ext
12591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12592 rm -f conftest.i conftest.err conftest.$ac_ext
12593 if $ac_preproc_ok; then :
12596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12598 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12599 See \`config.log' for more details" "$LINENO" 5; }
12603 ac_cpp='$CPP $CPPFLAGS'
12604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609 _lt_caught_CXX_error=yes
12613 ac_cpp='$CXXCPP $CPPFLAGS'
12614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12618 archive_cmds_need_lc_CXX=no
12619 allow_undefined_flag_CXX=
12620 always_export_symbols_CXX=no
12621 archive_expsym_cmds_CXX=
12622 compiler_needs_object_CXX=no
12623 export_dynamic_flag_spec_CXX=
12624 hardcode_direct_CXX=no
12625 hardcode_direct_absolute_CXX=no
12626 hardcode_libdir_flag_spec_CXX=
12627 hardcode_libdir_flag_spec_ld_CXX=
12628 hardcode_libdir_separator_CXX=
12629 hardcode_minus_L_CXX=no
12630 hardcode_shlibpath_var_CXX=unsupported
12631 hardcode_automatic_CXX=no
12632 inherit_rpath_CXX=no
12634 module_expsym_cmds_CXX=
12635 link_all_deplibs_CXX=unknown
12636 old_archive_cmds_CXX=$old_archive_cmds
12637 reload_flag_CXX=$reload_flag
12638 reload_cmds_CXX=$reload_cmds
12639 no_undefined_flag_CXX=
12640 whole_archive_flag_spec_CXX=
12641 enable_shared_with_static_runtimes_CXX=no
12643 # Source file extension for C++ test sources.
12646 # Object file extension for compiled C++ test sources.
12650 # No sense in running all these tests if we already determined that
12651 # the CXX compiler isn't working. Some variables (like enable_shared)
12652 # are currently assumed to apply to all compilers on this platform,
12653 # and will be corrupted by setting them based on a non-working compiler.
12654 if test "$_lt_caught_CXX_error" != yes; then
12655 # Code to be used in simple compile tests
12656 lt_simple_compile_test_code="int some_variable = 0;"
12658 # Code to be used in simple link tests
12659 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12668 # If no C compiler was specified, use CC.
12671 # If no C compiler flags were specified, use CFLAGS.
12672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12674 # Allow CC to be a program name with arguments.
12678 # save warnings/boilerplate of simple test code
12679 ac_outfile=conftest.$ac_objext
12680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12682 _lt_compiler_boilerplate=`cat conftest.err`
12685 ac_outfile=conftest.$ac_objext
12686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12688 _lt_linker_boilerplate=`cat conftest.err`
12692 # Allow CC to be a program name with arguments.
12694 lt_save_CFLAGS=$CFLAGS
12698 lt_save_with_gnu_ld=$with_gnu_ld
12699 lt_save_path_LD=$lt_cv_path_LD
12700 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12701 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12703 $as_unset lt_cv_prog_gnu_ld
12705 if test -n "${lt_cv_path_LDCXX+set}"; then
12706 lt_cv_path_LD=$lt_cv_path_LDCXX
12708 $as_unset lt_cv_path_LD
12710 test -z "${LDCXX+set}" || LD=$LDCXX
12715 for cc_temp in $compiler""; do
12717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12723 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12726 if test -n "$compiler"; then
12727 # We don't want -fno-exception when compiling C++ code, so set the
12728 # no_builtin_flag separately
12729 if test "$GXX" = yes; then
12730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12732 lt_prog_compiler_no_builtin_flag_CXX=
12735 if test "$GXX" = yes; then
12736 # Set up default GNU C++ configuration
12740 # Check whether --with-gnu-ld was given.
12741 if test "${with_gnu_ld+set}" = set; then :
12742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12748 if test "$GCC" = yes; then
12749 # Check if gcc -print-prog-name=ld gives a path.
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12751 $as_echo_n "checking for ld used by $CC... " >&6; }
12754 # gcc leaves a trailing carriage return which upsets mingw
12755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12760 # Accept absolute paths.
12762 re_direlt='/[^/][^/]*/\.\./'
12763 # Canonicalize the pathname of ld
12764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12768 test -z "$LD" && LD="$ac_prog"
12771 # If it fails, then pretend we aren't using GCC.
12775 # If it is relative, then search for the first ld in PATH.
12776 with_gnu_ld=unknown
12779 elif test "$with_gnu_ld" = yes; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12781 $as_echo_n "checking for GNU ld... " >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12784 $as_echo_n "checking for non-GNU ld... " >&6; }
12786 if ${lt_cv_path_LD+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 if test -z "$LD"; then
12790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12791 for ac_dir in $PATH; do
12793 test -z "$ac_dir" && ac_dir=.
12794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12795 lt_cv_path_LD="$ac_dir/$ac_prog"
12796 # Check to see if the program is GNU ld. I'd rather use --version,
12797 # but apparently some variants of GNU ld only accept -v.
12798 # Break only if it was the GNU/non-GNU ld that we prefer.
12799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12800 *GNU* | *'with BFD'*)
12801 test "$with_gnu_ld" != no && break
12804 test "$with_gnu_ld" != yes && break
12811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12815 LD="$lt_cv_path_LD"
12816 if test -n "$LD"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12818 $as_echo "$LD" >&6; }
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12823 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12825 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12826 if ${lt_cv_prog_gnu_ld+:} false; then :
12827 $as_echo_n "(cached) " >&6
12829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12830 case `$LD -v 2>&1 </dev/null` in
12831 *GNU* | *'with BFD'*)
12832 lt_cv_prog_gnu_ld=yes
12835 lt_cv_prog_gnu_ld=no
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12840 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12841 with_gnu_ld=$lt_cv_prog_gnu_ld
12849 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12850 # archiving commands below assume that GNU ld is being used.
12851 if test "$with_gnu_ld" = yes; then
12852 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12858 # If archive_cmds runs LD, not CC, wlarc should be empty
12859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12860 # investigate it a little bit more. (MM)
12863 # ancient GNU ld didn't support --whole-archive et. al.
12864 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12865 $GREP 'no-whole-archive' > /dev/null; then
12866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12868 whole_archive_flag_spec_CXX=
12874 # A generic and very simple default shared library creation
12875 # command for GNU C++ for the case where it uses the native
12876 # linker, instead of GNU ld. If possible, this setting should
12877 # overridden to take advantage of the native linker features on
12878 # the platform it is being used on.
12879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12882 # Commands to make compiler produce verbose output that lists
12883 # what "hidden" libraries, object files and flags are used when
12884 # linking a shared library.
12885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12893 # PORTME: fill in a description of your system's C++ link characteristics
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12899 # FIXME: insert proper C++ library support
12903 if test "$host_cpu" = ia64; then
12904 # On IA64, the linker does run time linking by default, so we don't
12905 # have to do anything special.
12906 aix_use_runtimelinking=no
12907 exp_sym_flag='-Bexport'
12910 aix_use_runtimelinking=no
12912 # Test if we are trying to use run time linking or normal
12913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12914 # need to do runtime linking.
12915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12916 for ld_flag in $LDFLAGS; do
12919 aix_use_runtimelinking=yes
12927 exp_sym_flag='-bexport'
12928 no_entry_flag='-bnoentry'
12931 # When large executables or shared objects are built, AIX ld can
12932 # have problems creating the table of contents. If linking a library
12933 # or program results in "error TOC overflow" add -mminimal-toc to
12934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12937 archive_cmds_CXX=''
12938 hardcode_direct_CXX=yes
12939 hardcode_direct_absolute_CXX=yes
12940 hardcode_libdir_separator_CXX=':'
12941 link_all_deplibs_CXX=yes
12942 file_list_spec_CXX='${wl}-f,'
12944 if test "$GXX" = yes; then
12945 case $host_os in aix4.[012]|aix4.[012].*)
12946 # We only want to do this on AIX 4.2 and lower, the check
12947 # below for broken collect2 doesn't work under 4.3+
12948 collect2name=`${CC} -print-prog-name=collect2`
12949 if test -f "$collect2name" &&
12950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12952 # We have reworked collect2
12955 # We have old collect2
12956 hardcode_direct_CXX=unsupported
12957 # It fails to find uninstalled libraries when the uninstalled
12958 # path is not listed in the libpath. Setting hardcode_minus_L
12959 # to unsupported forces relinking
12960 hardcode_minus_L_CXX=yes
12961 hardcode_libdir_flag_spec_CXX='-L$libdir'
12962 hardcode_libdir_separator_CXX=
12965 shared_flag='-shared'
12966 if test "$aix_use_runtimelinking" = yes; then
12967 shared_flag="$shared_flag "'${wl}-G'
12971 if test "$host_cpu" = ia64; then
12972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12973 # chokes on -Wl,-G. The following line is correct:
12976 if test "$aix_use_runtimelinking" = yes; then
12977 shared_flag='${wl}-G'
12979 shared_flag='${wl}-bM:SRE'
12984 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12985 # It seems that -bexpall does not export symbols beginning with
12986 # underscore (_), so it is better to generate a list of symbols to
12988 always_export_symbols_CXX=yes
12989 if test "$aix_use_runtimelinking" = yes; then
12990 # Warning - without using the other runtime loading flags (-brtl),
12991 # -berok will link without error, but may produce a broken library.
12992 allow_undefined_flag_CXX='-berok'
12993 # Determine the default libpath from the value encoded in an empty
12995 if test "${lt_cv_aix_libpath+set}" = set; then
12996 aix_libpath=$lt_cv_aix_libpath
12998 if ${lt_cv_aix_libpath__CXX+:} false; then :
12999 $as_echo_n "(cached) " >&6
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13012 if ac_fn_cxx_try_link "$LINENO"; then :
13014 lt_aix_libpath_sed='
13015 /Import File Strings/,/^$/ {
13017 s/^0 *\([^ ]*\) *$/\1/
13021 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022 # Check for a 64-bit object if we didn't find anything.
13023 if test -z "$lt_cv_aix_libpath__CXX"; then
13024 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027 rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 if test -z "$lt_cv_aix_libpath__CXX"; then
13030 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13035 aix_libpath=$lt_cv_aix_libpath__CXX
13038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13040 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13042 if test "$host_cpu" = ia64; then
13043 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13044 allow_undefined_flag_CXX="-z nodefs"
13045 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"
13047 # Determine the default libpath from the value encoded in an
13048 # empty executable.
13049 if test "${lt_cv_aix_libpath+set}" = set; then
13050 aix_libpath=$lt_cv_aix_libpath
13052 if ${lt_cv_aix_libpath__CXX+:} false; then :
13053 $as_echo_n "(cached) " >&6
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13066 if ac_fn_cxx_try_link "$LINENO"; then :
13068 lt_aix_libpath_sed='
13069 /Import File Strings/,/^$/ {
13071 s/^0 *\([^ ]*\) *$/\1/
13075 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13076 # Check for a 64-bit object if we didn't find anything.
13077 if test -z "$lt_cv_aix_libpath__CXX"; then
13078 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 if test -z "$lt_cv_aix_libpath__CXX"; then
13084 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13089 aix_libpath=$lt_cv_aix_libpath__CXX
13092 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13093 # Warning - without using the other run time loading flags,
13094 # -berok will link without error, but may produce a broken library.
13095 no_undefined_flag_CXX=' ${wl}-bernotok'
13096 allow_undefined_flag_CXX=' ${wl}-berok'
13097 if test "$with_gnu_ld" = yes; then
13098 # We only use this code for GNU lds that support --whole-archive.
13099 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13101 # Exported symbols can be pulled into shared objects from archives
13102 whole_archive_flag_spec_CXX='$convenience'
13104 archive_cmds_need_lc_CXX=yes
13105 # This is similar to how AIX traditionally builds its shared
13107 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'
13113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13114 allow_undefined_flag_CXX=unsupported
13115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13116 # support --undefined. This deserves some investigation. FIXME
13117 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13124 case $cc_basename in
13126 # FIXME: insert proper C++ library support
13132 cygwin* | mingw* | pw32* | cegcc*)
13133 case $GXX,$cc_basename in
13136 # hardcode_libdir_flag_spec is actually meaningless, as there is
13137 # no search path for DLLs.
13138 hardcode_libdir_flag_spec_CXX=' '
13139 allow_undefined_flag_CXX=unsupported
13140 always_export_symbols_CXX=yes
13141 file_list_spec_CXX='@'
13142 # Tell ltmain to make .lib files, not .a files.
13144 # Tell ltmain to make .dll files, not .so files.
13146 # FIXME: Setting linknames here is a bad hack.
13147 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13148 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13149 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13151 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13153 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13155 # The linker will not automatically build a static lib if we build a DLL.
13156 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13157 enable_shared_with_static_runtimes_CXX=yes
13159 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13160 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13161 lt_tool_outputfile="@TOOL_OUTPUT@"~
13162 case $lt_outputfile in
13165 lt_outputfile="$lt_outputfile.exe"
13166 lt_tool_outputfile="$lt_tool_outputfile.exe"
13169 func_to_tool_file "$lt_outputfile"~
13170 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13171 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13172 $RM "$lt_outputfile.manifest";
13177 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13178 # as there is no search path for DLLs.
13179 hardcode_libdir_flag_spec_CXX='-L$libdir'
13180 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13181 allow_undefined_flag_CXX=unsupported
13182 always_export_symbols_CXX=no
13183 enable_shared_with_static_runtimes_CXX=yes
13185 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13186 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'
13187 # If the export-symbols file already is a .def file (1st line
13188 # is EXPORTS), use it as is; otherwise, prepend...
13189 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13190 cp $export_symbols $output_objdir/$soname.def;
13192 echo EXPORTS > $output_objdir/$soname.def;
13193 cat $export_symbols >> $output_objdir/$soname.def;
13195 $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'
13202 darwin* | rhapsody*)
13205 archive_cmds_need_lc_CXX=no
13206 hardcode_direct_CXX=no
13207 hardcode_automatic_CXX=yes
13208 hardcode_shlibpath_var_CXX=unsupported
13209 if test "$lt_cv_ld_force_load" = "yes"; then
13210 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13212 whole_archive_flag_spec_CXX=''
13214 link_all_deplibs_CXX=yes
13215 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13216 case $cc_basename in
13217 ifort*) _lt_dar_can_shared=yes ;;
13218 *) _lt_dar_can_shared=$GCC ;;
13220 if test "$_lt_dar_can_shared" = "yes"; then
13221 output_verbose_link_cmd=func_echo_all
13222 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}"
13223 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13224 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}"
13225 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}"
13226 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13227 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}"
13228 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}"
13238 case $cc_basename in
13240 # FIXME: insert proper C++ library support
13244 # Green Hills C++ Compiler
13245 # FIXME: insert proper C++ library support
13249 # FIXME: insert proper C++ library support
13256 # C++ shared libraries reported to be fairly broken before
13262 archive_cmds_need_lc_CXX=no
13265 freebsd* | dragonfly*)
13266 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13275 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 link_all_deplibs_CXX=yes
13280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_CXX=:
13282 export_dynamic_flag_spec_CXX='${wl}-E'
13283 hardcode_direct_CXX=yes
13284 hardcode_minus_L_CXX=yes # Not in the search PATH,
13285 # but as the default
13286 # location of the library.
13288 case $cc_basename in
13290 # FIXME: insert proper C++ library support
13294 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'
13295 # Commands to make compiler produce verbose output that lists
13296 # what "hidden" libraries, object files and flags are used when
13297 # linking a shared library.
13299 # There doesn't appear to be a way to prevent this compiler from
13300 # explicitly linking system object files so we need to strip them
13301 # from the output so that they don't get included in the library
13303 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13306 if test "$GXX" = yes; then
13307 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13309 # FIXME: insert proper C++ library support
13317 if test $with_gnu_ld = no; then
13318 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13319 hardcode_libdir_separator_CXX=:
13325 export_dynamic_flag_spec_CXX='${wl}-E'
13331 hardcode_direct_CXX=no
13332 hardcode_shlibpath_var_CXX=no
13335 hardcode_direct_CXX=yes
13336 hardcode_direct_absolute_CXX=yes
13337 hardcode_minus_L_CXX=yes # Not in the search PATH,
13338 # but as the default
13339 # location of the library.
13343 case $cc_basename in
13345 # FIXME: insert proper C++ library support
13351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13360 # Commands to make compiler produce verbose output that lists
13361 # what "hidden" libraries, object files and flags are used when
13362 # linking a shared library.
13364 # There doesn't appear to be a way to prevent this compiler from
13365 # explicitly linking system object files so we need to strip them
13366 # from the output so that they don't get included in the library
13368 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; func_echo_all "$list"'
13371 if test "$GXX" = yes; then
13372 if test $with_gnu_ld = no; then
13375 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13381 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386 # FIXME: insert proper C++ library support
13394 hardcode_direct_CXX=no
13395 hardcode_shlibpath_var_CXX=no
13396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13397 export_dynamic_flag_spec_CXX='${wl}-E'
13398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13399 # Instead, shared libraries are loaded at an image base (0x10000000 by
13400 # default) and relocated if they conflict, which is a slow very memory
13401 # consuming and fragmenting process. To avoid this, we pick a random,
13402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13403 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13404 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'
13405 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'
13408 case $cc_basename in
13411 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13413 # Archives containing C++ object files must be created using
13414 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13415 # necessary to make sure instantiated templates are included
13417 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13420 if test "$GXX" = yes; then
13421 if test "$with_gnu_ld" = no; then
13422 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13424 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13427 link_all_deplibs_CXX=yes
13430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13431 hardcode_libdir_separator_CXX=:
13432 inherit_rpath_CXX=yes
13435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13436 case $cc_basename in
13438 # Kuck and Associates, Inc. (KAI) C++ Compiler
13440 # KCC will only create a shared library if the output file
13441 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13442 # to its proper name (with version) after linking.
13443 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'
13444 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'
13445 # Commands to make compiler produce verbose output that lists
13446 # what "hidden" libraries, object files and flags are used when
13447 # linking a shared library.
13449 # There doesn't appear to be a way to prevent this compiler from
13450 # explicitly linking system object files so we need to strip them
13451 # from the output so that they don't get included in the library
13453 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; func_echo_all "$list"'
13455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458 # Archives containing C++ object files must be created using
13459 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13460 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13465 # version 8.0 and above of icpc choke on multiply defined symbols
13466 # if we add $predep_objects and $postdep_objects, however 7.1 and
13467 # earlier do not add the objects themselves.
13468 case `$CC -V 2>&1` in
13470 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471 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'
13473 *) # Version 8.0 or newer
13476 ia64*) tmp_idyn=' -i_dynamic';;
13478 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13479 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'
13482 archive_cmds_need_lc_CXX=no
13483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13485 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13488 # Portland Group C++ compiler
13490 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13491 prelink_cmds_CXX='tpldir=Template.dir~
13493 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13494 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13495 old_archive_cmds_CXX='tpldir=Template.dir~
13497 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13498 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13500 archive_cmds_CXX='tpldir=Template.dir~
13502 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13503 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13504 archive_expsym_cmds_CXX='tpldir=Template.dir~
13506 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13507 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13509 *) # Version 6 and above use weak symbols
13510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13511 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'
13515 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13517 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522 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'
13524 runpath_var=LD_RUN_PATH
13525 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13526 hardcode_libdir_separator_CXX=:
13528 # Commands to make compiler produce verbose output that lists
13529 # what "hidden" libraries, object files and flags are used when
13530 # linking a shared library.
13532 # There doesn't appear to be a way to prevent this compiler from
13533 # explicitly linking system object files so we need to strip them
13534 # from the output so that they don't get included in the library
13536 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13538 xl* | mpixl* | bgxl*)
13539 # IBM XL 8.0 on PPC, with GNU ld
13540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13541 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13542 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13543 if test "x$supports_anon_versioning" = xyes; then
13544 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13546 echo "local: *; };" >> $output_objdir/$libname.ver~
13547 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13551 case `$CC -V 2>&1 | sed 5q` in
13554 no_undefined_flag_CXX=' -zdefs'
13555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13556 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'
13557 hardcode_libdir_flag_spec_CXX='-R$libdir'
13558 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13559 compiler_needs_object_CXX=yes
13561 # Not sure whether something based on
13562 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13564 output_verbose_link_cmd='func_echo_all'
13566 # Archives containing C++ object files must be created using
13567 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13568 # necessary to make sure instantiated templates are included
13570 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13578 # FIXME: insert proper C++ library support
13583 # FIXME: insert proper C++ library support
13588 case $cc_basename in
13590 # FIXME: insert proper C++ library support
13594 # FIXME: insert proper C++ library support
13601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13602 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13604 hardcode_libdir_flag_spec_CXX='-R$libdir'
13605 hardcode_direct_CXX=yes
13606 hardcode_shlibpath_var_CXX=no
13608 # Workaround some broken pre-1.5 toolchains
13609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13617 # C++ shared libraries are fairly broken
13622 if test -f /usr/libexec/ld.so; then
13623 hardcode_direct_CXX=yes
13624 hardcode_shlibpath_var_CXX=no
13625 hardcode_direct_absolute_CXX=yes
13626 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13629 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13630 export_dynamic_flag_spec_CXX='${wl}-E'
13631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13633 output_verbose_link_cmd=func_echo_all
13639 osf3* | osf4* | osf5*)
13640 case $cc_basename in
13642 # Kuck and Associates, Inc. (KAI) C++ Compiler
13644 # KCC will only create a shared library if the output file
13645 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13646 # to its proper name (with version) after linking.
13647 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'
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13650 hardcode_libdir_separator_CXX=:
13652 # Archives containing C++ object files must be created using
13653 # the KAI C++ compiler.
13655 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13656 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13660 # Rational C++ 2.4.1
13661 # FIXME: insert proper C++ library support
13667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13668 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13672 allow_undefined_flag_CXX=' -expect_unresolved \*'
13673 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13674 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13675 echo "-hidden">> $lib.exp~
13676 $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~
13678 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13682 hardcode_libdir_separator_CXX=:
13684 # Commands to make compiler produce verbose output that lists
13685 # what "hidden" libraries, object files and flags are used when
13686 # linking a shared library.
13688 # There doesn't appear to be a way to prevent this compiler from
13689 # explicitly linking system object files so we need to strip them
13690 # from the output so that they don't get included in the library
13692 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13699 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13702 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13707 hardcode_libdir_separator_CXX=:
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13715 # FIXME: insert proper C++ library support
13723 # FIXME: insert proper C++ library support
13728 case $cc_basename in
13731 # FIXME: insert proper C++ library support
13736 # FIXME: insert proper C++ library support
13740 # FIXME: insert proper C++ library support
13747 case $cc_basename in
13749 # Sun C++ 4.2, 5.x and Centerline C++
13750 archive_cmds_need_lc_CXX=yes
13751 no_undefined_flag_CXX=' -zdefs'
13752 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13753 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13754 $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'
13756 hardcode_libdir_flag_spec_CXX='-R$libdir'
13757 hardcode_shlibpath_var_CXX=no
13759 solaris2.[0-5] | solaris2.[0-5].*) ;;
13761 # The compiler driver will combine and reorder linker options,
13762 # but understands `-z linker_flag'.
13763 # Supported since Solaris 2.6 (maybe 2.5.1?)
13764 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13767 link_all_deplibs_CXX=yes
13769 output_verbose_link_cmd='func_echo_all'
13771 # Archives containing C++ object files must be created using
13772 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13773 # necessary to make sure instantiated templates are included
13775 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13778 # Green Hills C++ Compiler
13779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13781 # The C++ compiler must be used to create the archive.
13782 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13785 # GNU C++ compiler with Solaris linker
13786 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13787 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13788 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13789 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13790 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13791 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13793 # Commands to make compiler produce verbose output that lists
13794 # what "hidden" libraries, object files and flags are used when
13795 # linking a shared library.
13796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13798 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13800 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13801 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13802 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13804 # Commands to make compiler produce verbose output that lists
13805 # what "hidden" libraries, object files and flags are used when
13806 # linking a shared library.
13807 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13810 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13812 solaris2.[0-5] | solaris2.[0-5].*) ;;
13814 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13823 no_undefined_flag_CXX='${wl}-z,text'
13824 archive_cmds_need_lc_CXX=no
13825 hardcode_shlibpath_var_CXX=no
13826 runpath_var='LD_RUN_PATH'
13828 case $cc_basename in
13830 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 sysv5* | sco3.2v5* | sco5v6*)
13841 # Note: We can NOT use -z defs as we might desire, because we do not
13842 # link with -lc, and that would cause any symbols used from libc to
13843 # always be unresolved, which means just about no library would
13844 # ever link correctly. If we're not using GNU ld we use -z text
13845 # though, which does catch some bad symbols but isn't as heavy-handed
13847 no_undefined_flag_CXX='${wl}-z,text'
13848 allow_undefined_flag_CXX='${wl}-z,nodefs'
13849 archive_cmds_need_lc_CXX=no
13850 hardcode_shlibpath_var_CXX=no
13851 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13852 hardcode_libdir_separator_CXX=':'
13853 link_all_deplibs_CXX=yes
13854 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13855 runpath_var='LD_RUN_PATH'
13857 case $cc_basename in
13859 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13862 '"$old_archive_cmds_CXX"
13863 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13864 '"$reload_cmds_CXX"
13867 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 case $cc_basename in
13876 # NonStop-UX NCC 3.20
13877 # FIXME: insert proper C++ library support
13881 # FIXME: insert proper C++ library support
13888 # FIXME: insert proper C++ library support
13893 # FIXME: insert proper C++ library support
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13899 $as_echo "$ld_shlibs_CXX" >&6; }
13900 test "$ld_shlibs_CXX" = no && can_build_shared=no
13906 ## There is no encapsulation within the following macros, do not change
13907 ## the running order or otherwise move them around unless you know exactly
13908 ## what you are doing...
13909 # Dependencies to place before and after the object being linked:
13910 predep_objects_CXX=
13911 postdep_objects_CXX=
13914 compiler_lib_search_path_CXX=
13916 cat > conftest.$ac_ext <<_LT_EOF
13920 Foo (void) { a = 0; }
13927 _lt_libdeps_save_CFLAGS=$CFLAGS
13928 case "$CC $CFLAGS " in #(
13929 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13930 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13934 (eval $ac_compile) 2>&5
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }; then
13938 # Parse the compiler output and extract the necessary
13939 # objects, libraries and library flags.
13941 # Sentinel used to keep track of whether or not we are before
13942 # the conftest object file.
13943 pre_test_object_deps_done=no
13945 for p in `eval "$output_verbose_link_cmd"`; do
13946 case ${prev}${p} in
13949 # Some compilers place space between "-{L,R}" and the path.
13950 # Remove the space.
13951 if test $p = "-L" ||
13952 test $p = "-R"; then
13957 # Expand the sysroot to ease extracting the directories later.
13958 if test -z "$prev"; then
13960 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13961 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13962 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13966 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13968 if test "$pre_test_object_deps_done" = no; then
13971 # Internal compiler library paths should come after those
13972 # provided the user. The postdeps already come after the
13973 # user supplied libs so there is no need to process them.
13974 if test -z "$compiler_lib_search_path_CXX"; then
13975 compiler_lib_search_path_CXX="${prev}${p}"
13977 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13980 # The "-l" case would never come before the object being
13981 # linked, so don't bother handling this case.
13984 if test -z "$postdeps_CXX"; then
13985 postdeps_CXX="${prev}${p}"
13987 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13993 *.lto.$objext) ;; # Ignore GCC LTO objects
13995 # This assumes that the test object file only shows up
13996 # once in the compiler output.
13997 if test "$p" = "conftest.$objext"; then
13998 pre_test_object_deps_done=yes
14002 if test "$pre_test_object_deps_done" = no; then
14003 if test -z "$predep_objects_CXX"; then
14004 predep_objects_CXX="$p"
14006 predep_objects_CXX="$predep_objects_CXX $p"
14009 if test -z "$postdep_objects_CXX"; then
14010 postdep_objects_CXX="$p"
14012 postdep_objects_CXX="$postdep_objects_CXX $p"
14017 *) ;; # Ignore the rest.
14025 echo "libtool.m4: error: problem compiling CXX test program"
14028 $RM -f confest.$objext
14029 CFLAGS=$_lt_libdeps_save_CFLAGS
14031 # PORTME: override above test on systems where it is broken
14034 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14035 # hack all around it, let's just trust "g++" to DTRT.
14036 predep_objects_CXX=
14037 postdep_objects_CXX=
14042 case `$CC -V 2>&1 | sed 5q` in
14046 # The more standards-conforming stlport4 library is
14047 # incompatible with the Cstd library. Avoid specifying
14048 # it if it's in CXXFLAGS. Ignore libCrun as
14049 # -library=stlport4 depends on it.
14050 case " $CXX $CXXFLAGS " in
14051 *" -library=stlport4 "*)
14052 solaris_use_stlport4=yes
14056 if test "$solaris_use_stlport4" != yes; then
14057 postdeps_CXX='-library=Cstd -library=Crun'
14064 case $cc_basename in
14066 # The more standards-conforming stlport4 library is
14067 # incompatible with the Cstd library. Avoid specifying
14068 # it if it's in CXXFLAGS. Ignore libCrun as
14069 # -library=stlport4 depends on it.
14070 case " $CXX $CXXFLAGS " in
14071 *" -library=stlport4 "*)
14072 solaris_use_stlport4=yes
14076 # Adding this requires a known-good setup of shared libraries for
14077 # Sun compiler versions before 5.6, else PIC objects from an old
14078 # archive will be linked into the output, leading to subtle bugs.
14079 if test "$solaris_use_stlport4" != yes; then
14080 postdeps_CXX='-library=Cstd -library=Crun'
14088 case " $postdeps_CXX " in
14089 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14091 compiler_lib_search_dirs_CXX=
14092 if test -n "${compiler_lib_search_path_CXX}"; then
14093 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14126 lt_prog_compiler_wl_CXX=
14127 lt_prog_compiler_pic_CXX=
14128 lt_prog_compiler_static_CXX=
14131 # C++ specific cases for pic, static, wl, etc.
14132 if test "$GXX" = yes; then
14133 lt_prog_compiler_wl_CXX='-Wl,'
14134 lt_prog_compiler_static_CXX='-static'
14138 # All AIX code is PIC.
14139 if test "$host_cpu" = ia64; then
14140 # AIX 5 now supports IA64 processor
14141 lt_prog_compiler_static_CXX='-Bstatic'
14148 # see comment about AmigaOS4 .so support
14149 lt_prog_compiler_pic_CXX='-fPIC'
14152 # FIXME: we need at least 68020 code to build shared libraries, but
14153 # adding the `-m68020' flag to GCC prevents building anything better,
14155 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14161 # PIC is the default for these OSes.
14163 mingw* | cygwin* | os2* | pw32* | cegcc*)
14164 # This hack is so that the source file can tell whether it is being
14165 # built for inclusion in a dll (and should export symbols for example).
14166 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14167 # (--disable-auto-import) libraries
14168 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14170 darwin* | rhapsody*)
14171 # PIC is the default on this platform
14172 # Common symbols not allowed in MH_DYLIB files
14173 lt_prog_compiler_pic_CXX='-fno-common'
14176 # DJGPP does not support shared libraries at all
14177 lt_prog_compiler_pic_CXX=
14180 # PIC is the default for Haiku.
14181 # The "-static" flag exists, but is broken.
14182 lt_prog_compiler_static_CXX=
14185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14186 # Instead, we relocate shared libraries at runtime.
14189 if test -d /usr/nec; then
14190 lt_prog_compiler_pic_CXX=-Kconform_pic
14194 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14195 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14196 # sets the default TLS model and affects inlining.
14201 lt_prog_compiler_pic_CXX='-fPIC'
14206 # QNX uses GNU C++, but need to define -shared option too, otherwise
14207 # it will coredump.
14208 lt_prog_compiler_pic_CXX='-fPIC -shared'
14211 lt_prog_compiler_pic_CXX='-fPIC'
14217 # All AIX code is PIC.
14218 if test "$host_cpu" = ia64; then
14219 # AIX 5 now supports IA64 processor
14220 lt_prog_compiler_static_CXX='-Bstatic'
14222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14226 case $cc_basename in
14228 # Green Hills C++ Compiler
14229 # _LT_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"
14233 mingw* | cygwin* | os2* | pw32* | cegcc*)
14234 # This hack is so that the source file can tell whether it is being
14235 # built for inclusion in a dll (and should export symbols for example).
14236 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14239 case $cc_basename in
14241 lt_prog_compiler_pic_CXX='-KPIC'
14244 # Green Hills C++ Compiler
14245 lt_prog_compiler_pic_CXX='-pic'
14251 freebsd* | dragonfly*)
14252 # FreeBSD uses GNU C++
14254 hpux9* | hpux10* | hpux11*)
14255 case $cc_basename in
14257 lt_prog_compiler_wl_CXX='-Wl,'
14258 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14259 if test "$host_cpu" != ia64; then
14260 lt_prog_compiler_pic_CXX='+Z'
14264 lt_prog_compiler_wl_CXX='-Wl,'
14265 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14271 lt_prog_compiler_pic_CXX='+Z'
14280 # This is c89, which is MS Visual C++ (no shared libs)
14281 # Anyone wants to do a port?
14283 irix5* | irix6* | nonstopux*)
14284 case $cc_basename in
14286 lt_prog_compiler_wl_CXX='-Wl,'
14287 lt_prog_compiler_static_CXX='-non_shared'
14288 # CC pic flag -KPIC is the default.
14294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14295 case $cc_basename in
14298 lt_prog_compiler_wl_CXX='--backend -Wl,'
14299 lt_prog_compiler_pic_CXX='-fPIC'
14302 # old Intel C++ for x86_64 which still supported -KPIC.
14303 lt_prog_compiler_wl_CXX='-Wl,'
14304 lt_prog_compiler_pic_CXX='-KPIC'
14305 lt_prog_compiler_static_CXX='-static'
14308 # Intel C++, used to be incompatible with GCC.
14309 # ICC 10 doesn't accept -KPIC any more.
14310 lt_prog_compiler_wl_CXX='-Wl,'
14311 lt_prog_compiler_pic_CXX='-fPIC'
14312 lt_prog_compiler_static_CXX='-static'
14315 # Portland Group C++ compiler
14316 lt_prog_compiler_wl_CXX='-Wl,'
14317 lt_prog_compiler_pic_CXX='-fpic'
14318 lt_prog_compiler_static_CXX='-Bstatic'
14322 # Make sure the PIC flag is empty. It appears that all Alpha
14323 # Linux and Compaq Tru64 Unix objects are PIC.
14324 lt_prog_compiler_pic_CXX=
14325 lt_prog_compiler_static_CXX='-non_shared'
14327 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14328 # IBM XL 8.0, 9.0 on PPC and BlueGene
14329 lt_prog_compiler_wl_CXX='-Wl,'
14330 lt_prog_compiler_pic_CXX='-qpic'
14331 lt_prog_compiler_static_CXX='-qstaticlink'
14334 case `$CC -V 2>&1 | sed 5q` in
14337 lt_prog_compiler_pic_CXX='-KPIC'
14338 lt_prog_compiler_static_CXX='-Bstatic'
14339 lt_prog_compiler_wl_CXX='-Qoption ld '
14350 case $cc_basename in
14352 lt_prog_compiler_pic_CXX='-W c,exportall'
14361 # QNX uses GNU C++, but need to define -shared option too, otherwise
14362 # it will coredump.
14363 lt_prog_compiler_pic_CXX='-fPIC -shared'
14365 osf3* | osf4* | osf5*)
14366 case $cc_basename in
14368 lt_prog_compiler_wl_CXX='--backend -Wl,'
14371 # Rational C++ 2.4.1
14372 lt_prog_compiler_pic_CXX='-pic'
14375 # Digital/Compaq C++
14376 lt_prog_compiler_wl_CXX='-Wl,'
14377 # Make sure the PIC flag is empty. It appears that all Alpha
14378 # Linux and Compaq Tru64 Unix objects are PIC.
14379 lt_prog_compiler_pic_CXX=
14380 lt_prog_compiler_static_CXX='-non_shared'
14389 case $cc_basename in
14391 # Sun C++ 4.2, 5.x and Centerline C++
14392 lt_prog_compiler_pic_CXX='-KPIC'
14393 lt_prog_compiler_static_CXX='-Bstatic'
14394 lt_prog_compiler_wl_CXX='-Qoption ld '
14397 # Green Hills C++ Compiler
14398 lt_prog_compiler_pic_CXX='-PIC'
14405 case $cc_basename in
14408 lt_prog_compiler_pic_CXX='-pic'
14409 lt_prog_compiler_static_CXX='-Bstatic'
14413 lt_prog_compiler_pic_CXX='-pic'
14419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14420 case $cc_basename in
14422 lt_prog_compiler_wl_CXX='-Wl,'
14423 lt_prog_compiler_pic_CXX='-KPIC'
14424 lt_prog_compiler_static_CXX='-Bstatic'
14429 case $cc_basename in
14431 # NonStop-UX NCC 3.20
14432 lt_prog_compiler_pic_CXX='-KPIC'
14441 lt_prog_compiler_can_build_shared_CXX=no
14447 # For platforms which do not support PIC, -DPIC is meaningless:
14449 lt_prog_compiler_pic_CXX=
14452 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14457 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14458 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14459 $as_echo_n "(cached) " >&6
14461 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14464 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14465 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14468 # Check to make sure the PIC flag actually works.
14470 if test -n "$lt_prog_compiler_pic_CXX"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14472 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14473 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14474 $as_echo_n "(cached) " >&6
14476 lt_cv_prog_compiler_pic_works_CXX=no
14477 ac_outfile=conftest.$ac_objext
14478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14479 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14480 # Insert the option either (1) after the last *FLAGS variable, or
14481 # (2) before a word containing "conftest.", or (3) at the end.
14482 # Note that $ac_compile itself does not contain backslashes and begins
14483 # with a dollar sign (not a hyphen), so the echo should work correctly.
14484 # The option is referenced via a variable to avoid confusing sed.
14485 lt_compile=`echo "$ac_compile" | $SED \
14486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14488 -e 's:$: $lt_compiler_flag:'`
14489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14490 (eval "$lt_compile" 2>conftest.err)
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 if (exit $ac_status) && test -s "$ac_outfile"; then
14495 # The compiler can only warn and ignore the option if not recognized
14496 # So say no if there are warnings other than the usual output.
14497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14500 lt_cv_prog_compiler_pic_works_CXX=yes
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14507 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14509 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14510 case $lt_prog_compiler_pic_CXX in
14512 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14515 lt_prog_compiler_pic_CXX=
14516 lt_prog_compiler_can_build_shared_CXX=no
14526 # Check to make sure the static flag actually works.
14528 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14531 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14532 $as_echo_n "(cached) " >&6
14534 lt_cv_prog_compiler_static_works_CXX=no
14535 save_LDFLAGS="$LDFLAGS"
14536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14539 # The linker can only warn and ignore the option if not recognized
14540 # So say no if there are warnings
14541 if test -s conftest.err; then
14542 # Append any errors to the config.log.
14543 cat conftest.err 1>&5
14544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14546 if diff conftest.exp conftest.er2 >/dev/null; then
14547 lt_cv_prog_compiler_static_works_CXX=yes
14550 lt_cv_prog_compiler_static_works_CXX=yes
14554 LDFLAGS="$save_LDFLAGS"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14558 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14560 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14563 lt_prog_compiler_static_CXX=
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14571 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14572 $as_echo_n "(cached) " >&6
14574 lt_cv_prog_compiler_c_o_CXX=no
14575 $RM -r conftest 2>/dev/null
14579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14581 lt_compiler_flag="-o out/conftest2.$ac_objext"
14582 # Insert the option either (1) after the last *FLAGS variable, or
14583 # (2) before a word containing "conftest.", or (3) at the end.
14584 # Note that $ac_compile itself does not contain backslashes and begins
14585 # with a dollar sign (not a hyphen), so the echo should work correctly.
14586 lt_compile=`echo "$ac_compile" | $SED \
14587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14589 -e 's:$: $lt_compiler_flag:'`
14590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14591 (eval "$lt_compile" 2>out/conftest.err)
14593 cat out/conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14597 # The compiler can only warn and ignore the option if not recognized
14598 # So say no if there are warnings
14599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14602 lt_cv_prog_compiler_c_o_CXX=yes
14607 # SGI C++ compiler will create directory out/ii_files/ for
14608 # template instantiation
14609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14610 $RM out/* && rmdir out
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14617 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14623 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14624 $as_echo_n "(cached) " >&6
14626 lt_cv_prog_compiler_c_o_CXX=no
14627 $RM -r conftest 2>/dev/null
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633 lt_compiler_flag="-o out/conftest2.$ac_objext"
14634 # Insert the option either (1) after the last *FLAGS variable, or
14635 # (2) before a word containing "conftest.", or (3) at the end.
14636 # Note that $ac_compile itself does not contain backslashes and begins
14637 # with a dollar sign (not a hyphen), so the echo should work correctly.
14638 lt_compile=`echo "$ac_compile" | $SED \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
14642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14643 (eval "$lt_compile" 2>out/conftest.err)
14645 cat out/conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14649 # The compiler can only warn and ignore the option if not recognized
14650 # So say no if there are warnings
14651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14654 lt_cv_prog_compiler_c_o_CXX=yes
14659 # SGI C++ compiler will create directory out/ii_files/ for
14660 # template instantiation
14661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14662 $RM out/* && rmdir out
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14669 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14674 hard_links="nottested"
14675 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14676 # do not overwrite the value of need_locks provided by the user
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14678 $as_echo_n "checking if we can lock with hard links... " >&6; }
14681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683 ln conftest.a conftest.b 2>&5 || hard_links=no
14684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14686 $as_echo "$hard_links" >&6; }
14687 if test "$hard_links" = no; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14689 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14701 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14702 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14705 # If we're using GNU nm, then we don't want the "-C" option.
14706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14707 # Also, AIX nm treats weak defined symbols like other global defined
14708 # symbols, whereas GNU nm marks them as "W".
14709 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14710 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14712 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'
14716 export_symbols_cmds_CXX="$ltdll_cmds"
14718 cygwin* | mingw* | cegcc*)
14719 case $cc_basename in
14722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14723 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14728 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14733 $as_echo "$ld_shlibs_CXX" >&6; }
14734 test "$ld_shlibs_CXX" = no && can_build_shared=no
14736 with_gnu_ld_CXX=$with_gnu_ld
14744 # Do we need to explicitly link libc?
14746 case "x$archive_cmds_need_lc_CXX" in
14748 # Assume -lc should be added
14749 archive_cmds_need_lc_CXX=yes
14751 if test "$enable_shared" = yes && test "$GCC" = yes; then
14752 case $archive_cmds_CXX in
14754 # FIXME: we may have to deal with multi-command sequences.
14757 # Test whether the compiler implicitly links with -lc since on some
14758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14759 # to ld, don't add -lc before -lgcc.
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14761 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14762 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14763 $as_echo_n "(cached) " >&6
14766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14769 (eval $ac_compile) 2>&5
14771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772 test $ac_status = 0; } 2>conftest.err; then
14775 libobjs=conftest.$ac_objext
14777 wl=$lt_prog_compiler_wl_CXX
14778 pic_flag=$lt_prog_compiler_pic_CXX
14784 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14785 allow_undefined_flag_CXX=
14786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14787 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14790 test $ac_status = 0; }
14792 lt_cv_archive_cmds_need_lc_CXX=no
14794 lt_cv_archive_cmds_need_lc_CXX=yes
14796 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14798 cat conftest.err 1>&5
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14804 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14805 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14876 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14878 library_names_spec=
14879 libname_spec='lib$name'
14883 postuninstall_cmds=
14887 shlibpath_overrides_runpath=unknown
14889 dynamic_linker="$host_os ld.so"
14890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14891 need_lib_prefix=unknown
14892 hardcode_into_libs=no
14894 # when you set need_version to no, make sure it does not cause -set_version
14895 # flags to be left without arguments
14896 need_version=unknown
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14902 shlibpath_var=LIBPATH
14904 # AIX 3 has no versioning support, so we append a major version to the name.
14905 soname_spec='${libname}${release}${shared_ext}$major'
14912 hardcode_into_libs=yes
14913 if test "$host_cpu" = ia64; then
14914 # AIX 5 supports IA64
14915 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14916 shlibpath_var=LD_LIBRARY_PATH
14918 # With GCC up to 2.95.x, collect2 would create an import file
14919 # for dependence libraries. The import file would start with
14920 # the line `#! .'. This would cause the generated library to
14921 # depend on `.', always an invalid library. This was fixed in
14922 # development snapshots of GCC prior to 3.0.
14924 aix4 | aix4.[01] | aix4.[01].*)
14925 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14927 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14930 can_build_shared=no
14934 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14935 # soname into executable. Probably we can add versioning support to
14936 # collect2, so additional links can be useful in future.
14937 if test "$aix_use_runtimelinking" = yes; then
14938 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14939 # instead of lib<name>.a to let people know that these are not
14940 # typical AIX shared libraries.
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 # We preserve .a as extension for shared libraries through AIX4.2
14944 # and later when we are not doing run time linking.
14945 library_names_spec='${libname}${release}.a $libname.a'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14948 shlibpath_var=LIBPATH
14955 # Since July 2007 AmigaOS4 officially supports .so libraries.
14956 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960 library_names_spec='$libname.ixlibrary $libname.a'
14961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14962 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14968 library_names_spec='${libname}${shared_ext}'
14969 dynamic_linker="$host_os ld.so"
14970 shlibpath_var=LIBRARY_PATH
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14982 # the default ld.so.conf also contains /usr/contrib/lib and
14983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14984 # libtool to hard-code these into programs
14987 cygwin* | mingw* | pw32* | cegcc*)
14988 version_type=windows
14993 case $GCC,$cc_basename in
14996 library_names_spec='$libname.dll.a'
14997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14998 postinstall_cmds='base_file=`basename \${file}`~
14999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15000 dldir=$destdir/`dirname \$dlpath`~
15001 test -d \$dldir || mkdir -p \$dldir~
15002 $install_prog $dir/$dlname \$dldir/$dlname~
15003 chmod a+x \$dldir/$dlname~
15004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15008 dlpath=$dir/\$dldll~
15010 shlibpath_overrides_runpath=yes
15014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15019 # MinGW DLLs use traditional 'lib' prefix
15020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15023 # pw32 DLLs use 'pw' prefix rather than 'lib'
15024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15027 dynamic_linker='Win32 ld.exe'
15032 libname_spec='$name'
15033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15034 library_names_spec='${libname}.dll.lib'
15038 sys_lib_search_path_spec=
15041 for lt_path in $LIB
15044 # Let DOS variable expansion print the short 8.3 style file name.
15045 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15046 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15049 # Convert to MSYS style.
15050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15053 # Convert to unix form, then to dos form, then back to unix form
15054 # but this time dos style (no spaces!) so that the unix form looks
15055 # like /cygdrive/c/PROGRA~1:/cygdr...
15056 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15057 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15058 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15061 sys_lib_search_path_spec="$LIB"
15062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15063 # It is most probably a Windows format PATH.
15064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15068 # FIXME: find the short name or the path components, as spaces are
15069 # common. (e.g. "Program Files" -> "PROGRA~1")
15073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15074 postinstall_cmds='base_file=`basename \${file}`~
15075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15076 dldir=$destdir/`dirname \$dlpath`~
15077 test -d \$dldir || mkdir -p \$dldir~
15078 $install_prog $dir/$dlname \$dldir/$dlname'
15079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15080 dlpath=$dir/\$dldll~
15082 shlibpath_overrides_runpath=yes
15083 dynamic_linker='Win32 link.exe'
15087 # Assume MSVC wrapper
15088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15089 dynamic_linker='Win32 ld.exe'
15092 # FIXME: first we should search . and the directory the executable is in
15096 darwin* | rhapsody*)
15097 dynamic_linker="$host_os dyld"
15098 version_type=darwin
15101 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15102 soname_spec='${libname}${release}${major}$shared_ext'
15103 shlibpath_overrides_runpath=yes
15104 shlibpath_var=DYLD_LIBRARY_PATH
15105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 shlibpath_var=LD_LIBRARY_PATH
15123 freebsd* | dragonfly*)
15124 # DragonFly does not have aout. When/if they implement a new
15125 # versioning mechanism, adjust this.
15126 if test -x /usr/bin/objformat; then
15127 objformat=`/usr/bin/objformat`
15130 freebsd[123]*) objformat=aout ;;
15131 *) objformat=elf ;;
15134 # Handle Gentoo/FreeBSD as it was Linux
15135 case $host_vendor in
15137 version_type=linux ;;
15139 version_type=freebsd-$objformat ;;
15142 case $version_type in
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15162 shlibpath_overrides_runpath=yes
15164 freebsd3.[01]* | freebsdelf3.[01]*)
15165 shlibpath_overrides_runpath=yes
15166 hardcode_into_libs=yes
15168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15170 shlibpath_overrides_runpath=no
15171 hardcode_into_libs=yes
15173 *) # from 4.6 on, and DragonFly
15174 shlibpath_overrides_runpath=yes
15175 hardcode_into_libs=yes
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 hardcode_into_libs=yes
15194 dynamic_linker="$host_os runtime_loader"
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 shlibpath_var=LIBRARY_PATH
15198 shlibpath_overrides_runpath=yes
15199 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15200 hardcode_into_libs=yes
15203 hpux9* | hpux10* | hpux11*)
15204 # Give a soname corresponding to the major version so that dld.sl refuses to
15205 # link against other versions.
15212 hardcode_into_libs=yes
15213 dynamic_linker="$host_os dld.so"
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 if test "X$HPUX_IA64_MODE" = X32; then
15219 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15227 hardcode_into_libs=yes
15228 dynamic_linker="$host_os dld.sl"
15229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15238 dynamic_linker="$host_os dld.sl"
15239 shlibpath_var=SHLIB_PATH
15240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15245 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15246 postinstall_cmds='chmod 555 $lib'
15247 # or fails outright, so override atomically:
15248 install_override_mode=555
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 shlibpath_overrides_runpath=no
15260 hardcode_into_libs=yes
15263 irix5* | irix6* | nonstopux*)
15265 nonstopux*) version_type=nonstopux ;;
15267 if test "$lt_cv_prog_gnu_ld" = yes; then
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15278 irix5* | nonstopux*)
15279 libsuff= shlibsuff=
15282 case $LD in # libtool.m4 will add one of these switches to LD
15283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15284 libsuff= shlibsuff= libmagic=32-bit;;
15285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15286 libsuff=32 shlibsuff=N32 libmagic=N32;;
15287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15288 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15289 *) libsuff= shlibsuff= libmagic=never-match;;
15293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15294 shlibpath_overrides_runpath=no
15295 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15296 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15297 hardcode_into_libs=yes
15300 # No shared lib support for Linux oldld, aout, or coff.
15301 linux*oldld* | linux*aout* | linux*coff*)
15305 # This must be Linux ELF.
15306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=no
15316 # Some binutils ld are patched to set DT_RUNPATH
15317 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15318 $as_echo_n "(cached) " >&6
15320 lt_cv_shlibpath_overrides_runpath=no
15321 save_LDFLAGS=$LDFLAGS
15322 save_libdir=$libdir
15323 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15324 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15336 if ac_fn_cxx_try_link "$LINENO"; then :
15337 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15338 lt_cv_shlibpath_overrides_runpath=yes
15341 rm -f core conftest.err conftest.$ac_objext \
15342 conftest$ac_exeext conftest.$ac_ext
15343 LDFLAGS=$save_LDFLAGS
15344 libdir=$save_libdir
15348 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15350 # This implies no fast_install, which is unacceptable.
15351 # Some rework will be needed to allow for fast_install
15352 # before this can be enabled.
15353 hardcode_into_libs=yes
15355 # Append ld.so.conf contents to the search path
15356 if test -f /etc/ld.so.conf; then
15357 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;s/"//g;/^$/d' | tr '\n' ' '`
15358 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15361 # We used to test for /lib/ld.so.1 and disable shared libraries on
15362 # powerpc, because MkLinux only supported shared libraries with the
15363 # GNU dynamic linker. Since this was broken with cross compilers,
15364 # most powerpc-linux boxes support dynamic linking these days and
15365 # people can always --disable-shared, the test was removed, and we
15366 # assume the GNU/Linux dynamic linker is in use.
15367 dynamic_linker='GNU/Linux ld.so'
15374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15377 dynamic_linker='NetBSD (a.out) ld.so'
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 dynamic_linker='NetBSD ld.elf_so'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 shlibpath_overrides_runpath=yes
15385 hardcode_into_libs=yes
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 shlibpath_overrides_runpath=yes
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=no
15403 hardcode_into_libs=yes
15404 dynamic_linker='ldqnx.so'
15409 sys_lib_dlsearch_path_spec="/usr/lib"
15411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15413 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15414 *) need_version=no ;;
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15421 openbsd2.[89] | openbsd2.[89].*)
15422 shlibpath_overrides_runpath=no
15425 shlibpath_overrides_runpath=yes
15429 shlibpath_overrides_runpath=yes
15434 libname_spec='$name'
15437 library_names_spec='$libname${shared_ext} $libname.a'
15438 dynamic_linker='OS/2 ld.exe'
15439 shlibpath_var=LIBPATH
15442 osf3* | osf4* | osf5*)
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=yes
15465 hardcode_into_libs=yes
15466 # ldd complains unless libraries are executable
15467 postinstall_cmds='chmod +x $lib'
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 if test "$with_gnu_ld" = yes; then
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 case $host_vendor in
15489 shlibpath_overrides_runpath=no
15491 runpath_var=LD_RUN_PATH
15499 shlibpath_overrides_runpath=no
15500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15506 if test -d /usr/nec ;then
15508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15509 soname_spec='$libname${shared_ext}.$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15515 version_type=freebsd-elf
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15522 hardcode_into_libs=yes
15523 if test "$with_gnu_ld" = yes; then
15524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15533 sys_lib_dlsearch_path_spec='/usr/lib'
15537 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 shlibpath_overrides_runpath=no
15544 hardcode_into_libs=yes
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 shlibpath_var=LD_LIBRARY_PATH
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15559 $as_echo "$dynamic_linker" >&6; }
15560 test "$dynamic_linker" = no && can_build_shared=no
15562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15563 if test "$GCC" = yes; then
15564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15567 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15568 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15570 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15571 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15612 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15613 hardcode_action_CXX=
15614 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15615 test -n "$runpath_var_CXX" ||
15616 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15618 # We can hardcode non-existent directories.
15619 if test "$hardcode_direct_CXX" != no &&
15620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15621 # have to relink, otherwise we might link with an installed library
15622 # when we should be linking with a yet-to-be-installed one
15623 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15624 test "$hardcode_minus_L_CXX" != no; then
15625 # Linking always hardcodes the temporary library directory.
15626 hardcode_action_CXX=relink
15628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15629 hardcode_action_CXX=immediate
15632 # We cannot hardcode anything, or else we can only hardcode existing
15634 hardcode_action_CXX=unsupported
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15637 $as_echo "$hardcode_action_CXX" >&6; }
15639 if test "$hardcode_action_CXX" = relink ||
15640 test "$inherit_rpath_CXX" = yes; then
15641 # Fast installation is not supported
15642 enable_fast_install=no
15643 elif test "$shlibpath_overrides_runpath" = yes ||
15644 test "$enable_shared" = no; then
15645 # Fast installation is not necessary
15646 enable_fast_install=needless
15655 fi # test -n "$compiler"
15658 CFLAGS=$lt_save_CFLAGS
15662 with_gnu_ld=$lt_save_with_gnu_ld
15663 lt_cv_path_LDCXX=$lt_cv_path_LD
15664 lt_cv_path_LD=$lt_save_path_LD
15665 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15666 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15667 fi # test "$_lt_caught_CXX_error" != yes
15670 ac_cpp='$CPP $CPPFLAGS'
15671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15687 ac_config_commands="$ac_config_commands libtool"
15692 # Only expand once:
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15696 $as_echo_n "checking whether ln -s works... " >&6; }
15698 if test "$LN_S" = "ln -s"; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15700 $as_echo "yes" >&6; }
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15703 $as_echo "no, using $LN_S" >&6; }
15710 PCRE_DATE="2012-02-04"
15712 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
15715 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
15716 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
15726 # Set a more sensible default value for $(htmldir).
15727 if test "x$htmldir" = 'x${docdir}'
15729 htmldir='${docdir}/html'
15732 # Handle --disable-pcre8 (enabled by default)
15733 # Check whether --enable-pcre8 was given.
15734 if test "${enable_pcre8+set}" = set; then :
15735 enableval=$enable_pcre8;
15742 # Handle --enable-pcre16 (disabled by default)
15743 # Check whether --enable-pcre16 was given.
15744 if test "${enable_pcre16+set}" = set; then :
15745 enableval=$enable_pcre16;
15747 enable_pcre16=unset
15752 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
15754 # Check whether --enable-cpp was given.
15755 if test "${enable_cpp+set}" = set; then :
15756 enableval=$enable_cpp;
15763 # Handle --enable-jit (disabled by default)
15764 # Check whether --enable-jit was given.
15765 if test "${enable_jit+set}" = set; then :
15766 enableval=$enable_jit;
15772 # Handle --disable-pcregrep-jit (enabled by default)
15773 # Check whether --enable-pcregrep-jit was given.
15774 if test "${enable_pcregrep_jit+set}" = set; then :
15775 enableval=$enable_pcregrep_jit;
15777 enable_pcregrep_jit=yes
15781 # Handle --enable-rebuild-chartables
15782 # Check whether --enable-rebuild-chartables was given.
15783 if test "${enable_rebuild_chartables+set}" = set; then :
15784 enableval=$enable_rebuild_chartables;
15786 enable_rebuild_chartables=no
15790 # Handle --enable-utf8 (disabled by default)
15791 # Check whether --enable-utf8 was given.
15792 if test "${enable_utf8+set}" = set; then :
15793 enableval=$enable_utf8;
15799 # Handle --enable-utf (disabled by default)
15800 # Check whether --enable-utf was given.
15801 if test "${enable_utf+set}" = set; then :
15802 enableval=$enable_utf;
15808 # Handle --enable-unicode-properties
15809 # Check whether --enable-unicode-properties was given.
15810 if test "${enable_unicode_properties+set}" = set; then :
15811 enableval=$enable_unicode_properties;
15813 enable_unicode_properties=no
15817 # Handle --enable-newline=NL
15819 # Separate newline options
15821 # Check whether --enable-newline-is-cr was given.
15822 if test "${enable_newline_is_cr+set}" = set; then :
15823 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
15826 # Check whether --enable-newline-is-lf was given.
15827 if test "${enable_newline_is_lf+set}" = set; then :
15828 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
15831 # Check whether --enable-newline-is-crlf was given.
15832 if test "${enable_newline_is_crlf+set}" = set; then :
15833 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
15836 # Check whether --enable-newline-is-anycrlf was given.
15837 if test "${enable_newline_is_anycrlf+set}" = set; then :
15838 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
15841 # Check whether --enable-newline-is-any was given.
15842 if test "${enable_newline_is_any+set}" = set; then :
15843 enableval=$enable_newline_is_any; ac_pcre_newline=any
15846 enable_newline="$ac_pcre_newline"
15848 # Handle --enable-bsr-anycrlf
15849 # Check whether --enable-bsr-anycrlf was given.
15850 if test "${enable_bsr_anycrlf+set}" = set; then :
15851 enableval=$enable_bsr_anycrlf;
15853 enable_bsr_anycrlf=no
15857 # Handle --enable-ebcdic
15858 # Check whether --enable-ebcdic was given.
15859 if test "${enable_ebcdic+set}" = set; then :
15860 enableval=$enable_ebcdic;
15866 # Handle --disable-stack-for-recursion
15867 # Check whether --enable-stack-for-recursion was given.
15868 if test "${enable_stack_for_recursion+set}" = set; then :
15869 enableval=$enable_stack_for_recursion;
15871 enable_stack_for_recursion=yes
15875 # Handle --enable-pcregrep-libz
15876 # Check whether --enable-pcregrep-libz was given.
15877 if test "${enable_pcregrep_libz+set}" = set; then :
15878 enableval=$enable_pcregrep_libz;
15880 enable_pcregrep_libz=no
15884 # Handle --enable-pcregrep-libbz2
15885 # Check whether --enable-pcregrep-libbz2 was given.
15886 if test "${enable_pcregrep_libbz2+set}" = set; then :
15887 enableval=$enable_pcregrep_libbz2;
15889 enable_pcregrep_libbz2=no
15893 # Handle --with-pcregrep-bufsize=N
15895 # Check whether --with-pcregrep-bufsize was given.
15896 if test "${with_pcregrep_bufsize+set}" = set; then :
15897 withval=$with_pcregrep_bufsize;
15899 with_pcregrep_bufsize=20480
15903 # Handle --enable-pcretest-libreadline
15904 # Check whether --enable-pcretest-libreadline was given.
15905 if test "${enable_pcretest_libreadline+set}" = set; then :
15906 enableval=$enable_pcretest_libreadline;
15908 enable_pcretest_libreadline=no
15912 # Handle --with-posix-malloc-threshold=NBYTES
15914 # Check whether --with-posix-malloc-threshold was given.
15915 if test "${with_posix_malloc_threshold+set}" = set; then :
15916 withval=$with_posix_malloc_threshold;
15918 with_posix_malloc_threshold=10
15922 # Handle --with-link-size=N
15924 # Check whether --with-link-size was given.
15925 if test "${with_link_size+set}" = set; then :
15926 withval=$with_link_size;
15932 # Handle --with-match-limit=N
15934 # Check whether --with-match-limit was given.
15935 if test "${with_match_limit+set}" = set; then :
15936 withval=$with_match_limit;
15938 with_match_limit=10000000
15942 # Handle --with-match-limit_recursion=N
15944 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
15945 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
15946 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
15947 # different numeric value (or even the same numeric value as MATCH_LIMIT,
15948 # though no longer defined in terms of the latter).
15951 # Check whether --with-match-limit-recursion was given.
15952 if test "${with_match_limit_recursion+set}" = set; then :
15953 withval=$with_match_limit_recursion;
15955 with_match_limit_recursion=MATCH_LIMIT
15959 # Copy enable_utf8 value to enable_utf for compatibility reasons
15960 if test "x$enable_utf8" != "xunset"
15962 if test "x$enable_utf" != "xunset"
15964 as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
15966 enable_utf=$enable_utf8
15969 # Set the default value for pcre8
15970 if test "x$enable_pcre8" = "xunset"
15975 # Set the default value for pcre16
15976 if test "x$enable_pcre16" = "xunset"
15981 # Make sure enable_pcre8 or enable_pcre16 was set
15982 if test "x$enable_pcre8$enable_pcre16" = "xnono"
15984 as_fn_error $? "Either 8 or 16 bit (or both) pcre library must be enabled" "$LINENO" 5
15987 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
15988 if test "x$enable_unicode_properties" = "xyes"
15990 if test "x$enable_utf" = "xno"
15992 as_fn_error $? "support for Unicode properties requires UTF-8/16 support" "$LINENO" 5
15997 # enable_utf is disabled by default.
15998 if test "x$enable_utf" = "xunset"
16003 # enable_cpp copies the value of enable_pcre8 by default
16004 if test "x$enable_cpp" = "xunset"
16006 enable_cpp=$enable_pcre8
16009 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
16010 if test "x$enable_cpp" = "xyes"
16012 if test "x$enable_pcre8" = "xno"
16014 as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
16018 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
16019 # Also check that UTF support is not requested, because PCRE cannot handle
16020 # EBCDIC and UTF in the same build. To do so it would need to use different
16021 # character constants depending on the mode.
16023 if test "x$enable_ebcdic" = "xyes"
16025 enable_rebuild_chartables=yes
16026 if test "x$enable_utf" = "xyes"
16028 as_fn_error $? "support for EBCDIC and UTF-8/16 cannot be enabled at the same time" "$LINENO" 5
16032 # Convert the newline identifier into the appropriate integer value.
16033 case "$enable_newline" in
16034 lf) ac_pcre_newline_value=10 ;;
16035 cr) ac_pcre_newline_value=13 ;;
16036 crlf) ac_pcre_newline_value=3338 ;;
16037 anycrlf) ac_pcre_newline_value=-2 ;;
16038 any) ac_pcre_newline_value=-1 ;;
16040 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
16044 # Check argument to --with-link-size
16045 case "$with_link_size" in
16048 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
16054 # Checks for header files.
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16056 $as_echo_n "checking for ANSI C header files... " >&6; }
16057 if ${ac_cv_header_stdc+:} false; then :
16058 $as_echo_n "(cached) " >&6
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 #include <stdlib.h>
16063 #include <stdarg.h>
16064 #include <string.h>
16075 if ac_fn_c_try_compile "$LINENO"; then :
16076 ac_cv_header_stdc=yes
16078 ac_cv_header_stdc=no
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 if test $ac_cv_header_stdc = yes; then
16083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #include <string.h>
16089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16090 $EGREP "memchr" >/dev/null 2>&1; then :
16093 ac_cv_header_stdc=no
16099 if test $ac_cv_header_stdc = yes; then
16100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103 #include <stdlib.h>
16106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16107 $EGREP "free" >/dev/null 2>&1; then :
16110 ac_cv_header_stdc=no
16116 if test $ac_cv_header_stdc = yes; then
16117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16118 if test "$cross_compiling" = yes; then :
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16124 #include <stdlib.h>
16125 #if ((' ' & 0x0FF) == 0x020)
16126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16129 # define ISLOWER(c) \
16130 (('a' <= (c) && (c) <= 'i') \
16131 || ('j' <= (c) && (c) <= 'r') \
16132 || ('s' <= (c) && (c) <= 'z'))
16133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16141 for (i = 0; i < 256; i++)
16142 if (XOR (islower (i), ISLOWER (i))
16143 || toupper (i) != TOUPPER (i))
16148 if ac_fn_c_try_run "$LINENO"; then :
16151 ac_cv_header_stdc=no
16153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16154 conftest.$ac_objext conftest.beam conftest.$ac_ext
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16160 $as_echo "$ac_cv_header_stdc" >&6; }
16161 if test $ac_cv_header_stdc = yes; then
16163 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16167 for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
16169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16172 cat >>confdefs.h <<_ACEOF
16173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16181 # The files below are C++ header files.
16182 pcre_have_type_traits="0"
16183 pcre_have_bits_type_traits="0"
16184 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
16187 ac_cpp='$CXXCPP $CPPFLAGS'
16188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16193 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
16194 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
16195 # we want to make one an alias for the other. Different systems do
16196 # this in different ways. Some systems, for instance, can do it via
16197 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
16198 OLD_LDFLAGS="$LDFLAGS"
16199 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
16200 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
16202 $as_echo_n "checking for alias support in the linker... " >&6; }
16203 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
16204 # We try to run the linker with this new ld flag. If the link fails,
16205 # we give up and remove the new flag from LDFLAGS.
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16208 namespace pcrecpp {
16209 class RE { static int no_arg; };
16220 if ac_fn_cxx_try_link "$LINENO"; then :
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16222 $as_echo "yes" >&6; };
16223 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16227 $as_echo "no" >&6; }
16229 rm -f core conftest.err conftest.$ac_objext \
16230 conftest$ac_exeext conftest.$ac_ext
16232 LDFLAGS="$OLD_LDFLAGS"
16234 # We could be more clever here, given we're doing AC_SUBST with this
16235 # (eg set a var to be the name of the include file we want). But we're not
16236 # so it's easy to change back to 'regular' autoconf vars if we needed to.
16238 for ac_header in string
16240 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
16241 if test "x$ac_cv_header_string" = xyes; then :
16242 cat >>confdefs.h <<_ACEOF
16243 #define HAVE_STRING 1
16245 pcre_have_cpp_headers="1"
16247 pcre_have_cpp_headers="0"
16252 for ac_header in bits/type_traits.h
16254 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
16255 if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_BITS_TYPE_TRAITS_H 1
16259 pcre_have_bits_type_traits="1"
16261 pcre_have_bits_type_traits="0"
16266 for ac_header in type_traits.h
16268 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
16269 if test "x$ac_cv_header_type_traits_h" = xyes; then :
16270 cat >>confdefs.h <<_ACEOF
16271 #define HAVE_TYPE_TRAITS_H 1
16273 pcre_have_type_traits="1"
16275 pcre_have_type_traits="0"
16281 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
16282 # in a c++ context. This matters becuase strtoimax is C99 and may not
16283 # be supported by the C++ compiler.)
16284 # Figure out how to create a longlong from a string: strtoll and
16285 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
16286 # strtoll, for instance, but it only takes 2 args instead of 3!
16287 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
16293 for fn in strtoq strtoll _strtoi64 strtoimax; do
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
16295 $as_echo_n "checking for $fn... " >&6; }
16296 if test "$fn" = strtoimax; then
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 #include <$include>
16307 char* e; return $fn("100", &e, 10)
16312 if ac_fn_cxx_try_compile "$LINENO"; then :
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314 $as_echo "yes" >&6; }
16316 cat >>confdefs.h <<_ACEOF
16317 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 if test "$have_strto_fn" = 1; then
16330 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
16331 if test "x$ac_cv_type_long_long" = xyes; then :
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_LONG_LONG 1
16337 pcre_have_long_long="1"
16339 pcre_have_long_long="0"
16342 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
16343 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_UNSIGNED_LONG_LONG 1
16349 pcre_have_ulong_long="1"
16351 pcre_have_ulong_long="0"
16355 pcre_have_long_long="0"
16356 pcre_have_ulong_long="0"
16362 ac_cpp='$CPP $CPPFLAGS'
16363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16368 # Using AC_SUBST eliminates the need to include config.h in a public .h file
16372 # Conditional compilation
16373 if test "x$enable_pcre8" = "xyes"; then
16375 WITH_PCRE8_FALSE='#'
16377 WITH_PCRE8_TRUE='#'
16381 if test "x$enable_pcre16" = "xyes"; then
16383 WITH_PCRE16_FALSE='#'
16385 WITH_PCRE16_TRUE='#'
16389 if test "x$enable_cpp" = "xyes"; then
16390 WITH_PCRE_CPP_TRUE=
16391 WITH_PCRE_CPP_FALSE='#'
16393 WITH_PCRE_CPP_TRUE='#'
16394 WITH_PCRE_CPP_FALSE=
16397 if test "x$enable_rebuild_chartables" = "xyes"; then
16398 WITH_REBUILD_CHARTABLES_TRUE=
16399 WITH_REBUILD_CHARTABLES_FALSE='#'
16401 WITH_REBUILD_CHARTABLES_TRUE='#'
16402 WITH_REBUILD_CHARTABLES_FALSE=
16405 if test "x$enable_jit" = "xyes"; then
16413 if test "x$enable_utf" = "xyes"; then
16422 # Checks for typedefs, structures, and compiler characteristics.
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16425 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16426 if ${ac_cv_c_const+:} false; then :
16427 $as_echo_n "(cached) " >&6
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16435 /* FIXME: Include the comments suggested by Paul. */
16436 #ifndef __cplusplus
16437 /* Ultrix mips cc rejects this. */
16438 typedef int charset[2];
16440 /* SunOS 4.1.1 cc rejects this. */
16441 char const *const *pcpcc;
16443 /* NEC SVR4.0.2 mips cc rejects this. */
16444 struct point {int x, y;};
16445 static struct point const zero = {0,0};
16446 /* AIX XL C 1.02.0.0 rejects this.
16447 It does not let you subtract one const X* pointer from another in
16448 an arm of an if-expression whose if-part is not a constant
16450 const char *g = "string";
16451 pcpcc = &g + (g ? g-g : 0);
16452 /* HPUX 7.0 cc rejects these. */
16454 ppc = (char**) pcpcc;
16455 pcpcc = (char const *const *) ppc;
16456 { /* SCO 3.2v4 cc rejects this. */
16458 char const *s = 0 ? (char *) 0 : (char const *) 0;
16463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16464 int x[] = {25, 17};
16465 const int *foo = &x[0];
16468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16469 typedef const int *iptr;
16473 { /* AIX XL C 1.02.0.0 rejects this saying
16474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16475 struct s { int j; const int *ap[3]; };
16476 struct s *b; b->j = 5;
16478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16479 const int foo = 10;
16480 if (!foo) return 0;
16482 return !cs[0] && !zero.x;
16489 if ac_fn_c_try_compile "$LINENO"; then :
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16497 $as_echo "$ac_cv_c_const" >&6; }
16498 if test $ac_cv_c_const = no; then
16500 $as_echo "#define const /**/" >>confdefs.h
16504 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16505 if test "x$ac_cv_type_size_t" = xyes; then :
16509 cat >>confdefs.h <<_ACEOF
16510 #define size_t unsigned int
16516 # Checks for library functions.
16518 for ac_func in bcopy memmove strerror
16520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16522 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16523 cat >>confdefs.h <<_ACEOF
16524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16531 # Check for the availability of libz (aka zlib)
16533 for ac_header in zlib.h
16535 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16536 if test "x$ac_cv_header_zlib_h" = xyes; then :
16537 cat >>confdefs.h <<_ACEOF
16538 #define HAVE_ZLIB_H 1
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
16546 $as_echo_n "checking for gzopen in -lz... " >&6; }
16547 if ${ac_cv_lib_z_gzopen+:} false; then :
16548 $as_echo_n "(cached) " >&6
16550 ac_check_lib_save_LIBS=$LIBS
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16570 if ac_fn_c_try_link "$LINENO"; then :
16571 ac_cv_lib_z_gzopen=yes
16573 ac_cv_lib_z_gzopen=no
16575 rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
16577 LIBS=$ac_check_lib_save_LIBS
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
16580 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
16581 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
16586 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
16587 # as for libz. However, this had the following problem, diagnosed and fixed by
16590 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
16592 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
16593 # therefore missing the function definition.
16594 # - The compiler thus generates a "C" signature for the test function.
16595 # - The linker fails to find the "C" function.
16596 # - PCRE fails to configure if asked to do so against libbz2.
16600 # - Replace the AC_CHECK_LIB test with a custom test.
16602 for ac_header in bzlib.h
16604 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
16605 if test "x$ac_cv_header_bzlib_h" = xyes; then :
16606 cat >>confdefs.h <<_ACEOF
16607 #define HAVE_BZLIB_H 1
16615 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
16617 # Custom test follows
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
16620 $as_echo_n "checking for libbz2... " >&6; }
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16626 #ifdef HAVE_BZLIB_H
16632 return (int)BZ2_bzopen("conftest", "rb");
16637 if ac_fn_c_try_link "$LINENO"; then :
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16639 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16642 $as_echo "no" >&6; }
16644 rm -f core conftest.err conftest.$ac_objext \
16645 conftest$ac_exeext conftest.$ac_ext
16648 # Check for the availabiity of libreadline
16650 for ac_header in readline/readline.h
16652 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
16653 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_READLINE_READLINE_H 1
16662 for ac_header in readline/history.h
16664 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
16665 if test "x$ac_cv_header_readline_history_h" = xyes; then :
16666 cat >>confdefs.h <<_ACEOF
16667 #define HAVE_READLINE_HISTORY_H 1
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16675 $as_echo_n "checking for readline in -lreadline... " >&6; }
16676 if ${ac_cv_lib_readline_readline+:} false; then :
16677 $as_echo_n "(cached) " >&6
16679 ac_check_lib_save_LIBS=$LIBS
16680 LIBS="-lreadline $LIBS"
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16684 /* Override any GCC internal prototype to avoid an error.
16685 Use char because int might match the return type of a GCC
16686 builtin and then its argument prototype would still apply. */
16694 return readline ();
16699 if ac_fn_c_try_link "$LINENO"; then :
16700 ac_cv_lib_readline_readline=yes
16702 ac_cv_lib_readline_readline=no
16704 rm -f core conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16709 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16710 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16711 LIBREADLINE="-lreadline"
16713 unset ac_cv_lib_readline_readline;
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16715 $as_echo_n "checking for readline in -lreadline... " >&6; }
16716 if ${ac_cv_lib_readline_readline+:} false; then :
16717 $as_echo_n "(cached) " >&6
16719 ac_check_lib_save_LIBS=$LIBS
16720 LIBS="-lreadline -ltinfo $LIBS"
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16734 return readline ();
16739 if ac_fn_c_try_link "$LINENO"; then :
16740 ac_cv_lib_readline_readline=yes
16742 ac_cv_lib_readline_readline=no
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16749 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16750 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16751 LIBREADLINE="-ltinfo"
16753 unset ac_cv_lib_readline_readline;
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16755 $as_echo_n "checking for readline in -lreadline... " >&6; }
16756 if ${ac_cv_lib_readline_readline+:} false; then :
16757 $as_echo_n "(cached) " >&6
16759 ac_check_lib_save_LIBS=$LIBS
16760 LIBS="-lreadline -lcurses $LIBS"
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16764 /* Override any GCC internal prototype to avoid an error.
16765 Use char because int might match the return type of a GCC
16766 builtin and then its argument prototype would still apply. */
16774 return readline ();
16779 if ac_fn_c_try_link "$LINENO"; then :
16780 ac_cv_lib_readline_readline=yes
16782 ac_cv_lib_readline_readline=no
16784 rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16789 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16790 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16791 LIBREADLINE="-lcurses"
16793 unset ac_cv_lib_readline_readline;
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16795 $as_echo_n "checking for readline in -lreadline... " >&6; }
16796 if ${ac_cv_lib_readline_readline+:} false; then :
16797 $as_echo_n "(cached) " >&6
16799 ac_check_lib_save_LIBS=$LIBS
16800 LIBS="-lreadline -lncurses $LIBS"
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16804 /* Override any GCC internal prototype to avoid an error.
16805 Use char because int might match the return type of a GCC
16806 builtin and then its argument prototype would still apply. */
16814 return readline ();
16819 if ac_fn_c_try_link "$LINENO"; then :
16820 ac_cv_lib_readline_readline=yes
16822 ac_cv_lib_readline_readline=no
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16826 LIBS=$ac_check_lib_save_LIBS
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16829 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16830 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16831 LIBREADLINE="-lncurses"
16833 unset ac_cv_lib_readline_readline;
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16835 $as_echo_n "checking for readline in -lreadline... " >&6; }
16836 if ${ac_cv_lib_readline_readline+:} false; then :
16837 $as_echo_n "(cached) " >&6
16839 ac_check_lib_save_LIBS=$LIBS
16840 LIBS="-lreadline -lncursesw $LIBS"
16841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16842 /* end confdefs.h. */
16844 /* Override any GCC internal prototype to avoid an error.
16845 Use char because int might match the return type of a GCC
16846 builtin and then its argument prototype would still apply. */
16854 return readline ();
16859 if ac_fn_c_try_link "$LINENO"; then :
16860 ac_cv_lib_readline_readline=yes
16862 ac_cv_lib_readline_readline=no
16864 rm -f core conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16866 LIBS=$ac_check_lib_save_LIBS
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16869 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16870 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16871 LIBREADLINE="-lncursesw"
16873 unset ac_cv_lib_readline_readline;
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16875 $as_echo_n "checking for readline in -lreadline... " >&6; }
16876 if ${ac_cv_lib_readline_readline+:} false; then :
16877 $as_echo_n "(cached) " >&6
16879 ac_check_lib_save_LIBS=$LIBS
16880 LIBS="-lreadline -ltermcap $LIBS"
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16884 /* Override any GCC internal prototype to avoid an error.
16885 Use char because int might match the return type of a GCC
16886 builtin and then its argument prototype would still apply. */
16894 return readline ();
16899 if ac_fn_c_try_link "$LINENO"; then :
16900 ac_cv_lib_readline_readline=yes
16902 ac_cv_lib_readline_readline=no
16904 rm -f core conftest.err conftest.$ac_objext \
16905 conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16909 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16910 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16911 LIBREADLINE="-ltermcap"
16927 if test -n "$LIBREADLINE"; then
16928 if test "$LIBREADLINE" != "-lreadline"; then
16929 echo "-lreadline needs $LIBREADLINE"
16930 LIBREADLINE="-lreadline $LIBREADLINE"
16934 # This facilitates -ansi builds under Linux
16936 PCRE_STATIC_CFLAG=""
16937 if test "x$enable_shared" = "xno" ; then
16939 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
16941 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
16945 # Here is where pcre specific defines are handled
16947 if test "$enable_pcre8" = "yes"; then
16949 $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
16953 if test "$enable_pcre16" = "yes"; then
16955 $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
16959 if test "$enable_jit" = "yes"; then
16961 $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
16964 enable_pcregrep_jit="no"
16967 if test "$enable_pcregrep_jit" = "yes"; then
16969 $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
16973 if test "$enable_utf" = "yes"; then
16975 $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
16979 if test "$enable_unicode_properties" = "yes"; then
16981 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
16985 if test "$enable_stack_for_recursion" = "no"; then
16987 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
16991 if test "$enable_pcregrep_libz" = "yes"; then
16993 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
16997 if test "$enable_pcregrep_libbz2" = "yes"; then
16999 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
17003 if test $with_pcregrep_bufsize -lt 8192 ; then
17004 with_pcregrep_bufsize="8192"
17008 cat >>confdefs.h <<_ACEOF
17009 #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
17013 if test "$enable_pcretest_libreadline" = "yes"; then
17015 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
17020 cat >>confdefs.h <<_ACEOF
17021 #define NEWLINE $ac_pcre_newline_value
17025 if test "$enable_bsr_anycrlf" = "yes"; then
17027 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
17032 cat >>confdefs.h <<_ACEOF
17033 #define LINK_SIZE $with_link_size
17038 cat >>confdefs.h <<_ACEOF
17039 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
17044 cat >>confdefs.h <<_ACEOF
17045 #define MATCH_LIMIT $with_match_limit
17050 cat >>confdefs.h <<_ACEOF
17051 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
17056 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
17060 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
17065 if test "$enable_ebcdic" = "yes"; then
17067 cat >>confdefs.h <<_ACEOF
17068 #define EBCDIC /**/
17073 # Platform specific issues
17075 EXPORT_ALL_SYMBOLS=
17078 if test X"$enable_shared" = Xyes; then
17079 NO_UNDEFINED="-no-undefined"
17080 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
17085 # The extra LDFLAGS for each particular library
17086 # (Note: The libpcre*_version bits are m4 variables, assigned above)
17088 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
17089 $NO_UNDEFINED -version-info 16:1:13"
17091 EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
17092 $NO_UNDEFINED -version-info 16:1:13"
17094 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
17095 $NO_UNDEFINED -version-info 16:1:13"
17097 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
17098 $NO_UNDEFINED -version-info 0:0:0 \
17099 $EXPORT_ALL_SYMBOLS"
17106 # When we run 'make distcheck', use these arguments. Turning off compiler
17107 # optimization makes it run faster.
17108 DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-jit --enable-cpp --enable-unicode-properties"
17111 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
17112 # specified, the relevant library is available.
17114 if test "$enable_pcregrep_libz" = "yes"; then
17115 if test "$HAVE_ZLIB_H" != "1"; then
17116 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
17119 if test "$HAVE_LIBZ" != "1"; then
17120 echo "** Cannot --enable-pcregrep-libz because libz was not found"
17127 if test "$enable_pcregrep_libbz2" = "yes"; then
17128 if test "$HAVE_BZLIB_H" != "1"; then
17129 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
17132 if test "$HAVE_LIBBZ2" != "1"; then
17133 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
17140 # Similarly for --enable-pcretest-readline
17142 if test "$enable_pcretest_libreadline" = "yes"; then
17143 if test "$HAVE_READLINE_H" != "1"; then
17144 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
17147 if test "$HAVE_HISTORY_H" != "1"; then
17148 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
17151 if test -z "$LIBREADLINE"; then
17152 echo "** Cannot --enable-pcretest-readline because readline library was not found."
17157 # Produce these files, in addition to config.h.
17158 ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
17161 # Make the generated script files executable.
17162 ac_config_commands="$ac_config_commands script-chmod"
17165 # Make sure that pcre_chartables.c is removed in case the method for
17166 # creating it was changed by reconfiguration.
17167 ac_config_commands="$ac_config_commands delete-old-chartables"
17170 cat >confcache <<\_ACEOF
17171 # This file is a shell script that caches the results of configure
17172 # tests run on this system so they can be shared between configure
17173 # scripts and configure runs, see configure's option --config-cache.
17174 # It is not useful on other systems. If it contains results you don't
17175 # want to keep, you may remove or edit it.
17177 # config.status only pays attention to the cache file if you give it
17178 # the --recheck option to rerun configure.
17180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17182 # following values.
17186 # The following way of writing the cache mishandles newlines in values,
17187 # but we know of no workaround that is simple, portable, and efficient.
17188 # So, we kill variables containing newlines.
17189 # Ultrix sh set writes to stderr and can't be redirected directly,
17190 # and sets the high bit in the cache file unless we assign to the vars.
17192 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17193 eval ac_val=\$$ac_var
17197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17201 _ | IFS | as_nl) ;; #(
17202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17203 *) { eval $ac_var=; unset $ac_var;} ;;
17209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17210 *${as_nl}ac_space=\ *)
17211 # `set' does not quote correctly, so add quotes: double-quote
17212 # substitution turns \\\\ into \\, and sed turns \\ into \.
17215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17218 # `set' quotes correctly as required by POSIX, so do not add quotes.
17219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17233 if test -w "$cache_file"; then
17234 if test "x$cache_file" != "x/dev/null"; then
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17236 $as_echo "$as_me: updating cache $cache_file" >&6;}
17237 if test ! -f "$cache_file" || test -h "$cache_file"; then
17238 cat confcache >"$cache_file"
17240 case $cache_file in #(
17242 mv -f confcache "$cache_file"$$ &&
17243 mv -f "$cache_file"$$ "$cache_file" ;; #(
17245 mv -f confcache "$cache_file" ;;
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17251 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17257 # Let make expand exec_prefix.
17258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17260 DEFS=-DHAVE_CONFIG_H
17265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17266 # 1. Remove the extension, and $U if already installed.
17267 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17268 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17269 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17270 # will be set to the directory where LIBOBJS objects are built.
17271 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17272 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17274 LIBOBJS=$ac_libobjs
17276 LTLIBOBJS=$ac_ltlibobjs
17279 if test -n "$EXEEXT"; then
17281 am__EXEEXT_FALSE='#'
17283 am__EXEEXT_TRUE='#'
17287 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17288 as_fn_error $? "conditional \"AMDEP\" was never defined.
17289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17291 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17292 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17295 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17296 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17299 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
17300 as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
17301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17303 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
17304 as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
17305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17307 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
17308 as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
17309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17311 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
17312 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
17313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17315 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
17316 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
17317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17319 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
17320 as_fn_error $? "conditional \"WITH_UTF\" was never defined.
17321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324 : "${CONFIG_STATUS=./config.status}"
17326 ac_clean_files_save=$ac_clean_files
17327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17331 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17333 # Generated by $as_me.
17334 # Run this file to recreate the current configuration.
17335 # Compiler output produced by configure, useful for debugging
17336 # configure, is in config.log if it exists.
17339 ac_cs_recheck=false
17342 SHELL=\${CONFIG_SHELL-$SHELL}
17345 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17346 ## -------------------- ##
17347 ## M4sh Initialization. ##
17348 ## -------------------- ##
17350 # Be more Bourne compatible
17351 DUALCASE=1; export DUALCASE # for MKS sh
17352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17356 # is contrary to our usage. Disable this feature.
17357 alias -g '${1+"$@"}'='"$@"'
17358 setopt NO_GLOB_SUBST
17360 case `(set -o) 2>/dev/null` in #(
17372 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17373 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17376 # Prefer a ksh shell builtin over an external printf program on Solaris,
17377 # but without wasting forks for bash or zsh.
17378 if test -z "$BASH_VERSION$ZSH_VERSION" \
17379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17380 as_echo='print -r --'
17381 as_echo_n='print -rn --'
17382 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17383 as_echo='printf %s\n'
17384 as_echo_n='printf %s'
17386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17388 as_echo_n='/usr/ucb/echo -n'
17390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17391 as_echo_n_body='eval
17395 expr "X$arg" : "X\\(.*\\)$as_nl";
17396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17400 export as_echo_n_body
17401 as_echo_n='sh -c $as_echo_n_body as_echo'
17403 export as_echo_body
17404 as_echo='sh -c $as_echo_body as_echo'
17407 # The user is always right.
17408 if test "${PATH_SEPARATOR+set}" != set; then
17410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17418 # We need space, tab and new line, in precisely that order. Quoting is
17419 # there to prevent editors from complaining about space-tab.
17420 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17421 # splitting by setting IFS to empty value.)
17424 # Find who we are. Look in the path if we contain no directory separator.
17427 *[\\/]* ) as_myself=$0 ;;
17428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17429 for as_dir in $PATH
17432 test -z "$as_dir" && as_dir=.
17433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17439 # We did not find ourselves, most probably we were run as `sh COMMAND'
17440 # in which case we are not to be found in the path.
17441 if test "x$as_myself" = x; then
17444 if test ! -f "$as_myself"; then
17445 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17449 # Unset variables that we do not need and which cause bugs (e.g. in
17450 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17451 # suppresses any "Segmentation fault" message there. '((' could
17452 # trigger a bug in pdksh 5.2.14.
17453 for as_var in BASH_ENV ENV MAIL MAILPATH
17454 do eval test x\${$as_var+set} = xset \
17455 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17471 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17472 # ----------------------------------------
17473 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17474 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17475 # script with STATUS, using 1 if that was 0.
17478 as_status=$1; test $as_status -eq 0 && as_status=1
17480 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17481 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17483 $as_echo "$as_me: error: $2" >&2
17484 as_fn_exit $as_status
17488 # as_fn_set_status STATUS
17489 # -----------------------
17490 # Set $? to STATUS, without forking.
17491 as_fn_set_status ()
17494 } # as_fn_set_status
17496 # as_fn_exit STATUS
17497 # -----------------
17498 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17502 as_fn_set_status $1
17508 # Portably unset VAR.
17511 { eval $1=; unset $1;}
17513 as_unset=as_fn_unset
17514 # as_fn_append VAR VALUE
17515 # ----------------------
17516 # Append the text in VALUE to the end of the definition contained in VAR. Take
17517 # advantage of any shell optimizations that allow amortized linear growth over
17518 # repeated appends, instead of the typical quadratic growth present in naive
17520 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17521 eval 'as_fn_append ()
17532 # as_fn_arith ARG...
17533 # ------------------
17534 # Perform arithmetic evaluation on the ARGs, and store the result in the
17535 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17536 # must be portable across $(()) and expr.
17537 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17538 eval 'as_fn_arith ()
17545 as_val=`expr "$@" || test $? -eq 1`
17550 if expr a : '\(a\)' >/dev/null 2>&1 &&
17551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17557 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17558 as_basename=basename
17563 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17569 as_me=`$as_basename -- "$0" ||
17570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17571 X"$0" : 'X\(//\)$' \| \
17572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17574 sed '/^.*\/\([^/][^/]*\)\/*$/{
17588 # Avoid depending upon Character Ranges.
17589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17592 as_cr_digits='0123456789'
17593 as_cr_alnum=$as_cr_Letters$as_cr_digits
17595 ECHO_C= ECHO_N= ECHO_T=
17596 case `echo -n x` in #(((((
17598 case `echo 'xy\c'` in
17599 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17601 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17608 rm -f conf$$ conf$$.exe conf$$.file
17609 if test -d conf$$.dir; then
17610 rm -f conf$$.dir/conf$$.file
17613 mkdir conf$$.dir 2>/dev/null
17615 if (echo >conf$$.file) 2>/dev/null; then
17616 if ln -s conf$$.file conf$$ 2>/dev/null; then
17618 # ... but there are two gotchas:
17619 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17620 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17621 # In both cases, we have to default to `cp -p'.
17622 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17624 elif ln conf$$.file conf$$ 2>/dev/null; then
17632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17633 rmdir conf$$.dir 2>/dev/null
17638 # Create "$as_dir" as a directory, including parents if necessary.
17643 -*) as_dir=./$as_dir;;
17645 test -d "$as_dir" || eval $as_mkdir_p || {
17649 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17650 *) as_qdir=$as_dir;;
17652 as_dirs="'$as_qdir' $as_dirs"
17653 as_dir=`$as_dirname -- "$as_dir" ||
17654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17655 X"$as_dir" : 'X\(//\)[^/]' \| \
17656 X"$as_dir" : 'X\(//\)$' \| \
17657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17658 $as_echo X"$as_dir" |
17659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17663 /^X\(\/\/\)[^/].*/{
17676 test -d "$as_dir" && break
17678 test -z "$as_dirs" || eval "mkdir $as_dirs"
17679 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17683 if mkdir -p . 2>/dev/null; then
17684 as_mkdir_p='mkdir -p "$as_dir"'
17686 test -d ./-p && rmdir ./-p
17690 if test -x / >/dev/null 2>&1; then
17691 as_test_x='test -x'
17693 if ls -dL / >/dev/null 2>&1; then
17700 if test -d "$1"; then
17706 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17707 ???[sx]*):;;*)false;;esac;fi
17711 as_executable_p=$as_test_x
17713 # Sed expression to map a string onto a valid CPP name.
17714 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17716 # Sed expression to map a string onto a valid variable name.
17717 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17721 ## ----------------------------------- ##
17722 ## Main body of $CONFIG_STATUS script. ##
17723 ## ----------------------------------- ##
17725 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17728 # Save the log message, to keep $0 and so on meaningful, and to
17729 # report actual input values of CONFIG_FILES etc. instead of their
17730 # values after options handling.
17732 This file was extended by PCRE $as_me 8.30, which was
17733 generated by GNU Autoconf 2.68. Invocation command line was
17735 CONFIG_FILES = $CONFIG_FILES
17736 CONFIG_HEADERS = $CONFIG_HEADERS
17737 CONFIG_LINKS = $CONFIG_LINKS
17738 CONFIG_COMMANDS = $CONFIG_COMMANDS
17741 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17746 case $ac_config_files in *"
17747 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17750 case $ac_config_headers in *"
17751 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756 # Files that config.status was made for.
17757 config_files="$ac_config_files"
17758 config_headers="$ac_config_headers"
17759 config_commands="$ac_config_commands"
17763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765 \`$as_me' instantiates files and other configuration actions
17766 from templates according to the current configuration. Unless the files
17767 and actions are specified as TAGs, all are instantiated by default.
17769 Usage: $0 [OPTION]... [TAG]...
17771 -h, --help print this help, then exit
17772 -V, --version print version number and configuration settings, then exit
17773 --config print configuration, then exit
17774 -q, --quiet, --silent
17775 do not print progress messages
17776 -d, --debug don't remove temporary files
17777 --recheck update $as_me by reconfiguring in the same conditions
17778 --file=FILE[:TEMPLATE]
17779 instantiate the configuration file FILE
17780 --header=FILE[:TEMPLATE]
17781 instantiate the configuration header FILE
17783 Configuration files:
17786 Configuration headers:
17789 Configuration commands:
17792 Report bugs to the package provider."
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17798 PCRE config.status 8.30
17799 configured by $0, generated by GNU Autoconf 2.68,
17800 with options \\"\$ac_cs_config\\"
17802 Copyright (C) 2010 Free Software Foundation, Inc.
17803 This config.status script is free software; the Free Software Foundation
17804 gives unlimited permission to copy, distribute and modify it."
17811 test -n "\$AWK" || AWK=awk
17814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17815 # The default lists apply if the user does not specify any file.
17821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17838 # Handling of the options.
17839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17842 $as_echo "$ac_cs_version"; exit ;;
17843 --config | --confi | --conf | --con | --co | --c )
17844 $as_echo "$ac_cs_config"; exit ;;
17845 --debug | --debu | --deb | --de | --d | -d )
17847 --file | --fil | --fi | --f )
17850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17851 '') as_fn_error $? "missing file argument" ;;
17853 as_fn_append CONFIG_FILES " '$ac_optarg'"
17854 ac_need_defaults=false;;
17855 --header | --heade | --head | --hea )
17858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17860 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17861 ac_need_defaults=false;;
17863 # Conflict between --help and --header
17864 as_fn_error $? "ambiguous option: \`$1'
17865 Try \`$0 --help' for more information.";;
17866 --help | --hel | -h )
17867 $as_echo "$ac_cs_usage"; exit ;;
17868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17872 # This is an error.
17873 -*) as_fn_error $? "unrecognized option: \`$1'
17874 Try \`$0 --help' for more information." ;;
17876 *) as_fn_append ac_config_targets " $1"
17877 ac_need_defaults=false ;;
17883 ac_configure_extra_args=
17885 if $ac_cs_silent; then
17887 ac_configure_extra_args="$ac_configure_extra_args --silent"
17891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17892 if \$ac_cs_recheck; then
17893 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17895 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17896 CONFIG_SHELL='$SHELL'
17897 export CONFIG_SHELL
17902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17907 ## Running $as_me. ##
17913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17920 # The HP-UX ksh and POSIX shell print the target directory to stdout
17921 # if CDPATH is set.
17922 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17924 sed_quote_subst='$sed_quote_subst'
17925 double_quote_subst='$double_quote_subst'
17926 delay_variable_subst='$delay_variable_subst'
17927 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17928 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17929 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17930 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17931 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17932 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17933 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17934 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17935 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17936 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17937 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17938 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17939 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17940 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17941 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17942 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17943 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17944 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17945 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17946 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17947 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17948 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17949 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17950 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17951 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17952 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17953 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17954 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17955 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17956 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17957 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17958 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17959 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17960 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17961 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17964 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17965 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17966 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17967 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17968 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17969 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17970 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17971 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17972 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17973 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17974 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17975 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17976 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17977 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17978 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17979 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17980 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17981 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17982 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17983 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17984 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17985 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17986 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17987 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17988 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17989 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17990 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17991 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17992 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17993 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17994 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17995 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17996 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17997 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17998 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17999 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18000 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18001 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18002 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18003 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18004 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18005 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18006 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18007 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18008 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18009 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18010 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18011 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18012 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18013 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18014 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18015 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18016 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18017 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18018 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18019 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18020 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18021 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18022 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18023 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18024 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18025 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18026 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18027 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18028 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18029 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18030 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18031 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18032 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18033 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18034 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18035 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18036 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18037 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18038 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18039 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18040 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18041 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18042 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18043 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18044 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18045 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18046 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18047 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18048 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18049 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18050 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18051 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18052 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18053 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18054 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18055 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18056 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18057 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18058 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18059 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18060 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18061 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18062 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18063 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18064 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18065 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18066 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18067 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18068 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18069 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18070 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18071 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18072 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18073 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18074 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18075 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18076 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18077 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18078 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18079 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18080 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18081 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18082 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18083 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18084 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18085 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18087 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18088 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18089 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18090 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18091 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18092 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18093 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18094 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18095 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18096 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18097 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18098 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18099 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18100 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18101 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18102 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18103 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18104 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18105 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18106 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18107 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18108 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18109 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18110 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18111 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18112 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18115 LTCFLAGS='$LTCFLAGS'
18116 compiler='$compiler_DEFAULT'
18118 # A function that is used when there is no print builtin or printf.
18119 func_fallback_echo ()
18121 eval 'cat <<_LTECHO_EOF
18126 # Quote evaled strings.
18142 deplibs_check_method \
18146 sharedlib_from_linklib_cmd \
18149 archiver_list_spec \
18155 lt_cv_sys_global_symbol_pipe \
18156 lt_cv_sys_global_symbol_to_cdecl \
18157 lt_cv_sys_global_symbol_to_c_name_address \
18158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18159 nm_file_list_spec \
18160 lt_prog_compiler_no_builtin_flag \
18161 lt_prog_compiler_pic \
18162 lt_prog_compiler_wl \
18163 lt_prog_compiler_static \
18164 lt_cv_prog_compiler_c_o \
18173 export_dynamic_flag_spec \
18174 whole_archive_flag_spec \
18175 compiler_needs_object \
18177 allow_undefined_flag \
18178 no_undefined_flag \
18179 hardcode_libdir_flag_spec \
18180 hardcode_libdir_flag_spec_ld \
18181 hardcode_libdir_separator \
18185 variables_saved_for_relink \
18187 library_names_spec \
18189 install_override_mode \
18193 compiler_lib_search_dirs \
18198 compiler_lib_search_path \
18202 lt_prog_compiler_no_builtin_flag_CXX \
18203 lt_prog_compiler_pic_CXX \
18204 lt_prog_compiler_wl_CXX \
18205 lt_prog_compiler_static_CXX \
18206 lt_cv_prog_compiler_c_o_CXX \
18207 export_dynamic_flag_spec_CXX \
18208 whole_archive_flag_spec_CXX \
18209 compiler_needs_object_CXX \
18211 allow_undefined_flag_CXX \
18212 no_undefined_flag_CXX \
18213 hardcode_libdir_flag_spec_CXX \
18214 hardcode_libdir_flag_spec_ld_CXX \
18215 hardcode_libdir_separator_CXX \
18216 exclude_expsyms_CXX \
18217 include_expsyms_CXX \
18218 file_list_spec_CXX \
18219 compiler_lib_search_dirs_CXX \
18220 predep_objects_CXX \
18221 postdep_objects_CXX \
18224 compiler_lib_search_path_CXX; do
18225 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18226 *[\\\\\\\`\\"\\\$]*)
18227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18235 # Double-quote double-evaled strings.
18236 for var in reload_cmds \
18237 old_postinstall_cmds \
18238 old_postuninstall_cmds \
18240 extract_expsyms_cmds \
18241 old_archive_from_new_cmds \
18242 old_archive_from_expsyms_cmds \
18244 archive_expsym_cmds \
18246 module_expsym_cmds \
18247 export_symbols_cmds \
18251 postuninstall_cmds \
18253 sys_lib_search_path_spec \
18254 sys_lib_dlsearch_path_spec \
18256 old_archive_cmds_CXX \
18257 old_archive_from_new_cmds_CXX \
18258 old_archive_from_expsyms_cmds_CXX \
18260 archive_expsym_cmds_CXX \
18262 module_expsym_cmds_CXX \
18263 export_symbols_cmds_CXX \
18265 postlink_cmds_CXX; do
18266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18267 *[\\\\\\\`\\"\\\$]*)
18268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18276 ac_aux_dir='$ac_aux_dir'
18277 xsi_shell='$xsi_shell'
18278 lt_shell_append='$lt_shell_append'
18280 # See if we are running on zsh, and set the options which allow our
18281 # commands through without removal of \ escapes INIT.
18282 if test -n "\${ZSH_VERSION+set}" ; then
18283 setopt NO_GLOB_SUBST
18289 TIMESTAMP='$TIMESTAMP'
18300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18302 # Handling of arguments.
18303 for ac_config_target in $ac_config_targets
18305 case $ac_config_target in
18306 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18307 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18308 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18309 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18310 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
18311 "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
18312 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
18313 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
18314 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
18315 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
18316 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
18317 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
18318 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
18319 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
18321 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18326 # If the user did not use the arguments to specify the items to instantiate,
18327 # then the envvar interface is used. Set only those that are not.
18328 # We use the long form for the default assignment because of an extremely
18329 # bizarre bug on SunOS 4.1.3.
18330 if $ac_need_defaults; then
18331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18336 # Have a temporary directory for convenience. Make it in the build tree
18337 # simply because there is no reason against having it here, and in addition,
18338 # creating and moving files from /tmp can sometimes cause problems.
18339 # Hook for its removal unless debugging.
18340 # Note that there is a small window in which the directory will not be cleaned:
18341 # after its creation but before its name has been assigned to `$tmp'.
18345 trap 'exit_status=$?
18346 : "${ac_tmp:=$tmp}"
18347 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18349 trap 'as_fn_exit 1' 1 2 13 15
18351 # Create a (secure) tmp directory for tmp files.
18354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18358 tmp=./conf$$-$RANDOM
18359 (umask 077 && mkdir "$tmp")
18360 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18363 # Set up the scripts for CONFIG_FILES section.
18364 # No need to generate them if there are no CONFIG_FILES.
18365 # This happens for instance with `./config.status config.h'.
18366 if test -n "$CONFIG_FILES"; then
18369 ac_cr=`echo X | tr X '\015'`
18370 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18371 # But we know of no other shell where ac_cr would be empty at this
18372 # point, so we can use a bashism as a fallback.
18373 if test "x$ac_cr" = x; then
18374 eval ac_cr=\$\'\\r\'
18376 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18377 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18380 ac_cs_awk_cr=$ac_cr
18383 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18388 echo "cat >conf$$subs.awk <<_ACEOF" &&
18389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18391 } >conf$$subs.sh ||
18392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18395 for ac_last_try in false false false false false :; do
18396 . ./conf$$subs.sh ||
18397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18400 if test $ac_delim_n = $ac_delim_num; then
18402 elif $ac_last_try; then
18403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18408 rm -f conf$$subs.sh
18410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18411 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18415 s/^/S["/; s/!.*/"]=/
18425 s/\(.\{148\}\)..*/\1/
18427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18439 s/\(.\{148\}\)..*/\1/
18441 s/["\\]/\\&/g; s/^/"/; s/$/"/
18445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18450 ' <conf$$subs.awk | sed '
18455 ' >>$CONFIG_STATUS || ac_write_fail=1
18456 rm -f conf$$subs.awk
18457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18459 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18460 for (key in S) S_is_set[key] = 1
18466 nfields = split(line, field, "@")
18468 len = length(field[1])
18469 for (i = 2; i < nfields; i++) {
18471 keylen = length(key)
18472 if (S_is_set[key]) {
18474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18475 len += length(value) + length(field[++i])
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18491 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18492 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18495 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18496 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18497 # trailing colons and then remove the whole line if VPATH becomes empty
18498 # (actually we leave an empty line to preserve line numbers).
18499 if test "x$srcdir" = x.; then
18500 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18519 fi # test -n "$CONFIG_FILES"
18521 # Set up the scripts for CONFIG_HEADERS section.
18522 # No need to generate them if there are no CONFIG_HEADERS.
18523 # This happens for instance with `./config.status Makefile'.
18524 if test -n "$CONFIG_HEADERS"; then
18525 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18529 # Transform confdefs.h into an awk script `defines.awk', embedded as
18530 # here-document in config.status, that substitutes the proper values into
18531 # config.h.in to produce config.h.
18533 # Create a delimiter string that does not exist in confdefs.h, to ease
18534 # handling of long lines.
18536 for ac_last_try in false false :; do
18537 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18538 if test -z "$ac_tt"; then
18540 elif $ac_last_try; then
18541 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18547 # For the awk script, D is an array of macro values keyed by name,
18548 # likewise P contains macro parameters if any. Preserve backslash
18549 # newline sequences.
18551 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18553 s/.\{148\}/&'"$ac_delim"'/g
18556 s/^[ ]*#[ ]*define[ ][ ]*/ /
18563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18570 D["\1"]=" \3\\\\\\n"\\/p
18572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18577 s/.\{148\}/&'"$ac_delim"'/g
18582 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18585 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18587 ' <confdefs.h | sed '
18588 s/'"$ac_delim"'/"\\\
18589 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18592 for (key in D) D_is_set[key] = 1
18595 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18597 split(line, arg, " ")
18598 if (arg[1] == "#") {
18602 defundef = substr(arg[1], 2)
18605 split(mac1, mac2, "(") #)
18607 prefix = substr(line, 1, index(line, defundef) - 1)
18608 if (D_is_set[macro]) {
18609 # Preserve the white space surrounding the "#".
18610 print prefix "define", macro P[macro] D[macro]
18613 # Replace #undef with comments. This is necessary, for example,
18614 # in the case of _POSIX_SOURCE, which is predefined and required
18615 # on some systems where configure will not decide to define it.
18616 if (defundef == "undef") {
18617 print "/*", prefix defundef, macro, "*/"
18625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18626 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18627 fi # test -n "$CONFIG_HEADERS"
18630 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18635 :[FHLC]) ac_mode=$ac_tag; continue;;
18637 case $ac_mode$ac_tag in
18639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18640 :[FH]-) ac_tag=-:-;;
18641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18658 -) ac_f="$ac_tmp/stdin";;
18659 *) # Look for the file first in the build tree, then in the source tree
18660 # (if the path is not absolute). The absolute path cannot be DOS-style,
18661 # because $ac_f cannot contain `:'.
18665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18670 as_fn_append ac_file_inputs " '$ac_f'"
18673 # Let's still pretend it is `configure' which instantiates (i.e., don't
18674 # use $as_me), people would be surprised to read:
18675 # /* config.h. Generated by config.status. */
18676 configure_input='Generated from '`
18677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18679 if test x"$ac_file" != x-; then
18680 configure_input="$ac_file. $configure_input"
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18682 $as_echo "$as_me: creating $ac_file" >&6;}
18684 # Neutralize special characters interpreted by sed in replacement strings.
18685 case $configure_input in #(
18686 *\&* | *\|* | *\\* )
18687 ac_sed_conf_input=`$as_echo "$configure_input" |
18688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18689 *) ac_sed_conf_input=$configure_input;;
18693 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18699 ac_dir=`$as_dirname -- "$ac_file" ||
18700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701 X"$ac_file" : 'X\(//\)[^/]' \| \
18702 X"$ac_file" : 'X\(//\)$' \| \
18703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18704 $as_echo X"$ac_file" |
18705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18709 /^X\(\/\/\)[^/].*/{
18722 as_dir="$ac_dir"; as_fn_mkdir_p
18726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18729 # A ".." for each directory in $ac_dir_suffix.
18730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18731 case $ac_top_builddir_sub in
18732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18736 ac_abs_top_builddir=$ac_pwd
18737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18738 # for backward compatibility:
18739 ac_top_builddir=$ac_top_build_prefix
18742 .) # We are building in place.
18744 ac_top_srcdir=$ac_top_builddir_sub
18745 ac_abs_top_srcdir=$ac_pwd ;;
18746 [\\/]* | ?:[\\/]* ) # Absolute name.
18747 ac_srcdir=$srcdir$ac_dir_suffix;
18748 ac_top_srcdir=$srcdir
18749 ac_abs_top_srcdir=$srcdir ;;
18750 *) # Relative name.
18751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18752 ac_top_srcdir=$ac_top_build_prefix$srcdir
18753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18768 ac_MKDIR_P=$MKDIR_P
18770 [\\/$]* | ?:[\\/]* ) ;;
18771 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18776 # If the template does not know about datarootdir, expand it.
18777 # FIXME: This hack should be removed a few years after 2.60.
18778 ac_datarootdir_hack=; ac_datarootdir_seen=
18789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18790 *datarootdir*) ac_datarootdir_seen=yes;;
18791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18796 ac_datarootdir_hack='
18797 s&@datadir@&$datadir&g
18798 s&@docdir@&$docdir&g
18799 s&@infodir@&$infodir&g
18800 s&@localedir@&$localedir&g
18801 s&@mandir@&$mandir&g
18802 s&\\\${datarootdir}&$datarootdir&g' ;;
18806 # Neutralize VPATH when `$srcdir' = `.'.
18807 # Shell code in configure.ac might set extrasub.
18808 # FIXME: do we really want to maintain this feature?
18809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18810 ac_sed_extra="$ac_vpsub
18813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18816 s|@configure_input@|$ac_sed_conf_input|;t t
18817 s&@top_builddir@&$ac_top_builddir_sub&;t t
18818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18819 s&@srcdir@&$ac_srcdir&;t t
18820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18821 s&@top_srcdir@&$ac_top_srcdir&;t t
18822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18823 s&@builddir@&$ac_builddir&;t t
18824 s&@abs_builddir@&$ac_abs_builddir&;t t
18825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18826 s&@INSTALL@&$ac_INSTALL&;t t
18827 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18828 $ac_datarootdir_hack
18830 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18831 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18834 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18836 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18838 which seems to be undefined. Please make sure it is defined" >&5
18839 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18840 which seems to be undefined. Please make sure it is defined" >&2;}
18842 rm -f "$ac_tmp/stdin"
18844 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18845 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18853 if test x"$ac_file" != x-; then
18855 $as_echo "/* $configure_input */" \
18856 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18857 } >"$ac_tmp/config.h" \
18858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18859 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18861 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18864 mv "$ac_tmp/config.h" "$ac_file" \
18865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18868 $as_echo "/* $configure_input */" \
18869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18870 || as_fn_error $? "could not create -" "$LINENO" 5
18872 # Compute "$ac_file"'s index in $config_headers.
18875 for _am_header in $config_headers :; do
18876 case $_am_header in
18877 $_am_arg | $_am_arg:* )
18880 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18883 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18884 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18885 X"$_am_arg" : 'X\(//\)[^/]' \| \
18886 X"$_am_arg" : 'X\(//\)$' \| \
18887 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18888 $as_echo X"$_am_arg" |
18889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18893 /^X\(\/\/\)[^/].*/{
18905 s/.*/./; q'`/stamp-h$_am_stamp_count
18908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18909 $as_echo "$as_me: executing $ac_file commands" >&6;}
18914 case $ac_file$ac_mode in
18915 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18916 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18917 # are listed without --file. Let's play safe and only enable the eval
18918 # if we detect the quoting.
18919 case $CONFIG_FILES in
18920 *\'*) eval set x "$CONFIG_FILES" ;;
18921 *) set x $CONFIG_FILES ;;
18926 # Strip MF so we end up with the name of the file.
18927 mf=`echo "$mf" | sed -e 's/:.*$//'`
18928 # Check whether this is an Automake generated Makefile or not.
18929 # We used to match only the files named `Makefile.in', but
18930 # some people rename them; so instead we look at the file content.
18931 # Grep'ing the first line is not enough: some people post-process
18932 # each Makefile.in and add a new line on top of each file to say so.
18933 # Grep'ing the whole file is not good either: AIX grep has a line
18934 # limit of 2048, but all sed's we know have understand at least 4000.
18935 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18936 dirpart=`$as_dirname -- "$mf" ||
18937 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18938 X"$mf" : 'X\(//\)[^/]' \| \
18939 X"$mf" : 'X\(//\)$' \| \
18940 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18946 /^X\(\/\/\)[^/].*/{
18962 # Extract the definition of DEPDIR, am__include, and am__quote
18963 # from the Makefile without running `make'.
18964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18965 test -z "$DEPDIR" && continue
18966 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18967 test -z "am__include" && continue
18968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18969 # When using ansi2knr, U may be empty or an underscore; expand it
18970 U=`sed -n 's/^U = //p' < "$mf"`
18971 # Find all dependency output files, they are included files with
18972 # $(DEPDIR) in their names. We invoke sed twice because it is the
18973 # simplest approach to changing $(DEPDIR) to its actual value in the
18975 for file in `sed -n "
18976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18978 # Make sure the directory exists.
18979 test -f "$dirpart/$file" && continue
18980 fdir=`$as_dirname -- "$file" ||
18981 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18982 X"$file" : 'X\(//\)[^/]' \| \
18983 X"$file" : 'X\(//\)$' \| \
18984 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18985 $as_echo X"$file" |
18986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18990 /^X\(\/\/\)[^/].*/{
19003 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19004 # echo "creating $dirpart/$file"
19005 echo '# dummy' > "$dirpart/$file"
19012 # See if we are running on zsh, and set the options which allow our
19013 # commands through without removal of \ escapes.
19014 if test -n "${ZSH_VERSION+set}" ; then
19015 setopt NO_GLOB_SUBST
19018 cfgfile="${ofile}T"
19019 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19022 cat <<_LT_EOF >> "$cfgfile"
19025 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19026 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19028 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19030 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19031 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19033 # Written by Gordon Matzigkeit, 1996
19035 # This file is part of GNU Libtool.
19037 # GNU Libtool is free software; you can redistribute it and/or
19038 # modify it under the terms of the GNU General Public License as
19039 # published by the Free Software Foundation; either version 2 of
19040 # the License, or (at your option) any later version.
19042 # As a special exception to the GNU General Public License,
19043 # if you distribute this file as part of a program or library that
19044 # is built using GNU Libtool, you may include this file under the
19045 # same distribution terms that you use for the rest of that program.
19047 # GNU Libtool is distributed in the hope that it will be useful,
19048 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19049 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19050 # GNU General Public License for more details.
19052 # You should have received a copy of the GNU General Public License
19053 # along with GNU Libtool; see the file COPYING. If not, a copy
19054 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19055 # obtained by writing to the Free Software Foundation, Inc.,
19056 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19059 # The names of the tagged configurations supported by this script.
19060 available_tags="CXX "
19062 # ### BEGIN LIBTOOL CONFIG
19064 # Assembler program.
19067 # DLL creation program.
19068 DLLTOOL=$lt_DLLTOOL
19070 # Object dumper program.
19071 OBJDUMP=$lt_OBJDUMP
19073 # Which release of libtool.m4 was used?
19074 macro_version=$macro_version
19075 macro_revision=$macro_revision
19077 # Whether or not to build shared libraries.
19078 build_libtool_libs=$enable_shared
19080 # Whether or not to build static libraries.
19081 build_old_libs=$enable_static
19083 # What type of objects to build.
19086 # Whether or not to optimize for fast installation.
19087 fast_install=$enable_fast_install
19089 # Shell to use when invoking shell scripts.
19092 # An echo program that protects backslashes.
19096 host_alias=$host_alias
19100 # The build system.
19101 build_alias=$build_alias
19105 # A sed program that does not truncate output.
19108 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19109 Xsed="\$SED -e 1s/^X//"
19111 # A grep program that handles long lines.
19117 # A literal string matcher.
19120 # A BSD- or MS-compatible name lister.
19123 # Whether we need soft or hard links.
19126 # What is the maximum length of a command?
19127 max_cmd_len=$max_cmd_len
19129 # Object file suffix (normally "o").
19132 # Executable file suffix (normally "").
19135 # whether the shell understands "unset".
19138 # turn spaces into newlines.
19141 # turn newlines into spaces.
19144 # convert \$build file names to \$host format.
19145 to_host_file_cmd=$lt_cv_to_host_file_cmd
19147 # convert \$build files to toolchain format.
19148 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19150 # Method to check whether dependent libraries are shared objects.
19151 deplibs_check_method=$lt_deplibs_check_method
19153 # Command to use when deplibs_check_method = "file_magic".
19154 file_magic_cmd=$lt_file_magic_cmd
19156 # How to find potential files when deplibs_check_method = "file_magic".
19157 file_magic_glob=$lt_file_magic_glob
19159 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19160 want_nocaseglob=$lt_want_nocaseglob
19162 # Command to associate shared and link libraries.
19163 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19168 # Flags to create an archive.
19169 AR_FLAGS=$lt_AR_FLAGS
19171 # How to feed a file listing to the archiver.
19172 archiver_list_spec=$lt_archiver_list_spec
19174 # A symbol stripping program.
19177 # Commands used to install an old-style archive.
19179 old_postinstall_cmds=$lt_old_postinstall_cmds
19180 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19182 # Whether to use a lock for old archive extraction.
19183 lock_old_archive_extraction=$lock_old_archive_extraction
19188 # LTCC compiler flags.
19189 LTCFLAGS=$lt_CFLAGS
19191 # Take the output of nm and produce a listing of raw symbols and C names.
19192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19194 # Transform the output of nm in a proper C declaration.
19195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19197 # Transform the output of nm in a C name address pair.
19198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19200 # Transform the output of nm in a C name address pair when lib prefix is needed.
19201 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19203 # Specify filename containing input files for \$NM.
19204 nm_file_list_spec=$lt_nm_file_list_spec
19206 # The root where to search for dependent libraries,and in which our libraries should be installed.
19207 lt_sysroot=$lt_sysroot
19209 # The name of the directory that contains temporary libtool files.
19212 # Used to examine libraries when file_magic_cmd begins with "file".
19213 MAGIC_CMD=$MAGIC_CMD
19215 # Must we lock files when doing compilation?
19216 need_locks=$lt_need_locks
19219 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19221 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19222 DSYMUTIL=$lt_DSYMUTIL
19224 # Tool to change global to local symbols on Mac OS X.
19227 # Tool to manipulate fat objects and archives on Mac OS X.
19230 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19233 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19234 OTOOL64=$lt_OTOOL64
19236 # Old archive suffix (normally "a").
19239 # Shared library suffix (normally ".so").
19240 shrext_cmds=$lt_shrext_cmds
19242 # The commands to extract the exported symbol list from a shared archive.
19243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19245 # Variables whose values should be saved in libtool wrapper scripts and
19246 # restored at link time.
19247 variables_saved_for_relink=$lt_variables_saved_for_relink
19249 # Do we need the "lib" prefix for modules?
19250 need_lib_prefix=$need_lib_prefix
19252 # Do we need a version for libraries?
19253 need_version=$need_version
19255 # Library versioning type.
19256 version_type=$version_type
19258 # Shared library runtime path variable.
19259 runpath_var=$runpath_var
19261 # Shared library path variable.
19262 shlibpath_var=$shlibpath_var
19264 # Is shlibpath searched before the hard-coded library search path?
19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267 # Format of library name prefix.
19268 libname_spec=$lt_libname_spec
19270 # List of archive names. First name is the real one, the rest are links.
19271 # The last name is the one that the linker finds with -lNAME
19272 library_names_spec=$lt_library_names_spec
19274 # The coded name of the library, if different from the real name.
19275 soname_spec=$lt_soname_spec
19277 # Permission mode override for installation of shared libraries.
19278 install_override_mode=$lt_install_override_mode
19280 # Command to use after installation of a shared archive.
19281 postinstall_cmds=$lt_postinstall_cmds
19283 # Command to use after uninstallation of a shared archive.
19284 postuninstall_cmds=$lt_postuninstall_cmds
19286 # Commands used to finish a libtool library installation in a directory.
19287 finish_cmds=$lt_finish_cmds
19289 # As "finish_cmds", except a single script fragment to be evaled but
19291 finish_eval=$lt_finish_eval
19293 # Whether we should hardcode library paths into libraries.
19294 hardcode_into_libs=$hardcode_into_libs
19296 # Compile-time system search path for libraries.
19297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19299 # Run-time system search path for libraries.
19300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19302 # Whether dlopen is supported.
19303 dlopen_support=$enable_dlopen
19305 # Whether dlopen of programs is supported.
19306 dlopen_self=$enable_dlopen_self
19308 # Whether dlopen of statically linked programs is supported.
19309 dlopen_self_static=$enable_dlopen_self_static
19311 # Commands to strip libraries.
19312 old_striplib=$lt_old_striplib
19313 striplib=$lt_striplib
19316 # The linker used to build libraries.
19319 # How to create reloadable object files.
19320 reload_flag=$lt_reload_flag
19321 reload_cmds=$lt_reload_cmds
19323 # Commands used to build an old-style archive.
19324 old_archive_cmds=$lt_old_archive_cmds
19326 # A language specific compiler.
19329 # Is the compiler the GNU compiler?
19332 # Compiler flag to turn off builtin functions.
19333 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19335 # Additional compiler flags for building library objects.
19336 pic_flag=$lt_lt_prog_compiler_pic
19338 # How to pass a linker flag through the compiler.
19339 wl=$lt_lt_prog_compiler_wl
19341 # Compiler flag to prevent dynamic linking.
19342 link_static_flag=$lt_lt_prog_compiler_static
19344 # Does compiler simultaneously support -c and -o options?
19345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19347 # Whether or not to add -lc for building shared libraries.
19348 build_libtool_need_lc=$archive_cmds_need_lc
19350 # Whether or not to disallow shared libs when runtime libs are static.
19351 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19353 # Compiler flag to allow reflexive dlopens.
19354 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19356 # Compiler flag to generate shared objects directly from archives.
19357 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19359 # Whether the compiler copes with passing no objects directly.
19360 compiler_needs_object=$lt_compiler_needs_object
19362 # Create an old-style archive from a shared archive.
19363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19365 # Create a temporary old-style archive to link instead of a shared archive.
19366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19368 # Commands used to build a shared archive.
19369 archive_cmds=$lt_archive_cmds
19370 archive_expsym_cmds=$lt_archive_expsym_cmds
19372 # Commands used to build a loadable module if different from building
19373 # a shared archive.
19374 module_cmds=$lt_module_cmds
19375 module_expsym_cmds=$lt_module_expsym_cmds
19377 # Whether we are building with GNU ld or not.
19378 with_gnu_ld=$lt_with_gnu_ld
19380 # Flag that allows shared libraries with undefined symbols to be built.
19381 allow_undefined_flag=$lt_allow_undefined_flag
19383 # Flag that enforces no undefined symbols.
19384 no_undefined_flag=$lt_no_undefined_flag
19386 # Flag to hardcode \$libdir into a binary during linking.
19387 # This must work even if \$libdir does not exist
19388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19390 # If ld is used when linking, flag to hardcode \$libdir into a binary
19391 # during linking. This must work even if \$libdir does not exist.
19392 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19394 # Whether we need a single "-rpath" flag with a separated argument.
19395 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19398 # DIR into the resulting binary.
19399 hardcode_direct=$hardcode_direct
19401 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19402 # DIR into the resulting binary and the resulting library dependency is
19403 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19404 # library is relocated.
19405 hardcode_direct_absolute=$hardcode_direct_absolute
19407 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19408 # into the resulting binary.
19409 hardcode_minus_L=$hardcode_minus_L
19411 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19412 # into the resulting binary.
19413 hardcode_shlibpath_var=$hardcode_shlibpath_var
19415 # Set to "yes" if building a shared library automatically hardcodes DIR
19416 # into the library and all subsequent libraries and executables linked
19418 hardcode_automatic=$hardcode_automatic
19420 # Set to yes if linker adds runtime paths of dependent libraries
19421 # to runtime path list.
19422 inherit_rpath=$inherit_rpath
19424 # Whether libtool must link a program against all its dependency libraries.
19425 link_all_deplibs=$link_all_deplibs
19427 # Set to "yes" if exported symbols are required.
19428 always_export_symbols=$always_export_symbols
19430 # The commands to list exported symbols.
19431 export_symbols_cmds=$lt_export_symbols_cmds
19433 # Symbols that should not be listed in the preloaded symbols.
19434 exclude_expsyms=$lt_exclude_expsyms
19436 # Symbols that must always be exported.
19437 include_expsyms=$lt_include_expsyms
19439 # Commands necessary for linking programs (against libraries) with templates.
19440 prelink_cmds=$lt_prelink_cmds
19442 # Commands necessary for finishing linking programs.
19443 postlink_cmds=$lt_postlink_cmds
19445 # Specify filename containing input files.
19446 file_list_spec=$lt_file_list_spec
19448 # How to hardcode a shared library path into an executable.
19449 hardcode_action=$hardcode_action
19451 # The directories searched by this compiler when creating a shared library.
19452 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19454 # Dependencies to place before and after the objects being linked to
19455 # create a shared library.
19456 predep_objects=$lt_predep_objects
19457 postdep_objects=$lt_postdep_objects
19458 predeps=$lt_predeps
19459 postdeps=$lt_postdeps
19461 # The library search path used internally by the compiler when linking
19462 # a shared library.
19463 compiler_lib_search_path=$lt_compiler_lib_search_path
19465 # ### END LIBTOOL CONFIG
19471 cat <<\_LT_EOF >> "$cfgfile"
19472 # AIX sometimes has problems with the GCC collect2 program. For some
19473 # reason, if we set the COLLECT_NAMES environment variable, the problems
19474 # vanish in a puff of smoke.
19475 if test "X${COLLECT_NAMES+set}" != Xset; then
19477 export COLLECT_NAMES
19484 ltmain="$ac_aux_dir/ltmain.sh"
19487 # We use sed instead of cat because bash on DJGPP gets confused if
19488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19489 # text mode, it properly converts lines to CR/LF. This bash problem
19490 # is reportedly fixed, but why not run on old versions too?
19491 sed '$q' "$ltmain" >> "$cfgfile" \
19492 || (rm -f "$cfgfile"; exit 1)
19494 if test x"$xsi_shell" = xyes; then
19495 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19499 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19500 \ * ) func_dirname_result="${3}" ;;\
19502 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19503 && mv -f "$cfgfile.tmp" "$cfgfile" \
19504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19505 test 0 -eq $? || _lt_function_replace_fail=:
19508 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19511 \ func_basename_result="${1##*/}"\
19512 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19513 && mv -f "$cfgfile.tmp" "$cfgfile" \
19514 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19515 test 0 -eq $? || _lt_function_replace_fail=:
19518 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19519 func_dirname_and_basename ()\
19522 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19523 \ * ) func_dirname_result="${3}" ;;\
19525 \ func_basename_result="${1##*/}"\
19526 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19527 && mv -f "$cfgfile.tmp" "$cfgfile" \
19528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19529 test 0 -eq $? || _lt_function_replace_fail=:
19532 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19535 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19536 \ # positional parameters, so assign one to ordinary parameter first.\
19537 \ func_stripname_result=${3}\
19538 \ func_stripname_result=${func_stripname_result#"${1}"}\
19539 \ func_stripname_result=${func_stripname_result%"${2}"}\
19540 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19541 && mv -f "$cfgfile.tmp" "$cfgfile" \
19542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19543 test 0 -eq $? || _lt_function_replace_fail=:
19546 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19547 func_split_long_opt ()\
19549 \ func_split_long_opt_name=${1%%=*}\
19550 \ func_split_long_opt_arg=${1#*=}\
19551 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19552 && mv -f "$cfgfile.tmp" "$cfgfile" \
19553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19554 test 0 -eq $? || _lt_function_replace_fail=:
19557 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19558 func_split_short_opt ()\
19560 \ func_split_short_opt_arg=${1#??}\
19561 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19562 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19563 && mv -f "$cfgfile.tmp" "$cfgfile" \
19564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19565 test 0 -eq $? || _lt_function_replace_fail=:
19568 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19572 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19573 \ *) func_lo2o_result=${1} ;;\
19575 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19576 && mv -f "$cfgfile.tmp" "$cfgfile" \
19577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19578 test 0 -eq $? || _lt_function_replace_fail=:
19581 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19584 func_xform_result=${1%.*}.lo\
19585 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19586 && mv -f "$cfgfile.tmp" "$cfgfile" \
19587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19588 test 0 -eq $? || _lt_function_replace_fail=:
19591 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19594 func_arith_result=$(( $* ))\
19595 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19596 && mv -f "$cfgfile.tmp" "$cfgfile" \
19597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19598 test 0 -eq $? || _lt_function_replace_fail=:
19601 sed -e '/^func_len ()$/,/^} # func_len /c\
19604 func_len_result=${#1}\
19605 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19606 && mv -f "$cfgfile.tmp" "$cfgfile" \
19607 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19608 test 0 -eq $? || _lt_function_replace_fail=:
19612 if test x"$lt_shell_append" = xyes; then
19613 sed -e '/^func_append ()$/,/^} # func_append /c\
19616 eval "${1}+=\\${2}"\
19617 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19618 && mv -f "$cfgfile.tmp" "$cfgfile" \
19619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19620 test 0 -eq $? || _lt_function_replace_fail=:
19623 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19624 func_append_quoted ()\
19626 \ func_quote_for_eval "${2}"\
19627 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19628 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19629 && mv -f "$cfgfile.tmp" "$cfgfile" \
19630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19631 test 0 -eq $? || _lt_function_replace_fail=:
19634 # Save a `func_append' function call where possible by direct use of '+='
19635 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19636 && mv -f "$cfgfile.tmp" "$cfgfile" \
19637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19638 test 0 -eq $? || _lt_function_replace_fail=:
19640 # Save a `func_append' function call even when '+=' is not available
19641 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19642 && mv -f "$cfgfile.tmp" "$cfgfile" \
19643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19644 test 0 -eq $? || _lt_function_replace_fail=:
19647 if test x"$_lt_function_replace_fail" = x":"; then
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19649 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19653 mv -f "$cfgfile" "$ofile" ||
19654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19658 cat <<_LT_EOF >> "$ofile"
19660 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19662 # The linker used to build libraries.
19665 # How to create reloadable object files.
19666 reload_flag=$lt_reload_flag_CXX
19667 reload_cmds=$lt_reload_cmds_CXX
19669 # Commands used to build an old-style archive.
19670 old_archive_cmds=$lt_old_archive_cmds_CXX
19672 # A language specific compiler.
19673 CC=$lt_compiler_CXX
19675 # Is the compiler the GNU compiler?
19678 # Compiler flag to turn off builtin functions.
19679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19681 # Additional compiler flags for building library objects.
19682 pic_flag=$lt_lt_prog_compiler_pic_CXX
19684 # How to pass a linker flag through the compiler.
19685 wl=$lt_lt_prog_compiler_wl_CXX
19687 # Compiler flag to prevent dynamic linking.
19688 link_static_flag=$lt_lt_prog_compiler_static_CXX
19690 # Does compiler simultaneously support -c and -o options?
19691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19693 # Whether or not to add -lc for building shared libraries.
19694 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19696 # Whether or not to disallow shared libs when runtime libs are static.
19697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19699 # Compiler flag to allow reflexive dlopens.
19700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19702 # Compiler flag to generate shared objects directly from archives.
19703 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19705 # Whether the compiler copes with passing no objects directly.
19706 compiler_needs_object=$lt_compiler_needs_object_CXX
19708 # Create an old-style archive from a shared archive.
19709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19711 # Create a temporary old-style archive to link instead of a shared archive.
19712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19714 # Commands used to build a shared archive.
19715 archive_cmds=$lt_archive_cmds_CXX
19716 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19718 # Commands used to build a loadable module if different from building
19719 # a shared archive.
19720 module_cmds=$lt_module_cmds_CXX
19721 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19723 # Whether we are building with GNU ld or not.
19724 with_gnu_ld=$lt_with_gnu_ld_CXX
19726 # Flag that allows shared libraries with undefined symbols to be built.
19727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19729 # Flag that enforces no undefined symbols.
19730 no_undefined_flag=$lt_no_undefined_flag_CXX
19732 # Flag to hardcode \$libdir into a binary during linking.
19733 # This must work even if \$libdir does not exist
19734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19736 # If ld is used when linking, flag to hardcode \$libdir into a binary
19737 # during linking. This must work even if \$libdir does not exist.
19738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19740 # Whether we need a single "-rpath" flag with a separated argument.
19741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19744 # DIR into the resulting binary.
19745 hardcode_direct=$hardcode_direct_CXX
19747 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19748 # DIR into the resulting binary and the resulting library dependency is
19749 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19750 # library is relocated.
19751 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19754 # into the resulting binary.
19755 hardcode_minus_L=$hardcode_minus_L_CXX
19757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19758 # into the resulting binary.
19759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19761 # Set to "yes" if building a shared library automatically hardcodes DIR
19762 # into the library and all subsequent libraries and executables linked
19764 hardcode_automatic=$hardcode_automatic_CXX
19766 # Set to yes if linker adds runtime paths of dependent libraries
19767 # to runtime path list.
19768 inherit_rpath=$inherit_rpath_CXX
19770 # Whether libtool must link a program against all its dependency libraries.
19771 link_all_deplibs=$link_all_deplibs_CXX
19773 # Set to "yes" if exported symbols are required.
19774 always_export_symbols=$always_export_symbols_CXX
19776 # The commands to list exported symbols.
19777 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19779 # Symbols that should not be listed in the preloaded symbols.
19780 exclude_expsyms=$lt_exclude_expsyms_CXX
19782 # Symbols that must always be exported.
19783 include_expsyms=$lt_include_expsyms_CXX
19785 # Commands necessary for linking programs (against libraries) with templates.
19786 prelink_cmds=$lt_prelink_cmds_CXX
19788 # Commands necessary for finishing linking programs.
19789 postlink_cmds=$lt_postlink_cmds_CXX
19791 # Specify filename containing input files.
19792 file_list_spec=$lt_file_list_spec_CXX
19794 # How to hardcode a shared library path into an executable.
19795 hardcode_action=$hardcode_action_CXX
19797 # The directories searched by this compiler when creating a shared library.
19798 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19800 # Dependencies to place before and after the objects being linked to
19801 # create a shared library.
19802 predep_objects=$lt_predep_objects_CXX
19803 postdep_objects=$lt_postdep_objects_CXX
19804 predeps=$lt_predeps_CXX
19805 postdeps=$lt_postdeps_CXX
19807 # The library search path used internally by the compiler when linking
19808 # a shared library.
19809 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19811 # ### END LIBTOOL TAG CONFIG: CXX
19815 "script-chmod":C) chmod a+x pcre-config ;;
19816 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
19824 ac_clean_files=$ac_clean_files_save
19826 test $ac_write_fail = 0 ||
19827 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19830 # configure is writing to config.log, and then calls config.status.
19831 # config.status does its own redirection, appending to config.log.
19832 # Unfortunately, on DOS this fails, as config.log is still kept open
19833 # by configure, so config.status won't be able to write to it; its
19834 # output is simply discarded. So we exec the FD to /dev/null,
19835 # effectively closing config.log, so it can be properly (re)opened and
19836 # appended to by config.status. When coming back to configure, we
19837 # need to make the FD available again.
19838 if test "$no_create" != yes; then
19840 ac_config_status_args=
19841 test "$silent" = yes &&
19842 ac_config_status_args="$ac_config_status_args --quiet"
19844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19847 # would make configure fail if this is the last instruction.
19848 $ac_cs_success || as_fn_exit 1
19850 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19852 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19856 # Print out a nice little message after configure is run displaying your
19861 $PACKAGE-$VERSION configuration summary:
19863 Install prefix .................. : ${prefix}
19864 C preprocessor .................. : ${CPP}
19865 C compiler ...................... : ${CC}
19866 C++ preprocessor ................ : ${CXXCPP}
19867 C++ compiler .................... : ${CXX}
19868 Linker .......................... : ${LD}
19869 C preprocessor flags ............ : ${CPPFLAGS}
19870 C compiler flags ................ : ${CFLAGS}
19871 C++ compiler flags .............. : ${CXXFLAGS}
19872 Linker flags .................... : ${LDFLAGS}
19873 Extra libraries ................. : ${LIBS}
19875 Build 8 bit pcre library ........ : ${enable_pcre8}
19876 Build 16 bit pcre library ....... : ${enable_pcre16}
19877 Build C++ library ............... : ${enable_cpp}
19878 Enable JIT compiling support .... : ${enable_jit}
19879 Enable UTF-8/16 support ......... : ${enable_utf}
19880 Unicode properties .............. : ${enable_unicode_properties}
19881 Newline char/sequence ........... : ${enable_newline}
19882 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
19883 EBCDIC coding ................... : ${enable_ebcdic}
19884 Rebuild char tables ............. : ${enable_rebuild_chartables}
19885 Use stack recursion ............. : ${enable_stack_for_recursion}
19886 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
19887 Internal link size .............. : ${with_link_size}
19888 Match limit ..................... : ${with_match_limit}
19889 Match limit recursion ........... : ${with_match_limit_recursion}
19890 Build shared libs ............... : ${enable_shared}
19891 Build static libs ............... : ${enable_static}
19892 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
19893 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
19894 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
19895 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
19896 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}