2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libedit 3.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
696 PACKAGE_NAME='libedit'
697 PACKAGE_TARNAME='libedit-20090923'
698 PACKAGE_VERSION='3.0'
699 PACKAGE_STRING='libedit 3.0'
703 ac_unique_file="src/strlcat.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='am__EXEEXT_FALSE
809 INSTALL_STRIP_PROGRAM
851 program_transform_name
864 enable_option_checking
869 enable_dependency_tracking
874 ac_precious_vars='build_alias
889 # Initialize some variables set by options.
891 ac_init_version=false
892 ac_unrecognized_opts=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
903 program_transform_name=s,x,x,
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1195 -site=* | --site=* | --sit=*)
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1251 eval with_$ac_useropt=no ;;
1254 # Obsolete; use --with-x.
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1271 -*) as_fn_error "unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information."
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error "missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1304 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1322 # Be sure to have absolute directory names.
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error "pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1428 \`configure' configures libedit 3.0 to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root
1477 [DATAROOTDIR/doc/libedit-20090923]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of libedit 3.0:";;
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-dependency-tracking speeds up one-time build
1512 --enable-dependency-tracking do not reject slow dependency extractors
1513 --disable-libtool-lock avoid locking (might break parallel builds)
1514 --enable-silent-rules less verbose build output (undo: `make V=1')
1515 --disable-silent-rules verbose build output (undo: `make V=0')
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-pic try to use only PIC/non-PIC objects [default=use
1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 CXXCPP C++ preprocessor
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1540 Report bugs to the package provider.
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1570 .) # We are building in place.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1603 libedit configure 3.0
1604 generated by GNU Autoconf 2.64
1606 Copyright (C) 2009 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 } # ac_fn_c_try_compile
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 $as_test_x conftest$ac_exeext
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 } # ac_fn_c_try_link
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1718 if ac_fn_c_try_compile "$LINENO"; then :
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 } # ac_fn_c_check_header_compile
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } >/dev/null && {
1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1803 ac_retval=$ac_status
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1834 # include <limits.h>
1836 # include <assert.h>
1841 /* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined __stub_$2 || defined __stub___$2
1863 if ac_fn_c_try_link "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 } # ac_fn_c_check_func
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_try_link LINENO
1954 # -------------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_cxx_try_link ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext conftest$ac_exeext
1960 if { { ac_try="$ac_link"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_link") 2>conftest.err
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_cxx_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest$ac_exeext && {
1979 test "$cross_compiling" = yes ||
1980 $as_test_x conftest$ac_exeext
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1989 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1990 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1991 # interfere with the next link command; also delete a directory that is
1992 # left behind by Apple's compiler. We do this before executing the actions.
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_cxx_try_link
1999 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2002 # the include files in INCLUDES and setting the cache variable VAR
2004 ac_fn_c_check_header_mongrel ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011 $as_echo_n "(cached) " >&6
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2017 # Is the header compilable?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2019 $as_echo_n "checking $2 usability... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_header_compiler=yes
2028 ac_header_compiler=no
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2032 $as_echo "$ac_header_compiler" >&6; }
2034 # Is the header present?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2036 $as_echo_n "checking $2 presence... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 if ac_fn_c_try_cpp "$LINENO"; then :
2042 ac_header_preproc=yes
2044 ac_header_preproc=no
2046 rm -f conftest.err conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2048 $as_echo "$ac_header_preproc" >&6; }
2050 # So? What about this header?
2051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2054 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2060 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2062 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2064 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2066 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2068 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2076 eval "$3=\$ac_header_compiler"
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084 } # ac_fn_c_check_header_mongrel
2086 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087 # -------------------------------------------
2088 # Tests whether TYPE exists after having included INCLUDES, setting cache
2089 # variable VAR accordingly.
2090 ac_fn_c_check_type ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 $as_echo_n "(cached) " >&6
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2124 if ac_fn_c_try_compile "$LINENO"; then :
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 } # ac_fn_c_check_type
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2143 It was created by libedit $as_me 3.0, which was
2144 generated by GNU Autoconf 2.64. Invocation command line was
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2204 ac_must_keep_next=false
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 -* ) ac_must_keep_next=true ;;
2236 as_fn_append ac_configure_args " '$ac_arg'"
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2255 ## ---------------- ##
2256 ## Cache variables. ##
2257 ## ---------------- ##
2260 # The following way of writing the cache mishandles newlines in values,
2262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263 eval ac_val=\$$ac_var
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2293 ## ----------------- ##
2294 ## Output variables. ##
2295 ## ----------------- ##
2298 for ac_var in $ac_subst_vars
2300 eval ac_val=\$$ac_var
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304 $as_echo "$ac_var='\''$ac_val'\''"
2308 if test -n "$ac_subst_files"; then
2310 ## ------------------- ##
2311 ## File substitutions. ##
2312 ## ------------------- ##
2315 for ac_var in $ac_subst_files
2317 eval ac_val=\$$ac_var
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321 $as_echo "$ac_var='\''$ac_val'\''"
2326 if test -s confdefs.h; then
2336 test "$ac_signal" != 0 &&
2337 $as_echo "$as_me: caught signal $ac_signal"
2338 $as_echo "$as_me: exit $exit_status"
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344 for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2352 $as_echo "/* confdefs.h */" > confdefs.h
2354 # Predefined preprocessor variables.
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_NAME "$PACKAGE_NAME"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_STRING "$PACKAGE_STRING"
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_URL "$PACKAGE_URL"
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2385 if test -n "$CONFIG_SITE"; then
2386 ac_site_file1=$CONFIG_SITE
2387 elif test "x$prefix" != xNONE; then
2388 ac_site_file1=$prefix/share/config.site
2389 ac_site_file2=$prefix/etc/config.site
2391 ac_site_file1=$ac_default_prefix/share/config.site
2392 ac_site_file2=$ac_default_prefix/etc/config.site
2394 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396 test "x$ac_site_file" = xNONE && continue
2397 if test -r "$ac_site_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2400 sed 's/^/| /' "$ac_site_file" >&5
2405 if test -r "$cache_file"; then
2406 # Some versions of bash will fail to source /dev/null (special
2407 # files actually), so we avoid doing that.
2408 if test -f "$cache_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413 *) . "./$cache_file";;
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2422 # Check that the precious variables saved in the cache have kept the same
2424 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do
2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427 eval ac_new_set=\$ac_env_${ac_var}_set
2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429 eval ac_new_val=\$ac_env_${ac_var}_value
2430 case $ac_old_set,$ac_new_set in
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2441 if test "x$ac_old_val" != "x$ac_new_val"; then
2442 # differences in whitespace do not lead to failure.
2443 ac_old_val_w=`echo x $ac_old_val`
2444 ac_new_val_w=`echo x $ac_new_val`
2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448 ac_cache_corrupted=:
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452 eval $ac_var=\$ac_old_val
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2460 # Pass precious variables to config.status.
2461 if test "$ac_new_set" = set; then
2463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 *) ac_arg=$ac_var=$ac_new_val ;;
2466 case " $ac_configure_args " in
2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472 if $ac_cache_corrupted; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 ac_config_headers="$ac_config_headers config.h"
2494 am__api_version='1.11'
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 for ac_t in install-sh install.sh shtool; do
2499 if test -f "$ac_dir/$ac_t"; then
2501 ac_install_sh="$ac_aux_dir/$ac_t -c"
2506 if test -z "$ac_aux_dir"; then
2507 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if test "${ac_cv_path_install+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2588 rm -rf conftest.one conftest.two conftest.dir
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL=$ac_install_sh
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613 $as_echo_n "checking whether build environment is sane... " >&6; }
2616 echo timestamp > conftest.file
2617 # Reject unsafe characters in $srcdir or the absolute working directory
2618 # name. Accept space and tab only in the latter.
2622 *[\\\"\#\$\&\'\`$am_lf]*)
2623 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2627 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2630 # Do `set' in a subshell so we don't clobber the current shell's
2631 # arguments. Must try -L first in case configure is actually a
2632 # symlink; some systems play weird games with the mod time of symlinks
2633 # (eg FreeBSD returns the mod time of the symlink's containing
2636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2637 if test "$*" = "X"; then
2639 set X `ls -t "$srcdir/configure" conftest.file`
2642 if test "$*" != "X $srcdir/configure conftest.file" \
2643 && test "$*" != "X conftest.file $srcdir/configure"; then
2645 # If neither matched, then we have a broken ls. This can happen
2646 # if, for instance, CONFIG_SHELL is bash and it inherits a
2647 # broken ls alias from the environment. This has actually
2648 # happened. Such a system could not be considered "sane".
2649 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2650 alias in your environment" "$LINENO" 5
2653 test "$2" = conftest.file
2659 as_fn_error "newly created file is older than distributed files!
2660 Check your system clock" "$LINENO" 5
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 test "$program_prefix" != NONE &&
2665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2666 # Use a double $ so make ignores it.
2667 test "$program_suffix" != NONE &&
2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2669 # Double any \ or $.
2670 # By default was `s,x,x', remove it if useless.
2671 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2672 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2674 # expand $ac_aux_dir to an absolute path
2675 am_aux_dir=`cd $ac_aux_dir && pwd`
2677 if test x"${MISSING+set}" != xset; then
2680 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2682 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2685 # Use eval to expand $SHELL
2686 if eval "$MISSING --run true"; then
2687 am_missing_run="$MISSING --run "
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2691 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2694 if test x"${install_sh}" != xset; then
2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2699 install_sh="\${SHELL} $am_aux_dir/install-sh"
2703 # Installed binaries are usually stripped using `strip' when the user
2704 # run `make install-strip'. However `strip' might not be the right
2705 # tool to use in cross-compilation environments, therefore Automake
2706 # will honor the `STRIP' environment variable to overrule this program.
2707 if test "$cross_compiling" != no; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}strip; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_STRIP+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$STRIP"; then
2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 STRIP=$ac_cv_prog_STRIP
2737 if test -n "$STRIP"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739 $as_echo "$STRIP" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2747 if test -z "$ac_cv_prog_STRIP"; then
2749 # Extract the first word of "strip", so it can be a program name with args.
2750 set dummy strip; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$ac_ct_STRIP"; then
2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_STRIP="strip"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777 if test -n "$ac_ct_STRIP"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2779 $as_echo "$ac_ct_STRIP" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2785 if test "x$ac_ct_STRIP" = x; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2797 STRIP="$ac_cv_prog_STRIP"
2801 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2804 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2805 if test -z "$MKDIR_P"; then
2806 if test "${ac_cv_path_mkdir+set}" = set; then :
2807 $as_echo_n "(cached) " >&6
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2813 test -z "$as_dir" && as_dir=.
2814 for ac_prog in mkdir gmkdir; do
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2817 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2818 'mkdir (GNU coreutils) '* | \
2819 'mkdir (coreutils) '* | \
2820 'mkdir (fileutils) '4.1*)
2821 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2831 if test "${ac_cv_path_mkdir+set}" = set; then
2832 MKDIR_P="$ac_cv_path_mkdir -p"
2834 # As a last resort, use the slow shell script. Don't cache a
2835 # value for MKDIR_P within a source directory, because that will
2836 # break other packages using the cache if that directory is
2837 # removed, or if the value is a relative name.
2838 test -d ./--version && rmdir ./--version
2839 MKDIR_P="$ac_install_sh -d"
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2843 $as_echo "$MKDIR_P" >&6; }
2847 [\\/$]* | ?:[\\/]*) ;;
2848 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2851 for ac_prog in gawk mawk nawk awk
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_AWK+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2860 if test -n "$AWK"; then
2861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_AWK="$ac_prog"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test -n "$AWK"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2883 $as_echo "$AWK" >&6; }
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2890 test -n "$AWK" && break
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2896 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2897 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2898 $as_echo_n "(cached) " >&6
2900 cat >conftest.make <<\_ACEOF
2903 @echo '@@@%%%=$(MAKE)=@@@%%%'
2905 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2906 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2908 eval ac_cv_prog_make_${ac_make}_set=yes;;
2910 eval ac_cv_prog_make_${ac_make}_set=no;;
2914 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 $as_echo "yes" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 SET_MAKE="MAKE=${MAKE-make}"
2924 rm -rf .tst 2>/dev/null
2925 mkdir .tst 2>/dev/null
2926 if test -d .tst; then
2931 rmdir .tst 2>/dev/null
2933 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935 # is not polluted with repeated "-I."
2936 am__isrc=' -I$(srcdir)'
2937 # test to see if srcdir already configured
2938 if test -f $srcdir/config.status; then
2939 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2943 # test whether we have cygpath
2944 if test -z "$CYGPATH_W"; then
2945 if (cygpath --version) >/dev/null 2>/dev/null; then
2946 CYGPATH_W='cygpath -w'
2953 # Define the identity of the package.
2954 PACKAGE='libedit-20090923'
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2963 cat >>confdefs.h <<_ACEOF
2964 #define VERSION "$VERSION"
2967 # Some tools Automake needs.
2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2983 # We need awk for the "check" target. The system "awk" is bad on
2985 # Always define AMTAR for backward compatibility.
2987 AMTAR=${AMTAR-"${am_missing_run}tar"}
2989 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2998 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3003 macro_version='2.2.6'
3004 macro_revision='1.3012'
3018 ltmain="$ac_aux_dir/ltmain.sh"
3020 # Make sure we can run config.sub.
3021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3022 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3025 $as_echo_n "checking build system type... " >&6; }
3026 if test "${ac_cv_build+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3029 ac_build_alias=$build_alias
3030 test "x$ac_build_alias" = x &&
3031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3032 test "x$ac_build_alias" = x &&
3033 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3035 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3039 $as_echo "$ac_cv_build" >&6; }
3040 case $ac_cv_build in
3042 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3045 ac_save_IFS=$IFS; IFS='-'
3051 # Remember, the first character of IFS is used to create $*,
3052 # except with old shells:
3055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3059 $as_echo_n "checking host system type... " >&6; }
3060 if test "${ac_cv_host+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3063 if test "x$host_alias" = x; then
3064 ac_cv_host=$ac_cv_build
3066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3072 $as_echo "$ac_cv_host" >&6; }
3075 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3078 ac_save_IFS=$IFS; IFS='-'
3084 # Remember, the first character of IFS is used to create $*,
3085 # except with old shells:
3088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3091 DEPDIR="${am__leading_dot}deps"
3093 ac_config_commands="$ac_config_commands depfiles"
3096 am_make=${MAKE-make}
3097 cat > confinc << 'END'
3099 @echo this is the am__doit target
3102 # If we don't find an include directive, just comment out the code.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3104 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3108 # First try GNU make style include.
3109 echo "include confinc" > confmf
3110 # Ignore all kinds of additional output from `make'.
3111 case `$am_make -s -f confmf 2> /dev/null` in #(
3112 *the\ am__doit\ target*)
3118 # Now try BSD make style include.
3119 if test "$am__include" = "#"; then
3120 echo '.include "confinc"' > confmf
3121 case `$am_make -s -f confmf 2> /dev/null` in #(
3122 *the\ am__doit\ target*)
3123 am__include=.include
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3132 $as_echo "$_am_result" >&6; }
3133 rm -f confinc confmf
3135 # Check whether --enable-dependency-tracking was given.
3136 if test "${enable_dependency_tracking+set}" = set; then :
3137 enableval=$enable_dependency_tracking;
3140 if test "x$enable_dependency_tracking" != xno; then
3141 am_depcomp="$ac_aux_dir/depcomp"
3144 if test "x$enable_dependency_tracking" != xno; then
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$ac_cv_prog_CC"; then
3199 # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_ac_ct_CC="gcc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3235 if test "x$ac_ct_CC" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3250 if test -z "$CC"; then
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if test "${ac_cv_prog_CC+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269 ac_cv_prog_CC="${ac_tool_prefix}cc"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 if test -n "$CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3291 if test -z "$CC"; then
3292 # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311 ac_prog_rejected=yes
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 if test $ac_prog_rejected = yes; then
3323 # We found a bogon in the path, so make sure we never use it.
3324 set dummy $ac_cv_prog_CC
3326 if test $# != 0; then
3327 # We chose a different compiler from the bogus one.
3328 # However, it has the same basename, so the bogon will be chosen
3329 # first if we set CC to just the basename; use the full file name.
3331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 for ac_prog in cl.exe
3351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_CC+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3388 test -n "$CC" && break
3391 if test -z "$CC"; then
3393 for ac_prog in cl.exe
3395 # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 ac_cv_prog_ac_ct_CC="$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$ac_ct_CC" && break
3435 if test "x$ac_ct_CC" = x; then
3438 case $cross_compiling:$ac_tool_warned in
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3451 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details." "$LINENO" 5; }
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3460 for ac_option in --version -v -V -qversion; do
3461 { { ac_try="$ac_compiler $ac_option >&5"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470 if test -s conftest.err; then
3472 ... rest of stderr output deleted ...
3473 10q' conftest.err >conftest.er1
3474 cat conftest.er1 >&5
3475 rm -f conftest.er1 conftest.err
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3487 FILE *f = fopen ("conftest.out", "w");
3488 return ferror (f) || fclose (f) != 0;
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.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 for C compiler default output file name" >&5
3500 $as_echo_n "checking for C compiler default output file name... " >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3563 $as_echo "$ac_file" >&6; }
3564 if test -z "$ac_file"; then :
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 ac_exeext=$ac_cv_exeext
3576 # Check that the compiler produces executables we can run. If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579 $as_echo_n "checking whether the C compiler works... " >&6; }
3580 # If not cross compiling, check that we can run a simple program.
3581 if test "$cross_compiling" != yes; then
3582 if { ac_try='./$ac_file'
3583 { { case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_try") 2>&5
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; }; then
3595 if test "$cross_compiling" = maybe; then
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error "cannot run C compiled programs.
3601 If you meant to cross compile, use \`--host'.
3602 See \`config.log' for more details." "$LINENO" 5; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 $as_echo "yes" >&6; }
3609 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3610 ac_clean_files=$ac_clean_files_save
3611 # Check that the compiler produces executables we can run. If not, either
3612 # the compiler is broken, or we cross compile.
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3614 $as_echo_n "checking whether we are cross compiling... " >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616 $as_echo "$cross_compiling" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3619 $as_echo_n "checking for suffix of executables... " >&6; }
3620 if { { ac_try="$ac_link"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_link") 2>&5
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
3631 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3632 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3633 # work properly (i.e., refer to `conftest.exe'), while it won't with
3635 for ac_file in conftest.exe conftest conftest.*; do
3636 test -f "$ac_file" || continue
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error "cannot compute suffix of executables: cannot compile and link
3648 See \`config.log' for more details." "$LINENO" 5; }
3650 rm -f conftest$ac_cv_exeext
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3652 $as_echo "$ac_cv_exeext" >&6; }
3654 rm -f conftest.$ac_ext
3655 EXEEXT=$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3658 $as_echo_n "checking for suffix of object files... " >&6; }
3659 if test "${ac_cv_objext+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3673 rm -f conftest.o conftest.obj
3674 if { { ac_try="$ac_compile"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_compile") 2>&5
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; then :
3685 for ac_file in conftest.o conftest.obj conftest.*; do
3686 test -f "$ac_file" || continue;
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3689 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error "cannot compute suffix of object files: cannot compile
3700 See \`config.log' for more details." "$LINENO" 5; }
3702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3705 $as_echo "$ac_cv_objext" >&6; }
3706 OBJEXT=$ac_cv_objext
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3709 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3710 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3727 if ac_fn_c_try_compile "$LINENO"; then :
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3738 if test $ac_compiler_gnu = yes; then
3743 ac_test_CFLAGS=${CFLAGS+set}
3744 ac_save_CFLAGS=$CFLAGS
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3747 if test "${ac_cv_prog_cc_g+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 ac_save_c_werror_flag=$ac_c_werror_flag
3751 ac_c_werror_flag=yes
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3765 if ac_fn_c_try_compile "$LINENO"; then :
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3780 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 if ac_fn_c_try_compile "$LINENO"; then :
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_c_werror_flag=$ac_save_c_werror_flag
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3807 $as_echo "$ac_cv_prog_cc_g" >&6; }
3808 if test "$ac_test_CFLAGS" = set; then
3809 CFLAGS=$ac_save_CFLAGS
3810 elif test $ac_cv_prog_cc_g = yes; then
3811 if test "$GCC" = yes; then
3817 if test "$GCC" = yes; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3825 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3828 ac_cv_prog_cc_c89=no
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3834 #include <sys/types.h>
3835 #include <sys/stat.h>
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3850 s = g (p, va_arg (v,int));
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3856 function prototypes and stuff, but not '\xHH' hex character constants.
3857 These don't provoke an error unfortunately, instead are silently treated
3858 as 'x'. The following induces an error, until -std is added to get
3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3860 array size at least. It's necessary to write '\x00'==0 to get something
3861 that's true only with -std. */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865 inside strings and character constants. */
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886 CC="$ac_save_CC $ac_arg"
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_c89=$ac_arg
3890 rm -f core conftest.err conftest.$ac_objext
3891 test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 rm -f conftest.$ac_ext
3898 case "x$ac_cv_prog_cc_c89" in
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3906 CC="$CC $ac_cv_prog_cc_c89"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 depcc="$CC" am_compiler_list=
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923 $as_echo_n "checking dependency style of $depcc... " >&6; }
3924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928 # We make a subdir and do the tests there. Otherwise we can end up
3929 # making bogus files that we don't know about and never remove. For
3930 # instance it was reported that on HP-UX the gcc test will end up
3931 # making a dummy file named `D' -- because `-MD' means `put the output
3934 # Copy depcomp to subdir because otherwise we won't find it if we're
3935 # using a relative directory.
3936 cp "$am_depcomp" conftest.dir
3938 # We will build objects and dependencies in a subdirectory because
3939 # it helps to detect inapplicable dependency modes. For instance
3940 # both Tru64's cc and ICC support -MD to output dependencies as a
3941 # side effect of compilation, but ICC will put the dependencies in
3942 # the current directory while Tru64 will put them in the object
3946 am_cv_CC_dependencies_compiler_type=none
3947 if test "$am_compiler_list" = ""; then
3948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3951 case " $depcc " in #(
3952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3955 for depmode in $am_compiler_list; do
3956 # Setup a source with many dependencies, because some compilers
3957 # like to wrap large dependency lists on column 80 (with \), and
3958 # we should not choose a depcomp mode which is confused by this.
3960 # We need to recreate these files for each test, as the compiler may
3961 # overwrite some of them when testing with obscure command lines.
3962 # This happens at least with the AIX C compiler.
3964 for i in 1 2 3 4 5 6; do
3965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967 # Solaris 8's {/usr,}/bin/sh.
3968 touch sub/conftst$i.h
3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973 # mode. It turns out that the SunPro C++ compiler does not properly
3974 # handle `-M -o', and we need to detect this. Also, some Intel
3975 # versions had trouble with output in subdirs
3976 am__obj=sub/conftest.${OBJEXT-o}
3977 am__minus_obj="-o $am__obj"
3980 # This depmode causes a compiler race in universal mode.
3981 test "$am__universal" = false || continue
3984 # after this tag, mechanisms are not by side-effect, so they'll
3985 # only be used when explicitly requested
3986 if test "x$enable_dependency_tracking" = xyes; then
3992 msvisualcpp | msvcmsys)
3993 # This compiler won't grok `-c -o', but also, the minuso test has
3994 # not run yet. These depmodes are late enough in the game, and
3995 # so weak that their functioning should not be impacted.
3996 am__obj=conftest.${OBJEXT-o}
4001 if depmode=$depmode \
4002 source=sub/conftest.c object=$am__obj \
4003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005 >/dev/null 2>conftest.err &&
4006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010 # icc doesn't choke on unknown options, it will just issue warnings
4011 # or remarks (even with -Werror). So we grep stderr for any message
4012 # that says an option was ignored or not supported.
4013 # When given -MP, icc 7.0 and 7.1 complain thusly:
4014 # icc: Command line warning: ignoring option '-M'; no argument required
4015 # The diagnosis changed in icc 8.0:
4016 # icc: Command line remark: option '-MP' not supported
4017 if (grep 'ignoring option' conftest.err ||
4018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019 am_cv_CC_dependencies_compiler_type=$depmode
4028 am_cv_CC_dependencies_compiler_type=none
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4037 test "x$enable_dependency_tracking" != xno \
4038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4040 am__fastdepCC_FALSE='#'
4042 am__fastdepCC_TRUE='#'
4043 am__fastdepCC_FALSE=
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4049 if test "${ac_cv_path_SED+set}" = set; then :
4050 $as_echo_n "(cached) " >&6
4052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4053 for ac_i in 1 2 3 4 5 6 7; do
4054 ac_script="$ac_script$as_nl$ac_script"
4056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4057 { ac_script=; unset ac_script;}
4058 if test -z "$SED"; then
4059 ac_path_SED_found=false
4060 # Loop through the user's path and test for each of PROGNAME-LIST
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 test -z "$as_dir" && as_dir=.
4066 for ac_prog in sed gsed; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4069 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4070 # Check for GNU ac_path_SED and select it if it is found.
4071 # Check for GNU $ac_path_SED
4072 case `"$ac_path_SED" --version 2>&1` in
4074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4077 $as_echo_n 0123456789 >"conftest.in"
4080 cat "conftest.in" "conftest.in" >"conftest.tmp"
4081 mv "conftest.tmp" "conftest.in"
4082 cp "conftest.in" "conftest.nl"
4083 $as_echo '' >> "conftest.nl"
4084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086 as_fn_arith $ac_count + 1 && ac_count=$as_val
4087 if test $ac_count -gt ${ac_path_SED_max-0}; then
4088 # Best one so far, save it but keep looking for a better one
4089 ac_cv_path_SED="$ac_path_SED"
4090 ac_path_SED_max=$ac_count
4092 # 10*(2^10) chars as input seems more than enough
4093 test $ac_count -gt 10 && break
4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 $ac_path_SED_found && break 3
4103 if test -z "$ac_cv_path_SED"; then
4104 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4112 $as_echo "$ac_cv_path_SED" >&6; }
4113 SED="$ac_cv_path_SED"
4116 test -z "$SED" && SED=sed
4117 Xsed="$SED -e 1s/^X//"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4131 if test "${ac_cv_path_GREP+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -z "$GREP"; then
4135 ac_path_GREP_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in grep ggrep; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4146 # Check for GNU ac_path_GREP and select it if it is found.
4147 # Check for GNU $ac_path_GREP
4148 case `"$ac_path_GREP" --version 2>&1` in
4150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4153 $as_echo_n 0123456789 >"conftest.in"
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo 'GREP' >> "conftest.nl"
4160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_GREP="$ac_path_GREP"
4166 ac_path_GREP_max=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 $ac_path_GREP_found && break 3
4179 if test -z "$ac_cv_path_GREP"; then
4180 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183 ac_cv_path_GREP=$GREP
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4188 $as_echo "$ac_cv_path_GREP" >&6; }
4189 GREP="$ac_cv_path_GREP"
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4193 $as_echo_n "checking for egrep... " >&6; }
4194 if test "${ac_cv_path_EGREP+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198 then ac_cv_path_EGREP="$GREP -E"
4200 if test -z "$EGREP"; then
4201 ac_path_EGREP_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207 test -z "$as_dir" && as_dir=.
4208 for ac_prog in egrep; do
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4212 # Check for GNU ac_path_EGREP and select it if it is found.
4213 # Check for GNU $ac_path_EGREP
4214 case `"$ac_path_EGREP" --version 2>&1` in
4216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4219 $as_echo_n 0123456789 >"conftest.in"
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo 'EGREP' >> "conftest.nl"
4226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_EGREP="$ac_path_EGREP"
4232 ac_path_EGREP_max=$ac_count
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 $ac_path_EGREP_found && break 3
4245 if test -z "$ac_cv_path_EGREP"; then
4246 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249 ac_cv_path_EGREP=$EGREP
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4255 $as_echo "$ac_cv_path_EGREP" >&6; }
4256 EGREP="$ac_cv_path_EGREP"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4260 $as_echo_n "checking for fgrep... " >&6; }
4261 if test "${ac_cv_path_FGREP+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4264 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4265 then ac_cv_path_FGREP="$GREP -F"
4267 if test -z "$FGREP"; then
4268 ac_path_FGREP_found=false
4269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274 test -z "$as_dir" && as_dir=.
4275 for ac_prog in fgrep; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4278 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4279 # Check for GNU ac_path_FGREP and select it if it is found.
4280 # Check for GNU $ac_path_FGREP
4281 case `"$ac_path_FGREP" --version 2>&1` in
4283 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4286 $as_echo_n 0123456789 >"conftest.in"
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
4292 $as_echo 'FGREP' >> "conftest.nl"
4293 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295 as_fn_arith $ac_count + 1 && ac_count=$as_val
4296 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_FGREP="$ac_path_FGREP"
4299 ac_path_FGREP_max=$ac_count
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 $ac_path_FGREP_found && break 3
4312 if test -z "$ac_cv_path_FGREP"; then
4313 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4316 ac_cv_path_FGREP=$FGREP
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4322 $as_echo "$ac_cv_path_FGREP" >&6; }
4323 FGREP="$ac_cv_path_FGREP"
4326 test -z "$GREP" && GREP=grep
4346 # Check whether --with-gnu-ld was given.
4347 if test "${with_gnu_ld+set}" = set; then :
4348 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4354 if test "$GCC" = yes; then
4355 # Check if gcc -print-prog-name=ld gives a path.
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4357 $as_echo_n "checking for ld used by $CC... " >&6; }
4360 # gcc leaves a trailing carriage return which upsets mingw
4361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4366 # Accept absolute paths.
4368 re_direlt='/[^/][^/]*/\.\./'
4369 # Canonicalize the pathname of ld
4370 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4371 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4372 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4374 test -z "$LD" && LD="$ac_prog"
4377 # If it fails, then pretend we aren't using GCC.
4381 # If it is relative, then search for the first ld in PATH.
4385 elif test "$with_gnu_ld" = yes; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4387 $as_echo_n "checking for GNU ld... " >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4390 $as_echo_n "checking for non-GNU ld... " >&6; }
4392 if test "${lt_cv_path_LD+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 if test -z "$LD"; then
4396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4397 for ac_dir in $PATH; do
4399 test -z "$ac_dir" && ac_dir=.
4400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4401 lt_cv_path_LD="$ac_dir/$ac_prog"
4402 # Check to see if the program is GNU ld. I'd rather use --version,
4403 # but apparently some variants of GNU ld only accept -v.
4404 # Break only if it was the GNU/non-GNU ld that we prefer.
4405 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4406 *GNU* | *'with BFD'*)
4407 test "$with_gnu_ld" != no && break
4410 test "$with_gnu_ld" != yes && break
4417 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4422 if test -n "$LD"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4424 $as_echo "$LD" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4429 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4432 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4435 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4436 case `$LD -v 2>&1 </dev/null` in
4437 *GNU* | *'with BFD'*)
4438 lt_cv_prog_gnu_ld=yes
4441 lt_cv_prog_gnu_ld=no
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4446 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4447 with_gnu_ld=$lt_cv_prog_gnu_ld
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4458 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4459 if test "${lt_cv_path_NM+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$NM"; then
4463 # Let the user override the test.
4466 lt_nm_to_check="${ac_tool_prefix}nm"
4467 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4468 lt_nm_to_check="$lt_nm_to_check nm"
4470 for lt_tmp_nm in $lt_nm_to_check; do
4471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4472 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4474 test -z "$ac_dir" && ac_dir=.
4475 tmp_nm="$ac_dir/$lt_tmp_nm"
4476 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4477 # Check to see if the nm accepts a BSD-compat flag.
4478 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4479 # nm: unknown option "B" ignored
4480 # Tru64's nm complains that /dev/null is an invalid object file
4481 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4482 */dev/null* | *'Invalid file or object type'*)
4483 lt_cv_path_NM="$tmp_nm -B"
4487 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4489 lt_cv_path_NM="$tmp_nm -p"
4493 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4494 continue # so that we can try to find one that supports BSD flags
4503 : ${lt_cv_path_NM=no}
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4507 $as_echo "$lt_cv_path_NM" >&6; }
4508 if test "$lt_cv_path_NM" != "no"; then
4511 # Didn't find any BSD compatible name lister, look for dumpbin.
4512 if test -n "$ac_tool_prefix"; then
4513 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 if test -n "$DUMPBIN"; then
4523 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 DUMPBIN=$ac_cv_prog_DUMPBIN
4543 if test -n "$DUMPBIN"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4545 $as_echo "$DUMPBIN" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4552 test -n "$DUMPBIN" && break
4555 if test -z "$DUMPBIN"; then
4556 ac_ct_DUMPBIN=$DUMPBIN
4557 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4559 # Extract the first word of "$ac_prog", so it can be a program name with args.
4560 set dummy $ac_prog; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$ac_ct_DUMPBIN"; then
4567 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4587 if test -n "$ac_ct_DUMPBIN"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4589 $as_echo "$ac_ct_DUMPBIN" >&6; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4596 test -n "$ac_ct_DUMPBIN" && break
4599 if test "x$ac_ct_DUMPBIN" = x; then
4602 case $cross_compiling:$ac_tool_warned in
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned=yes ;;
4608 DUMPBIN=$ac_ct_DUMPBIN
4613 if test "$DUMPBIN" != ":"; then
4617 test -z "$NM" && NM=nm
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4625 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4626 if test "${lt_cv_nm_interface+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 lt_cv_nm_interface="BSD nm"
4630 echo "int some_variable = 0;" > conftest.$ac_ext
4631 (eval echo "\"\$as_me:4631: $ac_compile\"" >&5)
4632 (eval "$ac_compile" 2>conftest.err)
4633 cat conftest.err >&5
4634 (eval echo "\"\$as_me:4634: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4635 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4636 cat conftest.err >&5
4637 (eval echo "\"\$as_me:4637: output\"" >&5)
4638 cat conftest.out >&5
4639 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4640 lt_cv_nm_interface="MS dumpbin"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4645 $as_echo "$lt_cv_nm_interface" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4648 $as_echo_n "checking whether ln -s works... " >&6; }
4650 if test "$LN_S" = "ln -s"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4652 $as_echo "yes" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4655 $as_echo "no, using $LN_S" >&6; }
4658 # find the maximum length of command line arguments
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4660 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4661 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4669 # On DJGPP, this test can blow up pretty badly due to problems in libc
4670 # (any single argument exceeding 2000 bytes causes a buffer overrun
4671 # during glob expansion). Even if it were fixed, the result of this
4672 # check would be larger than it should be.
4673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4677 # Under GNU Hurd, this test is not required because there is
4678 # no limit to the length of command line arguments.
4679 # Libtool will interpret -1 as no limit whatsoever
4680 lt_cv_sys_max_cmd_len=-1;
4683 cygwin* | mingw* | cegcc*)
4684 # On Win9x/ME, this test blows up -- it succeeds, but takes
4685 # about 5 minutes as the teststring grows exponentially.
4686 # Worse, since 9x/ME are not pre-emptively multitasking,
4687 # you end up with a "frozen" computer, even though with patience
4688 # the test eventually succeeds (with a max line length of 256k).
4689 # Instead, let's just punt: use the minimum linelength reported by
4690 # all of the supported platforms: 8192 (on NT/2K/XP).
4691 lt_cv_sys_max_cmd_len=8192;
4695 # On AmigaOS with pdksh, this test takes hours, literally.
4696 # So we just punt and use a minimum line length of 8192.
4697 lt_cv_sys_max_cmd_len=8192;
4700 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4701 # This has been around since 386BSD, at least. Likely further.
4702 if test -x /sbin/sysctl; then
4703 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4704 elif test -x /usr/sbin/sysctl; then
4705 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4707 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4709 # And add a safety zone
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4715 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4716 lt_cv_sys_max_cmd_len=196608
4720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4722 # nice to cause kernel panics so lets avoid the loop below.
4723 # First set a reasonable default.
4724 lt_cv_sys_max_cmd_len=16384
4726 if test -x /sbin/sysconfig; then
4727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4728 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4733 lt_cv_sys_max_cmd_len=102400
4735 sysv5* | sco5v6* | sysv4.2uw2*)
4736 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4737 if test -n "$kargmax"; then
4738 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4740 lt_cv_sys_max_cmd_len=32768
4744 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4745 if test -n "$lt_cv_sys_max_cmd_len"; then
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4749 # Make teststring a little bigger before we do anything with it.
4750 # a 1K string should be a reasonable start.
4751 for i in 1 2 3 4 5 6 7 8 ; do
4752 teststring=$teststring$teststring
4754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4755 # If test is not a shell built-in, we'll probably end up computing a
4756 # maximum length that is only half of the actual maximum length, but
4758 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4759 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4760 test $i != 17 # 1/2 MB should be enough
4763 teststring=$teststring$teststring
4765 # Only check the string length outside the loop.
4766 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4768 # Add a significant safety factor because C++ compilers can tack on
4769 # massive amounts of additional arguments before passing them to the
4770 # linker. It appears as though 1/2 is a usable value.
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4778 if test -n $lt_cv_sys_max_cmd_len ; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4783 $as_echo "none" >&6; }
4785 max_cmd_len=$lt_cv_sys_max_cmd_len
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4798 # Try some XSI features
4801 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4803 && eval 'test $(( 1 + 1 )) -eq 2 \
4804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4807 $as_echo "$xsi_shell" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4811 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4813 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4815 && lt_shell_append=yes
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4817 $as_echo "$lt_shell_append" >&6; }
4820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4830 # test EBCDIC or ASCII
4831 case `echo X|tr X '\101'` in
4832 A) # ASCII based system
4833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4834 lt_SP2NL='tr \040 \012'
4835 lt_NL2SP='tr \015\012 \040\040'
4837 *) # EBCDIC based system
4838 lt_SP2NL='tr \100 \n'
4839 lt_NL2SP='tr \r\n \100\100'
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4852 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4853 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 lt_cv_ld_reload_flag='-r'
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4859 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4860 reload_flag=$lt_cv_ld_reload_flag
4861 case $reload_flag in
4863 *) reload_flag=" $reload_flag" ;;
4865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4868 if test "$GCC" = yes; then
4869 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4892 if test -n "$OBJDUMP"; then
4893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 OBJDUMP=$ac_cv_prog_OBJDUMP
4913 if test -n "$OBJDUMP"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4915 $as_echo "$OBJDUMP" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4923 if test -z "$ac_cv_prog_OBJDUMP"; then
4924 ac_ct_OBJDUMP=$OBJDUMP
4925 # Extract the first word of "objdump", so it can be a program name with args.
4926 set dummy objdump; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$ac_ct_OBJDUMP"; then
4933 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4953 if test -n "$ac_ct_OBJDUMP"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4955 $as_echo "$ac_ct_OBJDUMP" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4961 if test "x$ac_ct_OBJDUMP" = x; then
4964 case $cross_compiling:$ac_tool_warned in
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968 ac_tool_warned=yes ;;
4970 OBJDUMP=$ac_ct_OBJDUMP
4973 OBJDUMP="$ac_cv_prog_OBJDUMP"
4976 test -z "$OBJDUMP" && OBJDUMP=objdump
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4987 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4988 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4991 lt_cv_file_magic_cmd='$MAGIC_CMD'
4992 lt_cv_file_magic_test_file=
4993 lt_cv_deplibs_check_method='unknown'
4994 # Need to set the preceding variable on all platforms that support
4995 # interlibrary dependencies.
4996 # 'none' -- dependencies not supported.
4997 # `unknown' -- same as none, but documents that we really don't know.
4998 # 'pass_all' -- all dependencies passed with no checks.
4999 # 'test_compile' -- check by making test program.
5000 # 'file_magic [[regex]]' -- check by looking for files in library path
5001 # which responds to the $file_magic_cmd with a given extended regex.
5002 # If you have `file' or equivalent on your system and you're not sure
5003 # whether `pass_all' will *always* work, you probably want this one.
5007 lt_cv_deplibs_check_method=pass_all
5011 lt_cv_deplibs_check_method=pass_all
5015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5016 lt_cv_file_magic_cmd='/usr/bin/file -L'
5017 lt_cv_file_magic_test_file=/shlib/libc.so
5021 # func_win32_libid is a shell function defined in ltmain.sh
5022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5023 lt_cv_file_magic_cmd='func_win32_libid'
5027 # Base MSYS/MinGW do not provide the 'file' command needed by
5028 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5029 # unless we find 'file', for example because we are cross-compiling.
5030 if ( file / ) >/dev/null 2>&1; then
5031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032 lt_cv_file_magic_cmd='func_win32_libid'
5034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5035 lt_cv_file_magic_cmd='$OBJDUMP -f'
5040 # use the weaker test based on 'objdump'. See mingw*.
5041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5042 lt_cv_file_magic_cmd='$OBJDUMP -f'
5045 darwin* | rhapsody*)
5046 lt_cv_deplibs_check_method=pass_all
5049 freebsd* | dragonfly*)
5050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5053 # Not sure whether the presence of OpenBSD here was a mistake.
5054 # Let's accept both of them until this is cleared up.
5055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5056 lt_cv_file_magic_cmd=/usr/bin/file
5057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5061 lt_cv_deplibs_check_method=pass_all
5066 lt_cv_deplibs_check_method=pass_all
5069 hpux10.20* | hpux11*)
5070 lt_cv_file_magic_cmd=/usr/bin/file
5073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5092 irix5* | irix6* | nonstopux*)
5094 *-32|*"-32 ") libmagic=32-bit;;
5095 *-n32|*"-n32 ") libmagic=N32;;
5096 *-64|*"-64 ") libmagic=64-bit;;
5097 *) libmagic=never-match;;
5099 lt_cv_deplibs_check_method=pass_all
5102 # This must be Linux ELF.
5103 linux* | k*bsd*-gnu)
5104 lt_cv_deplibs_check_method=pass_all
5107 netbsd* | netbsdelf*-gnu)
5108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5117 lt_cv_file_magic_cmd=/usr/bin/file
5118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5122 lt_cv_deplibs_check_method=pass_all
5126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5133 osf3* | osf4* | osf5*)
5134 lt_cv_deplibs_check_method=pass_all
5138 lt_cv_deplibs_check_method=pass_all
5142 lt_cv_deplibs_check_method=pass_all
5145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5146 lt_cv_deplibs_check_method=pass_all
5150 case $host_vendor in
5152 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]'
5153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5156 lt_cv_deplibs_check_method=pass_all
5159 lt_cv_file_magic_cmd='/bin/file'
5160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5163 lt_cv_file_magic_cmd='/bin/file'
5164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5165 lt_cv_file_magic_test_file=/lib/libc.so
5168 lt_cv_deplibs_check_method=pass_all
5171 lt_cv_deplibs_check_method=pass_all
5177 lt_cv_deplibs_check_method=pass_all
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5184 file_magic_cmd=$lt_cv_file_magic_cmd
5185 deplibs_check_method=$lt_cv_deplibs_check_method
5186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}ar; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_prog_AR+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5207 if test -n "$AR"; then
5208 ac_cv_prog_AR="$AR" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_AR="${ac_tool_prefix}ar"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 if test -n "$AR"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5230 $as_echo "$AR" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5238 if test -z "$ac_cv_prog_AR"; then
5240 # Extract the first word of "ar", so it can be a program name with args.
5241 set dummy ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5247 if test -n "$ac_ct_AR"; then
5248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_ac_ct_AR="ar"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5268 if test -n "$ac_ct_AR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5270 $as_echo "$ac_ct_AR" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5276 if test "x$ac_ct_AR" = x; then
5279 case $cross_compiling:$ac_tool_warned in
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5283 ac_tool_warned=yes ;;
5291 test -z "$AR" && AR=ar
5292 test -z "$AR_FLAGS" && AR_FLAGS=cru
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}strip; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_STRIP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 if test -n "$STRIP"; then
5313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 STRIP=$ac_cv_prog_STRIP
5333 if test -n "$STRIP"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5335 $as_echo "$STRIP" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5343 if test -z "$ac_cv_prog_STRIP"; then
5345 # Extract the first word of "strip", so it can be a program name with args.
5346 set dummy strip; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$ac_ct_STRIP"; then
5353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_ac_ct_STRIP="strip"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5373 if test -n "$ac_ct_STRIP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5375 $as_echo "$ac_ct_STRIP" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5381 if test "x$ac_ct_STRIP" = x; then
5384 case $cross_compiling:$ac_tool_warned in
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5393 STRIP="$ac_cv_prog_STRIP"
5396 test -z "$STRIP" && STRIP=:
5403 if test -n "$ac_tool_prefix"; then
5404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5411 if test -n "$RANLIB"; then
5412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 RANLIB=$ac_cv_prog_RANLIB
5432 if test -n "$RANLIB"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5434 $as_echo "$RANLIB" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5442 if test -z "$ac_cv_prog_RANLIB"; then
5443 ac_ct_RANLIB=$RANLIB
5444 # Extract the first word of "ranlib", so it can be a program name with args.
5445 set dummy ranlib; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5451 if test -n "$ac_ct_RANLIB"; then
5452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_ac_ct_RANLIB="ranlib"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5472 if test -n "$ac_ct_RANLIB"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5474 $as_echo "$ac_ct_RANLIB" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5480 if test "x$ac_ct_RANLIB" = x; then
5483 case $cross_compiling:$ac_tool_warned in
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487 ac_tool_warned=yes ;;
5489 RANLIB=$ac_ct_RANLIB
5492 RANLIB="$ac_cv_prog_RANLIB"
5495 test -z "$RANLIB" && RANLIB=:
5502 # Determine commands to create old-style static archives.
5503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5504 old_postinstall_cmds='chmod 644 $oldlib'
5505 old_postuninstall_cmds=
5507 if test -n "$RANLIB"; then
5510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5552 # If no C compiler was specified, use CC.
5555 # If no C compiler flags were specified, use CFLAGS.
5556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5558 # Allow CC to be a program name with arguments.
5562 # Check for command to grab the raw symbol name followed by C symbol from nm.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5565 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5569 # These are sane defaults that work on at least a few old systems.
5570 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5572 # Character class describing NM global symbol codes.
5573 symcode='[BCDEGRST]'
5575 # Regexp to match symbols that can be accessed directly from C.
5576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5578 # Define system-specific variables.
5583 cygwin* | mingw* | pw32* | cegcc*)
5584 symcode='[ABCDGISTW]'
5587 if test "$host_cpu" = ia64; then
5588 symcode='[ABCDEGRST]'
5592 symcode='[BCDEGRST]'
5595 symcode='[BCDEGQRST]'
5606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5614 # If we're using GNU nm, then use its standard symbol codes.
5615 case `$NM -V 2>&1` in
5616 *GNU* | *'with BFD'*)
5617 symcode='[ABCDGIRSTW]' ;;
5620 # Transform an extracted symbol line into a proper C declaration.
5621 # Some systems (esp. on ia64) link data and code symbols differently,
5622 # so use this general approach.
5623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5625 # Transform an extracted symbol line into symbol name and symbol address
5626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5627 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'"
5629 # Handle CRLF in mingw tool chain
5633 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5637 # Try without a prefix underscore, then with it.
5638 for ac_symprfx in "" "_"; do
5640 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5641 symxfrm="\\1 $ac_symprfx\\2 \\2"
5643 # Write the raw and C identifiers.
5644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5645 # Fake it for dumpbin and say T for any non-static function
5646 # and D for any global variable.
5647 # Also find C++ and __fastcall symbols from MSVC++,
5648 # which start with @ or ?.
5649 lt_cv_sys_global_symbol_pipe="$AWK '"\
5650 " {last_section=section; section=\$ 3};"\
5651 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5652 " \$ 0!~/External *\|/{next};"\
5653 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5654 " {if(hide[section]) next};"\
5655 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5656 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5657 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5658 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5659 " ' prfx=^$ac_symprfx"
5661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5664 # Check to see that the pipe works correctly.
5668 cat > conftest.$ac_ext <<_LT_EOF
5673 void nm_test_func(void);
5674 void nm_test_func(void){}
5678 int main(){nm_test_var='a';nm_test_func();return(0);}
5681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5682 (eval $ac_compile) 2>&5
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; }; then
5686 # Now try to grab the symbols.
5688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5689 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; } && test -s "$nlist"; then
5693 # Try sorting and uniquifying the output.
5694 if sort "$nlist" | uniq > "$nlist"T; then
5695 mv -f "$nlist"T "$nlist"
5700 # Make sure that we snagged all the symbols we need.
5701 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5702 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5703 cat <<_LT_EOF > conftest.$ac_ext
5709 # Now generate the symbol file.
5710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5712 cat <<_LT_EOF >> conftest.$ac_ext
5714 /* The mapping between symbol names and symbols. */
5719 lt__PROGRAM__LTX_preloaded_symbols[] =
5721 { "@PROGRAM@", (void *) 0 },
5723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5724 cat <<\_LT_EOF >> conftest.$ac_ext
5728 /* This works around a problem in FreeBSD linker */
5729 #ifdef FREEBSD_WORKAROUND
5730 static const void *lt_preloaded_setup() {
5731 return lt__PROGRAM__LTX_preloaded_symbols;
5739 # Now try linking the two files.
5740 mv conftest.$ac_objext conftstm.$ac_objext
5741 lt_save_LIBS="$LIBS"
5742 lt_save_CFLAGS="$CFLAGS"
5743 LIBS="conftstm.$ac_objext"
5744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5746 (eval $ac_link) 2>&5
5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5752 LIBS="$lt_save_LIBS"
5753 CFLAGS="$lt_save_CFLAGS"
5755 echo "cannot find nm_test_func in $nlist" >&5
5758 echo "cannot find nm_test_var in $nlist" >&5
5761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5764 echo "$progname: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 rm -rf conftest* conftst*
5769 # Do not use the global_symbol_pipe unless it works.
5770 if test "$pipe_works" = yes; then
5773 lt_cv_sys_global_symbol_pipe=
5779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5780 lt_cv_sys_global_symbol_to_cdecl=
5782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5784 $as_echo "failed" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5787 $as_echo "ok" >&6; }
5812 # Check whether --enable-libtool-lock was given.
5813 if test "${enable_libtool_lock+set}" = set; then :
5814 enableval=$enable_libtool_lock;
5817 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5819 # Some flags need to be propagated to the compiler or linker for good
5823 # Find out which ABI we are using.
5824 echo 'int i;' > conftest.$ac_ext
5825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5826 (eval $ac_compile) 2>&5
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; then
5830 case `/usr/bin/file conftest.$ac_objext` in
5842 # Find out which ABI we are using.
5843 echo '#line 5843 "configure"' > conftest.$ac_ext
5844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5845 (eval $ac_compile) 2>&5
5847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5848 test $ac_status = 0; }; then
5849 if test "$lt_cv_prog_gnu_ld" = yes; then
5850 case `/usr/bin/file conftest.$ac_objext` in
5852 LD="${LD-ld} -melf32bsmip"
5855 LD="${LD-ld} -melf32bmipn32"
5858 LD="${LD-ld} -melf64bmip"
5862 case `/usr/bin/file conftest.$ac_objext` in
5878 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5879 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5880 # Find out which ABI we are using.
5881 echo 'int i;' > conftest.$ac_ext
5882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5883 (eval $ac_compile) 2>&5
5885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5886 test $ac_status = 0; }; then
5887 case `/usr/bin/file conftest.o` in
5890 x86_64-*kfreebsd*-gnu)
5891 LD="${LD-ld} -m elf_i386_fbsd"
5894 LD="${LD-ld} -m elf_i386"
5896 ppc64-*linux*|powerpc64-*linux*)
5897 LD="${LD-ld} -m elf32ppclinux"
5900 LD="${LD-ld} -m elf_s390"
5903 LD="${LD-ld} -m elf32_sparc"
5909 x86_64-*kfreebsd*-gnu)
5910 LD="${LD-ld} -m elf_x86_64_fbsd"
5913 LD="${LD-ld} -m elf_x86_64"
5915 ppc*-*linux*|powerpc*-*linux*)
5916 LD="${LD-ld} -m elf64ppc"
5918 s390*-*linux*|s390*-*tpf*)
5919 LD="${LD-ld} -m elf64_s390"
5922 LD="${LD-ld} -m elf64_sparc"
5932 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5933 SAVE_CFLAGS="$CFLAGS"
5934 CFLAGS="$CFLAGS -belf"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5936 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5937 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5941 ac_cpp='$CPP $CPPFLAGS'
5942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5957 if ac_fn_c_try_link "$LINENO"; then :
5958 lt_cv_cc_needs_belf=yes
5960 lt_cv_cc_needs_belf=no
5962 rm -f core conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5972 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5973 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5974 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5975 CFLAGS="$SAVE_CFLAGS"
5979 # Find out which ABI we are using.
5980 echo 'int i;' > conftest.$ac_ext
5981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5982 (eval $ac_compile) 2>&5
5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; }; then
5986 case `/usr/bin/file conftest.o` in
5988 case $lt_cv_prog_gnu_ld in
5989 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5991 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6003 need_locks="$enable_libtool_lock"
6007 rhapsody* | darwin*)
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6016 if test -n "$DSYMUTIL"; then
6017 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6037 if test -n "$DSYMUTIL"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6039 $as_echo "$DSYMUTIL" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6047 if test -z "$ac_cv_prog_DSYMUTIL"; then
6048 ac_ct_DSYMUTIL=$DSYMUTIL
6049 # Extract the first word of "dsymutil", so it can be a program name with args.
6050 set dummy dsymutil; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$ac_ct_DSYMUTIL"; then
6057 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6077 if test -n "$ac_ct_DSYMUTIL"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6079 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6085 if test "x$ac_ct_DSYMUTIL" = x; then
6088 case $cross_compiling:$ac_tool_warned in
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6094 DSYMUTIL=$ac_ct_DSYMUTIL
6097 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6108 if test -n "$NMEDIT"; then
6109 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 NMEDIT=$ac_cv_prog_NMEDIT
6129 if test -n "$NMEDIT"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6131 $as_echo "$NMEDIT" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6139 if test -z "$ac_cv_prog_NMEDIT"; then
6140 ac_ct_NMEDIT=$NMEDIT
6141 # Extract the first word of "nmedit", so it can be a program name with args.
6142 set dummy nmedit; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$ac_ct_NMEDIT"; then
6149 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6169 if test -n "$ac_ct_NMEDIT"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6171 $as_echo "$ac_ct_NMEDIT" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6177 if test "x$ac_ct_NMEDIT" = x; then
6180 case $cross_compiling:$ac_tool_warned in
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6186 NMEDIT=$ac_ct_NMEDIT
6189 NMEDIT="$ac_cv_prog_NMEDIT"
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_LIPO+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$LIPO"; then
6201 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 LIPO=$ac_cv_prog_LIPO
6221 if test -n "$LIPO"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6223 $as_echo "$LIPO" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6231 if test -z "$ac_cv_prog_LIPO"; then
6233 # Extract the first word of "lipo", so it can be a program name with args.
6234 set dummy lipo; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6240 if test -n "$ac_ct_LIPO"; then
6241 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_LIPO="lipo"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6261 if test -n "$ac_ct_LIPO"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6263 $as_echo "$ac_ct_LIPO" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6269 if test "x$ac_ct_LIPO" = x; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6281 LIPO="$ac_cv_prog_LIPO"
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}otool; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$OTOOL"; then
6293 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 OTOOL=$ac_cv_prog_OTOOL
6313 if test -n "$OTOOL"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6315 $as_echo "$OTOOL" >&6; }
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6323 if test -z "$ac_cv_prog_OTOOL"; then
6325 # Extract the first word of "otool", so it can be a program name with args.
6326 set dummy otool; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6332 if test -n "$ac_ct_OTOOL"; then
6333 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_OTOOL="otool"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6353 if test -n "$ac_ct_OTOOL"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6355 $as_echo "$ac_ct_OTOOL" >&6; }
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6361 if test "x$ac_ct_OTOOL" = x; then
6364 case $cross_compiling:$ac_tool_warned in
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6373 OTOOL="$ac_cv_prog_OTOOL"
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$OTOOL64"; then
6385 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 OTOOL64=$ac_cv_prog_OTOOL64
6405 if test -n "$OTOOL64"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6407 $as_echo "$OTOOL64" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test -z "$ac_cv_prog_OTOOL64"; then
6416 ac_ct_OTOOL64=$OTOOL64
6417 # Extract the first word of "otool64", so it can be a program name with args.
6418 set dummy otool64; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6424 if test -n "$ac_ct_OTOOL64"; then
6425 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_OTOOL64="otool64"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6445 if test -n "$ac_ct_OTOOL64"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6447 $as_echo "$ac_ct_OTOOL64" >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6453 if test "x$ac_ct_OTOOL64" = x; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6462 OTOOL64=$ac_ct_OTOOL64
6465 OTOOL64="$ac_cv_prog_OTOOL64"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6495 $as_echo_n "checking for -single_module linker flag... " >&6; }
6496 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6499 lt_cv_apple_cc_single_mod=no
6500 if test -z "${LT_MULTI_MODULE}"; then
6501 # By default we will add the -single_module flag. You can override
6502 # by either setting the environment variable LT_MULTI_MODULE
6503 # non-empty at configure time, or by adding -multi_module to the
6505 rm -rf libconftest.dylib*
6506 echo "int foo(void){return 1;}" > conftest.c
6507 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6508 -dynamiclib -Wl,-single_module conftest.c" >&5
6509 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6512 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6513 lt_cv_apple_cc_single_mod=yes
6515 cat conftest.err >&5
6517 rm -rf libconftest.dylib*
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6522 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6524 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6525 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6528 lt_cv_ld_exported_symbols_list=no
6529 save_LDFLAGS=$LDFLAGS
6530 echo "_main" > conftest.sym
6531 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6543 if ac_fn_c_try_link "$LINENO"; then :
6544 lt_cv_ld_exported_symbols_list=yes
6546 lt_cv_ld_exported_symbols_list=no
6548 rm -f core conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 LDFLAGS="$save_LDFLAGS"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6554 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6556 rhapsody* | darwin1.[012])
6557 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6559 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6560 darwin*) # darwin 5.x on
6561 # if running on 10.5 or later, the deployment target defaults
6562 # to the OS version, if on x86, and 10.4, the deployment
6563 # target defaults to 10.4. Don't you love it?
6564 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6565 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6566 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6568 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6570 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6574 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6575 _lt_dar_single_mod='$single_module'
6577 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6578 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6580 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6582 if test "$DSYMUTIL" != ":"; then
6583 _lt_dsymutil='~$DSYMUTIL $lib || :'
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6596 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6597 # On Suns, sometimes $CPP names a directory.
6598 if test -n "$CPP" && test -d "$CPP"; then
6601 if test -z "$CPP"; then
6602 if test "${ac_cv_prog_CPP+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6605 # Double quotes because CPP needs to be expanded
6606 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6609 for ac_c_preproc_warn_flag in '' yes
6611 # Use a header file that comes with gcc, so configuring glibc
6612 # with a fresh cross-compiler works.
6613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6614 # <limits.h> exists even on freestanding compilers.
6615 # On the NeXT, cc -E runs the code through the compiler's parser,
6616 # not just through cpp. "Syntax error" is here to catch this case.
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6620 # include <limits.h>
6622 # include <assert.h>
6626 if ac_fn_c_try_cpp "$LINENO"; then :
6629 # Broken: fails on valid input.
6632 rm -f conftest.err conftest.$ac_ext
6634 # OK, works on sane cases. Now check whether nonexistent headers
6635 # can be detected and how.
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #include <ac_nonexistent.h>
6640 if ac_fn_c_try_cpp "$LINENO"; then :
6641 # Broken: success on invalid input.
6644 # Passes both tests.
6648 rm -f conftest.err conftest.$ac_ext
6651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6652 rm -f conftest.err conftest.$ac_ext
6653 if $ac_preproc_ok; then :
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6666 $as_echo "$CPP" >&6; }
6668 for ac_c_preproc_warn_flag in '' yes
6670 # Use a header file that comes with gcc, so configuring glibc
6671 # with a fresh cross-compiler works.
6672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673 # <limits.h> exists even on freestanding compilers.
6674 # On the NeXT, cc -E runs the code through the compiler's parser,
6675 # not just through cpp. "Syntax error" is here to catch this case.
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6679 # include <limits.h>
6681 # include <assert.h>
6685 if ac_fn_c_try_cpp "$LINENO"; then :
6688 # Broken: fails on valid input.
6691 rm -f conftest.err conftest.$ac_ext
6693 # OK, works on sane cases. Now check whether nonexistent headers
6694 # can be detected and how.
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <ac_nonexistent.h>
6699 if ac_fn_c_try_cpp "$LINENO"; then :
6700 # Broken: success on invalid input.
6703 # Passes both tests.
6707 rm -f conftest.err conftest.$ac_ext
6710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6711 rm -f conftest.err conftest.$ac_ext
6712 if $ac_preproc_ok; then :
6715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6717 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6718 See \`config.log' for more details." "$LINENO" 5; }
6722 ac_cpp='$CPP $CPPFLAGS'
6723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6729 $as_echo_n "checking for ANSI C header files... " >&6; }
6730 if test "${ac_cv_header_stdc+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749 ac_cv_header_stdc=yes
6751 ac_cv_header_stdc=no
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 if test $ac_cv_header_stdc = yes; then
6756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763 $EGREP "memchr" >/dev/null 2>&1; then :
6766 ac_cv_header_stdc=no
6772 if test $ac_cv_header_stdc = yes; then
6773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780 $EGREP "free" >/dev/null 2>&1; then :
6783 ac_cv_header_stdc=no
6789 if test $ac_cv_header_stdc = yes; then
6790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6791 if test "$cross_compiling" = yes; then :
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6798 #if ((' ' & 0x0FF) == 0x020)
6799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6802 # define ISLOWER(c) \
6803 (('a' <= (c) && (c) <= 'i') \
6804 || ('j' <= (c) && (c) <= 'r') \
6805 || ('s' <= (c) && (c) <= 'z'))
6806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6814 for (i = 0; i < 256; i++)
6815 if (XOR (islower (i), ISLOWER (i))
6816 || toupper (i) != TOUPPER (i))
6821 if ac_fn_c_try_run "$LINENO"; then :
6824 ac_cv_header_stdc=no
6826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6827 conftest.$ac_objext conftest.beam conftest.$ac_ext
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6833 $as_echo "$ac_cv_header_stdc" >&6; }
6834 if test $ac_cv_header_stdc = yes; then
6836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6842 inttypes.h stdint.h unistd.h
6844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6847 eval as_val=\$$as_ac_Header
6848 if test "x$as_val" = x""yes; then :
6849 cat >>confdefs.h <<_ACEOF
6850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858 for ac_header in dlfcn.h
6860 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6862 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DLFCN_H 1
6883 # Check whether --enable-shared was given.
6884 if test "${enable_shared+set}" = set; then :
6885 enableval=$enable_shared; p=${PACKAGE-default}
6887 yes) enable_shared=yes ;;
6888 no) enable_shared=no ;;
6891 # Look at the argument we got. We use all the common list separators.
6892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6893 for pkg in $enableval; do
6895 if test "X$pkg" = "X$p"; then
6914 # Check whether --enable-static was given.
6915 if test "${enable_static+set}" = set; then :
6916 enableval=$enable_static; p=${PACKAGE-default}
6918 yes) enable_static=yes ;;
6919 no) enable_static=no ;;
6922 # Look at the argument we got. We use all the common list separators.
6923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6924 for pkg in $enableval; do
6926 if test "X$pkg" = "X$p"; then
6946 # Check whether --with-pic was given.
6947 if test "${with_pic+set}" = set; then :
6948 withval=$with_pic; pic_mode="$withval"
6954 test -z "$pic_mode" && pic_mode=default
6962 # Check whether --enable-fast-install was given.
6963 if test "${enable_fast_install+set}" = set; then :
6964 enableval=$enable_fast_install; p=${PACKAGE-default}
6966 yes) enable_fast_install=yes ;;
6967 no) enable_fast_install=no ;;
6969 enable_fast_install=no
6970 # Look at the argument we got. We use all the common list separators.
6971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6972 for pkg in $enableval; do
6974 if test "X$pkg" = "X$p"; then
6975 enable_fast_install=yes
6982 enable_fast_install=yes
6995 # This can be used to rebuild libtool when needed
6996 LIBTOOL_DEPS="$ltmain"
6998 # Always use our own libtool.
6999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7025 test -z "$LN_S" && LN_S="ln -s"
7040 if test -n "${ZSH_VERSION+set}" ; then
7041 setopt NO_GLOB_SUBST
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7045 $as_echo_n "checking for objdir... " >&6; }
7046 if test "${lt_cv_objdir+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7049 rm -f .libs 2>/dev/null
7050 mkdir .libs 2>/dev/null
7051 if test -d .libs; then
7054 # MS-DOS does not allow filenames that begin with a dot.
7057 rmdir .libs 2>/dev/null
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7060 $as_echo "$lt_cv_objdir" >&6; }
7061 objdir=$lt_cv_objdir
7067 cat >>confdefs.h <<_ACEOF
7068 #define LT_OBJDIR "$lt_cv_objdir/"
7089 # AIX sometimes has problems with the GCC collect2 program. For some
7090 # reason, if we set the COLLECT_NAMES environment variable, the problems
7091 # vanish in a puff of smoke.
7092 if test "X${COLLECT_NAMES+set}" != Xset; then
7094 export COLLECT_NAMES
7099 # Sed substitution that helps us do robust quoting. It backslashifies
7100 # metacharacters that are still active within double-quoted strings.
7101 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7103 # Same as above, but do not quote variable references.
7104 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7106 # Sed substitution to delay expansion of an escaped shell variable in a
7107 # double_quote_subst'ed string.
7108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7110 # Sed substitution to delay expansion of an escaped single quote.
7111 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7113 # Sed substitution to avoid accidental globbing in evaled expressions
7114 no_glob_subst='s/\*/\\\*/g'
7118 can_build_shared=yes
7120 # All known linkers require a `.a' archive for static linking (except MSVC,
7121 # which needs '.lib').
7124 with_gnu_ld="$lt_cv_prog_gnu_ld"
7127 old_CFLAGS="$CFLAGS"
7129 # Set sane defaults for various variables
7130 test -z "$CC" && CC=cc
7131 test -z "$LTCC" && LTCC=$CC
7132 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7133 test -z "$LD" && LD=ld
7134 test -z "$ac_objext" && ac_objext=o
7136 for cc_temp in $compiler""; do
7138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7144 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7147 # Only perform the check for file, if the check method requires it
7148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7149 case $deplibs_check_method in
7151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7153 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7162 lt_save_MAGIC_CMD="$MAGIC_CMD"
7163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7165 for ac_dir in $ac_dummy; do
7167 test -z "$ac_dir" && ac_dir=.
7168 if test -f $ac_dir/${ac_tool_prefix}file; then
7169 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7170 if test -n "$file_magic_test_file"; then
7171 case $deplibs_check_method in
7173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7176 $EGREP "$file_magic_regex" > /dev/null; then
7181 *** Warning: the command libtool uses to detect shared libraries,
7182 *** $file_magic_cmd, produces output that libtool cannot recognize.
7183 *** The result is that libtool may fail to recognize shared libraries
7184 *** as such. This will affect the creation of libtool libraries that
7185 *** depend on shared libraries, but programs linked with such libtool
7186 *** libraries will work regardless of this problem. Nevertheless, you
7187 *** may want to report the problem to your system manager and/or to
7188 *** bug-libtool@gnu.org
7198 MAGIC_CMD="$lt_save_MAGIC_CMD"
7203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7204 if test -n "$MAGIC_CMD"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7206 $as_echo "$MAGIC_CMD" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7216 if test -z "$lt_cv_path_MAGIC_CMD"; then
7217 if test -n "$ac_tool_prefix"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7219 $as_echo_n "checking for file... " >&6; }
7220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7228 lt_save_MAGIC_CMD="$MAGIC_CMD"
7229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7231 for ac_dir in $ac_dummy; do
7233 test -z "$ac_dir" && ac_dir=.
7234 if test -f $ac_dir/file; then
7235 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7236 if test -n "$file_magic_test_file"; then
7237 case $deplibs_check_method in
7239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7242 $EGREP "$file_magic_regex" > /dev/null; then
7247 *** Warning: the command libtool uses to detect shared libraries,
7248 *** $file_magic_cmd, produces output that libtool cannot recognize.
7249 *** The result is that libtool may fail to recognize shared libraries
7250 *** as such. This will affect the creation of libtool libraries that
7251 *** depend on shared libraries, but programs linked with such libtool
7252 *** libraries will work regardless of this problem. Nevertheless, you
7253 *** may want to report the problem to your system manager and/or to
7254 *** bug-libtool@gnu.org
7264 MAGIC_CMD="$lt_save_MAGIC_CMD"
7269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7270 if test -n "$MAGIC_CMD"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7272 $as_echo "$MAGIC_CMD" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7288 # Use C for the default configuration in the libtool script
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298 # Source file extension for C test sources.
7301 # Object file extension for compiled C test sources.
7305 # Code to be used in simple compile tests
7306 lt_simple_compile_test_code="int some_variable = 0;"
7308 # Code to be used in simple link tests
7309 lt_simple_link_test_code='int main(){return(0);}'
7317 # If no C compiler was specified, use CC.
7320 # If no C compiler flags were specified, use CFLAGS.
7321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7323 # Allow CC to be a program name with arguments.
7326 # Save the default compiler, since it gets overwritten when the other
7327 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7328 compiler_DEFAULT=$CC
7330 # save warnings/boilerplate of simple test code
7331 ac_outfile=conftest.$ac_objext
7332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7334 _lt_compiler_boilerplate=`cat conftest.err`
7337 ac_outfile=conftest.$ac_objext
7338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7340 _lt_linker_boilerplate=`cat conftest.err`
7344 if test -n "$compiler"; then
7346 lt_prog_compiler_no_builtin_flag=
7348 if test "$GCC" = yes; then
7349 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7353 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7356 lt_cv_prog_compiler_rtti_exceptions=no
7357 ac_outfile=conftest.$ac_objext
7358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7359 lt_compiler_flag="-fno-rtti -fno-exceptions"
7360 # Insert the option either (1) after the last *FLAGS variable, or
7361 # (2) before a word containing "conftest.", or (3) at the end.
7362 # Note that $ac_compile itself does not contain backslashes and begins
7363 # with a dollar sign (not a hyphen), so the echo should work correctly.
7364 # The option is referenced via a variable to avoid confusing sed.
7365 lt_compile=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370 (eval "$lt_compile" 2>conftest.err)
7372 cat conftest.err >&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 if (exit $ac_status) && test -s "$ac_outfile"; then
7375 # The compiler can only warn and ignore the option if not recognized
7376 # So say no if there are warnings other than the usual output.
7377 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7380 lt_cv_prog_compiler_rtti_exceptions=yes
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7402 lt_prog_compiler_wl=
7403 lt_prog_compiler_pic=
7404 lt_prog_compiler_static=
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7409 if test "$GCC" = yes; then
7410 lt_prog_compiler_wl='-Wl,'
7411 lt_prog_compiler_static='-static'
7415 # All AIX code is PIC.
7416 if test "$host_cpu" = ia64; then
7417 # AIX 5 now supports IA64 processor
7418 lt_prog_compiler_static='-Bstatic'
7425 # see comment about AmigaOS4 .so support
7426 lt_prog_compiler_pic='-fPIC'
7429 # FIXME: we need at least 68020 code to build shared libraries, but
7430 # adding the `-m68020' flag to GCC prevents building anything better,
7432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7437 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7438 # PIC is the default for these OSes.
7441 mingw* | cygwin* | pw32* | os2* | cegcc*)
7442 # This hack is so that the source file can tell whether it is being
7443 # built for inclusion in a dll (and should export symbols for example).
7444 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7445 # (--disable-auto-import) libraries
7446 lt_prog_compiler_pic='-DDLL_EXPORT'
7449 darwin* | rhapsody*)
7450 # PIC is the default on this platform
7451 # Common symbols not allowed in MH_DYLIB files
7452 lt_prog_compiler_pic='-fno-common'
7456 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7457 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7458 # sets the default TLS model and affects inlining.
7464 lt_prog_compiler_pic='-fPIC'
7470 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7471 # Instead, we relocate shared libraries at runtime.
7475 # Just because we use GCC doesn't mean we suddenly get shared libraries
7476 # on systems that don't support them.
7477 lt_prog_compiler_can_build_shared=no
7482 # QNX uses GNU C++, but need to define -shared option too, otherwise
7484 lt_prog_compiler_pic='-fPIC -shared'
7488 if test -d /usr/nec; then
7489 lt_prog_compiler_pic=-Kconform_pic
7494 lt_prog_compiler_pic='-fPIC'
7498 # PORTME Check for flag to pass linker flags through the system compiler.
7501 lt_prog_compiler_wl='-Wl,'
7502 if test "$host_cpu" = ia64; then
7503 # AIX 5 now supports IA64 processor
7504 lt_prog_compiler_static='-Bstatic'
7506 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7510 mingw* | cygwin* | pw32* | os2* | cegcc*)
7511 # This hack is so that the source file can tell whether it is being
7512 # built for inclusion in a dll (and should export symbols for example).
7513 lt_prog_compiler_pic='-DDLL_EXPORT'
7516 hpux9* | hpux10* | hpux11*)
7517 lt_prog_compiler_wl='-Wl,'
7518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7525 lt_prog_compiler_pic='+Z'
7528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7529 lt_prog_compiler_static='${wl}-a ${wl}archive'
7532 irix5* | irix6* | nonstopux*)
7533 lt_prog_compiler_wl='-Wl,'
7534 # PIC (with -KPIC) is the default.
7535 lt_prog_compiler_static='-non_shared'
7538 linux* | k*bsd*-gnu)
7539 case $cc_basename in
7540 # old Intel for x86_64 which still supported -KPIC.
7542 lt_prog_compiler_wl='-Wl,'
7543 lt_prog_compiler_pic='-KPIC'
7544 lt_prog_compiler_static='-static'
7546 # icc used to be incompatible with GCC.
7547 # ICC 10 doesn't accept -KPIC any more.
7549 lt_prog_compiler_wl='-Wl,'
7550 lt_prog_compiler_pic='-fPIC'
7551 lt_prog_compiler_static='-static'
7553 # Lahey Fortran 8.1.
7555 lt_prog_compiler_wl='-Wl,'
7556 lt_prog_compiler_pic='--shared'
7557 lt_prog_compiler_static='--static'
7559 pgcc* | pgf77* | pgf90* | pgf95*)
7560 # Portland Group compilers (*not* the Pentium gcc compiler,
7561 # which looks to be a dead project)
7562 lt_prog_compiler_wl='-Wl,'
7563 lt_prog_compiler_pic='-fpic'
7564 lt_prog_compiler_static='-Bstatic'
7567 lt_prog_compiler_wl='-Wl,'
7568 # All Alpha code is PIC.
7569 lt_prog_compiler_static='-non_shared'
7572 # IBM XL C 8.0/Fortran 10.1 on PPC
7573 lt_prog_compiler_wl='-Wl,'
7574 lt_prog_compiler_pic='-qpic'
7575 lt_prog_compiler_static='-qstaticlink'
7578 case `$CC -V 2>&1 | sed 5q` in
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7583 lt_prog_compiler_wl='-Wl,'
7586 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7587 lt_prog_compiler_pic='-KPIC'
7588 lt_prog_compiler_static='-Bstatic'
7589 lt_prog_compiler_wl=''
7597 lt_prog_compiler_pic='-KPIC'
7598 lt_prog_compiler_static='-Bstatic'
7602 # QNX uses GNU C++, but need to define -shared option too, otherwise
7604 lt_prog_compiler_pic='-fPIC -shared'
7607 osf3* | osf4* | osf5*)
7608 lt_prog_compiler_wl='-Wl,'
7609 # All OSF/1 code is PIC.
7610 lt_prog_compiler_static='-non_shared'
7614 lt_prog_compiler_static='-non_shared'
7618 lt_prog_compiler_pic='-KPIC'
7619 lt_prog_compiler_static='-Bstatic'
7620 case $cc_basename in
7622 lt_prog_compiler_wl='-Qoption ld ';;
7624 lt_prog_compiler_wl='-Wl,';;
7629 lt_prog_compiler_wl='-Qoption ld '
7630 lt_prog_compiler_pic='-PIC'
7631 lt_prog_compiler_static='-Bstatic'
7634 sysv4 | sysv4.2uw2* | sysv4.3*)
7635 lt_prog_compiler_wl='-Wl,'
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7641 if test -d /usr/nec ;then
7642 lt_prog_compiler_pic='-Kconform_pic'
7643 lt_prog_compiler_static='-Bstatic'
7647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7648 lt_prog_compiler_wl='-Wl,'
7649 lt_prog_compiler_pic='-KPIC'
7650 lt_prog_compiler_static='-Bstatic'
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_can_build_shared=no
7659 lt_prog_compiler_pic='-pic'
7660 lt_prog_compiler_static='-Bstatic'
7664 lt_prog_compiler_can_build_shared=no
7670 # For platforms which do not support PIC, -DPIC is meaningless:
7672 lt_prog_compiler_pic=
7675 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7679 $as_echo "$lt_prog_compiler_pic" >&6; }
7687 # Check to make sure the PIC flag actually works.
7689 if test -n "$lt_prog_compiler_pic"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7692 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7695 lt_cv_prog_compiler_pic_works=no
7696 ac_outfile=conftest.$ac_objext
7697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7698 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7699 # Insert the option either (1) after the last *FLAGS variable, or
7700 # (2) before a word containing "conftest.", or (3) at the end.
7701 # Note that $ac_compile itself does not contain backslashes and begins
7702 # with a dollar sign (not a hyphen), so the echo should work correctly.
7703 # The option is referenced via a variable to avoid confusing sed.
7704 lt_compile=`echo "$ac_compile" | $SED \
7705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7707 -e 's:$: $lt_compiler_flag:'`
7708 (eval echo "\"\$as_me:7708: $lt_compile\"" >&5)
7709 (eval "$lt_compile" 2>conftest.err)
7711 cat conftest.err >&5
7712 echo "$as_me:7712: \$? = $ac_status" >&5
7713 if (exit $ac_status) && test -s "$ac_outfile"; then
7714 # The compiler can only warn and ignore the option if not recognized
7715 # So say no if there are warnings other than the usual output.
7716 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7719 lt_cv_prog_compiler_pic_works=yes
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7726 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7728 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7729 case $lt_prog_compiler_pic in
7731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7734 lt_prog_compiler_pic=
7735 lt_prog_compiler_can_build_shared=no
7746 # Check to make sure the static flag actually works.
7748 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7750 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7751 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7754 lt_cv_prog_compiler_static_works=no
7755 save_LDFLAGS="$LDFLAGS"
7756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7759 # The linker can only warn and ignore the option if not recognized
7760 # So say no if there are warnings
7761 if test -s conftest.err; then
7762 # Append any errors to the config.log.
7763 cat conftest.err 1>&5
7764 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7766 if diff conftest.exp conftest.er2 >/dev/null; then
7767 lt_cv_prog_compiler_static_works=yes
7770 lt_cv_prog_compiler_static_works=yes
7774 LDFLAGS="$save_LDFLAGS"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7778 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7780 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7783 lt_prog_compiler_static=
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7794 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 lt_cv_prog_compiler_c_o=no
7798 $RM -r conftest 2>/dev/null
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7804 lt_compiler_flag="-o out/conftest2.$ac_objext"
7805 # Insert the option either (1) after the last *FLAGS variable, or
7806 # (2) before a word containing "conftest.", or (3) at the end.
7807 # Note that $ac_compile itself does not contain backslashes and begins
7808 # with a dollar sign (not a hyphen), so the echo should work correctly.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>out/conftest.err)
7816 cat out/conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7820 # The compiler can only warn and ignore the option if not recognized
7821 # So say no if there are warnings
7822 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7825 lt_cv_prog_compiler_c_o=yes
7830 # SGI C++ compiler will create directory out/ii_files/ for
7831 # template instantiation
7832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7833 $RM out/* && rmdir out
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 lt_cv_prog_compiler_c_o=no
7853 $RM -r conftest 2>/dev/null
7857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859 lt_compiler_flag="-o out/conftest2.$ac_objext"
7860 # Insert the option either (1) after the last *FLAGS variable, or
7861 # (2) before a word containing "conftest.", or (3) at the end.
7862 # Note that $ac_compile itself does not contain backslashes and begins
7863 # with a dollar sign (not a hyphen), so the echo should work correctly.
7864 lt_compile=`echo "$ac_compile" | $SED \
7865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867 -e 's:$: $lt_compiler_flag:'`
7868 (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869 (eval "$lt_compile" 2>out/conftest.err)
7871 cat out/conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7875 # The compiler can only warn and ignore the option if not recognized
7876 # So say no if there are warnings
7877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7880 lt_cv_prog_compiler_c_o=yes
7885 # SGI C++ compiler will create directory out/ii_files/ for
7886 # template instantiation
7887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7888 $RM out/* && rmdir out
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7900 hard_links="nottested"
7901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7902 # do not overwrite the value of need_locks provided by the user
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7904 $as_echo_n "checking if we can lock with hard links... " >&6; }
7907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7909 ln conftest.a conftest.b 2>&5 || hard_links=no
7910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7912 $as_echo "$hard_links" >&6; }
7913 if test "$hard_links" = no; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7931 allow_undefined_flag=
7932 always_export_symbols=no
7934 archive_expsym_cmds=
7935 compiler_needs_object=no
7936 enable_shared_with_static_runtimes=no
7937 export_dynamic_flag_spec=
7938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7939 hardcode_automatic=no
7941 hardcode_direct_absolute=no
7942 hardcode_libdir_flag_spec=
7943 hardcode_libdir_flag_spec_ld=
7944 hardcode_libdir_separator=
7946 hardcode_shlibpath_var=unsupported
7948 link_all_deplibs=unknown
7951 old_archive_from_new_cmds=
7952 old_archive_from_expsyms_cmds=
7953 thread_safe_flag_spec=
7954 whole_archive_flag_spec=
7955 # include_expsyms should be a list of space-separated symbols to be *always*
7956 # included in the symbol list
7958 # exclude_expsyms can be an extended regexp of symbols to exclude
7959 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7961 # as well as any symbol that contains `d'.
7962 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7964 # platforms (ab)use it in PIC code, but their linkers get confused if
7965 # the symbol is explicitly referenced. Since portable code cannot
7966 # rely on this symbol name, it's probably fine to never include it in
7967 # preloaded symbol tables.
7968 # Exclude shared library initialization/finalization symbols.
7969 extract_expsyms_cmds=
7972 cygwin* | mingw* | pw32* | cegcc*)
7973 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7974 # When not using gcc, we currently assume that we are using
7975 # Microsoft Visual C++.
7976 if test "$GCC" != yes; then
7981 # we just hope/assume this is gcc and not c89 (= MSVC++)
7987 linux* | k*bsd*-gnu)
7993 if test "$with_gnu_ld" = yes; then
7994 # If archive_cmds runs LD, not CC, wlarc should be empty
7997 # Set some defaults for GNU ld with shared library support. These
7998 # are reset later if shared libraries are not supported. Putting them
7999 # here allows them to be overridden if necessary.
8000 runpath_var=LD_RUN_PATH
8001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8002 export_dynamic_flag_spec='${wl}--export-dynamic'
8003 # ancient GNU ld didn't support --whole-archive et. al.
8004 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8005 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8007 whole_archive_flag_spec=
8009 supports_anon_versioning=no
8010 case `$LD -v 2>&1` in
8011 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8012 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8013 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8014 *\ 2.11.*) ;; # other 2.11 versions
8015 *) supports_anon_versioning=yes ;;
8018 # See if GNU ld supports shared libraries.
8021 # On AIX/PPC, the GNU linker is very broken
8022 if test "$host_cpu" != ia64; then
8026 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8027 *** to be unable to reliably create shared libraries on AIX.
8028 *** Therefore, libtool is disabling shared libraries support. If you
8029 *** really care for shared libraries, you may want to modify your PATH
8030 *** so that a non-GNU linker is found, and then restart.
8039 # see comment about AmigaOS4 .so support
8040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041 archive_expsym_cmds=''
8044 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)'
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 hardcode_minus_L=yes
8052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8053 allow_undefined_flag=unsupported
8054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8055 # support --undefined. This deserves some investigation. FIXME
8056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062 cygwin* | mingw* | pw32* | cegcc*)
8063 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8064 # as there is no search path for DLLs.
8065 hardcode_libdir_flag_spec='-L$libdir'
8066 allow_undefined_flag=unsupported
8067 always_export_symbols=no
8068 enable_shared_with_static_runtimes=yes
8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8071 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073 # If the export-symbols file already is a .def file (1st line
8074 # is EXPORTS), use it as is; otherwise, prepend...
8075 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8076 cp $export_symbols $output_objdir/$soname.def;
8078 echo EXPORTS > $output_objdir/$soname.def;
8079 cat $export_symbols >> $output_objdir/$soname.def;
8081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8089 hardcode_shlibpath_var=no
8090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8091 export_dynamic_flag_spec='${wl}-E'
8092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8093 # Instead, shared libraries are loaded at an image base (0x10000000 by
8094 # default) and relocated if they conflict, which is a slow very memory
8095 # consuming and fragmenting process. To avoid this, we pick a random,
8096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8099 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'
8102 gnu* | linux* | tpf* | k*bsd*-gnu)
8104 if test "$host_os" = linux-dietlibc; then
8105 case $cc_basename in
8106 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8109 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8110 && test "$tmp_diet" = no
8113 tmp_sharedflag='-shared'
8114 case $cc_basename,$host_cpu in
8115 pgcc*) # Portland Group C compiler
8116 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8117 tmp_addflag=' $pic_flag'
8119 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8120 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8121 tmp_addflag=' $pic_flag -Mnomain' ;;
8122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8123 tmp_addflag=' -i_dynamic' ;;
8124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8125 tmp_addflag=' -i_dynamic -nofor_main' ;;
8126 ifc* | ifort*) # Intel Fortran compiler
8127 tmp_addflag=' -nofor_main' ;;
8128 lf95*) # Lahey Fortran 8.1
8129 whole_archive_flag_spec=
8130 tmp_sharedflag='--shared' ;;
8131 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8132 tmp_sharedflag='-qmkshrobj'
8135 case `$CC -V 2>&1 | sed 5q` in
8136 *Sun\ C*) # Sun C 5.9
8137 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8138 compiler_needs_object=yes
8139 tmp_sharedflag='-G' ;;
8140 *Sun\ F*) # Sun Fortran 8.3
8141 tmp_sharedflag='-G' ;;
8143 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8145 if test "x$supports_anon_versioning" = xyes; then
8146 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8148 echo "local: *; };" >> $output_objdir/$libname.ver~
8149 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8152 case $cc_basename in
8154 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8155 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8156 hardcode_libdir_flag_spec=
8157 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8158 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8159 if test "x$supports_anon_versioning" = xyes; then
8160 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8162 echo "local: *; };" >> $output_objdir/$libname.ver~
8163 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8172 netbsd* | netbsdelf*-gnu)
8173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8183 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8188 *** create shared libraries on Solaris systems. Therefore, libtool
8189 *** is disabling shared libraries support. We urge you to upgrade GNU
8190 *** binutils to release 2.9.1 or newer. Another option is to modify
8191 *** your PATH or compiler configuration so that the native linker is
8192 *** used, and then restart.
8195 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8204 case `$LD -v 2>&1` in
8205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8210 *** reliably create shared libraries on SCO systems. Therefore, libtool
8211 *** is disabling shared libraries support. We urge you to upgrade GNU
8212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8213 *** your PATH or compiler configuration so that the native linker is
8214 *** used, and then restart.
8219 # For security reasons, it is highly recommended that you always
8220 # use absolute paths for naming shared libraries, and exclude the
8221 # DT_RUNPATH tag from executables and libraries. But doing so
8222 # requires that you compile everything twice, which is a pain.
8223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_shlibpath_var=no
8242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8251 if test "$ld_shlibs" = no; then
8253 hardcode_libdir_flag_spec=
8254 export_dynamic_flag_spec=
8255 whole_archive_flag_spec=
8258 # PORTME fill in a description of your system's linker (not GNU ld)
8261 allow_undefined_flag=unsupported
8262 always_export_symbols=yes
8263 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'
8264 # Note: this linker hardcodes the directories in LIBPATH if there
8265 # are no directories specified by -L.
8266 hardcode_minus_L=yes
8267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8268 # Neither direct hardcoding nor static linking is supported with a
8270 hardcode_direct=unsupported
8275 if test "$host_cpu" = ia64; then
8276 # On IA64, the linker does run time linking by default, so we don't
8277 # have to do anything special.
8278 aix_use_runtimelinking=no
8279 exp_sym_flag='-Bexport'
8282 # If we're using GNU nm, then we don't want the "-C" option.
8283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8284 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8285 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8287 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'
8289 aix_use_runtimelinking=no
8291 # Test if we are trying to use run time linking or normal
8292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8293 # need to do runtime linking.
8294 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8295 for ld_flag in $LDFLAGS; do
8296 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8297 aix_use_runtimelinking=yes
8304 exp_sym_flag='-bexport'
8305 no_entry_flag='-bnoentry'
8308 # When large executables or shared objects are built, AIX ld can
8309 # have problems creating the table of contents. If linking a library
8310 # or program results in "error TOC overflow" add -mminimal-toc to
8311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8316 hardcode_direct_absolute=yes
8317 hardcode_libdir_separator=':'
8318 link_all_deplibs=yes
8319 file_list_spec='${wl}-f,'
8321 if test "$GCC" = yes; then
8322 case $host_os in aix4.[012]|aix4.[012].*)
8323 # We only want to do this on AIX 4.2 and lower, the check
8324 # below for broken collect2 doesn't work under 4.3+
8325 collect2name=`${CC} -print-prog-name=collect2`
8326 if test -f "$collect2name" &&
8327 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8329 # We have reworked collect2
8332 # We have old collect2
8333 hardcode_direct=unsupported
8334 # It fails to find uninstalled libraries when the uninstalled
8335 # path is not listed in the libpath. Setting hardcode_minus_L
8336 # to unsupported forces relinking
8337 hardcode_minus_L=yes
8338 hardcode_libdir_flag_spec='-L$libdir'
8339 hardcode_libdir_separator=
8343 shared_flag='-shared'
8344 if test "$aix_use_runtimelinking" = yes; then
8345 shared_flag="$shared_flag "'${wl}-G'
8350 if test "$host_cpu" = ia64; then
8351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8352 # chokes on -Wl,-G. The following line is correct:
8355 if test "$aix_use_runtimelinking" = yes; then
8356 shared_flag='${wl}-G'
8358 shared_flag='${wl}-bM:SRE'
8363 export_dynamic_flag_spec='${wl}-bexpall'
8364 # It seems that -bexpall does not export symbols beginning with
8365 # underscore (_), so it is better to generate a list of symbols to export.
8366 always_export_symbols=yes
8367 if test "$aix_use_runtimelinking" = yes; then
8368 # Warning - without using the other runtime loading flags (-brtl),
8369 # -berok will link without error, but may produce a broken library.
8370 allow_undefined_flag='-berok'
8371 # Determine the default libpath from the value encoded in an
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8384 if ac_fn_c_try_link "$LINENO"; then :
8386 lt_aix_libpath_sed='
8387 /Import File Strings/,/^$/ {
8393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 # Check for a 64-bit object if we didn't find anything.
8395 if test -z "$aix_libpath"; then
8396 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8404 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8406 if test "$host_cpu" = ia64; then
8407 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8408 allow_undefined_flag="-z nodefs"
8409 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"
8411 # Determine the default libpath from the value encoded in an
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8424 if ac_fn_c_try_link "$LINENO"; then :
8426 lt_aix_libpath_sed='
8427 /Import File Strings/,/^$/ {
8433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434 # Check for a 64-bit object if we didn't find anything.
8435 if test -z "$aix_libpath"; then
8436 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8444 # Warning - without using the other run time loading flags,
8445 # -berok will link without error, but may produce a broken library.
8446 no_undefined_flag=' ${wl}-bernotok'
8447 allow_undefined_flag=' ${wl}-berok'
8448 # Exported symbols can be pulled into shared objects from archives
8449 whole_archive_flag_spec='$convenience'
8450 archive_cmds_need_lc=yes
8451 # This is similar to how AIX traditionally builds its shared libraries.
8452 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'
8460 # see comment about AmigaOS4 .so support
8461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 archive_expsym_cmds=''
8465 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)'
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 hardcode_minus_L=yes
8473 export_dynamic_flag_spec=-rdynamic
8476 cygwin* | mingw* | pw32* | cegcc*)
8477 # When not using gcc, we currently assume that we are using
8478 # Microsoft Visual C++.
8479 # hardcode_libdir_flag_spec is actually meaningless, as there is
8480 # no search path for DLLs.
8481 hardcode_libdir_flag_spec=' '
8482 allow_undefined_flag=unsupported
8483 # Tell ltmain to make .lib files, not .a files.
8485 # Tell ltmain to make .dll files, not .so files.
8487 # FIXME: Setting linknames here is a bad hack.
8488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8489 # The linker will automatically build a .lib file if we build a DLL.
8490 old_archive_from_new_cmds='true'
8491 # FIXME: Should let the user specify the lib program.
8492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8493 fix_srcfile_path='`cygpath -w "$srcfile"`'
8494 enable_shared_with_static_runtimes=yes
8497 darwin* | rhapsody*)
8500 archive_cmds_need_lc=no
8502 hardcode_automatic=yes
8503 hardcode_shlibpath_var=unsupported
8504 whole_archive_flag_spec=''
8505 link_all_deplibs=yes
8506 allow_undefined_flag="$_lt_dar_allow_undefined"
8507 case $cc_basename in
8508 ifort*) _lt_dar_can_shared=yes ;;
8509 *) _lt_dar_can_shared=$GCC ;;
8511 if test "$_lt_dar_can_shared" = "yes"; then
8512 output_verbose_link_cmd=echo
8513 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8514 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8515 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}"
8516 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}"
8525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_shlibpath_var=no
8534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8535 # support. Future versions do this automatically, but an explicit c++rt0.o
8536 # does not break anything, and helps significantly (at the cost of a little
8539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8540 hardcode_libdir_flag_spec='-R$libdir'
8542 hardcode_shlibpath_var=no
8545 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_minus_L=yes
8550 hardcode_shlibpath_var=no
8553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8554 freebsd* | dragonfly*)
8555 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8556 hardcode_libdir_flag_spec='-R$libdir'
8558 hardcode_shlibpath_var=no
8562 if test "$GCC" = yes; then
8563 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'
8565 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'
8567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568 hardcode_libdir_separator=:
8571 # hardcode_minus_L: Not really in the search PATH,
8572 # but as the default location of the library.
8573 hardcode_minus_L=yes
8574 export_dynamic_flag_spec='${wl}-E'
8578 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8583 if test "$with_gnu_ld" = no; then
8584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8585 hardcode_libdir_flag_spec_ld='+b $libdir'
8586 hardcode_libdir_separator=:
8588 hardcode_direct_absolute=yes
8589 export_dynamic_flag_spec='${wl}-E'
8590 # hardcode_minus_L: Not really in the search PATH,
8591 # but as the default location of the library.
8592 hardcode_minus_L=yes
8597 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8600 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8603 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8612 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8615 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8618 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8622 if test "$with_gnu_ld" = no; then
8623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8624 hardcode_libdir_separator=:
8629 hardcode_shlibpath_var=no
8633 hardcode_direct_absolute=yes
8634 export_dynamic_flag_spec='${wl}-E'
8636 # hardcode_minus_L: Not really in the search PATH,
8637 # but as the default location of the library.
8638 hardcode_minus_L=yes
8644 irix5* | irix6* | nonstopux*)
8645 if test "$GCC" = yes; then
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8647 # Try to use the -exported_symbol ld option, if it does not
8648 # work, assume that -exports_file does not work either and
8649 # implicitly export all symbols.
8650 save_LDFLAGS="$LDFLAGS"
8651 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8656 if ac_fn_c_try_link "$LINENO"; then :
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LDFLAGS="$save_LDFLAGS"
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8667 archive_cmds_need_lc='no'
8668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8669 hardcode_libdir_separator=:
8671 link_all_deplibs=yes
8674 netbsd* | netbsdelf*-gnu)
8675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8678 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8680 hardcode_libdir_flag_spec='-R$libdir'
8682 hardcode_shlibpath_var=no
8686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689 hardcode_libdir_separator=:
8690 hardcode_shlibpath_var=no
8697 if test -f /usr/libexec/ld.so; then
8699 hardcode_shlibpath_var=no
8700 hardcode_direct_absolute=yes
8701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8704 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8705 export_dynamic_flag_spec='${wl}-E'
8708 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8710 hardcode_libdir_flag_spec='-R$libdir'
8713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8724 hardcode_libdir_flag_spec='-L$libdir'
8725 hardcode_minus_L=yes
8726 allow_undefined_flag=unsupported
8727 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'
8728 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8732 if test "$GCC" = yes; then
8733 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8734 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8736 allow_undefined_flag=' -expect_unresolved \*'
8737 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8739 archive_cmds_need_lc='no'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 hardcode_libdir_separator=:
8744 osf4* | osf5*) # as osf3* with the addition of -msym flag
8745 if test "$GCC" = yes; then
8746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8747 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 allow_undefined_flag=' -expect_unresolved \*'
8751 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8752 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~
8753 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8755 # Both c and cxx compiler support -rpath directly
8756 hardcode_libdir_flag_spec='-rpath $libdir'
8758 archive_cmds_need_lc='no'
8759 hardcode_libdir_separator=:
8763 no_undefined_flag=' -z defs'
8764 if test "$GCC" = yes; then
8766 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8768 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8770 case `$CC -V 2>&1` in
8773 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8775 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8779 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8781 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8785 hardcode_libdir_flag_spec='-R$libdir'
8786 hardcode_shlibpath_var=no
8788 solaris2.[0-5] | solaris2.[0-5].*) ;;
8790 # The compiler driver will combine and reorder linker options,
8791 # but understands `-z linker_flag'. GCC discards it without `$wl',
8792 # but is careful enough not to reorder.
8793 # Supported since Solaris 2.6 (maybe 2.5.1?)
8794 if test "$GCC" = yes; then
8795 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8801 link_all_deplibs=yes
8805 if test "x$host_vendor" = xsequent; then
8806 # Use $CC to link under sequent, because it throws in some extra .o
8807 # files that make .init and .fini sections work.
8808 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_minus_L=yes
8815 hardcode_shlibpath_var=no
8819 case $host_vendor in
8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_direct=yes # is this really true???
8825 ## LD is ld it makes a PLAMLIB
8826 ## CC just makes a GrossModule.
8827 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8828 reload_cmds='$CC -r -o $output$reload_objs'
8832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8836 runpath_var='LD_RUN_PATH'
8837 hardcode_shlibpath_var=no
8841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842 hardcode_shlibpath_var=no
8843 export_dynamic_flag_spec='-Bexport'
8847 if test -d /usr/nec; then
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_shlibpath_var=no
8850 runpath_var=LD_RUN_PATH
8851 hardcode_runpath_var=yes
8856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8857 no_undefined_flag='${wl}-z,text'
8858 archive_cmds_need_lc=no
8859 hardcode_shlibpath_var=no
8860 runpath_var='LD_RUN_PATH'
8862 if test "$GCC" = yes; then
8863 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 sysv5* | sco3.2v5* | sco5v6*)
8872 # Note: We can NOT use -z defs as we might desire, because we do not
8873 # link with -lc, and that would cause any symbols used from libc to
8874 # always be unresolved, which means just about no library would
8875 # ever link correctly. If we're not using GNU ld we use -z text
8876 # though, which does catch some bad symbols but isn't as heavy-handed
8878 no_undefined_flag='${wl}-z,text'
8879 allow_undefined_flag='${wl}-z,nodefs'
8880 archive_cmds_need_lc=no
8881 hardcode_shlibpath_var=no
8882 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8883 hardcode_libdir_separator=':'
8884 link_all_deplibs=yes
8885 export_dynamic_flag_spec='${wl}-Bexport'
8886 runpath_var='LD_RUN_PATH'
8888 if test "$GCC" = yes; then
8889 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8890 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_libdir_flag_spec='-L$libdir'
8900 hardcode_shlibpath_var=no
8908 if test x$host_vendor = xsni; then
8910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8911 export_dynamic_flag_spec='${wl}-Blargedynsym'
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8918 $as_echo "$ld_shlibs" >&6; }
8919 test "$ld_shlibs" = no && can_build_shared=no
8921 with_gnu_ld=$with_gnu_ld
8938 # Do we need to explicitly link libc?
8940 case "x$archive_cmds_need_lc" in
8942 # Assume -lc should be added
8943 archive_cmds_need_lc=yes
8945 if test "$enable_shared" = yes && test "$GCC" = yes; then
8946 case $archive_cmds in
8948 # FIXME: we may have to deal with multi-command sequences.
8951 # Test whether the compiler implicitly links with -lc since on some
8952 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8953 # to ld, don't add -lc before -lgcc.
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8955 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8960 (eval $ac_compile) 2>&5
8962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8963 test $ac_status = 0; } 2>conftest.err; then
8966 libobjs=conftest.$ac_objext
8968 wl=$lt_prog_compiler_wl
8969 pic_flag=$lt_prog_compiler_pic
8975 lt_save_allow_undefined_flag=$allow_undefined_flag
8976 allow_undefined_flag=
8977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8978 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8981 test $ac_status = 0; }
8983 archive_cmds_need_lc=no
8985 archive_cmds_need_lc=yes
8987 allow_undefined_flag=$lt_save_allow_undefined_flag
8989 cat conftest.err 1>&5
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8993 $as_echo "$archive_cmds_need_lc" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9157 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9159 if test "$GCC" = yes; then
9161 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9162 *) lt_awk_arg="/^libraries:/" ;;
9164 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9166 # if the path contains ";" then we assume it to be the separator
9167 # otherwise default to the standard path separator (i.e. ":") - it is
9168 # assumed that no part of a normal pathname contains ";" but that should
9169 # okay in the real world where ";" in dirpaths is itself problematic.
9170 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9174 # Ok, now we have the path, separated by spaces, we can step through it
9175 # and add multilib dir if necessary.
9176 lt_tmp_lt_search_path_spec=
9177 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9178 for lt_sys_path in $lt_search_path_spec; do
9179 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9180 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9182 test -d "$lt_sys_path" && \
9183 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9186 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9187 BEGIN {RS=" "; FS="/|\n";} {
9190 for (lt_i = NF; lt_i > 0; lt_i--) {
9191 if ($lt_i != "" && $lt_i != ".") {
9192 if ($lt_i == "..") {
9195 if (lt_count == 0) {
9196 lt_foo="/" $lt_i lt_foo;
9203 if (lt_foo != "") { lt_freq[lt_foo]++; }
9204 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9206 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9211 libname_spec='lib$name'
9219 shlibpath_overrides_runpath=unknown
9221 dynamic_linker="$host_os ld.so"
9222 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9223 need_lib_prefix=unknown
9224 hardcode_into_libs=no
9226 # when you set need_version to no, make sure it does not cause -set_version
9227 # flags to be left without arguments
9228 need_version=unknown
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234 shlibpath_var=LIBPATH
9236 # AIX 3 has no versioning support, so we append a major version to the name.
9237 soname_spec='${libname}${release}${shared_ext}$major'
9244 hardcode_into_libs=yes
9245 if test "$host_cpu" = ia64; then
9246 # AIX 5 supports IA64
9247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248 shlibpath_var=LD_LIBRARY_PATH
9250 # With GCC up to 2.95.x, collect2 would create an import file
9251 # for dependence libraries. The import file would start with
9252 # the line `#! .'. This would cause the generated library to
9253 # depend on `.', always an invalid library. This was fixed in
9254 # development snapshots of GCC prior to 3.0.
9256 aix4 | aix4.[01] | aix4.[01].*)
9257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9259 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267 # soname into executable. Probably we can add versioning support to
9268 # collect2, so additional links can be useful in future.
9269 if test "$aix_use_runtimelinking" = yes; then
9270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271 # instead of lib<name>.a to let people know that these are not
9272 # typical AIX shared libraries.
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 # We preserve .a as extension for shared libraries through AIX4.2
9276 # and later when we are not doing run time linking.
9277 library_names_spec='${libname}${release}.a $libname.a'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9280 shlibpath_var=LIBPATH
9287 # Since July 2007 AmigaOS4 officially supports .so libraries.
9288 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 library_names_spec='$libname.ixlibrary $libname.a'
9293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9294 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9300 library_names_spec='${libname}${shared_ext}'
9301 dynamic_linker="$host_os ld.so"
9302 shlibpath_var=LIBRARY_PATH
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9314 # the default ld.so.conf also contains /usr/contrib/lib and
9315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9316 # libtool to hard-code these into programs
9319 cygwin* | mingw* | pw32* | cegcc*)
9320 version_type=windows
9325 case $GCC,$host_os in
9326 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9327 library_names_spec='$libname.dll.a'
9328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9329 postinstall_cmds='base_file=`basename \${file}`~
9330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9331 dldir=$destdir/`dirname \$dlpath`~
9332 test -d \$dldir || mkdir -p \$dldir~
9333 $install_prog $dir/$dlname \$dldir/$dlname~
9334 chmod a+x \$dldir/$dlname~
9335 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9336 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9339 dlpath=$dir/\$dldll~
9341 shlibpath_overrides_runpath=yes
9345 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9346 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9347 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9350 # MinGW DLLs use traditional 'lib' prefix
9351 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9352 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9353 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9354 # It is most probably a Windows format PATH printed by
9355 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9356 # path with ; separators, and with drive letters. We can handle the
9357 # drive letters (cygwin fileutils understands them), so leave them,
9358 # especially as we might pass files found there to a mingw objdump,
9359 # which wouldn't understand a cygwinified path. Ahh.
9360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9366 # pw32 DLLs use 'pw' prefix rather than 'lib'
9367 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9376 dynamic_linker='Win32 ld.exe'
9377 # FIXME: first we should search . and the directory the executable is in
9381 darwin* | rhapsody*)
9382 dynamic_linker="$host_os dyld"
9386 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9387 soname_spec='${libname}${release}${major}$shared_ext'
9388 shlibpath_overrides_runpath=yes
9389 shlibpath_var=DYLD_LIBRARY_PATH
9390 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9392 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 shlibpath_var=LD_LIBRARY_PATH
9409 freebsd* | dragonfly*)
9410 # DragonFly does not have aout. When/if they implement a new
9411 # versioning mechanism, adjust this.
9412 if test -x /usr/bin/objformat; then
9413 objformat=`/usr/bin/objformat`
9416 freebsd[123]*) objformat=aout ;;
9420 version_type=freebsd-$objformat
9421 case $version_type in
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9432 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=yes
9437 freebsd3.[01]* | freebsdelf3.[01]*)
9438 shlibpath_overrides_runpath=yes
9439 hardcode_into_libs=yes
9441 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9442 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9443 shlibpath_overrides_runpath=no
9444 hardcode_into_libs=yes
9446 *) # from 4.6 on, and DragonFly
9447 shlibpath_overrides_runpath=yes
9448 hardcode_into_libs=yes
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 hardcode_into_libs=yes
9463 hpux9* | hpux10* | hpux11*)
9464 # Give a soname corresponding to the major version so that dld.sl refuses to
9465 # link against other versions.
9472 hardcode_into_libs=yes
9473 dynamic_linker="$host_os dld.so"
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 if test "X$HPUX_IA64_MODE" = X32; then
9479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9487 hardcode_into_libs=yes
9488 dynamic_linker="$host_os dld.sl"
9489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498 dynamic_linker="$host_os dld.sl"
9499 shlibpath_var=SHLIB_PATH
9500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9506 postinstall_cmds='chmod 555 $lib'
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=no
9518 hardcode_into_libs=yes
9521 irix5* | irix6* | nonstopux*)
9523 nonstopux*) version_type=nonstopux ;;
9525 if test "$lt_cv_prog_gnu_ld" = yes; then
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9536 irix5* | nonstopux*)
9540 case $LD in # libtool.m4 will add one of these switches to LD
9541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9542 libsuff= shlibsuff= libmagic=32-bit;;
9543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9544 libsuff=32 shlibsuff=N32 libmagic=N32;;
9545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9547 *) libsuff= shlibsuff= libmagic=never-match;;
9551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9552 shlibpath_overrides_runpath=no
9553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9555 hardcode_into_libs=yes
9558 # No shared lib support for Linux oldld, aout, or coff.
9559 linux*oldld* | linux*aout* | linux*coff*)
9563 # This must be Linux ELF.
9564 linux* | k*bsd*-gnu)
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 shlibpath_overrides_runpath=no
9573 # Some binutils ld are patched to set DT_RUNPATH
9574 save_LDFLAGS=$LDFLAGS
9576 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9577 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9591 shlibpath_overrides_runpath=yes
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 LDFLAGS=$save_LDFLAGS
9599 # This implies no fast_install, which is unacceptable.
9600 # Some rework will be needed to allow for fast_install
9601 # before this can be enabled.
9602 hardcode_into_libs=yes
9604 # Append ld.so.conf contents to the search path
9605 if test -f /etc/ld.so.conf; then
9606 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9610 # We used to test for /lib/ld.so.1 and disable shared libraries on
9611 # powerpc, because MkLinux only supported shared libraries with the
9612 # GNU dynamic linker. Since this was broken with cross compilers,
9613 # most powerpc-linux boxes support dynamic linking these days and
9614 # people can always --disable-shared, the test was removed, and we
9615 # assume the GNU/Linux dynamic linker is in use.
9616 dynamic_linker='GNU/Linux ld.so'
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=no
9627 hardcode_into_libs=yes
9628 dynamic_linker='NetBSD ld.elf_so'
9635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9638 dynamic_linker='NetBSD (a.out) ld.so'
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 dynamic_linker='NetBSD ld.elf_so'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=yes
9646 hardcode_into_libs=yes
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 shlibpath_var=LD_LIBRARY_PATH
9653 shlibpath_overrides_runpath=yes
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=no
9664 hardcode_into_libs=yes
9665 dynamic_linker='ldqnx.so'
9670 sys_lib_dlsearch_path_spec="/usr/lib"
9672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9674 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9675 *) need_version=no ;;
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9682 openbsd2.[89] | openbsd2.[89].*)
9683 shlibpath_overrides_runpath=no
9686 shlibpath_overrides_runpath=yes
9690 shlibpath_overrides_runpath=yes
9695 libname_spec='$name'
9698 library_names_spec='$libname${shared_ext} $libname.a'
9699 dynamic_linker='OS/2 ld.exe'
9700 shlibpath_var=LIBPATH
9703 osf3* | osf4* | osf5*)
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=yes
9726 hardcode_into_libs=yes
9727 # ldd complains unless libraries are executable
9728 postinstall_cmds='chmod +x $lib'
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 if test "$with_gnu_ld" = yes; then
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 case $host_vendor in
9750 shlibpath_overrides_runpath=no
9752 runpath_var=LD_RUN_PATH
9760 shlibpath_overrides_runpath=no
9761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9767 if test -d /usr/nec ;then
9769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770 soname_spec='$libname${shared_ext}.$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776 version_type=freebsd-elf
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 shlibpath_overrides_runpath=yes
9783 hardcode_into_libs=yes
9784 if test "$with_gnu_ld" = yes; then
9785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9794 sys_lib_dlsearch_path_spec='/usr/lib'
9798 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=no
9805 hardcode_into_libs=yes
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811 soname_spec='${libname}${release}${shared_ext}$major'
9812 shlibpath_var=LD_LIBRARY_PATH
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9820 $as_echo "$dynamic_linker" >&6; }
9821 test "$dynamic_linker" = no && can_build_shared=no
9823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9824 if test "$GCC" = yes; then
9825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9828 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9829 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9831 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9832 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9922 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9924 if test -n "$hardcode_libdir_flag_spec" ||
9925 test -n "$runpath_var" ||
9926 test "X$hardcode_automatic" = "Xyes" ; then
9928 # We can hardcode non-existent directories.
9929 if test "$hardcode_direct" != no &&
9930 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9931 # have to relink, otherwise we might link with an installed library
9932 # when we should be linking with a yet-to-be-installed one
9933 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9934 test "$hardcode_minus_L" != no; then
9935 # Linking always hardcodes the temporary library directory.
9936 hardcode_action=relink
9938 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9939 hardcode_action=immediate
9942 # We cannot hardcode anything, or else we can only hardcode existing
9944 hardcode_action=unsupported
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9947 $as_echo "$hardcode_action" >&6; }
9949 if test "$hardcode_action" = relink ||
9950 test "$inherit_rpath" = yes; then
9951 # Fast installation is not supported
9952 enable_fast_install=no
9953 elif test "$shlibpath_overrides_runpath" = yes ||
9954 test "$enable_shared" = no; then
9955 # Fast installation is not necessary
9956 enable_fast_install=needless
9964 if test "x$enable_dlopen" != xyes; then
9965 enable_dlopen=unknown
9966 enable_dlopen_self=unknown
9967 enable_dlopen_self_static=unknown
9974 lt_cv_dlopen="load_add_on"
9976 lt_cv_dlopen_self=yes
9979 mingw* | pw32* | cegcc*)
9980 lt_cv_dlopen="LoadLibrary"
9985 lt_cv_dlopen="dlopen"
9990 # if libdl is installed we need to link against it
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9996 ac_check_lib_save_LIBS=$LIBS
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10016 if ac_fn_c_try_link "$LINENO"; then :
10017 ac_cv_lib_dl_dlopen=yes
10019 ac_cv_lib_dl_dlopen=no
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10027 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10031 lt_cv_dlopen="dyld"
10033 lt_cv_dlopen_self=yes
10040 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10041 if test "x$ac_cv_func_shl_load" = x""yes; then :
10042 lt_cv_dlopen="shl_load"
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10045 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10046 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
10049 ac_check_lib_save_LIBS=$LIBS
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 /* Override any GCC internal prototype to avoid an error.
10055 Use char because int might match the return type of a GCC
10056 builtin and then its argument prototype would still apply. */
10064 return shl_load ();
10069 if ac_fn_c_try_link "$LINENO"; then :
10070 ac_cv_lib_dld_shl_load=yes
10072 ac_cv_lib_dld_shl_load=no
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10079 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10080 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10083 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10084 if test "x$ac_cv_func_dlopen" = x""yes; then :
10085 lt_cv_dlopen="dlopen"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10088 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10090 $as_echo_n "(cached) " >&6
10092 ac_check_lib_save_LIBS=$LIBS
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10112 if ac_fn_c_try_link "$LINENO"; then :
10113 ac_cv_lib_dl_dlopen=yes
10115 ac_cv_lib_dl_dlopen=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10122 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10123 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10127 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
10131 ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lsvld $LIBS"
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10136 /* Override any GCC internal prototype to avoid an error.
10137 Use char because int might match the return type of a GCC
10138 builtin and then its argument prototype would still apply. */
10151 if ac_fn_c_try_link "$LINENO"; then :
10152 ac_cv_lib_svld_dlopen=yes
10154 ac_cv_lib_svld_dlopen=no
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_lib_save_LIBS
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10161 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10162 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10166 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10167 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10170 ac_check_lib_save_LIBS=$LIBS
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10185 return dld_link ();
10190 if ac_fn_c_try_link "$LINENO"; then :
10191 ac_cv_lib_dld_dld_link=yes
10193 ac_cv_lib_dld_dld_link=no
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 LIBS=$ac_check_lib_save_LIBS
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10200 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10201 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10202 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10223 if test "x$lt_cv_dlopen" != xno; then
10229 case $lt_cv_dlopen in
10231 save_CPPFLAGS="$CPPFLAGS"
10232 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10234 save_LDFLAGS="$LDFLAGS"
10235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10238 LIBS="$lt_cv_dlopen_libs $LIBS"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10241 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10242 if test "${lt_cv_dlopen_self+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 if test "$cross_compiling" = yes; then :
10246 lt_cv_dlopen_self=cross
10248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10249 lt_status=$lt_dlunknown
10250 cat > conftest.$ac_ext <<_LT_EOF
10251 #line 10251 "configure"
10252 #include "confdefs.h"
10261 # define LT_DLGLOBAL RTLD_GLOBAL
10264 # define LT_DLGLOBAL DL_GLOBAL
10266 # define LT_DLGLOBAL 0
10270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10271 find out it does not work in some platform. */
10272 #ifndef LT_DLLAZY_OR_NOW
10274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10277 # define LT_DLLAZY_OR_NOW DL_LAZY
10280 # define LT_DLLAZY_OR_NOW RTLD_NOW
10283 # define LT_DLLAZY_OR_NOW DL_NOW
10285 # define LT_DLLAZY_OR_NOW 0
10292 void fnord() { int i=42;}
10295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10296 int status = $lt_dlunknown;
10300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10302 /* dlclose (self); */
10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10311 (eval $ac_link) 2>&5
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10315 (./conftest; exit; ) >&5 2>/dev/null
10317 case x$lt_status in
10318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10323 # compilation failed
10324 lt_cv_dlopen_self=no
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10332 $as_echo "$lt_cv_dlopen_self" >&6; }
10334 if test "x$lt_cv_dlopen_self" = xyes; then
10335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10338 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10341 if test "$cross_compiling" = yes; then :
10342 lt_cv_dlopen_self_static=cross
10344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10345 lt_status=$lt_dlunknown
10346 cat > conftest.$ac_ext <<_LT_EOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10357 # define LT_DLGLOBAL RTLD_GLOBAL
10360 # define LT_DLGLOBAL DL_GLOBAL
10362 # define LT_DLGLOBAL 0
10366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10367 find out it does not work in some platform. */
10368 #ifndef LT_DLLAZY_OR_NOW
10370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10373 # define LT_DLLAZY_OR_NOW DL_LAZY
10376 # define LT_DLLAZY_OR_NOW RTLD_NOW
10379 # define LT_DLLAZY_OR_NOW DL_NOW
10381 # define LT_DLLAZY_OR_NOW 0
10388 void fnord() { int i=42;}
10391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10392 int status = $lt_dlunknown;
10396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10398 /* dlclose (self); */
10406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10407 (eval $ac_link) 2>&5
10409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10411 (./conftest; exit; ) >&5 2>/dev/null
10413 case x$lt_status in
10414 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10415 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10416 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10419 # compilation failed
10420 lt_cv_dlopen_self_static=no
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10428 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10431 CPPFLAGS="$save_CPPFLAGS"
10432 LDFLAGS="$save_LDFLAGS"
10437 case $lt_cv_dlopen_self in
10438 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10439 *) enable_dlopen_self=unknown ;;
10442 case $lt_cv_dlopen_self_static in
10443 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10444 *) enable_dlopen_self_static=unknown ;;
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10467 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10468 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10469 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10470 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10472 $as_echo "yes" >&6; }
10474 # FIXME - insert some real tests, host_os isn't really good enough
10477 if test -n "$STRIP" ; then
10478 striplib="$STRIP -x"
10479 old_striplib="$STRIP -S"
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10481 $as_echo "yes" >&6; }
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10505 # Report which library types will actually be built
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10507 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10509 $as_echo "$can_build_shared" >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10512 $as_echo_n "checking whether to build shared libraries... " >&6; }
10513 test "$can_build_shared" = "no" && enable_shared=no
10515 # On AIX, shared libraries and static libraries use the same namespace, and
10516 # are all built from PIC.
10519 test "$enable_shared" = yes && enable_static=no
10520 if test -n "$RANLIB"; then
10521 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10522 postinstall_cmds='$RANLIB $lib'
10527 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10528 test "$enable_shared" = yes && enable_static=no
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10533 $as_echo "$enable_shared" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10536 $as_echo_n "checking whether to build static libraries... " >&6; }
10537 # Make sure either enable_shared or enable_static is yes.
10538 test "$enable_shared" = yes || enable_static=yes
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10540 $as_echo "$enable_static" >&6; }
10547 ac_cpp='$CPP $CPPFLAGS'
10548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10566 ac_config_commands="$ac_config_commands libtool"
10571 # Only expand once:
10575 # Check whether --enable-silent-rules was given.
10576 if test "${enable_silent_rules+set}" = set; then :
10577 enableval=$enable_silent_rules;
10580 case $enable_silent_rules in
10581 yes) AM_DEFAULT_VERBOSITY=0;;
10582 no) AM_DEFAULT_VERBOSITY=1;;
10583 *) AM_DEFAULT_VERBOSITY=0;;
10588 # libtool -version-info
10592 # Checks for programs.
10594 ac_cpp='$CXXCPP $CPPFLAGS'
10595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598 if test -z "$CXX"; then
10599 if test -n "$CCC"; then
10602 if test -n "$ac_tool_prefix"; then
10603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if test "${ac_cv_prog_CXX+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10612 if test -n "$CXX"; then
10613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 CXX=$ac_cv_prog_CXX
10633 if test -n "$CXX"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10635 $as_echo "$CXX" >&6; }
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10642 test -n "$CXX" && break
10645 if test -z "$CXX"; then
10647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10649 # Extract the first word of "$ac_prog", so it can be a program name with args.
10650 set dummy $ac_prog; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10656 if test -n "$ac_ct_CXX"; then
10657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666 ac_cv_prog_ac_ct_CXX="$ac_prog"
10667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10677 if test -n "$ac_ct_CXX"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10679 $as_echo "$ac_ct_CXX" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10686 test -n "$ac_ct_CXX" && break
10689 if test "x$ac_ct_CXX" = x; then
10692 case $cross_compiling:$ac_tool_warned in
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10696 ac_tool_warned=yes ;;
10704 # Provide some information about the compiler.
10705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10708 for ac_option in --version -v -V -qversion; do
10709 { { ac_try="$ac_compiler $ac_option >&5"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10715 $as_echo "$ac_try_echo"; } >&5
10716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10718 if test -s conftest.err; then
10720 ... rest of stderr output deleted ...
10721 10q' conftest.err >conftest.er1
10722 cat conftest.er1 >&5
10723 rm -f conftest.er1 conftest.err
10725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10726 test $ac_status = 0; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10730 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10731 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10748 if ac_fn_cxx_try_compile "$LINENO"; then :
10749 ac_compiler_gnu=yes
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10758 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10759 if test $ac_compiler_gnu = yes; then
10764 ac_test_CXXFLAGS=${CXXFLAGS+set}
10765 ac_save_CXXFLAGS=$CXXFLAGS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10767 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10768 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
10771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10772 ac_cxx_werror_flag=yes
10773 ac_cv_prog_cxx_g=no
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10786 if ac_fn_cxx_try_compile "$LINENO"; then :
10787 ac_cv_prog_cxx_g=yes
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10801 if ac_fn_cxx_try_compile "$LINENO"; then :
10804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10817 if ac_fn_cxx_try_compile "$LINENO"; then :
10818 ac_cv_prog_cxx_g=yes
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10828 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10829 if test "$ac_test_CXXFLAGS" = set; then
10830 CXXFLAGS=$ac_save_CXXFLAGS
10831 elif test $ac_cv_prog_cxx_g = yes; then
10832 if test "$GXX" = yes; then
10838 if test "$GXX" = yes; then
10845 ac_cpp='$CPP $CPPFLAGS'
10846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850 depcc="$CXX" am_compiler_list=
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10853 $as_echo_n "checking dependency style of $depcc... " >&6; }
10854 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10858 # We make a subdir and do the tests there. Otherwise we can end up
10859 # making bogus files that we don't know about and never remove. For
10860 # instance it was reported that on HP-UX the gcc test will end up
10861 # making a dummy file named `D' -- because `-MD' means `put the output
10864 # Copy depcomp to subdir because otherwise we won't find it if we're
10865 # using a relative directory.
10866 cp "$am_depcomp" conftest.dir
10868 # We will build objects and dependencies in a subdirectory because
10869 # it helps to detect inapplicable dependency modes. For instance
10870 # both Tru64's cc and ICC support -MD to output dependencies as a
10871 # side effect of compilation, but ICC will put the dependencies in
10872 # the current directory while Tru64 will put them in the object
10876 am_cv_CXX_dependencies_compiler_type=none
10877 if test "$am_compiler_list" = ""; then
10878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10880 am__universal=false
10881 case " $depcc " in #(
10882 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10885 for depmode in $am_compiler_list; do
10886 # Setup a source with many dependencies, because some compilers
10887 # like to wrap large dependency lists on column 80 (with \), and
10888 # we should not choose a depcomp mode which is confused by this.
10890 # We need to recreate these files for each test, as the compiler may
10891 # overwrite some of them when testing with obscure command lines.
10892 # This happens at least with the AIX C compiler.
10894 for i in 1 2 3 4 5 6; do
10895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10896 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10897 # Solaris 8's {/usr,}/bin/sh.
10898 touch sub/conftst$i.h
10900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10902 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10903 # mode. It turns out that the SunPro C++ compiler does not properly
10904 # handle `-M -o', and we need to detect this. Also, some Intel
10905 # versions had trouble with output in subdirs
10906 am__obj=sub/conftest.${OBJEXT-o}
10907 am__minus_obj="-o $am__obj"
10910 # This depmode causes a compiler race in universal mode.
10911 test "$am__universal" = false || continue
10914 # after this tag, mechanisms are not by side-effect, so they'll
10915 # only be used when explicitly requested
10916 if test "x$enable_dependency_tracking" = xyes; then
10922 msvisualcpp | msvcmsys)
10923 # This compiler won't grok `-c -o', but also, the minuso test has
10924 # not run yet. These depmodes are late enough in the game, and
10925 # so weak that their functioning should not be impacted.
10926 am__obj=conftest.${OBJEXT-o}
10931 if depmode=$depmode \
10932 source=sub/conftest.c object=$am__obj \
10933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10934 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10935 >/dev/null 2>conftest.err &&
10936 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10938 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10940 # icc doesn't choke on unknown options, it will just issue warnings
10941 # or remarks (even with -Werror). So we grep stderr for any message
10942 # that says an option was ignored or not supported.
10943 # When given -MP, icc 7.0 and 7.1 complain thusly:
10944 # icc: Command line warning: ignoring option '-M'; no argument required
10945 # The diagnosis changed in icc 8.0:
10946 # icc: Command line remark: option '-MP' not supported
10947 if (grep 'ignoring option' conftest.err ||
10948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10949 am_cv_CXX_dependencies_compiler_type=$depmode
10956 rm -rf conftest.dir
10958 am_cv_CXX_dependencies_compiler_type=none
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10963 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10964 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10967 test "x$enable_dependency_tracking" != xno \
10968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10969 am__fastdepCXX_TRUE=
10970 am__fastdepCXX_FALSE='#'
10972 am__fastdepCXX_TRUE='#'
10973 am__fastdepCXX_FALSE=
10979 ac_cpp='$CXXCPP $CPPFLAGS'
10980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10983 if test -z "$CXX"; then
10984 if test -n "$CCC"; then
10987 if test -n "$ac_tool_prefix"; then
10988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if test "${ac_cv_prog_CXX+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10997 if test -n "$CXX"; then
10998 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 CXX=$ac_cv_prog_CXX
11018 if test -n "$CXX"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11020 $as_echo "$CXX" >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11027 test -n "$CXX" && break
11030 if test -z "$CXX"; then
11032 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11034 # Extract the first word of "$ac_prog", so it can be a program name with args.
11035 set dummy $ac_prog; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11041 if test -n "$ac_ct_CXX"; then
11042 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11051 ac_cv_prog_ac_ct_CXX="$ac_prog"
11052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11062 if test -n "$ac_ct_CXX"; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11064 $as_echo "$ac_ct_CXX" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11071 test -n "$ac_ct_CXX" && break
11074 if test "x$ac_ct_CXX" = x; then
11077 case $cross_compiling:$ac_tool_warned in
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11081 ac_tool_warned=yes ;;
11089 # Provide some information about the compiler.
11090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11093 for ac_option in --version -v -V -qversion; do
11094 { { ac_try="$ac_compiler $ac_option >&5"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11100 $as_echo "$ac_try_echo"; } >&5
11101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11103 if test -s conftest.err; then
11105 ... rest of stderr output deleted ...
11106 10q' conftest.err >conftest.er1
11107 cat conftest.er1 >&5
11108 rm -f conftest.er1 conftest.err
11110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11111 test $ac_status = 0; }
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11115 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11116 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11133 if ac_fn_cxx_try_compile "$LINENO"; then :
11134 ac_compiler_gnu=yes
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11143 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11144 if test $ac_compiler_gnu = yes; then
11149 ac_test_CXXFLAGS=${CXXFLAGS+set}
11150 ac_save_CXXFLAGS=$CXXFLAGS
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11152 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11153 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11156 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11157 ac_cxx_werror_flag=yes
11158 ac_cv_prog_cxx_g=no
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11171 if ac_fn_cxx_try_compile "$LINENO"; then :
11172 ac_cv_prog_cxx_g=yes
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11186 if ac_fn_cxx_try_compile "$LINENO"; then :
11189 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11202 if ac_fn_cxx_try_compile "$LINENO"; then :
11203 ac_cv_prog_cxx_g=yes
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11213 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11214 if test "$ac_test_CXXFLAGS" = set; then
11215 CXXFLAGS=$ac_save_CXXFLAGS
11216 elif test $ac_cv_prog_cxx_g = yes; then
11217 if test "$GXX" = yes; then
11223 if test "$GXX" = yes; then
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11235 depcc="$CXX" am_compiler_list=
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11238 $as_echo_n "checking dependency style of $depcc... " >&6; }
11239 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11243 # We make a subdir and do the tests there. Otherwise we can end up
11244 # making bogus files that we don't know about and never remove. For
11245 # instance it was reported that on HP-UX the gcc test will end up
11246 # making a dummy file named `D' -- because `-MD' means `put the output
11249 # Copy depcomp to subdir because otherwise we won't find it if we're
11250 # using a relative directory.
11251 cp "$am_depcomp" conftest.dir
11253 # We will build objects and dependencies in a subdirectory because
11254 # it helps to detect inapplicable dependency modes. For instance
11255 # both Tru64's cc and ICC support -MD to output dependencies as a
11256 # side effect of compilation, but ICC will put the dependencies in
11257 # the current directory while Tru64 will put them in the object
11261 am_cv_CXX_dependencies_compiler_type=none
11262 if test "$am_compiler_list" = ""; then
11263 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11265 am__universal=false
11266 case " $depcc " in #(
11267 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11270 for depmode in $am_compiler_list; do
11271 # Setup a source with many dependencies, because some compilers
11272 # like to wrap large dependency lists on column 80 (with \), and
11273 # we should not choose a depcomp mode which is confused by this.
11275 # We need to recreate these files for each test, as the compiler may
11276 # overwrite some of them when testing with obscure command lines.
11277 # This happens at least with the AIX C compiler.
11279 for i in 1 2 3 4 5 6; do
11280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11282 # Solaris 8's {/usr,}/bin/sh.
11283 touch sub/conftst$i.h
11285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11288 # mode. It turns out that the SunPro C++ compiler does not properly
11289 # handle `-M -o', and we need to detect this. Also, some Intel
11290 # versions had trouble with output in subdirs
11291 am__obj=sub/conftest.${OBJEXT-o}
11292 am__minus_obj="-o $am__obj"
11295 # This depmode causes a compiler race in universal mode.
11296 test "$am__universal" = false || continue
11299 # after this tag, mechanisms are not by side-effect, so they'll
11300 # only be used when explicitly requested
11301 if test "x$enable_dependency_tracking" = xyes; then
11307 msvisualcpp | msvcmsys)
11308 # This compiler won't grok `-c -o', but also, the minuso test has
11309 # not run yet. These depmodes are late enough in the game, and
11310 # so weak that their functioning should not be impacted.
11311 am__obj=conftest.${OBJEXT-o}
11316 if depmode=$depmode \
11317 source=sub/conftest.c object=$am__obj \
11318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11319 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11320 >/dev/null 2>conftest.err &&
11321 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11322 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11323 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11324 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11325 # icc doesn't choke on unknown options, it will just issue warnings
11326 # or remarks (even with -Werror). So we grep stderr for any message
11327 # that says an option was ignored or not supported.
11328 # When given -MP, icc 7.0 and 7.1 complain thusly:
11329 # icc: Command line warning: ignoring option '-M'; no argument required
11330 # The diagnosis changed in icc 8.0:
11331 # icc: Command line remark: option '-MP' not supported
11332 if (grep 'ignoring option' conftest.err ||
11333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11334 am_cv_CXX_dependencies_compiler_type=$depmode
11341 rm -rf conftest.dir
11343 am_cv_CXX_dependencies_compiler_type=none
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11348 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11349 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11352 test "x$enable_dependency_tracking" != xno \
11353 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11354 am__fastdepCXX_TRUE=
11355 am__fastdepCXX_FALSE='#'
11357 am__fastdepCXX_TRUE='#'
11358 am__fastdepCXX_FALSE=
11362 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11363 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11364 (test "X$CXX" != "Xg++"))) ; then
11366 ac_cpp='$CXXCPP $CPPFLAGS'
11367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11371 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11372 if test -z "$CXXCPP"; then
11373 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
11376 # Double quotes because CXXCPP needs to be expanded
11377 for CXXCPP in "$CXX -E" "/lib/cpp"
11379 ac_preproc_ok=false
11380 for ac_cxx_preproc_warn_flag in '' yes
11382 # Use a header file that comes with gcc, so configuring glibc
11383 # with a fresh cross-compiler works.
11384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11385 # <limits.h> exists even on freestanding compilers.
11386 # On the NeXT, cc -E runs the code through the compiler's parser,
11387 # not just through cpp. "Syntax error" is here to catch this case.
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 # include <limits.h>
11393 # include <assert.h>
11397 if ac_fn_cxx_try_cpp "$LINENO"; then :
11400 # Broken: fails on valid input.
11403 rm -f conftest.err conftest.$ac_ext
11405 # OK, works on sane cases. Now check whether nonexistent headers
11406 # can be detected and how.
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409 #include <ac_nonexistent.h>
11411 if ac_fn_cxx_try_cpp "$LINENO"; then :
11412 # Broken: success on invalid input.
11415 # Passes both tests.
11419 rm -f conftest.err conftest.$ac_ext
11422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11423 rm -f conftest.err conftest.$ac_ext
11424 if $ac_preproc_ok; then :
11429 ac_cv_prog_CXXCPP=$CXXCPP
11432 CXXCPP=$ac_cv_prog_CXXCPP
11434 ac_cv_prog_CXXCPP=$CXXCPP
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11437 $as_echo "$CXXCPP" >&6; }
11438 ac_preproc_ok=false
11439 for ac_cxx_preproc_warn_flag in '' yes
11441 # Use a header file that comes with gcc, so configuring glibc
11442 # with a fresh cross-compiler works.
11443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 # <limits.h> exists even on freestanding compilers.
11445 # On the NeXT, cc -E runs the code through the compiler's parser,
11446 # not just through cpp. "Syntax error" is here to catch this case.
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 # include <limits.h>
11452 # include <assert.h>
11456 if ac_fn_cxx_try_cpp "$LINENO"; then :
11459 # Broken: fails on valid input.
11462 rm -f conftest.err conftest.$ac_ext
11464 # OK, works on sane cases. Now check whether nonexistent headers
11465 # can be detected and how.
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #include <ac_nonexistent.h>
11470 if ac_fn_cxx_try_cpp "$LINENO"; then :
11471 # Broken: success on invalid input.
11474 # Passes both tests.
11478 rm -f conftest.err conftest.$ac_ext
11481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11482 rm -f conftest.err conftest.$ac_ext
11483 if $ac_preproc_ok; then :
11486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11488 _lt_caught_CXX_error=yes; }
11492 ac_cpp='$CPP $CPPFLAGS'
11493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11498 _lt_caught_CXX_error=yes
11505 ac_cpp='$CXXCPP $CPPFLAGS'
11506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11510 archive_cmds_need_lc_CXX=no
11511 allow_undefined_flag_CXX=
11512 always_export_symbols_CXX=no
11513 archive_expsym_cmds_CXX=
11514 compiler_needs_object_CXX=no
11515 export_dynamic_flag_spec_CXX=
11516 hardcode_direct_CXX=no
11517 hardcode_direct_absolute_CXX=no
11518 hardcode_libdir_flag_spec_CXX=
11519 hardcode_libdir_flag_spec_ld_CXX=
11520 hardcode_libdir_separator_CXX=
11521 hardcode_minus_L_CXX=no
11522 hardcode_shlibpath_var_CXX=unsupported
11523 hardcode_automatic_CXX=no
11524 inherit_rpath_CXX=no
11526 module_expsym_cmds_CXX=
11527 link_all_deplibs_CXX=unknown
11528 old_archive_cmds_CXX=$old_archive_cmds
11529 no_undefined_flag_CXX=
11530 whole_archive_flag_spec_CXX=
11531 enable_shared_with_static_runtimes_CXX=no
11533 # Source file extension for C++ test sources.
11536 # Object file extension for compiled C++ test sources.
11540 # No sense in running all these tests if we already determined that
11541 # the CXX compiler isn't working. Some variables (like enable_shared)
11542 # are currently assumed to apply to all compilers on this platform,
11543 # and will be corrupted by setting them based on a non-working compiler.
11544 if test "$_lt_caught_CXX_error" != yes; then
11545 # Code to be used in simple compile tests
11546 lt_simple_compile_test_code="int some_variable = 0;"
11548 # Code to be used in simple link tests
11549 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11558 # If no C compiler was specified, use CC.
11561 # If no C compiler flags were specified, use CFLAGS.
11562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11564 # Allow CC to be a program name with arguments.
11568 # save warnings/boilerplate of simple test code
11569 ac_outfile=conftest.$ac_objext
11570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11572 _lt_compiler_boilerplate=`cat conftest.err`
11575 ac_outfile=conftest.$ac_objext
11576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11578 _lt_linker_boilerplate=`cat conftest.err`
11582 # Allow CC to be a program name with arguments.
11587 lt_save_with_gnu_ld=$with_gnu_ld
11588 lt_save_path_LD=$lt_cv_path_LD
11589 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11590 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11592 $as_unset lt_cv_prog_gnu_ld
11594 if test -n "${lt_cv_path_LDCXX+set}"; then
11595 lt_cv_path_LD=$lt_cv_path_LDCXX
11597 $as_unset lt_cv_path_LD
11599 test -z "${LDCXX+set}" || LD=$LDCXX
11603 for cc_temp in $compiler""; do
11605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11611 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11614 if test -n "$compiler"; then
11615 # We don't want -fno-exception when compiling C++ code, so set the
11616 # no_builtin_flag separately
11617 if test "$GXX" = yes; then
11618 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11620 lt_prog_compiler_no_builtin_flag_CXX=
11623 if test "$GXX" = yes; then
11624 # Set up default GNU C++ configuration
11628 # Check whether --with-gnu-ld was given.
11629 if test "${with_gnu_ld+set}" = set; then :
11630 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11636 if test "$GCC" = yes; then
11637 # Check if gcc -print-prog-name=ld gives a path.
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11639 $as_echo_n "checking for ld used by $CC... " >&6; }
11642 # gcc leaves a trailing carriage return which upsets mingw
11643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11648 # Accept absolute paths.
11650 re_direlt='/[^/][^/]*/\.\./'
11651 # Canonicalize the pathname of ld
11652 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11653 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11654 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11656 test -z "$LD" && LD="$ac_prog"
11659 # If it fails, then pretend we aren't using GCC.
11663 # If it is relative, then search for the first ld in PATH.
11664 with_gnu_ld=unknown
11667 elif test "$with_gnu_ld" = yes; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11669 $as_echo_n "checking for GNU ld... " >&6; }
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11672 $as_echo_n "checking for non-GNU ld... " >&6; }
11674 if test "${lt_cv_path_LD+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
11677 if test -z "$LD"; then
11678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11679 for ac_dir in $PATH; do
11681 test -z "$ac_dir" && ac_dir=.
11682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11683 lt_cv_path_LD="$ac_dir/$ac_prog"
11684 # Check to see if the program is GNU ld. I'd rather use --version,
11685 # but apparently some variants of GNU ld only accept -v.
11686 # Break only if it was the GNU/non-GNU ld that we prefer.
11687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11688 *GNU* | *'with BFD'*)
11689 test "$with_gnu_ld" != no && break
11692 test "$with_gnu_ld" != yes && break
11699 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11703 LD="$lt_cv_path_LD"
11704 if test -n "$LD"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11706 $as_echo "$LD" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11711 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11714 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11717 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11718 case `$LD -v 2>&1 </dev/null` in
11719 *GNU* | *'with BFD'*)
11720 lt_cv_prog_gnu_ld=yes
11723 lt_cv_prog_gnu_ld=no
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11728 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11729 with_gnu_ld=$lt_cv_prog_gnu_ld
11737 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11738 # archiving commands below assume that GNU ld is being used.
11739 if test "$with_gnu_ld" = yes; then
11740 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741 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'
11743 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11746 # If archive_cmds runs LD, not CC, wlarc should be empty
11747 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11748 # investigate it a little bit more. (MM)
11751 # ancient GNU ld didn't support --whole-archive et. al.
11752 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11753 $GREP 'no-whole-archive' > /dev/null; then
11754 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11756 whole_archive_flag_spec_CXX=
11762 # A generic and very simple default shared library creation
11763 # command for GNU C++ for the case where it uses the native
11764 # linker, instead of GNU ld. If possible, this setting should
11765 # overridden to take advantage of the native linker features on
11766 # the platform it is being used on.
11767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11781 # PORTME: fill in a description of your system's C++ link characteristics
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11783 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11787 # FIXME: insert proper C++ library support
11791 if test "$host_cpu" = ia64; then
11792 # On IA64, the linker does run time linking by default, so we don't
11793 # have to do anything special.
11794 aix_use_runtimelinking=no
11795 exp_sym_flag='-Bexport'
11798 aix_use_runtimelinking=no
11800 # Test if we are trying to use run time linking or normal
11801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11802 # need to do runtime linking.
11803 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11804 for ld_flag in $LDFLAGS; do
11807 aix_use_runtimelinking=yes
11815 exp_sym_flag='-bexport'
11816 no_entry_flag='-bnoentry'
11819 # When large executables or shared objects are built, AIX ld can
11820 # have problems creating the table of contents. If linking a library
11821 # or program results in "error TOC overflow" add -mminimal-toc to
11822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11825 archive_cmds_CXX=''
11826 hardcode_direct_CXX=yes
11827 hardcode_direct_absolute_CXX=yes
11828 hardcode_libdir_separator_CXX=':'
11829 link_all_deplibs_CXX=yes
11830 file_list_spec_CXX='${wl}-f,'
11832 if test "$GXX" = yes; then
11833 case $host_os in aix4.[012]|aix4.[012].*)
11834 # We only want to do this on AIX 4.2 and lower, the check
11835 # below for broken collect2 doesn't work under 4.3+
11836 collect2name=`${CC} -print-prog-name=collect2`
11837 if test -f "$collect2name" &&
11838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11840 # We have reworked collect2
11843 # We have old collect2
11844 hardcode_direct_CXX=unsupported
11845 # It fails to find uninstalled libraries when the uninstalled
11846 # path is not listed in the libpath. Setting hardcode_minus_L
11847 # to unsupported forces relinking
11848 hardcode_minus_L_CXX=yes
11849 hardcode_libdir_flag_spec_CXX='-L$libdir'
11850 hardcode_libdir_separator_CXX=
11853 shared_flag='-shared'
11854 if test "$aix_use_runtimelinking" = yes; then
11855 shared_flag="$shared_flag "'${wl}-G'
11859 if test "$host_cpu" = ia64; then
11860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11861 # chokes on -Wl,-G. The following line is correct:
11864 if test "$aix_use_runtimelinking" = yes; then
11865 shared_flag='${wl}-G'
11867 shared_flag='${wl}-bM:SRE'
11872 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11873 # It seems that -bexpall does not export symbols beginning with
11874 # underscore (_), so it is better to generate a list of symbols to
11876 always_export_symbols_CXX=yes
11877 if test "$aix_use_runtimelinking" = yes; then
11878 # Warning - without using the other runtime loading flags (-brtl),
11879 # -berok will link without error, but may produce a broken library.
11880 allow_undefined_flag_CXX='-berok'
11881 # Determine the default libpath from the value encoded in an empty
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11894 if ac_fn_cxx_try_link "$LINENO"; then :
11896 lt_aix_libpath_sed='
11897 /Import File Strings/,/^$/ {
11903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11904 # Check for a 64-bit object if we didn't find anything.
11905 if test -z "$aix_libpath"; then
11906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11913 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11915 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11917 if test "$host_cpu" = ia64; then
11918 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11919 allow_undefined_flag_CXX="-z nodefs"
11920 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"
11922 # Determine the default libpath from the value encoded in an
11923 # empty executable.
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11935 if ac_fn_cxx_try_link "$LINENO"; then :
11937 lt_aix_libpath_sed='
11938 /Import File Strings/,/^$/ {
11944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11945 # Check for a 64-bit object if we didn't find anything.
11946 if test -z "$aix_libpath"; then
11947 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11954 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11955 # Warning - without using the other run time loading flags,
11956 # -berok will link without error, but may produce a broken library.
11957 no_undefined_flag_CXX=' ${wl}-bernotok'
11958 allow_undefined_flag_CXX=' ${wl}-berok'
11959 # Exported symbols can be pulled into shared objects from archives
11960 whole_archive_flag_spec_CXX='$convenience'
11961 archive_cmds_need_lc_CXX=yes
11962 # This is similar to how AIX traditionally builds its shared
11964 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'
11970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11971 allow_undefined_flag_CXX=unsupported
11972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11973 # support --undefined. This deserves some investigation. FIXME
11974 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11981 case $cc_basename in
11983 # FIXME: insert proper C++ library support
11989 cygwin* | mingw* | pw32* | cegcc*)
11990 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11991 # as there is no search path for DLLs.
11992 hardcode_libdir_flag_spec_CXX='-L$libdir'
11993 allow_undefined_flag_CXX=unsupported
11994 always_export_symbols_CXX=no
11995 enable_shared_with_static_runtimes_CXX=yes
11997 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11998 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'
11999 # If the export-symbols file already is a .def file (1st line
12000 # is EXPORTS), use it as is; otherwise, prepend...
12001 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12002 cp $export_symbols $output_objdir/$soname.def;
12004 echo EXPORTS > $output_objdir/$soname.def;
12005 cat $export_symbols >> $output_objdir/$soname.def;
12007 $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'
12012 darwin* | rhapsody*)
12015 archive_cmds_need_lc_CXX=no
12016 hardcode_direct_CXX=no
12017 hardcode_automatic_CXX=yes
12018 hardcode_shlibpath_var_CXX=unsupported
12019 whole_archive_flag_spec_CXX=''
12020 link_all_deplibs_CXX=yes
12021 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12022 case $cc_basename in
12023 ifort*) _lt_dar_can_shared=yes ;;
12024 *) _lt_dar_can_shared=$GCC ;;
12026 if test "$_lt_dar_can_shared" = "yes"; then
12027 output_verbose_link_cmd=echo
12028 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}"
12029 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12030 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}"
12031 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}"
12032 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12033 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}"
12034 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}"
12044 case $cc_basename in
12046 # FIXME: insert proper C++ library support
12050 # Green Hills C++ Compiler
12051 # FIXME: insert proper C++ library support
12055 # FIXME: insert proper C++ library support
12062 # C++ shared libraries reported to be fairly broken before
12068 archive_cmds_need_lc_CXX=no
12071 freebsd* | dragonfly*)
12072 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12082 hardcode_libdir_separator_CXX=:
12083 export_dynamic_flag_spec_CXX='${wl}-E'
12084 hardcode_direct_CXX=yes
12085 hardcode_minus_L_CXX=yes # Not in the search PATH,
12086 # but as the default
12087 # location of the library.
12089 case $cc_basename in
12091 # FIXME: insert proper C++ library support
12095 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'
12096 # Commands to make compiler produce verbose output that lists
12097 # what "hidden" libraries, object files and flags are used when
12098 # linking a shared library.
12100 # There doesn't appear to be a way to prevent this compiler from
12101 # explicitly linking system object files so we need to strip them
12102 # from the output so that they don't get included in the library
12104 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; $ECHO "X$list" | $Xsed'
12107 if test "$GXX" = yes; then
12108 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'
12110 # FIXME: insert proper C++ library support
12118 if test $with_gnu_ld = no; then
12119 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12120 hardcode_libdir_separator_CXX=:
12126 export_dynamic_flag_spec_CXX='${wl}-E'
12132 hardcode_direct_CXX=no
12133 hardcode_shlibpath_var_CXX=no
12136 hardcode_direct_CXX=yes
12137 hardcode_direct_absolute_CXX=yes
12138 hardcode_minus_L_CXX=yes # Not in the search PATH,
12139 # but as the default
12140 # location of the library.
12144 case $cc_basename in
12146 # FIXME: insert proper C++ library support
12152 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12155 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12158 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12161 # Commands to make compiler produce verbose output that lists
12162 # what "hidden" libraries, object files and flags are used when
12163 # linking a shared library.
12165 # There doesn't appear to be a way to prevent this compiler from
12166 # explicitly linking system object files so we need to strip them
12167 # from the output so that they don't get included in the library
12169 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12172 if test "$GXX" = yes; then
12173 if test $with_gnu_ld = no; then
12176 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12179 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12182 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'
12187 # FIXME: insert proper C++ library support
12195 hardcode_direct_CXX=no
12196 hardcode_shlibpath_var_CXX=no
12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198 export_dynamic_flag_spec_CXX='${wl}-E'
12199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12200 # Instead, shared libraries are loaded at an image base (0x10000000 by
12201 # default) and relocated if they conflict, which is a slow very memory
12202 # consuming and fragmenting process. To avoid this, we pick a random,
12203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12205 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'
12206 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'
12209 case $cc_basename in
12212 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12214 # Archives containing C++ object files must be created using
12215 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12216 # necessary to make sure instantiated templates are included
12218 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12221 if test "$GXX" = yes; then
12222 if test "$with_gnu_ld" = no; then
12223 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12228 link_all_deplibs_CXX=yes
12231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12232 hardcode_libdir_separator_CXX=:
12233 inherit_rpath_CXX=yes
12236 linux* | k*bsd*-gnu)
12237 case $cc_basename in
12239 # Kuck and Associates, Inc. (KAI) C++ Compiler
12241 # KCC will only create a shared library if the output file
12242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12243 # to its proper name (with version) after linking.
12244 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'
12245 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'
12246 # Commands to make compiler produce verbose output that lists
12247 # what "hidden" libraries, object files and flags are used when
12248 # linking a shared library.
12250 # There doesn't appear to be a way to prevent this compiler from
12251 # explicitly linking system object files so we need to strip them
12252 # from the output so that they don't get included in the library
12254 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12259 # Archives containing C++ object files must be created using
12260 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12261 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12266 # version 8.0 and above of icpc choke on multiply defined symbols
12267 # if we add $predep_objects and $postdep_objects, however 7.1 and
12268 # earlier do not add the objects themselves.
12269 case `$CC -V 2>&1` in
12271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 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'
12274 *) # Version 8.0 or newer
12277 ia64*) tmp_idyn=' -i_dynamic';;
12279 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 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'
12283 archive_cmds_need_lc_CXX=no
12284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12286 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12289 # Portland Group C++ compiler
12291 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12292 prelink_cmds_CXX='tpldir=Template.dir~
12294 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12295 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12296 old_archive_cmds_CXX='tpldir=Template.dir~
12298 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12299 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12301 archive_cmds_CXX='tpldir=Template.dir~
12303 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12304 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12305 archive_expsym_cmds_CXX='tpldir=Template.dir~
12307 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12308 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12310 *) # Version 6 will use weak symbols
12311 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12312 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'
12316 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12318 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12323 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'
12325 runpath_var=LD_RUN_PATH
12326 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12327 hardcode_libdir_separator_CXX=:
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12333 # There doesn't appear to be a way to prevent this compiler from
12334 # explicitly linking system object files so we need to strip them
12335 # from the output so that they don't get included in the library
12337 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12340 # IBM XL 8.0 on PPC, with GNU ld
12341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12343 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344 if test "x$supports_anon_versioning" = xyes; then
12345 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12347 echo "local: *; };" >> $output_objdir/$libname.ver~
12348 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12352 case `$CC -V 2>&1 | sed 5q` in
12355 no_undefined_flag_CXX=' -zdefs'
12356 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12357 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'
12358 hardcode_libdir_flag_spec_CXX='-R$libdir'
12359 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12360 compiler_needs_object_CXX=yes
12362 # Not sure whether something based on
12363 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12365 output_verbose_link_cmd='echo'
12367 # Archives containing C++ object files must be created using
12368 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12369 # necessary to make sure instantiated templates are included
12371 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12379 # FIXME: insert proper C++ library support
12384 # FIXME: insert proper C++ library support
12389 case $cc_basename in
12391 # FIXME: insert proper C++ library support
12395 # FIXME: insert proper C++ library support
12402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12403 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12405 hardcode_libdir_flag_spec_CXX='-R$libdir'
12406 hardcode_direct_CXX=yes
12407 hardcode_shlibpath_var_CXX=no
12409 # Workaround some broken pre-1.5 toolchains
12410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12418 # C++ shared libraries are fairly broken
12423 if test -f /usr/libexec/ld.so; then
12424 hardcode_direct_CXX=yes
12425 hardcode_shlibpath_var_CXX=no
12426 hardcode_direct_absolute_CXX=yes
12427 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12430 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12431 export_dynamic_flag_spec_CXX='${wl}-E'
12432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12434 output_verbose_link_cmd=echo
12440 osf3* | osf4* | osf5*)
12441 case $cc_basename in
12443 # Kuck and Associates, Inc. (KAI) C++ Compiler
12445 # KCC will only create a shared library if the output file
12446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12447 # to its proper name (with version) after linking.
12448 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'
12450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12451 hardcode_libdir_separator_CXX=:
12453 # Archives containing C++ object files must be created using
12454 # the KAI C++ compiler.
12456 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12457 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12461 # Rational C++ 2.4.1
12462 # FIXME: insert proper C++ library support
12468 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12469 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12473 allow_undefined_flag_CXX=' -expect_unresolved \*'
12474 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12475 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12476 echo "-hidden">> $lib.exp~
12477 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12479 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12483 hardcode_libdir_separator_CXX=:
12485 # Commands to make compiler produce verbose output that lists
12486 # what "hidden" libraries, object files and flags are used when
12487 # linking a shared library.
12489 # There doesn't appear to be a way to prevent this compiler from
12490 # explicitly linking system object files so we need to strip them
12491 # from the output so that they don't get included in the library
12493 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12496 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12497 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12500 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12503 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12508 hardcode_libdir_separator_CXX=:
12510 # Commands to make compiler produce verbose output that lists
12511 # what "hidden" libraries, object files and flags are used when
12512 # linking a shared library.
12513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12516 # FIXME: insert proper C++ library support
12524 # FIXME: insert proper C++ library support
12529 case $cc_basename in
12532 # FIXME: insert proper C++ library support
12537 # FIXME: insert proper C++ library support
12541 # FIXME: insert proper C++ library support
12548 case $cc_basename in
12550 # Sun C++ 4.2, 5.x and Centerline C++
12551 archive_cmds_need_lc_CXX=yes
12552 no_undefined_flag_CXX=' -zdefs'
12553 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12554 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12555 $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'
12557 hardcode_libdir_flag_spec_CXX='-R$libdir'
12558 hardcode_shlibpath_var_CXX=no
12560 solaris2.[0-5] | solaris2.[0-5].*) ;;
12562 # The compiler driver will combine and reorder linker options,
12563 # but understands `-z linker_flag'.
12564 # Supported since Solaris 2.6 (maybe 2.5.1?)
12565 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12568 link_all_deplibs_CXX=yes
12570 output_verbose_link_cmd='echo'
12572 # Archives containing C++ object files must be created using
12573 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12574 # necessary to make sure instantiated templates are included
12576 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12579 # Green Hills C++ Compiler
12580 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12582 # The C++ compiler must be used to create the archive.
12583 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12586 # GNU C++ compiler with Solaris linker
12587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12588 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12589 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12590 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12592 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12594 # Commands to make compiler produce verbose output that lists
12595 # what "hidden" libraries, object files and flags are used when
12596 # linking a shared library.
12597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12599 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12601 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12603 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12605 # Commands to make compiler produce verbose output that lists
12606 # what "hidden" libraries, object files and flags are used when
12607 # linking a shared library.
12608 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12611 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12613 solaris2.[0-5] | solaris2.[0-5].*) ;;
12615 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12623 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12624 no_undefined_flag_CXX='${wl}-z,text'
12625 archive_cmds_need_lc_CXX=no
12626 hardcode_shlibpath_var_CXX=no
12627 runpath_var='LD_RUN_PATH'
12629 case $cc_basename in
12631 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12632 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12635 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12636 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641 sysv5* | sco3.2v5* | sco5v6*)
12642 # Note: We can NOT use -z defs as we might desire, because we do not
12643 # link with -lc, and that would cause any symbols used from libc to
12644 # always be unresolved, which means just about no library would
12645 # ever link correctly. If we're not using GNU ld we use -z text
12646 # though, which does catch some bad symbols but isn't as heavy-handed
12648 no_undefined_flag_CXX='${wl}-z,text'
12649 allow_undefined_flag_CXX='${wl}-z,nodefs'
12650 archive_cmds_need_lc_CXX=no
12651 hardcode_shlibpath_var_CXX=no
12652 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12653 hardcode_libdir_separator_CXX=':'
12654 link_all_deplibs_CXX=yes
12655 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12656 runpath_var='LD_RUN_PATH'
12658 case $cc_basename in
12660 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671 case $cc_basename in
12673 # NonStop-UX NCC 3.20
12674 # FIXME: insert proper C++ library support
12678 # FIXME: insert proper C++ library support
12685 # FIXME: insert proper C++ library support
12690 # FIXME: insert proper C++ library support
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12696 $as_echo "$ld_shlibs_CXX" >&6; }
12697 test "$ld_shlibs_CXX" = no && can_build_shared=no
12703 ## There is no encapsulation within the following macros, do not change
12704 ## the running order or otherwise move them around unless you know exactly
12705 ## what you are doing...
12706 # Dependencies to place before and after the object being linked:
12707 predep_objects_CXX=
12708 postdep_objects_CXX=
12711 compiler_lib_search_path_CXX=
12713 cat > conftest.$ac_ext <<_LT_EOF
12717 Foo (void) { a = 0; }
12723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12724 (eval $ac_compile) 2>&5
12726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727 test $ac_status = 0; }; then
12728 # Parse the compiler output and extract the necessary
12729 # objects, libraries and library flags.
12731 # Sentinel used to keep track of whether or not we are before
12732 # the conftest object file.
12733 pre_test_object_deps_done=no
12735 for p in `eval "$output_verbose_link_cmd"`; do
12739 # Some compilers place space between "-{L,R}" and the path.
12740 # Remove the space.
12741 if test $p = "-L" ||
12742 test $p = "-R"; then
12749 if test "$pre_test_object_deps_done" = no; then
12752 # Internal compiler library paths should come after those
12753 # provided the user. The postdeps already come after the
12754 # user supplied libs so there is no need to process them.
12755 if test -z "$compiler_lib_search_path_CXX"; then
12756 compiler_lib_search_path_CXX="${prev}${p}"
12758 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12761 # The "-l" case would never come before the object being
12762 # linked, so don't bother handling this case.
12765 if test -z "$postdeps_CXX"; then
12766 postdeps_CXX="${prev}${p}"
12768 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12774 # This assumes that the test object file only shows up
12775 # once in the compiler output.
12776 if test "$p" = "conftest.$objext"; then
12777 pre_test_object_deps_done=yes
12781 if test "$pre_test_object_deps_done" = no; then
12782 if test -z "$predep_objects_CXX"; then
12783 predep_objects_CXX="$p"
12785 predep_objects_CXX="$predep_objects_CXX $p"
12788 if test -z "$postdep_objects_CXX"; then
12789 postdep_objects_CXX="$p"
12791 postdep_objects_CXX="$postdep_objects_CXX $p"
12796 *) ;; # Ignore the rest.
12804 echo "libtool.m4: error: problem compiling CXX test program"
12807 $RM -f confest.$objext
12809 # PORTME: override above test on systems where it is broken
12812 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12813 # hack all around it, let's just trust "g++" to DTRT.
12814 predep_objects_CXX=
12815 postdep_objects_CXX=
12820 case `$CC -V 2>&1 | sed 5q` in
12824 # The more standards-conforming stlport4 library is
12825 # incompatible with the Cstd library. Avoid specifying
12826 # it if it's in CXXFLAGS. Ignore libCrun as
12827 # -library=stlport4 depends on it.
12828 case " $CXX $CXXFLAGS " in
12829 *" -library=stlport4 "*)
12830 solaris_use_stlport4=yes
12834 if test "$solaris_use_stlport4" != yes; then
12835 postdeps_CXX='-library=Cstd -library=Crun'
12842 case $cc_basename in
12844 # The more standards-conforming stlport4 library is
12845 # incompatible with the Cstd library. Avoid specifying
12846 # it if it's in CXXFLAGS. Ignore libCrun as
12847 # -library=stlport4 depends on it.
12848 case " $CXX $CXXFLAGS " in
12849 *" -library=stlport4 "*)
12850 solaris_use_stlport4=yes
12854 # Adding this requires a known-good setup of shared libraries for
12855 # Sun compiler versions before 5.6, else PIC objects from an old
12856 # archive will be linked into the output, leading to subtle bugs.
12857 if test "$solaris_use_stlport4" != yes; then
12858 postdeps_CXX='-library=Cstd -library=Crun'
12866 case " $postdeps_CXX " in
12867 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12869 compiler_lib_search_dirs_CXX=
12870 if test -n "${compiler_lib_search_path_CXX}"; then
12871 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12904 lt_prog_compiler_wl_CXX=
12905 lt_prog_compiler_pic_CXX=
12906 lt_prog_compiler_static_CXX=
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12911 # C++ specific cases for pic, static, wl, etc.
12912 if test "$GXX" = yes; then
12913 lt_prog_compiler_wl_CXX='-Wl,'
12914 lt_prog_compiler_static_CXX='-static'
12918 # All AIX code is PIC.
12919 if test "$host_cpu" = ia64; then
12920 # AIX 5 now supports IA64 processor
12921 lt_prog_compiler_static_CXX='-Bstatic'
12928 # see comment about AmigaOS4 .so support
12929 lt_prog_compiler_pic_CXX='-fPIC'
12932 # FIXME: we need at least 68020 code to build shared libraries, but
12933 # adding the `-m68020' flag to GCC prevents building anything better,
12935 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12940 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12941 # PIC is the default for these OSes.
12943 mingw* | cygwin* | os2* | pw32* | cegcc*)
12944 # This hack is so that the source file can tell whether it is being
12945 # built for inclusion in a dll (and should export symbols for example).
12946 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12947 # (--disable-auto-import) libraries
12948 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12950 darwin* | rhapsody*)
12951 # PIC is the default on this platform
12952 # Common symbols not allowed in MH_DYLIB files
12953 lt_prog_compiler_pic_CXX='-fno-common'
12956 # DJGPP does not support shared libraries at all
12957 lt_prog_compiler_pic_CXX=
12960 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12961 # Instead, we relocate shared libraries at runtime.
12964 if test -d /usr/nec; then
12965 lt_prog_compiler_pic_CXX=-Kconform_pic
12969 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12970 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12971 # sets the default TLS model and affects inlining.
12976 lt_prog_compiler_pic_CXX='-fPIC'
12981 # QNX uses GNU C++, but need to define -shared option too, otherwise
12982 # it will coredump.
12983 lt_prog_compiler_pic_CXX='-fPIC -shared'
12986 lt_prog_compiler_pic_CXX='-fPIC'
12992 # All AIX code is PIC.
12993 if test "$host_cpu" = ia64; then
12994 # AIX 5 now supports IA64 processor
12995 lt_prog_compiler_static_CXX='-Bstatic'
12997 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13001 case $cc_basename in
13003 # Green Hills C++ Compiler
13004 # _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"
13009 case $cc_basename in
13011 lt_prog_compiler_pic_CXX='-KPIC'
13014 # Green Hills C++ Compiler
13015 lt_prog_compiler_pic_CXX='-pic'
13021 freebsd* | dragonfly*)
13022 # FreeBSD uses GNU C++
13024 hpux9* | hpux10* | hpux11*)
13025 case $cc_basename in
13027 lt_prog_compiler_wl_CXX='-Wl,'
13028 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13029 if test "$host_cpu" != ia64; then
13030 lt_prog_compiler_pic_CXX='+Z'
13034 lt_prog_compiler_wl_CXX='-Wl,'
13035 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13041 lt_prog_compiler_pic_CXX='+Z'
13050 # This is c89, which is MS Visual C++ (no shared libs)
13051 # Anyone wants to do a port?
13053 irix5* | irix6* | nonstopux*)
13054 case $cc_basename in
13056 lt_prog_compiler_wl_CXX='-Wl,'
13057 lt_prog_compiler_static_CXX='-non_shared'
13058 # CC pic flag -KPIC is the default.
13064 linux* | k*bsd*-gnu)
13065 case $cc_basename in
13068 lt_prog_compiler_wl_CXX='--backend -Wl,'
13069 lt_prog_compiler_pic_CXX='-fPIC'
13072 # old Intel C++ for x86_64 which still supported -KPIC.
13073 lt_prog_compiler_wl_CXX='-Wl,'
13074 lt_prog_compiler_pic_CXX='-KPIC'
13075 lt_prog_compiler_static_CXX='-static'
13078 # Intel C++, used to be incompatible with GCC.
13079 # ICC 10 doesn't accept -KPIC any more.
13080 lt_prog_compiler_wl_CXX='-Wl,'
13081 lt_prog_compiler_pic_CXX='-fPIC'
13082 lt_prog_compiler_static_CXX='-static'
13085 # Portland Group C++ compiler
13086 lt_prog_compiler_wl_CXX='-Wl,'
13087 lt_prog_compiler_pic_CXX='-fpic'
13088 lt_prog_compiler_static_CXX='-Bstatic'
13092 # Make sure the PIC flag is empty. It appears that all Alpha
13093 # Linux and Compaq Tru64 Unix objects are PIC.
13094 lt_prog_compiler_pic_CXX=
13095 lt_prog_compiler_static_CXX='-non_shared'
13098 # IBM XL 8.0 on PPC
13099 lt_prog_compiler_wl_CXX='-Wl,'
13100 lt_prog_compiler_pic_CXX='-qpic'
13101 lt_prog_compiler_static_CXX='-qstaticlink'
13104 case `$CC -V 2>&1 | sed 5q` in
13107 lt_prog_compiler_pic_CXX='-KPIC'
13108 lt_prog_compiler_static_CXX='-Bstatic'
13109 lt_prog_compiler_wl_CXX='-Qoption ld '
13120 case $cc_basename in
13122 lt_prog_compiler_pic_CXX='-W c,exportall'
13128 netbsd* | netbsdelf*-gnu)
13131 # QNX uses GNU C++, but need to define -shared option too, otherwise
13132 # it will coredump.
13133 lt_prog_compiler_pic_CXX='-fPIC -shared'
13135 osf3* | osf4* | osf5*)
13136 case $cc_basename in
13138 lt_prog_compiler_wl_CXX='--backend -Wl,'
13141 # Rational C++ 2.4.1
13142 lt_prog_compiler_pic_CXX='-pic'
13145 # Digital/Compaq C++
13146 lt_prog_compiler_wl_CXX='-Wl,'
13147 # Make sure the PIC flag is empty. It appears that all Alpha
13148 # Linux and Compaq Tru64 Unix objects are PIC.
13149 lt_prog_compiler_pic_CXX=
13150 lt_prog_compiler_static_CXX='-non_shared'
13159 case $cc_basename in
13161 # Sun C++ 4.2, 5.x and Centerline C++
13162 lt_prog_compiler_pic_CXX='-KPIC'
13163 lt_prog_compiler_static_CXX='-Bstatic'
13164 lt_prog_compiler_wl_CXX='-Qoption ld '
13167 # Green Hills C++ Compiler
13168 lt_prog_compiler_pic_CXX='-PIC'
13175 case $cc_basename in
13178 lt_prog_compiler_pic_CXX='-pic'
13179 lt_prog_compiler_static_CXX='-Bstatic'
13183 lt_prog_compiler_pic_CXX='-pic'
13189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13190 case $cc_basename in
13192 lt_prog_compiler_wl_CXX='-Wl,'
13193 lt_prog_compiler_pic_CXX='-KPIC'
13194 lt_prog_compiler_static_CXX='-Bstatic'
13199 case $cc_basename in
13201 # NonStop-UX NCC 3.20
13202 lt_prog_compiler_pic_CXX='-KPIC'
13211 lt_prog_compiler_can_build_shared_CXX=no
13217 # For platforms which do not support PIC, -DPIC is meaningless:
13219 lt_prog_compiler_pic_CXX=
13222 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13226 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13231 # Check to make sure the PIC flag actually works.
13233 if test -n "$lt_prog_compiler_pic_CXX"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13235 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13236 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13239 lt_cv_prog_compiler_pic_works_CXX=no
13240 ac_outfile=conftest.$ac_objext
13241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13242 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13243 # Insert the option either (1) after the last *FLAGS variable, or
13244 # (2) before a word containing "conftest.", or (3) at the end.
13245 # Note that $ac_compile itself does not contain backslashes and begins
13246 # with a dollar sign (not a hyphen), so the echo should work correctly.
13247 # The option is referenced via a variable to avoid confusing sed.
13248 lt_compile=`echo "$ac_compile" | $SED \
13249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13251 -e 's:$: $lt_compiler_flag:'`
13252 (eval echo "\"\$as_me:13252: $lt_compile\"" >&5)
13253 (eval "$lt_compile" 2>conftest.err)
13255 cat conftest.err >&5
13256 echo "$as_me:13256: \$? = $ac_status" >&5
13257 if (exit $ac_status) && test -s "$ac_outfile"; then
13258 # The compiler can only warn and ignore the option if not recognized
13259 # So say no if there are warnings other than the usual output.
13260 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13263 lt_cv_prog_compiler_pic_works_CXX=yes
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13270 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13272 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13273 case $lt_prog_compiler_pic_CXX in
13275 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13278 lt_prog_compiler_pic_CXX=
13279 lt_prog_compiler_can_build_shared_CXX=no
13287 # Check to make sure the static flag actually works.
13289 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13291 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13292 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13295 lt_cv_prog_compiler_static_works_CXX=no
13296 save_LDFLAGS="$LDFLAGS"
13297 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13298 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13300 # The linker can only warn and ignore the option if not recognized
13301 # So say no if there are warnings
13302 if test -s conftest.err; then
13303 # Append any errors to the config.log.
13304 cat conftest.err 1>&5
13305 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13307 if diff conftest.exp conftest.er2 >/dev/null; then
13308 lt_cv_prog_compiler_static_works_CXX=yes
13311 lt_cv_prog_compiler_static_works_CXX=yes
13315 LDFLAGS="$save_LDFLAGS"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13319 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13321 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13324 lt_prog_compiler_static_CXX=
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13331 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13332 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13335 lt_cv_prog_compiler_c_o_CXX=no
13336 $RM -r conftest 2>/dev/null
13340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13342 lt_compiler_flag="-o out/conftest2.$ac_objext"
13343 # Insert the option either (1) after the last *FLAGS variable, or
13344 # (2) before a word containing "conftest.", or (3) at the end.
13345 # Note that $ac_compile itself does not contain backslashes and begins
13346 # with a dollar sign (not a hyphen), so the echo should work correctly.
13347 lt_compile=`echo "$ac_compile" | $SED \
13348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13350 -e 's:$: $lt_compiler_flag:'`
13351 (eval echo "\"\$as_me:13351: $lt_compile\"" >&5)
13352 (eval "$lt_compile" 2>out/conftest.err)
13354 cat out/conftest.err >&5
13355 echo "$as_me:13355: \$? = $ac_status" >&5
13356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13358 # The compiler can only warn and ignore the option if not recognized
13359 # So say no if there are warnings
13360 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13363 lt_cv_prog_compiler_c_o_CXX=yes
13368 # SGI C++ compiler will create directory out/ii_files/ for
13369 # template instantiation
13370 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13371 $RM out/* && rmdir out
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13378 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13384 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13387 lt_cv_prog_compiler_c_o_CXX=no
13388 $RM -r conftest 2>/dev/null
13392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13394 lt_compiler_flag="-o out/conftest2.$ac_objext"
13395 # Insert the option either (1) after the last *FLAGS variable, or
13396 # (2) before a word containing "conftest.", or (3) at the end.
13397 # Note that $ac_compile itself does not contain backslashes and begins
13398 # with a dollar sign (not a hyphen), so the echo should work correctly.
13399 lt_compile=`echo "$ac_compile" | $SED \
13400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13402 -e 's:$: $lt_compiler_flag:'`
13403 (eval echo "\"\$as_me:13403: $lt_compile\"" >&5)
13404 (eval "$lt_compile" 2>out/conftest.err)
13406 cat out/conftest.err >&5
13407 echo "$as_me:13407: \$? = $ac_status" >&5
13408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13410 # The compiler can only warn and ignore the option if not recognized
13411 # So say no if there are warnings
13412 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13415 lt_cv_prog_compiler_c_o_CXX=yes
13420 # SGI C++ compiler will create directory out/ii_files/ for
13421 # template instantiation
13422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13423 $RM out/* && rmdir out
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13430 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13435 hard_links="nottested"
13436 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13437 # do not overwrite the value of need_locks provided by the user
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13439 $as_echo_n "checking if we can lock with hard links... " >&6; }
13442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13444 ln conftest.a conftest.b 2>&5 || hard_links=no
13445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13447 $as_echo "$hard_links" >&6; }
13448 if test "$hard_links" = no; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13450 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13462 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13465 # If we're using GNU nm, then we don't want the "-C" option.
13466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13468 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13470 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'
13474 export_symbols_cmds_CXX="$ltdll_cmds"
13476 cygwin* | mingw* | cegcc*)
13477 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'
13479 linux* | k*bsd*-gnu)
13480 link_all_deplibs_CXX=no
13483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13486 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13489 $as_echo "$ld_shlibs_CXX" >&6; }
13490 test "$ld_shlibs_CXX" = no && can_build_shared=no
13492 with_gnu_ld_CXX=$with_gnu_ld
13500 # Do we need to explicitly link libc?
13502 case "x$archive_cmds_need_lc_CXX" in
13504 # Assume -lc should be added
13505 archive_cmds_need_lc_CXX=yes
13507 if test "$enable_shared" = yes && test "$GCC" = yes; then
13508 case $archive_cmds_CXX in
13510 # FIXME: we may have to deal with multi-command sequences.
13513 # Test whether the compiler implicitly links with -lc since on some
13514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13515 # to ld, don't add -lc before -lgcc.
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13517 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13522 (eval $ac_compile) 2>&5
13524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525 test $ac_status = 0; } 2>conftest.err; then
13528 libobjs=conftest.$ac_objext
13530 wl=$lt_prog_compiler_wl_CXX
13531 pic_flag=$lt_prog_compiler_pic_CXX
13537 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13538 allow_undefined_flag_CXX=
13539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13540 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13543 test $ac_status = 0; }
13545 archive_cmds_need_lc_CXX=no
13547 archive_cmds_need_lc_CXX=yes
13549 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13551 cat conftest.err 1>&5
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13555 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13626 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13628 library_names_spec=
13629 libname_spec='lib$name'
13633 postuninstall_cmds=
13637 shlibpath_overrides_runpath=unknown
13639 dynamic_linker="$host_os ld.so"
13640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13641 need_lib_prefix=unknown
13642 hardcode_into_libs=no
13644 # when you set need_version to no, make sure it does not cause -set_version
13645 # flags to be left without arguments
13646 need_version=unknown
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13652 shlibpath_var=LIBPATH
13654 # AIX 3 has no versioning support, so we append a major version to the name.
13655 soname_spec='${libname}${release}${shared_ext}$major'
13662 hardcode_into_libs=yes
13663 if test "$host_cpu" = ia64; then
13664 # AIX 5 supports IA64
13665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13666 shlibpath_var=LD_LIBRARY_PATH
13668 # With GCC up to 2.95.x, collect2 would create an import file
13669 # for dependence libraries. The import file would start with
13670 # the line `#! .'. This would cause the generated library to
13671 # depend on `.', always an invalid library. This was fixed in
13672 # development snapshots of GCC prior to 3.0.
13674 aix4 | aix4.[01] | aix4.[01].*)
13675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13677 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13680 can_build_shared=no
13684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13685 # soname into executable. Probably we can add versioning support to
13686 # collect2, so additional links can be useful in future.
13687 if test "$aix_use_runtimelinking" = yes; then
13688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13689 # instead of lib<name>.a to let people know that these are not
13690 # typical AIX shared libraries.
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693 # We preserve .a as extension for shared libraries through AIX4.2
13694 # and later when we are not doing run time linking.
13695 library_names_spec='${libname}${release}.a $libname.a'
13696 soname_spec='${libname}${release}${shared_ext}$major'
13698 shlibpath_var=LIBPATH
13705 # Since July 2007 AmigaOS4 officially supports .so libraries.
13706 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710 library_names_spec='$libname.ixlibrary $libname.a'
13711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13712 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13718 library_names_spec='${libname}${shared_ext}'
13719 dynamic_linker="$host_os ld.so"
13720 shlibpath_var=LIBRARY_PATH
13726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13727 soname_spec='${libname}${release}${shared_ext}$major'
13728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13729 shlibpath_var=LD_LIBRARY_PATH
13730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13732 # the default ld.so.conf also contains /usr/contrib/lib and
13733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13734 # libtool to hard-code these into programs
13737 cygwin* | mingw* | pw32* | cegcc*)
13738 version_type=windows
13743 case $GCC,$host_os in
13744 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13745 library_names_spec='$libname.dll.a'
13746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13747 postinstall_cmds='base_file=`basename \${file}`~
13748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13749 dldir=$destdir/`dirname \$dlpath`~
13750 test -d \$dldir || mkdir -p \$dldir~
13751 $install_prog $dir/$dlname \$dldir/$dlname~
13752 chmod a+x \$dldir/$dlname~
13753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13757 dlpath=$dir/\$dldll~
13759 shlibpath_overrides_runpath=yes
13763 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13764 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13765 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13768 # MinGW DLLs use traditional 'lib' prefix
13769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13770 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13771 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13772 # It is most probably a Windows format PATH printed by
13773 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13774 # path with ; separators, and with drive letters. We can handle the
13775 # drive letters (cygwin fileutils understands them), so leave them,
13776 # especially as we might pass files found there to a mingw objdump,
13777 # which wouldn't understand a cygwinified path. Ahh.
13778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13784 # pw32 DLLs use 'pw' prefix rather than 'lib'
13785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13791 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13794 dynamic_linker='Win32 ld.exe'
13795 # FIXME: first we should search . and the directory the executable is in
13799 darwin* | rhapsody*)
13800 dynamic_linker="$host_os dyld"
13801 version_type=darwin
13804 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13805 soname_spec='${libname}${release}${major}$shared_ext'
13806 shlibpath_overrides_runpath=yes
13807 shlibpath_var=DYLD_LIBRARY_PATH
13808 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13818 soname_spec='${libname}${release}${shared_ext}$major'
13819 shlibpath_var=LD_LIBRARY_PATH
13826 freebsd* | dragonfly*)
13827 # DragonFly does not have aout. When/if they implement a new
13828 # versioning mechanism, adjust this.
13829 if test -x /usr/bin/objformat; then
13830 objformat=`/usr/bin/objformat`
13833 freebsd[123]*) objformat=aout ;;
13834 *) objformat=elf ;;
13837 version_type=freebsd-$objformat
13838 case $version_type in
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13849 shlibpath_var=LD_LIBRARY_PATH
13852 shlibpath_overrides_runpath=yes
13854 freebsd3.[01]* | freebsdelf3.[01]*)
13855 shlibpath_overrides_runpath=yes
13856 hardcode_into_libs=yes
13858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13860 shlibpath_overrides_runpath=no
13861 hardcode_into_libs=yes
13863 *) # from 4.6 on, and DragonFly
13864 shlibpath_overrides_runpath=yes
13865 hardcode_into_libs=yes
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13875 soname_spec='${libname}${release}${shared_ext}$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 hardcode_into_libs=yes
13880 hpux9* | hpux10* | hpux11*)
13881 # Give a soname corresponding to the major version so that dld.sl refuses to
13882 # link against other versions.
13889 hardcode_into_libs=yes
13890 dynamic_linker="$host_os dld.so"
13891 shlibpath_var=LD_LIBRARY_PATH
13892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 if test "X$HPUX_IA64_MODE" = X32; then
13896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13904 hardcode_into_libs=yes
13905 dynamic_linker="$host_os dld.sl"
13906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13915 dynamic_linker="$host_os dld.sl"
13916 shlibpath_var=SHLIB_PATH
13917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13922 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13923 postinstall_cmds='chmod 555 $lib'
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 shlibpath_overrides_runpath=no
13935 hardcode_into_libs=yes
13938 irix5* | irix6* | nonstopux*)
13940 nonstopux*) version_type=nonstopux ;;
13942 if test "$lt_cv_prog_gnu_ld" = yes; then
13950 soname_spec='${libname}${release}${shared_ext}$major'
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13953 irix5* | nonstopux*)
13954 libsuff= shlibsuff=
13957 case $LD in # libtool.m4 will add one of these switches to LD
13958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13959 libsuff= shlibsuff= libmagic=32-bit;;
13960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13961 libsuff=32 shlibsuff=N32 libmagic=N32;;
13962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13964 *) libsuff= shlibsuff= libmagic=never-match;;
13968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13969 shlibpath_overrides_runpath=no
13970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13972 hardcode_into_libs=yes
13975 # No shared lib support for Linux oldld, aout, or coff.
13976 linux*oldld* | linux*aout* | linux*coff*)
13980 # This must be Linux ELF.
13981 linux* | k*bsd*-gnu)
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13986 soname_spec='${libname}${release}${shared_ext}$major'
13987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13988 shlibpath_var=LD_LIBRARY_PATH
13989 shlibpath_overrides_runpath=no
13990 # Some binutils ld are patched to set DT_RUNPATH
13991 save_LDFLAGS=$LDFLAGS
13992 save_libdir=$libdir
13993 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13994 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
14006 if ac_fn_cxx_try_link "$LINENO"; then :
14007 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14008 shlibpath_overrides_runpath=yes
14011 rm -f core conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14013 LDFLAGS=$save_LDFLAGS
14014 libdir=$save_libdir
14016 # This implies no fast_install, which is unacceptable.
14017 # Some rework will be needed to allow for fast_install
14018 # before this can be enabled.
14019 hardcode_into_libs=yes
14021 # Append ld.so.conf contents to the search path
14022 if test -f /etc/ld.so.conf; then
14023 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14024 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14027 # We used to test for /lib/ld.so.1 and disable shared libraries on
14028 # powerpc, because MkLinux only supported shared libraries with the
14029 # GNU dynamic linker. Since this was broken with cross compilers,
14030 # most powerpc-linux boxes support dynamic linking these days and
14031 # people can always --disable-shared, the test was removed, and we
14032 # assume the GNU/Linux dynamic linker is in use.
14033 dynamic_linker='GNU/Linux ld.so'
14040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14041 soname_spec='${libname}${release}${shared_ext}$major'
14042 shlibpath_var=LD_LIBRARY_PATH
14043 shlibpath_overrides_runpath=no
14044 hardcode_into_libs=yes
14045 dynamic_linker='NetBSD ld.elf_so'
14052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14055 dynamic_linker='NetBSD (a.out) ld.so'
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 dynamic_linker='NetBSD ld.elf_so'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 shlibpath_overrides_runpath=yes
14063 hardcode_into_libs=yes
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 shlibpath_overrides_runpath=yes
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078 soname_spec='${libname}${release}${shared_ext}$major'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 shlibpath_overrides_runpath=no
14081 hardcode_into_libs=yes
14082 dynamic_linker='ldqnx.so'
14087 sys_lib_dlsearch_path_spec="/usr/lib"
14089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14092 *) need_version=no ;;
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14096 shlibpath_var=LD_LIBRARY_PATH
14097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14099 openbsd2.[89] | openbsd2.[89].*)
14100 shlibpath_overrides_runpath=no
14103 shlibpath_overrides_runpath=yes
14107 shlibpath_overrides_runpath=yes
14112 libname_spec='$name'
14115 library_names_spec='$libname${shared_ext} $libname.a'
14116 dynamic_linker='OS/2 ld.exe'
14117 shlibpath_var=LIBPATH
14120 osf3* | osf4* | osf5*)
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 hardcode_into_libs=yes
14144 # ldd complains unless libraries are executable
14145 postinstall_cmds='chmod +x $lib'
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=yes
14154 if test "$with_gnu_ld" = yes; then
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 case $host_vendor in
14167 shlibpath_overrides_runpath=no
14169 runpath_var=LD_RUN_PATH
14177 shlibpath_overrides_runpath=no
14178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14184 if test -d /usr/nec ;then
14186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14187 soname_spec='$libname${shared_ext}.$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14193 version_type=freebsd-elf
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=yes
14200 hardcode_into_libs=yes
14201 if test "$with_gnu_ld" = yes; then
14202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14207 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14211 sys_lib_dlsearch_path_spec='/usr/lib'
14215 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 shlibpath_overrides_runpath=no
14222 hardcode_into_libs=yes
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LD_LIBRARY_PATH
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14237 $as_echo "$dynamic_linker" >&6; }
14238 test "$dynamic_linker" = no && can_build_shared=no
14240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14241 if test "$GCC" = yes; then
14242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14245 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14246 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14248 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14249 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14289 hardcode_action_CXX=
14290 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14291 test -n "$runpath_var_CXX" ||
14292 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14294 # We can hardcode non-existent directories.
14295 if test "$hardcode_direct_CXX" != no &&
14296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14297 # have to relink, otherwise we might link with an installed library
14298 # when we should be linking with a yet-to-be-installed one
14299 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14300 test "$hardcode_minus_L_CXX" != no; then
14301 # Linking always hardcodes the temporary library directory.
14302 hardcode_action_CXX=relink
14304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14305 hardcode_action_CXX=immediate
14308 # We cannot hardcode anything, or else we can only hardcode existing
14310 hardcode_action_CXX=unsupported
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14313 $as_echo "$hardcode_action_CXX" >&6; }
14315 if test "$hardcode_action_CXX" = relink ||
14316 test "$inherit_rpath_CXX" = yes; then
14317 # Fast installation is not supported
14318 enable_fast_install=no
14319 elif test "$shlibpath_overrides_runpath" = yes ||
14320 test "$enable_shared" = no; then
14321 # Fast installation is not necessary
14322 enable_fast_install=needless
14331 fi # test -n "$compiler"
14337 with_gnu_ld=$lt_save_with_gnu_ld
14338 lt_cv_path_LDCXX=$lt_cv_path_LD
14339 lt_cv_path_LD=$lt_save_path_LD
14340 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14341 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14342 fi # test "$_lt_caught_CXX_error" != yes
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14352 ac_cpp='$CPP $CPPFLAGS'
14353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14356 if test -n "$ac_tool_prefix"; then
14357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if test "${ac_cv_prog_CC+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14364 if test -n "$CC"; then
14365 ac_cv_prog_CC="$CC" # Let the user override the test.
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14385 if test -n "$CC"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14387 $as_echo "$CC" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14395 if test -z "$ac_cv_prog_CC"; then
14397 # Extract the first word of "gcc", so it can be a program name with args.
14398 set dummy gcc; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14400 $as_echo_n "checking for $ac_word... " >&6; }
14401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14404 if test -n "$ac_ct_CC"; then
14405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414 ac_cv_prog_ac_ct_CC="gcc"
14415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14425 if test -n "$ac_ct_CC"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14427 $as_echo "$ac_ct_CC" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14433 if test "x$ac_ct_CC" = x; then
14436 case $cross_compiling:$ac_tool_warned in
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14440 ac_tool_warned=yes ;;
14445 CC="$ac_cv_prog_CC"
14448 if test -z "$CC"; then
14449 if test -n "$ac_tool_prefix"; then
14450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14451 set dummy ${ac_tool_prefix}cc; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if test "${ac_cv_prog_CC+set}" = set; then :
14455 $as_echo_n "(cached) " >&6
14457 if test -n "$CC"; then
14458 ac_cv_prog_CC="$CC" # Let the user override the test.
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14467 ac_cv_prog_CC="${ac_tool_prefix}cc"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14478 if test -n "$CC"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14480 $as_echo "$CC" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14489 if test -z "$CC"; then
14490 # Extract the first word of "cc", so it can be a program name with args.
14491 set dummy cc; ac_word=$2
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493 $as_echo_n "checking for $ac_word... " >&6; }
14494 if test "${ac_cv_prog_CC+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14497 if test -n "$CC"; then
14498 ac_cv_prog_CC="$CC" # Let the user override the test.
14500 ac_prog_rejected=no
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14509 ac_prog_rejected=yes
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14520 if test $ac_prog_rejected = yes; then
14521 # We found a bogon in the path, so make sure we never use it.
14522 set dummy $ac_cv_prog_CC
14524 if test $# != 0; then
14525 # We chose a different compiler from the bogus one.
14526 # However, it has the same basename, so the bogon will be chosen
14527 # first if we set CC to just the basename; use the full file name.
14529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14535 if test -n "$CC"; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14537 $as_echo "$CC" >&6; }
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 $as_echo "no" >&6; }
14545 if test -z "$CC"; then
14546 if test -n "$ac_tool_prefix"; then
14547 for ac_prog in cl.exe
14549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if test "${ac_cv_prog_CC+set}" = set; then :
14554 $as_echo_n "(cached) " >&6
14556 if test -n "$CC"; then
14557 ac_cv_prog_CC="$CC" # Let the user override the test.
14559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14563 test -z "$as_dir" && as_dir=.
14564 for ac_exec_ext in '' $ac_executable_extensions; do
14565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 if test -n "$CC"; then
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14579 $as_echo "$CC" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14586 test -n "$CC" && break
14589 if test -z "$CC"; then
14591 for ac_prog in cl.exe
14593 # Extract the first word of "$ac_prog", so it can be a program name with args.
14594 set dummy $ac_prog; ac_word=$2
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596 $as_echo_n "checking for $ac_word... " >&6; }
14597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14598 $as_echo_n "(cached) " >&6
14600 if test -n "$ac_ct_CC"; then
14601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14607 test -z "$as_dir" && as_dir=.
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14610 ac_cv_prog_ac_ct_CC="$ac_prog"
14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14621 if test -n "$ac_ct_CC"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14623 $as_echo "$ac_ct_CC" >&6; }
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14630 test -n "$ac_ct_CC" && break
14633 if test "x$ac_ct_CC" = x; then
14636 case $cross_compiling:$ac_tool_warned in
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14640 ac_tool_warned=yes ;;
14649 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14651 as_fn_error "no acceptable C compiler found in \$PATH
14652 See \`config.log' for more details." "$LINENO" 5; }
14654 # Provide some information about the compiler.
14655 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14658 for ac_option in --version -v -V -qversion; do
14659 { { ac_try="$ac_compiler $ac_option >&5"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14665 $as_echo "$ac_try_echo"; } >&5
14666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14668 if test -s conftest.err; then
14670 ... rest of stderr output deleted ...
14671 10q' conftest.err >conftest.er1
14672 cat conftest.er1 >&5
14673 rm -f conftest.er1 conftest.err
14675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 test $ac_status = 0; }
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14681 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14698 if ac_fn_c_try_compile "$LINENO"; then :
14699 ac_compiler_gnu=yes
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14709 if test $ac_compiler_gnu = yes; then
14714 ac_test_CFLAGS=${CFLAGS+set}
14715 ac_save_CFLAGS=$CFLAGS
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14718 if test "${ac_cv_prog_cc_g+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14721 ac_save_c_werror_flag=$ac_c_werror_flag
14722 ac_c_werror_flag=yes
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14736 if ac_fn_c_try_compile "$LINENO"; then :
14737 ac_cv_prog_cc_g=yes
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14751 if ac_fn_c_try_compile "$LINENO"; then :
14754 ac_c_werror_flag=$ac_save_c_werror_flag
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14767 if ac_fn_c_try_compile "$LINENO"; then :
14768 ac_cv_prog_cc_g=yes
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 ac_c_werror_flag=$ac_save_c_werror_flag
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14778 $as_echo "$ac_cv_prog_cc_g" >&6; }
14779 if test "$ac_test_CFLAGS" = set; then
14780 CFLAGS=$ac_save_CFLAGS
14781 elif test $ac_cv_prog_cc_g = yes; then
14782 if test "$GCC" = yes; then
14788 if test "$GCC" = yes; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14795 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14796 if test "${ac_cv_prog_cc_c89+set}" = set; then :
14797 $as_echo_n "(cached) " >&6
14799 ac_cv_prog_cc_c89=no
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14803 #include <stdarg.h>
14805 #include <sys/types.h>
14806 #include <sys/stat.h>
14807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14808 struct buf { int x; };
14809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14810 static char *e (p, i)
14816 static char *f (char * (*g) (char **, int), char **p, ...)
14821 s = g (p, va_arg (v,int));
14826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14827 function prototypes and stuff, but not '\xHH' hex character constants.
14828 These don't provoke an error unfortunately, instead are silently treated
14829 as 'x'. The following induces an error, until -std is added to get
14830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14831 array size at least. It's necessary to write '\x00'==0 to get something
14832 that's true only with -std. */
14833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14836 inside strings and character constants. */
14838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14840 int test (int i, double x);
14841 struct s1 {int (*f) (int a);};
14842 struct s2 {int (*f) (double a);};
14843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14857 CC="$ac_save_CC $ac_arg"
14858 if ac_fn_c_try_compile "$LINENO"; then :
14859 ac_cv_prog_cc_c89=$ac_arg
14861 rm -f core conftest.err conftest.$ac_objext
14862 test "x$ac_cv_prog_cc_c89" != "xno" && break
14864 rm -f conftest.$ac_ext
14869 case "x$ac_cv_prog_cc_c89" in
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14872 $as_echo "none needed" >&6; } ;;
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14875 $as_echo "unsupported" >&6; } ;;
14877 CC="$CC $ac_cv_prog_cc_c89"
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14881 if test "x$ac_cv_prog_cc_c89" != xno; then :
14886 ac_cpp='$CPP $CPPFLAGS'
14887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14891 depcc="$CC" am_compiler_list=
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14894 $as_echo_n "checking dependency style of $depcc... " >&6; }
14895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14896 $as_echo_n "(cached) " >&6
14898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14899 # We make a subdir and do the tests there. Otherwise we can end up
14900 # making bogus files that we don't know about and never remove. For
14901 # instance it was reported that on HP-UX the gcc test will end up
14902 # making a dummy file named `D' -- because `-MD' means `put the output
14905 # Copy depcomp to subdir because otherwise we won't find it if we're
14906 # using a relative directory.
14907 cp "$am_depcomp" conftest.dir
14909 # We will build objects and dependencies in a subdirectory because
14910 # it helps to detect inapplicable dependency modes. For instance
14911 # both Tru64's cc and ICC support -MD to output dependencies as a
14912 # side effect of compilation, but ICC will put the dependencies in
14913 # the current directory while Tru64 will put them in the object
14917 am_cv_CC_dependencies_compiler_type=none
14918 if test "$am_compiler_list" = ""; then
14919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14921 am__universal=false
14922 case " $depcc " in #(
14923 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14926 for depmode in $am_compiler_list; do
14927 # Setup a source with many dependencies, because some compilers
14928 # like to wrap large dependency lists on column 80 (with \), and
14929 # we should not choose a depcomp mode which is confused by this.
14931 # We need to recreate these files for each test, as the compiler may
14932 # overwrite some of them when testing with obscure command lines.
14933 # This happens at least with the AIX C compiler.
14935 for i in 1 2 3 4 5 6; do
14936 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14937 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14938 # Solaris 8's {/usr,}/bin/sh.
14939 touch sub/conftst$i.h
14941 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14943 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14944 # mode. It turns out that the SunPro C++ compiler does not properly
14945 # handle `-M -o', and we need to detect this. Also, some Intel
14946 # versions had trouble with output in subdirs
14947 am__obj=sub/conftest.${OBJEXT-o}
14948 am__minus_obj="-o $am__obj"
14951 # This depmode causes a compiler race in universal mode.
14952 test "$am__universal" = false || continue
14955 # after this tag, mechanisms are not by side-effect, so they'll
14956 # only be used when explicitly requested
14957 if test "x$enable_dependency_tracking" = xyes; then
14963 msvisualcpp | msvcmsys)
14964 # This compiler won't grok `-c -o', but also, the minuso test has
14965 # not run yet. These depmodes are late enough in the game, and
14966 # so weak that their functioning should not be impacted.
14967 am__obj=conftest.${OBJEXT-o}
14972 if depmode=$depmode \
14973 source=sub/conftest.c object=$am__obj \
14974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14975 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14976 >/dev/null 2>conftest.err &&
14977 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14978 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14979 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14981 # icc doesn't choke on unknown options, it will just issue warnings
14982 # or remarks (even with -Werror). So we grep stderr for any message
14983 # that says an option was ignored or not supported.
14984 # When given -MP, icc 7.0 and 7.1 complain thusly:
14985 # icc: Command line warning: ignoring option '-M'; no argument required
14986 # The diagnosis changed in icc 8.0:
14987 # icc: Command line remark: option '-MP' not supported
14988 if (grep 'ignoring option' conftest.err ||
14989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14990 am_cv_CC_dependencies_compiler_type=$depmode
14997 rm -rf conftest.dir
14999 am_cv_CC_dependencies_compiler_type=none
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15004 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15005 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15008 test "x$enable_dependency_tracking" != xno \
15009 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15010 am__fastdepCC_TRUE=
15011 am__fastdepCC_FALSE='#'
15013 am__fastdepCC_TRUE='#'
15014 am__fastdepCC_FALSE=
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15019 $as_echo_n "checking whether ln -s works... " >&6; }
15021 if test "$LN_S" = "ln -s"; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023 $as_echo "yes" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15026 $as_echo "no, using $LN_S" >&6; }
15029 for ac_prog in gawk mawk nawk awk
15031 # Extract the first word of "$ac_prog", so it can be a program name with args.
15032 set dummy $ac_prog; ac_word=$2
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15034 $as_echo_n "checking for $ac_word... " >&6; }
15035 if test "${ac_cv_prog_AWK+set}" = set; then :
15036 $as_echo_n "(cached) " >&6
15038 if test -n "$AWK"; then
15039 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042 for as_dir in $PATH
15045 test -z "$as_dir" && as_dir=.
15046 for ac_exec_ext in '' $ac_executable_extensions; do
15047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15048 ac_cv_prog_AWK="$ac_prog"
15049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15058 AWK=$ac_cv_prog_AWK
15059 if test -n "$AWK"; then
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15061 $as_echo "$AWK" >&6; }
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064 $as_echo "no" >&6; }
15068 test -n "$AWK" && break
15073 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15074 for ac_prog in nroff awf
15076 # Extract the first word of "$ac_prog", so it can be a program name with args.
15077 set dummy $ac_prog; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if test "${ac_cv_path_NROFF+set}" = set; then :
15081 $as_echo_n "(cached) " >&6
15085 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $TestPath
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15095 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15106 NROFF=$ac_cv_path_NROFF
15107 if test -n "$NROFF"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15109 $as_echo "$NROFF" >&6; }
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15116 test -n "$NROFF" && break
15118 test -n "$NROFF" || NROFF="/bin/false"
15120 if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15127 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
15128 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lcurses $LIBS"
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15136 /* Override any GCC internal prototype to avoid an error.
15137 Use char because int might match the return type of a GCC
15138 builtin and then its argument prototype would still apply. */
15151 if ac_fn_c_try_link "$LINENO"; then :
15152 ac_cv_lib_curses_tgetent=yes
15154 ac_cv_lib_curses_tgetent=no
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 LIBS=$ac_check_lib_save_LIBS
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15161 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
15162 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
15163 cat >>confdefs.h <<_ACEOF
15164 #define HAVE_LIBCURSES 1
15167 LIBS="-lcurses $LIBS"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15171 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
15172 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lncurses $LIBS"
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15180 /* Override any GCC internal prototype to avoid an error.
15181 Use char because int might match the return type of a GCC
15182 builtin and then its argument prototype would still apply. */
15195 if ac_fn_c_try_link "$LINENO"; then :
15196 ac_cv_lib_ncurses_tgetent=yes
15198 ac_cv_lib_ncurses_tgetent=no
15200 rm -f core conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
15202 LIBS=$ac_check_lib_save_LIBS
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15205 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
15206 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
15207 cat >>confdefs.h <<_ACEOF
15208 #define HAVE_LIBNCURSES 1
15211 LIBS="-lncurses $LIBS"
15214 as_fn_error "libtermcap, libcurses or libncurses are required!" "$LINENO" 5
15220 # Checks for header files.
15221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15222 # for constant arguments. Useless!
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15224 $as_echo_n "checking for working alloca.h... " >&6; }
15225 if test "${ac_cv_working_alloca_h+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <alloca.h>
15234 char *p = (char *) alloca (2 * sizeof (int));
15240 if ac_fn_c_try_link "$LINENO"; then :
15241 ac_cv_working_alloca_h=yes
15243 ac_cv_working_alloca_h=no
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15249 $as_echo "$ac_cv_working_alloca_h" >&6; }
15250 if test $ac_cv_working_alloca_h = yes; then
15252 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15257 $as_echo_n "checking for alloca... " >&6; }
15258 if test "${ac_cv_func_alloca_works+set}" = set; then :
15259 $as_echo_n "(cached) " >&6
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15264 # define alloca __builtin_alloca
15267 # include <malloc.h>
15268 # define alloca _alloca
15270 # ifdef HAVE_ALLOCA_H
15271 # include <alloca.h>
15276 # ifndef alloca /* predefined by HP cc +Olibcalls */
15287 char *p = (char *) alloca (1);
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 ac_cv_func_alloca_works=yes
15296 ac_cv_func_alloca_works=no
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15302 $as_echo "$ac_cv_func_alloca_works" >&6; }
15304 if test $ac_cv_func_alloca_works = yes; then
15306 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15309 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15310 # that cause trouble. Some versions do not even contain alloca or
15311 # contain a buggy version. If you still want to use their alloca,
15312 # use ar to extract alloca.o from them instead of compiling alloca.c.
15314 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15316 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15320 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15321 if test "${ac_cv_os_cray+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15326 #if defined CRAY && ! defined CRAY2
15333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15334 $EGREP "webecray" >/dev/null 2>&1; then :
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15343 $as_echo "$ac_cv_os_cray" >&6; }
15344 if test $ac_cv_os_cray = yes; then
15345 for ac_func in _getb67 GETB67 getb67; do
15346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15348 eval as_val=\$$as_ac_var
15349 if test "x$as_val" = x""yes; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define CRAY_STACKSEG_END $ac_func
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15362 $as_echo_n "checking stack direction for C alloca... " >&6; }
15363 if test "${ac_cv_c_stack_direction+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15366 if test "$cross_compiling" = yes; then :
15367 ac_cv_c_stack_direction=0
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371 $ac_includes_default
15373 find_stack_direction ()
15375 static char *addr = 0;
15380 return find_stack_direction ();
15383 return (&dummy > addr) ? 1 : -1;
15389 return find_stack_direction () < 0;
15392 if ac_fn_c_try_run "$LINENO"; then :
15393 ac_cv_c_stack_direction=1
15395 ac_cv_c_stack_direction=-1
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15398 conftest.$ac_objext conftest.beam conftest.$ac_ext
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15403 $as_echo "$ac_cv_c_stack_direction" >&6; }
15404 cat >>confdefs.h <<_ACEOF
15405 #define STACK_DIRECTION $ac_cv_c_stack_direction
15411 ac_header_dirent=no
15412 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15413 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15415 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
15417 $as_echo_n "(cached) " >&6
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 #include <sys/types.h>
15433 if ac_fn_c_try_compile "$LINENO"; then :
15434 eval "$as_ac_Header=yes"
15436 eval "$as_ac_Header=no"
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 eval ac_res=\$$as_ac_Header
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15442 $as_echo "$ac_res" >&6; }
15443 eval as_val=\$$as_ac_Header
15444 if test "x$as_val" = x""yes; then :
15445 cat >>confdefs.h <<_ACEOF
15446 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15449 ac_header_dirent=$ac_hdr; break
15453 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15454 if test $ac_header_dirent = dirent.h; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15456 $as_echo_n "checking for library containing opendir... " >&6; }
15457 if test "${ac_cv_search_opendir+set}" = set; then :
15458 $as_echo_n "(cached) " >&6
15460 ac_func_search_save_LIBS=$LIBS
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15464 /* Override any GCC internal prototype to avoid an error.
15465 Use char because int might match the return type of a GCC
15466 builtin and then its argument prototype would still apply. */
15479 for ac_lib in '' dir; do
15480 if test -z "$ac_lib"; then
15481 ac_res="none required"
15484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15486 if ac_fn_c_try_link "$LINENO"; then :
15487 ac_cv_search_opendir=$ac_res
15489 rm -f core conftest.err conftest.$ac_objext \
15491 if test "${ac_cv_search_opendir+set}" = set; then :
15495 if test "${ac_cv_search_opendir+set}" = set; then :
15498 ac_cv_search_opendir=no
15500 rm conftest.$ac_ext
15501 LIBS=$ac_func_search_save_LIBS
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15504 $as_echo "$ac_cv_search_opendir" >&6; }
15505 ac_res=$ac_cv_search_opendir
15506 if test "$ac_res" != no; then :
15507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15513 $as_echo_n "checking for library containing opendir... " >&6; }
15514 if test "${ac_cv_search_opendir+set}" = set; then :
15515 $as_echo_n "(cached) " >&6
15517 ac_func_search_save_LIBS=$LIBS
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15521 /* Override any GCC internal prototype to avoid an error.
15522 Use char because int might match the return type of a GCC
15523 builtin and then its argument prototype would still apply. */
15536 for ac_lib in '' x; do
15537 if test -z "$ac_lib"; then
15538 ac_res="none required"
15541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15543 if ac_fn_c_try_link "$LINENO"; then :
15544 ac_cv_search_opendir=$ac_res
15546 rm -f core conftest.err conftest.$ac_objext \
15548 if test "${ac_cv_search_opendir+set}" = set; then :
15552 if test "${ac_cv_search_opendir+set}" = set; then :
15555 ac_cv_search_opendir=no
15557 rm conftest.$ac_ext
15558 LIBS=$ac_func_search_save_LIBS
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15561 $as_echo "$ac_cv_search_opendir" >&6; }
15562 ac_res=$ac_cv_search_opendir
15563 if test "$ac_res" != no; then :
15564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15571 $as_echo_n "checking for ANSI C header files... " >&6; }
15572 if test "${ac_cv_header_stdc+set}" = set; then :
15573 $as_echo_n "(cached) " >&6
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577 #include <stdlib.h>
15578 #include <stdarg.h>
15579 #include <string.h>
15590 if ac_fn_c_try_compile "$LINENO"; then :
15591 ac_cv_header_stdc=yes
15593 ac_cv_header_stdc=no
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597 if test $ac_cv_header_stdc = yes; then
15598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #include <string.h>
15604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15605 $EGREP "memchr" >/dev/null 2>&1; then :
15608 ac_cv_header_stdc=no
15614 if test $ac_cv_header_stdc = yes; then
15615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618 #include <stdlib.h>
15621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15622 $EGREP "free" >/dev/null 2>&1; then :
15625 ac_cv_header_stdc=no
15631 if test $ac_cv_header_stdc = yes; then
15632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15633 if test "$cross_compiling" = yes; then :
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15639 #include <stdlib.h>
15640 #if ((' ' & 0x0FF) == 0x020)
15641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15644 # define ISLOWER(c) \
15645 (('a' <= (c) && (c) <= 'i') \
15646 || ('j' <= (c) && (c) <= 'r') \
15647 || ('s' <= (c) && (c) <= 'z'))
15648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15656 for (i = 0; i < 256; i++)
15657 if (XOR (islower (i), ISLOWER (i))
15658 || toupper (i) != TOUPPER (i))
15663 if ac_fn_c_try_run "$LINENO"; then :
15666 ac_cv_header_stdc=no
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15669 conftest.$ac_objext conftest.beam conftest.$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15675 $as_echo "$ac_cv_header_stdc" >&6; }
15676 if test $ac_cv_header_stdc = yes; then
15678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15683 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15684 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 #include <sys/types.h>
15690 #include <sys/wait.h>
15691 #ifndef WEXITSTATUS
15692 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15695 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15703 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709 ac_cv_header_sys_wait_h=yes
15711 ac_cv_header_sys_wait_h=no
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15716 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15717 if test $ac_cv_header_sys_wait_h = yes; then
15719 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15723 for ac_header in fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h
15725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15727 eval as_val=\$$as_ac_Header
15728 if test "x$as_val" = x""yes; then :
15729 cat >>confdefs.h <<_ACEOF
15730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15738 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
15739 if test "x$ac_cv_header_termios_h" = x""yes; then :
15742 as_fn_error "termios.h is required!" "$LINENO" 5
15747 ## include curses.h to prevent "Present But Cannot Be Compiled"
15748 for ac_header in term.h
15750 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
15751 # include <curses.h>
15752 #elif HAVE_NCURSES_H
15753 # include <ncurses.h>
15757 if test "x$ac_cv_header_term_h" = x""yes; then :
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_TERM_H 1
15767 # Checks for typedefs, structures, and compiler characteristics.
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15769 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15770 if test "${ac_cv_c_const+set}" = set; then :
15771 $as_echo_n "(cached) " >&6
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15779 /* FIXME: Include the comments suggested by Paul. */
15780 #ifndef __cplusplus
15781 /* Ultrix mips cc rejects this. */
15782 typedef int charset[2];
15784 /* SunOS 4.1.1 cc rejects this. */
15785 char const *const *pcpcc;
15787 /* NEC SVR4.0.2 mips cc rejects this. */
15788 struct point {int x, y;};
15789 static struct point const zero = {0,0};
15790 /* AIX XL C 1.02.0.0 rejects this.
15791 It does not let you subtract one const X* pointer from another in
15792 an arm of an if-expression whose if-part is not a constant
15794 const char *g = "string";
15795 pcpcc = &g + (g ? g-g : 0);
15796 /* HPUX 7.0 cc rejects these. */
15798 ppc = (char**) pcpcc;
15799 pcpcc = (char const *const *) ppc;
15800 { /* SCO 3.2v4 cc rejects this. */
15802 char const *s = 0 ? (char *) 0 : (char const *) 0;
15807 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15808 int x[] = {25, 17};
15809 const int *foo = &x[0];
15812 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15813 typedef const int *iptr;
15817 { /* AIX XL C 1.02.0.0 rejects this saying
15818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15819 struct s { int j; const int *ap[3]; };
15820 struct s *b; b->j = 5;
15822 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15823 const int foo = 10;
15824 if (!foo) return 0;
15826 return !cs[0] && !zero.x;
15833 if ac_fn_c_try_compile "$LINENO"; then :
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15841 $as_echo "$ac_cv_c_const" >&6; }
15842 if test $ac_cv_c_const = no; then
15844 $as_echo "#define const /**/" >>confdefs.h
15848 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15849 if test "x$ac_cv_type_pid_t" = x""yes; then :
15853 cat >>confdefs.h <<_ACEOF
15859 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15860 if test "x$ac_cv_type_size_t" = x""yes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define size_t unsigned int
15870 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
15871 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15873 cat >>confdefs.h <<_ACEOF
15874 #define HAVE_U_INT32_T 1
15881 # Checks for library functions.
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15883 $as_echo_n "checking whether closedir returns void... " >&6; }
15884 if test "${ac_cv_func_closedir_void+set}" = set; then :
15885 $as_echo_n "(cached) " >&6
15887 if test "$cross_compiling" = yes; then :
15888 ac_cv_func_closedir_void=yes
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header_dirent>
15894 #ifndef __cplusplus
15901 return closedir (opendir (".")) != 0;
15906 if ac_fn_c_try_run "$LINENO"; then :
15907 ac_cv_func_closedir_void=no
15909 ac_cv_func_closedir_void=yes
15911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15912 conftest.$ac_objext conftest.beam conftest.$ac_ext
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15917 $as_echo "$ac_cv_func_closedir_void" >&6; }
15918 if test $ac_cv_func_closedir_void = yes; then
15920 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
15924 for ac_header in vfork.h
15926 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15927 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15928 cat >>confdefs.h <<_ACEOF
15929 #define HAVE_VFORK_H 1
15936 for ac_func in fork vfork
15938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15940 eval as_val=\$$as_ac_var
15941 if test "x$as_val" = x""yes; then :
15942 cat >>confdefs.h <<_ACEOF
15943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15949 if test "x$ac_cv_func_fork" = xyes; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15951 $as_echo_n "checking for working fork... " >&6; }
15952 if test "${ac_cv_func_fork_works+set}" = set; then :
15953 $as_echo_n "(cached) " >&6
15955 if test "$cross_compiling" = yes; then :
15956 ac_cv_func_fork_works=cross
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 $ac_includes_default
15965 /* By Ruediger Kuhlmann. */
15966 return fork () < 0;
15972 if ac_fn_c_try_run "$LINENO"; then :
15973 ac_cv_func_fork_works=yes
15975 ac_cv_func_fork_works=no
15977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978 conftest.$ac_objext conftest.beam conftest.$ac_ext
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15983 $as_echo "$ac_cv_func_fork_works" >&6; }
15986 ac_cv_func_fork_works=$ac_cv_func_fork
15988 if test "x$ac_cv_func_fork_works" = xcross; then
15990 *-*-amigaos* | *-*-msdosdjgpp*)
15991 # Override, as these systems have only a dummy fork() stub
15992 ac_cv_func_fork_works=no
15995 ac_cv_func_fork_works=yes
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15999 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16001 ac_cv_func_vfork_works=$ac_cv_func_vfork
16002 if test "x$ac_cv_func_vfork" = xyes; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16004 $as_echo_n "checking for working vfork... " >&6; }
16005 if test "${ac_cv_func_vfork_works+set}" = set; then :
16006 $as_echo_n "(cached) " >&6
16008 if test "$cross_compiling" = yes; then :
16009 ac_cv_func_vfork_works=cross
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 /* Thanks to Paul Eggert for this test. */
16014 $ac_includes_default
16015 #include <sys/wait.h>
16016 #ifdef HAVE_VFORK_H
16017 # include <vfork.h>
16019 /* On some sparc systems, changes by the child to local and incoming
16020 argument registers are propagated back to the parent. The compiler
16021 is told about this with #include <vfork.h>, but some compilers
16022 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16023 static variable whose address is put into a register that is
16024 clobbered by the vfork. */
16027 sparc_address_test (int arg)
16029 sparc_address_test (arg) int arg;
16032 static pid_t child;
16050 pid_t parent = getpid ();
16053 sparc_address_test (0);
16058 /* Here is another test for sparc vfork register problems. This
16059 test uses lots of local variables, at least as many local
16060 variables as main has allocated so far including compiler
16061 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16062 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16063 reuse the register of parent for one of the local variables,
16064 since it will think that parent can't possibly be used any more
16065 in this routine. Assigning to the local variable will thus
16066 munge parent in the parent process. */
16068 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16069 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16070 /* Convince the compiler that p..p7 are live; otherwise, it might
16071 use the same hardware register for all 8 local variables. */
16072 if (p != p1 || p != p2 || p != p3 || p != p4
16073 || p != p5 || p != p6 || p != p7)
16076 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16077 from child file descriptors. If the child closes a descriptor
16078 before it execs or exits, this munges the parent's descriptor
16079 as well. Test for this by closing stdout in the child. */
16080 _exit(close(fileno(stdout)) != 0);
16085 while (wait(&status) != child)
16088 /* Was there some problem with vforking? */
16091 /* Did the child fail? (This shouldn't happen.) */
16094 /* Did the vfork/compiler bug occur? */
16095 || parent != getpid()
16097 /* Did the file descriptor bug occur? */
16098 || fstat(fileno(stdout), &st) != 0
16103 if ac_fn_c_try_run "$LINENO"; then :
16104 ac_cv_func_vfork_works=yes
16106 ac_cv_func_vfork_works=no
16108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16109 conftest.$ac_objext conftest.beam conftest.$ac_ext
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16114 $as_echo "$ac_cv_func_vfork_works" >&6; }
16117 if test "x$ac_cv_func_fork_works" = xcross; then
16118 ac_cv_func_vfork_works=$ac_cv_func_vfork
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16120 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16123 if test "x$ac_cv_func_vfork_works" = xyes; then
16125 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16129 $as_echo "#define vfork fork" >>confdefs.h
16132 if test "x$ac_cv_func_fork_works" = xyes; then
16134 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16138 if test $ac_cv_c_compiler_gnu = yes; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
16140 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
16141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
16142 $as_echo_n "(cached) " >&6
16144 ac_pattern="Autoconf.*'x'"
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16151 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
16152 ac_cv_prog_gcc_traditional=yes
16154 ac_cv_prog_gcc_traditional=no
16159 if test $ac_cv_prog_gcc_traditional = no; then
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16162 #include <termio.h>
16165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16166 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
16167 ac_cv_prog_gcc_traditional=yes
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
16174 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
16175 if test $ac_cv_prog_gcc_traditional = yes; then
16176 CC="$CC -traditional"
16180 ## _AIX is offended by rpl_malloc and rpl_realloc
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16184 $as_echo_n "checking return type of signal handlers... " >&6; }
16185 if test "${ac_cv_type_signal+set}" = set; then :
16186 $as_echo_n "(cached) " >&6
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190 #include <sys/types.h>
16191 #include <signal.h>
16196 return *(signal (0, 0)) (0) == 1;
16201 if ac_fn_c_try_compile "$LINENO"; then :
16202 ac_cv_type_signal=int
16204 ac_cv_type_signal=void
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16209 $as_echo "$ac_cv_type_signal" >&6; }
16211 cat >>confdefs.h <<_ACEOF
16212 #define RETSIGTYPE $ac_cv_type_signal
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
16217 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
16218 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
16221 rm -f conftest.sym conftest.file
16222 echo >conftest.file
16223 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16224 if test "$cross_compiling" = yes; then :
16225 ac_cv_func_lstat_dereferences_slashed_symlink=no
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 $ac_includes_default
16234 /* Linux will dereference the symlink and fail.
16235 That is better in the sense that it means we will not
16236 have to compile and use the lstat wrapper. */
16237 return lstat ("conftest.sym/", &sbuf) == 0;
16242 if ac_fn_c_try_run "$LINENO"; then :
16243 ac_cv_func_lstat_dereferences_slashed_symlink=yes
16245 ac_cv_func_lstat_dereferences_slashed_symlink=no
16247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16248 conftest.$ac_objext conftest.beam conftest.$ac_ext
16252 # If the `ln -s' command failed, then we probably don't even
16253 # have an lstat function.
16254 ac_cv_func_lstat_dereferences_slashed_symlink=no
16256 rm -f conftest.sym conftest.file
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16260 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16262 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16264 cat >>confdefs.h <<_ACEOF
16265 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16269 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16270 case " $LIBOBJS " in
16271 *" lstat.$ac_objext "* ) ;;
16272 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16279 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
16280 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
16281 $as_echo_n "(cached) " >&6
16283 if test "$cross_compiling" = yes; then :
16284 ac_cv_func_stat_empty_string_bug=yes
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16288 $ac_includes_default
16293 return stat ("", &sbuf) == 0;
16298 if ac_fn_c_try_run "$LINENO"; then :
16299 ac_cv_func_stat_empty_string_bug=no
16301 ac_cv_func_stat_empty_string_bug=yes
16303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16304 conftest.$ac_objext conftest.beam conftest.$ac_ext
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16309 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16310 if test $ac_cv_func_stat_empty_string_bug = yes; then
16311 case " $LIBOBJS " in
16312 *" stat.$ac_objext "* ) ;;
16313 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16318 cat >>confdefs.h <<_ACEOF
16319 #define HAVE_STAT_EMPTY_STRING_BUG 1
16324 for ac_func in endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid
16326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16328 eval as_val=\$$as_ac_var
16329 if test "x$as_val" = x""yes; then :
16330 cat >>confdefs.h <<_ACEOF
16331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
16339 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
16340 # The prototype for the POSIX version is:
16341 # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
16342 # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 #include <stdlib.h>
16346 #include <sys/types.h>
16351 getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
16352 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
16357 if ac_fn_c_try_link "$LINENO"; then :
16359 $as_echo "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16362 $as_echo "yes" >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16367 rm -f core conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
16372 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
16373 # The prototype for the POSIX draft version is:
16374 # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
16375 # struct passwd *getpwnam_r(char *, struct passwd *, char *, int);
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16378 #include <stdlib.h>
16379 #include <sys/types.h>
16384 getpwnam_r(NULL, NULL, NULL, (size_t)0);
16385 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
16390 if ac_fn_c_try_link "$LINENO"; then :
16392 $as_echo "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16395 $as_echo "yes" >&6; }
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16400 rm -f core conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16406 ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
16408 cat >confcache <<\_ACEOF
16409 # This file is a shell script that caches the results of configure
16410 # tests run on this system so they can be shared between configure
16411 # scripts and configure runs, see configure's option --config-cache.
16412 # It is not useful on other systems. If it contains results you don't
16413 # want to keep, you may remove or edit it.
16415 # config.status only pays attention to the cache file if you give it
16416 # the --recheck option to rerun configure.
16418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16420 # following values.
16424 # The following way of writing the cache mishandles newlines in values,
16425 # but we know of no workaround that is simple, portable, and efficient.
16426 # So, we kill variables containing newlines.
16427 # Ultrix sh set writes to stderr and can't be redirected directly,
16428 # and sets the high bit in the cache file unless we assign to the vars.
16430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16431 eval ac_val=\$$ac_var
16435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16439 _ | IFS | as_nl) ;; #(
16440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16441 *) { eval $ac_var=; unset $ac_var;} ;;
16447 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16448 *${as_nl}ac_space=\ *)
16449 # `set' does not quote correctly, so add quotes: double-quote
16450 # substitution turns \\\\ into \\, and sed turns \\ into \.
16453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16456 # `set' quotes correctly as required by POSIX, so do not add quotes.
16457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16470 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16471 if test -w "$cache_file"; then
16472 test "x$cache_file" != "x/dev/null" &&
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16474 $as_echo "$as_me: updating cache $cache_file" >&6;}
16475 cat confcache >$cache_file
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16484 # Let make expand exec_prefix.
16485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16487 DEFS=-DHAVE_CONFIG_H
16491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16492 # 1. Remove the extension, and $U if already installed.
16493 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16494 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16496 # will be set to the directory where LIBOBJS objects are built.
16497 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16498 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16500 LIBOBJS=$ac_libobjs
16502 LTLIBOBJS=$ac_ltlibobjs
16505 if test -n "$EXEEXT"; then
16507 am__EXEEXT_FALSE='#'
16509 am__EXEEXT_TRUE='#'
16513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16514 as_fn_error "conditional \"AMDEP\" was never defined.
16515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16518 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16521 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16522 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16526 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16529 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16530 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16534 : ${CONFIG_STATUS=./config.status}
16536 ac_clean_files_save=$ac_clean_files
16537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16543 # Generated by $as_me.
16544 # Run this file to recreate the current configuration.
16545 # Compiler output produced by configure, useful for debugging
16546 # configure, is in config.log if it exists.
16549 ac_cs_recheck=false
16552 SHELL=\${CONFIG_SHELL-$SHELL}
16555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16556 ## -------------------- ##
16557 ## M4sh Initialization. ##
16558 ## -------------------- ##
16560 # Be more Bourne compatible
16561 DUALCASE=1; export DUALCASE # for MKS sh
16562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16566 # is contrary to our usage. Disable this feature.
16567 alias -g '${1+"$@"}'='"$@"'
16568 setopt NO_GLOB_SUBST
16570 case `(set -o) 2>/dev/null` in #(
16582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16586 # Prefer a ksh shell builtin over an external printf program on Solaris,
16587 # but without wasting forks for bash or zsh.
16588 if test -z "$BASH_VERSION$ZSH_VERSION" \
16589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16590 as_echo='print -r --'
16591 as_echo_n='print -rn --'
16592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16593 as_echo='printf %s\n'
16594 as_echo_n='printf %s'
16596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16598 as_echo_n='/usr/ucb/echo -n'
16600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16601 as_echo_n_body='eval
16605 expr "X$arg" : "X\\(.*\\)$as_nl";
16606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16610 export as_echo_n_body
16611 as_echo_n='sh -c $as_echo_n_body as_echo'
16613 export as_echo_body
16614 as_echo='sh -c $as_echo_body as_echo'
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16628 # We need space, tab and new line, in precisely that order. Quoting is
16629 # there to prevent editors from complaining about space-tab.
16630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16631 # splitting by setting IFS to empty value.)
16634 # Find who we are. Look in the path if we contain no directory separator.
16636 *[\\/]* ) as_myself=$0 ;;
16637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16641 test -z "$as_dir" && as_dir=.
16642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16648 # We did not find ourselves, most probably we were run as `sh COMMAND'
16649 # in which case we are not to be found in the path.
16650 if test "x$as_myself" = x; then
16653 if test ! -f "$as_myself"; then
16654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16658 # Unset variables that we do not need and which cause bugs (e.g. in
16659 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16660 # suppresses any "Segmentation fault" message there. '((' could
16661 # trigger a bug in pdksh 5.2.14.
16662 for as_var in BASH_ENV ENV MAIL MAILPATH
16663 do eval test x\${$as_var+set} = xset \
16664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16680 # as_fn_error ERROR [LINENO LOG_FD]
16681 # ---------------------------------
16682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16684 # script with status $?, using 1 if that was 0.
16687 as_status=$?; test $as_status -eq 0 && as_status=1
16689 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16692 $as_echo "$as_me: error: $1" >&2
16693 as_fn_exit $as_status
16697 # as_fn_set_status STATUS
16698 # -----------------------
16699 # Set $? to STATUS, without forking.
16700 as_fn_set_status ()
16703 } # as_fn_set_status
16705 # as_fn_exit STATUS
16706 # -----------------
16707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16711 as_fn_set_status $1
16717 # Portably unset VAR.
16720 { eval $1=; unset $1;}
16722 as_unset=as_fn_unset
16723 # as_fn_append VAR VALUE
16724 # ----------------------
16725 # Append the text in VALUE to the end of the definition contained in VAR. Take
16726 # advantage of any shell optimizations that allow amortized linear growth over
16727 # repeated appends, instead of the typical quadratic growth present in naive
16729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16730 eval 'as_fn_append ()
16741 # as_fn_arith ARG...
16742 # ------------------
16743 # Perform arithmetic evaluation on the ARGs, and store the result in the
16744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16745 # must be portable across $(()) and expr.
16746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16747 eval 'as_fn_arith ()
16754 as_val=`expr "$@" || test $? -eq 1`
16759 if expr a : '\(a\)' >/dev/null 2>&1 &&
16760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16767 as_basename=basename
16772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16778 as_me=`$as_basename -- "$0" ||
16779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16780 X"$0" : 'X\(//\)$' \| \
16781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16783 sed '/^.*\/\([^/][^/]*\)\/*$/{
16797 # Avoid depending upon Character Ranges.
16798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16801 as_cr_digits='0123456789'
16802 as_cr_alnum=$as_cr_Letters$as_cr_digits
16804 ECHO_C= ECHO_N= ECHO_T=
16805 case `echo -n x` in #(((((
16807 case `echo 'xy\c'` in
16808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16817 rm -f conf$$ conf$$.exe conf$$.file
16818 if test -d conf$$.dir; then
16819 rm -f conf$$.dir/conf$$.file
16822 mkdir conf$$.dir 2>/dev/null
16824 if (echo >conf$$.file) 2>/dev/null; then
16825 if ln -s conf$$.file conf$$ 2>/dev/null; then
16827 # ... but there are two gotchas:
16828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16830 # In both cases, we have to default to `cp -p'.
16831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16833 elif ln conf$$.file conf$$ 2>/dev/null; then
16841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16842 rmdir conf$$.dir 2>/dev/null
16847 # Create "$as_dir" as a directory, including parents if necessary.
16852 -*) as_dir=./$as_dir;;
16854 test -d "$as_dir" || eval $as_mkdir_p || {
16858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16859 *) as_qdir=$as_dir;;
16861 as_dirs="'$as_qdir' $as_dirs"
16862 as_dir=`$as_dirname -- "$as_dir" ||
16863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16864 X"$as_dir" : 'X\(//\)[^/]' \| \
16865 X"$as_dir" : 'X\(//\)$' \| \
16866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16867 $as_echo X"$as_dir" |
16868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16872 /^X\(\/\/\)[^/].*/{
16885 test -d "$as_dir" && break
16887 test -z "$as_dirs" || eval "mkdir $as_dirs"
16888 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16892 if mkdir -p . 2>/dev/null; then
16893 as_mkdir_p='mkdir -p "$as_dir"'
16895 test -d ./-p && rmdir ./-p
16899 if test -x / >/dev/null 2>&1; then
16900 as_test_x='test -x'
16902 if ls -dL / >/dev/null 2>&1; then
16909 if test -d "$1"; then
16915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16916 ???[sx]*):;;*)false;;esac;fi
16920 as_executable_p=$as_test_x
16922 # Sed expression to map a string onto a valid CPP name.
16923 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16925 # Sed expression to map a string onto a valid variable name.
16926 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16930 ## ----------------------------------- ##
16931 ## Main body of $CONFIG_STATUS script. ##
16932 ## ----------------------------------- ##
16934 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 # Save the log message, to keep $0 and so on meaningful, and to
16938 # report actual input values of CONFIG_FILES etc. instead of their
16939 # values after options handling.
16941 This file was extended by libedit $as_me 3.0, which was
16942 generated by GNU Autoconf 2.64. Invocation command line was
16944 CONFIG_FILES = $CONFIG_FILES
16945 CONFIG_HEADERS = $CONFIG_HEADERS
16946 CONFIG_LINKS = $CONFIG_LINKS
16947 CONFIG_COMMANDS = $CONFIG_COMMANDS
16950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16955 case $ac_config_files in *"
16956 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16959 case $ac_config_headers in *"
16960 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965 # Files that config.status was made for.
16966 config_files="$ac_config_files"
16967 config_headers="$ac_config_headers"
16968 config_commands="$ac_config_commands"
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16974 \`$as_me' instantiates files and other configuration actions
16975 from templates according to the current configuration. Unless the files
16976 and actions are specified as TAGs, all are instantiated by default.
16978 Usage: $0 [OPTION]... [TAG]...
16980 -h, --help print this help, then exit
16981 -V, --version print version number and configuration settings, then exit
16982 -q, --quiet, --silent
16983 do not print progress messages
16984 -d, --debug don't remove temporary files
16985 --recheck update $as_me by reconfiguring in the same conditions
16986 --file=FILE[:TEMPLATE]
16987 instantiate the configuration file FILE
16988 --header=FILE[:TEMPLATE]
16989 instantiate the configuration header FILE
16991 Configuration files:
16994 Configuration headers:
16997 Configuration commands:
17000 Report bugs to the package provider."
17003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17005 libedit config.status 3.0
17006 configured by $0, generated by GNU Autoconf 2.64,
17007 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17009 Copyright (C) 2009 Free Software Foundation, Inc.
17010 This config.status script is free software; the Free Software Foundation
17011 gives unlimited permission to copy, distribute and modify it."
17018 test -n "\$AWK" || AWK=awk
17021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022 # The default lists apply if the user does not specify any file.
17028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17040 # Handling of the options.
17041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17044 $as_echo "$ac_cs_version"; exit ;;
17045 --debug | --debu | --deb | --de | --d | -d )
17047 --file | --fil | --fi | --f )
17050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17052 as_fn_append CONFIG_FILES " '$ac_optarg'"
17053 ac_need_defaults=false;;
17054 --header | --heade | --head | --hea )
17057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17059 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17060 ac_need_defaults=false;;
17062 # Conflict between --help and --header
17063 as_fn_error "ambiguous option: \`$1'
17064 Try \`$0 --help' for more information.";;
17065 --help | --hel | -h )
17066 $as_echo "$ac_cs_usage"; exit ;;
17067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17071 # This is an error.
17072 -*) as_fn_error "unrecognized option: \`$1'
17073 Try \`$0 --help' for more information." ;;
17075 *) as_fn_append ac_config_targets " $1"
17076 ac_need_defaults=false ;;
17082 ac_configure_extra_args=
17084 if $ac_cs_silent; then
17086 ac_configure_extra_args="$ac_configure_extra_args --silent"
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17091 if \$ac_cs_recheck; then
17092 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17095 CONFIG_SHELL='$SHELL'
17096 export CONFIG_SHELL
17101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17106 ## Running $as_me. ##
17112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17116 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17119 # The HP-UX ksh and POSIX shell print the target directory to stdout
17120 # if CDPATH is set.
17121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17123 sed_quote_subst='$sed_quote_subst'
17124 double_quote_subst='$double_quote_subst'
17125 delay_variable_subst='$delay_variable_subst'
17126 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17127 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17128 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17129 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17130 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17131 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17132 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17133 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17134 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17135 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17136 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17137 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17138 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17139 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17140 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17141 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17142 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17143 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17144 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17145 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17146 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17147 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17148 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17149 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17150 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17151 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17152 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17153 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17154 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17155 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17156 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17157 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17158 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17159 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17160 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17161 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17162 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17163 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17164 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17165 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17166 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17167 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17168 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17169 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17170 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17172 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17173 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17174 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17175 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17176 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17177 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17178 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17179 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17180 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17181 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17182 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17183 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17184 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17185 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17186 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17187 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17188 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17189 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17190 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17191 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17192 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17193 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17194 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17195 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17196 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17197 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17198 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17199 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17200 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17201 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17202 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17203 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17204 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17205 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17206 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17207 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17208 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17209 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17210 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17211 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17212 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17213 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17214 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17215 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17216 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17217 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17218 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17219 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17220 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17221 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17222 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17223 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17224 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17225 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17226 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17227 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17228 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17229 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17230 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17231 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17232 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17233 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17234 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17235 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17236 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17237 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17238 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17239 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17240 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17241 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17242 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17243 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17244 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17245 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17246 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17247 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17248 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17249 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17250 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17251 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17252 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17253 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17254 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17255 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17256 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17257 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17258 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17259 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17260 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17261 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17262 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17263 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17264 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17265 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17266 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17267 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17268 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17269 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17270 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17271 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17272 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17273 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17274 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17275 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17276 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17277 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17278 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17279 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17280 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17281 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17282 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17283 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17284 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17285 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17286 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17287 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17288 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17289 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17290 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17291 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17292 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17293 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17294 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17295 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17296 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17299 LTCFLAGS='$LTCFLAGS'
17300 compiler='$compiler_DEFAULT'
17302 # Quote evaled strings.
17314 deplibs_check_method \
17323 lt_cv_sys_global_symbol_pipe \
17324 lt_cv_sys_global_symbol_to_cdecl \
17325 lt_cv_sys_global_symbol_to_c_name_address \
17326 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17329 lt_prog_compiler_no_builtin_flag \
17330 lt_prog_compiler_wl \
17331 lt_prog_compiler_pic \
17332 lt_prog_compiler_static \
17333 lt_cv_prog_compiler_c_o \
17341 export_dynamic_flag_spec \
17342 whole_archive_flag_spec \
17343 compiler_needs_object \
17345 allow_undefined_flag \
17346 no_undefined_flag \
17347 hardcode_libdir_flag_spec \
17348 hardcode_libdir_flag_spec_ld \
17349 hardcode_libdir_separator \
17354 variables_saved_for_relink \
17356 library_names_spec \
17361 compiler_lib_search_dirs \
17366 compiler_lib_search_path \
17369 lt_prog_compiler_no_builtin_flag_CXX \
17370 lt_prog_compiler_wl_CXX \
17371 lt_prog_compiler_pic_CXX \
17372 lt_prog_compiler_static_CXX \
17373 lt_cv_prog_compiler_c_o_CXX \
17374 export_dynamic_flag_spec_CXX \
17375 whole_archive_flag_spec_CXX \
17376 compiler_needs_object_CXX \
17378 allow_undefined_flag_CXX \
17379 no_undefined_flag_CXX \
17380 hardcode_libdir_flag_spec_CXX \
17381 hardcode_libdir_flag_spec_ld_CXX \
17382 hardcode_libdir_separator_CXX \
17383 fix_srcfile_path_CXX \
17384 exclude_expsyms_CXX \
17385 include_expsyms_CXX \
17386 file_list_spec_CXX \
17387 compiler_lib_search_dirs_CXX \
17388 predep_objects_CXX \
17389 postdep_objects_CXX \
17392 compiler_lib_search_path_CXX; do
17393 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17394 *[\\\\\\\`\\"\\\$]*)
17395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17403 # Double-quote double-evaled strings.
17404 for var in reload_cmds \
17405 old_postinstall_cmds \
17406 old_postuninstall_cmds \
17408 extract_expsyms_cmds \
17409 old_archive_from_new_cmds \
17410 old_archive_from_expsyms_cmds \
17412 archive_expsym_cmds \
17414 module_expsym_cmds \
17415 export_symbols_cmds \
17418 postuninstall_cmds \
17420 sys_lib_search_path_spec \
17421 sys_lib_dlsearch_path_spec \
17422 old_archive_cmds_CXX \
17423 old_archive_from_new_cmds_CXX \
17424 old_archive_from_expsyms_cmds_CXX \
17426 archive_expsym_cmds_CXX \
17428 module_expsym_cmds_CXX \
17429 export_symbols_cmds_CXX \
17430 prelink_cmds_CXX; do
17431 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17432 *[\\\\\\\`\\"\\\$]*)
17433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17441 # Fix-up fallback echo if it was mangled by the above quoting rules.
17443 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17447 ac_aux_dir='$ac_aux_dir'
17448 xsi_shell='$xsi_shell'
17449 lt_shell_append='$lt_shell_append'
17451 # See if we are running on zsh, and set the options which allow our
17452 # commands through without removal of \ escapes INIT.
17453 if test -n "\${ZSH_VERSION+set}" ; then
17454 setopt NO_GLOB_SUBST
17460 TIMESTAMP='$TIMESTAMP'
17471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17473 # Handling of arguments.
17474 for ac_config_target in $ac_config_targets
17476 case $ac_config_target in
17477 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17478 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17479 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17481 "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
17482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17483 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17484 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17486 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17491 # If the user did not use the arguments to specify the items to instantiate,
17492 # then the envvar interface is used. Set only those that are not.
17493 # We use the long form for the default assignment because of an extremely
17494 # bizarre bug on SunOS 4.1.3.
17495 if $ac_need_defaults; then
17496 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17497 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17498 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17501 # Have a temporary directory for convenience. Make it in the build tree
17502 # simply because there is no reason against having it here, and in addition,
17503 # creating and moving files from /tmp can sometimes cause problems.
17504 # Hook for its removal unless debugging.
17505 # Note that there is a small window in which the directory will not be cleaned:
17506 # after its creation but before its name has been assigned to `$tmp'.
17510 trap 'exit_status=$?
17511 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17513 trap 'as_fn_exit 1' 1 2 13 15
17515 # Create a (secure) tmp directory for tmp files.
17518 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17519 test -n "$tmp" && test -d "$tmp"
17522 tmp=./conf$$-$RANDOM
17523 (umask 077 && mkdir "$tmp")
17524 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17526 # Set up the scripts for CONFIG_FILES section.
17527 # No need to generate them if there are no CONFIG_FILES.
17528 # This happens for instance with `./config.status config.h'.
17529 if test -n "$CONFIG_FILES"; then
17532 ac_cr=`echo X | tr X '\015'`
17533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17534 # But we know of no other shell where ac_cr would be empty at this
17535 # point, so we can use a bashism as a fallback.
17536 if test "x$ac_cr" = x; then
17537 eval ac_cr=\$\'\\r\'
17539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17543 ac_cs_awk_cr=$ac_cr
17546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17551 echo "cat >conf$$subs.awk <<_ACEOF" &&
17552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17554 } >conf$$subs.sh ||
17555 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17558 for ac_last_try in false false false false false :; do
17559 . ./conf$$subs.sh ||
17560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17562 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17563 if test $ac_delim_n = $ac_delim_num; then
17565 elif $ac_last_try; then
17566 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17571 rm -f conf$$subs.sh
17573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17578 s/^/S["/; s/!.*/"]=/
17588 s/\(.\{148\}\).*/\1/
17590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17602 s/\(.\{148\}\).*/\1/
17604 s/["\\]/\\&/g; s/^/"/; s/$/"/
17608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17613 ' <conf$$subs.awk | sed '
17618 ' >>$CONFIG_STATUS || ac_write_fail=1
17619 rm -f conf$$subs.awk
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17622 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17623 for (key in S) S_is_set[key] = 1
17629 nfields = split(line, field, "@")
17631 len = length(field[1])
17632 for (i = 2; i < nfields; i++) {
17634 keylen = length(key)
17635 if (S_is_set[key]) {
17637 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17638 len += length(value) + length(field[++i])
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17651 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17654 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17655 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17660 # trailing colons and then remove the whole line if VPATH becomes empty
17661 # (actually we leave an empty line to preserve line numbers).
17662 if test "x$srcdir" = x.; then
17663 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17664 s/:*\$(srcdir):*/:/
17665 s/:*\${srcdir}:*/:/
17667 s/^\([^=]*=[ ]*\):*/\1/
17673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17674 fi # test -n "$CONFIG_FILES"
17676 # Set up the scripts for CONFIG_HEADERS section.
17677 # No need to generate them if there are no CONFIG_HEADERS.
17678 # This happens for instance with `./config.status Makefile'.
17679 if test -n "$CONFIG_HEADERS"; then
17680 cat >"$tmp/defines.awk" <<\_ACAWK ||
17684 # Transform confdefs.h into an awk script `defines.awk', embedded as
17685 # here-document in config.status, that substitutes the proper values into
17686 # config.h.in to produce config.h.
17688 # Create a delimiter string that does not exist in confdefs.h, to ease
17689 # handling of long lines.
17691 for ac_last_try in false false :; do
17692 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17693 if test -z "$ac_t"; then
17695 elif $ac_last_try; then
17696 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17702 # For the awk script, D is an array of macro values keyed by name,
17703 # likewise P contains macro parameters if any. Preserve backslash
17704 # newline sequences.
17706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17708 s/.\{148\}/&'"$ac_delim"'/g
17711 s/^[ ]*#[ ]*define[ ][ ]*/ /
17718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17725 D["\1"]=" \3\\\\\\n"\\/p
17727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17732 s/.\{148\}/&'"$ac_delim"'/g
17737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17742 ' <confdefs.h | sed '
17743 s/'"$ac_delim"'/"\\\
17744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747 for (key in D) D_is_set[key] = 1
17750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17752 split(line, arg, " ")
17753 if (arg[1] == "#") {
17757 defundef = substr(arg[1], 2)
17760 split(mac1, mac2, "(") #)
17762 prefix = substr(line, 1, index(line, defundef) - 1)
17763 if (D_is_set[macro]) {
17764 # Preserve the white space surrounding the "#".
17765 print prefix "define", macro P[macro] D[macro]
17768 # Replace #undef with comments. This is necessary, for example,
17769 # in the case of _POSIX_SOURCE, which is predefined and required
17770 # on some systems where configure will not decide to define it.
17771 if (defundef == "undef") {
17772 print "/*", prefix defundef, macro, "*/"
17780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17781 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17782 fi # test -n "$CONFIG_HEADERS"
17785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17790 :[FHLC]) ac_mode=$ac_tag; continue;;
17792 case $ac_mode$ac_tag in
17794 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17795 :[FH]-) ac_tag=-:-;;
17796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17813 -) ac_f="$tmp/stdin";;
17814 *) # Look for the file first in the build tree, then in the source tree
17815 # (if the path is not absolute). The absolute path cannot be DOS-style,
17816 # because $ac_f cannot contain `:'.
17820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17822 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17825 as_fn_append ac_file_inputs " '$ac_f'"
17828 # Let's still pretend it is `configure' which instantiates (i.e., don't
17829 # use $as_me), people would be surprised to read:
17830 # /* config.h. Generated by config.status. */
17831 configure_input='Generated from '`
17832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17834 if test x"$ac_file" != x-; then
17835 configure_input="$ac_file. $configure_input"
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17837 $as_echo "$as_me: creating $ac_file" >&6;}
17839 # Neutralize special characters interpreted by sed in replacement strings.
17840 case $configure_input in #(
17841 *\&* | *\|* | *\\* )
17842 ac_sed_conf_input=`$as_echo "$configure_input" |
17843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17844 *) ac_sed_conf_input=$configure_input;;
17848 *:-:* | *:-) cat >"$tmp/stdin" \
17849 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17854 ac_dir=`$as_dirname -- "$ac_file" ||
17855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17856 X"$ac_file" : 'X\(//\)[^/]' \| \
17857 X"$ac_file" : 'X\(//\)$' \| \
17858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17859 $as_echo X"$ac_file" |
17860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17864 /^X\(\/\/\)[^/].*/{
17877 as_dir="$ac_dir"; as_fn_mkdir_p
17881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17884 # A ".." for each directory in $ac_dir_suffix.
17885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17886 case $ac_top_builddir_sub in
17887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17891 ac_abs_top_builddir=$ac_pwd
17892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17893 # for backward compatibility:
17894 ac_top_builddir=$ac_top_build_prefix
17897 .) # We are building in place.
17899 ac_top_srcdir=$ac_top_builddir_sub
17900 ac_abs_top_srcdir=$ac_pwd ;;
17901 [\\/]* | ?:[\\/]* ) # Absolute name.
17902 ac_srcdir=$srcdir$ac_dir_suffix;
17903 ac_top_srcdir=$srcdir
17904 ac_abs_top_srcdir=$srcdir ;;
17905 *) # Relative name.
17906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17907 ac_top_srcdir=$ac_top_build_prefix$srcdir
17908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17923 ac_MKDIR_P=$MKDIR_P
17925 [\\/$]* | ?:[\\/]* ) ;;
17926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17931 # If the template does not know about datarootdir, expand it.
17932 # FIXME: This hack should be removed a few years after 2.60.
17933 ac_datarootdir_hack=; ac_datarootdir_seen=
17944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17945 *datarootdir*) ac_datarootdir_seen=yes;;
17946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17951 ac_datarootdir_hack='
17952 s&@datadir@&$datadir&g
17953 s&@docdir@&$docdir&g
17954 s&@infodir@&$infodir&g
17955 s&@localedir@&$localedir&g
17956 s&@mandir@&$mandir&g
17957 s&\\\${datarootdir}&$datarootdir&g' ;;
17961 # Neutralize VPATH when `$srcdir' = `.'.
17962 # Shell code in configure.ac might set extrasub.
17963 # FIXME: do we really want to maintain this feature?
17964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17965 ac_sed_extra="$ac_vpsub
17968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17971 s|@configure_input@|$ac_sed_conf_input|;t t
17972 s&@top_builddir@&$ac_top_builddir_sub&;t t
17973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17974 s&@srcdir@&$ac_srcdir&;t t
17975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17976 s&@top_srcdir@&$ac_top_srcdir&;t t
17977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17978 s&@builddir@&$ac_builddir&;t t
17979 s&@abs_builddir@&$ac_abs_builddir&;t t
17980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17981 s&@INSTALL@&$ac_INSTALL&;t t
17982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17983 $ac_datarootdir_hack
17985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17986 || as_fn_error "could not create $ac_file" "$LINENO" 5
17988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17989 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17992 which seems to be undefined. Please make sure it is defined." >&5
17993 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17994 which seems to be undefined. Please make sure it is defined." >&2;}
17998 -) cat "$tmp/out" && rm -f "$tmp/out";;
17999 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18001 || as_fn_error "could not create $ac_file" "$LINENO" 5
18007 if test x"$ac_file" != x-; then
18009 $as_echo "/* $configure_input */" \
18010 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18011 } >"$tmp/config.h" \
18012 || as_fn_error "could not create $ac_file" "$LINENO" 5
18013 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18015 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18018 mv "$tmp/config.h" "$ac_file" \
18019 || as_fn_error "could not create $ac_file" "$LINENO" 5
18022 $as_echo "/* $configure_input */" \
18023 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18024 || as_fn_error "could not create -" "$LINENO" 5
18026 # Compute "$ac_file"'s index in $config_headers.
18029 for _am_header in $config_headers :; do
18030 case $_am_header in
18031 $_am_arg | $_am_arg:* )
18034 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18037 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18038 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18039 X"$_am_arg" : 'X\(//\)[^/]' \| \
18040 X"$_am_arg" : 'X\(//\)$' \| \
18041 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18042 $as_echo X"$_am_arg" |
18043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18047 /^X\(\/\/\)[^/].*/{
18059 s/.*/./; q'`/stamp-h$_am_stamp_count
18062 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18063 $as_echo "$as_me: executing $ac_file commands" >&6;}
18068 case $ac_file$ac_mode in
18069 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18070 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18071 # are listed without --file. Let's play safe and only enable the eval
18072 # if we detect the quoting.
18073 case $CONFIG_FILES in
18074 *\'*) eval set x "$CONFIG_FILES" ;;
18075 *) set x $CONFIG_FILES ;;
18080 # Strip MF so we end up with the name of the file.
18081 mf=`echo "$mf" | sed -e 's/:.*$//'`
18082 # Check whether this is an Automake generated Makefile or not.
18083 # We used to match only the files named `Makefile.in', but
18084 # some people rename them; so instead we look at the file content.
18085 # Grep'ing the first line is not enough: some people post-process
18086 # each Makefile.in and add a new line on top of each file to say so.
18087 # Grep'ing the whole file is not good either: AIX grep has a line
18088 # limit of 2048, but all sed's we know have understand at least 4000.
18089 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18090 dirpart=`$as_dirname -- "$mf" ||
18091 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18092 X"$mf" : 'X\(//\)[^/]' \| \
18093 X"$mf" : 'X\(//\)$' \| \
18094 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18100 /^X\(\/\/\)[^/].*/{
18116 # Extract the definition of DEPDIR, am__include, and am__quote
18117 # from the Makefile without running `make'.
18118 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18119 test -z "$DEPDIR" && continue
18120 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18121 test -z "am__include" && continue
18122 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18123 # When using ansi2knr, U may be empty or an underscore; expand it
18124 U=`sed -n 's/^U = //p' < "$mf"`
18125 # Find all dependency output files, they are included files with
18126 # $(DEPDIR) in their names. We invoke sed twice because it is the
18127 # simplest approach to changing $(DEPDIR) to its actual value in the
18129 for file in `sed -n "
18130 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18131 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18132 # Make sure the directory exists.
18133 test -f "$dirpart/$file" && continue
18134 fdir=`$as_dirname -- "$file" ||
18135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18136 X"$file" : 'X\(//\)[^/]' \| \
18137 X"$file" : 'X\(//\)$' \| \
18138 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18139 $as_echo X"$file" |
18140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18144 /^X\(\/\/\)[^/].*/{
18157 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18158 # echo "creating $dirpart/$file"
18159 echo '# dummy' > "$dirpart/$file"
18166 # See if we are running on zsh, and set the options which allow our
18167 # commands through without removal of \ escapes.
18168 if test -n "${ZSH_VERSION+set}" ; then
18169 setopt NO_GLOB_SUBST
18172 cfgfile="${ofile}T"
18173 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18176 cat <<_LT_EOF >> "$cfgfile"
18179 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18180 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18184 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18185 # 2006, 2007, 2008 Free Software Foundation, Inc.
18186 # Written by Gordon Matzigkeit, 1996
18188 # This file is part of GNU Libtool.
18190 # GNU Libtool is free software; you can redistribute it and/or
18191 # modify it under the terms of the GNU General Public License as
18192 # published by the Free Software Foundation; either version 2 of
18193 # the License, or (at your option) any later version.
18195 # As a special exception to the GNU General Public License,
18196 # if you distribute this file as part of a program or library that
18197 # is built using GNU Libtool, you may include this file under the
18198 # same distribution terms that you use for the rest of that program.
18200 # GNU Libtool is distributed in the hope that it will be useful,
18201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18203 # GNU General Public License for more details.
18205 # You should have received a copy of the GNU General Public License
18206 # along with GNU Libtool; see the file COPYING. If not, a copy
18207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18208 # obtained by writing to the Free Software Foundation, Inc.,
18209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18212 # The names of the tagged configurations supported by this script.
18213 available_tags="CXX "
18215 # ### BEGIN LIBTOOL CONFIG
18217 # Which release of libtool.m4 was used?
18218 macro_version=$macro_version
18219 macro_revision=$macro_revision
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18227 # What type of objects to build.
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18234 host_alias=$host_alias
18238 # The build system.
18239 build_alias=$build_alias
18243 # A sed program that does not truncate output.
18246 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18247 Xsed="\$SED -e 1s/^X//"
18249 # A grep program that handles long lines.
18255 # A literal string matcher.
18258 # A BSD- or MS-compatible name lister.
18261 # Whether we need soft or hard links.
18264 # What is the maximum length of a command?
18265 max_cmd_len=$max_cmd_len
18267 # Object file suffix (normally "o").
18270 # Executable file suffix (normally "").
18273 # whether the shell understands "unset".
18276 # turn spaces into newlines.
18279 # turn newlines into spaces.
18282 # How to create reloadable object files.
18283 reload_flag=$lt_reload_flag
18284 reload_cmds=$lt_reload_cmds
18286 # An object symbol dumper.
18287 OBJDUMP=$lt_OBJDUMP
18289 # Method to check whether dependent libraries are shared objects.
18290 deplibs_check_method=$lt_deplibs_check_method
18292 # Command to use when deplibs_check_method == "file_magic".
18293 file_magic_cmd=$lt_file_magic_cmd
18297 AR_FLAGS=$lt_AR_FLAGS
18299 # A symbol stripping program.
18302 # Commands used to install an old-style archive.
18304 old_postinstall_cmds=$lt_old_postinstall_cmds
18305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18310 # LTCC compiler flags.
18311 LTCFLAGS=$lt_CFLAGS
18313 # Take the output of nm and produce a listing of raw symbols and C names.
18314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18316 # Transform the output of nm in a proper C declaration.
18317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18319 # Transform the output of nm in a C name address pair.
18320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18322 # Transform the output of nm in a C name address pair when lib prefix is needed.
18323 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18325 # The name of the directory that contains temporary libtool files.
18328 # Shell to use when invoking shell scripts.
18331 # An echo program that does not interpret backslashes.
18334 # Used to examine libraries when file_magic_cmd begins with "file".
18335 MAGIC_CMD=$MAGIC_CMD
18337 # Must we lock files when doing compilation?
18338 need_locks=$lt_need_locks
18340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18341 DSYMUTIL=$lt_DSYMUTIL
18343 # Tool to change global to local symbols on Mac OS X.
18346 # Tool to manipulate fat objects and archives on Mac OS X.
18349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18353 OTOOL64=$lt_OTOOL64
18355 # Old archive suffix (normally "a").
18358 # Shared library suffix (normally ".so").
18359 shrext_cmds=$lt_shrext_cmds
18361 # The commands to extract the exported symbol list from a shared archive.
18362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18364 # Variables whose values should be saved in libtool wrapper scripts and
18365 # restored at link time.
18366 variables_saved_for_relink=$lt_variables_saved_for_relink
18368 # Do we need the "lib" prefix for modules?
18369 need_lib_prefix=$need_lib_prefix
18371 # Do we need a version for libraries?
18372 need_version=$need_version
18374 # Library versioning type.
18375 version_type=$version_type
18377 # Shared library runtime path variable.
18378 runpath_var=$runpath_var
18380 # Shared library path variable.
18381 shlibpath_var=$shlibpath_var
18383 # Is shlibpath searched before the hard-coded library search path?
18384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18386 # Format of library name prefix.
18387 libname_spec=$lt_libname_spec
18389 # List of archive names. First name is the real one, the rest are links.
18390 # The last name is the one that the linker finds with -lNAME
18391 library_names_spec=$lt_library_names_spec
18393 # The coded name of the library, if different from the real name.
18394 soname_spec=$lt_soname_spec
18396 # Command to use after installation of a shared archive.
18397 postinstall_cmds=$lt_postinstall_cmds
18399 # Command to use after uninstallation of a shared archive.
18400 postuninstall_cmds=$lt_postuninstall_cmds
18402 # Commands used to finish a libtool library installation in a directory.
18403 finish_cmds=$lt_finish_cmds
18405 # As "finish_cmds", except a single script fragment to be evaled but
18407 finish_eval=$lt_finish_eval
18409 # Whether we should hardcode library paths into libraries.
18410 hardcode_into_libs=$hardcode_into_libs
18412 # Compile-time system search path for libraries.
18413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18415 # Run-time system search path for libraries.
18416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18418 # Whether dlopen is supported.
18419 dlopen_support=$enable_dlopen
18421 # Whether dlopen of programs is supported.
18422 dlopen_self=$enable_dlopen_self
18424 # Whether dlopen of statically linked programs is supported.
18425 dlopen_self_static=$enable_dlopen_self_static
18427 # Commands to strip libraries.
18428 old_striplib=$lt_old_striplib
18429 striplib=$lt_striplib
18432 # The linker used to build libraries.
18435 # Commands used to build an old-style archive.
18436 old_archive_cmds=$lt_old_archive_cmds
18438 # A language specific compiler.
18441 # Is the compiler the GNU compiler?
18444 # Compiler flag to turn off builtin functions.
18445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18447 # How to pass a linker flag through the compiler.
18448 wl=$lt_lt_prog_compiler_wl
18450 # Additional compiler flags for building library objects.
18451 pic_flag=$lt_lt_prog_compiler_pic
18453 # Compiler flag to prevent dynamic linking.
18454 link_static_flag=$lt_lt_prog_compiler_static
18456 # Does compiler simultaneously support -c and -o options?
18457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18459 # Whether or not to add -lc for building shared libraries.
18460 build_libtool_need_lc=$archive_cmds_need_lc
18462 # Whether or not to disallow shared libs when runtime libs are static.
18463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18465 # Compiler flag to allow reflexive dlopens.
18466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18468 # Compiler flag to generate shared objects directly from archives.
18469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18471 # Whether the compiler copes with passing no objects directly.
18472 compiler_needs_object=$lt_compiler_needs_object
18474 # Create an old-style archive from a shared archive.
18475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18477 # Create a temporary old-style archive to link instead of a shared archive.
18478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18480 # Commands used to build a shared archive.
18481 archive_cmds=$lt_archive_cmds
18482 archive_expsym_cmds=$lt_archive_expsym_cmds
18484 # Commands used to build a loadable module if different from building
18485 # a shared archive.
18486 module_cmds=$lt_module_cmds
18487 module_expsym_cmds=$lt_module_expsym_cmds
18489 # Whether we are building with GNU ld or not.
18490 with_gnu_ld=$lt_with_gnu_ld
18492 # Flag that allows shared libraries with undefined symbols to be built.
18493 allow_undefined_flag=$lt_allow_undefined_flag
18495 # Flag that enforces no undefined symbols.
18496 no_undefined_flag=$lt_no_undefined_flag
18498 # Flag to hardcode \$libdir into a binary during linking.
18499 # This must work even if \$libdir does not exist
18500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18502 # If ld is used when linking, flag to hardcode \$libdir into a binary
18503 # during linking. This must work even if \$libdir does not exist.
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18506 # Whether we need a single "-rpath" flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18510 # DIR into the resulting binary.
18511 hardcode_direct=$hardcode_direct
18513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18514 # DIR into the resulting binary and the resulting library dependency is
18515 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18516 # library is relocated.
18517 hardcode_direct_absolute=$hardcode_direct_absolute
18519 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18520 # into the resulting binary.
18521 hardcode_minus_L=$hardcode_minus_L
18523 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18524 # into the resulting binary.
18525 hardcode_shlibpath_var=$hardcode_shlibpath_var
18527 # Set to "yes" if building a shared library automatically hardcodes DIR
18528 # into the library and all subsequent libraries and executables linked
18530 hardcode_automatic=$hardcode_automatic
18532 # Set to yes if linker adds runtime paths of dependent libraries
18533 # to runtime path list.
18534 inherit_rpath=$inherit_rpath
18536 # Whether libtool must link a program against all its dependency libraries.
18537 link_all_deplibs=$link_all_deplibs
18539 # Fix the shell variable \$srcfile for the compiler.
18540 fix_srcfile_path=$lt_fix_srcfile_path
18542 # Set to "yes" if exported symbols are required.
18543 always_export_symbols=$always_export_symbols
18545 # The commands to list exported symbols.
18546 export_symbols_cmds=$lt_export_symbols_cmds
18548 # Symbols that should not be listed in the preloaded symbols.
18549 exclude_expsyms=$lt_exclude_expsyms
18551 # Symbols that must always be exported.
18552 include_expsyms=$lt_include_expsyms
18554 # Commands necessary for linking programs (against libraries) with templates.
18555 prelink_cmds=$lt_prelink_cmds
18557 # Specify filename containing input files.
18558 file_list_spec=$lt_file_list_spec
18560 # How to hardcode a shared library path into an executable.
18561 hardcode_action=$hardcode_action
18563 # The directories searched by this compiler when creating a shared library.
18564 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18566 # Dependencies to place before and after the objects being linked to
18567 # create a shared library.
18568 predep_objects=$lt_predep_objects
18569 postdep_objects=$lt_postdep_objects
18570 predeps=$lt_predeps
18571 postdeps=$lt_postdeps
18573 # The library search path used internally by the compiler when linking
18574 # a shared library.
18575 compiler_lib_search_path=$lt_compiler_lib_search_path
18577 # ### END LIBTOOL CONFIG
18583 cat <<\_LT_EOF >> "$cfgfile"
18584 # AIX sometimes has problems with the GCC collect2 program. For some
18585 # reason, if we set the COLLECT_NAMES environment variable, the problems
18586 # vanish in a puff of smoke.
18587 if test "X${COLLECT_NAMES+set}" != Xset; then
18589 export COLLECT_NAMES
18596 ltmain="$ac_aux_dir/ltmain.sh"
18599 # We use sed instead of cat because bash on DJGPP gets confused if
18600 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18601 # text mode, it properly converts lines to CR/LF. This bash problem
18602 # is reportedly fixed, but why not run on old versions too?
18603 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18604 || (rm -f "$cfgfile"; exit 1)
18608 cat << \_LT_EOF >> "$cfgfile"
18610 # func_dirname file append nondir_replacement
18611 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18612 # otherwise set result to NONDIR_REPLACEMENT.
18616 */*) func_dirname_result="${1%/*}${2}" ;;
18617 * ) func_dirname_result="${3}" ;;
18621 # func_basename file
18624 func_basename_result="${1##*/}"
18627 # func_dirname_and_basename file append nondir_replacement
18628 # perform func_basename and func_dirname in a single function
18630 # dirname: Compute the dirname of FILE. If nonempty,
18631 # add APPEND to the result, otherwise set result
18632 # to NONDIR_REPLACEMENT.
18633 # value returned in "$func_dirname_result"
18634 # basename: Compute filename of FILE.
18635 # value retuned in "$func_basename_result"
18636 # Implementation must be kept synchronized with func_dirname
18637 # and func_basename. For efficiency, we do not delegate to
18638 # those functions but instead duplicate the functionality here.
18639 func_dirname_and_basename ()
18642 */*) func_dirname_result="${1%/*}${2}" ;;
18643 * ) func_dirname_result="${3}" ;;
18645 func_basename_result="${1##*/}"
18648 # func_stripname prefix suffix name
18649 # strip PREFIX and SUFFIX off of NAME.
18650 # PREFIX and SUFFIX must not contain globbing or regex special
18651 # characters, hashes, percent signs, but SUFFIX may contain a leading
18652 # dot (in which case that matches only a dot).
18655 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18656 # positional parameters, so assign one to ordinary parameter first.
18657 func_stripname_result=${3}
18658 func_stripname_result=${func_stripname_result#"${1}"}
18659 func_stripname_result=${func_stripname_result%"${2}"}
18665 func_opt_split_opt=${1%%=*}
18666 func_opt_split_arg=${1#*=}
18673 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18674 *) func_lo2o_result=${1} ;;
18678 # func_xform libobj-or-source
18681 func_xform_result=${1%.*}.lo
18684 # func_arith arithmetic-term...
18687 func_arith_result=$(( $* ))
18691 # STRING may not start with a hyphen.
18694 func_len_result=${#1}
18699 *) # Bourne compatible functions.
18700 cat << \_LT_EOF >> "$cfgfile"
18702 # func_dirname file append nondir_replacement
18703 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18704 # otherwise set result to NONDIR_REPLACEMENT.
18707 # Extract subdirectory from the argument.
18708 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18709 if test "X$func_dirname_result" = "X${1}"; then
18710 func_dirname_result="${3}"
18712 func_dirname_result="$func_dirname_result${2}"
18716 # func_basename file
18719 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18723 # func_stripname prefix suffix name
18724 # strip PREFIX and SUFFIX off of NAME.
18725 # PREFIX and SUFFIX must not contain globbing or regex special
18726 # characters, hashes, percent signs, but SUFFIX may contain a leading
18727 # dot (in which case that matches only a dot).
18728 # func_strip_suffix prefix name
18732 .*) func_stripname_result=`$ECHO "X${3}" \
18733 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18734 *) func_stripname_result=`$ECHO "X${3}" \
18735 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18740 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18741 my_sed_long_arg='1s/^-[^=]*=//'
18746 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18747 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18753 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18756 # func_xform libobj-or-source
18759 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18762 # func_arith arithmetic-term...
18765 func_arith_result=`expr "$@"`
18769 # STRING may not start with a hyphen.
18772 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18778 case $lt_shell_append in
18780 cat << \_LT_EOF >> "$cfgfile"
18782 # func_append var value
18783 # Append VALUE to the end of shell variable VAR.
18791 cat << \_LT_EOF >> "$cfgfile"
18793 # func_append var value
18794 # Append VALUE to the end of shell variable VAR.
18805 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18806 || (rm -f "$cfgfile"; exit 1)
18808 mv -f "$cfgfile" "$ofile" ||
18809 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18813 cat <<_LT_EOF >> "$ofile"
18815 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18817 # The linker used to build libraries.
18820 # Commands used to build an old-style archive.
18821 old_archive_cmds=$lt_old_archive_cmds_CXX
18823 # A language specific compiler.
18824 CC=$lt_compiler_CXX
18826 # Is the compiler the GNU compiler?
18829 # Compiler flag to turn off builtin functions.
18830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18832 # How to pass a linker flag through the compiler.
18833 wl=$lt_lt_prog_compiler_wl_CXX
18835 # Additional compiler flags for building library objects.
18836 pic_flag=$lt_lt_prog_compiler_pic_CXX
18838 # Compiler flag to prevent dynamic linking.
18839 link_static_flag=$lt_lt_prog_compiler_static_CXX
18841 # Does compiler simultaneously support -c and -o options?
18842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18847 # Whether or not to disallow shared libs when runtime libs are static.
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18850 # Compiler flag to allow reflexive dlopens.
18851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18853 # Compiler flag to generate shared objects directly from archives.
18854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18856 # Whether the compiler copes with passing no objects directly.
18857 compiler_needs_object=$lt_compiler_needs_object_CXX
18859 # Create an old-style archive from a shared archive.
18860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18862 # Create a temporary old-style archive to link instead of a shared archive.
18863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18865 # Commands used to build a shared archive.
18866 archive_cmds=$lt_archive_cmds_CXX
18867 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18869 # Commands used to build a loadable module if different from building
18870 # a shared archive.
18871 module_cmds=$lt_module_cmds_CXX
18872 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18874 # Whether we are building with GNU ld or not.
18875 with_gnu_ld=$lt_with_gnu_ld_CXX
18877 # Flag that allows shared libraries with undefined symbols to be built.
18878 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18880 # Flag that enforces no undefined symbols.
18881 no_undefined_flag=$lt_no_undefined_flag_CXX
18883 # Flag to hardcode \$libdir into a binary during linking.
18884 # This must work even if \$libdir does not exist
18885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18887 # If ld is used when linking, flag to hardcode \$libdir into a binary
18888 # during linking. This must work even if \$libdir does not exist.
18889 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18891 # Whether we need a single "-rpath" flag with a separated argument.
18892 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18895 # DIR into the resulting binary.
18896 hardcode_direct=$hardcode_direct_CXX
18898 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18899 # DIR into the resulting binary and the resulting library dependency is
18900 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18901 # library is relocated.
18902 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18904 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18905 # into the resulting binary.
18906 hardcode_minus_L=$hardcode_minus_L_CXX
18908 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18909 # into the resulting binary.
18910 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18912 # Set to "yes" if building a shared library automatically hardcodes DIR
18913 # into the library and all subsequent libraries and executables linked
18915 hardcode_automatic=$hardcode_automatic_CXX
18917 # Set to yes if linker adds runtime paths of dependent libraries
18918 # to runtime path list.
18919 inherit_rpath=$inherit_rpath_CXX
18921 # Whether libtool must link a program against all its dependency libraries.
18922 link_all_deplibs=$link_all_deplibs_CXX
18924 # Fix the shell variable \$srcfile for the compiler.
18925 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18927 # Set to "yes" if exported symbols are required.
18928 always_export_symbols=$always_export_symbols_CXX
18930 # The commands to list exported symbols.
18931 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18933 # Symbols that should not be listed in the preloaded symbols.
18934 exclude_expsyms=$lt_exclude_expsyms_CXX
18936 # Symbols that must always be exported.
18937 include_expsyms=$lt_include_expsyms_CXX
18939 # Commands necessary for linking programs (against libraries) with templates.
18940 prelink_cmds=$lt_prelink_cmds_CXX
18942 # Specify filename containing input files.
18943 file_list_spec=$lt_file_list_spec_CXX
18945 # How to hardcode a shared library path into an executable.
18946 hardcode_action=$hardcode_action_CXX
18948 # The directories searched by this compiler when creating a shared library.
18949 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18951 # Dependencies to place before and after the objects being linked to
18952 # create a shared library.
18953 predep_objects=$lt_predep_objects_CXX
18954 postdep_objects=$lt_postdep_objects_CXX
18955 predeps=$lt_predeps_CXX
18956 postdeps=$lt_postdeps_CXX
18958 # The library search path used internally by the compiler when linking
18959 # a shared library.
18960 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18962 # ### END LIBTOOL TAG CONFIG: CXX
18973 ac_clean_files=$ac_clean_files_save
18975 test $ac_write_fail = 0 ||
18976 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18979 # configure is writing to config.log, and then calls config.status.
18980 # config.status does its own redirection, appending to config.log.
18981 # Unfortunately, on DOS this fails, as config.log is still kept open
18982 # by configure, so config.status won't be able to write to it; its
18983 # output is simply discarded. So we exec the FD to /dev/null,
18984 # effectively closing config.log, so it can be properly (re)opened and
18985 # appended to by config.status. When coming back to configure, we
18986 # need to make the FD available again.
18987 if test "$no_create" != yes; then
18989 ac_config_status_args=
18990 test "$silent" = yes &&
18991 ac_config_status_args="$ac_config_status_args --quiet"
18993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18996 # would make configure fail if this is the last instruction.
18997 $ac_cs_success || as_fn_exit $?
18999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19001 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}