2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for PCRE 8.11.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir=.
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
374 as_status=$?; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 test -n "$DJDIR" || exec 7<&0 </dev/null
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
559 # Identity of this package.
561 PACKAGE_TARNAME='pcre'
562 PACKAGE_VERSION='8.11'
563 PACKAGE_STRING='PCRE 8.11'
567 ac_unique_file="pcre.h.in"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
604 ac_subst_vars='am__EXEEXT_FALSE
611 DISTCHECK_CONFIGURE_FLAGS
612 EXTRA_LIBPCRECPP_LDFLAGS
613 EXTRA_LIBPCREPOSIX_LDFLAGS
614 EXTRA_LIBPCRE_LDFLAGS
616 WITH_REBUILD_CHARTABLES_FALSE
617 WITH_REBUILD_CHARTABLES_TRUE
620 pcre_have_bits_type_traits
621 pcre_have_type_traits
689 INSTALL_STRIP_PROGRAM
731 program_transform_name
744 enable_option_checking
745 enable_dependency_tracking
753 enable_rebuild_chartables
755 enable_unicode_properties
758 enable_newline_is_crlf
759 enable_newline_is_anycrlf
760 enable_newline_is_any
763 enable_stack_for_recursion
765 enable_pcregrep_libbz2
766 enable_pcretest_libreadline
767 with_posix_malloc_threshold
770 with_match_limit_recursion
772 ac_precious_vars='build_alias
787 # Initialize some variables set by options.
789 ac_init_version=false
790 ac_unrecognized_opts=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name=s,x,x,
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
944 -help | --help | --hel | --he | -h)
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1093 -site=* | --site=* | --sit=*)
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval with_$ac_useropt=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1220 # Be sure to have absolute directory names.
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures PCRE 8.11 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of PCRE 8.11:";;
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --disable-cpp disable C++ support
1412 --enable-rebuild-chartables
1413 rebuild character tables in current locale
1414 --enable-utf8 enable UTF-8 support (incompatible with
1416 --enable-unicode-properties
1417 enable Unicode properties support (implies
1419 --enable-newline-is-cr use CR as newline character
1420 --enable-newline-is-lf use LF as newline character (default)
1421 --enable-newline-is-crlf
1422 use CRLF as newline sequence
1423 --enable-newline-is-anycrlf
1424 use CR, LF, or CRLF as newline sequence
1425 --enable-newline-is-any use any valid Unicode newline sequence
1426 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1427 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1428 with --enable-utf8; use only in (uncommon) EBCDIC
1429 environments; it implies --enable-rebuild-chartables
1430 --disable-stack-for-recursion
1431 don't use stack recursion when matching
1432 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1433 --enable-pcregrep-libbz2
1434 link pcregrep with libbz2 to handle .bz2 files
1435 --enable-pcretest-libreadline
1436 link pcretest with libreadline
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic try to use only PIC/non-PIC objects [default=use
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-posix-malloc-threshold=NBYTES
1445 threshold for POSIX malloc usage (default=10)
1446 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1447 --with-match-limit=N default limit on internal looping (default=10000000)
1448 --with-match-limit-recursion=N
1449 default limit on internal recursion
1450 (default=MATCH_LIMIT)
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
1463 CXXCPP C++ preprocessor
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 Report bugs to the package provider.
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" ||
1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1532 generated by GNU Autoconf 2.65
1534 Copyright (C) 2009 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 as_fn_set_status $ac_retval
1581 } # ac_fn_c_try_compile
1583 # ac_fn_cxx_try_compile LINENO
1584 # ----------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_cxx_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_cxx_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_cxx_try_compile
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } >/dev/null && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1692 ac_retval=$ac_status
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 as_fn_set_status $ac_retval
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 } # ac_fn_c_check_header_compile
1731 # ac_fn_c_find_intX_t LINENO BITS VAR
1732 # -----------------------------------
1733 # Finds a signed integer type with width BITS, setting cache variable VAR
1735 ac_fn_c_find_intX_t ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1739 $as_echo_n "checking for int$2_t... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1744 # Order is important - never check a type that is potentially smaller
1745 # than half of the expected target width.
1746 for ac_type in int$2_t 'int' 'long int' \
1747 'long long int' 'short int' 'signed char'; do
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $ac_includes_default
1751 enum { N = $2 / 2 - 1 };
1755 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $ac_includes_default
1766 enum { N = $2 / 2 - 1 };
1770 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1771 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1778 if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=\$ac_type" ;;
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 if test "x$as_val" = x""no; then :
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 } # ac_fn_c_find_intX_t
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 $as_test_x conftest$ac_exeext
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_link
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1875 # include <limits.h>
1877 # include <assert.h>
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1904 if ac_fn_c_try_link "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 } # ac_fn_c_check_func
1919 # ac_fn_cxx_try_cpp LINENO
1920 # ------------------------
1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_cxx_try_cpp ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_cpp conftest.$ac_ext"
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } >/dev/null && {
1941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952 as_fn_set_status $ac_retval
1954 } # ac_fn_cxx_try_cpp
1956 # ac_fn_cxx_try_link LINENO
1957 # -------------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_link ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 $as_test_x conftest$ac_exeext
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_cxx_try_link
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2007 ac_fn_c_check_header_mongrel ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_header_compiler=yes
2031 ac_header_compiler=no
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045 ac_header_preproc=yes
2047 ac_header_preproc=no
2049 rm -f conftest.err conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2053 # So? What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077 $as_echo_n "(cached) " >&6
2079 eval "$3=\$ac_header_compiler"
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087 } # ac_fn_c_check_header_mongrel
2089 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2090 # ---------------------------------------------------------
2091 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2092 # the include files in INCLUDES and setting the cache variable VAR
2094 ac_fn_cxx_check_header_mongrel ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101 $as_echo_n "(cached) " >&6
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2107 # Is the header compilable?
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2109 $as_echo_n "checking $2 usability... " >&6; }
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2115 if ac_fn_cxx_try_compile "$LINENO"; then :
2116 ac_header_compiler=yes
2118 ac_header_compiler=no
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2122 $as_echo "$ac_header_compiler" >&6; }
2124 # Is the header present?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2126 $as_echo_n "checking $2 presence... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 if ac_fn_cxx_try_cpp "$LINENO"; then :
2132 ac_header_preproc=yes
2134 ac_header_preproc=no
2136 rm -f conftest.err conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2138 $as_echo "$ac_header_preproc" >&6; }
2140 # So? What about this header?
2141 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2144 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2150 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2152 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2154 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2156 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2166 eval "$3=\$ac_header_compiler"
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 } # ac_fn_cxx_check_header_mongrel
2176 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2177 # ---------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_cxx_check_type ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186 $as_echo_n "(cached) " >&6
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2201 if ac_fn_cxx_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 } # ac_fn_cxx_check_type
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2268 if ac_fn_c_try_compile "$LINENO"; then :
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 } # ac_fn_c_check_type
2283 cat >config.log <<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2287 It was created by PCRE $as_me 8.11, which was
2288 generated by GNU Autoconf 2.65. Invocation command line was
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2309 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 $as_echo "PATH: $as_dir"
2340 # Keep a trace of the command line.
2341 # Strip out --no-create and --no-recursion so they do not pile up.
2342 # Strip out --silent because we don't want to record it for future runs.
2343 # Also quote any args containing shell meta-characters.
2344 # Make two passes to allow for proper duplicate-argument suppression.
2348 ac_must_keep_next=false
2354 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356 | -silent | --silent | --silen | --sile | --sil)
2359 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2362 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2364 as_fn_append ac_configure_args1 " '$ac_arg'"
2365 if test $ac_must_keep_next = true; then
2366 ac_must_keep_next=false # Got value, back to normal.
2369 *=* | --config-cache | -C | -disable-* | --disable-* \
2370 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372 | -with-* | --with-* | -without-* | --without-* | --x)
2373 case "$ac_configure_args0 " in
2374 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377 -* ) ac_must_keep_next=true ;;
2380 as_fn_append ac_configure_args " '$ac_arg'"
2385 { ac_configure_args0=; unset ac_configure_args0;}
2386 { ac_configure_args1=; unset ac_configure_args1;}
2388 # When interrupted or exit'd, cleanup temporary files, and complete
2389 # config.log. We remove comments because anyway the quotes in there
2390 # would cause problems or look ugly.
2391 # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 trap 'exit_status=$?
2394 # Save into config.log some information that might help in debugging.
2399 ## ---------------- ##
2400 ## Cache variables. ##
2401 ## ---------------- ##
2404 # The following way of writing the cache mishandles newlines in values,
2406 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407 eval ac_val=\$$ac_var
2411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2415 _ | IFS | as_nl) ;; #(
2416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417 *) { eval $ac_var=; unset $ac_var;} ;;
2422 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423 *${as_nl}ac_space=\ *)
2425 "s/'\''/'\''\\\\'\'''\''/g;
2426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2437 ## ----------------- ##
2438 ## Output variables. ##
2439 ## ----------------- ##
2442 for ac_var in $ac_subst_vars
2444 eval ac_val=\$$ac_var
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 $as_echo "$ac_var='\''$ac_val'\''"
2452 if test -n "$ac_subst_files"; then
2454 ## ------------------- ##
2455 ## File substitutions. ##
2456 ## ------------------- ##
2459 for ac_var in $ac_subst_files
2461 eval ac_val=\$$ac_var
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 $as_echo "$ac_var='\''$ac_val'\''"
2470 if test -s confdefs.h; then
2480 test "$ac_signal" != 0 &&
2481 $as_echo "$as_me: caught signal $ac_signal"
2482 $as_echo "$as_me: exit $exit_status"
2484 rm -f core *.core core.conftest.* &&
2485 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488 for ac_signal in 1 2 13 15; do
2489 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2496 $as_echo "/* confdefs.h */" > confdefs.h
2498 # Predefined preprocessor variables.
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2529 if test -n "$CONFIG_SITE"; then
2530 ac_site_file1=$CONFIG_SITE
2531 elif test "x$prefix" != xNONE; then
2532 ac_site_file1=$prefix/share/config.site
2533 ac_site_file2=$prefix/etc/config.site
2535 ac_site_file1=$ac_default_prefix/share/config.site
2536 ac_site_file2=$ac_default_prefix/etc/config.site
2538 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2540 test "x$ac_site_file" = xNONE && continue
2541 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544 sed 's/^/| /' "$ac_site_file" >&5
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2566 # Check that the precious variables saved in the cache have kept the same
2568 ac_cache_corrupted=false
2569 for ac_var in $ac_precious_vars; do
2570 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571 eval ac_new_set=\$ac_env_${ac_var}_set
2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573 eval ac_new_val=\$ac_env_${ac_var}_value
2574 case $ac_old_set,$ac_new_set in
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2585 if test "x$ac_old_val" != "x$ac_new_val"; then
2586 # differences in whitespace do not lead to failure.
2587 ac_old_val_w=`echo x $ac_old_val`
2588 ac_new_val_w=`echo x $ac_new_val`
2589 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592 ac_cache_corrupted=:
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596 eval $ac_var=\$ac_old_val
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2604 # Pass precious variables to config.status.
2605 if test "$ac_new_set" = set; then
2607 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608 *) ac_arg=$ac_var=$ac_new_val ;;
2610 case " $ac_configure_args " in
2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616 if $ac_cache_corrupted; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623 ## -------------------- ##
2624 ## Main body of script. ##
2625 ## -------------------- ##
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 am__api_version='1.11'
2638 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2639 for ac_t in install-sh install.sh shtool; do
2640 if test -f "$ac_dir/$ac_t"; then
2642 ac_install_sh="$ac_aux_dir/$ac_t -c"
2647 if test -z "$ac_aux_dir"; then
2648 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2651 # These three variables are undocumented and unsupported,
2652 # and are intended to be withdrawn in a future Autoconf release.
2653 # They can cause serious problems if a builder's source tree is in a directory
2654 # whose full name contains unusual characters.
2655 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2656 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2657 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2660 # Find a good install program. We prefer a C program (faster),
2661 # so one script is as good as another. But avoid the broken or
2662 # incompatible versions:
2663 # SysV /etc/install, /usr/sbin/install
2664 # SunOS /usr/etc/install
2665 # IRIX /sbin/install
2667 # AmigaOS /C/install, which installs bootblocks on floppy discs
2668 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2671 # OS/2's system install, which has a completely different semantic
2672 # ./install, which can be erroneously created by make from ./install.sh.
2673 # Reject install programs that cannot install multiple files.
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2675 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2676 if test -z "$INSTALL"; then
2677 if test "${ac_cv_path_install+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 # Account for people who put trailing slashes in PATH elements.
2686 case $as_dir/ in #((
2687 ./ | .// | /[cC]/* | \
2688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692 # OSF1 and SCO ODT 3.0 have their own names for install.
2693 # Don't use installbsd from OSF since it installs stuff as root
2695 for ac_prog in ginstall scoinst install; do
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2698 if test $ac_prog = install &&
2699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700 # AIX install. It has an incompatible calling convention.
2702 elif test $ac_prog = install &&
2703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704 # program-specific install script used by HP pwplus--don't use.
2707 rm -rf conftest.one conftest.two conftest.dir
2708 echo one > conftest.one
2709 echo two > conftest.two
2711 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2712 test -s conftest.one && test -s conftest.two &&
2713 test -s conftest.dir/conftest.one &&
2714 test -s conftest.dir/conftest.two
2716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 rm -rf conftest.one conftest.two conftest.dir
2732 if test "${ac_cv_path_install+set}" = set; then
2733 INSTALL=$ac_cv_path_install
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 INSTALL=$ac_install_sh
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2743 $as_echo "$INSTALL" >&6; }
2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746 # It thinks the first close brace ends the variable substitution.
2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2754 $as_echo_n "checking whether build environment is sane... " >&6; }
2757 echo timestamp > conftest.file
2758 # Reject unsafe characters in $srcdir or the absolute working directory
2759 # name. Accept space and tab only in the latter.
2763 *[\\\"\#\$\&\'\`$am_lf]*)
2764 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2767 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2768 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2771 # Do `set' in a subshell so we don't clobber the current shell's
2772 # arguments. Must try -L first in case configure is actually a
2773 # symlink; some systems play weird games with the mod time of symlinks
2774 # (eg FreeBSD returns the mod time of the symlink's containing
2777 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2778 if test "$*" = "X"; then
2780 set X `ls -t "$srcdir/configure" conftest.file`
2783 if test "$*" != "X $srcdir/configure conftest.file" \
2784 && test "$*" != "X conftest.file $srcdir/configure"; then
2786 # If neither matched, then we have a broken ls. This can happen
2787 # if, for instance, CONFIG_SHELL is bash and it inherits a
2788 # broken ls alias from the environment. This has actually
2789 # happened. Such a system could not be considered "sane".
2790 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2791 alias in your environment" "$LINENO" 5
2794 test "$2" = conftest.file
2800 as_fn_error "newly created file is older than distributed files!
2801 Check your system clock" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2804 $as_echo "yes" >&6; }
2805 test "$program_prefix" != NONE &&
2806 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2807 # Use a double $ so make ignores it.
2808 test "$program_suffix" != NONE &&
2809 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2810 # Double any \ or $.
2811 # By default was `s,x,x', remove it if useless.
2812 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2813 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2815 # expand $ac_aux_dir to an absolute path
2816 am_aux_dir=`cd $ac_aux_dir && pwd`
2818 if test x"${MISSING+set}" != xset; then
2821 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2823 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2826 # Use eval to expand $SHELL
2827 if eval "$MISSING --run true"; then
2828 am_missing_run="$MISSING --run "
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2832 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2835 if test x"${install_sh}" != xset; then
2838 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2840 install_sh="\${SHELL} $am_aux_dir/install-sh"
2844 # Installed binaries are usually stripped using `strip' when the user
2845 # run `make install-strip'. However `strip' might not be the right
2846 # tool to use in cross-compilation environments, therefore Automake
2847 # will honor the `STRIP' environment variable to overrule this program.
2848 if test "$cross_compiling" != no; then
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}strip; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_STRIP+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2857 if test -n "$STRIP"; then
2858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 STRIP=$ac_cv_prog_STRIP
2878 if test -n "$STRIP"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2880 $as_echo "$STRIP" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2888 if test -z "$ac_cv_prog_STRIP"; then
2890 # Extract the first word of "strip", so it can be a program name with args.
2891 set dummy strip; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
2897 if test -n "$ac_ct_STRIP"; then
2898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_ac_ct_STRIP="strip"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2918 if test -n "$ac_ct_STRIP"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2920 $as_echo "$ac_ct_STRIP" >&6; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2926 if test "x$ac_ct_STRIP" = x; then
2929 case $cross_compiling:$ac_tool_warned in
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2938 STRIP="$ac_cv_prog_STRIP"
2942 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2945 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2946 if test -z "$MKDIR_P"; then
2947 if test "${ac_cv_path_mkdir+set}" = set; then :
2948 $as_echo_n "(cached) " >&6
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2954 test -z "$as_dir" && as_dir=.
2955 for ac_prog in mkdir gmkdir; do
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2958 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2959 'mkdir (GNU coreutils) '* | \
2960 'mkdir (coreutils) '* | \
2961 'mkdir (fileutils) '4.1*)
2962 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2972 test -d ./--version && rmdir ./--version
2973 if test "${ac_cv_path_mkdir+set}" = set; then
2974 MKDIR_P="$ac_cv_path_mkdir -p"
2976 # As a last resort, use the slow shell script. Don't cache a
2977 # value for MKDIR_P within a source directory, because that will
2978 # break other packages using the cache if that directory is
2979 # removed, or if the value is a relative name.
2980 MKDIR_P="$ac_install_sh -d"
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2984 $as_echo "$MKDIR_P" >&6; }
2988 [\\/$]* | ?:[\\/]*) ;;
2989 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2992 for ac_prog in gawk mawk nawk awk
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_AWK+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$AWK"; then
3002 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_AWK="$ac_prog"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 if test -n "$AWK"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3024 $as_echo "$AWK" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3031 test -n "$AWK" && break
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3035 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3038 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3039 $as_echo_n "(cached) " >&6
3041 cat >conftest.make <<\_ACEOF
3044 @echo '@@@%%%=$(MAKE)=@@@%%%'
3046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3047 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3049 eval ac_cv_prog_make_${ac_make}_set=yes;;
3051 eval ac_cv_prog_make_${ac_make}_set=no;;
3055 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 SET_MAKE="MAKE=${MAKE-make}"
3065 rm -rf .tst 2>/dev/null
3066 mkdir .tst 2>/dev/null
3067 if test -d .tst; then
3072 rmdir .tst 2>/dev/null
3074 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3075 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3076 # is not polluted with repeated "-I."
3077 am__isrc=' -I$(srcdir)'
3078 # test to see if srcdir already configured
3079 if test -f $srcdir/config.status; then
3080 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3084 # test whether we have cygpath
3085 if test -z "$CYGPATH_W"; then
3086 if (cygpath --version) >/dev/null 2>/dev/null; then
3087 CYGPATH_W='cygpath -w'
3094 # Define the identity of the package.
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE "$PACKAGE"
3104 cat >>confdefs.h <<_ACEOF
3105 #define VERSION "$VERSION"
3108 # Some tools Automake needs.
3110 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3113 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3116 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3119 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3122 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3124 # We need awk for the "check" target. The system "awk" is bad on
3126 # Always define AMTAR for backward compatibility.
3128 AMTAR=${AMTAR-"${am_missing_run}tar"}
3130 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3136 ac_config_headers="$ac_config_headers config.h"
3139 # This was added at the suggestion of libtoolize (03-Jan-10)
3142 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
3143 # "-g" for any other compiler. There doesn't seem to be a standard way of
3144 # getting rid of the -g (which I don't think is needed for a production
3145 # library). This fudge seems to achieve the necessary. First, we remember the
3146 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
3147 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
3148 # set, they will be set to Autoconf's defaults. Afterwards, if the original
3149 # values were not set, remove the -g from the Autoconf defaults.
3152 remember_set_CFLAGS="$CFLAGS"
3153 remember_set_CXXFLAGS="$CXXFLAGS"
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3199 if test -z "$ac_cv_prog_CC"; then
3201 # Extract the first word of "gcc", so it can be a program name with args.
3202 set dummy gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_ac_ct_CC="gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3237 if test "x$ac_ct_CC" = x; then
3240 case $cross_compiling:$ac_tool_warned in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3252 if test -z "$CC"; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271 ac_cv_prog_CC="${ac_tool_prefix}cc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3293 if test -z "$CC"; then
3294 # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313 ac_prog_rejected=yes
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 if test $ac_prog_rejected = yes; then
3325 # We found a bogon in the path, so make sure we never use it.
3326 set dummy $ac_cv_prog_CC
3328 if test $# != 0; then
3329 # We chose a different compiler from the bogus one.
3330 # However, it has the same basename, so the bogon will be chosen
3331 # first if we set CC to just the basename; use the full file name.
3333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 for ac_prog in cl.exe
3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then :
3358 $as_echo_n "(cached) " >&6
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3390 test -n "$CC" && break
3393 if test -z "$CC"; then
3395 for ac_prog in cl.exe
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$ac_ct_CC"; then
3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_ac_ct_CC="$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3427 $as_echo "$ac_ct_CC" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$ac_ct_CC" && break
3437 if test "x$ac_ct_CC" = x; then
3440 case $cross_compiling:$ac_tool_warned in
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error "no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details." "$LINENO" 5; }
3458 # Provide some information about the compiler.
3459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3462 for ac_option in --version -v -V -qversion; do
3463 { { ac_try="$ac_compiler $ac_option >&5"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3472 if test -s conftest.err; then
3474 ... rest of stderr output deleted ...
3475 10q' conftest.err >conftest.er1
3476 cat conftest.er1 >&5
3478 rm -f conftest.er1 conftest.err
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507 for ac_file in $ac_files
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516 if { { ac_try="$ac_link_default"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link_default") 2>&5
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3532 for ac_file in $ac_files ''
3534 test -f "$ac_file" || continue
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539 # We found the default executable, but exeext='' is most
3543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547 # We set ac_cv_exeext here because the later test for it is not
3548 # safe: cross compilers may not add the suffix if given an `-o'
3549 # argument, so we may need to know it at that point already.
3550 # Even if this section looks crufty: it has the advantage of
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3562 if test -z "$ac_file"; then :
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 { as_fn_set_status 77
3571 as_fn_error "C compiler cannot create executables
3572 See \`config.log' for more details." "$LINENO" 5; }; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3575 $as_echo "yes" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3578 $as_echo_n "checking for C compiler default output file name... " >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3580 $as_echo "$ac_file" >&6; }
3581 ac_exeext=$ac_cv_exeext
3583 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3584 ac_clean_files=$ac_clean_files_save
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3586 $as_echo_n "checking for suffix of executables... " >&6; }
3587 if { { ac_try="$ac_link"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_link") 2>&5
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }; then :
3598 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3599 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3600 # work properly (i.e., refer to `conftest.exe'), while it won't with
3602 for ac_file in conftest.exe conftest conftest.*; do
3603 test -f "$ac_file" || continue
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." "$LINENO" 5; }
3617 rm -f conftest conftest$ac_cv_exeext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3619 $as_echo "$ac_cv_exeext" >&6; }
3621 rm -f conftest.$ac_ext
3622 EXEEXT=$ac_cv_exeext
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3630 FILE *f = fopen ("conftest.out", "w");
3631 return ferror (f) || fclose (f) != 0;
3637 ac_clean_files="$ac_clean_files conftest.out"
3638 # Check that the compiler produces executables we can run. If not, either
3639 # the compiler is broken, or we cross compile.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3641 $as_echo_n "checking whether we are cross compiling... " >&6; }
3642 if test "$cross_compiling" != yes; then
3643 { { ac_try="$ac_link"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_link") 2>&5
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }
3654 if { ac_try='./conftest$ac_cv_exeext'
3655 { { case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_try") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; }; then
3667 if test "$cross_compiling" = maybe; then
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error "cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details." "$LINENO" 5; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3679 $as_echo "$cross_compiling" >&6; }
3681 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3682 ac_clean_files=$ac_clean_files_save
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3684 $as_echo_n "checking for suffix of object files... " >&6; }
3685 if test "${ac_cv_objext+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3699 rm -f conftest.o conftest.obj
3700 if { { ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_compile") 2>&5
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
3711 for ac_file in conftest.o conftest.obj conftest.*; do
3712 test -f "$ac_file" || continue;
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error "cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." "$LINENO" 5; }
3728 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3731 $as_echo "$ac_cv_objext" >&6; }
3732 OBJEXT=$ac_cv_objext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3735 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3736 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3753 if ac_fn_c_try_compile "$LINENO"; then :
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3763 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3764 if test $ac_compiler_gnu = yes; then
3769 ac_test_CFLAGS=${CFLAGS+set}
3770 ac_save_CFLAGS=$CFLAGS
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3772 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3773 if test "${ac_cv_prog_cc_g+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3776 ac_save_c_werror_flag=$ac_c_werror_flag
3777 ac_c_werror_flag=yes
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 if ac_fn_c_try_compile "$LINENO"; then :
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3822 if ac_fn_c_try_compile "$LINENO"; then :
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_c_werror_flag=$ac_save_c_werror_flag
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3833 $as_echo "$ac_cv_prog_cc_g" >&6; }
3834 if test "$ac_test_CFLAGS" = set; then
3835 CFLAGS=$ac_save_CFLAGS
3836 elif test $ac_cv_prog_cc_g = yes; then
3837 if test "$GCC" = yes; then
3843 if test "$GCC" = yes; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3850 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3851 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 ac_cv_prog_cc_c89=no
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3860 #include <sys/types.h>
3861 #include <sys/stat.h>
3862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3863 struct buf { int x; };
3864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865 static char *e (p, i)
3871 static char *f (char * (*g) (char **, int), char **p, ...)
3876 s = g (p, va_arg (v,int));
3881 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3882 function prototypes and stuff, but not '\xHH' hex character constants.
3883 These don't provoke an error unfortunately, instead are silently treated
3884 as 'x'. The following induces an error, until -std is added to get
3885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3886 array size at least. It's necessary to write '\x00'==0 to get something
3887 that's true only with -std. */
3888 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3890 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891 inside strings and character constants. */
3893 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3895 int test (int i, double x);
3896 struct s1 {int (*f) (int a);};
3897 struct s2 {int (*f) (double a);};
3898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3912 CC="$ac_save_CC $ac_arg"
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_prog_cc_c89=$ac_arg
3916 rm -f core conftest.err conftest.$ac_objext
3917 test "x$ac_cv_prog_cc_c89" != "xno" && break
3919 rm -f conftest.$ac_ext
3924 case "x$ac_cv_prog_cc_c89" in
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927 $as_echo "none needed" >&6; } ;;
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930 $as_echo "unsupported" >&6; } ;;
3932 CC="$CC $ac_cv_prog_cc_c89"
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3936 if test "x$ac_cv_prog_cc_c89" != xno; then :
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 DEPDIR="${am__leading_dot}deps"
3947 ac_config_commands="$ac_config_commands depfiles"
3950 am_make=${MAKE-make}
3951 cat > confinc << 'END'
3953 @echo this is the am__doit target
3956 # If we don't find an include directive, just comment out the code.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3958 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3962 # First try GNU make style include.
3963 echo "include confinc" > confmf
3964 # Ignore all kinds of additional output from `make'.
3965 case `$am_make -s -f confmf 2> /dev/null` in #(
3966 *the\ am__doit\ target*)
3972 # Now try BSD make style include.
3973 if test "$am__include" = "#"; then
3974 echo '.include "confinc"' > confmf
3975 case `$am_make -s -f confmf 2> /dev/null` in #(
3976 *the\ am__doit\ target*)
3977 am__include=.include
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3986 $as_echo "$_am_result" >&6; }
3987 rm -f confinc confmf
3989 # Check whether --enable-dependency-tracking was given.
3990 if test "${enable_dependency_tracking+set}" = set; then :
3991 enableval=$enable_dependency_tracking;
3994 if test "x$enable_dependency_tracking" != xno; then
3995 am_depcomp="$ac_aux_dir/depcomp"
3998 if test "x$enable_dependency_tracking" != xno; then
4008 depcc="$CC" am_compiler_list=
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4011 $as_echo_n "checking dependency style of $depcc... " >&6; }
4012 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016 # We make a subdir and do the tests there. Otherwise we can end up
4017 # making bogus files that we don't know about and never remove. For
4018 # instance it was reported that on HP-UX the gcc test will end up
4019 # making a dummy file named `D' -- because `-MD' means `put the output
4022 # Copy depcomp to subdir because otherwise we won't find it if we're
4023 # using a relative directory.
4024 cp "$am_depcomp" conftest.dir
4026 # We will build objects and dependencies in a subdirectory because
4027 # it helps to detect inapplicable dependency modes. For instance
4028 # both Tru64's cc and ICC support -MD to output dependencies as a
4029 # side effect of compilation, but ICC will put the dependencies in
4030 # the current directory while Tru64 will put them in the object
4034 am_cv_CC_dependencies_compiler_type=none
4035 if test "$am_compiler_list" = ""; then
4036 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4039 case " $depcc " in #(
4040 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4043 for depmode in $am_compiler_list; do
4044 # Setup a source with many dependencies, because some compilers
4045 # like to wrap large dependency lists on column 80 (with \), and
4046 # we should not choose a depcomp mode which is confused by this.
4048 # We need to recreate these files for each test, as the compiler may
4049 # overwrite some of them when testing with obscure command lines.
4050 # This happens at least with the AIX C compiler.
4052 for i in 1 2 3 4 5 6; do
4053 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4055 # Solaris 8's {/usr,}/bin/sh.
4056 touch sub/conftst$i.h
4058 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4060 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4061 # mode. It turns out that the SunPro C++ compiler does not properly
4062 # handle `-M -o', and we need to detect this. Also, some Intel
4063 # versions had trouble with output in subdirs
4064 am__obj=sub/conftest.${OBJEXT-o}
4065 am__minus_obj="-o $am__obj"
4068 # This depmode causes a compiler race in universal mode.
4069 test "$am__universal" = false || continue
4072 # after this tag, mechanisms are not by side-effect, so they'll
4073 # only be used when explicitly requested
4074 if test "x$enable_dependency_tracking" = xyes; then
4080 msvisualcpp | msvcmsys)
4081 # This compiler won't grok `-c -o', but also, the minuso test has
4082 # not run yet. These depmodes are late enough in the game, and
4083 # so weak that their functioning should not be impacted.
4084 am__obj=conftest.${OBJEXT-o}
4089 if depmode=$depmode \
4090 source=sub/conftest.c object=$am__obj \
4091 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4092 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4093 >/dev/null 2>conftest.err &&
4094 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4095 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4097 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098 # icc doesn't choke on unknown options, it will just issue warnings
4099 # or remarks (even with -Werror). So we grep stderr for any message
4100 # that says an option was ignored or not supported.
4101 # When given -MP, icc 7.0 and 7.1 complain thusly:
4102 # icc: Command line warning: ignoring option '-M'; no argument required
4103 # The diagnosis changed in icc 8.0:
4104 # icc: Command line remark: option '-MP' not supported
4105 if (grep 'ignoring option' conftest.err ||
4106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107 am_cv_CC_dependencies_compiler_type=$depmode
4116 am_cv_CC_dependencies_compiler_type=none
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4121 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4122 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4125 test "x$enable_dependency_tracking" != xno \
4126 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4128 am__fastdepCC_FALSE='#'
4130 am__fastdepCC_TRUE='#'
4131 am__fastdepCC_FALSE=
4136 ac_cpp='$CXXCPP $CPPFLAGS'
4137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4140 if test -z "$CXX"; then
4141 if test -n "$CCC"; then
4144 if test -n "$ac_tool_prefix"; then
4145 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_CXX+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -n "$CXX"; then
4155 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 if test -n "$CXX"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4177 $as_echo "$CXX" >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4184 test -n "$CXX" && break
4187 if test -z "$CXX"; then
4189 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4191 # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4198 if test -n "$ac_ct_CXX"; then
4199 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_ac_ct_CXX="$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4219 if test -n "$ac_ct_CXX"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4221 $as_echo "$ac_ct_CXX" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4228 test -n "$ac_ct_CXX" && break
4231 if test "x$ac_ct_CXX" = x; then
4234 case $cross_compiling:$ac_tool_warned in
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4246 # Provide some information about the compiler.
4247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4250 for ac_option in --version -v -V -qversion; do
4251 { { ac_try="$ac_compiler $ac_option >&5"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4260 if test -s conftest.err; then
4262 ... rest of stderr output deleted ...
4263 10q' conftest.err >conftest.er1
4264 cat conftest.er1 >&5
4266 rm -f conftest.er1 conftest.err
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4272 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4273 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4290 if ac_fn_cxx_try_compile "$LINENO"; then :
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4300 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4301 if test $ac_compiler_gnu = yes; then
4306 ac_test_CXXFLAGS=${CXXFLAGS+set}
4307 ac_save_CXXFLAGS=$CXXFLAGS
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4309 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4310 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4314 ac_cxx_werror_flag=yes
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4328 if ac_fn_cxx_try_compile "$LINENO"; then :
4329 ac_cv_prog_cxx_g=yes
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4343 if ac_fn_cxx_try_compile "$LINENO"; then :
4346 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4360 ac_cv_prog_cxx_g=yes
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4370 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4371 if test "$ac_test_CXXFLAGS" = set; then
4372 CXXFLAGS=$ac_save_CXXFLAGS
4373 elif test $ac_cv_prog_cxx_g = yes; then
4374 if test "$GXX" = yes; then
4380 if test "$GXX" = yes; then
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 depcc="$CXX" am_compiler_list=
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4395 $as_echo_n "checking dependency style of $depcc... " >&6; }
4396 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4400 # We make a subdir and do the tests there. Otherwise we can end up
4401 # making bogus files that we don't know about and never remove. For
4402 # instance it was reported that on HP-UX the gcc test will end up
4403 # making a dummy file named `D' -- because `-MD' means `put the output
4406 # Copy depcomp to subdir because otherwise we won't find it if we're
4407 # using a relative directory.
4408 cp "$am_depcomp" conftest.dir
4410 # We will build objects and dependencies in a subdirectory because
4411 # it helps to detect inapplicable dependency modes. For instance
4412 # both Tru64's cc and ICC support -MD to output dependencies as a
4413 # side effect of compilation, but ICC will put the dependencies in
4414 # the current directory while Tru64 will put them in the object
4418 am_cv_CXX_dependencies_compiler_type=none
4419 if test "$am_compiler_list" = ""; then
4420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4423 case " $depcc " in #(
4424 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4427 for depmode in $am_compiler_list; do
4428 # Setup a source with many dependencies, because some compilers
4429 # like to wrap large dependency lists on column 80 (with \), and
4430 # we should not choose a depcomp mode which is confused by this.
4432 # We need to recreate these files for each test, as the compiler may
4433 # overwrite some of them when testing with obscure command lines.
4434 # This happens at least with the AIX C compiler.
4436 for i in 1 2 3 4 5 6; do
4437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4439 # Solaris 8's {/usr,}/bin/sh.
4440 touch sub/conftst$i.h
4442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4444 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4445 # mode. It turns out that the SunPro C++ compiler does not properly
4446 # handle `-M -o', and we need to detect this. Also, some Intel
4447 # versions had trouble with output in subdirs
4448 am__obj=sub/conftest.${OBJEXT-o}
4449 am__minus_obj="-o $am__obj"
4452 # This depmode causes a compiler race in universal mode.
4453 test "$am__universal" = false || continue
4456 # after this tag, mechanisms are not by side-effect, so they'll
4457 # only be used when explicitly requested
4458 if test "x$enable_dependency_tracking" = xyes; then
4464 msvisualcpp | msvcmsys)
4465 # This compiler won't grok `-c -o', but also, the minuso test has
4466 # not run yet. These depmodes are late enough in the game, and
4467 # so weak that their functioning should not be impacted.
4468 am__obj=conftest.${OBJEXT-o}
4473 if depmode=$depmode \
4474 source=sub/conftest.c object=$am__obj \
4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4477 >/dev/null 2>conftest.err &&
4478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4482 # icc doesn't choke on unknown options, it will just issue warnings
4483 # or remarks (even with -Werror). So we grep stderr for any message
4484 # that says an option was ignored or not supported.
4485 # When given -MP, icc 7.0 and 7.1 complain thusly:
4486 # icc: Command line warning: ignoring option '-M'; no argument required
4487 # The diagnosis changed in icc 8.0:
4488 # icc: Command line remark: option '-MP' not supported
4489 if (grep 'ignoring option' conftest.err ||
4490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4491 am_cv_CXX_dependencies_compiler_type=$depmode
4500 am_cv_CXX_dependencies_compiler_type=none
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4505 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4506 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4509 test "x$enable_dependency_tracking" != xno \
4510 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4511 am__fastdepCXX_TRUE=
4512 am__fastdepCXX_FALSE='#'
4514 am__fastdepCXX_TRUE='#'
4515 am__fastdepCXX_FALSE=
4520 if test "x$remember_set_CFLAGS" = "x"
4522 if test "$CFLAGS" = "-g -O2"
4525 elif test "$CFLAGS" = "-g"
4531 if test "x$remember_set_CXXFLAGS" = "x"
4533 if test "$CXXFLAGS" = "-g -O2"
4536 elif test "$CXXFLAGS" = "-g"
4542 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4543 # Check for that case, and just disable c++ code if g++ doesn't run.
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 CXX=""; CXXCP=""; CXXFLAGS=""
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 # Check for a 64-bit integer type
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4584 # On Suns, sometimes $CPP names a directory.
4585 if test -n "$CPP" && test -d "$CPP"; then
4588 if test -z "$CPP"; then
4589 if test "${ac_cv_prog_CPP+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4592 # Double quotes because CPP needs to be expanded
4593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4596 for ac_c_preproc_warn_flag in '' yes
4598 # Use a header file that comes with gcc, so configuring glibc
4599 # with a fresh cross-compiler works.
4600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601 # <limits.h> exists even on freestanding compilers.
4602 # On the NeXT, cc -E runs the code through the compiler's parser,
4603 # not just through cpp. "Syntax error" is here to catch this case.
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4607 # include <limits.h>
4609 # include <assert.h>
4613 if ac_fn_c_try_cpp "$LINENO"; then :
4616 # Broken: fails on valid input.
4619 rm -f conftest.err conftest.$ac_ext
4621 # OK, works on sane cases. Now check whether nonexistent headers
4622 # can be detected and how.
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #include <ac_nonexistent.h>
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4628 # Broken: success on invalid input.
4631 # Passes both tests.
4635 rm -f conftest.err conftest.$ac_ext
4638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4639 rm -f conftest.err conftest.$ac_ext
4640 if $ac_preproc_ok; then :
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4653 $as_echo "$CPP" >&6; }
4655 for ac_c_preproc_warn_flag in '' yes
4657 # Use a header file that comes with gcc, so configuring glibc
4658 # with a fresh cross-compiler works.
4659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 # <limits.h> exists even on freestanding compilers.
4661 # On the NeXT, cc -E runs the code through the compiler's parser,
4662 # not just through cpp. "Syntax error" is here to catch this case.
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4666 # include <limits.h>
4668 # include <assert.h>
4672 if ac_fn_c_try_cpp "$LINENO"; then :
4675 # Broken: fails on valid input.
4678 rm -f conftest.err conftest.$ac_ext
4680 # OK, works on sane cases. Now check whether nonexistent headers
4681 # can be detected and how.
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <ac_nonexistent.h>
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687 # Broken: success on invalid input.
4690 # Passes both tests.
4694 rm -f conftest.err conftest.$ac_ext
4697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4698 rm -f conftest.err conftest.$ac_ext
4699 if $ac_preproc_ok; then :
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4705 See \`config.log' for more details." "$LINENO" 5; }
4709 ac_cpp='$CPP $CPPFLAGS'
4710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4716 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4717 if test "${ac_cv_path_GREP+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -z "$GREP"; then
4721 ac_path_GREP_found=false
4722 # Loop through the user's path and test for each of PROGNAME-LIST
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727 test -z "$as_dir" && as_dir=.
4728 for ac_prog in grep ggrep; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4731 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4732 # Check for GNU ac_path_GREP and select it if it is found.
4733 # Check for GNU $ac_path_GREP
4734 case `"$ac_path_GREP" --version 2>&1` in
4736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4739 $as_echo_n 0123456789 >"conftest.in"
4742 cat "conftest.in" "conftest.in" >"conftest.tmp"
4743 mv "conftest.tmp" "conftest.in"
4744 cp "conftest.in" "conftest.nl"
4745 $as_echo 'GREP' >> "conftest.nl"
4746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748 as_fn_arith $ac_count + 1 && ac_count=$as_val
4749 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4750 # Best one so far, save it but keep looking for a better one
4751 ac_cv_path_GREP="$ac_path_GREP"
4752 ac_path_GREP_max=$ac_count
4754 # 10*(2^10) chars as input seems more than enough
4755 test $ac_count -gt 10 && break
4757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760 $ac_path_GREP_found && break 3
4765 if test -z "$ac_cv_path_GREP"; then
4766 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4769 ac_cv_path_GREP=$GREP
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4774 $as_echo "$ac_cv_path_GREP" >&6; }
4775 GREP="$ac_cv_path_GREP"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4779 $as_echo_n "checking for egrep... " >&6; }
4780 if test "${ac_cv_path_EGREP+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4784 then ac_cv_path_EGREP="$GREP -E"
4786 if test -z "$EGREP"; then
4787 ac_path_EGREP_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793 test -z "$as_dir" && as_dir=.
4794 for ac_prog in egrep; do
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4797 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4798 # Check for GNU ac_path_EGREP and select it if it is found.
4799 # Check for GNU $ac_path_EGREP
4800 case `"$ac_path_EGREP" --version 2>&1` in
4802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4805 $as_echo_n 0123456789 >"conftest.in"
4808 cat "conftest.in" "conftest.in" >"conftest.tmp"
4809 mv "conftest.tmp" "conftest.in"
4810 cp "conftest.in" "conftest.nl"
4811 $as_echo 'EGREP' >> "conftest.nl"
4812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814 as_fn_arith $ac_count + 1 && ac_count=$as_val
4815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4816 # Best one so far, save it but keep looking for a better one
4817 ac_cv_path_EGREP="$ac_path_EGREP"
4818 ac_path_EGREP_max=$ac_count
4820 # 10*(2^10) chars as input seems more than enough
4821 test $ac_count -gt 10 && break
4823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 $ac_path_EGREP_found && break 3
4831 if test -z "$ac_cv_path_EGREP"; then
4832 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4835 ac_cv_path_EGREP=$EGREP
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4841 $as_echo "$ac_cv_path_EGREP" >&6; }
4842 EGREP="$ac_cv_path_EGREP"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4846 $as_echo_n "checking for ANSI C header files... " >&6; }
4847 if test "${ac_cv_header_stdc+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_cv_header_stdc=yes
4868 ac_cv_header_stdc=no
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 if test $ac_cv_header_stdc = yes; then
4873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "memchr" >/dev/null 2>&1; then :
4883 ac_cv_header_stdc=no
4889 if test $ac_cv_header_stdc = yes; then
4890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev/null 2>&1; then :
4900 ac_cv_header_stdc=no
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then :
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4938 if ac_fn_c_try_run "$LINENO"; then :
4941 ac_cv_header_stdc=no
4943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4944 conftest.$ac_objext conftest.beam conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4950 $as_echo "$ac_cv_header_stdc" >&6; }
4951 if test $ac_cv_header_stdc = yes; then
4953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4959 inttypes.h stdint.h unistd.h
4961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4964 eval as_val=\$$as_ac_Header
4965 if test "x$as_val" = x""yes; then :
4966 cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
4976 case $ac_cv_c_int64_t in #(
4980 cat >>confdefs.h <<_ACEOF
4981 #define int64_t $ac_cv_c_int64_t
4988 # Make sure we can run config.sub.
4989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4990 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4993 $as_echo_n "checking build system type... " >&6; }
4994 if test "${ac_cv_build+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 ac_build_alias=$build_alias
4998 test "x$ac_build_alias" = x &&
4999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5000 test "x$ac_build_alias" = x &&
5001 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5003 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5007 $as_echo "$ac_cv_build" >&6; }
5008 case $ac_cv_build in
5010 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5013 ac_save_IFS=$IFS; IFS='-'
5019 # Remember, the first character of IFS is used to create $*,
5020 # except with old shells:
5023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5027 $as_echo_n "checking host system type... " >&6; }
5028 if test "${ac_cv_host+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5031 if test "x$host_alias" = x; then
5032 ac_cv_host=$ac_cv_build
5034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5035 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5040 $as_echo "$ac_cv_host" >&6; }
5043 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5046 ac_save_IFS=$IFS; IFS='-'
5052 # Remember, the first character of IFS is used to create $*,
5053 # except with old shells:
5056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5059 enable_win32_dll=yes
5062 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}as; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_AS+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5071 if test -n "$AS"; then
5072 ac_cv_prog_AS="$AS" # Let the user override the test.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_AS="${ac_tool_prefix}as"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 if test -n "$AS"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5094 $as_echo "$AS" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5102 if test -z "$ac_cv_prog_AS"; then
5104 # Extract the first word of "as", so it can be a program name with args.
5105 set dummy as; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -n "$ac_ct_AS"; then
5112 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_AS="as"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5132 if test -n "$ac_ct_AS"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5134 $as_echo "$ac_ct_AS" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5140 if test "x$ac_ct_AS" = x; then
5143 case $cross_compiling:$ac_tool_warned in
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$DLLTOOL"; then
5164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 DLLTOOL=$ac_cv_prog_DLLTOOL
5184 if test -n "$DLLTOOL"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5186 $as_echo "$DLLTOOL" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5194 if test -z "$ac_cv_prog_DLLTOOL"; then
5195 ac_ct_DLLTOOL=$DLLTOOL
5196 # Extract the first word of "dlltool", so it can be a program name with args.
5197 set dummy dlltool; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -n "$ac_ct_DLLTOOL"; then
5204 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5224 if test -n "$ac_ct_DLLTOOL"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5226 $as_echo "$ac_ct_DLLTOOL" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5232 if test "x$ac_ct_DLLTOOL" = x; then
5235 case $cross_compiling:$ac_tool_warned in
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5241 DLLTOOL=$ac_ct_DLLTOOL
5244 DLLTOOL="$ac_cv_prog_DLLTOOL"
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -n "$OBJDUMP"; then
5256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 OBJDUMP=$ac_cv_prog_OBJDUMP
5276 if test -n "$OBJDUMP"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5278 $as_echo "$OBJDUMP" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5286 if test -z "$ac_cv_prog_OBJDUMP"; then
5287 ac_ct_OBJDUMP=$OBJDUMP
5288 # Extract the first word of "objdump", so it can be a program name with args.
5289 set dummy objdump; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 if test -n "$ac_ct_OBJDUMP"; then
5296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5316 if test -n "$ac_ct_OBJDUMP"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5318 $as_echo "$ac_ct_OBJDUMP" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5324 if test "x$ac_ct_OBJDUMP" = x; then
5327 case $cross_compiling:$ac_tool_warned in
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331 ac_tool_warned=yes ;;
5333 OBJDUMP=$ac_ct_OBJDUMP
5336 OBJDUMP="$ac_cv_prog_OBJDUMP"
5342 test -z "$AS" && AS=as
5348 test -z "$DLLTOOL" && DLLTOOL=dlltool
5354 test -z "$OBJDUMP" && OBJDUMP=objdump
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5365 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5370 macro_version='2.2.10'
5371 macro_revision='1.3175'
5385 ltmain="$ac_aux_dir/ltmain.sh"
5387 # Backslashify metacharacters that are still active within
5388 # double-quoted strings.
5389 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5391 # Same as above, but do not quote variable references.
5392 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5394 # Sed substitution to delay expansion of an escaped shell variable in a
5395 # double_quote_subst'ed string.
5396 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5398 # Sed substitution to delay expansion of an escaped single quote.
5399 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5401 # Sed substitution to avoid accidental globbing in evaled expressions
5402 no_glob_subst='s/\*/\\\*/g'
5404 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5405 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5406 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5409 $as_echo_n "checking how to print strings... " >&6; }
5410 # Test print first, because it will be a builtin if present.
5411 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5412 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5414 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5417 # Use this function as a fallback that always works.
5418 func_fallback_echo ()
5420 eval 'cat <<_LTECHO_EOF
5424 ECHO='func_fallback_echo'
5427 # func_echo_all arg...
5428 # Invoke $ECHO with all args, space-separated.
5435 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5436 $as_echo "printf" >&6; } ;;
5437 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5438 $as_echo "print -r" >&6; } ;;
5439 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5440 $as_echo "cat" >&6; } ;;
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5457 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5458 if test "${ac_cv_path_SED+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5461 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5462 for ac_i in 1 2 3 4 5 6 7; do
5463 ac_script="$ac_script$as_nl$ac_script"
5465 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5466 { ac_script=; unset ac_script;}
5467 if test -z "$SED"; then
5468 ac_path_SED_found=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_prog in sed gsed; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5478 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5479 # Check for GNU ac_path_SED and select it if it is found.
5480 # Check for GNU $ac_path_SED
5481 case `"$ac_path_SED" --version 2>&1` in
5483 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5486 $as_echo_n 0123456789 >"conftest.in"
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo '' >> "conftest.nl"
5493 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_SED_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_SED="$ac_path_SED"
5499 ac_path_SED_max=$ac_count
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507 $ac_path_SED_found && break 3
5512 if test -z "$ac_cv_path_SED"; then
5513 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5521 $as_echo "$ac_cv_path_SED" >&6; }
5522 SED="$ac_cv_path_SED"
5525 test -z "$SED" && SED=sed
5526 Xsed="$SED -e 1s/^X//"
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5539 $as_echo_n "checking for fgrep... " >&6; }
5540 if test "${ac_cv_path_FGREP+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5543 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5544 then ac_cv_path_FGREP="$GREP -F"
5546 if test -z "$FGREP"; then
5547 ac_path_FGREP_found=false
5548 # Loop through the user's path and test for each of PROGNAME-LIST
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5553 test -z "$as_dir" && as_dir=.
5554 for ac_prog in fgrep; do
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5557 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5558 # Check for GNU ac_path_FGREP and select it if it is found.
5559 # Check for GNU $ac_path_FGREP
5560 case `"$ac_path_FGREP" --version 2>&1` in
5562 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5565 $as_echo_n 0123456789 >"conftest.in"
5568 cat "conftest.in" "conftest.in" >"conftest.tmp"
5569 mv "conftest.tmp" "conftest.in"
5570 cp "conftest.in" "conftest.nl"
5571 $as_echo 'FGREP' >> "conftest.nl"
5572 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574 as_fn_arith $ac_count + 1 && ac_count=$as_val
5575 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5576 # Best one so far, save it but keep looking for a better one
5577 ac_cv_path_FGREP="$ac_path_FGREP"
5578 ac_path_FGREP_max=$ac_count
5580 # 10*(2^10) chars as input seems more than enough
5581 test $ac_count -gt 10 && break
5583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 $ac_path_FGREP_found && break 3
5591 if test -z "$ac_cv_path_FGREP"; then
5592 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5595 ac_cv_path_FGREP=$FGREP
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5601 $as_echo "$ac_cv_path_FGREP" >&6; }
5602 FGREP="$ac_cv_path_FGREP"
5605 test -z "$GREP" && GREP=grep
5625 # Check whether --with-gnu-ld was given.
5626 if test "${with_gnu_ld+set}" = set; then :
5627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5633 if test "$GCC" = yes; then
5634 # Check if gcc -print-prog-name=ld gives a path.
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5636 $as_echo_n "checking for ld used by $CC... " >&6; }
5639 # gcc leaves a trailing carriage return which upsets mingw
5640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5645 # Accept absolute paths.
5647 re_direlt='/[^/][^/]*/\.\./'
5648 # Canonicalize the pathname of ld
5649 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5650 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5651 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5653 test -z "$LD" && LD="$ac_prog"
5656 # If it fails, then pretend we aren't using GCC.
5660 # If it is relative, then search for the first ld in PATH.
5664 elif test "$with_gnu_ld" = yes; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5666 $as_echo_n "checking for GNU ld... " >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5669 $as_echo_n "checking for non-GNU ld... " >&6; }
5671 if test "${lt_cv_path_LD+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -z "$LD"; then
5675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5676 for ac_dir in $PATH; do
5678 test -z "$ac_dir" && ac_dir=.
5679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5680 lt_cv_path_LD="$ac_dir/$ac_prog"
5681 # Check to see if the program is GNU ld. I'd rather use --version,
5682 # but apparently some variants of GNU ld only accept -v.
5683 # Break only if it was the GNU/non-GNU ld that we prefer.
5684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5685 *GNU* | *'with BFD'*)
5686 test "$with_gnu_ld" != no && break
5689 test "$with_gnu_ld" != yes && break
5696 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5701 if test -n "$LD"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5703 $as_echo "$LD" >&6; }
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5708 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5711 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5714 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5715 case `$LD -v 2>&1 </dev/null` in
5716 *GNU* | *'with BFD'*)
5717 lt_cv_prog_gnu_ld=yes
5720 lt_cv_prog_gnu_ld=no
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5725 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5726 with_gnu_ld=$lt_cv_prog_gnu_ld
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5737 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5738 if test "${lt_cv_path_NM+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5741 if test -n "$NM"; then
5742 # Let the user override the test.
5745 lt_nm_to_check="${ac_tool_prefix}nm"
5746 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5747 lt_nm_to_check="$lt_nm_to_check nm"
5749 for lt_tmp_nm in $lt_nm_to_check; do
5750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5753 test -z "$ac_dir" && ac_dir=.
5754 tmp_nm="$ac_dir/$lt_tmp_nm"
5755 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5756 # Check to see if the nm accepts a BSD-compat flag.
5757 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5758 # nm: unknown option "B" ignored
5759 # Tru64's nm complains that /dev/null is an invalid object file
5760 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5761 */dev/null* | *'Invalid file or object type'*)
5762 lt_cv_path_NM="$tmp_nm -B"
5766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5768 lt_cv_path_NM="$tmp_nm -p"
5772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5773 continue # so that we can try to find one that supports BSD flags
5782 : ${lt_cv_path_NM=no}
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5786 $as_echo "$lt_cv_path_NM" >&6; }
5787 if test "$lt_cv_path_NM" != "no"; then
5790 # Didn't find any BSD compatible name lister, look for dumpbin.
5791 if test -n "$DUMPBIN"; then :
5792 # Let the user override the test.
5794 if test -n "$ac_tool_prefix"; then
5795 for ac_prog in dumpbin "link -dump"
5797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 if test -n "$DUMPBIN"; then
5805 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 DUMPBIN=$ac_cv_prog_DUMPBIN
5825 if test -n "$DUMPBIN"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5827 $as_echo "$DUMPBIN" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5834 test -n "$DUMPBIN" && break
5837 if test -z "$DUMPBIN"; then
5838 ac_ct_DUMPBIN=$DUMPBIN
5839 for ac_prog in dumpbin "link -dump"
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$ac_ct_DUMPBIN"; then
5849 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5869 if test -n "$ac_ct_DUMPBIN"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5871 $as_echo "$ac_ct_DUMPBIN" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5878 test -n "$ac_ct_DUMPBIN" && break
5881 if test "x$ac_ct_DUMPBIN" = x; then
5884 case $cross_compiling:$ac_tool_warned in
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5890 DUMPBIN=$ac_ct_DUMPBIN
5894 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5896 DUMPBIN="$DUMPBIN -symbols"
5904 if test "$DUMPBIN" != ":"; then
5908 test -z "$NM" && NM=nm
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5916 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5917 if test "${lt_cv_nm_interface+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5920 lt_cv_nm_interface="BSD nm"
5921 echo "int some_variable = 0;" > conftest.$ac_ext
5922 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5923 (eval "$ac_compile" 2>conftest.err)
5924 cat conftest.err >&5
5925 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5926 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5927 cat conftest.err >&5
5928 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5929 cat conftest.out >&5
5930 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5931 lt_cv_nm_interface="MS dumpbin"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5936 $as_echo "$lt_cv_nm_interface" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5939 $as_echo_n "checking whether ln -s works... " >&6; }
5941 if test "$LN_S" = "ln -s"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943 $as_echo "yes" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5946 $as_echo "no, using $LN_S" >&6; }
5949 # find the maximum length of command line arguments
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5951 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5952 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5960 # On DJGPP, this test can blow up pretty badly due to problems in libc
5961 # (any single argument exceeding 2000 bytes causes a buffer overrun
5962 # during glob expansion). Even if it were fixed, the result of this
5963 # check would be larger than it should be.
5964 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5968 # Under GNU Hurd, this test is not required because there is
5969 # no limit to the length of command line arguments.
5970 # Libtool will interpret -1 as no limit whatsoever
5971 lt_cv_sys_max_cmd_len=-1;
5974 cygwin* | mingw* | cegcc*)
5975 # On Win9x/ME, this test blows up -- it succeeds, but takes
5976 # about 5 minutes as the teststring grows exponentially.
5977 # Worse, since 9x/ME are not pre-emptively multitasking,
5978 # you end up with a "frozen" computer, even though with patience
5979 # the test eventually succeeds (with a max line length of 256k).
5980 # Instead, let's just punt: use the minimum linelength reported by
5981 # all of the supported platforms: 8192 (on NT/2K/XP).
5982 lt_cv_sys_max_cmd_len=8192;
5986 # On MiNT this can take a long time and run out of memory.
5987 lt_cv_sys_max_cmd_len=8192;
5991 # On AmigaOS with pdksh, this test takes hours, literally.
5992 # So we just punt and use a minimum line length of 8192.
5993 lt_cv_sys_max_cmd_len=8192;
5996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5997 # This has been around since 386BSD, at least. Likely further.
5998 if test -x /sbin/sysctl; then
5999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6000 elif test -x /usr/sbin/sysctl; then
6001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6005 # And add a safety zone
6006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6011 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6012 lt_cv_sys_max_cmd_len=196608
6016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6018 # nice to cause kernel panics so lets avoid the loop below.
6019 # First set a reasonable default.
6020 lt_cv_sys_max_cmd_len=16384
6022 if test -x /sbin/sysconfig; then
6023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6024 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6029 lt_cv_sys_max_cmd_len=102400
6031 sysv5* | sco5v6* | sysv4.2uw2*)
6032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6033 if test -n "$kargmax"; then
6034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6036 lt_cv_sys_max_cmd_len=32768
6040 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6041 if test -n "$lt_cv_sys_max_cmd_len"; then
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6045 # Make teststring a little bigger before we do anything with it.
6046 # a 1K string should be a reasonable start.
6047 for i in 1 2 3 4 5 6 7 8 ; do
6048 teststring=$teststring$teststring
6050 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6051 # If test is not a shell built-in, we'll probably end up computing a
6052 # maximum length that is only half of the actual maximum length, but
6054 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6055 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6056 test $i != 17 # 1/2 MB should be enough
6059 teststring=$teststring$teststring
6061 # Only check the string length outside the loop.
6062 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6064 # Add a significant safety factor because C++ compilers can tack on
6065 # massive amounts of additional arguments before passing them to the
6066 # linker. It appears as though 1/2 is a usable value.
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6074 if test -n $lt_cv_sys_max_cmd_len ; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6076 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6079 $as_echo "none" >&6; }
6081 max_cmd_len=$lt_cv_sys_max_cmd_len
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6093 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6094 # Try some XSI features
6097 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6099 && eval 'test $(( 1 + 1 )) -eq 2 \
6100 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6103 $as_echo "$xsi_shell" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6107 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6109 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6111 && lt_shell_append=yes
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6113 $as_echo "$lt_shell_append" >&6; }
6116 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6126 # test EBCDIC or ASCII
6127 case `echo X|tr X '\101'` in
6128 A) # ASCII based system
6129 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6130 lt_SP2NL='tr \040 \012'
6131 lt_NL2SP='tr \015\012 \040\040'
6133 *) # EBCDIC based system
6134 lt_SP2NL='tr \100 \n'
6135 lt_NL2SP='tr \r\n \100\100'
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6148 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6149 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 lt_cv_ld_reload_flag='-r'
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6155 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6156 reload_flag=$lt_cv_ld_reload_flag
6157 case $reload_flag in
6159 *) reload_flag=" $reload_flag" ;;
6161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6164 if test "$GCC" = yes; then
6165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$OBJDUMP"; then
6189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 OBJDUMP=$ac_cv_prog_OBJDUMP
6209 if test -n "$OBJDUMP"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6211 $as_echo "$OBJDUMP" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6219 if test -z "$ac_cv_prog_OBJDUMP"; then
6220 ac_ct_OBJDUMP=$OBJDUMP
6221 # Extract the first word of "objdump", so it can be a program name with args.
6222 set dummy objdump; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -n "$ac_ct_OBJDUMP"; then
6229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6249 if test -n "$ac_ct_OBJDUMP"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6251 $as_echo "$ac_ct_OBJDUMP" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6257 if test "x$ac_ct_OBJDUMP" = x; then
6260 case $cross_compiling:$ac_tool_warned in
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6266 OBJDUMP=$ac_ct_OBJDUMP
6269 OBJDUMP="$ac_cv_prog_OBJDUMP"
6272 test -z "$OBJDUMP" && OBJDUMP=objdump
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6281 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6284 lt_cv_file_magic_cmd='$MAGIC_CMD'
6285 lt_cv_file_magic_test_file=
6286 lt_cv_deplibs_check_method='unknown'
6287 # Need to set the preceding variable on all platforms that support
6288 # interlibrary dependencies.
6289 # 'none' -- dependencies not supported.
6290 # `unknown' -- same as none, but documents that we really don't know.
6291 # 'pass_all' -- all dependencies passed with no checks.
6292 # 'test_compile' -- check by making test program.
6293 # 'file_magic [[regex]]' -- check by looking for files in library path
6294 # which responds to the $file_magic_cmd with a given extended regex.
6295 # If you have `file' or equivalent on your system and you're not sure
6296 # whether `pass_all' will *always* work, you probably want this one.
6300 lt_cv_deplibs_check_method=pass_all
6304 lt_cv_deplibs_check_method=pass_all
6308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6309 lt_cv_file_magic_cmd='/usr/bin/file -L'
6310 lt_cv_file_magic_test_file=/shlib/libc.so
6314 # func_win32_libid is a shell function defined in ltmain.sh
6315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6316 lt_cv_file_magic_cmd='func_win32_libid'
6320 # Base MSYS/MinGW do not provide the 'file' command needed by
6321 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6322 # unless we find 'file', for example because we are cross-compiling.
6323 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6324 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6326 lt_cv_file_magic_cmd='func_win32_libid'
6328 # Keep this pattern in sync with the one in func_win32_libid.
6329 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6330 lt_cv_file_magic_cmd='$OBJDUMP -f'
6335 # use the weaker test based on 'objdump'. See mingw*.
6336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6337 lt_cv_file_magic_cmd='$OBJDUMP -f'
6340 darwin* | rhapsody*)
6341 lt_cv_deplibs_check_method=pass_all
6344 freebsd* | dragonfly*)
6345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6348 # Not sure whether the presence of OpenBSD here was a mistake.
6349 # Let's accept both of them until this is cleared up.
6350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6351 lt_cv_file_magic_cmd=/usr/bin/file
6352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6356 lt_cv_deplibs_check_method=pass_all
6361 lt_cv_deplibs_check_method=pass_all
6365 lt_cv_deplibs_check_method=pass_all
6368 hpux10.20* | hpux11*)
6369 lt_cv_file_magic_cmd=/usr/bin/file
6372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6376 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]'
6377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6391 irix5* | irix6* | nonstopux*)
6393 *-32|*"-32 ") libmagic=32-bit;;
6394 *-n32|*"-n32 ") libmagic=N32;;
6395 *-64|*"-64 ") libmagic=64-bit;;
6396 *) libmagic=never-match;;
6398 lt_cv_deplibs_check_method=pass_all
6401 # This must be Linux ELF.
6402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6403 lt_cv_deplibs_check_method=pass_all
6407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6421 lt_cv_deplibs_check_method=pass_all
6425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6432 osf3* | osf4* | osf5*)
6433 lt_cv_deplibs_check_method=pass_all
6437 lt_cv_deplibs_check_method=pass_all
6441 lt_cv_deplibs_check_method=pass_all
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445 lt_cv_deplibs_check_method=pass_all
6449 case $host_vendor in
6451 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]'
6452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6455 lt_cv_deplibs_check_method=pass_all
6458 lt_cv_file_magic_cmd='/bin/file'
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6462 lt_cv_file_magic_cmd='/bin/file'
6463 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464 lt_cv_file_magic_test_file=/lib/libc.so
6467 lt_cv_deplibs_check_method=pass_all
6470 lt_cv_deplibs_check_method=pass_all
6476 lt_cv_deplibs_check_method=pass_all
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6482 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}ar; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_AR+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$AR"; then
6507 ac_cv_prog_AR="$AR" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_AR="${ac_tool_prefix}ar"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 if test -n "$AR"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6529 $as_echo "$AR" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6537 if test -z "$ac_cv_prog_AR"; then
6539 # Extract the first word of "ar", so it can be a program name with args.
6540 set dummy ar; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6546 if test -n "$ac_ct_AR"; then
6547 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_AR="ar"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6567 if test -n "$ac_ct_AR"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6569 $as_echo "$ac_ct_AR" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6575 if test "x$ac_ct_AR" = x; then
6578 case $cross_compiling:$ac_tool_warned in
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6590 test -z "$AR" && AR=ar
6591 test -z "$AR_FLAGS" && AR_FLAGS=cru
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}strip; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_STRIP+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$STRIP"; then
6612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 STRIP=$ac_cv_prog_STRIP
6632 if test -n "$STRIP"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6634 $as_echo "$STRIP" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6642 if test -z "$ac_cv_prog_STRIP"; then
6644 # Extract the first word of "strip", so it can be a program name with args.
6645 set dummy strip; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 if test -n "$ac_ct_STRIP"; then
6652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_STRIP="strip"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6672 if test -n "$ac_ct_STRIP"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6674 $as_echo "$ac_ct_STRIP" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6680 if test "x$ac_ct_STRIP" = x; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6692 STRIP="$ac_cv_prog_STRIP"
6695 test -z "$STRIP" && STRIP=:
6702 if test -n "$ac_tool_prefix"; then
6703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}ranlib; 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 test "${ac_cv_prog_RANLIB+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6710 if test -n "$RANLIB"; then
6711 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 RANLIB=$ac_cv_prog_RANLIB
6731 if test -n "$RANLIB"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6733 $as_echo "$RANLIB" >&6; }
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6741 if test -z "$ac_cv_prog_RANLIB"; then
6742 ac_ct_RANLIB=$RANLIB
6743 # Extract the first word of "ranlib", so it can be a program name with args.
6744 set dummy ranlib; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6748 $as_echo_n "(cached) " >&6
6750 if test -n "$ac_ct_RANLIB"; then
6751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_prog_ac_ct_RANLIB="ranlib"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6771 if test -n "$ac_ct_RANLIB"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6773 $as_echo "$ac_ct_RANLIB" >&6; }
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6779 if test "x$ac_ct_RANLIB" = x; then
6782 case $cross_compiling:$ac_tool_warned in
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786 ac_tool_warned=yes ;;
6788 RANLIB=$ac_ct_RANLIB
6791 RANLIB="$ac_cv_prog_RANLIB"
6794 test -z "$RANLIB" && RANLIB=:
6801 # Determine commands to create old-style static archives.
6802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6803 old_postinstall_cmds='chmod 644 $oldlib'
6804 old_postuninstall_cmds=
6806 if test -n "$RANLIB"; then
6809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6820 lock_old_archive_extraction=yes ;;
6822 lock_old_archive_extraction=no ;;
6863 # If no C compiler was specified, use CC.
6866 # If no C compiler flags were specified, use CFLAGS.
6867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6869 # Allow CC to be a program name with arguments.
6873 # Check for command to grab the raw symbol name followed by C symbol from nm.
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6880 # These are sane defaults that work on at least a few old systems.
6881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6883 # Character class describing NM global symbol codes.
6884 symcode='[BCDEGRST]'
6886 # Regexp to match symbols that can be accessed directly from C.
6887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6889 # Define system-specific variables.
6894 cygwin* | mingw* | pw32* | cegcc*)
6895 symcode='[ABCDGISTW]'
6898 if test "$host_cpu" = ia64; then
6899 symcode='[ABCDEGRST]'
6903 symcode='[BCDEGRST]'
6906 symcode='[BCDEGQRST]'
6917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6925 # If we're using GNU nm, then use its standard symbol codes.
6926 case `$NM -V 2>&1` in
6927 *GNU* | *'with BFD'*)
6928 symcode='[ABCDGIRSTW]' ;;
6931 # Transform an extracted symbol line into a proper C declaration.
6932 # Some systems (esp. on ia64) link data and code symbols differently,
6933 # so use this general approach.
6934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6936 # Transform an extracted symbol line into symbol name and symbol address
6937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6938 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'"
6940 # Handle CRLF in mingw tool chain
6944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6948 # Try without a prefix underscore, then with it.
6949 for ac_symprfx in "" "_"; do
6951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6952 symxfrm="\\1 $ac_symprfx\\2 \\2"
6954 # Write the raw and C identifiers.
6955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6956 # Fake it for dumpbin and say T for any non-static function
6957 # and D for any global variable.
6958 # Also find C++ and __fastcall symbols from MSVC++,
6959 # which start with @ or ?.
6960 lt_cv_sys_global_symbol_pipe="$AWK '"\
6961 " {last_section=section; section=\$ 3};"\
6962 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6963 " \$ 0!~/External *\|/{next};"\
6964 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6965 " {if(hide[section]) next};"\
6966 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6967 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6968 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6969 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6970 " ' prfx=^$ac_symprfx"
6972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6975 # Check to see that the pipe works correctly.
6979 cat > conftest.$ac_ext <<_LT_EOF
6984 void nm_test_func(void);
6985 void nm_test_func(void){}
6989 int main(){nm_test_var='a';nm_test_func();return(0);}
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 # Now try to grab the symbols.
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7000 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; } && test -s "$nlist"; then
7004 # Try sorting and uniquifying the output.
7005 if sort "$nlist" | uniq > "$nlist"T; then
7006 mv -f "$nlist"T "$nlist"
7011 # Make sure that we snagged all the symbols we need.
7012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7014 cat <<_LT_EOF > conftest.$ac_ext
7020 # Now generate the symbol file.
7021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7023 cat <<_LT_EOF >> conftest.$ac_ext
7025 /* The mapping between symbol names and symbols. */
7030 lt__PROGRAM__LTX_preloaded_symbols[] =
7032 { "@PROGRAM@", (void *) 0 },
7034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7035 cat <<\_LT_EOF >> conftest.$ac_ext
7039 /* This works around a problem in FreeBSD linker */
7040 #ifdef FREEBSD_WORKAROUND
7041 static const void *lt_preloaded_setup() {
7042 return lt__PROGRAM__LTX_preloaded_symbols;
7050 # Now try linking the two files.
7051 mv conftest.$ac_objext conftstm.$ac_objext
7052 lt_save_LIBS="$LIBS"
7053 lt_save_CFLAGS="$CFLAGS"
7054 LIBS="conftstm.$ac_objext"
7055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7057 (eval $ac_link) 2>&5
7059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7063 LIBS="$lt_save_LIBS"
7064 CFLAGS="$lt_save_CFLAGS"
7066 echo "cannot find nm_test_func in $nlist" >&5
7069 echo "cannot find nm_test_var in $nlist" >&5
7072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7075 echo "$progname: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 rm -rf conftest* conftst*
7080 # Do not use the global_symbol_pipe unless it works.
7081 if test "$pipe_works" = yes; then
7084 lt_cv_sys_global_symbol_pipe=
7090 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7091 lt_cv_sys_global_symbol_to_cdecl=
7093 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7095 $as_echo "failed" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7098 $as_echo "ok" >&6; }
7122 # Check whether --enable-libtool-lock was given.
7123 if test "${enable_libtool_lock+set}" = set; then :
7124 enableval=$enable_libtool_lock;
7127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7129 # Some flags need to be propagated to the compiler or linker for good
7133 # Find out which ABI we are using.
7134 echo 'int i;' > conftest.$ac_ext
7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136 (eval $ac_compile) 2>&5
7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139 test $ac_status = 0; }; then
7140 case `/usr/bin/file conftest.$ac_objext` in
7152 # Find out which ABI we are using.
7153 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155 (eval $ac_compile) 2>&5
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7159 if test "$lt_cv_prog_gnu_ld" = yes; then
7160 case `/usr/bin/file conftest.$ac_objext` in
7162 LD="${LD-ld} -melf32bsmip"
7165 LD="${LD-ld} -melf32bmipn32"
7168 LD="${LD-ld} -melf64bmip"
7172 case `/usr/bin/file conftest.$ac_objext` in
7188 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7189 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7190 # Find out which ABI we are using.
7191 echo 'int i;' > conftest.$ac_ext
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7193 (eval $ac_compile) 2>&5
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; }; then
7197 case `/usr/bin/file conftest.o` in
7200 x86_64-*kfreebsd*-gnu)
7201 LD="${LD-ld} -m elf_i386_fbsd"
7204 LD="${LD-ld} -m elf_i386"
7206 ppc64-*linux*|powerpc64-*linux*)
7207 LD="${LD-ld} -m elf32ppclinux"
7210 LD="${LD-ld} -m elf_s390"
7213 LD="${LD-ld} -m elf32_sparc"
7219 x86_64-*kfreebsd*-gnu)
7220 LD="${LD-ld} -m elf_x86_64_fbsd"
7223 LD="${LD-ld} -m elf_x86_64"
7225 ppc*-*linux*|powerpc*-*linux*)
7226 LD="${LD-ld} -m elf64ppc"
7228 s390*-*linux*|s390*-*tpf*)
7229 LD="${LD-ld} -m elf64_s390"
7232 LD="${LD-ld} -m elf64_sparc"
7242 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7243 SAVE_CFLAGS="$CFLAGS"
7244 CFLAGS="$CFLAGS -belf"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7246 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7247 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 lt_cv_cc_needs_belf=yes
7270 lt_cv_cc_needs_belf=no
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7282 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7285 CFLAGS="$SAVE_CFLAGS"
7289 # Find out which ABI we are using.
7290 echo 'int i;' > conftest.$ac_ext
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292 (eval $ac_compile) 2>&5
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }; then
7296 case `/usr/bin/file conftest.o` in
7298 case $lt_cv_prog_gnu_ld in
7299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7301 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313 need_locks="$enable_libtool_lock"
7317 rhapsody* | darwin*)
7318 if test -n "$ac_tool_prefix"; then
7319 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7326 if test -n "$DSYMUTIL"; then
7327 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7347 if test -n "$DSYMUTIL"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7349 $as_echo "$DSYMUTIL" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 if test -z "$ac_cv_prog_DSYMUTIL"; then
7358 ac_ct_DSYMUTIL=$DSYMUTIL
7359 # Extract the first word of "dsymutil", so it can be a program name with args.
7360 set dummy dsymutil; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7366 if test -n "$ac_ct_DSYMUTIL"; then
7367 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7387 if test -n "$ac_ct_DSYMUTIL"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7389 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7395 if test "x$ac_ct_DSYMUTIL" = x; then
7398 case $cross_compiling:$ac_tool_warned in
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7404 DSYMUTIL=$ac_ct_DSYMUTIL
7407 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$NMEDIT"; then
7419 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 NMEDIT=$ac_cv_prog_NMEDIT
7439 if test -n "$NMEDIT"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7441 $as_echo "$NMEDIT" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7449 if test -z "$ac_cv_prog_NMEDIT"; then
7450 ac_ct_NMEDIT=$NMEDIT
7451 # Extract the first word of "nmedit", so it can be a program name with args.
7452 set dummy nmedit; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$ac_ct_NMEDIT"; then
7459 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7479 if test -n "$ac_ct_NMEDIT"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7481 $as_echo "$ac_ct_NMEDIT" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7487 if test "x$ac_ct_NMEDIT" = x; then
7490 case $cross_compiling:$ac_tool_warned in
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7496 NMEDIT=$ac_ct_NMEDIT
7499 NMEDIT="$ac_cv_prog_NMEDIT"
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if test "${ac_cv_prog_LIPO+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
7510 if test -n "$LIPO"; then
7511 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 LIPO=$ac_cv_prog_LIPO
7531 if test -n "$LIPO"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7533 $as_echo "$LIPO" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7541 if test -z "$ac_cv_prog_LIPO"; then
7543 # Extract the first word of "lipo", so it can be a program name with args.
7544 set dummy lipo; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7550 if test -n "$ac_ct_LIPO"; then
7551 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_prog_ac_ct_LIPO="lipo"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7571 if test -n "$ac_ct_LIPO"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7573 $as_echo "$ac_ct_LIPO" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7579 if test "x$ac_ct_LIPO" = x; then
7582 case $cross_compiling:$ac_tool_warned in
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7591 LIPO="$ac_cv_prog_LIPO"
7594 if test -n "$ac_tool_prefix"; then
7595 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}otool; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$OTOOL"; then
7603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 OTOOL=$ac_cv_prog_OTOOL
7623 if test -n "$OTOOL"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7625 $as_echo "$OTOOL" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7633 if test -z "$ac_cv_prog_OTOOL"; then
7635 # Extract the first word of "otool", so it can be a program name with args.
7636 set dummy otool; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$ac_ct_OTOOL"; then
7643 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_ac_ct_OTOOL="otool"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663 if test -n "$ac_ct_OTOOL"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7665 $as_echo "$ac_ct_OTOOL" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7671 if test "x$ac_ct_OTOOL" = x; then
7674 case $cross_compiling:$ac_tool_warned in
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7683 OTOOL="$ac_cv_prog_OTOOL"
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7694 if test -n "$OTOOL64"; then
7695 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 OTOOL64=$ac_cv_prog_OTOOL64
7715 if test -n "$OTOOL64"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7717 $as_echo "$OTOOL64" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_OTOOL64"; then
7726 ac_ct_OTOOL64=$OTOOL64
7727 # Extract the first word of "otool64", so it can be a program name with args.
7728 set dummy otool64; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$ac_ct_OTOOL64"; then
7735 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_ac_ct_OTOOL64="otool64"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7755 if test -n "$ac_ct_OTOOL64"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7757 $as_echo "$ac_ct_OTOOL64" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7763 if test "x$ac_ct_OTOOL64" = x; then
7766 case $cross_compiling:$ac_tool_warned in
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7772 OTOOL64=$ac_ct_OTOOL64
7775 OTOOL64="$ac_cv_prog_OTOOL64"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7805 $as_echo_n "checking for -single_module linker flag... " >&6; }
7806 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7809 lt_cv_apple_cc_single_mod=no
7810 if test -z "${LT_MULTI_MODULE}"; then
7811 # By default we will add the -single_module flag. You can override
7812 # by either setting the environment variable LT_MULTI_MODULE
7813 # non-empty at configure time, or by adding -multi_module to the
7815 rm -rf libconftest.dylib*
7816 echo "int foo(void){return 1;}" > conftest.c
7817 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818 -dynamiclib -Wl,-single_module conftest.c" >&5
7819 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7822 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7823 lt_cv_apple_cc_single_mod=yes
7825 cat conftest.err >&5
7827 rm -rf libconftest.dylib*
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7832 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7834 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7835 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7838 lt_cv_ld_exported_symbols_list=no
7839 save_LDFLAGS=$LDFLAGS
7840 echo "_main" > conftest.sym
7841 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7853 if ac_fn_c_try_link "$LINENO"; then :
7854 lt_cv_ld_exported_symbols_list=yes
7856 lt_cv_ld_exported_symbols_list=no
7858 rm -f core conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 LDFLAGS="$save_LDFLAGS"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7864 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7866 $as_echo_n "checking for -force_load linker flag... " >&6; }
7867 if test "${lt_cv_ld_force_load+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7870 lt_cv_ld_force_load=no
7871 cat > conftest.c << _LT_EOF
7872 int forced_loaded() { return 2;}
7874 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7875 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7876 echo "$AR cru libconftest.a conftest.o" >&5
7877 $AR cru libconftest.a conftest.o 2>&5
7878 echo "$RANLIB libconftest.a" >&5
7879 $RANLIB libconftest.a 2>&5
7880 cat > conftest.c << _LT_EOF
7881 int main() { return 0;}
7883 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7884 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7886 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7887 lt_cv_ld_force_load=yes
7889 cat conftest.err >&5
7891 rm -f conftest.err libconftest.a conftest conftest.c
7892 rm -rf conftest.dSYM
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7896 $as_echo "$lt_cv_ld_force_load" >&6; }
7898 rhapsody* | darwin1.[012])
7899 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7901 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902 darwin*) # darwin 5.x on
7903 # if running on 10.5 or later, the deployment target defaults
7904 # to the OS version, if on x86, and 10.4, the deployment
7905 # target defaults to 10.4. Don't you love it?
7906 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7907 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7908 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7910 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7912 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7916 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7917 _lt_dar_single_mod='$single_module'
7919 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7920 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7922 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7924 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7925 _lt_dsymutil='~$DSYMUTIL $lib || :'
7932 for ac_header in dlfcn.h
7934 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7936 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_DLFCN_H 1
7957 # Check whether --enable-shared was given.
7958 if test "${enable_shared+set}" = set; then :
7959 enableval=$enable_shared; p=${PACKAGE-default}
7961 yes) enable_shared=yes ;;
7962 no) enable_shared=no ;;
7965 # Look at the argument we got. We use all the common list separators.
7966 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7967 for pkg in $enableval; do
7969 if test "X$pkg" = "X$p"; then
7988 # Check whether --enable-static was given.
7989 if test "${enable_static+set}" = set; then :
7990 enableval=$enable_static; p=${PACKAGE-default}
7992 yes) enable_static=yes ;;
7993 no) enable_static=no ;;
7996 # Look at the argument we got. We use all the common list separators.
7997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7998 for pkg in $enableval; do
8000 if test "X$pkg" = "X$p"; then
8020 # Check whether --with-pic was given.
8021 if test "${with_pic+set}" = set; then :
8022 withval=$with_pic; pic_mode="$withval"
8028 test -z "$pic_mode" && pic_mode=default
8036 # Check whether --enable-fast-install was given.
8037 if test "${enable_fast_install+set}" = set; then :
8038 enableval=$enable_fast_install; p=${PACKAGE-default}
8040 yes) enable_fast_install=yes ;;
8041 no) enable_fast_install=no ;;
8043 enable_fast_install=no
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8048 if test "X$pkg" = "X$p"; then
8049 enable_fast_install=yes
8056 enable_fast_install=yes
8069 # This can be used to rebuild libtool when needed
8070 LIBTOOL_DEPS="$ltmain"
8072 # Always use our own libtool.
8073 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8100 test -z "$LN_S" && LN_S="ln -s"
8115 if test -n "${ZSH_VERSION+set}" ; then
8116 setopt NO_GLOB_SUBST
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8120 $as_echo_n "checking for objdir... " >&6; }
8121 if test "${lt_cv_objdir+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8124 rm -f .libs 2>/dev/null
8125 mkdir .libs 2>/dev/null
8126 if test -d .libs; then
8129 # MS-DOS does not allow filenames that begin with a dot.
8132 rmdir .libs 2>/dev/null
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8135 $as_echo "$lt_cv_objdir" >&6; }
8136 objdir=$lt_cv_objdir
8142 cat >>confdefs.h <<_ACEOF
8143 #define LT_OBJDIR "$lt_cv_objdir/"
8151 # AIX sometimes has problems with the GCC collect2 program. For some
8152 # reason, if we set the COLLECT_NAMES environment variable, the problems
8153 # vanish in a puff of smoke.
8154 if test "X${COLLECT_NAMES+set}" != Xset; then
8156 export COLLECT_NAMES
8163 can_build_shared=yes
8165 # All known linkers require a `.a' archive for static linking (except MSVC,
8166 # which needs '.lib').
8169 with_gnu_ld="$lt_cv_prog_gnu_ld"
8172 old_CFLAGS="$CFLAGS"
8174 # Set sane defaults for various variables
8175 test -z "$CC" && CC=cc
8176 test -z "$LTCC" && LTCC=$CC
8177 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8178 test -z "$LD" && LD=ld
8179 test -z "$ac_objext" && ac_objext=o
8181 for cc_temp in $compiler""; do
8183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8189 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8192 # Only perform the check for file, if the check method requires it
8193 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8194 case $deplibs_check_method in
8196 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8198 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8199 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8204 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207 lt_save_MAGIC_CMD="$MAGIC_CMD"
8208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8209 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8210 for ac_dir in $ac_dummy; do
8212 test -z "$ac_dir" && ac_dir=.
8213 if test -f $ac_dir/${ac_tool_prefix}file; then
8214 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8215 if test -n "$file_magic_test_file"; then
8216 case $deplibs_check_method in
8218 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8221 $EGREP "$file_magic_regex" > /dev/null; then
8226 *** Warning: the command libtool uses to detect shared libraries,
8227 *** $file_magic_cmd, produces output that libtool cannot recognize.
8228 *** The result is that libtool may fail to recognize shared libraries
8229 *** as such. This will affect the creation of libtool libraries that
8230 *** depend on shared libraries, but programs linked with such libtool
8231 *** libraries will work regardless of this problem. Nevertheless, you
8232 *** may want to report the problem to your system manager and/or to
8233 *** bug-libtool@gnu.org
8243 MAGIC_CMD="$lt_save_MAGIC_CMD"
8248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249 if test -n "$MAGIC_CMD"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8251 $as_echo "$MAGIC_CMD" >&6; }
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8261 if test -z "$lt_cv_path_MAGIC_CMD"; then
8262 if test -n "$ac_tool_prefix"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8264 $as_echo_n "checking for file... " >&6; }
8265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273 lt_save_MAGIC_CMD="$MAGIC_CMD"
8274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8276 for ac_dir in $ac_dummy; do
8278 test -z "$ac_dir" && ac_dir=.
8279 if test -f $ac_dir/file; then
8280 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8281 if test -n "$file_magic_test_file"; then
8282 case $deplibs_check_method in
8284 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8287 $EGREP "$file_magic_regex" > /dev/null; then
8292 *** Warning: the command libtool uses to detect shared libraries,
8293 *** $file_magic_cmd, produces output that libtool cannot recognize.
8294 *** The result is that libtool may fail to recognize shared libraries
8295 *** as such. This will affect the creation of libtool libraries that
8296 *** depend on shared libraries, but programs linked with such libtool
8297 *** libraries will work regardless of this problem. Nevertheless, you
8298 *** may want to report the problem to your system manager and/or to
8299 *** bug-libtool@gnu.org
8309 MAGIC_CMD="$lt_save_MAGIC_CMD"
8314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315 if test -n "$MAGIC_CMD"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8317 $as_echo "$MAGIC_CMD" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8333 # Use C for the default configuration in the libtool script
8337 ac_cpp='$CPP $CPPFLAGS'
8338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343 # Source file extension for C test sources.
8346 # Object file extension for compiled C test sources.
8350 # Code to be used in simple compile tests
8351 lt_simple_compile_test_code="int some_variable = 0;"
8353 # Code to be used in simple link tests
8354 lt_simple_link_test_code='int main(){return(0);}'
8362 # If no C compiler was specified, use CC.
8365 # If no C compiler flags were specified, use CFLAGS.
8366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8368 # Allow CC to be a program name with arguments.
8371 # Save the default compiler, since it gets overwritten when the other
8372 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8373 compiler_DEFAULT=$CC
8375 # save warnings/boilerplate of simple test code
8376 ac_outfile=conftest.$ac_objext
8377 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8379 _lt_compiler_boilerplate=`cat conftest.err`
8382 ac_outfile=conftest.$ac_objext
8383 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8385 _lt_linker_boilerplate=`cat conftest.err`
8389 if test -n "$compiler"; then
8391 lt_prog_compiler_no_builtin_flag=
8393 if test "$GCC" = yes; then
8394 case $cc_basename in
8396 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8398 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8402 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8403 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8406 lt_cv_prog_compiler_rtti_exceptions=no
8407 ac_outfile=conftest.$ac_objext
8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409 lt_compiler_flag="-fno-rtti -fno-exceptions"
8410 # Insert the option either (1) after the last *FLAGS variable, or
8411 # (2) before a word containing "conftest.", or (3) at the end.
8412 # Note that $ac_compile itself does not contain backslashes and begins
8413 # with a dollar sign (not a hyphen), so the echo should work correctly.
8414 # The option is referenced via a variable to avoid confusing sed.
8415 lt_compile=`echo "$ac_compile" | $SED \
8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418 -e 's:$: $lt_compiler_flag:'`
8419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8420 (eval "$lt_compile" 2>conftest.err)
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 if (exit $ac_status) && test -s "$ac_outfile"; then
8425 # The compiler can only warn and ignore the option if not recognized
8426 # So say no if there are warnings other than the usual output.
8427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8430 lt_cv_prog_compiler_rtti_exceptions=yes
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8437 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8440 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8452 lt_prog_compiler_wl=
8453 lt_prog_compiler_pic=
8454 lt_prog_compiler_static=
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8457 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8459 if test "$GCC" = yes; then
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_static='-static'
8465 # All AIX code is PIC.
8466 if test "$host_cpu" = ia64; then
8467 # AIX 5 now supports IA64 processor
8468 lt_prog_compiler_static='-Bstatic'
8475 # see comment about AmigaOS4 .so support
8476 lt_prog_compiler_pic='-fPIC'
8479 # FIXME: we need at least 68020 code to build shared libraries, but
8480 # adding the `-m68020' flag to GCC prevents building anything better,
8482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8488 # PIC is the default for these OSes.
8491 mingw* | cygwin* | pw32* | os2* | cegcc*)
8492 # This hack is so that the source file can tell whether it is being
8493 # built for inclusion in a dll (and should export symbols for example).
8494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8495 # (--disable-auto-import) libraries
8496 lt_prog_compiler_pic='-DDLL_EXPORT'
8499 darwin* | rhapsody*)
8500 # PIC is the default on this platform
8501 # Common symbols not allowed in MH_DYLIB files
8502 lt_prog_compiler_pic='-fno-common'
8506 # PIC is the default for Haiku.
8507 # The "-static" flag exists, but is broken.
8508 lt_prog_compiler_static=
8512 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8513 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8514 # sets the default TLS model and affects inlining.
8520 lt_prog_compiler_pic='-fPIC'
8526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8527 # Instead, we relocate shared libraries at runtime.
8531 # Just because we use GCC doesn't mean we suddenly get shared libraries
8532 # on systems that don't support them.
8533 lt_prog_compiler_can_build_shared=no
8538 # QNX uses GNU C++, but need to define -shared option too, otherwise
8540 lt_prog_compiler_pic='-fPIC -shared'
8544 if test -d /usr/nec; then
8545 lt_prog_compiler_pic=-Kconform_pic
8550 lt_prog_compiler_pic='-fPIC'
8554 case $cc_basename in
8555 nvcc*) # Cuda Compiler Driver 2.2
8556 lt_prog_compiler_wl='-Xlinker '
8557 lt_prog_compiler_pic='-Xcompiler -fPIC'
8561 # PORTME Check for flag to pass linker flags through the system compiler.
8564 lt_prog_compiler_wl='-Wl,'
8565 if test "$host_cpu" = ia64; then
8566 # AIX 5 now supports IA64 processor
8567 lt_prog_compiler_static='-Bstatic'
8569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8573 mingw* | cygwin* | pw32* | os2* | cegcc*)
8574 # This hack is so that the source file can tell whether it is being
8575 # built for inclusion in a dll (and should export symbols for example).
8576 lt_prog_compiler_pic='-DDLL_EXPORT'
8579 hpux9* | hpux10* | hpux11*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8588 lt_prog_compiler_pic='+Z'
8591 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8592 lt_prog_compiler_static='${wl}-a ${wl}archive'
8595 irix5* | irix6* | nonstopux*)
8596 lt_prog_compiler_wl='-Wl,'
8597 # PIC (with -KPIC) is the default.
8598 lt_prog_compiler_static='-non_shared'
8601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8602 case $cc_basename in
8603 # old Intel for x86_64 which still supported -KPIC.
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_pic='-KPIC'
8607 lt_prog_compiler_static='-static'
8609 # icc used to be incompatible with GCC.
8610 # ICC 10 doesn't accept -KPIC any more.
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-fPIC'
8614 lt_prog_compiler_static='-static'
8616 # Lahey Fortran 8.1.
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_pic='--shared'
8620 lt_prog_compiler_static='--static'
8622 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8623 # Portland Group compilers (*not* the Pentium gcc compiler,
8624 # which looks to be a dead project)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-fpic'
8627 lt_prog_compiler_static='-Bstatic'
8630 lt_prog_compiler_wl='-Wl,'
8631 # All Alpha code is PIC.
8632 lt_prog_compiler_static='-non_shared'
8634 xl* | bgxl* | bgf* | mpixl*)
8635 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-qpic'
8638 lt_prog_compiler_static='-qstaticlink'
8641 case `$CC -V 2>&1 | sed 5q` in
8642 *Sun\ F* | *Sun*Fortran*)
8643 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8644 lt_prog_compiler_pic='-KPIC'
8645 lt_prog_compiler_static='-Bstatic'
8646 lt_prog_compiler_wl=''
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8652 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8665 # QNX uses GNU C++, but need to define -shared option too, otherwise
8667 lt_prog_compiler_pic='-fPIC -shared'
8670 osf3* | osf4* | osf5*)
8671 lt_prog_compiler_wl='-Wl,'
8672 # All OSF/1 code is PIC.
8673 lt_prog_compiler_static='-non_shared'
8677 lt_prog_compiler_static='-non_shared'
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8683 case $cc_basename in
8684 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8685 lt_prog_compiler_wl='-Qoption ld ';;
8687 lt_prog_compiler_wl='-Wl,';;
8692 lt_prog_compiler_wl='-Qoption ld '
8693 lt_prog_compiler_pic='-PIC'
8694 lt_prog_compiler_static='-Bstatic'
8697 sysv4 | sysv4.2uw2* | sysv4.3*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-Bstatic'
8704 if test -d /usr/nec ;then
8705 lt_prog_compiler_pic='-Kconform_pic'
8706 lt_prog_compiler_static='-Bstatic'
8710 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-Bstatic'
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_can_build_shared=no
8722 lt_prog_compiler_pic='-pic'
8723 lt_prog_compiler_static='-Bstatic'
8727 lt_prog_compiler_can_build_shared=no
8733 # For platforms which do not support PIC, -DPIC is meaningless:
8735 lt_prog_compiler_pic=
8738 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8742 $as_echo "$lt_prog_compiler_pic" >&6; }
8750 # Check to make sure the PIC flag actually works.
8752 if test -n "$lt_prog_compiler_pic"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8754 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8755 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 lt_cv_prog_compiler_pic_works=no
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772 (eval "$lt_compile" 2>conftest.err)
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_pic_works=yes
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8789 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8791 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8792 case $lt_prog_compiler_pic in
8794 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8797 lt_prog_compiler_pic=
8798 lt_prog_compiler_can_build_shared=no
8809 # Check to make sure the static flag actually works.
8811 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8813 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8814 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
8817 lt_cv_prog_compiler_static_works=no
8818 save_LDFLAGS="$LDFLAGS"
8819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8822 # The linker can only warn and ignore the option if not recognized
8823 # So say no if there are warnings
8824 if test -s conftest.err; then
8825 # Append any errors to the config.log.
8826 cat conftest.err 1>&5
8827 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8829 if diff conftest.exp conftest.er2 >/dev/null; then
8830 lt_cv_prog_compiler_static_works=yes
8833 lt_cv_prog_compiler_static_works=yes
8837 LDFLAGS="$save_LDFLAGS"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8841 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8843 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8846 lt_prog_compiler_static=
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8857 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8860 lt_cv_prog_compiler_c_o=no
8861 $RM -r conftest 2>/dev/null
8865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="-o out/conftest2.$ac_objext"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 lt_compile=`echo "$ac_compile" | $SED \
8873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875 -e 's:$: $lt_compiler_flag:'`
8876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877 (eval "$lt_compile" 2>out/conftest.err)
8879 cat out/conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings
8885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_c_o=yes
8893 # SGI C++ compiler will create directory out/ii_files/ for
8894 # template instantiation
8895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8896 $RM out/* && rmdir out
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8903 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8912 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8915 lt_cv_prog_compiler_c_o=no
8916 $RM -r conftest 2>/dev/null
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8922 lt_compiler_flag="-o out/conftest2.$ac_objext"
8923 # Insert the option either (1) after the last *FLAGS variable, or
8924 # (2) before a word containing "conftest.", or (3) at the end.
8925 # Note that $ac_compile itself does not contain backslashes and begins
8926 # with a dollar sign (not a hyphen), so the echo should work correctly.
8927 lt_compile=`echo "$ac_compile" | $SED \
8928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930 -e 's:$: $lt_compiler_flag:'`
8931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932 (eval "$lt_compile" 2>out/conftest.err)
8934 cat out/conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8938 # The compiler can only warn and ignore the option if not recognized
8939 # So say no if there are warnings
8940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8943 lt_cv_prog_compiler_c_o=yes
8948 # SGI C++ compiler will create directory out/ii_files/ for
8949 # template instantiation
8950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8951 $RM out/* && rmdir out
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8958 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8963 hard_links="nottested"
8964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8965 # do not overwrite the value of need_locks provided by the user
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8967 $as_echo_n "checking if we can lock with hard links... " >&6; }
8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8972 ln conftest.a conftest.b 2>&5 || hard_links=no
8973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8975 $as_echo "$hard_links" >&6; }
8976 if test "$hard_links" = no; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8978 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8994 allow_undefined_flag=
8995 always_export_symbols=no
8997 archive_expsym_cmds=
8998 compiler_needs_object=no
8999 enable_shared_with_static_runtimes=no
9000 export_dynamic_flag_spec=
9001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9002 hardcode_automatic=no
9004 hardcode_direct_absolute=no
9005 hardcode_libdir_flag_spec=
9006 hardcode_libdir_flag_spec_ld=
9007 hardcode_libdir_separator=
9009 hardcode_shlibpath_var=unsupported
9011 link_all_deplibs=unknown
9014 old_archive_from_new_cmds=
9015 old_archive_from_expsyms_cmds=
9016 thread_safe_flag_spec=
9017 whole_archive_flag_spec=
9018 # include_expsyms should be a list of space-separated symbols to be *always*
9019 # included in the symbol list
9021 # exclude_expsyms can be an extended regexp of symbols to exclude
9022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9024 # as well as any symbol that contains `d'.
9025 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9027 # platforms (ab)use it in PIC code, but their linkers get confused if
9028 # the symbol is explicitly referenced. Since portable code cannot
9029 # rely on this symbol name, it's probably fine to never include it in
9030 # preloaded symbol tables.
9031 # Exclude shared library initialization/finalization symbols.
9032 extract_expsyms_cmds=
9035 cygwin* | mingw* | pw32* | cegcc*)
9036 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9037 # When not using gcc, we currently assume that we are using
9038 # Microsoft Visual C++.
9039 if test "$GCC" != yes; then
9044 # we just hope/assume this is gcc and not c89 (= MSVC++)
9054 # On some targets, GNU ld is compatible enough with the native linker
9055 # that we're better off using the native interface for both.
9056 lt_use_gnu_ld_interface=no
9057 if test "$with_gnu_ld" = yes; then
9060 # The AIX port of GNU ld has always aspired to compatibility
9061 # with the native linker. However, as the warning in the GNU ld
9062 # block says, versions before 2.19.5* couldn't really create working
9063 # shared libraries, regardless of the interface used.
9064 case `$LD -v 2>&1` in
9065 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9066 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9067 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9069 lt_use_gnu_ld_interface=yes
9074 lt_use_gnu_ld_interface=yes
9079 if test "$lt_use_gnu_ld_interface" = yes; then
9080 # If archive_cmds runs LD, not CC, wlarc should be empty
9083 # Set some defaults for GNU ld with shared library support. These
9084 # are reset later if shared libraries are not supported. Putting them
9085 # here allows them to be overridden if necessary.
9086 runpath_var=LD_RUN_PATH
9087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9088 export_dynamic_flag_spec='${wl}--export-dynamic'
9089 # ancient GNU ld didn't support --whole-archive et. al.
9090 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9091 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9093 whole_archive_flag_spec=
9095 supports_anon_versioning=no
9096 case `$LD -v 2>&1` in
9097 *GNU\ gold*) supports_anon_versioning=yes ;;
9098 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9099 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9100 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9101 *\ 2.11.*) ;; # other 2.11 versions
9102 *) supports_anon_versioning=yes ;;
9105 # See if GNU ld supports shared libraries.
9108 # On AIX/PPC, the GNU linker is very broken
9109 if test "$host_cpu" != ia64; then
9113 *** Warning: the GNU linker, at least up to release 2.19, is reported
9114 *** to be unable to reliably create shared libraries on AIX.
9115 *** Therefore, libtool is disabling shared libraries support. If you
9116 *** really care for shared libraries, you may want to install binutils
9117 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9118 *** You will then need to restart the configuration process.
9127 # see comment about AmigaOS4 .so support
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 archive_expsym_cmds=''
9132 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)'
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 hardcode_minus_L=yes
9140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141 allow_undefined_flag=unsupported
9142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9143 # support --undefined. This deserves some investigation. FIXME
9144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150 cygwin* | mingw* | pw32* | cegcc*)
9151 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9152 # as there is no search path for DLLs.
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 export_dynamic_flag_spec='${wl}--export-all-symbols'
9155 allow_undefined_flag=unsupported
9156 always_export_symbols=no
9157 enable_shared_with_static_runtimes=yes
9158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162 # If the export-symbols file already is a .def file (1st line
9163 # is EXPORTS), use it as is; otherwise, prepend...
9164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165 cp $export_symbols $output_objdir/$soname.def;
9167 echo EXPORTS > $output_objdir/$soname.def;
9168 cat $export_symbols >> $output_objdir/$soname.def;
9170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 link_all_deplibs=yes
9183 hardcode_shlibpath_var=no
9184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9185 export_dynamic_flag_spec='${wl}-E'
9186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9187 # Instead, shared libraries are loaded at an image base (0x10000000 by
9188 # default) and relocated if they conflict, which is a slow very memory
9189 # consuming and fragmenting process. To avoid this, we pick a random,
9190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9193 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'
9196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9198 if test "$host_os" = linux-dietlibc; then
9199 case $cc_basename in
9200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9204 && test "$tmp_diet" = no
9207 tmp_sharedflag='-shared'
9208 case $cc_basename,$host_cpu in
9209 pgcc*) # Portland Group C compiler
9210 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'
9211 tmp_addflag=' $pic_flag'
9213 pgf77* | pgf90* | pgf95* | pgfortran*)
9214 # Portland Group f77 and f90 compilers
9215 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'
9216 tmp_addflag=' $pic_flag -Mnomain' ;;
9217 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9218 tmp_addflag=' -i_dynamic' ;;
9219 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9220 tmp_addflag=' -i_dynamic -nofor_main' ;;
9221 ifc* | ifort*) # Intel Fortran compiler
9222 tmp_addflag=' -nofor_main' ;;
9223 lf95*) # Lahey Fortran 8.1
9224 whole_archive_flag_spec=
9225 tmp_sharedflag='--shared' ;;
9226 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9227 tmp_sharedflag='-qmkshrobj'
9229 nvcc*) # Cuda Compiler Driver 2.2
9230 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'
9231 compiler_needs_object=yes
9234 case `$CC -V 2>&1 | sed 5q` in
9235 *Sun\ C*) # Sun C 5.9
9236 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'
9237 compiler_needs_object=yes
9238 tmp_sharedflag='-G' ;;
9239 *Sun\ F*) # Sun Fortran 8.3
9240 tmp_sharedflag='-G' ;;
9242 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 if test "x$supports_anon_versioning" = xyes; then
9245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247 echo "local: *; };" >> $output_objdir/$libname.ver~
9248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9251 case $cc_basename in
9252 xlf* | bgf* | bgxlf* | mpixlf*)
9253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9255 hardcode_libdir_flag_spec=
9256 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9257 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9258 if test "x$supports_anon_versioning" = xyes; then
9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261 echo "local: *; };" >> $output_objdir/$libname.ver~
9262 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9287 *** create shared libraries on Solaris systems. Therefore, libtool
9288 *** is disabling shared libraries support. We urge you to upgrade GNU
9289 *** binutils to release 2.9.1 or newer. Another option is to modify
9290 *** your PATH or compiler configuration so that the native linker is
9291 *** used, and then restart.
9294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9303 case `$LD -v 2>&1` in
9304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9309 *** reliably create shared libraries on SCO systems. Therefore, libtool
9310 *** is disabling shared libraries support. We urge you to upgrade GNU
9311 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9312 *** your PATH or compiler configuration so that the native linker is
9313 *** used, and then restart.
9318 # For security reasons, it is highly recommended that you always
9319 # use absolute paths for naming shared libraries, and exclude the
9320 # DT_RUNPATH tag from executables and libraries. But doing so
9321 # requires that you compile everything twice, which is a pain.
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var=no
9341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350 if test "$ld_shlibs" = no; then
9352 hardcode_libdir_flag_spec=
9353 export_dynamic_flag_spec=
9354 whole_archive_flag_spec=
9357 # PORTME fill in a description of your system's linker (not GNU ld)
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=yes
9362 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'
9363 # Note: this linker hardcodes the directories in LIBPATH if there
9364 # are no directories specified by -L.
9365 hardcode_minus_L=yes
9366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9367 # Neither direct hardcoding nor static linking is supported with a
9369 hardcode_direct=unsupported
9374 if test "$host_cpu" = ia64; then
9375 # On IA64, the linker does run time linking by default, so we don't
9376 # have to do anything special.
9377 aix_use_runtimelinking=no
9378 exp_sym_flag='-Bexport'
9381 # If we're using GNU nm, then we don't want the "-C" option.
9382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9383 # Also, AIX nm treats weak defined symbols like other global
9384 # defined symbols, whereas GNU nm marks them as "W".
9385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9386 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'
9388 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'
9390 aix_use_runtimelinking=no
9392 # Test if we are trying to use run time linking or normal
9393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9394 # need to do runtime linking.
9395 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9396 for ld_flag in $LDFLAGS; do
9397 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9398 aix_use_runtimelinking=yes
9405 exp_sym_flag='-bexport'
9406 no_entry_flag='-bnoentry'
9409 # When large executables or shared objects are built, AIX ld can
9410 # have problems creating the table of contents. If linking a library
9411 # or program results in "error TOC overflow" add -mminimal-toc to
9412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9417 hardcode_direct_absolute=yes
9418 hardcode_libdir_separator=':'
9419 link_all_deplibs=yes
9420 file_list_spec='${wl}-f,'
9422 if test "$GCC" = yes; then
9423 case $host_os in aix4.[012]|aix4.[012].*)
9424 # We only want to do this on AIX 4.2 and lower, the check
9425 # below for broken collect2 doesn't work under 4.3+
9426 collect2name=`${CC} -print-prog-name=collect2`
9427 if test -f "$collect2name" &&
9428 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9430 # We have reworked collect2
9433 # We have old collect2
9434 hardcode_direct=unsupported
9435 # It fails to find uninstalled libraries when the uninstalled
9436 # path is not listed in the libpath. Setting hardcode_minus_L
9437 # to unsupported forces relinking
9438 hardcode_minus_L=yes
9439 hardcode_libdir_flag_spec='-L$libdir'
9440 hardcode_libdir_separator=
9444 shared_flag='-shared'
9445 if test "$aix_use_runtimelinking" = yes; then
9446 shared_flag="$shared_flag "'${wl}-G'
9450 if test "$host_cpu" = ia64; then
9451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9452 # chokes on -Wl,-G. The following line is correct:
9455 if test "$aix_use_runtimelinking" = yes; then
9456 shared_flag='${wl}-G'
9458 shared_flag='${wl}-bM:SRE'
9463 export_dynamic_flag_spec='${wl}-bexpall'
9464 # It seems that -bexpall does not export symbols beginning with
9465 # underscore (_), so it is better to generate a list of symbols to export.
9466 always_export_symbols=yes
9467 if test "$aix_use_runtimelinking" = yes; then
9468 # Warning - without using the other runtime loading flags (-brtl),
9469 # -berok will link without error, but may produce a broken library.
9470 allow_undefined_flag='-berok'
9471 # Determine the default libpath from the value encoded in an
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9484 if ac_fn_c_try_link "$LINENO"; then :
9486 lt_aix_libpath_sed='
9487 /Import File Strings/,/^$/ {
9493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494 # Check for a 64-bit object if we didn't find anything.
9495 if test -z "$aix_libpath"; then
9496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9504 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"
9506 if test "$host_cpu" = ia64; then
9507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9508 allow_undefined_flag="-z nodefs"
9509 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"
9511 # Determine the default libpath from the value encoded in an
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9524 if ac_fn_c_try_link "$LINENO"; then :
9526 lt_aix_libpath_sed='
9527 /Import File Strings/,/^$/ {
9533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9534 # Check for a 64-bit object if we didn't find anything.
9535 if test -z "$aix_libpath"; then
9536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9544 # Warning - without using the other run time loading flags,
9545 # -berok will link without error, but may produce a broken library.
9546 no_undefined_flag=' ${wl}-bernotok'
9547 allow_undefined_flag=' ${wl}-berok'
9548 if test "$with_gnu_ld" = yes; then
9549 # We only use this code for GNU lds that support --whole-archive.
9550 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9552 # Exported symbols can be pulled into shared objects from archives
9553 whole_archive_flag_spec='$convenience'
9555 archive_cmds_need_lc=yes
9556 # This is similar to how AIX traditionally builds its shared libraries.
9557 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'
9565 # see comment about AmigaOS4 .so support
9566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567 archive_expsym_cmds=''
9570 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)'
9571 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_minus_L=yes
9578 export_dynamic_flag_spec=-rdynamic
9581 cygwin* | mingw* | pw32* | cegcc*)
9582 # When not using gcc, we currently assume that we are using
9583 # Microsoft Visual C++.
9584 # hardcode_libdir_flag_spec is actually meaningless, as there is
9585 # no search path for DLLs.
9586 hardcode_libdir_flag_spec=' '
9587 allow_undefined_flag=unsupported
9588 # Tell ltmain to make .lib files, not .a files.
9590 # Tell ltmain to make .dll files, not .so files.
9592 # FIXME: Setting linknames here is a bad hack.
9593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9594 # The linker will automatically build a .lib file if we build a DLL.
9595 old_archive_from_new_cmds='true'
9596 # FIXME: Should let the user specify the lib program.
9597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9598 fix_srcfile_path='`cygpath -w "$srcfile"`'
9599 enable_shared_with_static_runtimes=yes
9602 darwin* | rhapsody*)
9605 archive_cmds_need_lc=no
9607 hardcode_automatic=yes
9608 hardcode_shlibpath_var=unsupported
9609 if test "$lt_cv_ld_force_load" = "yes"; then
9610 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\"`'
9612 whole_archive_flag_spec=''
9614 link_all_deplibs=yes
9615 allow_undefined_flag="$_lt_dar_allow_undefined"
9616 case $cc_basename in
9617 ifort*) _lt_dar_can_shared=yes ;;
9618 *) _lt_dar_can_shared=$GCC ;;
9620 if test "$_lt_dar_can_shared" = "yes"; then
9621 output_verbose_link_cmd=func_echo_all
9622 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9623 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9624 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}"
9625 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}"
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_shlibpath_var=no
9643 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9644 # support. Future versions do this automatically, but an explicit c++rt0.o
9645 # does not break anything, and helps significantly (at the cost of a little
9648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9649 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_shlibpath_var=no
9654 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_minus_L=yes
9659 hardcode_shlibpath_var=no
9662 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9663 freebsd* | dragonfly*)
9664 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9665 hardcode_libdir_flag_spec='-R$libdir'
9667 hardcode_shlibpath_var=no
9671 if test "$GCC" = yes; then
9672 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9674 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'
9676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677 hardcode_libdir_separator=:
9680 # hardcode_minus_L: Not really in the search PATH,
9681 # but as the default location of the library.
9682 hardcode_minus_L=yes
9683 export_dynamic_flag_spec='${wl}-E'
9687 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9692 if test "$with_gnu_ld" = no; then
9693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9694 hardcode_libdir_flag_spec_ld='+b $libdir'
9695 hardcode_libdir_separator=:
9697 hardcode_direct_absolute=yes
9698 export_dynamic_flag_spec='${wl}-E'
9699 # hardcode_minus_L: Not really in the search PATH,
9700 # but as the default location of the library.
9701 hardcode_minus_L=yes
9706 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9728 # Older versions of the 11.00 compiler do not understand -b yet
9729 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9731 $as_echo_n "checking if $CC understands -b... " >&6; }
9732 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9735 lt_cv_prog_compiler__b=no
9736 save_LDFLAGS="$LDFLAGS"
9737 LDFLAGS="$LDFLAGS -b"
9738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9740 # The linker can only warn and ignore the option if not recognized
9741 # So say no if there are warnings
9742 if test -s conftest.err; then
9743 # Append any errors to the config.log.
9744 cat conftest.err 1>&5
9745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9747 if diff conftest.exp conftest.er2 >/dev/null; then
9748 lt_cv_prog_compiler__b=yes
9751 lt_cv_prog_compiler__b=yes
9755 LDFLAGS="$save_LDFLAGS"
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9759 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9761 if test x"$lt_cv_prog_compiler__b" = xyes; then
9762 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9770 if test "$with_gnu_ld" = no; then
9771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9772 hardcode_libdir_separator=:
9777 hardcode_shlibpath_var=no
9781 hardcode_direct_absolute=yes
9782 export_dynamic_flag_spec='${wl}-E'
9784 # hardcode_minus_L: Not really in the search PATH,
9785 # but as the default location of the library.
9786 hardcode_minus_L=yes
9792 irix5* | irix6* | nonstopux*)
9793 if test "$GCC" = yes; then
9794 archive_cmds='$CC -shared $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'
9795 # Try to use the -exported_symbol ld option, if it does not
9796 # work, assume that -exports_file does not work either and
9797 # implicitly export all symbols.
9798 save_LDFLAGS="$LDFLAGS"
9799 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9804 if ac_fn_c_try_link "$LINENO"; then :
9805 archive_expsym_cmds='$CC -shared $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'
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 LDFLAGS="$save_LDFLAGS"
9812 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'
9813 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'
9815 archive_cmds_need_lc='no'
9816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817 hardcode_libdir_separator=:
9819 link_all_deplibs=yes
9823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9826 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9828 hardcode_libdir_flag_spec='-R$libdir'
9830 hardcode_shlibpath_var=no
9834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837 hardcode_libdir_separator=:
9838 hardcode_shlibpath_var=no
9845 if test -f /usr/libexec/ld.so; then
9847 hardcode_shlibpath_var=no
9848 hardcode_direct_absolute=yes
9849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9853 export_dynamic_flag_spec='${wl}-E'
9856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_libdir_flag_spec='-R$libdir'
9861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 hardcode_minus_L=yes
9874 allow_undefined_flag=unsupported
9875 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'
9876 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9880 if test "$GCC" = yes; then
9881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9882 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'
9884 allow_undefined_flag=' -expect_unresolved \*'
9885 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'
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator=:
9892 osf4* | osf5*) # as osf3* with the addition of -msym flag
9893 if test "$GCC" = yes; then
9894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9895 archive_cmds='$CC -shared${allow_undefined_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'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898 allow_undefined_flag=' -expect_unresolved \*'
9899 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'
9900 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~
9901 $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'
9903 # Both c and cxx compiler support -rpath directly
9904 hardcode_libdir_flag_spec='-rpath $libdir'
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_separator=:
9911 no_undefined_flag=' -z defs'
9912 if test "$GCC" = yes; then
9914 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9916 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9918 case `$CC -V 2>&1` in
9921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9927 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9933 hardcode_libdir_flag_spec='-R$libdir'
9934 hardcode_shlibpath_var=no
9936 solaris2.[0-5] | solaris2.[0-5].*) ;;
9938 # The compiler driver will combine and reorder linker options,
9939 # but understands `-z linker_flag'. GCC discards it without `$wl',
9940 # but is careful enough not to reorder.
9941 # Supported since Solaris 2.6 (maybe 2.5.1?)
9942 if test "$GCC" = yes; then
9943 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9945 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9949 link_all_deplibs=yes
9953 if test "x$host_vendor" = xsequent; then
9954 # Use $CC to link under sequent, because it throws in some extra .o
9955 # files that make .init and .fini sections work.
9956 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_libdir_flag_spec='-L$libdir'
9962 hardcode_minus_L=yes
9963 hardcode_shlibpath_var=no
9967 case $host_vendor in
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=yes # is this really true???
9973 ## LD is ld it makes a PLAMLIB
9974 ## CC just makes a GrossModule.
9975 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9976 reload_cmds='$CC -r -o $output$reload_objs'
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9984 runpath_var='LD_RUN_PATH'
9985 hardcode_shlibpath_var=no
9989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_shlibpath_var=no
9991 export_dynamic_flag_spec='-Bexport'
9995 if test -d /usr/nec; then
9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_shlibpath_var=no
9998 runpath_var=LD_RUN_PATH
9999 hardcode_runpath_var=yes
10004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10005 no_undefined_flag='${wl}-z,text'
10006 archive_cmds_need_lc=no
10007 hardcode_shlibpath_var=no
10008 runpath_var='LD_RUN_PATH'
10010 if test "$GCC" = yes; then
10011 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 sysv5* | sco3.2v5* | sco5v6*)
10020 # Note: We can NOT use -z defs as we might desire, because we do not
10021 # link with -lc, and that would cause any symbols used from libc to
10022 # always be unresolved, which means just about no library would
10023 # ever link correctly. If we're not using GNU ld we use -z text
10024 # though, which does catch some bad symbols but isn't as heavy-handed
10026 no_undefined_flag='${wl}-z,text'
10027 allow_undefined_flag='${wl}-z,nodefs'
10028 archive_cmds_need_lc=no
10029 hardcode_shlibpath_var=no
10030 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10031 hardcode_libdir_separator=':'
10032 link_all_deplibs=yes
10033 export_dynamic_flag_spec='${wl}-Bexport'
10034 runpath_var='LD_RUN_PATH'
10036 if test "$GCC" = yes; then
10037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_shlibpath_var=no
10056 if test x$host_vendor = xsni; then
10058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10059 export_dynamic_flag_spec='${wl}-Blargedynsym'
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10066 $as_echo "$ld_shlibs" >&6; }
10067 test "$ld_shlibs" = no && can_build_shared=no
10069 with_gnu_ld=$with_gnu_ld
10086 # Do we need to explicitly link libc?
10088 case "x$archive_cmds_need_lc" in
10090 # Assume -lc should be added
10091 archive_cmds_need_lc=yes
10093 if test "$enable_shared" = yes && test "$GCC" = yes; then
10094 case $archive_cmds in
10096 # FIXME: we may have to deal with multi-command sequences.
10099 # Test whether the compiler implicitly links with -lc since on some
10100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10101 # to ld, don't add -lc before -lgcc.
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10104 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10111 (eval $ac_compile) 2>&5
10113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10114 test $ac_status = 0; } 2>conftest.err; then
10117 libobjs=conftest.$ac_objext
10119 wl=$lt_prog_compiler_wl
10120 pic_flag=$lt_prog_compiler_pic
10126 lt_save_allow_undefined_flag=$allow_undefined_flag
10127 allow_undefined_flag=
10128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10129 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132 test $ac_status = 0; }
10134 lt_cv_archive_cmds_need_lc=no
10136 lt_cv_archive_cmds_need_lc=yes
10138 allow_undefined_flag=$lt_save_allow_undefined_flag
10140 cat conftest.err 1>&5
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10146 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10147 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10311 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10313 if test "$GCC" = yes; then
10315 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10316 *) lt_awk_arg="/^libraries:/" ;;
10319 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10320 *) lt_sed_strip_eq="s,=/,/,g" ;;
10322 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10323 case $lt_search_path_spec in
10325 # if the path contains ";" then we assume it to be the separator
10326 # otherwise default to the standard path separator (i.e. ":") - it is
10327 # assumed that no part of a normal pathname contains ";" but that should
10328 # okay in the real world where ";" in dirpaths is itself problematic.
10329 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10332 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10335 # Ok, now we have the path, separated by spaces, we can step through it
10336 # and add multilib dir if necessary.
10337 lt_tmp_lt_search_path_spec=
10338 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10339 for lt_sys_path in $lt_search_path_spec; do
10340 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10343 test -d "$lt_sys_path" && \
10344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10347 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10348 BEGIN {RS=" "; FS="/|\n";} {
10351 for (lt_i = NF; lt_i > 0; lt_i--) {
10352 if ($lt_i != "" && $lt_i != ".") {
10353 if ($lt_i == "..") {
10356 if (lt_count == 0) {
10357 lt_foo="/" $lt_i lt_foo;
10364 if (lt_foo != "") { lt_freq[lt_foo]++; }
10365 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10367 # AWK program above erroneously prepends '/' to C:/dos/paths
10370 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10371 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10373 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10377 library_names_spec=
10378 libname_spec='lib$name'
10382 postuninstall_cmds=
10386 shlibpath_overrides_runpath=unknown
10388 dynamic_linker="$host_os ld.so"
10389 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10390 need_lib_prefix=unknown
10391 hardcode_into_libs=no
10393 # when you set need_version to no, make sure it does not cause -set_version
10394 # flags to be left without arguments
10395 need_version=unknown
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10401 shlibpath_var=LIBPATH
10403 # AIX 3 has no versioning support, so we append a major version to the name.
10404 soname_spec='${libname}${release}${shared_ext}$major'
10411 hardcode_into_libs=yes
10412 if test "$host_cpu" = ia64; then
10413 # AIX 5 supports IA64
10414 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10415 shlibpath_var=LD_LIBRARY_PATH
10417 # With GCC up to 2.95.x, collect2 would create an import file
10418 # for dependence libraries. The import file would start with
10419 # the line `#! .'. This would cause the generated library to
10420 # depend on `.', always an invalid library. This was fixed in
10421 # development snapshots of GCC prior to 3.0.
10423 aix4 | aix4.[01] | aix4.[01].*)
10424 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10426 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10429 can_build_shared=no
10433 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10434 # soname into executable. Probably we can add versioning support to
10435 # collect2, so additional links can be useful in future.
10436 if test "$aix_use_runtimelinking" = yes; then
10437 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10438 # instead of lib<name>.a to let people know that these are not
10439 # typical AIX shared libraries.
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 # We preserve .a as extension for shared libraries through AIX4.2
10443 # and later when we are not doing run time linking.
10444 library_names_spec='${libname}${release}.a $libname.a'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10447 shlibpath_var=LIBPATH
10454 # Since July 2007 AmigaOS4 officially supports .so libraries.
10455 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 library_names_spec='$libname.ixlibrary $libname.a'
10460 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10461 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'
10467 library_names_spec='${libname}${shared_ext}'
10468 dynamic_linker="$host_os ld.so"
10469 shlibpath_var=LIBRARY_PATH
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10481 # the default ld.so.conf also contains /usr/contrib/lib and
10482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10483 # libtool to hard-code these into programs
10486 cygwin* | mingw* | pw32* | cegcc*)
10487 version_type=windows
10492 case $GCC,$host_os in
10493 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10494 library_names_spec='$libname.dll.a'
10495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10496 postinstall_cmds='base_file=`basename \${file}`~
10497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10498 dldir=$destdir/`dirname \$dlpath`~
10499 test -d \$dldir || mkdir -p \$dldir~
10500 $install_prog $dir/$dlname \$dldir/$dlname~
10501 chmod a+x \$dldir/$dlname~
10502 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10503 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10506 dlpath=$dir/\$dldll~
10508 shlibpath_overrides_runpath=yes
10512 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10513 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10515 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10518 # MinGW DLLs use traditional 'lib' prefix
10519 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10522 # pw32 DLLs use 'pw' prefix rather than 'lib'
10523 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10529 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10532 dynamic_linker='Win32 ld.exe'
10533 # FIXME: first we should search . and the directory the executable is in
10537 darwin* | rhapsody*)
10538 dynamic_linker="$host_os dyld"
10539 version_type=darwin
10542 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10543 soname_spec='${libname}${release}${major}$shared_ext'
10544 shlibpath_overrides_runpath=yes
10545 shlibpath_var=DYLD_LIBRARY_PATH
10546 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10548 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10549 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 shlibpath_var=LD_LIBRARY_PATH
10565 freebsd* | dragonfly*)
10566 # DragonFly does not have aout. When/if they implement a new
10567 # versioning mechanism, adjust this.
10568 if test -x /usr/bin/objformat; then
10569 objformat=`/usr/bin/objformat`
10572 freebsd[123]*) objformat=aout ;;
10573 *) objformat=elf ;;
10576 # Handle Gentoo/FreeBSD as it was Linux
10577 case $host_vendor in
10579 version_type=linux ;;
10581 version_type=freebsd-$objformat ;;
10584 case $version_type in
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10606 freebsd3.[01]* | freebsdelf3.[01]*)
10607 shlibpath_overrides_runpath=yes
10608 hardcode_into_libs=yes
10610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10612 shlibpath_overrides_runpath=no
10613 hardcode_into_libs=yes
10615 *) # from 4.6 on, and DragonFly
10616 shlibpath_overrides_runpath=yes
10617 hardcode_into_libs=yes
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 hardcode_into_libs=yes
10636 dynamic_linker="$host_os runtime_loader"
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10642 hardcode_into_libs=yes
10645 hpux9* | hpux10* | hpux11*)
10646 # Give a soname corresponding to the major version so that dld.sl refuses to
10647 # link against other versions.
10654 hardcode_into_libs=yes
10655 dynamic_linker="$host_os dld.so"
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 if test "X$HPUX_IA64_MODE" = X32; then
10661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10669 hardcode_into_libs=yes
10670 dynamic_linker="$host_os dld.sl"
10671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10680 dynamic_linker="$host_os dld.sl"
10681 shlibpath_var=SHLIB_PATH
10682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10688 postinstall_cmds='chmod 555 $lib'
10689 # or fails outright, so override atomically:
10690 install_override_mode=555
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=no
10702 hardcode_into_libs=yes
10705 irix5* | irix6* | nonstopux*)
10707 nonstopux*) version_type=nonstopux ;;
10709 if test "$lt_cv_prog_gnu_ld" = yes; then
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10720 irix5* | nonstopux*)
10721 libsuff= shlibsuff=
10724 case $LD in # libtool.m4 will add one of these switches to LD
10725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10726 libsuff= shlibsuff= libmagic=32-bit;;
10727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10728 libsuff=32 shlibsuff=N32 libmagic=N32;;
10729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10731 *) libsuff= shlibsuff= libmagic=never-match;;
10735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10736 shlibpath_overrides_runpath=no
10737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10739 hardcode_into_libs=yes
10742 # No shared lib support for Linux oldld, aout, or coff.
10743 linux*oldld* | linux*aout* | linux*coff*)
10747 # This must be Linux ELF.
10748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=no
10758 # Some binutils ld are patched to set DT_RUNPATH
10759 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 lt_cv_shlibpath_overrides_runpath=no
10763 save_LDFLAGS=$LDFLAGS
10764 save_libdir=$libdir
10765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10780 lt_cv_shlibpath_overrides_runpath=yes
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LDFLAGS=$save_LDFLAGS
10786 libdir=$save_libdir
10790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10792 # This implies no fast_install, which is unacceptable.
10793 # Some rework will be needed to allow for fast_install
10794 # before this can be enabled.
10795 hardcode_into_libs=yes
10797 # Append ld.so.conf contents to the search path
10798 if test -f /etc/ld.so.conf; then
10799 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' ' '`
10800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10803 # We used to test for /lib/ld.so.1 and disable shared libraries on
10804 # powerpc, because MkLinux only supported shared libraries with the
10805 # GNU dynamic linker. Since this was broken with cross compilers,
10806 # most powerpc-linux boxes support dynamic linking these days and
10807 # people can always --disable-shared, the test was removed, and we
10808 # assume the GNU/Linux dynamic linker is in use.
10809 dynamic_linker='GNU/Linux ld.so'
10816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10819 dynamic_linker='NetBSD (a.out) ld.so'
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 dynamic_linker='NetBSD ld.elf_so'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=yes
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=no
10845 hardcode_into_libs=yes
10846 dynamic_linker='ldqnx.so'
10851 sys_lib_dlsearch_path_spec="/usr/lib"
10853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10856 *) need_version=no ;;
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10863 openbsd2.[89] | openbsd2.[89].*)
10864 shlibpath_overrides_runpath=no
10867 shlibpath_overrides_runpath=yes
10871 shlibpath_overrides_runpath=yes
10876 libname_spec='$name'
10879 library_names_spec='$libname${shared_ext} $libname.a'
10880 dynamic_linker='OS/2 ld.exe'
10881 shlibpath_var=LIBPATH
10884 osf3* | osf4* | osf5*)
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 # ldd complains unless libraries are executable
10909 postinstall_cmds='chmod +x $lib'
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10918 if test "$with_gnu_ld" = yes; then
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 case $host_vendor in
10931 shlibpath_overrides_runpath=no
10933 runpath_var=LD_RUN_PATH
10941 shlibpath_overrides_runpath=no
10942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10948 if test -d /usr/nec ;then
10950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10951 soname_spec='$libname${shared_ext}.$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10957 version_type=freebsd-elf
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10965 if test "$with_gnu_ld" = yes; then
10966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10975 sys_lib_dlsearch_path_spec='/usr/lib'
10979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11001 $as_echo "$dynamic_linker" >&6; }
11002 test "$dynamic_linker" = no && can_build_shared=no
11004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11005 if test "$GCC" = yes; then
11006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11110 if test -n "$hardcode_libdir_flag_spec" ||
11111 test -n "$runpath_var" ||
11112 test "X$hardcode_automatic" = "Xyes" ; then
11114 # We can hardcode non-existent directories.
11115 if test "$hardcode_direct" != no &&
11116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11117 # have to relink, otherwise we might link with an installed library
11118 # when we should be linking with a yet-to-be-installed one
11119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11120 test "$hardcode_minus_L" != no; then
11121 # Linking always hardcodes the temporary library directory.
11122 hardcode_action=relink
11124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11125 hardcode_action=immediate
11128 # We cannot hardcode anything, or else we can only hardcode existing
11130 hardcode_action=unsupported
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11133 $as_echo "$hardcode_action" >&6; }
11135 if test "$hardcode_action" = relink ||
11136 test "$inherit_rpath" = yes; then
11137 # Fast installation is not supported
11138 enable_fast_install=no
11139 elif test "$shlibpath_overrides_runpath" = yes ||
11140 test "$enable_shared" = no; then
11141 # Fast installation is not necessary
11142 enable_fast_install=needless
11150 if test "x$enable_dlopen" != xyes; then
11151 enable_dlopen=unknown
11152 enable_dlopen_self=unknown
11153 enable_dlopen_self_static=unknown
11160 lt_cv_dlopen="load_add_on"
11162 lt_cv_dlopen_self=yes
11165 mingw* | pw32* | cegcc*)
11166 lt_cv_dlopen="LoadLibrary"
11171 lt_cv_dlopen="dlopen"
11176 # if libdl is installed we need to link against it
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11182 ac_check_lib_save_LIBS=$LIBS
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_dl_dlopen=yes
11205 ac_cv_lib_dl_dlopen=no
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11217 lt_cv_dlopen="dyld"
11219 lt_cv_dlopen_self=yes
11226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11227 if test "x$ac_cv_func_shl_load" = x""yes; then :
11228 lt_cv_dlopen="shl_load"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 ac_check_lib_save_LIBS=$LIBS
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11250 return shl_load ();
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_dld_shl_load=yes
11258 ac_cv_lib_dld_shl_load=no
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11270 if test "x$ac_cv_func_dlopen" = x""yes; then :
11271 lt_cv_dlopen="dlopen"
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11278 ac_check_lib_save_LIBS=$LIBS
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 ac_cv_lib_dl_dlopen=yes
11301 ac_cv_lib_dl_dlopen=no
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LIBS=$ac_check_lib_save_LIBS
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lsvld $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_svld_dlopen=yes
11340 ac_cv_lib_svld_dlopen=no
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11356 ac_check_lib_save_LIBS=$LIBS
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11371 return dld_link ();
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_lib_dld_dld_link=yes
11379 ac_cv_lib_dld_dld_link=no
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11409 if test "x$lt_cv_dlopen" != xno; then
11415 case $lt_cv_dlopen in
11417 save_CPPFLAGS="$CPPFLAGS"
11418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11420 save_LDFLAGS="$LDFLAGS"
11421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11424 LIBS="$lt_cv_dlopen_libs $LIBS"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11428 if test "${lt_cv_dlopen_self+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11431 if test "$cross_compiling" = yes; then :
11432 lt_cv_dlopen_self=cross
11434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11435 lt_status=$lt_dlunknown
11436 cat > conftest.$ac_ext <<_LT_EOF
11437 #line $LINENO "configure"
11438 #include "confdefs.h"
11447 # define LT_DLGLOBAL RTLD_GLOBAL
11450 # define LT_DLGLOBAL DL_GLOBAL
11452 # define LT_DLGLOBAL 0
11456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11457 find out it does not work in some platform. */
11458 #ifndef LT_DLLAZY_OR_NOW
11460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11463 # define LT_DLLAZY_OR_NOW DL_LAZY
11466 # define LT_DLLAZY_OR_NOW RTLD_NOW
11469 # define LT_DLLAZY_OR_NOW DL_NOW
11471 # define LT_DLLAZY_OR_NOW 0
11478 /* When -fvisbility=hidden is used, assume the code has been annotated
11479 correspondingly for the symbols needed. */
11480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11481 void fnord () __attribute__((visibility("default")));
11484 void fnord () { int i=42; }
11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488 int status = $lt_dlunknown;
11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11496 else puts (dlerror ());
11498 /* dlclose (self); */
11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11507 (eval $ac_link) 2>&5
11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11511 (./conftest; exit; ) >&5 2>/dev/null
11513 case x$lt_status in
11514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11519 # compilation failed
11520 lt_cv_dlopen_self=no
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11528 $as_echo "$lt_cv_dlopen_self" >&6; }
11530 if test "x$lt_cv_dlopen_self" = xyes; then
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11534 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
11537 if test "$cross_compiling" = yes; then :
11538 lt_cv_dlopen_self_static=cross
11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541 lt_status=$lt_dlunknown
11542 cat > conftest.$ac_ext <<_LT_EOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11553 # define LT_DLGLOBAL RTLD_GLOBAL
11556 # define LT_DLGLOBAL DL_GLOBAL
11558 # define LT_DLGLOBAL 0
11562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563 find out it does not work in some platform. */
11564 #ifndef LT_DLLAZY_OR_NOW
11566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11569 # define LT_DLLAZY_OR_NOW DL_LAZY
11572 # define LT_DLLAZY_OR_NOW RTLD_NOW
11575 # define LT_DLLAZY_OR_NOW DL_NOW
11577 # define LT_DLLAZY_OR_NOW 0
11584 /* When -fvisbility=hidden is used, assume the code has been annotated
11585 correspondingly for the symbols needed. */
11586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11587 void fnord () __attribute__((visibility("default")));
11590 void fnord () { int i=42; }
11593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11594 int status = $lt_dlunknown;
11598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602 else puts (dlerror ());
11604 /* dlclose (self); */
11612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11613 (eval $ac_link) 2>&5
11615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11617 (./conftest; exit; ) >&5 2>/dev/null
11619 case x$lt_status in
11620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11625 # compilation failed
11626 lt_cv_dlopen_self_static=no
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11637 CPPFLAGS="$save_CPPFLAGS"
11638 LDFLAGS="$save_LDFLAGS"
11643 case $lt_cv_dlopen_self in
11644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11645 *) enable_dlopen_self=unknown ;;
11648 case $lt_cv_dlopen_self_static in
11649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11650 *) enable_dlopen_self_static=unknown ;;
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; }
11680 # FIXME - insert some real tests, host_os isn't really good enough
11683 if test -n "$STRIP" ; then
11684 striplib="$STRIP -x"
11685 old_striplib="$STRIP -S"
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11711 # Report which library types will actually be built
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11715 $as_echo "$can_build_shared" >&6; }
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11718 $as_echo_n "checking whether to build shared libraries... " >&6; }
11719 test "$can_build_shared" = "no" && enable_shared=no
11721 # On AIX, shared libraries and static libraries use the same namespace, and
11722 # are all built from PIC.
11725 test "$enable_shared" = yes && enable_static=no
11726 if test -n "$RANLIB"; then
11727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11728 postinstall_cmds='$RANLIB $lib'
11733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11734 test "$enable_shared" = yes && enable_static=no
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11739 $as_echo "$enable_shared" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11742 $as_echo_n "checking whether to build static libraries... " >&6; }
11743 # Make sure either enable_shared or enable_static is yes.
11744 test "$enable_shared" = yes || enable_static=yes
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11746 $as_echo "$enable_static" >&6; }
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11761 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11762 (test "X$CXX" != "Xg++"))) ; then
11764 ac_cpp='$CXXCPP $CPPFLAGS'
11765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11769 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11770 if test -z "$CXXCPP"; then
11771 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11774 # Double quotes because CXXCPP needs to be expanded
11775 for CXXCPP in "$CXX -E" "/lib/cpp"
11777 ac_preproc_ok=false
11778 for ac_cxx_preproc_warn_flag in '' yes
11780 # Use a header file that comes with gcc, so configuring glibc
11781 # with a fresh cross-compiler works.
11782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 # <limits.h> exists even on freestanding compilers.
11784 # On the NeXT, cc -E runs the code through the compiler's parser,
11785 # not just through cpp. "Syntax error" is here to catch this case.
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11789 # include <limits.h>
11791 # include <assert.h>
11795 if ac_fn_cxx_try_cpp "$LINENO"; then :
11798 # Broken: fails on valid input.
11801 rm -f conftest.err conftest.$ac_ext
11803 # OK, works on sane cases. Now check whether nonexistent headers
11804 # can be detected and how.
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #include <ac_nonexistent.h>
11809 if ac_fn_cxx_try_cpp "$LINENO"; then :
11810 # Broken: success on invalid input.
11813 # Passes both tests.
11817 rm -f conftest.err conftest.$ac_ext
11820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11821 rm -f conftest.err conftest.$ac_ext
11822 if $ac_preproc_ok; then :
11827 ac_cv_prog_CXXCPP=$CXXCPP
11830 CXXCPP=$ac_cv_prog_CXXCPP
11832 ac_cv_prog_CXXCPP=$CXXCPP
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11835 $as_echo "$CXXCPP" >&6; }
11836 ac_preproc_ok=false
11837 for ac_cxx_preproc_warn_flag in '' yes
11839 # Use a header file that comes with gcc, so configuring glibc
11840 # with a fresh cross-compiler works.
11841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 # <limits.h> exists even on freestanding compilers.
11843 # On the NeXT, cc -E runs the code through the compiler's parser,
11844 # not just through cpp. "Syntax error" is here to catch this case.
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11848 # include <limits.h>
11850 # include <assert.h>
11854 if ac_fn_cxx_try_cpp "$LINENO"; then :
11857 # Broken: fails on valid input.
11860 rm -f conftest.err conftest.$ac_ext
11862 # OK, works on sane cases. Now check whether nonexistent headers
11863 # can be detected and how.
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <ac_nonexistent.h>
11868 if ac_fn_cxx_try_cpp "$LINENO"; then :
11869 # Broken: success on invalid input.
11872 # Passes both tests.
11876 rm -f conftest.err conftest.$ac_ext
11879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11880 rm -f conftest.err conftest.$ac_ext
11881 if $ac_preproc_ok; then :
11884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11886 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11887 See \`config.log' for more details." "$LINENO" 5; }
11891 ac_cpp='$CPP $CPPFLAGS'
11892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897 _lt_caught_CXX_error=yes
11901 ac_cpp='$CXXCPP $CPPFLAGS'
11902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11906 archive_cmds_need_lc_CXX=no
11907 allow_undefined_flag_CXX=
11908 always_export_symbols_CXX=no
11909 archive_expsym_cmds_CXX=
11910 compiler_needs_object_CXX=no
11911 export_dynamic_flag_spec_CXX=
11912 hardcode_direct_CXX=no
11913 hardcode_direct_absolute_CXX=no
11914 hardcode_libdir_flag_spec_CXX=
11915 hardcode_libdir_flag_spec_ld_CXX=
11916 hardcode_libdir_separator_CXX=
11917 hardcode_minus_L_CXX=no
11918 hardcode_shlibpath_var_CXX=unsupported
11919 hardcode_automatic_CXX=no
11920 inherit_rpath_CXX=no
11922 module_expsym_cmds_CXX=
11923 link_all_deplibs_CXX=unknown
11924 old_archive_cmds_CXX=$old_archive_cmds
11925 reload_flag_CXX=$reload_flag
11926 reload_cmds_CXX=$reload_cmds
11927 no_undefined_flag_CXX=
11928 whole_archive_flag_spec_CXX=
11929 enable_shared_with_static_runtimes_CXX=no
11931 # Source file extension for C++ test sources.
11934 # Object file extension for compiled C++ test sources.
11938 # No sense in running all these tests if we already determined that
11939 # the CXX compiler isn't working. Some variables (like enable_shared)
11940 # are currently assumed to apply to all compilers on this platform,
11941 # and will be corrupted by setting them based on a non-working compiler.
11942 if test "$_lt_caught_CXX_error" != yes; then
11943 # Code to be used in simple compile tests
11944 lt_simple_compile_test_code="int some_variable = 0;"
11946 # Code to be used in simple link tests
11947 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11949 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11956 # If no C compiler was specified, use CC.
11959 # If no C compiler flags were specified, use CFLAGS.
11960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11962 # Allow CC to be a program name with arguments.
11966 # save warnings/boilerplate of simple test code
11967 ac_outfile=conftest.$ac_objext
11968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11970 _lt_compiler_boilerplate=`cat conftest.err`
11973 ac_outfile=conftest.$ac_objext
11974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11976 _lt_linker_boilerplate=`cat conftest.err`
11980 # Allow CC to be a program name with arguments.
11985 lt_save_with_gnu_ld=$with_gnu_ld
11986 lt_save_path_LD=$lt_cv_path_LD
11987 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11988 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11990 $as_unset lt_cv_prog_gnu_ld
11992 if test -n "${lt_cv_path_LDCXX+set}"; then
11993 lt_cv_path_LD=$lt_cv_path_LDCXX
11995 $as_unset lt_cv_path_LD
11997 test -z "${LDCXX+set}" || LD=$LDCXX
12001 for cc_temp in $compiler""; do
12003 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12004 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12009 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12012 if test -n "$compiler"; then
12013 # We don't want -fno-exception when compiling C++ code, so set the
12014 # no_builtin_flag separately
12015 if test "$GXX" = yes; then
12016 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12018 lt_prog_compiler_no_builtin_flag_CXX=
12021 if test "$GXX" = yes; then
12022 # Set up default GNU C++ configuration
12026 # Check whether --with-gnu-ld was given.
12027 if test "${with_gnu_ld+set}" = set; then :
12028 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12034 if test "$GCC" = yes; then
12035 # Check if gcc -print-prog-name=ld gives a path.
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12037 $as_echo_n "checking for ld used by $CC... " >&6; }
12040 # gcc leaves a trailing carriage return which upsets mingw
12041 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12043 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12046 # Accept absolute paths.
12048 re_direlt='/[^/][^/]*/\.\./'
12049 # Canonicalize the pathname of ld
12050 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12051 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12052 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12054 test -z "$LD" && LD="$ac_prog"
12057 # If it fails, then pretend we aren't using GCC.
12061 # If it is relative, then search for the first ld in PATH.
12062 with_gnu_ld=unknown
12065 elif test "$with_gnu_ld" = yes; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12067 $as_echo_n "checking for GNU ld... " >&6; }
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12070 $as_echo_n "checking for non-GNU ld... " >&6; }
12072 if test "${lt_cv_path_LD+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12075 if test -z "$LD"; then
12076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12077 for ac_dir in $PATH; do
12079 test -z "$ac_dir" && ac_dir=.
12080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12081 lt_cv_path_LD="$ac_dir/$ac_prog"
12082 # Check to see if the program is GNU ld. I'd rather use --version,
12083 # but apparently some variants of GNU ld only accept -v.
12084 # Break only if it was the GNU/non-GNU ld that we prefer.
12085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12086 *GNU* | *'with BFD'*)
12087 test "$with_gnu_ld" != no && break
12090 test "$with_gnu_ld" != yes && break
12097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12101 LD="$lt_cv_path_LD"
12102 if test -n "$LD"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12104 $as_echo "$LD" >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12109 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12112 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12115 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12116 case `$LD -v 2>&1 </dev/null` in
12117 *GNU* | *'with BFD'*)
12118 lt_cv_prog_gnu_ld=yes
12121 lt_cv_prog_gnu_ld=no
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12127 with_gnu_ld=$lt_cv_prog_gnu_ld
12135 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12136 # archiving commands below assume that GNU ld is being used.
12137 if test "$with_gnu_ld" = yes; then
12138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12139 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12142 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12144 # If archive_cmds runs LD, not CC, wlarc should be empty
12145 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12146 # investigate it a little bit more. (MM)
12149 # ancient GNU ld didn't support --whole-archive et. al.
12150 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12151 $GREP 'no-whole-archive' > /dev/null; then
12152 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12154 whole_archive_flag_spec_CXX=
12160 # A generic and very simple default shared library creation
12161 # command for GNU C++ for the case where it uses the native
12162 # linker, instead of GNU ld. If possible, this setting should
12163 # overridden to take advantage of the native linker features on
12164 # the platform it is being used on.
12165 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12168 # Commands to make compiler produce verbose output that lists
12169 # what "hidden" libraries, object files and flags are used when
12170 # linking a shared library.
12171 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12179 # PORTME: fill in a description of your system's C++ link characteristics
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12181 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12185 # FIXME: insert proper C++ library support
12189 if test "$host_cpu" = ia64; then
12190 # On IA64, the linker does run time linking by default, so we don't
12191 # have to do anything special.
12192 aix_use_runtimelinking=no
12193 exp_sym_flag='-Bexport'
12196 aix_use_runtimelinking=no
12198 # Test if we are trying to use run time linking or normal
12199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12200 # need to do runtime linking.
12201 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12202 for ld_flag in $LDFLAGS; do
12205 aix_use_runtimelinking=yes
12213 exp_sym_flag='-bexport'
12214 no_entry_flag='-bnoentry'
12217 # When large executables or shared objects are built, AIX ld can
12218 # have problems creating the table of contents. If linking a library
12219 # or program results in "error TOC overflow" add -mminimal-toc to
12220 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12221 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12223 archive_cmds_CXX=''
12224 hardcode_direct_CXX=yes
12225 hardcode_direct_absolute_CXX=yes
12226 hardcode_libdir_separator_CXX=':'
12227 link_all_deplibs_CXX=yes
12228 file_list_spec_CXX='${wl}-f,'
12230 if test "$GXX" = yes; then
12231 case $host_os in aix4.[012]|aix4.[012].*)
12232 # We only want to do this on AIX 4.2 and lower, the check
12233 # below for broken collect2 doesn't work under 4.3+
12234 collect2name=`${CC} -print-prog-name=collect2`
12235 if test -f "$collect2name" &&
12236 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12238 # We have reworked collect2
12241 # We have old collect2
12242 hardcode_direct_CXX=unsupported
12243 # It fails to find uninstalled libraries when the uninstalled
12244 # path is not listed in the libpath. Setting hardcode_minus_L
12245 # to unsupported forces relinking
12246 hardcode_minus_L_CXX=yes
12247 hardcode_libdir_flag_spec_CXX='-L$libdir'
12248 hardcode_libdir_separator_CXX=
12251 shared_flag='-shared'
12252 if test "$aix_use_runtimelinking" = yes; then
12253 shared_flag="$shared_flag "'${wl}-G'
12257 if test "$host_cpu" = ia64; then
12258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12259 # chokes on -Wl,-G. The following line is correct:
12262 if test "$aix_use_runtimelinking" = yes; then
12263 shared_flag='${wl}-G'
12265 shared_flag='${wl}-bM:SRE'
12270 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12271 # It seems that -bexpall does not export symbols beginning with
12272 # underscore (_), so it is better to generate a list of symbols to
12274 always_export_symbols_CXX=yes
12275 if test "$aix_use_runtimelinking" = yes; then
12276 # Warning - without using the other runtime loading flags (-brtl),
12277 # -berok will link without error, but may produce a broken library.
12278 allow_undefined_flag_CXX='-berok'
12279 # Determine the default libpath from the value encoded in an empty
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12292 if ac_fn_cxx_try_link "$LINENO"; then :
12294 lt_aix_libpath_sed='
12295 /Import File Strings/,/^$/ {
12301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12302 # Check for a 64-bit object if we didn't find anything.
12303 if test -z "$aix_libpath"; then
12304 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12311 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12313 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"
12315 if test "$host_cpu" = ia64; then
12316 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12317 allow_undefined_flag_CXX="-z nodefs"
12318 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"
12320 # Determine the default libpath from the value encoded in an
12321 # empty executable.
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12333 if ac_fn_cxx_try_link "$LINENO"; then :
12335 lt_aix_libpath_sed='
12336 /Import File Strings/,/^$/ {
12342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12343 # Check for a 64-bit object if we didn't find anything.
12344 if test -z "$aix_libpath"; then
12345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12352 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12353 # Warning - without using the other run time loading flags,
12354 # -berok will link without error, but may produce a broken library.
12355 no_undefined_flag_CXX=' ${wl}-bernotok'
12356 allow_undefined_flag_CXX=' ${wl}-berok'
12357 if test "$with_gnu_ld" = yes; then
12358 # We only use this code for GNU lds that support --whole-archive.
12359 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12361 # Exported symbols can be pulled into shared objects from archives
12362 whole_archive_flag_spec_CXX='$convenience'
12364 archive_cmds_need_lc_CXX=yes
12365 # This is similar to how AIX traditionally builds its shared
12367 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'
12373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12374 allow_undefined_flag_CXX=unsupported
12375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12376 # support --undefined. This deserves some investigation. FIXME
12377 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 case $cc_basename in
12386 # FIXME: insert proper C++ library support
12392 cygwin* | mingw* | pw32* | cegcc*)
12393 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12394 # as there is no search path for DLLs.
12395 hardcode_libdir_flag_spec_CXX='-L$libdir'
12396 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12397 allow_undefined_flag_CXX=unsupported
12398 always_export_symbols_CXX=no
12399 enable_shared_with_static_runtimes_CXX=yes
12401 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12402 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'
12403 # If the export-symbols file already is a .def file (1st line
12404 # is EXPORTS), use it as is; otherwise, prepend...
12405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12406 cp $export_symbols $output_objdir/$soname.def;
12408 echo EXPORTS > $output_objdir/$soname.def;
12409 cat $export_symbols >> $output_objdir/$soname.def;
12411 $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'
12416 darwin* | rhapsody*)
12419 archive_cmds_need_lc_CXX=no
12420 hardcode_direct_CXX=no
12421 hardcode_automatic_CXX=yes
12422 hardcode_shlibpath_var_CXX=unsupported
12423 if test "$lt_cv_ld_force_load" = "yes"; then
12424 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\"`'
12426 whole_archive_flag_spec_CXX=''
12428 link_all_deplibs_CXX=yes
12429 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12430 case $cc_basename in
12431 ifort*) _lt_dar_can_shared=yes ;;
12432 *) _lt_dar_can_shared=$GCC ;;
12434 if test "$_lt_dar_can_shared" = "yes"; then
12435 output_verbose_link_cmd=func_echo_all
12436 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}"
12437 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12438 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}"
12439 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}"
12440 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12441 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}"
12442 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}"
12452 case $cc_basename in
12454 # FIXME: insert proper C++ library support
12458 # Green Hills C++ Compiler
12459 # FIXME: insert proper C++ library support
12463 # FIXME: insert proper C++ library support
12470 # C++ shared libraries reported to be fairly broken before
12476 archive_cmds_need_lc_CXX=no
12479 freebsd* | dragonfly*)
12480 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12489 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490 link_all_deplibs_CXX=yes
12494 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12495 hardcode_libdir_separator_CXX=:
12496 export_dynamic_flag_spec_CXX='${wl}-E'
12497 hardcode_direct_CXX=yes
12498 hardcode_minus_L_CXX=yes # Not in the search PATH,
12499 # but as the default
12500 # location of the library.
12502 case $cc_basename in
12504 # FIXME: insert proper C++ library support
12508 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'
12509 # Commands to make compiler produce verbose output that lists
12510 # what "hidden" libraries, object files and flags are used when
12511 # linking a shared library.
12513 # There doesn't appear to be a way to prevent this compiler from
12514 # explicitly linking system object files so we need to strip them
12515 # from the output so that they don't get included in the library
12517 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"'
12520 if test "$GXX" = yes; then
12521 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12523 # FIXME: insert proper C++ library support
12531 if test $with_gnu_ld = no; then
12532 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12533 hardcode_libdir_separator_CXX=:
12539 export_dynamic_flag_spec_CXX='${wl}-E'
12545 hardcode_direct_CXX=no
12546 hardcode_shlibpath_var_CXX=no
12549 hardcode_direct_CXX=yes
12550 hardcode_direct_absolute_CXX=yes
12551 hardcode_minus_L_CXX=yes # Not in the search PATH,
12552 # but as the default
12553 # location of the library.
12557 case $cc_basename in
12559 # FIXME: insert proper C++ library support
12565 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12574 # Commands to make compiler produce verbose output that lists
12575 # what "hidden" libraries, object files and flags are used when
12576 # linking a shared library.
12578 # There doesn't appear to be a way to prevent this compiler from
12579 # explicitly linking system object files so we need to strip them
12580 # from the output so that they don't get included in the library
12582 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"'
12585 if test "$GXX" = yes; then
12586 if test $with_gnu_ld = no; then
12589 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12595 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12600 # FIXME: insert proper C++ library support
12608 hardcode_direct_CXX=no
12609 hardcode_shlibpath_var_CXX=no
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12611 export_dynamic_flag_spec_CXX='${wl}-E'
12612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12613 # Instead, shared libraries are loaded at an image base (0x10000000 by
12614 # default) and relocated if they conflict, which is a slow very memory
12615 # consuming and fragmenting process. To avoid this, we pick a random,
12616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12618 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'
12619 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'
12622 case $cc_basename in
12625 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'
12627 # Archives containing C++ object files must be created using
12628 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12629 # necessary to make sure instantiated templates are included
12631 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12634 if test "$GXX" = yes; then
12635 if test "$with_gnu_ld" = no; then
12636 archive_cmds_CXX='$CC -shared -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'
12638 archive_cmds_CXX='$CC -shared -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'
12641 link_all_deplibs_CXX=yes
12644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12645 hardcode_libdir_separator_CXX=:
12646 inherit_rpath_CXX=yes
12649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12650 case $cc_basename in
12652 # Kuck and Associates, Inc. (KAI) C++ Compiler
12654 # KCC will only create a shared library if the output file
12655 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12656 # to its proper name (with version) after linking.
12657 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'
12658 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'
12659 # Commands to make compiler produce verbose output that lists
12660 # what "hidden" libraries, object files and flags are used when
12661 # linking a shared library.
12663 # There doesn't appear to be a way to prevent this compiler from
12664 # explicitly linking system object files so we need to strip them
12665 # from the output so that they don't get included in the library
12667 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"'
12669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12672 # Archives containing C++ object files must be created using
12673 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12674 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12679 # version 8.0 and above of icpc choke on multiply defined symbols
12680 # if we add $predep_objects and $postdep_objects, however 7.1 and
12681 # earlier do not add the objects themselves.
12682 case `$CC -V 2>&1` in
12684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685 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'
12687 *) # Version 8.0 or newer
12690 ia64*) tmp_idyn=' -i_dynamic';;
12692 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 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'
12696 archive_cmds_need_lc_CXX=no
12697 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12699 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12702 # Portland Group C++ compiler
12704 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12705 prelink_cmds_CXX='tpldir=Template.dir~
12707 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12708 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12709 old_archive_cmds_CXX='tpldir=Template.dir~
12711 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12712 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12714 archive_cmds_CXX='tpldir=Template.dir~
12716 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12717 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12718 archive_expsym_cmds_CXX='tpldir=Template.dir~
12720 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12721 $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'
12723 *) # Version 6 and above use weak symbols
12724 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12725 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'
12729 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12731 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'
12735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12736 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'
12738 runpath_var=LD_RUN_PATH
12739 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12740 hardcode_libdir_separator_CXX=:
12742 # Commands to make compiler produce verbose output that lists
12743 # what "hidden" libraries, object files and flags are used when
12744 # linking a shared library.
12746 # There doesn't appear to be a way to prevent this compiler from
12747 # explicitly linking system object files so we need to strip them
12748 # from the output so that they don't get included in the library
12750 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'
12752 xl* | mpixl* | bgxl*)
12753 # IBM XL 8.0 on PPC, with GNU ld
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757 if test "x$supports_anon_versioning" = xyes; then
12758 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12760 echo "local: *; };" >> $output_objdir/$libname.ver~
12761 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12765 case `$CC -V 2>&1 | sed 5q` in
12768 no_undefined_flag_CXX=' -zdefs'
12769 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12770 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'
12771 hardcode_libdir_flag_spec_CXX='-R$libdir'
12772 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'
12773 compiler_needs_object_CXX=yes
12775 # Not sure whether something based on
12776 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12778 output_verbose_link_cmd='func_echo_all'
12780 # Archives containing C++ object files must be created using
12781 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12782 # necessary to make sure instantiated templates are included
12784 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12792 # FIXME: insert proper C++ library support
12797 # FIXME: insert proper C++ library support
12802 case $cc_basename in
12804 # FIXME: insert proper C++ library support
12808 # FIXME: insert proper C++ library support
12815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12816 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12818 hardcode_libdir_flag_spec_CXX='-R$libdir'
12819 hardcode_direct_CXX=yes
12820 hardcode_shlibpath_var_CXX=no
12822 # Workaround some broken pre-1.5 toolchains
12823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12831 # C++ shared libraries are fairly broken
12836 if test -f /usr/libexec/ld.so; then
12837 hardcode_direct_CXX=yes
12838 hardcode_shlibpath_var_CXX=no
12839 hardcode_direct_absolute_CXX=yes
12840 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12843 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12844 export_dynamic_flag_spec_CXX='${wl}-E'
12845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847 output_verbose_link_cmd=func_echo_all
12853 osf3* | osf4* | osf5*)
12854 case $cc_basename in
12856 # Kuck and Associates, Inc. (KAI) C++ Compiler
12858 # KCC will only create a shared library if the output file
12859 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12860 # to its proper name (with version) after linking.
12861 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'
12863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12864 hardcode_libdir_separator_CXX=:
12866 # Archives containing C++ object files must be created using
12867 # the KAI C++ compiler.
12869 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12870 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12874 # Rational C++ 2.4.1
12875 # FIXME: insert proper C++ library support
12881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12882 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'
12883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12886 allow_undefined_flag_CXX=' -expect_unresolved \*'
12887 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'
12888 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12889 echo "-hidden">> $lib.exp~
12890 $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~
12892 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12896 hardcode_libdir_separator_CXX=:
12898 # Commands to make compiler produce verbose output that lists
12899 # what "hidden" libraries, object files and flags are used when
12900 # linking a shared library.
12902 # There doesn't appear to be a way to prevent this compiler from
12903 # explicitly linking system object files so we need to strip them
12904 # from the output so that they don't get included in the library
12906 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"'
12909 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12910 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12913 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'
12916 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12921 hardcode_libdir_separator_CXX=:
12923 # Commands to make compiler produce verbose output that lists
12924 # what "hidden" libraries, object files and flags are used when
12925 # linking a shared library.
12926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12929 # FIXME: insert proper C++ library support
12937 # FIXME: insert proper C++ library support
12942 case $cc_basename in
12945 # FIXME: insert proper C++ library support
12950 # FIXME: insert proper C++ library support
12954 # FIXME: insert proper C++ library support
12961 case $cc_basename in
12963 # Sun C++ 4.2, 5.x and Centerline C++
12964 archive_cmds_need_lc_CXX=yes
12965 no_undefined_flag_CXX=' -zdefs'
12966 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12967 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12968 $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'
12970 hardcode_libdir_flag_spec_CXX='-R$libdir'
12971 hardcode_shlibpath_var_CXX=no
12973 solaris2.[0-5] | solaris2.[0-5].*) ;;
12975 # The compiler driver will combine and reorder linker options,
12976 # but understands `-z linker_flag'.
12977 # Supported since Solaris 2.6 (maybe 2.5.1?)
12978 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12981 link_all_deplibs_CXX=yes
12983 output_verbose_link_cmd='func_echo_all'
12985 # Archives containing C++ object files must be created using
12986 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12987 # necessary to make sure instantiated templates are included
12989 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12992 # Green Hills C++ Compiler
12993 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12995 # The C++ compiler must be used to create the archive.
12996 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12999 # GNU C++ compiler with Solaris linker
13000 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13001 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13002 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13003 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13004 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13005 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13007 # Commands to make compiler produce verbose output that lists
13008 # what "hidden" libraries, object files and flags are used when
13009 # linking a shared library.
13010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13012 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13014 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13015 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13016 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13018 # Commands to make compiler produce verbose output that lists
13019 # what "hidden" libraries, object files and flags are used when
13020 # linking a shared library.
13021 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13024 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13026 solaris2.[0-5] | solaris2.[0-5].*) ;;
13028 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13037 no_undefined_flag_CXX='${wl}-z,text'
13038 archive_cmds_need_lc_CXX=no
13039 hardcode_shlibpath_var_CXX=no
13040 runpath_var='LD_RUN_PATH'
13042 case $cc_basename in
13044 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13048 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13054 sysv5* | sco3.2v5* | sco5v6*)
13055 # Note: We can NOT use -z defs as we might desire, because we do not
13056 # link with -lc, and that would cause any symbols used from libc to
13057 # always be unresolved, which means just about no library would
13058 # ever link correctly. If we're not using GNU ld we use -z text
13059 # though, which does catch some bad symbols but isn't as heavy-handed
13061 no_undefined_flag_CXX='${wl}-z,text'
13062 allow_undefined_flag_CXX='${wl}-z,nodefs'
13063 archive_cmds_need_lc_CXX=no
13064 hardcode_shlibpath_var_CXX=no
13065 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13066 hardcode_libdir_separator_CXX=':'
13067 link_all_deplibs_CXX=yes
13068 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13069 runpath_var='LD_RUN_PATH'
13071 case $cc_basename in
13073 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13076 '"$old_archive_cmds_CXX"
13077 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13078 '"$reload_cmds_CXX"
13081 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13082 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 case $cc_basename in
13090 # NonStop-UX NCC 3.20
13091 # FIXME: insert proper C++ library support
13095 # FIXME: insert proper C++ library support
13102 # FIXME: insert proper C++ library support
13107 # FIXME: insert proper C++ library support
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13113 $as_echo "$ld_shlibs_CXX" >&6; }
13114 test "$ld_shlibs_CXX" = no && can_build_shared=no
13120 ## There is no encapsulation within the following macros, do not change
13121 ## the running order or otherwise move them around unless you know exactly
13122 ## what you are doing...
13123 # Dependencies to place before and after the object being linked:
13124 predep_objects_CXX=
13125 postdep_objects_CXX=
13128 compiler_lib_search_path_CXX=
13130 cat > conftest.$ac_ext <<_LT_EOF
13134 Foo (void) { a = 0; }
13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13141 (eval $ac_compile) 2>&5
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; }; then
13145 # Parse the compiler output and extract the necessary
13146 # objects, libraries and library flags.
13148 # Sentinel used to keep track of whether or not we are before
13149 # the conftest object file.
13150 pre_test_object_deps_done=no
13152 for p in `eval "$output_verbose_link_cmd"`; do
13156 # Some compilers place space between "-{L,R}" and the path.
13157 # Remove the space.
13158 if test $p = "-L" ||
13159 test $p = "-R"; then
13166 if test "$pre_test_object_deps_done" = no; then
13169 # Internal compiler library paths should come after those
13170 # provided the user. The postdeps already come after the
13171 # user supplied libs so there is no need to process them.
13172 if test -z "$compiler_lib_search_path_CXX"; then
13173 compiler_lib_search_path_CXX="${prev}${p}"
13175 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13178 # The "-l" case would never come before the object being
13179 # linked, so don't bother handling this case.
13182 if test -z "$postdeps_CXX"; then
13183 postdeps_CXX="${prev}${p}"
13185 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13191 # This assumes that the test object file only shows up
13192 # once in the compiler output.
13193 if test "$p" = "conftest.$objext"; then
13194 pre_test_object_deps_done=yes
13198 if test "$pre_test_object_deps_done" = no; then
13199 if test -z "$predep_objects_CXX"; then
13200 predep_objects_CXX="$p"
13202 predep_objects_CXX="$predep_objects_CXX $p"
13205 if test -z "$postdep_objects_CXX"; then
13206 postdep_objects_CXX="$p"
13208 postdep_objects_CXX="$postdep_objects_CXX $p"
13213 *) ;; # Ignore the rest.
13221 echo "libtool.m4: error: problem compiling CXX test program"
13224 $RM -f confest.$objext
13226 # PORTME: override above test on systems where it is broken
13229 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13230 # hack all around it, let's just trust "g++" to DTRT.
13231 predep_objects_CXX=
13232 postdep_objects_CXX=
13237 case `$CC -V 2>&1 | sed 5q` in
13241 # The more standards-conforming stlport4 library is
13242 # incompatible with the Cstd library. Avoid specifying
13243 # it if it's in CXXFLAGS. Ignore libCrun as
13244 # -library=stlport4 depends on it.
13245 case " $CXX $CXXFLAGS " in
13246 *" -library=stlport4 "*)
13247 solaris_use_stlport4=yes
13251 if test "$solaris_use_stlport4" != yes; then
13252 postdeps_CXX='-library=Cstd -library=Crun'
13259 case $cc_basename in
13261 # The more standards-conforming stlport4 library is
13262 # incompatible with the Cstd library. Avoid specifying
13263 # it if it's in CXXFLAGS. Ignore libCrun as
13264 # -library=stlport4 depends on it.
13265 case " $CXX $CXXFLAGS " in
13266 *" -library=stlport4 "*)
13267 solaris_use_stlport4=yes
13271 # Adding this requires a known-good setup of shared libraries for
13272 # Sun compiler versions before 5.6, else PIC objects from an old
13273 # archive will be linked into the output, leading to subtle bugs.
13274 if test "$solaris_use_stlport4" != yes; then
13275 postdeps_CXX='-library=Cstd -library=Crun'
13283 case " $postdeps_CXX " in
13284 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13286 compiler_lib_search_dirs_CXX=
13287 if test -n "${compiler_lib_search_path_CXX}"; then
13288 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13321 lt_prog_compiler_wl_CXX=
13322 lt_prog_compiler_pic_CXX=
13323 lt_prog_compiler_static_CXX=
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13326 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13328 # C++ specific cases for pic, static, wl, etc.
13329 if test "$GXX" = yes; then
13330 lt_prog_compiler_wl_CXX='-Wl,'
13331 lt_prog_compiler_static_CXX='-static'
13335 # All AIX code is PIC.
13336 if test "$host_cpu" = ia64; then
13337 # AIX 5 now supports IA64 processor
13338 lt_prog_compiler_static_CXX='-Bstatic'
13345 # see comment about AmigaOS4 .so support
13346 lt_prog_compiler_pic_CXX='-fPIC'
13349 # FIXME: we need at least 68020 code to build shared libraries, but
13350 # adding the `-m68020' flag to GCC prevents building anything better,
13352 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13357 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13358 # PIC is the default for these OSes.
13360 mingw* | cygwin* | os2* | pw32* | cegcc*)
13361 # This hack is so that the source file can tell whether it is being
13362 # built for inclusion in a dll (and should export symbols for example).
13363 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13364 # (--disable-auto-import) libraries
13365 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13367 darwin* | rhapsody*)
13368 # PIC is the default on this platform
13369 # Common symbols not allowed in MH_DYLIB files
13370 lt_prog_compiler_pic_CXX='-fno-common'
13373 # DJGPP does not support shared libraries at all
13374 lt_prog_compiler_pic_CXX=
13377 # PIC is the default for Haiku.
13378 # The "-static" flag exists, but is broken.
13379 lt_prog_compiler_static_CXX=
13382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13383 # Instead, we relocate shared libraries at runtime.
13386 if test -d /usr/nec; then
13387 lt_prog_compiler_pic_CXX=-Kconform_pic
13391 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13392 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13393 # sets the default TLS model and affects inlining.
13398 lt_prog_compiler_pic_CXX='-fPIC'
13403 # QNX uses GNU C++, but need to define -shared option too, otherwise
13404 # it will coredump.
13405 lt_prog_compiler_pic_CXX='-fPIC -shared'
13408 lt_prog_compiler_pic_CXX='-fPIC'
13414 # All AIX code is PIC.
13415 if test "$host_cpu" = ia64; then
13416 # AIX 5 now supports IA64 processor
13417 lt_prog_compiler_static_CXX='-Bstatic'
13419 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13423 case $cc_basename in
13425 # Green Hills C++ Compiler
13426 # _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"
13431 case $cc_basename in
13433 lt_prog_compiler_pic_CXX='-KPIC'
13436 # Green Hills C++ Compiler
13437 lt_prog_compiler_pic_CXX='-pic'
13443 freebsd* | dragonfly*)
13444 # FreeBSD uses GNU C++
13446 hpux9* | hpux10* | hpux11*)
13447 case $cc_basename in
13449 lt_prog_compiler_wl_CXX='-Wl,'
13450 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13451 if test "$host_cpu" != ia64; then
13452 lt_prog_compiler_pic_CXX='+Z'
13456 lt_prog_compiler_wl_CXX='-Wl,'
13457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13463 lt_prog_compiler_pic_CXX='+Z'
13472 # This is c89, which is MS Visual C++ (no shared libs)
13473 # Anyone wants to do a port?
13475 irix5* | irix6* | nonstopux*)
13476 case $cc_basename in
13478 lt_prog_compiler_wl_CXX='-Wl,'
13479 lt_prog_compiler_static_CXX='-non_shared'
13480 # CC pic flag -KPIC is the default.
13486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13487 case $cc_basename in
13490 lt_prog_compiler_wl_CXX='--backend -Wl,'
13491 lt_prog_compiler_pic_CXX='-fPIC'
13494 # old Intel C++ for x86_64 which still supported -KPIC.
13495 lt_prog_compiler_wl_CXX='-Wl,'
13496 lt_prog_compiler_pic_CXX='-KPIC'
13497 lt_prog_compiler_static_CXX='-static'
13500 # Intel C++, used to be incompatible with GCC.
13501 # ICC 10 doesn't accept -KPIC any more.
13502 lt_prog_compiler_wl_CXX='-Wl,'
13503 lt_prog_compiler_pic_CXX='-fPIC'
13504 lt_prog_compiler_static_CXX='-static'
13507 # Portland Group C++ compiler
13508 lt_prog_compiler_wl_CXX='-Wl,'
13509 lt_prog_compiler_pic_CXX='-fpic'
13510 lt_prog_compiler_static_CXX='-Bstatic'
13514 # Make sure the PIC flag is empty. It appears that all Alpha
13515 # Linux and Compaq Tru64 Unix objects are PIC.
13516 lt_prog_compiler_pic_CXX=
13517 lt_prog_compiler_static_CXX='-non_shared'
13519 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13520 # IBM XL 8.0, 9.0 on PPC and BlueGene
13521 lt_prog_compiler_wl_CXX='-Wl,'
13522 lt_prog_compiler_pic_CXX='-qpic'
13523 lt_prog_compiler_static_CXX='-qstaticlink'
13526 case `$CC -V 2>&1 | sed 5q` in
13529 lt_prog_compiler_pic_CXX='-KPIC'
13530 lt_prog_compiler_static_CXX='-Bstatic'
13531 lt_prog_compiler_wl_CXX='-Qoption ld '
13542 case $cc_basename in
13544 lt_prog_compiler_pic_CXX='-W c,exportall'
13553 # QNX uses GNU C++, but need to define -shared option too, otherwise
13554 # it will coredump.
13555 lt_prog_compiler_pic_CXX='-fPIC -shared'
13557 osf3* | osf4* | osf5*)
13558 case $cc_basename in
13560 lt_prog_compiler_wl_CXX='--backend -Wl,'
13563 # Rational C++ 2.4.1
13564 lt_prog_compiler_pic_CXX='-pic'
13567 # Digital/Compaq C++
13568 lt_prog_compiler_wl_CXX='-Wl,'
13569 # Make sure the PIC flag is empty. It appears that all Alpha
13570 # Linux and Compaq Tru64 Unix objects are PIC.
13571 lt_prog_compiler_pic_CXX=
13572 lt_prog_compiler_static_CXX='-non_shared'
13581 case $cc_basename in
13583 # Sun C++ 4.2, 5.x and Centerline C++
13584 lt_prog_compiler_pic_CXX='-KPIC'
13585 lt_prog_compiler_static_CXX='-Bstatic'
13586 lt_prog_compiler_wl_CXX='-Qoption ld '
13589 # Green Hills C++ Compiler
13590 lt_prog_compiler_pic_CXX='-PIC'
13597 case $cc_basename in
13600 lt_prog_compiler_pic_CXX='-pic'
13601 lt_prog_compiler_static_CXX='-Bstatic'
13605 lt_prog_compiler_pic_CXX='-pic'
13611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13612 case $cc_basename in
13614 lt_prog_compiler_wl_CXX='-Wl,'
13615 lt_prog_compiler_pic_CXX='-KPIC'
13616 lt_prog_compiler_static_CXX='-Bstatic'
13621 case $cc_basename in
13623 # NonStop-UX NCC 3.20
13624 lt_prog_compiler_pic_CXX='-KPIC'
13633 lt_prog_compiler_can_build_shared_CXX=no
13639 # For platforms which do not support PIC, -DPIC is meaningless:
13641 lt_prog_compiler_pic_CXX=
13644 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13648 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13653 # Check to make sure the PIC flag actually works.
13655 if test -n "$lt_prog_compiler_pic_CXX"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13658 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13661 lt_cv_prog_compiler_pic_works_CXX=no
13662 ac_outfile=conftest.$ac_objext
13663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13664 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13665 # Insert the option either (1) after the last *FLAGS variable, or
13666 # (2) before a word containing "conftest.", or (3) at the end.
13667 # Note that $ac_compile itself does not contain backslashes and begins
13668 # with a dollar sign (not a hyphen), so the echo should work correctly.
13669 # The option is referenced via a variable to avoid confusing sed.
13670 lt_compile=`echo "$ac_compile" | $SED \
13671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13673 -e 's:$: $lt_compiler_flag:'`
13674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13675 (eval "$lt_compile" 2>conftest.err)
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 if (exit $ac_status) && test -s "$ac_outfile"; then
13680 # The compiler can only warn and ignore the option if not recognized
13681 # So say no if there are warnings other than the usual output.
13682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13685 lt_cv_prog_compiler_pic_works_CXX=yes
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13692 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13694 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13695 case $lt_prog_compiler_pic_CXX in
13697 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13700 lt_prog_compiler_pic_CXX=
13701 lt_prog_compiler_can_build_shared_CXX=no
13709 # Check to make sure the static flag actually works.
13711 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13714 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13715 $as_echo_n "(cached) " >&6
13717 lt_cv_prog_compiler_static_works_CXX=no
13718 save_LDFLAGS="$LDFLAGS"
13719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13722 # The linker can only warn and ignore the option if not recognized
13723 # So say no if there are warnings
13724 if test -s conftest.err; then
13725 # Append any errors to the config.log.
13726 cat conftest.err 1>&5
13727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13729 if diff conftest.exp conftest.er2 >/dev/null; then
13730 lt_cv_prog_compiler_static_works_CXX=yes
13733 lt_cv_prog_compiler_static_works_CXX=yes
13737 LDFLAGS="$save_LDFLAGS"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13741 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13743 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13746 lt_prog_compiler_static_CXX=
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13754 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13757 lt_cv_prog_compiler_c_o_CXX=no
13758 $RM -r conftest 2>/dev/null
13762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13764 lt_compiler_flag="-o out/conftest2.$ac_objext"
13765 # Insert the option either (1) after the last *FLAGS variable, or
13766 # (2) before a word containing "conftest.", or (3) at the end.
13767 # Note that $ac_compile itself does not contain backslashes and begins
13768 # with a dollar sign (not a hyphen), so the echo should work correctly.
13769 lt_compile=`echo "$ac_compile" | $SED \
13770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13772 -e 's:$: $lt_compiler_flag:'`
13773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13774 (eval "$lt_compile" 2>out/conftest.err)
13776 cat out/conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13780 # The compiler can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13785 lt_cv_prog_compiler_c_o_CXX=yes
13790 # SGI C++ compiler will create directory out/ii_files/ for
13791 # template instantiation
13792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13793 $RM out/* && rmdir out
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13800 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13806 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13809 lt_cv_prog_compiler_c_o_CXX=no
13810 $RM -r conftest 2>/dev/null
13814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13816 lt_compiler_flag="-o out/conftest2.$ac_objext"
13817 # Insert the option either (1) after the last *FLAGS variable, or
13818 # (2) before a word containing "conftest.", or (3) at the end.
13819 # Note that $ac_compile itself does not contain backslashes and begins
13820 # with a dollar sign (not a hyphen), so the echo should work correctly.
13821 lt_compile=`echo "$ac_compile" | $SED \
13822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13824 -e 's:$: $lt_compiler_flag:'`
13825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13826 (eval "$lt_compile" 2>out/conftest.err)
13828 cat out/conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13832 # The compiler can only warn and ignore the option if not recognized
13833 # So say no if there are warnings
13834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13837 lt_cv_prog_compiler_c_o_CXX=yes
13842 # SGI C++ compiler will create directory out/ii_files/ for
13843 # template instantiation
13844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13845 $RM out/* && rmdir out
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13852 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13857 hard_links="nottested"
13858 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13859 # do not overwrite the value of need_locks provided by the user
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13861 $as_echo_n "checking if we can lock with hard links... " >&6; }
13864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13866 ln conftest.a conftest.b 2>&5 || hard_links=no
13867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13869 $as_echo "$hard_links" >&6; }
13870 if test "$hard_links" = no; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13872 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13887 # If we're using GNU nm, then we don't want the "-C" option.
13888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13889 # Also, AIX nm treats weak defined symbols like other global defined
13890 # symbols, whereas GNU nm marks them as "W".
13891 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13892 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'
13894 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'
13898 export_symbols_cmds_CXX="$ltdll_cmds"
13900 cygwin* | mingw* | cegcc*)
13901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13907 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13910 $as_echo "$ld_shlibs_CXX" >&6; }
13911 test "$ld_shlibs_CXX" = no && can_build_shared=no
13913 with_gnu_ld_CXX=$with_gnu_ld
13921 # Do we need to explicitly link libc?
13923 case "x$archive_cmds_need_lc_CXX" in
13925 # Assume -lc should be added
13926 archive_cmds_need_lc_CXX=yes
13928 if test "$enable_shared" = yes && test "$GCC" = yes; then
13929 case $archive_cmds_CXX in
13931 # FIXME: we may have to deal with multi-command sequences.
13934 # Test whether the compiler implicitly links with -lc since on some
13935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13936 # to ld, don't add -lc before -lgcc.
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13938 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13939 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13946 (eval $ac_compile) 2>&5
13948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949 test $ac_status = 0; } 2>conftest.err; then
13952 libobjs=conftest.$ac_objext
13954 wl=$lt_prog_compiler_wl_CXX
13955 pic_flag=$lt_prog_compiler_pic_CXX
13961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13962 allow_undefined_flag_CXX=
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13964 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967 test $ac_status = 0; }
13969 lt_cv_archive_cmds_need_lc_CXX=no
13971 lt_cv_archive_cmds_need_lc_CXX=yes
13973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13975 cat conftest.err 1>&5
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13981 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13982 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14055 library_names_spec=
14056 libname_spec='lib$name'
14060 postuninstall_cmds=
14064 shlibpath_overrides_runpath=unknown
14066 dynamic_linker="$host_os ld.so"
14067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14068 need_lib_prefix=unknown
14069 hardcode_into_libs=no
14071 # when you set need_version to no, make sure it does not cause -set_version
14072 # flags to be left without arguments
14073 need_version=unknown
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14079 shlibpath_var=LIBPATH
14081 # AIX 3 has no versioning support, so we append a major version to the name.
14082 soname_spec='${libname}${release}${shared_ext}$major'
14089 hardcode_into_libs=yes
14090 if test "$host_cpu" = ia64; then
14091 # AIX 5 supports IA64
14092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14093 shlibpath_var=LD_LIBRARY_PATH
14095 # With GCC up to 2.95.x, collect2 would create an import file
14096 # for dependence libraries. The import file would start with
14097 # the line `#! .'. This would cause the generated library to
14098 # depend on `.', always an invalid library. This was fixed in
14099 # development snapshots of GCC prior to 3.0.
14101 aix4 | aix4.[01] | aix4.[01].*)
14102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14104 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14107 can_build_shared=no
14111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14112 # soname into executable. Probably we can add versioning support to
14113 # collect2, so additional links can be useful in future.
14114 if test "$aix_use_runtimelinking" = yes; then
14115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14116 # instead of lib<name>.a to let people know that these are not
14117 # typical AIX shared libraries.
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 # We preserve .a as extension for shared libraries through AIX4.2
14121 # and later when we are not doing run time linking.
14122 library_names_spec='${libname}${release}.a $libname.a'
14123 soname_spec='${libname}${release}${shared_ext}$major'
14125 shlibpath_var=LIBPATH
14132 # Since July 2007 AmigaOS4 officially supports .so libraries.
14133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 library_names_spec='$libname.ixlibrary $libname.a'
14138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14139 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'
14145 library_names_spec='${libname}${shared_ext}'
14146 dynamic_linker="$host_os ld.so"
14147 shlibpath_var=LIBRARY_PATH
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 soname_spec='${libname}${release}${shared_ext}$major'
14155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14159 # the default ld.so.conf also contains /usr/contrib/lib and
14160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14161 # libtool to hard-code these into programs
14164 cygwin* | mingw* | pw32* | cegcc*)
14165 version_type=windows
14170 case $GCC,$host_os in
14171 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14172 library_names_spec='$libname.dll.a'
14173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14174 postinstall_cmds='base_file=`basename \${file}`~
14175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14176 dldir=$destdir/`dirname \$dlpath`~
14177 test -d \$dldir || mkdir -p \$dldir~
14178 $install_prog $dir/$dlname \$dldir/$dlname~
14179 chmod a+x \$dldir/$dlname~
14180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14184 dlpath=$dir/\$dldll~
14186 shlibpath_overrides_runpath=yes
14190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14195 # MinGW DLLs use traditional 'lib' prefix
14196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14199 # pw32 DLLs use 'pw' prefix rather than 'lib'
14200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14209 dynamic_linker='Win32 ld.exe'
14210 # FIXME: first we should search . and the directory the executable is in
14214 darwin* | rhapsody*)
14215 dynamic_linker="$host_os dyld"
14216 version_type=darwin
14219 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14220 soname_spec='${libname}${release}${major}$shared_ext'
14221 shlibpath_overrides_runpath=yes
14222 shlibpath_var=DYLD_LIBRARY_PATH
14223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 shlibpath_var=LD_LIBRARY_PATH
14241 freebsd* | dragonfly*)
14242 # DragonFly does not have aout. When/if they implement a new
14243 # versioning mechanism, adjust this.
14244 if test -x /usr/bin/objformat; then
14245 objformat=`/usr/bin/objformat`
14248 freebsd[123]*) objformat=aout ;;
14249 *) objformat=elf ;;
14252 # Handle Gentoo/FreeBSD as it was Linux
14253 case $host_vendor in
14255 version_type=linux ;;
14257 version_type=freebsd-$objformat ;;
14260 case $version_type in
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14280 shlibpath_overrides_runpath=yes
14282 freebsd3.[01]* | freebsdelf3.[01]*)
14283 shlibpath_overrides_runpath=yes
14284 hardcode_into_libs=yes
14286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14288 shlibpath_overrides_runpath=no
14289 hardcode_into_libs=yes
14291 *) # from 4.6 on, and DragonFly
14292 shlibpath_overrides_runpath=yes
14293 hardcode_into_libs=yes
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 hardcode_into_libs=yes
14312 dynamic_linker="$host_os runtime_loader"
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 shlibpath_var=LIBRARY_PATH
14316 shlibpath_overrides_runpath=yes
14317 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14318 hardcode_into_libs=yes
14321 hpux9* | hpux10* | hpux11*)
14322 # Give a soname corresponding to the major version so that dld.sl refuses to
14323 # link against other versions.
14330 hardcode_into_libs=yes
14331 dynamic_linker="$host_os dld.so"
14332 shlibpath_var=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 if test "X$HPUX_IA64_MODE" = X32; then
14337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14339 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14345 hardcode_into_libs=yes
14346 dynamic_linker="$host_os dld.sl"
14347 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14356 dynamic_linker="$host_os dld.sl"
14357 shlibpath_var=SHLIB_PATH
14358 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360 soname_spec='${libname}${release}${shared_ext}$major'
14363 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14364 postinstall_cmds='chmod 555 $lib'
14365 # or fails outright, so override atomically:
14366 install_override_mode=555
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=no
14378 hardcode_into_libs=yes
14381 irix5* | irix6* | nonstopux*)
14383 nonstopux*) version_type=nonstopux ;;
14385 if test "$lt_cv_prog_gnu_ld" = yes; then
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14396 irix5* | nonstopux*)
14397 libsuff= shlibsuff=
14400 case $LD in # libtool.m4 will add one of these switches to LD
14401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14402 libsuff= shlibsuff= libmagic=32-bit;;
14403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14404 libsuff=32 shlibsuff=N32 libmagic=N32;;
14405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14406 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14407 *) libsuff= shlibsuff= libmagic=never-match;;
14411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14412 shlibpath_overrides_runpath=no
14413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14415 hardcode_into_libs=yes
14418 # No shared lib support for Linux oldld, aout, or coff.
14419 linux*oldld* | linux*aout* | linux*coff*)
14423 # This must be Linux ELF.
14424 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429 soname_spec='${libname}${release}${shared_ext}$major'
14430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath=no
14434 # Some binutils ld are patched to set DT_RUNPATH
14435 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14436 $as_echo_n "(cached) " >&6
14438 lt_cv_shlibpath_overrides_runpath=no
14439 save_LDFLAGS=$LDFLAGS
14440 save_libdir=$libdir
14441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14454 if ac_fn_cxx_try_link "$LINENO"; then :
14455 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14456 lt_cv_shlibpath_overrides_runpath=yes
14459 rm -f core conftest.err conftest.$ac_objext \
14460 conftest$ac_exeext conftest.$ac_ext
14461 LDFLAGS=$save_LDFLAGS
14462 libdir=$save_libdir
14466 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14468 # This implies no fast_install, which is unacceptable.
14469 # Some rework will be needed to allow for fast_install
14470 # before this can be enabled.
14471 hardcode_into_libs=yes
14473 # Append ld.so.conf contents to the search path
14474 if test -f /etc/ld.so.conf; then
14475 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' ' '`
14476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14479 # We used to test for /lib/ld.so.1 and disable shared libraries on
14480 # powerpc, because MkLinux only supported shared libraries with the
14481 # GNU dynamic linker. Since this was broken with cross compilers,
14482 # most powerpc-linux boxes support dynamic linking these days and
14483 # people can always --disable-shared, the test was removed, and we
14484 # assume the GNU/Linux dynamic linker is in use.
14485 dynamic_linker='GNU/Linux ld.so'
14492 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14495 dynamic_linker='NetBSD (a.out) ld.so'
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 dynamic_linker='NetBSD ld.elf_so'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 shlibpath_overrides_runpath=yes
14503 hardcode_into_libs=yes
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=yes
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=no
14521 hardcode_into_libs=yes
14522 dynamic_linker='ldqnx.so'
14527 sys_lib_dlsearch_path_spec="/usr/lib"
14529 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14531 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14532 *) need_version=no ;;
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14539 openbsd2.[89] | openbsd2.[89].*)
14540 shlibpath_overrides_runpath=no
14543 shlibpath_overrides_runpath=yes
14547 shlibpath_overrides_runpath=yes
14552 libname_spec='$name'
14555 library_names_spec='$libname${shared_ext} $libname.a'
14556 dynamic_linker='OS/2 ld.exe'
14557 shlibpath_var=LIBPATH
14560 osf3* | osf4* | osf5*)
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=yes
14583 hardcode_into_libs=yes
14584 # ldd complains unless libraries are executable
14585 postinstall_cmds='chmod +x $lib'
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes
14594 if test "$with_gnu_ld" = yes; then
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 case $host_vendor in
14607 shlibpath_overrides_runpath=no
14609 runpath_var=LD_RUN_PATH
14617 shlibpath_overrides_runpath=no
14618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14624 if test -d /usr/nec ;then
14626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14627 soname_spec='$libname${shared_ext}.$major'
14628 shlibpath_var=LD_LIBRARY_PATH
14632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14633 version_type=freebsd-elf
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14641 if test "$with_gnu_ld" = yes; then
14642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14651 sys_lib_dlsearch_path_spec='/usr/lib'
14655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=no
14662 hardcode_into_libs=yes
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14677 $as_echo "$dynamic_linker" >&6; }
14678 test "$dynamic_linker" = no && can_build_shared=no
14680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14681 if test "$GCC" = yes; then
14682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14685 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14686 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14688 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14689 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14730 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14731 hardcode_action_CXX=
14732 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14733 test -n "$runpath_var_CXX" ||
14734 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14736 # We can hardcode non-existent directories.
14737 if test "$hardcode_direct_CXX" != no &&
14738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14739 # have to relink, otherwise we might link with an installed library
14740 # when we should be linking with a yet-to-be-installed one
14741 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14742 test "$hardcode_minus_L_CXX" != no; then
14743 # Linking always hardcodes the temporary library directory.
14744 hardcode_action_CXX=relink
14746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14747 hardcode_action_CXX=immediate
14750 # We cannot hardcode anything, or else we can only hardcode existing
14752 hardcode_action_CXX=unsupported
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14755 $as_echo "$hardcode_action_CXX" >&6; }
14757 if test "$hardcode_action_CXX" = relink ||
14758 test "$inherit_rpath_CXX" = yes; then
14759 # Fast installation is not supported
14760 enable_fast_install=no
14761 elif test "$shlibpath_overrides_runpath" = yes ||
14762 test "$enable_shared" = no; then
14763 # Fast installation is not necessary
14764 enable_fast_install=needless
14773 fi # test -n "$compiler"
14779 with_gnu_ld=$lt_save_with_gnu_ld
14780 lt_cv_path_LDCXX=$lt_cv_path_LD
14781 lt_cv_path_LD=$lt_save_path_LD
14782 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14783 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14784 fi # test "$_lt_caught_CXX_error" != yes
14787 ac_cpp='$CPP $CPPFLAGS'
14788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14804 ac_config_commands="$ac_config_commands libtool"
14809 # Only expand once:
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14813 $as_echo_n "checking whether ln -s works... " >&6; }
14815 if test "$LN_S" = "ln -s"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817 $as_echo "yes" >&6; }
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14820 $as_echo "no, using $LN_S" >&6; }
14827 PCRE_DATE="2010-12-10"
14829 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
14832 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
14833 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
14843 # Set a more sensible default value for $(htmldir).
14844 if test "x$htmldir" = 'x${docdir}'
14846 htmldir='${docdir}/html'
14849 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
14851 # Check whether --enable-cpp was given.
14852 if test "${enable_cpp+set}" = set; then :
14853 enableval=$enable_cpp;
14860 # Handle --enable-rebuild-chartables
14861 # Check whether --enable-rebuild-chartables was given.
14862 if test "${enable_rebuild_chartables+set}" = set; then :
14863 enableval=$enable_rebuild_chartables;
14865 enable_rebuild_chartables=no
14869 # Handle --enable-utf8 (disabled by default)
14870 # Check whether --enable-utf8 was given.
14871 if test "${enable_utf8+set}" = set; then :
14872 enableval=$enable_utf8;
14878 # Handle --enable-unicode-properties
14879 # Check whether --enable-unicode-properties was given.
14880 if test "${enable_unicode_properties+set}" = set; then :
14881 enableval=$enable_unicode_properties;
14883 enable_unicode_properties=no
14887 # Handle --enable-newline=NL
14889 # Separate newline options
14891 # Check whether --enable-newline-is-cr was given.
14892 if test "${enable_newline_is_cr+set}" = set; then :
14893 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
14896 # Check whether --enable-newline-is-lf was given.
14897 if test "${enable_newline_is_lf+set}" = set; then :
14898 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
14901 # Check whether --enable-newline-is-crlf was given.
14902 if test "${enable_newline_is_crlf+set}" = set; then :
14903 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
14906 # Check whether --enable-newline-is-anycrlf was given.
14907 if test "${enable_newline_is_anycrlf+set}" = set; then :
14908 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
14911 # Check whether --enable-newline-is-any was given.
14912 if test "${enable_newline_is_any+set}" = set; then :
14913 enableval=$enable_newline_is_any; ac_pcre_newline=any
14916 enable_newline="$ac_pcre_newline"
14918 # Handle --enable-bsr-anycrlf
14919 # Check whether --enable-bsr-anycrlf was given.
14920 if test "${enable_bsr_anycrlf+set}" = set; then :
14921 enableval=$enable_bsr_anycrlf;
14923 enable_bsr_anycrlf=no
14927 # Handle --enable-ebcdic
14928 # Check whether --enable-ebcdic was given.
14929 if test "${enable_ebcdic+set}" = set; then :
14930 enableval=$enable_ebcdic;
14936 # Handle --disable-stack-for-recursion
14937 # Check whether --enable-stack-for-recursion was given.
14938 if test "${enable_stack_for_recursion+set}" = set; then :
14939 enableval=$enable_stack_for_recursion;
14941 enable_stack_for_recursion=yes
14945 # Handle --enable-pcregrep-libz
14946 # Check whether --enable-pcregrep-libz was given.
14947 if test "${enable_pcregrep_libz+set}" = set; then :
14948 enableval=$enable_pcregrep_libz;
14950 enable_pcregrep_libz=no
14954 # Handle --enable-pcregrep-libbz2
14955 # Check whether --enable-pcregrep-libbz2 was given.
14956 if test "${enable_pcregrep_libbz2+set}" = set; then :
14957 enableval=$enable_pcregrep_libbz2;
14959 enable_pcregrep_libbz2=no
14963 # Handle --enable-pcretest-libreadline
14964 # Check whether --enable-pcretest-libreadline was given.
14965 if test "${enable_pcretest_libreadline+set}" = set; then :
14966 enableval=$enable_pcretest_libreadline;
14968 enable_pcretest_libreadline=no
14972 # Handle --with-posix-malloc-threshold=NBYTES
14974 # Check whether --with-posix-malloc-threshold was given.
14975 if test "${with_posix_malloc_threshold+set}" = set; then :
14976 withval=$with_posix_malloc_threshold;
14978 with_posix_malloc_threshold=10
14982 # Handle --with-link-size=N
14984 # Check whether --with-link-size was given.
14985 if test "${with_link_size+set}" = set; then :
14986 withval=$with_link_size;
14992 # Handle --with-match-limit=N
14994 # Check whether --with-match-limit was given.
14995 if test "${with_match_limit+set}" = set; then :
14996 withval=$with_match_limit;
14998 with_match_limit=10000000
15002 # Handle --with-match-limit_recursion=N
15004 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
15005 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
15006 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
15007 # different numeric value (or even the same numeric value as MATCH_LIMIT,
15008 # though no longer defined in terms of the latter).
15011 # Check whether --with-match-limit-recursion was given.
15012 if test "${with_match_limit_recursion+set}" = set; then :
15013 withval=$with_match_limit_recursion;
15015 with_match_limit_recursion=MATCH_LIMIT
15019 # Make sure that if enable_unicode_properties was set, that UTF-8 support
15022 if test "x$enable_unicode_properties" = "xyes"
15024 if test "x$enable_utf8" = "xno"
15026 as_fn_error "support for Unicode properties requires UTF-8 support" "$LINENO" 5
15031 if test "x$enable_utf8" = "xunset"
15036 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
15037 # Also check that UTF-8 support is not requested, because PCRE cannot handle
15038 # EBCDIC and UTF-8 in the same build. To do so it would need to use different
15039 # character constants depending on the mode.
15041 if test "x$enable_ebcdic" = "xyes"
15043 enable_rebuild_chartables=yes
15044 if test "x$enable_utf8" = "xyes"
15046 as_fn_error "support for EBCDIC and UTF-8 cannot be enabled at the same time" "$LINENO" 5
15050 # Convert the newline identifier into the appropriate integer value.
15051 case "$enable_newline" in
15052 lf) ac_pcre_newline_value=10 ;;
15053 cr) ac_pcre_newline_value=13 ;;
15054 crlf) ac_pcre_newline_value=3338 ;;
15055 anycrlf) ac_pcre_newline_value=-2 ;;
15056 any) ac_pcre_newline_value=-1 ;;
15058 as_fn_error "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
15062 # Check argument to --with-link-size
15063 case "$with_link_size" in
15066 as_fn_error "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
15072 # Checks for header files.
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15074 $as_echo_n "checking for ANSI C header files... " >&6; }
15075 if test "${ac_cv_header_stdc+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #include <stdlib.h>
15081 #include <stdarg.h>
15082 #include <string.h>
15093 if ac_fn_c_try_compile "$LINENO"; then :
15094 ac_cv_header_stdc=yes
15096 ac_cv_header_stdc=no
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 if test $ac_cv_header_stdc = yes; then
15101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 #include <string.h>
15107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15108 $EGREP "memchr" >/dev/null 2>&1; then :
15111 ac_cv_header_stdc=no
15117 if test $ac_cv_header_stdc = yes; then
15118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15121 #include <stdlib.h>
15124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15125 $EGREP "free" >/dev/null 2>&1; then :
15128 ac_cv_header_stdc=no
15134 if test $ac_cv_header_stdc = yes; then
15135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15136 if test "$cross_compiling" = yes; then :
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15142 #include <stdlib.h>
15143 #if ((' ' & 0x0FF) == 0x020)
15144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15147 # define ISLOWER(c) \
15148 (('a' <= (c) && (c) <= 'i') \
15149 || ('j' <= (c) && (c) <= 'r') \
15150 || ('s' <= (c) && (c) <= 'z'))
15151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15159 for (i = 0; i < 256; i++)
15160 if (XOR (islower (i), ISLOWER (i))
15161 || toupper (i) != TOUPPER (i))
15166 if ac_fn_c_try_run "$LINENO"; then :
15169 ac_cv_header_stdc=no
15171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15172 conftest.$ac_objext conftest.beam conftest.$ac_ext
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15178 $as_echo "$ac_cv_header_stdc" >&6; }
15179 if test $ac_cv_header_stdc = yes; then
15181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15185 for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
15187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15188 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15189 eval as_val=\$$as_ac_Header
15190 if test "x$as_val" = x""yes; then :
15191 cat >>confdefs.h <<_ACEOF
15192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15200 # The files below are C++ header files.
15201 pcre_have_type_traits="0"
15202 pcre_have_bits_type_traits="0"
15203 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
15206 ac_cpp='$CXXCPP $CPPFLAGS'
15207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15212 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
15213 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
15214 # we want to make one an alias for the other. Different systems do
15215 # this in different ways. Some systems, for instance, can do it via
15216 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
15217 OLD_LDFLAGS="$LDFLAGS"
15218 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
15219 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
15221 $as_echo_n "checking for alias support in the linker... " >&6; }
15222 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
15223 # We try to run the linker with this new ld flag. If the link fails,
15224 # we give up and remove the new flag from LDFLAGS.
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 namespace pcrecpp {
15228 class RE { static int no_arg; };
15239 if ac_fn_cxx_try_link "$LINENO"; then :
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15241 $as_echo "yes" >&6; };
15242 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 $as_echo "no" >&6; }
15248 rm -f core conftest.err conftest.$ac_objext \
15249 conftest$ac_exeext conftest.$ac_ext
15251 LDFLAGS="$OLD_LDFLAGS"
15253 # We could be more clever here, given we're doing AC_SUBST with this
15254 # (eg set a var to be the name of the include file we want). But we're not
15255 # so it's easy to change back to 'regular' autoconf vars if we needed to.
15257 for ac_header in string
15259 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
15260 if test "x$ac_cv_header_string" = x""yes; then :
15261 cat >>confdefs.h <<_ACEOF
15262 #define HAVE_STRING 1
15264 pcre_have_cpp_headers="1"
15266 pcre_have_cpp_headers="0"
15271 for ac_header in bits/type_traits.h
15273 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
15274 if test "x$ac_cv_header_bits_type_traits_h" = x""yes; then :
15275 cat >>confdefs.h <<_ACEOF
15276 #define HAVE_BITS_TYPE_TRAITS_H 1
15278 pcre_have_bits_type_traits="1"
15280 pcre_have_bits_type_traits="0"
15285 for ac_header in type_traits.h
15287 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
15288 if test "x$ac_cv_header_type_traits_h" = x""yes; then :
15289 cat >>confdefs.h <<_ACEOF
15290 #define HAVE_TYPE_TRAITS_H 1
15292 pcre_have_type_traits="1"
15294 pcre_have_type_traits="0"
15300 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
15301 # in a c++ context. This matters becuase strtoimax is C99 and may not
15302 # be supported by the C++ compiler.)
15303 # Figure out how to create a longlong from a string: strtoll and
15304 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
15305 # strtoll, for instance, but it only takes 2 args instead of 3!
15306 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
15312 for fn in strtoq strtoll _strtoi64 strtoimax; do
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
15314 $as_echo_n "checking for $fn... " >&6; }
15315 if test "$fn" = strtoimax; then
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 #include <$include>
15326 char* e; return $fn("100", &e, 10)
15331 if ac_fn_cxx_try_compile "$LINENO"; then :
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15333 $as_echo "yes" >&6; }
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343 $as_echo "no" >&6; }
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 if test "$have_strto_fn" = 1; then
15349 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15350 if test "x$ac_cv_type_long_long" = x""yes; then :
15352 cat >>confdefs.h <<_ACEOF
15353 #define HAVE_LONG_LONG 1
15356 pcre_have_long_long="1"
15358 pcre_have_long_long="0"
15361 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
15362 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_UNSIGNED_LONG_LONG 1
15368 pcre_have_ulong_long="1"
15370 pcre_have_ulong_long="0"
15374 pcre_have_long_long="0"
15375 pcre_have_ulong_long="0"
15381 ac_cpp='$CPP $CPPFLAGS'
15382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15387 # Using AC_SUBST eliminates the need to include config.h in a public .h file
15391 # Conditional compilation
15392 if test "x$enable_cpp" = "xyes"; then
15393 WITH_PCRE_CPP_TRUE=
15394 WITH_PCRE_CPP_FALSE='#'
15396 WITH_PCRE_CPP_TRUE='#'
15397 WITH_PCRE_CPP_FALSE=
15400 if test "x$enable_rebuild_chartables" = "xyes"; then
15401 WITH_REBUILD_CHARTABLES_TRUE=
15402 WITH_REBUILD_CHARTABLES_FALSE='#'
15404 WITH_REBUILD_CHARTABLES_TRUE='#'
15405 WITH_REBUILD_CHARTABLES_FALSE=
15409 # Checks for typedefs, structures, and compiler characteristics.
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15412 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15413 if test "${ac_cv_c_const+set}" = set; then :
15414 $as_echo_n "(cached) " >&6
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15422 /* FIXME: Include the comments suggested by Paul. */
15423 #ifndef __cplusplus
15424 /* Ultrix mips cc rejects this. */
15425 typedef int charset[2];
15427 /* SunOS 4.1.1 cc rejects this. */
15428 char const *const *pcpcc;
15430 /* NEC SVR4.0.2 mips cc rejects this. */
15431 struct point {int x, y;};
15432 static struct point const zero = {0,0};
15433 /* AIX XL C 1.02.0.0 rejects this.
15434 It does not let you subtract one const X* pointer from another in
15435 an arm of an if-expression whose if-part is not a constant
15437 const char *g = "string";
15438 pcpcc = &g + (g ? g-g : 0);
15439 /* HPUX 7.0 cc rejects these. */
15441 ppc = (char**) pcpcc;
15442 pcpcc = (char const *const *) ppc;
15443 { /* SCO 3.2v4 cc rejects this. */
15445 char const *s = 0 ? (char *) 0 : (char const *) 0;
15450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15451 int x[] = {25, 17};
15452 const int *foo = &x[0];
15455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15456 typedef const int *iptr;
15460 { /* AIX XL C 1.02.0.0 rejects this saying
15461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15462 struct s { int j; const int *ap[3]; };
15463 struct s *b; b->j = 5;
15465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15466 const int foo = 10;
15467 if (!foo) return 0;
15469 return !cs[0] && !zero.x;
15476 if ac_fn_c_try_compile "$LINENO"; then :
15481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15484 $as_echo "$ac_cv_c_const" >&6; }
15485 if test $ac_cv_c_const = no; then
15487 $as_echo "#define const /**/" >>confdefs.h
15491 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15492 if test "x$ac_cv_type_size_t" = x""yes; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define size_t unsigned int
15503 # Checks for library functions.
15505 for ac_func in bcopy memmove strerror
15507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15509 eval as_val=\$$as_ac_var
15510 if test "x$as_val" = x""yes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15519 # Check for the availability of libz (aka zlib)
15521 for ac_header in zlib.h
15523 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15524 if test "x$ac_cv_header_zlib_h" = x""yes; then :
15525 cat >>confdefs.h <<_ACEOF
15526 #define HAVE_ZLIB_H 1
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15534 $as_echo_n "checking for gzopen in -lz... " >&6; }
15535 if test "${ac_cv_lib_z_gzopen+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15538 ac_check_lib_save_LIBS=$LIBS
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15543 /* Override any GCC internal prototype to avoid an error.
15544 Use char because int might match the return type of a GCC
15545 builtin and then its argument prototype would still apply. */
15558 if ac_fn_c_try_link "$LINENO"; then :
15559 ac_cv_lib_z_gzopen=yes
15561 ac_cv_lib_z_gzopen=no
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
15568 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
15569 if test "x$ac_cv_lib_z_gzopen" = x""yes; then :
15574 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
15575 # as for libz. However, this had the following problem, diagnosed and fixed by
15578 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
15580 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
15581 # therefore missing the function definition.
15582 # - The compiler thus generates a "C" signature for the test function.
15583 # - The linker fails to find the "C" function.
15584 # - PCRE fails to configure if asked to do so against libbz2.
15588 # - Replace the AC_CHECK_LIB test with a custom test.
15590 for ac_header in bzlib.h
15592 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
15593 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
15594 cat >>confdefs.h <<_ACEOF
15595 #define HAVE_BZLIB_H 1
15603 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
15605 # Custom test follows
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
15608 $as_echo_n "checking for libbz2... " >&6; }
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15614 #ifdef HAVE_BZLIB_H
15620 return (int)BZ2_bzopen("conftest", "rb");
15625 if ac_fn_c_try_link "$LINENO"; then :
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15627 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15630 $as_echo "no" >&6; }
15632 rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15636 # Check for the availabiity of libreadline
15638 for ac_header in readline/readline.h
15640 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15641 if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
15642 cat >>confdefs.h <<_ACEOF
15643 #define HAVE_READLINE_READLINE_H 1
15650 for ac_header in readline/history.h
15652 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
15653 if test "x$ac_cv_header_readline_history_h" = x""yes; then :
15654 cat >>confdefs.h <<_ACEOF
15655 #define HAVE_READLINE_HISTORY_H 1
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15663 $as_echo_n "checking for readline in -lreadline... " >&6; }
15664 if test "${ac_cv_lib_readline_readline+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15667 ac_check_lib_save_LIBS=$LIBS
15668 LIBS="-lreadline $LIBS"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15682 return readline ();
15687 if ac_fn_c_try_link "$LINENO"; then :
15688 ac_cv_lib_readline_readline=yes
15690 ac_cv_lib_readline_readline=no
15692 rm -f core conftest.err conftest.$ac_objext \
15693 conftest$ac_exeext conftest.$ac_ext
15694 LIBS=$ac_check_lib_save_LIBS
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15697 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15698 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
15699 HAVE_LIB_READLINE=1
15703 # This facilitates -ansi builds under Linux
15705 PCRE_STATIC_CFLAG=""
15706 if test "x$enable_shared" = "xno" ; then
15708 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
15710 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
15714 # Here is where pcre specific defines are handled
15716 if test "$enable_utf8" = "yes"; then
15718 $as_echo "#define SUPPORT_UTF8 /**/" >>confdefs.h
15722 if test "$enable_unicode_properties" = "yes"; then
15724 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
15728 if test "$enable_stack_for_recursion" = "no"; then
15730 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
15734 if test "$enable_pcregrep_libz" = "yes"; then
15736 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
15740 if test "$enable_pcregrep_libbz2" = "yes"; then
15742 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
15746 if test "$enable_pcretest_libreadline" = "yes"; then
15748 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
15753 cat >>confdefs.h <<_ACEOF
15754 #define NEWLINE $ac_pcre_newline_value
15758 if test "$enable_bsr_anycrlf" = "yes"; then
15760 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
15765 cat >>confdefs.h <<_ACEOF
15766 #define LINK_SIZE $with_link_size
15771 cat >>confdefs.h <<_ACEOF
15772 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
15777 cat >>confdefs.h <<_ACEOF
15778 #define MATCH_LIMIT $with_match_limit
15783 cat >>confdefs.h <<_ACEOF
15784 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
15789 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
15793 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
15798 if test "$enable_ebcdic" = "yes"; then
15800 cat >>confdefs.h <<_ACEOF
15801 #define EBCDIC /**/
15806 # Platform specific issues
15808 EXPORT_ALL_SYMBOLS=
15811 if test X"$enable_shared" = Xyes; then
15812 NO_UNDEFINED="-no-undefined"
15813 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
15818 # The extra LDFLAGS for each particular library
15819 # (Note: The libpcre*_version bits are m4 variables, assigned above)
15821 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
15822 $NO_UNDEFINED -version-info 0:1:0"
15824 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
15825 $NO_UNDEFINED -version-info 0:0:0"
15827 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
15828 $NO_UNDEFINED -version-info 0:0:0 \
15829 $EXPORT_ALL_SYMBOLS"
15835 # When we run 'make distcheck', use these arguments.
15836 DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties"
15839 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
15840 # specified, the relevant library is available.
15842 if test "$enable_pcregrep_libz" = "yes"; then
15843 if test "$HAVE_ZLIB_H" != "1"; then
15844 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
15847 if test "$HAVE_LIBZ" != "1"; then
15848 echo "** Cannot --enable-pcregrep-libz because libz was not found"
15855 if test "$enable_pcregrep_libbz2" = "yes"; then
15856 if test "$HAVE_BZLIB_H" != "1"; then
15857 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
15860 if test "$HAVE_LIBBZ2" != "1"; then
15861 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
15868 # Similarly for --enable-pcretest-readline
15870 if test "$enable_pcretest_libreadline" = "yes"; then
15871 if test "$HAVE_READLINE_H" != "1"; then
15872 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
15875 if test "$HAVE_HISTORY_H" != "1"; then
15876 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
15879 LIBREADLINE="-lreadline"
15883 # Produce these files, in addition to config.h.
15884 ac_config_files="$ac_config_files Makefile libpcre.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
15887 # Make the generated script files executable.
15888 ac_config_commands="$ac_config_commands script-chmod"
15891 # Make sure that pcre_chartables.c is removed in case the method for
15892 # creating it was changed by reconfiguration.
15893 ac_config_commands="$ac_config_commands delete-old-chartables"
15896 cat >confcache <<\_ACEOF
15897 # This file is a shell script that caches the results of configure
15898 # tests run on this system so they can be shared between configure
15899 # scripts and configure runs, see configure's option --config-cache.
15900 # It is not useful on other systems. If it contains results you don't
15901 # want to keep, you may remove or edit it.
15903 # config.status only pays attention to the cache file if you give it
15904 # the --recheck option to rerun configure.
15906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15908 # following values.
15912 # The following way of writing the cache mishandles newlines in values,
15913 # but we know of no workaround that is simple, portable, and efficient.
15914 # So, we kill variables containing newlines.
15915 # Ultrix sh set writes to stderr and can't be redirected directly,
15916 # and sets the high bit in the cache file unless we assign to the vars.
15918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15919 eval ac_val=\$$ac_var
15923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15927 _ | IFS | as_nl) ;; #(
15928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15929 *) { eval $ac_var=; unset $ac_var;} ;;
15935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15936 *${as_nl}ac_space=\ *)
15937 # `set' does not quote correctly, so add quotes: double-quote
15938 # substitution turns \\\\ into \\, and sed turns \\ into \.
15941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15944 # `set' quotes correctly as required by POSIX, so do not add quotes.
15945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15959 if test -w "$cache_file"; then
15960 test "x$cache_file" != "x/dev/null" &&
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15962 $as_echo "$as_me: updating cache $cache_file" >&6;}
15963 cat confcache >$cache_file
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15972 # Let make expand exec_prefix.
15973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15975 DEFS=-DHAVE_CONFIG_H
15979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15980 # 1. Remove the extension, and $U if already installed.
15981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15982 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15984 # will be set to the directory where LIBOBJS objects are built.
15985 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15986 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15988 LIBOBJS=$ac_libobjs
15990 LTLIBOBJS=$ac_ltlibobjs
15993 if test -n "$EXEEXT"; then
15995 am__EXEEXT_FALSE='#'
15997 am__EXEEXT_TRUE='#'
16001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16002 as_fn_error "conditional \"AMDEP\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16006 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16009 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16010 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16013 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
16014 as_fn_error "conditional \"WITH_PCRE_CPP\" was never defined.
16015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16017 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
16018 as_fn_error "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
16019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16022 : ${CONFIG_STATUS=./config.status}
16024 ac_clean_files_save=$ac_clean_files
16025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16029 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16031 # Generated by $as_me.
16032 # Run this file to recreate the current configuration.
16033 # Compiler output produced by configure, useful for debugging
16034 # configure, is in config.log if it exists.
16037 ac_cs_recheck=false
16040 SHELL=\${CONFIG_SHELL-$SHELL}
16043 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16044 ## -------------------- ##
16045 ## M4sh Initialization. ##
16046 ## -------------------- ##
16048 # Be more Bourne compatible
16049 DUALCASE=1; export DUALCASE # for MKS sh
16050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16054 # is contrary to our usage. Disable this feature.
16055 alias -g '${1+"$@"}'='"$@"'
16056 setopt NO_GLOB_SUBST
16058 case `(set -o) 2>/dev/null` in #(
16070 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16071 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16074 # Prefer a ksh shell builtin over an external printf program on Solaris,
16075 # but without wasting forks for bash or zsh.
16076 if test -z "$BASH_VERSION$ZSH_VERSION" \
16077 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16078 as_echo='print -r --'
16079 as_echo_n='print -rn --'
16080 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16081 as_echo='printf %s\n'
16082 as_echo_n='printf %s'
16084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16086 as_echo_n='/usr/ucb/echo -n'
16088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16089 as_echo_n_body='eval
16093 expr "X$arg" : "X\\(.*\\)$as_nl";
16094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16098 export as_echo_n_body
16099 as_echo_n='sh -c $as_echo_n_body as_echo'
16101 export as_echo_body
16102 as_echo='sh -c $as_echo_body as_echo'
16105 # The user is always right.
16106 if test "${PATH_SEPARATOR+set}" != set; then
16108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16116 # We need space, tab and new line, in precisely that order. Quoting is
16117 # there to prevent editors from complaining about space-tab.
16118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16119 # splitting by setting IFS to empty value.)
16122 # Find who we are. Look in the path if we contain no directory separator.
16124 *[\\/]* ) as_myself=$0 ;;
16125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16129 test -z "$as_dir" && as_dir=.
16130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16136 # We did not find ourselves, most probably we were run as `sh COMMAND'
16137 # in which case we are not to be found in the path.
16138 if test "x$as_myself" = x; then
16141 if test ! -f "$as_myself"; then
16142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16146 # Unset variables that we do not need and which cause bugs (e.g. in
16147 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16148 # suppresses any "Segmentation fault" message there. '((' could
16149 # trigger a bug in pdksh 5.2.14.
16150 for as_var in BASH_ENV ENV MAIL MAILPATH
16151 do eval test x\${$as_var+set} = xset \
16152 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16168 # as_fn_error ERROR [LINENO LOG_FD]
16169 # ---------------------------------
16170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16172 # script with status $?, using 1 if that was 0.
16175 as_status=$?; test $as_status -eq 0 && as_status=1
16177 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16178 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16180 $as_echo "$as_me: error: $1" >&2
16181 as_fn_exit $as_status
16185 # as_fn_set_status STATUS
16186 # -----------------------
16187 # Set $? to STATUS, without forking.
16188 as_fn_set_status ()
16191 } # as_fn_set_status
16193 # as_fn_exit STATUS
16194 # -----------------
16195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16199 as_fn_set_status $1
16205 # Portably unset VAR.
16208 { eval $1=; unset $1;}
16210 as_unset=as_fn_unset
16211 # as_fn_append VAR VALUE
16212 # ----------------------
16213 # Append the text in VALUE to the end of the definition contained in VAR. Take
16214 # advantage of any shell optimizations that allow amortized linear growth over
16215 # repeated appends, instead of the typical quadratic growth present in naive
16217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16218 eval 'as_fn_append ()
16229 # as_fn_arith ARG...
16230 # ------------------
16231 # Perform arithmetic evaluation on the ARGs, and store the result in the
16232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16233 # must be portable across $(()) and expr.
16234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16235 eval 'as_fn_arith ()
16242 as_val=`expr "$@" || test $? -eq 1`
16247 if expr a : '\(a\)' >/dev/null 2>&1 &&
16248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16255 as_basename=basename
16260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16266 as_me=`$as_basename -- "$0" ||
16267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16268 X"$0" : 'X\(//\)$' \| \
16269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16271 sed '/^.*\/\([^/][^/]*\)\/*$/{
16285 # Avoid depending upon Character Ranges.
16286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16289 as_cr_digits='0123456789'
16290 as_cr_alnum=$as_cr_Letters$as_cr_digits
16292 ECHO_C= ECHO_N= ECHO_T=
16293 case `echo -n x` in #(((((
16295 case `echo 'xy\c'` in
16296 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16298 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16305 rm -f conf$$ conf$$.exe conf$$.file
16306 if test -d conf$$.dir; then
16307 rm -f conf$$.dir/conf$$.file
16310 mkdir conf$$.dir 2>/dev/null
16312 if (echo >conf$$.file) 2>/dev/null; then
16313 if ln -s conf$$.file conf$$ 2>/dev/null; then
16315 # ... but there are two gotchas:
16316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16318 # In both cases, we have to default to `cp -p'.
16319 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16321 elif ln conf$$.file conf$$ 2>/dev/null; then
16329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16330 rmdir conf$$.dir 2>/dev/null
16335 # Create "$as_dir" as a directory, including parents if necessary.
16340 -*) as_dir=./$as_dir;;
16342 test -d "$as_dir" || eval $as_mkdir_p || {
16346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16347 *) as_qdir=$as_dir;;
16349 as_dirs="'$as_qdir' $as_dirs"
16350 as_dir=`$as_dirname -- "$as_dir" ||
16351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$as_dir" : 'X\(//\)[^/]' \| \
16353 X"$as_dir" : 'X\(//\)$' \| \
16354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16355 $as_echo X"$as_dir" |
16356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16360 /^X\(\/\/\)[^/].*/{
16373 test -d "$as_dir" && break
16375 test -z "$as_dirs" || eval "mkdir $as_dirs"
16376 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16380 if mkdir -p . 2>/dev/null; then
16381 as_mkdir_p='mkdir -p "$as_dir"'
16383 test -d ./-p && rmdir ./-p
16387 if test -x / >/dev/null 2>&1; then
16388 as_test_x='test -x'
16390 if ls -dL / >/dev/null 2>&1; then
16397 if test -d "$1"; then
16403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16404 ???[sx]*):;;*)false;;esac;fi
16408 as_executable_p=$as_test_x
16410 # Sed expression to map a string onto a valid CPP name.
16411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16413 # Sed expression to map a string onto a valid variable name.
16414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16418 ## ----------------------------------- ##
16419 ## Main body of $CONFIG_STATUS script. ##
16420 ## ----------------------------------- ##
16422 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 # Save the log message, to keep $0 and so on meaningful, and to
16426 # report actual input values of CONFIG_FILES etc. instead of their
16427 # values after options handling.
16429 This file was extended by PCRE $as_me 8.11, which was
16430 generated by GNU Autoconf 2.65. Invocation command line was
16432 CONFIG_FILES = $CONFIG_FILES
16433 CONFIG_HEADERS = $CONFIG_HEADERS
16434 CONFIG_LINKS = $CONFIG_LINKS
16435 CONFIG_COMMANDS = $CONFIG_COMMANDS
16438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16443 case $ac_config_files in *"
16444 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16447 case $ac_config_headers in *"
16448 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16453 # Files that config.status was made for.
16454 config_files="$ac_config_files"
16455 config_headers="$ac_config_headers"
16456 config_commands="$ac_config_commands"
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 \`$as_me' instantiates files and other configuration actions
16463 from templates according to the current configuration. Unless the files
16464 and actions are specified as TAGs, all are instantiated by default.
16466 Usage: $0 [OPTION]... [TAG]...
16468 -h, --help print this help, then exit
16469 -V, --version print version number and configuration settings, then exit
16470 --config print configuration, then exit
16471 -q, --quiet, --silent
16472 do not print progress messages
16473 -d, --debug don't remove temporary files
16474 --recheck update $as_me by reconfiguring in the same conditions
16475 --file=FILE[:TEMPLATE]
16476 instantiate the configuration file FILE
16477 --header=FILE[:TEMPLATE]
16478 instantiate the configuration header FILE
16480 Configuration files:
16483 Configuration headers:
16486 Configuration commands:
16489 Report bugs to the package provider."
16492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16495 PCRE config.status 8.11
16496 configured by $0, generated by GNU Autoconf 2.65,
16497 with options \\"\$ac_cs_config\\"
16499 Copyright (C) 2009 Free Software Foundation, Inc.
16500 This config.status script is free software; the Free Software Foundation
16501 gives unlimited permission to copy, distribute and modify it."
16508 test -n "\$AWK" || AWK=awk
16511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 # The default lists apply if the user does not specify any file.
16518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16530 # Handling of the options.
16531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16534 $as_echo "$ac_cs_version"; exit ;;
16535 --config | --confi | --conf | --con | --co | --c )
16536 $as_echo "$ac_cs_config"; exit ;;
16537 --debug | --debu | --deb | --de | --d | -d )
16539 --file | --fil | --fi | --f )
16542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16544 as_fn_append CONFIG_FILES " '$ac_optarg'"
16545 ac_need_defaults=false;;
16546 --header | --heade | --head | --hea )
16549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16551 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16552 ac_need_defaults=false;;
16554 # Conflict between --help and --header
16555 as_fn_error "ambiguous option: \`$1'
16556 Try \`$0 --help' for more information.";;
16557 --help | --hel | -h )
16558 $as_echo "$ac_cs_usage"; exit ;;
16559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16563 # This is an error.
16564 -*) as_fn_error "unrecognized option: \`$1'
16565 Try \`$0 --help' for more information." ;;
16567 *) as_fn_append ac_config_targets " $1"
16568 ac_need_defaults=false ;;
16574 ac_configure_extra_args=
16576 if $ac_cs_silent; then
16578 ac_configure_extra_args="$ac_configure_extra_args --silent"
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583 if \$ac_cs_recheck; then
16584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16587 CONFIG_SHELL='$SHELL'
16588 export CONFIG_SHELL
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16598 ## Running $as_me. ##
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16608 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16611 # The HP-UX ksh and POSIX shell print the target directory to stdout
16612 # if CDPATH is set.
16613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16615 sed_quote_subst='$sed_quote_subst'
16616 double_quote_subst='$double_quote_subst'
16617 delay_variable_subst='$delay_variable_subst'
16618 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16619 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16620 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16621 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16622 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16623 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16624 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16625 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16626 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16627 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16628 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16629 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16630 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16631 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16632 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16633 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16634 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16635 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16636 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16637 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16638 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16639 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16640 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16641 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16642 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16643 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16644 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16645 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16646 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16647 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16648 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16649 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16650 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16653 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16654 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16655 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16656 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16657 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16658 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16659 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16660 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16661 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16662 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16663 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16664 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16665 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16666 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16667 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16668 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"`'
16669 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16670 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16671 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16672 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16673 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16674 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16675 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16676 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16677 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16678 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16679 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16680 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16681 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16682 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16683 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16684 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16685 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16686 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16687 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16688 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16689 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16690 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16691 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16692 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16693 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16694 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16695 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16696 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16697 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16698 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16699 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16700 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16701 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16702 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16703 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16704 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16705 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16706 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16707 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16708 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16709 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16710 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16711 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16712 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16713 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16714 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16715 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16716 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16717 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16718 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16719 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16720 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16721 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16722 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16723 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16724 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16725 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16726 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16727 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16728 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16729 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16730 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16731 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16732 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16733 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16734 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16735 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16736 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16737 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16738 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16739 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16740 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16741 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16742 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16743 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16744 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16745 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16746 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16747 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16748 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16749 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16750 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16751 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16752 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16753 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16754 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16755 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16756 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16757 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16758 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16759 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16760 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16761 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16762 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16763 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16764 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16765 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16766 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16767 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16768 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16769 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16770 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16771 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16772 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16773 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16774 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16775 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16776 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16777 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16778 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16779 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16780 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16781 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16782 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16783 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16784 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16785 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16786 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16787 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16788 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16789 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16790 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16791 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16792 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16793 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16794 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16797 LTCFLAGS='$LTCFLAGS'
16798 compiler='$compiler_DEFAULT'
16800 # A function that is used when there is no print builtin or printf.
16801 func_fallback_echo ()
16803 eval 'cat <<_LTECHO_EOF
16808 # Quote evaled strings.
16824 deplibs_check_method \
16833 lt_cv_sys_global_symbol_pipe \
16834 lt_cv_sys_global_symbol_to_cdecl \
16835 lt_cv_sys_global_symbol_to_c_name_address \
16836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16837 lt_prog_compiler_no_builtin_flag \
16838 lt_prog_compiler_wl \
16839 lt_prog_compiler_pic \
16840 lt_prog_compiler_static \
16841 lt_cv_prog_compiler_c_o \
16849 export_dynamic_flag_spec \
16850 whole_archive_flag_spec \
16851 compiler_needs_object \
16853 allow_undefined_flag \
16854 no_undefined_flag \
16855 hardcode_libdir_flag_spec \
16856 hardcode_libdir_flag_spec_ld \
16857 hardcode_libdir_separator \
16862 variables_saved_for_relink \
16864 library_names_spec \
16866 install_override_mode \
16870 compiler_lib_search_dirs \
16875 compiler_lib_search_path \
16879 lt_prog_compiler_no_builtin_flag_CXX \
16880 lt_prog_compiler_wl_CXX \
16881 lt_prog_compiler_pic_CXX \
16882 lt_prog_compiler_static_CXX \
16883 lt_cv_prog_compiler_c_o_CXX \
16884 export_dynamic_flag_spec_CXX \
16885 whole_archive_flag_spec_CXX \
16886 compiler_needs_object_CXX \
16888 allow_undefined_flag_CXX \
16889 no_undefined_flag_CXX \
16890 hardcode_libdir_flag_spec_CXX \
16891 hardcode_libdir_flag_spec_ld_CXX \
16892 hardcode_libdir_separator_CXX \
16893 fix_srcfile_path_CXX \
16894 exclude_expsyms_CXX \
16895 include_expsyms_CXX \
16896 file_list_spec_CXX \
16897 compiler_lib_search_dirs_CXX \
16898 predep_objects_CXX \
16899 postdep_objects_CXX \
16902 compiler_lib_search_path_CXX; do
16903 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16904 *[\\\\\\\`\\"\\\$]*)
16905 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16908 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16913 # Double-quote double-evaled strings.
16914 for var in reload_cmds \
16915 old_postinstall_cmds \
16916 old_postuninstall_cmds \
16918 extract_expsyms_cmds \
16919 old_archive_from_new_cmds \
16920 old_archive_from_expsyms_cmds \
16922 archive_expsym_cmds \
16924 module_expsym_cmds \
16925 export_symbols_cmds \
16928 postuninstall_cmds \
16930 sys_lib_search_path_spec \
16931 sys_lib_dlsearch_path_spec \
16933 old_archive_cmds_CXX \
16934 old_archive_from_new_cmds_CXX \
16935 old_archive_from_expsyms_cmds_CXX \
16937 archive_expsym_cmds_CXX \
16939 module_expsym_cmds_CXX \
16940 export_symbols_cmds_CXX \
16941 prelink_cmds_CXX; do
16942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16943 *[\\\\\\\`\\"\\\$]*)
16944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16952 ac_aux_dir='$ac_aux_dir'
16953 xsi_shell='$xsi_shell'
16954 lt_shell_append='$lt_shell_append'
16956 # See if we are running on zsh, and set the options which allow our
16957 # commands through without removal of \ escapes INIT.
16958 if test -n "\${ZSH_VERSION+set}" ; then
16959 setopt NO_GLOB_SUBST
16965 TIMESTAMP='$TIMESTAMP'
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16978 # Handling of arguments.
16979 for ac_config_target in $ac_config_targets
16981 case $ac_config_target in
16982 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16983 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16984 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16985 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16986 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
16987 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
16988 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
16989 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
16990 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
16991 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
16992 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
16993 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
16994 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
16996 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17001 # If the user did not use the arguments to specify the items to instantiate,
17002 # then the envvar interface is used. Set only those that are not.
17003 # We use the long form for the default assignment because of an extremely
17004 # bizarre bug on SunOS 4.1.3.
17005 if $ac_need_defaults; then
17006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17011 # Have a temporary directory for convenience. Make it in the build tree
17012 # simply because there is no reason against having it here, and in addition,
17013 # creating and moving files from /tmp can sometimes cause problems.
17014 # Hook for its removal unless debugging.
17015 # Note that there is a small window in which the directory will not be cleaned:
17016 # after its creation but before its name has been assigned to `$tmp'.
17020 trap 'exit_status=$?
17021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17023 trap 'as_fn_exit 1' 1 2 13 15
17025 # Create a (secure) tmp directory for tmp files.
17028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17029 test -n "$tmp" && test -d "$tmp"
17032 tmp=./conf$$-$RANDOM
17033 (umask 077 && mkdir "$tmp")
17034 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17036 # Set up the scripts for CONFIG_FILES section.
17037 # No need to generate them if there are no CONFIG_FILES.
17038 # This happens for instance with `./config.status config.h'.
17039 if test -n "$CONFIG_FILES"; then
17042 ac_cr=`echo X | tr X '\015'`
17043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17044 # But we know of no other shell where ac_cr would be empty at this
17045 # point, so we can use a bashism as a fallback.
17046 if test "x$ac_cr" = x; then
17047 eval ac_cr=\$\'\\r\'
17049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17053 ac_cs_awk_cr=$ac_cr
17056 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17061 echo "cat >conf$$subs.awk <<_ACEOF" &&
17062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17064 } >conf$$subs.sh ||
17065 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17068 for ac_last_try in false false false false false :; do
17069 . ./conf$$subs.sh ||
17070 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17073 if test $ac_delim_n = $ac_delim_num; then
17075 elif $ac_last_try; then
17076 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17081 rm -f conf$$subs.sh
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17088 s/^/S["/; s/!.*/"]=/
17098 s/\(.\{148\}\)..*/\1/
17100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17112 s/\(.\{148\}\)..*/\1/
17114 s/["\\]/\\&/g; s/^/"/; s/$/"/
17118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17123 ' <conf$$subs.awk | sed '
17128 ' >>$CONFIG_STATUS || ac_write_fail=1
17129 rm -f conf$$subs.awk
17130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17132 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17133 for (key in S) S_is_set[key] = 1
17139 nfields = split(line, field, "@")
17141 len = length(field[1])
17142 for (i = 2; i < nfields; i++) {
17144 keylen = length(key)
17145 if (S_is_set[key]) {
17147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17148 len += length(value) + length(field[++i])
17159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17164 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17165 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17170 # trailing colons and then remove the whole line if VPATH becomes empty
17171 # (actually we leave an empty line to preserve line numbers).
17172 if test "x$srcdir" = x.; then
17173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17174 s/:*\$(srcdir):*/:/
17175 s/:*\${srcdir}:*/:/
17177 s/^\([^=]*=[ ]*\):*/\1/
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184 fi # test -n "$CONFIG_FILES"
17186 # Set up the scripts for CONFIG_HEADERS section.
17187 # No need to generate them if there are no CONFIG_HEADERS.
17188 # This happens for instance with `./config.status Makefile'.
17189 if test -n "$CONFIG_HEADERS"; then
17190 cat >"$tmp/defines.awk" <<\_ACAWK ||
17194 # Transform confdefs.h into an awk script `defines.awk', embedded as
17195 # here-document in config.status, that substitutes the proper values into
17196 # config.h.in to produce config.h.
17198 # Create a delimiter string that does not exist in confdefs.h, to ease
17199 # handling of long lines.
17201 for ac_last_try in false false :; do
17202 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17203 if test -z "$ac_t"; then
17205 elif $ac_last_try; then
17206 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17212 # For the awk script, D is an array of macro values keyed by name,
17213 # likewise P contains macro parameters if any. Preserve backslash
17214 # newline sequences.
17216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17218 s/.\{148\}/&'"$ac_delim"'/g
17221 s/^[ ]*#[ ]*define[ ][ ]*/ /
17228 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17235 D["\1"]=" \3\\\\\\n"\\/p
17237 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17242 s/.\{148\}/&'"$ac_delim"'/g
17247 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17250 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17252 ' <confdefs.h | sed '
17253 s/'"$ac_delim"'/"\\\
17254 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17257 for (key in D) D_is_set[key] = 1
17260 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17262 split(line, arg, " ")
17263 if (arg[1] == "#") {
17267 defundef = substr(arg[1], 2)
17270 split(mac1, mac2, "(") #)
17272 prefix = substr(line, 1, index(line, defundef) - 1)
17273 if (D_is_set[macro]) {
17274 # Preserve the white space surrounding the "#".
17275 print prefix "define", macro P[macro] D[macro]
17278 # Replace #undef with comments. This is necessary, for example,
17279 # in the case of _POSIX_SOURCE, which is predefined and required
17280 # on some systems where configure will not decide to define it.
17281 if (defundef == "undef") {
17282 print "/*", prefix defundef, macro, "*/"
17290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17291 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17292 fi # test -n "$CONFIG_HEADERS"
17295 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17300 :[FHLC]) ac_mode=$ac_tag; continue;;
17302 case $ac_mode$ac_tag in
17304 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17305 :[FH]-) ac_tag=-:-;;
17306 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17323 -) ac_f="$tmp/stdin";;
17324 *) # Look for the file first in the build tree, then in the source tree
17325 # (if the path is not absolute). The absolute path cannot be DOS-style,
17326 # because $ac_f cannot contain `:'.
17330 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17332 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17334 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17335 as_fn_append ac_file_inputs " '$ac_f'"
17338 # Let's still pretend it is `configure' which instantiates (i.e., don't
17339 # use $as_me), people would be surprised to read:
17340 # /* config.h. Generated by config.status. */
17341 configure_input='Generated from '`
17342 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17344 if test x"$ac_file" != x-; then
17345 configure_input="$ac_file. $configure_input"
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17347 $as_echo "$as_me: creating $ac_file" >&6;}
17349 # Neutralize special characters interpreted by sed in replacement strings.
17350 case $configure_input in #(
17351 *\&* | *\|* | *\\* )
17352 ac_sed_conf_input=`$as_echo "$configure_input" |
17353 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17354 *) ac_sed_conf_input=$configure_input;;
17358 *:-:* | *:-) cat >"$tmp/stdin" \
17359 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17364 ac_dir=`$as_dirname -- "$ac_file" ||
17365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17366 X"$ac_file" : 'X\(//\)[^/]' \| \
17367 X"$ac_file" : 'X\(//\)$' \| \
17368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17369 $as_echo X"$ac_file" |
17370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17374 /^X\(\/\/\)[^/].*/{
17387 as_dir="$ac_dir"; as_fn_mkdir_p
17391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17394 # A ".." for each directory in $ac_dir_suffix.
17395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17396 case $ac_top_builddir_sub in
17397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17401 ac_abs_top_builddir=$ac_pwd
17402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17403 # for backward compatibility:
17404 ac_top_builddir=$ac_top_build_prefix
17407 .) # We are building in place.
17409 ac_top_srcdir=$ac_top_builddir_sub
17410 ac_abs_top_srcdir=$ac_pwd ;;
17411 [\\/]* | ?:[\\/]* ) # Absolute name.
17412 ac_srcdir=$srcdir$ac_dir_suffix;
17413 ac_top_srcdir=$srcdir
17414 ac_abs_top_srcdir=$srcdir ;;
17415 *) # Relative name.
17416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17417 ac_top_srcdir=$ac_top_build_prefix$srcdir
17418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17431 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17433 ac_MKDIR_P=$MKDIR_P
17435 [\\/$]* | ?:[\\/]* ) ;;
17436 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441 # If the template does not know about datarootdir, expand it.
17442 # FIXME: This hack should be removed a few years after 2.60.
17443 ac_datarootdir_hack=; ac_datarootdir_seen=
17454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17455 *datarootdir*) ac_datarootdir_seen=yes;;
17456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17458 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17461 ac_datarootdir_hack='
17462 s&@datadir@&$datadir&g
17463 s&@docdir@&$docdir&g
17464 s&@infodir@&$infodir&g
17465 s&@localedir@&$localedir&g
17466 s&@mandir@&$mandir&g
17467 s&\\\${datarootdir}&$datarootdir&g' ;;
17471 # Neutralize VPATH when `$srcdir' = `.'.
17472 # Shell code in configure.ac might set extrasub.
17473 # FIXME: do we really want to maintain this feature?
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 ac_sed_extra="$ac_vpsub
17478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17481 s|@configure_input@|$ac_sed_conf_input|;t t
17482 s&@top_builddir@&$ac_top_builddir_sub&;t t
17483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17484 s&@srcdir@&$ac_srcdir&;t t
17485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17486 s&@top_srcdir@&$ac_top_srcdir&;t t
17487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17488 s&@builddir@&$ac_builddir&;t t
17489 s&@abs_builddir@&$ac_abs_builddir&;t t
17490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17491 s&@INSTALL@&$ac_INSTALL&;t t
17492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17493 $ac_datarootdir_hack
17495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17496 || as_fn_error "could not create $ac_file" "$LINENO" 5
17498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17499 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17502 which seems to be undefined. Please make sure it is defined." >&5
17503 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17504 which seems to be undefined. Please make sure it is defined." >&2;}
17508 -) cat "$tmp/out" && rm -f "$tmp/out";;
17509 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17511 || as_fn_error "could not create $ac_file" "$LINENO" 5
17517 if test x"$ac_file" != x-; then
17519 $as_echo "/* $configure_input */" \
17520 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17521 } >"$tmp/config.h" \
17522 || as_fn_error "could not create $ac_file" "$LINENO" 5
17523 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17525 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17528 mv "$tmp/config.h" "$ac_file" \
17529 || as_fn_error "could not create $ac_file" "$LINENO" 5
17532 $as_echo "/* $configure_input */" \
17533 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17534 || as_fn_error "could not create -" "$LINENO" 5
17536 # Compute "$ac_file"'s index in $config_headers.
17539 for _am_header in $config_headers :; do
17540 case $_am_header in
17541 $_am_arg | $_am_arg:* )
17544 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17547 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17548 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17549 X"$_am_arg" : 'X\(//\)[^/]' \| \
17550 X"$_am_arg" : 'X\(//\)$' \| \
17551 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17552 $as_echo X"$_am_arg" |
17553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17557 /^X\(\/\/\)[^/].*/{
17569 s/.*/./; q'`/stamp-h$_am_stamp_count
17572 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17573 $as_echo "$as_me: executing $ac_file commands" >&6;}
17578 case $ac_file$ac_mode in
17579 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17580 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17581 # are listed without --file. Let's play safe and only enable the eval
17582 # if we detect the quoting.
17583 case $CONFIG_FILES in
17584 *\'*) eval set x "$CONFIG_FILES" ;;
17585 *) set x $CONFIG_FILES ;;
17590 # Strip MF so we end up with the name of the file.
17591 mf=`echo "$mf" | sed -e 's/:.*$//'`
17592 # Check whether this is an Automake generated Makefile or not.
17593 # We used to match only the files named `Makefile.in', but
17594 # some people rename them; so instead we look at the file content.
17595 # Grep'ing the first line is not enough: some people post-process
17596 # each Makefile.in and add a new line on top of each file to say so.
17597 # Grep'ing the whole file is not good either: AIX grep has a line
17598 # limit of 2048, but all sed's we know have understand at least 4000.
17599 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17600 dirpart=`$as_dirname -- "$mf" ||
17601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17602 X"$mf" : 'X\(//\)[^/]' \| \
17603 X"$mf" : 'X\(//\)$' \| \
17604 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17610 /^X\(\/\/\)[^/].*/{
17626 # Extract the definition of DEPDIR, am__include, and am__quote
17627 # from the Makefile without running `make'.
17628 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17629 test -z "$DEPDIR" && continue
17630 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17631 test -z "am__include" && continue
17632 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17633 # When using ansi2knr, U may be empty or an underscore; expand it
17634 U=`sed -n 's/^U = //p' < "$mf"`
17635 # Find all dependency output files, they are included files with
17636 # $(DEPDIR) in their names. We invoke sed twice because it is the
17637 # simplest approach to changing $(DEPDIR) to its actual value in the
17639 for file in `sed -n "
17640 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17641 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17642 # Make sure the directory exists.
17643 test -f "$dirpart/$file" && continue
17644 fdir=`$as_dirname -- "$file" ||
17645 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17646 X"$file" : 'X\(//\)[^/]' \| \
17647 X"$file" : 'X\(//\)$' \| \
17648 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17649 $as_echo X"$file" |
17650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17654 /^X\(\/\/\)[^/].*/{
17667 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17668 # echo "creating $dirpart/$file"
17669 echo '# dummy' > "$dirpart/$file"
17676 # See if we are running on zsh, and set the options which allow our
17677 # commands through without removal of \ escapes.
17678 if test -n "${ZSH_VERSION+set}" ; then
17679 setopt NO_GLOB_SUBST
17682 cfgfile="${ofile}T"
17683 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17686 cat <<_LT_EOF >> "$cfgfile"
17689 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17690 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17692 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17694 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17695 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17697 # Written by Gordon Matzigkeit, 1996
17699 # This file is part of GNU Libtool.
17701 # GNU Libtool is free software; you can redistribute it and/or
17702 # modify it under the terms of the GNU General Public License as
17703 # published by the Free Software Foundation; either version 2 of
17704 # the License, or (at your option) any later version.
17706 # As a special exception to the GNU General Public License,
17707 # if you distribute this file as part of a program or library that
17708 # is built using GNU Libtool, you may include this file under the
17709 # same distribution terms that you use for the rest of that program.
17711 # GNU Libtool is distributed in the hope that it will be useful,
17712 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17714 # GNU General Public License for more details.
17716 # You should have received a copy of the GNU General Public License
17717 # along with GNU Libtool; see the file COPYING. If not, a copy
17718 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17719 # obtained by writing to the Free Software Foundation, Inc.,
17720 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17723 # The names of the tagged configurations supported by this script.
17724 available_tags="CXX "
17726 # ### BEGIN LIBTOOL CONFIG
17728 # Assembler program.
17731 # DLL creation program.
17732 DLLTOOL=$lt_DLLTOOL
17734 # Object dumper program.
17735 OBJDUMP=$lt_OBJDUMP
17737 # Which release of libtool.m4 was used?
17738 macro_version=$macro_version
17739 macro_revision=$macro_revision
17741 # Whether or not to build shared libraries.
17742 build_libtool_libs=$enable_shared
17744 # Whether or not to build static libraries.
17745 build_old_libs=$enable_static
17747 # What type of objects to build.
17750 # Whether or not to optimize for fast installation.
17751 fast_install=$enable_fast_install
17753 # Shell to use when invoking shell scripts.
17756 # An echo program that protects backslashes.
17760 host_alias=$host_alias
17764 # The build system.
17765 build_alias=$build_alias
17769 # A sed program that does not truncate output.
17772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17773 Xsed="\$SED -e 1s/^X//"
17775 # A grep program that handles long lines.
17781 # A literal string matcher.
17784 # A BSD- or MS-compatible name lister.
17787 # Whether we need soft or hard links.
17790 # What is the maximum length of a command?
17791 max_cmd_len=$max_cmd_len
17793 # Object file suffix (normally "o").
17796 # Executable file suffix (normally "").
17799 # whether the shell understands "unset".
17802 # turn spaces into newlines.
17805 # turn newlines into spaces.
17808 # Method to check whether dependent libraries are shared objects.
17809 deplibs_check_method=$lt_deplibs_check_method
17811 # Command to use when deplibs_check_method == "file_magic".
17812 file_magic_cmd=$lt_file_magic_cmd
17816 AR_FLAGS=$lt_AR_FLAGS
17818 # A symbol stripping program.
17821 # Commands used to install an old-style archive.
17823 old_postinstall_cmds=$lt_old_postinstall_cmds
17824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17826 # Whether to use a lock for old archive extraction.
17827 lock_old_archive_extraction=$lock_old_archive_extraction
17832 # LTCC compiler flags.
17833 LTCFLAGS=$lt_CFLAGS
17835 # Take the output of nm and produce a listing of raw symbols and C names.
17836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17838 # Transform the output of nm in a proper C declaration.
17839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17841 # Transform the output of nm in a C name address pair.
17842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17844 # Transform the output of nm in a C name address pair when lib prefix is needed.
17845 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17847 # The name of the directory that contains temporary libtool files.
17850 # Used to examine libraries when file_magic_cmd begins with "file".
17851 MAGIC_CMD=$MAGIC_CMD
17853 # Must we lock files when doing compilation?
17854 need_locks=$lt_need_locks
17856 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17857 DSYMUTIL=$lt_DSYMUTIL
17859 # Tool to change global to local symbols on Mac OS X.
17862 # Tool to manipulate fat objects and archives on Mac OS X.
17865 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17868 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17869 OTOOL64=$lt_OTOOL64
17871 # Old archive suffix (normally "a").
17874 # Shared library suffix (normally ".so").
17875 shrext_cmds=$lt_shrext_cmds
17877 # The commands to extract the exported symbol list from a shared archive.
17878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17880 # Variables whose values should be saved in libtool wrapper scripts and
17881 # restored at link time.
17882 variables_saved_for_relink=$lt_variables_saved_for_relink
17884 # Do we need the "lib" prefix for modules?
17885 need_lib_prefix=$need_lib_prefix
17887 # Do we need a version for libraries?
17888 need_version=$need_version
17890 # Library versioning type.
17891 version_type=$version_type
17893 # Shared library runtime path variable.
17894 runpath_var=$runpath_var
17896 # Shared library path variable.
17897 shlibpath_var=$shlibpath_var
17899 # Is shlibpath searched before the hard-coded library search path?
17900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17902 # Format of library name prefix.
17903 libname_spec=$lt_libname_spec
17905 # List of archive names. First name is the real one, the rest are links.
17906 # The last name is the one that the linker finds with -lNAME
17907 library_names_spec=$lt_library_names_spec
17909 # The coded name of the library, if different from the real name.
17910 soname_spec=$lt_soname_spec
17912 # Permission mode override for installation of shared libraries.
17913 install_override_mode=$lt_install_override_mode
17915 # Command to use after installation of a shared archive.
17916 postinstall_cmds=$lt_postinstall_cmds
17918 # Command to use after uninstallation of a shared archive.
17919 postuninstall_cmds=$lt_postuninstall_cmds
17921 # Commands used to finish a libtool library installation in a directory.
17922 finish_cmds=$lt_finish_cmds
17924 # As "finish_cmds", except a single script fragment to be evaled but
17926 finish_eval=$lt_finish_eval
17928 # Whether we should hardcode library paths into libraries.
17929 hardcode_into_libs=$hardcode_into_libs
17931 # Compile-time system search path for libraries.
17932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17934 # Run-time system search path for libraries.
17935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17937 # Whether dlopen is supported.
17938 dlopen_support=$enable_dlopen
17940 # Whether dlopen of programs is supported.
17941 dlopen_self=$enable_dlopen_self
17943 # Whether dlopen of statically linked programs is supported.
17944 dlopen_self_static=$enable_dlopen_self_static
17946 # Commands to strip libraries.
17947 old_striplib=$lt_old_striplib
17948 striplib=$lt_striplib
17951 # The linker used to build libraries.
17954 # How to create reloadable object files.
17955 reload_flag=$lt_reload_flag
17956 reload_cmds=$lt_reload_cmds
17958 # Commands used to build an old-style archive.
17959 old_archive_cmds=$lt_old_archive_cmds
17961 # A language specific compiler.
17964 # Is the compiler the GNU compiler?
17967 # Compiler flag to turn off builtin functions.
17968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17970 # How to pass a linker flag through the compiler.
17971 wl=$lt_lt_prog_compiler_wl
17973 # Additional compiler flags for building library objects.
17974 pic_flag=$lt_lt_prog_compiler_pic
17976 # Compiler flag to prevent dynamic linking.
17977 link_static_flag=$lt_lt_prog_compiler_static
17979 # Does compiler simultaneously support -c and -o options?
17980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17982 # Whether or not to add -lc for building shared libraries.
17983 build_libtool_need_lc=$archive_cmds_need_lc
17985 # Whether or not to disallow shared libs when runtime libs are static.
17986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17988 # Compiler flag to allow reflexive dlopens.
17989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17991 # Compiler flag to generate shared objects directly from archives.
17992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17994 # Whether the compiler copes with passing no objects directly.
17995 compiler_needs_object=$lt_compiler_needs_object
17997 # Create an old-style archive from a shared archive.
17998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18000 # Create a temporary old-style archive to link instead of a shared archive.
18001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18003 # Commands used to build a shared archive.
18004 archive_cmds=$lt_archive_cmds
18005 archive_expsym_cmds=$lt_archive_expsym_cmds
18007 # Commands used to build a loadable module if different from building
18008 # a shared archive.
18009 module_cmds=$lt_module_cmds
18010 module_expsym_cmds=$lt_module_expsym_cmds
18012 # Whether we are building with GNU ld or not.
18013 with_gnu_ld=$lt_with_gnu_ld
18015 # Flag that allows shared libraries with undefined symbols to be built.
18016 allow_undefined_flag=$lt_allow_undefined_flag
18018 # Flag that enforces no undefined symbols.
18019 no_undefined_flag=$lt_no_undefined_flag
18021 # Flag to hardcode \$libdir into a binary during linking.
18022 # This must work even if \$libdir does not exist
18023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18025 # If ld is used when linking, flag to hardcode \$libdir into a binary
18026 # during linking. This must work even if \$libdir does not exist.
18027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18029 # Whether we need a single "-rpath" flag with a separated argument.
18030 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18032 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18033 # DIR into the resulting binary.
18034 hardcode_direct=$hardcode_direct
18036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18037 # DIR into the resulting binary and the resulting library dependency is
18038 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18039 # library is relocated.
18040 hardcode_direct_absolute=$hardcode_direct_absolute
18042 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18043 # into the resulting binary.
18044 hardcode_minus_L=$hardcode_minus_L
18046 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18047 # into the resulting binary.
18048 hardcode_shlibpath_var=$hardcode_shlibpath_var
18050 # Set to "yes" if building a shared library automatically hardcodes DIR
18051 # into the library and all subsequent libraries and executables linked
18053 hardcode_automatic=$hardcode_automatic
18055 # Set to yes if linker adds runtime paths of dependent libraries
18056 # to runtime path list.
18057 inherit_rpath=$inherit_rpath
18059 # Whether libtool must link a program against all its dependency libraries.
18060 link_all_deplibs=$link_all_deplibs
18062 # Fix the shell variable \$srcfile for the compiler.
18063 fix_srcfile_path=$lt_fix_srcfile_path
18065 # Set to "yes" if exported symbols are required.
18066 always_export_symbols=$always_export_symbols
18068 # The commands to list exported symbols.
18069 export_symbols_cmds=$lt_export_symbols_cmds
18071 # Symbols that should not be listed in the preloaded symbols.
18072 exclude_expsyms=$lt_exclude_expsyms
18074 # Symbols that must always be exported.
18075 include_expsyms=$lt_include_expsyms
18077 # Commands necessary for linking programs (against libraries) with templates.
18078 prelink_cmds=$lt_prelink_cmds
18080 # Specify filename containing input files.
18081 file_list_spec=$lt_file_list_spec
18083 # How to hardcode a shared library path into an executable.
18084 hardcode_action=$hardcode_action
18086 # The directories searched by this compiler when creating a shared library.
18087 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18089 # Dependencies to place before and after the objects being linked to
18090 # create a shared library.
18091 predep_objects=$lt_predep_objects
18092 postdep_objects=$lt_postdep_objects
18093 predeps=$lt_predeps
18094 postdeps=$lt_postdeps
18096 # The library search path used internally by the compiler when linking
18097 # a shared library.
18098 compiler_lib_search_path=$lt_compiler_lib_search_path
18100 # ### END LIBTOOL CONFIG
18106 cat <<\_LT_EOF >> "$cfgfile"
18107 # AIX sometimes has problems with the GCC collect2 program. For some
18108 # reason, if we set the COLLECT_NAMES environment variable, the problems
18109 # vanish in a puff of smoke.
18110 if test "X${COLLECT_NAMES+set}" != Xset; then
18112 export COLLECT_NAMES
18119 ltmain="$ac_aux_dir/ltmain.sh"
18122 # We use sed instead of cat because bash on DJGPP gets confused if
18123 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18124 # text mode, it properly converts lines to CR/LF. This bash problem
18125 # is reportedly fixed, but why not run on old versions too?
18126 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18127 || (rm -f "$cfgfile"; exit 1)
18131 cat << \_LT_EOF >> "$cfgfile"
18133 # func_dirname file append nondir_replacement
18134 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18135 # otherwise set result to NONDIR_REPLACEMENT.
18139 */*) func_dirname_result="${1%/*}${2}" ;;
18140 * ) func_dirname_result="${3}" ;;
18144 # func_basename file
18147 func_basename_result="${1##*/}"
18150 # func_dirname_and_basename file append nondir_replacement
18151 # perform func_basename and func_dirname in a single function
18153 # dirname: Compute the dirname of FILE. If nonempty,
18154 # add APPEND to the result, otherwise set result
18155 # to NONDIR_REPLACEMENT.
18156 # value returned in "$func_dirname_result"
18157 # basename: Compute filename of FILE.
18158 # value retuned in "$func_basename_result"
18159 # Implementation must be kept synchronized with func_dirname
18160 # and func_basename. For efficiency, we do not delegate to
18161 # those functions but instead duplicate the functionality here.
18162 func_dirname_and_basename ()
18165 */*) func_dirname_result="${1%/*}${2}" ;;
18166 * ) func_dirname_result="${3}" ;;
18168 func_basename_result="${1##*/}"
18171 # func_stripname prefix suffix name
18172 # strip PREFIX and SUFFIX off of NAME.
18173 # PREFIX and SUFFIX must not contain globbing or regex special
18174 # characters, hashes, percent signs, but SUFFIX may contain a leading
18175 # dot (in which case that matches only a dot).
18178 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18179 # positional parameters, so assign one to ordinary parameter first.
18180 func_stripname_result=${3}
18181 func_stripname_result=${func_stripname_result#"${1}"}
18182 func_stripname_result=${func_stripname_result%"${2}"}
18188 func_opt_split_opt=${1%%=*}
18189 func_opt_split_arg=${1#*=}
18196 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18197 *) func_lo2o_result=${1} ;;
18201 # func_xform libobj-or-source
18204 func_xform_result=${1%.*}.lo
18207 # func_arith arithmetic-term...
18210 func_arith_result=$(( $* ))
18214 # STRING may not start with a hyphen.
18217 func_len_result=${#1}
18222 *) # Bourne compatible functions.
18223 cat << \_LT_EOF >> "$cfgfile"
18225 # func_dirname file append nondir_replacement
18226 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18227 # otherwise set result to NONDIR_REPLACEMENT.
18230 # Extract subdirectory from the argument.
18231 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18232 if test "X$func_dirname_result" = "X${1}"; then
18233 func_dirname_result="${3}"
18235 func_dirname_result="$func_dirname_result${2}"
18239 # func_basename file
18242 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18246 # func_stripname prefix suffix name
18247 # strip PREFIX and SUFFIX off of NAME.
18248 # PREFIX and SUFFIX must not contain globbing or regex special
18249 # characters, hashes, percent signs, but SUFFIX may contain a leading
18250 # dot (in which case that matches only a dot).
18251 # func_strip_suffix prefix name
18255 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18256 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18261 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18262 my_sed_long_arg='1s/^-[^=]*=//'
18267 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18268 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18274 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18277 # func_xform libobj-or-source
18280 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18283 # func_arith arithmetic-term...
18286 func_arith_result=`expr "$@"`
18290 # STRING may not start with a hyphen.
18293 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18299 case $lt_shell_append in
18301 cat << \_LT_EOF >> "$cfgfile"
18303 # func_append var value
18304 # Append VALUE to the end of shell variable VAR.
18312 cat << \_LT_EOF >> "$cfgfile"
18314 # func_append var value
18315 # Append VALUE to the end of shell variable VAR.
18326 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18327 || (rm -f "$cfgfile"; exit 1)
18329 mv -f "$cfgfile" "$ofile" ||
18330 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18334 cat <<_LT_EOF >> "$ofile"
18336 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18338 # The linker used to build libraries.
18341 # How to create reloadable object files.
18342 reload_flag=$lt_reload_flag_CXX
18343 reload_cmds=$lt_reload_cmds_CXX
18345 # Commands used to build an old-style archive.
18346 old_archive_cmds=$lt_old_archive_cmds_CXX
18348 # A language specific compiler.
18349 CC=$lt_compiler_CXX
18351 # Is the compiler the GNU compiler?
18354 # Compiler flag to turn off builtin functions.
18355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18357 # How to pass a linker flag through the compiler.
18358 wl=$lt_lt_prog_compiler_wl_CXX
18360 # Additional compiler flags for building library objects.
18361 pic_flag=$lt_lt_prog_compiler_pic_CXX
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_CXX
18366 # Does compiler simultaneously support -c and -o options?
18367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18369 # Whether or not to add -lc for building shared libraries.
18370 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18372 # Whether or not to disallow shared libs when runtime libs are static.
18373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18375 # Compiler flag to allow reflexive dlopens.
18376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18378 # Compiler flag to generate shared objects directly from archives.
18379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18381 # Whether the compiler copes with passing no objects directly.
18382 compiler_needs_object=$lt_compiler_needs_object_CXX
18384 # Create an old-style archive from a shared archive.
18385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18387 # Create a temporary old-style archive to link instead of a shared archive.
18388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18390 # Commands used to build a shared archive.
18391 archive_cmds=$lt_archive_cmds_CXX
18392 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18394 # Commands used to build a loadable module if different from building
18395 # a shared archive.
18396 module_cmds=$lt_module_cmds_CXX
18397 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18399 # Whether we are building with GNU ld or not.
18400 with_gnu_ld=$lt_with_gnu_ld_CXX
18402 # Flag that allows shared libraries with undefined symbols to be built.
18403 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18405 # Flag that enforces no undefined symbols.
18406 no_undefined_flag=$lt_no_undefined_flag_CXX
18408 # Flag to hardcode \$libdir into a binary during linking.
18409 # This must work even if \$libdir does not exist
18410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18412 # If ld is used when linking, flag to hardcode \$libdir into a binary
18413 # during linking. This must work even if \$libdir does not exist.
18414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18416 # Whether we need a single "-rpath" flag with a separated argument.
18417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18420 # DIR into the resulting binary.
18421 hardcode_direct=$hardcode_direct_CXX
18423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18424 # DIR into the resulting binary and the resulting library dependency is
18425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18426 # library is relocated.
18427 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18430 # into the resulting binary.
18431 hardcode_minus_L=$hardcode_minus_L_CXX
18433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18434 # into the resulting binary.
18435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18437 # Set to "yes" if building a shared library automatically hardcodes DIR
18438 # into the library and all subsequent libraries and executables linked
18440 hardcode_automatic=$hardcode_automatic_CXX
18442 # Set to yes if linker adds runtime paths of dependent libraries
18443 # to runtime path list.
18444 inherit_rpath=$inherit_rpath_CXX
18446 # Whether libtool must link a program against all its dependency libraries.
18447 link_all_deplibs=$link_all_deplibs_CXX
18449 # Fix the shell variable \$srcfile for the compiler.
18450 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18452 # Set to "yes" if exported symbols are required.
18453 always_export_symbols=$always_export_symbols_CXX
18455 # The commands to list exported symbols.
18456 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18458 # Symbols that should not be listed in the preloaded symbols.
18459 exclude_expsyms=$lt_exclude_expsyms_CXX
18461 # Symbols that must always be exported.
18462 include_expsyms=$lt_include_expsyms_CXX
18464 # Commands necessary for linking programs (against libraries) with templates.
18465 prelink_cmds=$lt_prelink_cmds_CXX
18467 # Specify filename containing input files.
18468 file_list_spec=$lt_file_list_spec_CXX
18470 # How to hardcode a shared library path into an executable.
18471 hardcode_action=$hardcode_action_CXX
18473 # The directories searched by this compiler when creating a shared library.
18474 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18476 # Dependencies to place before and after the objects being linked to
18477 # create a shared library.
18478 predep_objects=$lt_predep_objects_CXX
18479 postdep_objects=$lt_postdep_objects_CXX
18480 predeps=$lt_predeps_CXX
18481 postdeps=$lt_postdeps_CXX
18483 # The library search path used internally by the compiler when linking
18484 # a shared library.
18485 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18487 # ### END LIBTOOL TAG CONFIG: CXX
18491 "script-chmod":C) chmod a+x pcre-config ;;
18492 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
18500 ac_clean_files=$ac_clean_files_save
18502 test $ac_write_fail = 0 ||
18503 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18506 # configure is writing to config.log, and then calls config.status.
18507 # config.status does its own redirection, appending to config.log.
18508 # Unfortunately, on DOS this fails, as config.log is still kept open
18509 # by configure, so config.status won't be able to write to it; its
18510 # output is simply discarded. So we exec the FD to /dev/null,
18511 # effectively closing config.log, so it can be properly (re)opened and
18512 # appended to by config.status. When coming back to configure, we
18513 # need to make the FD available again.
18514 if test "$no_create" != yes; then
18516 ac_config_status_args=
18517 test "$silent" = yes &&
18518 ac_config_status_args="$ac_config_status_args --quiet"
18520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18523 # would make configure fail if this is the last instruction.
18524 $ac_cs_success || as_fn_exit $?
18526 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18528 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18532 # Print out a nice little message after configure is run displaying your
18537 $PACKAGE-$VERSION configuration summary:
18539 Install prefix .................. : ${prefix}
18540 C preprocessor .................. : ${CPP}
18541 C compiler ...................... : ${CC}
18542 C++ preprocessor ................ : ${CXXCPP}
18543 C++ compiler .................... : ${CXX}
18544 Linker .......................... : ${LD}
18545 C preprocessor flags ............ : ${CPPFLAGS}
18546 C compiler flags ................ : ${CFLAGS}
18547 C++ compiler flags .............. : ${CXXFLAGS}
18548 Linker flags .................... : ${LDFLAGS}
18549 Extra libraries ................. : ${LIBS}
18551 Build C++ library ............... : ${enable_cpp}
18552 Enable UTF-8 support ............ : ${enable_utf8}
18553 Unicode properties .............. : ${enable_unicode_properties}
18554 Newline char/sequence ........... : ${enable_newline}
18555 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
18556 EBCDIC coding ................... : ${enable_ebcdic}
18557 Rebuild char tables ............. : ${enable_rebuild_chartables}
18558 Use stack recursion ............. : ${enable_stack_for_recursion}
18559 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
18560 Internal link size .............. : ${with_link_size}
18561 Match limit ..................... : ${with_match_limit}
18562 Match limit recursion ........... : ${with_match_limit_recursion}
18563 Build shared libs ............... : ${enable_shared}
18564 Build static libs ............... : ${enable_static}
18565 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
18566 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
18567 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}