2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.67 for GNU Python Runtime Library 0.1.
6 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in @%:@(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in @%:@(
147 set -o posix ;; @%:@(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
190 case $as_dir in @%:@(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 @%:@ Portably unset VAR.
254 { eval $1=; unset $1;}
258 @%:@ as_fn_set_status STATUS
259 @%:@ -----------------------
260 @%:@ Set @S|@? to STATUS, without forking.
264 } @%:@ as_fn_set_status
266 @%:@ as_fn_exit STATUS
267 @%:@ -----------------
268 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 @%:@ as_fn_append VAR VALUE
324 @%:@ ----------------------
325 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
326 @%:@ advantage of any shell optimizations that allow amortized linear growth over
327 @%:@ repeated appends, instead of the typical quadratic growth present in naive
328 @%:@ implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
341 @%:@ as_fn_arith ARG...
342 @%:@ ------------------
343 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
344 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
345 @%:@ must be portable across @S|@(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
360 @%:@ ----------------------------------------
361 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 @%:@ script with STATUS, using 1 if that was 0.
366 as_status=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in @%:@(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='GNU Python Runtime Library'
700 PACKAGE_TARNAME='libgpython'
701 PACKAGE_VERSION='0.1'
702 PACKAGE_STRING='GNU Python Runtime Library 0.1'
704 PACKAGE_URL='http://www.gnu.org/software/libgpython/'
706 # Factoring default headers for most tests.
707 ac_includes_default="\
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
719 # ifdef HAVE_STDLIB_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
743 ac_subst_vars='am__EXEEXT_FALSE
765 INSTALL_STRIP_PROGRAM
854 program_transform_name
867 enable_option_checking
875 enable_dependency_tracking
877 ac_precious_vars='build_alias
892 # Initialize some variables set by options.
894 ac_init_version=false
895 ac_unrecognized_opts=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
906 program_transform_name=s,x,x,
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1199 -site=* | --site=* | --sit=*)
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1255 eval with_$ac_useropt=no ;;
1258 # Obsolete; use --with-x.
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1326 # Be sure to have absolute directory names.
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used" >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures GNU Python Runtime Library 0.1 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 @<:@@S|@ac_default_prefix@:>@
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libgpython@:>@
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of GNU Python Runtime Library 0.1:";;
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1511 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1512 --enable-fast-install@<:@=PKGS@:>@
1513 optimize for fast installation @<:@default=yes@:>@
1514 --disable-libtool-lock avoid locking (might break parallel builds)
1515 --disable-dependency-tracking speeds up one-time build
1516 --enable-dependency-tracking do not reject slow dependency extractors
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1523 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1524 --with-libgpython-debug=yes/no
1525 With Debug symbols, default no.
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
1538 CXXCPP C++ preprocessor
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1544 GNU Python Runtime Library home page: <http://www.gnu.org/software/libgpython/>.
1545 General help using GNU software: <http://www.gnu.org/gethelp/>.
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1575 .) # We are building in place.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1608 GNU Python Runtime Library configure 0.1
1609 generated by GNU Autoconf 2.67
1611 Copyright (C) 2010 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1622 @%:@ ac_fn_c_try_compile LINENO
1623 @%:@ --------------------------
1624 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 as_fn_set_status $ac_retval
1658 } @%:@ ac_fn_c_try_compile
1660 @%:@ ac_fn_c_try_cpp LINENO
1661 @%:@ ----------------------
1662 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_cpp conftest.$ac_ext"
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } > conftest.i && {
1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 as_fn_set_status $ac_retval
1695 } @%:@ ac_fn_c_try_cpp
1697 @%:@ ac_fn_cxx_try_compile LINENO
1698 @%:@ ----------------------------
1699 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1700 ac_fn_cxx_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_cxx_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1733 } @%:@ ac_fn_cxx_try_compile
1735 @%:@ ac_fn_c_try_link LINENO
1736 @%:@ -----------------------
1737 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 as_fn_set_status $ac_retval
1779 } @%:@ ac_fn_c_try_link
1781 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782 @%:@ -------------------------------------------------------
1783 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1784 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1785 ac_fn_c_check_header_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval "test \"\${$3+set}\"" = set; then :
1791 $as_echo_n "(cached) " >&6
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1798 if ac_fn_c_try_compile "$LINENO"; then :
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } @%:@ ac_fn_c_check_header_compile
1812 @%:@ ac_fn_c_try_run LINENO
1813 @%:@ ----------------------
1814 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1815 @%:@ that executables *can* be run.
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=$ac_status
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 as_fn_set_status $ac_retval
1852 } @%:@ ac_fn_c_try_run
1854 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1855 @%:@ ----------------------------------
1856 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval "test \"\${$3+set}\"" = set; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1877 # include <limits.h>
1879 # include <assert.h>
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1906 if ac_fn_c_try_link "$LINENO"; then :
1911 rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } @%:@ ac_fn_c_check_func
1921 @%:@ ac_fn_cxx_try_cpp LINENO
1922 @%:@ ------------------------
1923 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_cpp ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } > conftest.i && {
1943 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 as_fn_set_status $ac_retval
1956 } @%:@ ac_fn_cxx_try_cpp
1958 @%:@ ac_fn_cxx_try_link LINENO
1959 @%:@ -------------------------
1960 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1961 ac_fn_cxx_try_link ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_cxx_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 as_fn_set_status $ac_retval
2002 } @%:@ ac_fn_cxx_try_link
2004 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 @%:@ --------------------------------------------
2006 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2007 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2009 ac_fn_c_compute_int ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if test "$cross_compiling" = yes; then
2013 # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2021 test_array @<:@0@:>@ = 0
2027 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2037 test_array @<:@0@:>@ = 0
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=$ac_mid; break
2046 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2047 if test $ac_lo -le $ac_mid; then
2051 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2063 test_array @<:@0@:>@ = 0
2069 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2079 test_array @<:@0@:>@ = 0
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=$ac_mid; break
2088 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2089 if test $ac_mid -le $ac_hi; then
2093 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2113 test_array @<:@0@:>@ = 0
2119 if ac_fn_c_try_compile "$LINENO"; then :
2122 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 case $ac_lo in @%:@((
2127 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2136 @%:@include <stdio.h>
2137 @%:@include <stdlib.h>
2142 FILE *f = fopen ("conftest.val", "w");
2147 long int i = longval ();
2150 fprintf (f, "%ld", i);
2154 unsigned long int i = ulongval ();
2157 fprintf (f, "%lu", i);
2159 /* Do not output a trailing newline, as this causes \r\n confusion
2160 on some platforms. */
2161 return ferror (f) || fclose (f) != 0;
2167 if ac_fn_c_try_run "$LINENO"; then :
2168 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2173 conftest.$ac_objext conftest.beam conftest.$ac_ext
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 as_fn_set_status $ac_retval
2180 } @%:@ ac_fn_c_compute_int
2182 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2183 @%:@ -------------------------------------------
2184 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2185 @%:@ variable VAR accordingly.
2186 ac_fn_c_check_type ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval "test \"\${$3+set}\"" = set; then :
2192 $as_echo_n "(cached) " >&6
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2220 if ac_fn_c_try_compile "$LINENO"; then :
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 } @%:@ ac_fn_c_check_type
2236 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2237 @%:@ -------------------------------------------------------
2238 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2239 @%:@ the include files in INCLUDES and setting the cache variable VAR
2241 ac_fn_c_check_header_mongrel ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 if eval "test \"\${$3+set}\"" = set; then :
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if eval "test \"\${$3+set}\"" = set; then :
2248 $as_echo_n "(cached) " >&6
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2254 # Is the header compilable?
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2256 $as_echo_n "checking $2 usability... " >&6; }
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_header_compiler=yes
2265 ac_header_compiler=no
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2269 $as_echo "$ac_header_compiler" >&6; }
2271 # Is the header present?
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2273 $as_echo_n "checking $2 presence... " >&6; }
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2278 if ac_fn_c_try_cpp "$LINENO"; then :
2279 ac_header_preproc=yes
2281 ac_header_preproc=no
2283 rm -f conftest.err conftest.i conftest.$ac_ext
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2285 $as_echo "$ac_header_preproc" >&6; }
2287 # So? What about this header?
2288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2291 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2297 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2299 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2301 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2303 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2309 $as_echo_n "checking for $2... " >&6; }
2310 if eval "test \"\${$3+set}\"" = set; then :
2311 $as_echo_n "(cached) " >&6
2313 eval "$3=\$ac_header_compiler"
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 } @%:@ ac_fn_c_check_header_mongrel
2322 cat >config.log <<_ACEOF
2323 This file contains any messages produced by compilers while
2324 running configure, to aid debugging if configure makes a mistake.
2326 It was created by GNU Python Runtime Library $as_me 0.1, which was
2327 generated by GNU Autoconf 2.67. Invocation command line was
2339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2346 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2348 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2349 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2351 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2352 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2353 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2354 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 $as_echo "PATH: $as_dir"
2379 # Keep a trace of the command line.
2380 # Strip out --no-create and --no-recursion so they do not pile up.
2381 # Strip out --silent because we don't want to record it for future runs.
2382 # Also quote any args containing shell meta-characters.
2383 # Make two passes to allow for proper duplicate-argument suppression.
2387 ac_must_keep_next=false
2393 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2395 | -silent | --silent | --silen | --sile | --sil)
2398 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2403 as_fn_append ac_configure_args1 " '$ac_arg'"
2404 if test $ac_must_keep_next = true; then
2405 ac_must_keep_next=false # Got value, back to normal.
2408 *=* | --config-cache | -C | -disable-* | --disable-* \
2409 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2410 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2411 | -with-* | --with-* | -without-* | --without-* | --x)
2412 case "$ac_configure_args0 " in
2413 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 -* ) ac_must_keep_next=true ;;
2419 as_fn_append ac_configure_args " '$ac_arg'"
2424 { ac_configure_args0=; unset ac_configure_args0;}
2425 { ac_configure_args1=; unset ac_configure_args1;}
2427 # When interrupted or exit'd, cleanup temporary files, and complete
2428 # config.log. We remove comments because anyway the quotes in there
2429 # would cause problems or look ugly.
2430 # WARNING: Use '\'' to represent an apostrophe within the trap.
2431 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2432 trap 'exit_status=$?
2433 # Save into config.log some information that might help in debugging.
2437 $as_echo "## ---------------- ##
2438 ## Cache variables. ##
2439 ## ---------------- ##"
2441 # The following way of writing the cache mishandles newlines in values,
2443 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2444 eval ac_val=\$$ac_var
2448 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2452 _ | IFS | as_nl) ;; #(
2453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2454 *) { eval $ac_var=; unset $ac_var;} ;;
2459 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2460 *${as_nl}ac_space=\ *)
2462 "s/'\''/'\''\\\\'\'''\''/g;
2463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2473 $as_echo "## ----------------- ##
2474 ## Output variables. ##
2475 ## ----------------- ##"
2477 for ac_var in $ac_subst_vars
2479 eval ac_val=\$$ac_var
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 $as_echo "$ac_var='\''$ac_val'\''"
2487 if test -n "$ac_subst_files"; then
2488 $as_echo "## ------------------- ##
2489 ## File substitutions. ##
2490 ## ------------------- ##"
2492 for ac_var in $ac_subst_files
2494 eval ac_val=\$$ac_var
2496 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 $as_echo "$ac_var='\''$ac_val'\''"
2503 if test -s confdefs.h; then
2504 $as_echo "## ----------- ##
2511 test "$ac_signal" != 0 &&
2512 $as_echo "$as_me: caught signal $ac_signal"
2513 $as_echo "$as_me: exit $exit_status"
2515 rm -f core *.core core.conftest.* &&
2516 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2519 for ac_signal in 1 2 13 15; do
2520 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2525 rm -f -r conftest* confdefs.h
2527 $as_echo "/* confdefs.h */" > confdefs.h
2529 # Predefined preprocessor variables.
2531 cat >>confdefs.h <<_ACEOF
2532 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2535 cat >>confdefs.h <<_ACEOF
2536 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2539 cat >>confdefs.h <<_ACEOF
2540 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2543 cat >>confdefs.h <<_ACEOF
2544 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2547 cat >>confdefs.h <<_ACEOF
2548 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2551 cat >>confdefs.h <<_ACEOF
2552 @%:@define PACKAGE_URL "$PACKAGE_URL"
2556 # Let the site file select an alternate cache file if it wants to.
2557 # Prefer an explicitly selected file to automatically selected ones.
2560 if test -n "$CONFIG_SITE"; then
2561 # We do not want a PATH search for config.site.
2562 case $CONFIG_SITE in @%:@((
2563 -*) ac_site_file1=./$CONFIG_SITE;;
2564 */*) ac_site_file1=$CONFIG_SITE;;
2565 *) ac_site_file1=./$CONFIG_SITE;;
2567 elif test "x$prefix" != xNONE; then
2568 ac_site_file1=$prefix/share/config.site
2569 ac_site_file2=$prefix/etc/config.site
2571 ac_site_file1=$ac_default_prefix/share/config.site
2572 ac_site_file2=$ac_default_prefix/etc/config.site
2574 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2576 test "x$ac_site_file" = xNONE && continue
2577 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2579 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2580 sed 's/^/| /' "$ac_site_file" >&5
2582 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 as_fn_error $? "failed to load site script $ac_site_file
2585 See \`config.log' for more details" "$LINENO" 5 ; }
2589 if test -r "$cache_file"; then
2590 # Some versions of bash will fail to source /dev/null (special files
2591 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2592 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2594 $as_echo "$as_me: loading cache $cache_file" >&6;}
2596 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2597 *) . "./$cache_file";;
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2602 $as_echo "$as_me: creating cache $cache_file" >&6;}
2606 as_fn_append ac_header_list " utime.h"
2607 # Check that the precious variables saved in the cache have kept the same
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 ac_config_headers="$ac_config_headers config.h"
2679 for ac_dir in config "$srcdir"/config; do
2680 if test -f "$ac_dir/install-sh"; then
2682 ac_install_sh="$ac_aux_dir/install-sh -c"
2684 elif test -f "$ac_dir/install.sh"; then
2686 ac_install_sh="$ac_aux_dir/install.sh -c"
2688 elif test -f "$ac_dir/shtool"; then
2690 ac_install_sh="$ac_aux_dir/shtool install -c"
2694 if test -z "$ac_aux_dir"; then
2695 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2698 # These three variables are undocumented and unsupported,
2699 # and are intended to be withdrawn in a future Autoconf release.
2700 # They can cause serious problems if a builder's source tree is in a directory
2701 # whose full name contains unusual characters.
2702 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2703 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2704 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2709 $as_echo_n "checking whether build environment is sane... " >&6; }
2712 echo timestamp > conftest.file
2713 # Reject unsafe characters in $srcdir or the absolute working directory
2714 # name. Accept space and tab only in the latter.
2718 *[\\\"\#\$\&\'\`$am_lf]*)
2719 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2722 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2723 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2726 # Do `set' in a subshell so we don't clobber the current shell's
2727 # arguments. Must try -L first in case configure is actually a
2728 # symlink; some systems play weird games with the mod time of symlinks
2729 # (eg FreeBSD returns the mod time of the symlink's containing
2732 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2733 if test "$*" = "X"; then
2735 set X `ls -t "$srcdir/configure" conftest.file`
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
2745 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2746 alias in your environment" "$LINENO" 5
2749 test "$2" = conftest.file
2755 as_fn_error $? "newly created file is older than distributed files!
2756 Check your system clock" "$LINENO" 5
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2761 for ac_prog in gawk mawk nawk awk
2763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_AWK+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2770 if test -n "$AWK"; then
2771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_AWK="$ac_prog"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 if test -n "$AWK"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2793 $as_echo "$AWK" >&6; }
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2800 test -n "$AWK" && break
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2847 if test -z "$ac_cv_prog_CC"; then
2849 # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_ac_ct_CC="gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2879 $as_echo "$ac_ct_CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2885 if test "x$ac_ct_CC" = x; then
2888 case $cross_compiling:$ac_tool_warned in
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892 ac_tool_warned=yes ;;
2900 if test -z "$CC"; then
2901 if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="${ac_tool_prefix}cc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2941 if test -z "$CC"; then
2942 # Extract the first word of "cc", so it can be a program name with args.
2943 set dummy cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2961 ac_prog_rejected=yes
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test $ac_prog_rejected = yes; then
2973 # We found a bogon in the path, so make sure we never use it.
2974 set dummy $ac_cv_prog_CC
2976 if test $@%:@ != 0; then
2977 # We chose a different compiler from the bogus one.
2978 # However, it has the same basename, so the bogon will be chosen
2979 # first if we set CC to just the basename; use the full file name.
2981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2987 if test -n "$CC"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 $as_echo "$CC" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$CC"; then
2998 if test -n "$ac_tool_prefix"; then
2999 for ac_prog in cl.exe
3001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3038 test -n "$CC" && break
3041 if test -z "$CC"; then
3043 for ac_prog in cl.exe
3045 # Extract the first word of "$ac_prog", so it can be a program name with args.
3046 set dummy $ac_prog; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC="$ac_prog"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3082 test -n "$ac_ct_CC" && break
3085 if test "x$ac_ct_CC" = x; then
3088 case $cross_compiling:$ac_tool_warned in
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3101 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "no acceptable C compiler found in \$PATH
3104 See \`config.log' for more details" "$LINENO" 5 ; }
3106 # Provide some information about the compiler.
3107 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3110 for ac_option in --version -v -V -qversion; do
3111 { { ac_try="$ac_compiler $ac_option >&5"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120 if test -s conftest.err; then
3122 ... rest of stderr output deleted ...
3123 10q' conftest.err >conftest.er1
3124 cat conftest.er1 >&5
3126 rm -f conftest.er1 conftest.err
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3142 ac_clean_files_save=$ac_clean_files
3143 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3144 # Try to create an executable without -o first, disregard a.out.
3145 # It will help us diagnose broken compilers, and finding out an intuition
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3148 $as_echo_n "checking whether the C compiler works... " >&6; }
3149 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151 # The possible output files:
3152 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3155 for ac_file in $ac_files
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3159 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3164 if { { ac_try="$ac_link_default"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link_default") 2>&5
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3176 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3177 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3178 # so that the user can short-circuit this test for compilers unknown to
3180 for ac_file in $ac_files ''
3182 test -f "$ac_file" || continue
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3187 # We found the default executable, but exeext='' is most
3191 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 # We set ac_cv_exeext here because the later test for it is not
3196 # safe: cross compilers may not add the suffix if given an `-o'
3197 # argument, so we may need to know it at that point already.
3198 # Even if this section looks crufty: it has the advantage of
3205 test "$ac_cv_exeext" = no && ac_cv_exeext=
3210 if test -z "$ac_file"; then :
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 $as_echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error 77 "C compiler cannot create executables
3219 See \`config.log' for more details" "$LINENO" 5 ; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3225 $as_echo_n "checking for C compiler default output file name... " >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3227 $as_echo "$ac_file" >&6; }
3228 ac_exeext=$ac_cv_exeext
3230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3231 ac_clean_files=$ac_clean_files_save
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3233 $as_echo_n "checking for suffix of executables... " >&6; }
3234 if { { ac_try="$ac_link"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3246 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3247 # work properly (i.e., refer to `conftest.exe'), while it won't with
3249 for ac_file in conftest.exe conftest conftest.*; do
3250 test -f "$ac_file" || continue
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3262 See \`config.log' for more details" "$LINENO" 5 ; }
3264 rm -f conftest conftest$ac_cv_exeext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273 @%:@include <stdio.h>
3277 FILE *f = fopen ("conftest.out", "w");
3278 return ferror (f) || fclose (f) != 0;
3284 ac_clean_files="$ac_clean_files conftest.out"
3285 # Check that the compiler produces executables we can run. If not, either
3286 # the compiler is broken, or we cross compile.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3288 $as_echo_n "checking whether we are cross compiling... " >&6; }
3289 if test "$cross_compiling" != yes; then
3290 { { ac_try="$ac_link"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_link") 2>&5
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3301 if { ac_try='./conftest$ac_cv_exeext'
3302 { { case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_try") 2>&5
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; }; then
3314 if test "$cross_compiling" = maybe; then
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot run C compiled programs.
3320 If you meant to cross compile, use \`--host'.
3321 See \`config.log' for more details" "$LINENO" 5 ; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3326 $as_echo "$cross_compiling" >&6; }
3328 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3329 ac_clean_files=$ac_clean_files_save
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3331 $as_echo_n "checking for suffix of object files... " >&6; }
3332 if test "${ac_cv_objext+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3346 rm -f conftest.o conftest.obj
3347 if { { ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_compile") 2>&5
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 for ac_file in conftest.o conftest.obj conftest.*; do
3359 test -f "$ac_file" || continue;
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details" "$LINENO" 5 ; }
3375 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3378 $as_echo "$ac_cv_objext" >&6; }
3379 OBJEXT=$ac_cv_objext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3382 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3383 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3400 if ac_fn_c_try_compile "$LINENO"; then :
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3410 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3411 if test $ac_compiler_gnu = yes; then
3416 ac_test_CFLAGS=${CFLAGS+set}
3417 ac_save_CFLAGS=$CFLAGS
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3419 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3420 if test "${ac_cv_prog_cc_g+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3423 ac_save_c_werror_flag=$ac_c_werror_flag
3424 ac_c_werror_flag=yes
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"; then :
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3453 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3469 if ac_fn_c_try_compile "$LINENO"; then :
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3480 $as_echo "$ac_cv_prog_cc_g" >&6; }
3481 if test "$ac_test_CFLAGS" = set; then
3482 CFLAGS=$ac_save_CFLAGS
3483 elif test $ac_cv_prog_cc_g = yes; then
3484 if test "$GCC" = yes; then
3490 if test "$GCC" = yes; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3497 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3498 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 ac_cv_prog_cc_c89=no
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 #include <sys/types.h>
3508 #include <sys/stat.h>
3509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3510 struct buf { int x; };
3511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3512 static char *e (p, i)
3518 static char *f (char * (*g) (char **, int), char **p, ...)
3523 s = g (p, va_arg (v,int));
3528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3529 function prototypes and stuff, but not '\xHH' hex character constants.
3530 These don't provoke an error unfortunately, instead are silently treated
3531 as 'x'. The following induces an error, until -std is added to get
3532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3533 array size at least. It's necessary to write '\x00'==0 to get something
3534 that's true only with -std. */
3535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3538 inside strings and character constants. */
3540 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542 int test (int i, double x);
3543 struct s1 {int (*f) (int a);};
3544 struct s2 {int (*f) (double a);};
3545 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3556 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 CC="$ac_save_CC $ac_arg"
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_c89=$ac_arg
3563 rm -f core conftest.err conftest.$ac_objext
3564 test "x$ac_cv_prog_cc_c89" != "xno" && break
3566 rm -f conftest.$ac_ext
3571 case "x$ac_cv_prog_cc_c89" in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3574 $as_echo "none needed" >&6; } ;;
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 $as_echo "unsupported" >&6; } ;;
3579 CC="$CC $ac_cv_prog_cc_c89"
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3581 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3583 if test "x$ac_cv_prog_cc_c89" != xno; then :
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3599 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3600 # On Suns, sometimes $CPP names a directory.
3601 if test -n "$CPP" && test -d "$CPP"; then
3604 if test -z "$CPP"; then
3605 if test "${ac_cv_prog_CPP+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 # Double quotes because CPP needs to be expanded
3609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3612 for ac_c_preproc_warn_flag in '' yes
3614 # Use a header file that comes with gcc, so configuring glibc
3615 # with a fresh cross-compiler works.
3616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 # <limits.h> exists even on freestanding compilers.
3618 # On the NeXT, cc -E runs the code through the compiler's parser,
3619 # not just through cpp. "Syntax error" is here to catch this case.
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3623 @%:@ include <limits.h>
3625 @%:@ include <assert.h>
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3632 # Broken: fails on valid input.
3635 rm -f conftest.err conftest.i conftest.$ac_ext
3637 # OK, works on sane cases. Now check whether nonexistent headers
3638 # can be detected and how.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 @%:@include <ac_nonexistent.h>
3643 if ac_fn_c_try_cpp "$LINENO"; then :
3644 # Broken: success on invalid input.
3647 # Passes both tests.
3651 rm -f conftest.err conftest.i conftest.$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.i conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then :
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3669 $as_echo "$CPP" >&6; }
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3682 @%:@ include <limits.h>
3684 @%:@ include <assert.h>
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3691 # Broken: fails on valid input.
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether nonexistent headers
3697 # can be detected and how.
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 @%:@include <ac_nonexistent.h>
3702 if ac_fn_c_try_cpp "$LINENO"; then :
3703 # Broken: success on invalid input.
3706 # Passes both tests.
3710 rm -f conftest.err conftest.i conftest.$ac_ext
3713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714 rm -f conftest.i conftest.err conftest.$ac_ext
3715 if $ac_preproc_ok; then :
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3721 See \`config.log' for more details" "$LINENO" 5 ; }
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 # Find a good install program. We prefer a C program (faster),
3731 # so one script is as good as another. But avoid the broken or
3732 # incompatible versions:
3733 # SysV /etc/install, /usr/sbin/install
3734 # SunOS /usr/etc/install
3735 # IRIX /sbin/install
3737 # AmigaOS /C/install, which installs bootblocks on floppy discs
3738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3741 # OS/2's system install, which has a completely different semantic
3742 # ./install, which can be erroneously created by make from ./install.sh.
3743 # Reject install programs that cannot install multiple files.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3745 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3746 if test -z "$INSTALL"; then
3747 if test "${ac_cv_path_install+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 # Account for people who put trailing slashes in PATH elements.
3756 case $as_dir/ in @%:@((
3757 ./ | .// | /[cC]/* | \
3758 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3759 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3762 # OSF1 and SCO ODT 3.0 have their own names for install.
3763 # Don't use installbsd from OSF since it installs stuff as root
3765 for ac_prog in ginstall scoinst install; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3768 if test $ac_prog = install &&
3769 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770 # AIX install. It has an incompatible calling convention.
3772 elif test $ac_prog = install &&
3773 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3774 # program-specific install script used by HP pwplus--don't use.
3777 rm -rf conftest.one conftest.two conftest.dir
3778 echo one > conftest.one
3779 echo two > conftest.two
3781 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3782 test -s conftest.one && test -s conftest.two &&
3783 test -s conftest.dir/conftest.one &&
3784 test -s conftest.dir/conftest.two
3786 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3799 rm -rf conftest.one conftest.two conftest.dir
3802 if test "${ac_cv_path_install+set}" = set; then
3803 INSTALL=$ac_cv_path_install
3805 # As a last resort, use the slow shell script. Don't cache a
3806 # value for INSTALL within a source directory, because that will
3807 # break other packages using the cache if that directory is
3808 # removed, or if the value is a relative name.
3809 INSTALL=$ac_install_sh
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3813 $as_echo "$INSTALL" >&6; }
3815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3816 # It thinks the first close brace ends the variable substitution.
3817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3824 $as_echo_n "checking whether ln -s works... " >&6; }
3826 if test "$LN_S" = "ln -s"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828 $as_echo "yes" >&6; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3831 $as_echo "no, using $LN_S" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3835 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3837 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3838 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3839 $as_echo_n "(cached) " >&6
3841 cat >conftest.make <<\_ACEOF
3844 @echo '@@@%%%=$(MAKE)=@@@%%%'
3846 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3847 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3849 eval ac_cv_prog_make_${ac_make}_set=yes;;
3851 eval ac_cv_prog_make_${ac_make}_set=no;;
3855 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857 $as_echo "yes" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 SET_MAKE="MAKE=${MAKE-make}"
3865 if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3873 if test -n "$RANLIB"; then
3874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 RANLIB=$ac_cv_prog_RANLIB
3894 if test -n "$RANLIB"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3896 $as_echo "$RANLIB" >&6; }
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3904 if test -z "$ac_cv_prog_RANLIB"; then
3905 ac_ct_RANLIB=$RANLIB
3906 # Extract the first word of "ranlib", so it can be a program name with args.
3907 set dummy ranlib; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 if test -n "$ac_ct_RANLIB"; then
3914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_ac_ct_RANLIB="ranlib"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3934 if test -n "$ac_ct_RANLIB"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3936 $as_echo "$ac_ct_RANLIB" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3942 if test "x$ac_ct_RANLIB" = x; then
3945 case $cross_compiling:$ac_tool_warned in
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949 ac_tool_warned=yes ;;
3951 RANLIB=$ac_ct_RANLIB
3954 RANLIB="$ac_cv_prog_RANLIB"
3957 for ac_prog in ar aal
3959 # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_AR+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3966 if test -n "$AR"; then
3967 ac_cv_prog_AR="$AR" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_AR="$ac_prog"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 if test -n "$AR"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3989 $as_echo "$AR" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3996 test -n "$AR" && break
3998 test -n "$AR" || AR="ar"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4001 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4002 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 ac_cv_prog_cc_c99=no
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4010 #include <stdbool.h>
4015 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4016 #define debug(...) fprintf (stderr, __VA_ARGS__)
4017 #define showlist(...) puts (#__VA_ARGS__)
4018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4020 test_varargs_macros (void)
4025 debug ("X = %d\n", x);
4026 showlist (The first, second, and third items.);
4027 report (x>y, "x is %d but y is %d", x, y);
4030 // Check long long types.
4031 #define BIG64 18446744073709551615ull
4032 #define BIG32 4294967295ul
4033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4035 your preprocessor is broken;
4039 your preprocessor is broken;
4041 static long long int bignum = -9223372036854775807LL;
4042 static unsigned long long int ubignum = BIG64;
4044 struct incomplete_array
4052 const wchar_t *name;
4056 typedef const char *ccp;
4059 test_restrict (ccp restrict text)
4061 // See if C++-style comments work.
4062 // Iterate through items via the restricted pointer.
4063 // Also check for declarations in for loops.
4064 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4069 // Check varargs and va_copy.
4071 test_varargs (const char *format, ...)
4074 va_start (args, format);
4076 va_copy (args_copy, args);
4087 str = va_arg (args_copy, const char *);
4090 number = va_arg (args_copy, int);
4093 fnumber = va_arg (args_copy, double);
4108 _Bool success = false;
4111 if (test_restrict ("String literal") == 0)
4113 char *restrict newvar = "Another string";
4116 test_varargs ("s, d' f .", "string", 65, 34.234);
4117 test_varargs_macros ();
4119 // Check flexible array members.
4120 struct incomplete_array *ia =
4121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4123 for (int i = 0; i < ia->datasize; ++i)
4124 ia->data[i] = i * 1.234;
4126 // Check named initializers.
4127 struct named_init ni = {
4129 .name = L"Test wide string",
4130 .average = 543.34343,
4135 int dynamic_array[ni.number];
4136 dynamic_array[ni.number - 1] = 543;
4138 // work around unused variable warnings
4139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4140 || dynamic_array[ni.number - 1] != 543);
4146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4148 CC="$ac_save_CC $ac_arg"
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_c99=$ac_arg
4152 rm -f core conftest.err conftest.$ac_objext
4153 test "x$ac_cv_prog_cc_c99" != "xno" && break
4155 rm -f conftest.$ac_ext
4160 case "x$ac_cv_prog_cc_c99" in
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 $as_echo "none needed" >&6; } ;;
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;;
4168 CC="$CC $ac_cv_prog_cc_c99"
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4170 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4172 if test "x$ac_cv_prog_cc_c99" != xno; then :
4178 ac_cpp='$CXXCPP $CPPFLAGS'
4179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4182 if test -z "$CXX"; then
4183 if test -n "$CCC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_CXX+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4196 if test -n "$CXX"; then
4197 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 if test -n "$CXX"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4219 $as_echo "$CXX" >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4226 test -n "$CXX" && break
4229 if test -z "$CXX"; then
4231 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$ac_ct_CXX"; then
4241 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_ac_ct_CXX="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4261 if test -n "$ac_ct_CXX"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4263 $as_echo "$ac_ct_CXX" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$ac_ct_CXX" && break
4273 if test "x$ac_ct_CXX" = x; then
4276 case $cross_compiling:$ac_tool_warned in
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280 ac_tool_warned=yes ;;
4288 # Provide some information about the compiler.
4289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4292 for ac_option in --version -v -V -qversion; do
4293 { { ac_try="$ac_compiler $ac_option >&5"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4302 if test -s conftest.err; then
4304 ... rest of stderr output deleted ...
4305 10q' conftest.err >conftest.er1
4306 cat conftest.er1 >&5
4308 rm -f conftest.er1 conftest.err
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4314 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4332 if ac_fn_cxx_try_compile "$LINENO"; then :
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4342 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4343 if test $ac_compiler_gnu = yes; then
4348 ac_test_CXXFLAGS=${CXXFLAGS+set}
4349 ac_save_CXXFLAGS=$CXXFLAGS
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4351 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4352 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4355 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4356 ac_cxx_werror_flag=yes
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4371 ac_cv_prog_cxx_g=yes
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 if ac_fn_cxx_try_compile "$LINENO"; then :
4388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 if ac_fn_cxx_try_compile "$LINENO"; then :
4402 ac_cv_prog_cxx_g=yes
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4412 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4413 if test "$ac_test_CXXFLAGS" = set; then
4414 CXXFLAGS=$ac_save_CXXFLAGS
4415 elif test $ac_cv_prog_cxx_g = yes; then
4416 if test "$GXX" = yes; then
4422 if test "$GXX" = yes; then
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4444 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4449 macro_version='2.2.6b'
4450 macro_revision='1.3017'
4464 ltmain="$ac_aux_dir/ltmain.sh"
4466 # Make sure we can run config.sub.
4467 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4468 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4471 $as_echo_n "checking build system type... " >&6; }
4472 if test "${ac_cv_build+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4475 ac_build_alias=$build_alias
4476 test "x$ac_build_alias" = x &&
4477 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4478 test "x$ac_build_alias" = x &&
4479 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4480 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4485 $as_echo "$ac_cv_build" >&6; }
4486 case $ac_cv_build in
4488 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4491 ac_save_IFS=$IFS; IFS='-'
4497 # Remember, the first character of IFS is used to create $*,
4498 # except with old shells:
4501 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4505 $as_echo_n "checking host system type... " >&6; }
4506 if test "${ac_cv_host+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4509 if test "x$host_alias" = x; then
4510 ac_cv_host=$ac_cv_build
4512 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4518 $as_echo "$ac_cv_host" >&6; }
4521 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4524 ac_save_IFS=$IFS; IFS='-'
4530 # Remember, the first character of IFS is used to create $*,
4531 # except with old shells:
4534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4538 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4539 if test "${ac_cv_path_SED+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4542 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4543 for ac_i in 1 2 3 4 5 6 7; do
4544 ac_script="$ac_script$as_nl$ac_script"
4546 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4547 { ac_script=; unset ac_script;}
4548 if test -z "$SED"; then
4549 ac_path_SED_found=false
4550 # Loop through the user's path and test for each of PROGNAME-LIST
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_prog in sed gsed; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4559 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4560 # Check for GNU ac_path_SED and select it if it is found.
4561 # Check for GNU $ac_path_SED
4562 case `"$ac_path_SED" --version 2>&1` in
4564 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4567 $as_echo_n 0123456789 >"conftest.in"
4570 cat "conftest.in" "conftest.in" >"conftest.tmp"
4571 mv "conftest.tmp" "conftest.in"
4572 cp "conftest.in" "conftest.nl"
4573 $as_echo '' >> "conftest.nl"
4574 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576 as_fn_arith $ac_count + 1 && ac_count=$as_val
4577 if test $ac_count -gt ${ac_path_SED_max-0}; then
4578 # Best one so far, save it but keep looking for a better one
4579 ac_cv_path_SED="$ac_path_SED"
4580 ac_path_SED_max=$ac_count
4582 # 10*(2^10) chars as input seems more than enough
4583 test $ac_count -gt 10 && break
4585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 $ac_path_SED_found && break 3
4593 if test -z "$ac_cv_path_SED"; then
4594 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4602 $as_echo "$ac_cv_path_SED" >&6; }
4603 SED="$ac_cv_path_SED"
4606 test -z "$SED" && SED=sed
4607 Xsed="$SED -e 1s/^X//"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4620 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4621 if test "${ac_cv_path_GREP+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4624 if test -z "$GREP"; then
4625 ac_path_GREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in grep ggrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4635 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4636 # Check for GNU ac_path_GREP and select it if it is found.
4637 # Check for GNU $ac_path_GREP
4638 case `"$ac_path_GREP" --version 2>&1` in
4640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4643 $as_echo_n 0123456789 >"conftest.in"
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo 'GREP' >> "conftest.nl"
4650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_GREP="$ac_path_GREP"
4656 ac_path_GREP_max=$ac_count
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 $ac_path_GREP_found && break 3
4669 if test -z "$ac_cv_path_GREP"; then
4670 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673 ac_cv_path_GREP=$GREP
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4678 $as_echo "$ac_cv_path_GREP" >&6; }
4679 GREP="$ac_cv_path_GREP"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4683 $as_echo_n "checking for egrep... " >&6; }
4684 if test "${ac_cv_path_EGREP+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4688 then ac_cv_path_EGREP="$GREP -E"
4690 if test -z "$EGREP"; then
4691 ac_path_EGREP_found=false
4692 # Loop through the user's path and test for each of PROGNAME-LIST
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697 test -z "$as_dir" && as_dir=.
4698 for ac_prog in egrep; do
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4701 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4702 # Check for GNU ac_path_EGREP and select it if it is found.
4703 # Check for GNU $ac_path_EGREP
4704 case `"$ac_path_EGREP" --version 2>&1` in
4706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4709 $as_echo_n 0123456789 >"conftest.in"
4712 cat "conftest.in" "conftest.in" >"conftest.tmp"
4713 mv "conftest.tmp" "conftest.in"
4714 cp "conftest.in" "conftest.nl"
4715 $as_echo 'EGREP' >> "conftest.nl"
4716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4718 as_fn_arith $ac_count + 1 && ac_count=$as_val
4719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4720 # Best one so far, save it but keep looking for a better one
4721 ac_cv_path_EGREP="$ac_path_EGREP"
4722 ac_path_EGREP_max=$ac_count
4724 # 10*(2^10) chars as input seems more than enough
4725 test $ac_count -gt 10 && break
4727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 $ac_path_EGREP_found && break 3
4735 if test -z "$ac_cv_path_EGREP"; then
4736 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739 ac_cv_path_EGREP=$EGREP
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4745 $as_echo "$ac_cv_path_EGREP" >&6; }
4746 EGREP="$ac_cv_path_EGREP"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4750 $as_echo_n "checking for fgrep... " >&6; }
4751 if test "${ac_cv_path_FGREP+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4755 then ac_cv_path_FGREP="$GREP -F"
4757 if test -z "$FGREP"; then
4758 ac_path_FGREP_found=false
4759 # Loop through the user's path and test for each of PROGNAME-LIST
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4764 test -z "$as_dir" && as_dir=.
4765 for ac_prog in fgrep; do
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4768 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4769 # Check for GNU ac_path_FGREP and select it if it is found.
4770 # Check for GNU $ac_path_FGREP
4771 case `"$ac_path_FGREP" --version 2>&1` in
4773 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4776 $as_echo_n 0123456789 >"conftest.in"
4779 cat "conftest.in" "conftest.in" >"conftest.tmp"
4780 mv "conftest.tmp" "conftest.in"
4781 cp "conftest.in" "conftest.nl"
4782 $as_echo 'FGREP' >> "conftest.nl"
4783 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4785 as_fn_arith $ac_count + 1 && ac_count=$as_val
4786 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4787 # Best one so far, save it but keep looking for a better one
4788 ac_cv_path_FGREP="$ac_path_FGREP"
4789 ac_path_FGREP_max=$ac_count
4791 # 10*(2^10) chars as input seems more than enough
4792 test $ac_count -gt 10 && break
4794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 $ac_path_FGREP_found && break 3
4802 if test -z "$ac_cv_path_FGREP"; then
4803 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4806 ac_cv_path_FGREP=$FGREP
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4812 $as_echo "$ac_cv_path_FGREP" >&6; }
4813 FGREP="$ac_cv_path_FGREP"
4816 test -z "$GREP" && GREP=grep
4836 @%:@ Check whether --with-gnu-ld was given.
4837 if test "${with_gnu_ld+set}" = set; then :
4838 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4844 if test "$GCC" = yes; then
4845 # Check if gcc -print-prog-name=ld gives a path.
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4847 $as_echo_n "checking for ld used by $CC... " >&6; }
4850 # gcc leaves a trailing carriage return which upsets mingw
4851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4856 # Accept absolute paths.
4858 re_direlt='/[^/][^/]*/\.\./'
4859 # Canonicalize the pathname of ld
4860 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4862 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4864 test -z "$LD" && LD="$ac_prog"
4867 # If it fails, then pretend we aren't using GCC.
4871 # If it is relative, then search for the first ld in PATH.
4875 elif test "$with_gnu_ld" = yes; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4877 $as_echo_n "checking for GNU ld... " >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4880 $as_echo_n "checking for non-GNU ld... " >&6; }
4882 if test "${lt_cv_path_LD+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 if test -z "$LD"; then
4886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4887 for ac_dir in $PATH; do
4889 test -z "$ac_dir" && ac_dir=.
4890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4891 lt_cv_path_LD="$ac_dir/$ac_prog"
4892 # Check to see if the program is GNU ld. I'd rather use --version,
4893 # but apparently some variants of GNU ld only accept -v.
4894 # Break only if it was the GNU/non-GNU ld that we prefer.
4895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4896 *GNU* | *'with BFD'*)
4897 test "$with_gnu_ld" != no && break
4900 test "$with_gnu_ld" != yes && break
4907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4912 if test -n "$LD"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4914 $as_echo "$LD" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4919 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4922 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4925 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4926 case `$LD -v 2>&1 </dev/null` in
4927 *GNU* | *'with BFD'*)
4928 lt_cv_prog_gnu_ld=yes
4931 lt_cv_prog_gnu_ld=no
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4936 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4937 with_gnu_ld=$lt_cv_prog_gnu_ld
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4948 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4949 if test "${lt_cv_path_NM+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$NM"; then
4953 # Let the user override the test.
4956 lt_nm_to_check="${ac_tool_prefix}nm"
4957 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4958 lt_nm_to_check="$lt_nm_to_check nm"
4960 for lt_tmp_nm in $lt_nm_to_check; do
4961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4962 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4964 test -z "$ac_dir" && ac_dir=.
4965 tmp_nm="$ac_dir/$lt_tmp_nm"
4966 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4967 # Check to see if the nm accepts a BSD-compat flag.
4968 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4969 # nm: unknown option "B" ignored
4970 # Tru64's nm complains that /dev/null is an invalid object file
4971 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4972 */dev/null* | *'Invalid file or object type'*)
4973 lt_cv_path_NM="$tmp_nm -B"
4977 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4979 lt_cv_path_NM="$tmp_nm -p"
4983 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4984 continue # so that we can try to find one that supports BSD flags
4993 : ${lt_cv_path_NM=no}
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4997 $as_echo "$lt_cv_path_NM" >&6; }
4998 if test "$lt_cv_path_NM" != "no"; then
5001 # Didn't find any BSD compatible name lister, look for dumpbin.
5002 if test -n "$ac_tool_prefix"; then
5003 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5012 if test -n "$DUMPBIN"; then
5013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 DUMPBIN=$ac_cv_prog_DUMPBIN
5033 if test -n "$DUMPBIN"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5035 $as_echo "$DUMPBIN" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 test -n "$DUMPBIN" && break
5045 if test -z "$DUMPBIN"; then
5046 ac_ct_DUMPBIN=$DUMPBIN
5047 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5049 # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$ac_ct_DUMPBIN"; then
5057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077 if test -n "$ac_ct_DUMPBIN"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5079 $as_echo "$ac_ct_DUMPBIN" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5086 test -n "$ac_ct_DUMPBIN" && break
5089 if test "x$ac_ct_DUMPBIN" = x; then
5092 case $cross_compiling:$ac_tool_warned in
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5098 DUMPBIN=$ac_ct_DUMPBIN
5103 if test "$DUMPBIN" != ":"; then
5107 test -z "$NM" && NM=nm
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5115 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5116 if test "${lt_cv_nm_interface+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5119 lt_cv_nm_interface="BSD nm"
5120 echo "int some_variable = 0;" > conftest.$ac_ext
5121 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
5122 (eval "$ac_compile" 2>conftest.err)
5123 cat conftest.err >&5
5124 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5125 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5126 cat conftest.err >&5
5127 (eval echo "\"\$as_me:__oline__: output\"" >&5)
5128 cat conftest.out >&5
5129 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5130 lt_cv_nm_interface="MS dumpbin"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5135 $as_echo "$lt_cv_nm_interface" >&6; }
5137 # find the maximum length of command line arguments
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5139 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5140 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5148 # On DJGPP, this test can blow up pretty badly due to problems in libc
5149 # (any single argument exceeding 2000 bytes causes a buffer overrun
5150 # during glob expansion). Even if it were fixed, the result of this
5151 # check would be larger than it should be.
5152 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5156 # Under GNU Hurd, this test is not required because there is
5157 # no limit to the length of command line arguments.
5158 # Libtool will interpret -1 as no limit whatsoever
5159 lt_cv_sys_max_cmd_len=-1;
5162 cygwin* | mingw* | cegcc*)
5163 # On Win9x/ME, this test blows up -- it succeeds, but takes
5164 # about 5 minutes as the teststring grows exponentially.
5165 # Worse, since 9x/ME are not pre-emptively multitasking,
5166 # you end up with a "frozen" computer, even though with patience
5167 # the test eventually succeeds (with a max line length of 256k).
5168 # Instead, let's just punt: use the minimum linelength reported by
5169 # all of the supported platforms: 8192 (on NT/2K/XP).
5170 lt_cv_sys_max_cmd_len=8192;
5174 # On AmigaOS with pdksh, this test takes hours, literally.
5175 # So we just punt and use a minimum line length of 8192.
5176 lt_cv_sys_max_cmd_len=8192;
5179 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5180 # This has been around since 386BSD, at least. Likely further.
5181 if test -x /sbin/sysctl; then
5182 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5183 elif test -x /usr/sbin/sysctl; then
5184 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5186 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5188 # And add a safety zone
5189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5194 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5195 lt_cv_sys_max_cmd_len=196608
5199 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5200 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5201 # nice to cause kernel panics so lets avoid the loop below.
5202 # First set a reasonable default.
5203 lt_cv_sys_max_cmd_len=16384
5205 if test -x /sbin/sysconfig; then
5206 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5207 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5212 lt_cv_sys_max_cmd_len=102400
5214 sysv5* | sco5v6* | sysv4.2uw2*)
5215 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5216 if test -n "$kargmax"; then
5217 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5219 lt_cv_sys_max_cmd_len=32768
5223 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5224 if test -n "$lt_cv_sys_max_cmd_len"; then
5225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5228 # Make teststring a little bigger before we do anything with it.
5229 # a 1K string should be a reasonable start.
5230 for i in 1 2 3 4 5 6 7 8 ; do
5231 teststring=$teststring$teststring
5233 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5234 # If test is not a shell built-in, we'll probably end up computing a
5235 # maximum length that is only half of the actual maximum length, but
5237 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5238 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5239 test $i != 17 # 1/2 MB should be enough
5242 teststring=$teststring$teststring
5244 # Only check the string length outside the loop.
5245 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5247 # Add a significant safety factor because C++ compilers can tack on
5248 # massive amounts of additional arguments before passing them to the
5249 # linker. It appears as though 1/2 is a usable value.
5250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5257 if test -n $lt_cv_sys_max_cmd_len ; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5259 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5262 $as_echo "none" >&6; }
5264 max_cmd_len=$lt_cv_sys_max_cmd_len
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5276 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5277 # Try some XSI features
5280 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5282 && eval 'test $(( 1 + 1 )) -eq 2 \
5283 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5286 $as_echo "$xsi_shell" >&6; }
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5290 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5292 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5294 && lt_shell_append=yes
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5296 $as_echo "$lt_shell_append" >&6; }
5299 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5309 # test EBCDIC or ASCII
5310 case `echo X|tr X '\101'` in
5311 A) # ASCII based system
5312 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5313 lt_SP2NL='tr \040 \012'
5314 lt_NL2SP='tr \015\012 \040\040'
5316 *) # EBCDIC based system
5317 lt_SP2NL='tr \100 \n'
5318 lt_NL2SP='tr \r\n \100\100'
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5331 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5332 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 lt_cv_ld_reload_flag='-r'
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5338 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5339 reload_flag=$lt_cv_ld_reload_flag
5340 case $reload_flag in
5342 *) reload_flag=" $reload_flag" ;;
5344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5347 if test "$GCC" = yes; then
5348 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5363 if test -n "$ac_tool_prefix"; then
5364 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5371 if test -n "$OBJDUMP"; then
5372 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 OBJDUMP=$ac_cv_prog_OBJDUMP
5392 if test -n "$OBJDUMP"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5394 $as_echo "$OBJDUMP" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5402 if test -z "$ac_cv_prog_OBJDUMP"; then
5403 ac_ct_OBJDUMP=$OBJDUMP
5404 # Extract the first word of "objdump", so it can be a program name with args.
5405 set dummy objdump; 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_ac_ct_OBJDUMP+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5411 if test -n "$ac_ct_OBJDUMP"; then
5412 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5432 if test -n "$ac_ct_OBJDUMP"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5434 $as_echo "$ac_ct_OBJDUMP" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5440 if test "x$ac_ct_OBJDUMP" = x; then
5443 case $cross_compiling:$ac_tool_warned in
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5449 OBJDUMP=$ac_ct_OBJDUMP
5452 OBJDUMP="$ac_cv_prog_OBJDUMP"
5455 test -z "$OBJDUMP" && OBJDUMP=objdump
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5466 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5467 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5470 lt_cv_file_magic_cmd='$MAGIC_CMD'
5471 lt_cv_file_magic_test_file=
5472 lt_cv_deplibs_check_method='unknown'
5473 # Need to set the preceding variable on all platforms that support
5474 # interlibrary dependencies.
5475 # 'none' -- dependencies not supported.
5476 # `unknown' -- same as none, but documents that we really don't know.
5477 # 'pass_all' -- all dependencies passed with no checks.
5478 # 'test_compile' -- check by making test program.
5479 # 'file_magic [[regex]]' -- check by looking for files in library path
5480 # which responds to the $file_magic_cmd with a given extended regex.
5481 # If you have `file' or equivalent on your system and you're not sure
5482 # whether `pass_all' will *always* work, you probably want this one.
5486 lt_cv_deplibs_check_method=pass_all
5490 lt_cv_deplibs_check_method=pass_all
5494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5495 lt_cv_file_magic_cmd='/usr/bin/file -L'
5496 lt_cv_file_magic_test_file=/shlib/libc.so
5500 # func_win32_libid is a shell function defined in ltmain.sh
5501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5502 lt_cv_file_magic_cmd='func_win32_libid'
5506 # Base MSYS/MinGW do not provide the 'file' command needed by
5507 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5508 # unless we find 'file', for example because we are cross-compiling.
5509 if ( file / ) >/dev/null 2>&1; then
5510 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5511 lt_cv_file_magic_cmd='func_win32_libid'
5513 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514 lt_cv_file_magic_cmd='$OBJDUMP -f'
5519 # use the weaker test based on 'objdump'. See mingw*.
5520 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5521 lt_cv_file_magic_cmd='$OBJDUMP -f'
5524 darwin* | rhapsody*)
5525 lt_cv_deplibs_check_method=pass_all
5528 freebsd* | dragonfly*)
5529 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532 # Not sure whether the presence of OpenBSD here was a mistake.
5533 # Let's accept both of them until this is cleared up.
5534 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5540 lt_cv_deplibs_check_method=pass_all
5545 lt_cv_deplibs_check_method=pass_all
5548 hpux10.20* | hpux11*)
5549 lt_cv_file_magic_cmd=/usr/bin/file
5552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5556 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]'
5557 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5560 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5561 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5567 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5571 irix5* | irix6* | nonstopux*)
5573 *-32|*"-32 ") libmagic=32-bit;;
5574 *-n32|*"-n32 ") libmagic=N32;;
5575 *-64|*"-64 ") libmagic=64-bit;;
5576 *) libmagic=never-match;;
5578 lt_cv_deplibs_check_method=pass_all
5581 # This must be Linux ELF.
5582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5583 lt_cv_deplibs_check_method=pass_all
5586 netbsd* | netbsdelf*-gnu)
5587 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5596 lt_cv_file_magic_cmd=/usr/bin/file
5597 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5601 lt_cv_deplibs_check_method=pass_all
5605 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5612 osf3* | osf4* | osf5*)
5613 lt_cv_deplibs_check_method=pass_all
5617 lt_cv_deplibs_check_method=pass_all
5621 lt_cv_deplibs_check_method=pass_all
5624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5625 lt_cv_deplibs_check_method=pass_all
5629 case $host_vendor in
5631 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]'
5632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5635 lt_cv_deplibs_check_method=pass_all
5638 lt_cv_file_magic_cmd='/bin/file'
5639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5642 lt_cv_file_magic_cmd='/bin/file'
5643 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5644 lt_cv_file_magic_test_file=/lib/libc.so
5647 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5656 lt_cv_deplibs_check_method=pass_all
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5662 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5663 file_magic_cmd=$lt_cv_file_magic_cmd
5664 deplibs_check_method=$lt_cv_deplibs_check_method
5665 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678 if test -n "$ac_tool_prefix"; then
5679 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5680 set dummy ${ac_tool_prefix}ar; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_AR+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$AR"; then
5687 ac_cv_prog_AR="$AR" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_AR="${ac_tool_prefix}ar"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 if test -n "$AR"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5709 $as_echo "$AR" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5717 if test -z "$ac_cv_prog_AR"; then
5719 # Extract the first word of "ar", so it can be a program name with args.
5720 set dummy ar; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5726 if test -n "$ac_ct_AR"; then
5727 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_ac_ct_AR="ar"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5747 if test -n "$ac_ct_AR"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5749 $as_echo "$ac_ct_AR" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5755 if test "x$ac_ct_AR" = x; then
5758 case $cross_compiling:$ac_tool_warned in
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5762 ac_tool_warned=yes ;;
5770 test -z "$AR" && AR=ar
5771 test -z "$AR_FLAGS" && AR_FLAGS=cru
5783 if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}strip; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if test "${ac_cv_prog_STRIP+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5791 if test -n "$STRIP"; then
5792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 STRIP=$ac_cv_prog_STRIP
5812 if test -n "$STRIP"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5814 $as_echo "$STRIP" >&6; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5822 if test -z "$ac_cv_prog_STRIP"; then
5824 # Extract the first word of "strip", so it can be a program name with args.
5825 set dummy strip; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 if test -n "$ac_ct_STRIP"; then
5832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_ac_ct_STRIP="strip"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5852 if test -n "$ac_ct_STRIP"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5854 $as_echo "$ac_ct_STRIP" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5860 if test "x$ac_ct_STRIP" = x; then
5863 case $cross_compiling:$ac_tool_warned in
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5872 STRIP="$ac_cv_prog_STRIP"
5875 test -z "$STRIP" && STRIP=:
5882 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$RANLIB"; then
5891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 RANLIB=$ac_cv_prog_RANLIB
5911 if test -n "$RANLIB"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5913 $as_echo "$RANLIB" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5921 if test -z "$ac_cv_prog_RANLIB"; then
5922 ac_ct_RANLIB=$RANLIB
5923 # Extract the first word of "ranlib", so it can be a program name with args.
5924 set dummy ranlib; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 if test -n "$ac_ct_RANLIB"; then
5931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_ac_ct_RANLIB="ranlib"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5951 if test -n "$ac_ct_RANLIB"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5953 $as_echo "$ac_ct_RANLIB" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5959 if test "x$ac_ct_RANLIB" = x; then
5962 case $cross_compiling:$ac_tool_warned in
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5968 RANLIB=$ac_ct_RANLIB
5971 RANLIB="$ac_cv_prog_RANLIB"
5974 test -z "$RANLIB" && RANLIB=:
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5986 if test -n "$RANLIB"; then
5989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6031 # If no C compiler was specified, use CC.
6034 # If no C compiler flags were specified, use CFLAGS.
6035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6037 # Allow CC to be a program name with arguments.
6041 # Check for command to grab the raw symbol name followed by C symbol from nm.
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6043 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6044 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6048 # These are sane defaults that work on at least a few old systems.
6049 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6051 # Character class describing NM global symbol codes.
6052 symcode='[BCDEGRST]'
6054 # Regexp to match symbols that can be accessed directly from C.
6055 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6057 # Define system-specific variables.
6062 cygwin* | mingw* | pw32* | cegcc*)
6063 symcode='[ABCDGISTW]'
6066 if test "$host_cpu" = ia64; then
6067 symcode='[ABCDEGRST]'
6071 symcode='[BCDEGRST]'
6074 symcode='[BCDEGQRST]'
6085 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6093 # If we're using GNU nm, then use its standard symbol codes.
6094 case `$NM -V 2>&1` in
6095 *GNU* | *'with BFD'*)
6096 symcode='[ABCDGIRSTW]' ;;
6099 # Transform an extracted symbol line into a proper C declaration.
6100 # Some systems (esp. on ia64) link data and code symbols differently,
6101 # so use this general approach.
6102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6104 # Transform an extracted symbol line into symbol name and symbol address
6105 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6106 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'"
6108 # Handle CRLF in mingw tool chain
6112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 # Try without a prefix underscore, then with it.
6117 for ac_symprfx in "" "_"; do
6119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6120 symxfrm="\\1 $ac_symprfx\\2 \\2"
6122 # Write the raw and C identifiers.
6123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6124 # Fake it for dumpbin and say T for any non-static function
6125 # and D for any global variable.
6126 # Also find C++ and __fastcall symbols from MSVC++,
6127 # which start with @ or ?.
6128 lt_cv_sys_global_symbol_pipe="$AWK '"\
6129 " {last_section=section; section=\$ 3};"\
6130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6131 " \$ 0!~/External *\|/{next};"\
6132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 " {if(hide[section]) next};"\
6134 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6135 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6136 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6137 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6138 " ' prfx=^$ac_symprfx"
6140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6143 # Check to see that the pipe works correctly.
6147 cat > conftest.$ac_ext <<_LT_EOF
6152 void nm_test_func(void);
6153 void nm_test_func(void){}
6157 int main(){nm_test_var='a';nm_test_func();return(0);}
6160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6161 (eval $ac_compile) 2>&5
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; }; then
6165 # Now try to grab the symbols.
6167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171 test $ac_status = 0; } && test -s "$nlist"; then
6172 # Try sorting and uniquifying the output.
6173 if sort "$nlist" | uniq > "$nlist"T; then
6174 mv -f "$nlist"T "$nlist"
6179 # Make sure that we snagged all the symbols we need.
6180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6182 cat <<_LT_EOF > conftest.$ac_ext
6188 # Now generate the symbol file.
6189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6191 cat <<_LT_EOF >> conftest.$ac_ext
6193 /* The mapping between symbol names and symbols. */
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6200 { "@PROGRAM@", (void *) 0 },
6202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203 cat <<\_LT_EOF >> conftest.$ac_ext
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210 return lt__PROGRAM__LTX_preloaded_symbols;
6218 # Now try linking the two files.
6219 mv conftest.$ac_objext conftstm.$ac_objext
6220 lt_save_LIBS="$LIBS"
6221 lt_save_CFLAGS="$CFLAGS"
6222 LIBS="conftstm.$ac_objext"
6223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6225 (eval $ac_link) 2>&5
6227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6231 LIBS="$lt_save_LIBS"
6232 CFLAGS="$lt_save_CFLAGS"
6234 echo "cannot find nm_test_func in $nlist" >&5
6237 echo "cannot find nm_test_var in $nlist" >&5
6240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6243 echo "$progname: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6246 rm -rf conftest* conftst*
6248 # Do not use the global_symbol_pipe unless it works.
6249 if test "$pipe_works" = yes; then
6252 lt_cv_sys_global_symbol_pipe=
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259 lt_cv_sys_global_symbol_to_cdecl=
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6263 $as_echo "failed" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6266 $as_echo "ok" >&6; }
6291 @%:@ Check whether --enable-libtool-lock was given.
6292 if test "${enable_libtool_lock+set}" = set; then :
6293 enableval=$enable_libtool_lock;
6296 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6298 # Some flags need to be propagated to the compiler or linker for good
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.$ac_ext
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 case `/usr/bin/file conftest.$ac_objext` in
6321 # Find out which ABI we are using.
6322 echo '#line __oline__ "configure"' > conftest.$ac_ext
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6324 (eval $ac_compile) 2>&5
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; }; then
6328 if test "$lt_cv_prog_gnu_ld" = yes; then
6329 case `/usr/bin/file conftest.$ac_objext` in
6331 LD="${LD-ld} -melf32bsmip"
6334 LD="${LD-ld} -melf32bmipn32"
6337 LD="${LD-ld} -melf64bmip"
6341 case `/usr/bin/file conftest.$ac_objext` in
6357 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6358 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6359 # Find out which ABI we are using.
6360 echo 'int i;' > conftest.$ac_ext
6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6362 (eval $ac_compile) 2>&5
6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
6366 case `/usr/bin/file conftest.o` in
6369 x86_64-*kfreebsd*-gnu)
6370 LD="${LD-ld} -m elf_i386_fbsd"
6373 LD="${LD-ld} -m elf_i386"
6375 ppc64-*linux*|powerpc64-*linux*)
6376 LD="${LD-ld} -m elf32ppclinux"
6379 LD="${LD-ld} -m elf_s390"
6382 LD="${LD-ld} -m elf32_sparc"
6388 x86_64-*kfreebsd*-gnu)
6389 LD="${LD-ld} -m elf_x86_64_fbsd"
6392 LD="${LD-ld} -m elf_x86_64"
6394 ppc*-*linux*|powerpc*-*linux*)
6395 LD="${LD-ld} -m elf64ppc"
6397 s390*-*linux*|s390*-*tpf*)
6398 LD="${LD-ld} -m elf64_s390"
6401 LD="${LD-ld} -m elf64_sparc"
6411 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6412 SAVE_CFLAGS="$CFLAGS"
6413 CFLAGS="$CFLAGS -belf"
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6415 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6416 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6420 ac_cpp='$CPP $CPPFLAGS'
6421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6436 if ac_fn_c_try_link "$LINENO"; then :
6437 lt_cv_cc_needs_belf=yes
6439 lt_cv_cc_needs_belf=no
6441 rm -f core conftest.err conftest.$ac_objext \
6442 conftest$ac_exeext conftest.$ac_ext
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6451 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6452 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6454 CFLAGS="$SAVE_CFLAGS"
6458 # Find out which ABI we are using.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.o` in
6467 case $lt_cv_prog_gnu_ld in
6468 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6470 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6482 need_locks="$enable_libtool_lock"
6486 rhapsody* | darwin*)
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6495 if test -n "$DSYMUTIL"; then
6496 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6516 if test -n "$DSYMUTIL"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6518 $as_echo "$DSYMUTIL" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6526 if test -z "$ac_cv_prog_DSYMUTIL"; then
6527 ac_ct_DSYMUTIL=$DSYMUTIL
6528 # Extract the first word of "dsymutil", so it can be a program name with args.
6529 set dummy dsymutil; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6535 if test -n "$ac_ct_DSYMUTIL"; then
6536 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6556 if test -n "$ac_ct_DSYMUTIL"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6558 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6564 if test "x$ac_ct_DSYMUTIL" = x; then
6567 case $cross_compiling:$ac_tool_warned in
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6573 DSYMUTIL=$ac_ct_DSYMUTIL
6576 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$NMEDIT"; then
6588 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 NMEDIT=$ac_cv_prog_NMEDIT
6608 if test -n "$NMEDIT"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6610 $as_echo "$NMEDIT" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6618 if test -z "$ac_cv_prog_NMEDIT"; then
6619 ac_ct_NMEDIT=$NMEDIT
6620 # Extract the first word of "nmedit", so it can be a program name with args.
6621 set dummy nmedit; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6627 if test -n "$ac_ct_NMEDIT"; then
6628 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6648 if test -n "$ac_ct_NMEDIT"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6650 $as_echo "$ac_ct_NMEDIT" >&6; }
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6656 if test "x$ac_ct_NMEDIT" = x; then
6659 case $cross_compiling:$ac_tool_warned in
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned=yes ;;
6665 NMEDIT=$ac_ct_NMEDIT
6668 NMEDIT="$ac_cv_prog_NMEDIT"
6671 if test -n "$ac_tool_prefix"; then
6672 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6673 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if test "${ac_cv_prog_LIPO+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$LIPO"; then
6680 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 LIPO=$ac_cv_prog_LIPO
6700 if test -n "$LIPO"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6702 $as_echo "$LIPO" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6710 if test -z "$ac_cv_prog_LIPO"; then
6712 # Extract the first word of "lipo", so it can be a program name with args.
6713 set dummy lipo; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$ac_ct_LIPO"; then
6720 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_ac_ct_LIPO="lipo"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6740 if test -n "$ac_ct_LIPO"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6742 $as_echo "$ac_ct_LIPO" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6748 if test "x$ac_ct_LIPO" = x; then
6751 case $cross_compiling:$ac_tool_warned in
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6760 LIPO="$ac_cv_prog_LIPO"
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}otool; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6771 if test -n "$OTOOL"; then
6772 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 OTOOL=$ac_cv_prog_OTOOL
6792 if test -n "$OTOOL"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6794 $as_echo "$OTOOL" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6802 if test -z "$ac_cv_prog_OTOOL"; then
6804 # Extract the first word of "otool", so it can be a program name with args.
6805 set dummy otool; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6811 if test -n "$ac_ct_OTOOL"; then
6812 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_OTOOL="otool"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6832 if test -n "$ac_ct_OTOOL"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6834 $as_echo "$ac_ct_OTOOL" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6840 if test "x$ac_ct_OTOOL" = x; then
6843 case $cross_compiling:$ac_tool_warned in
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6852 OTOOL="$ac_cv_prog_OTOOL"
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6863 if test -n "$OTOOL64"; then
6864 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 OTOOL64=$ac_cv_prog_OTOOL64
6884 if test -n "$OTOOL64"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6886 $as_echo "$OTOOL64" >&6; }
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6894 if test -z "$ac_cv_prog_OTOOL64"; then
6895 ac_ct_OTOOL64=$OTOOL64
6896 # Extract the first word of "otool64", so it can be a program name with args.
6897 set dummy otool64; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6903 if test -n "$ac_ct_OTOOL64"; then
6904 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_ac_ct_OTOOL64="otool64"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6924 if test -n "$ac_ct_OTOOL64"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6926 $as_echo "$ac_ct_OTOOL64" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6932 if test "x$ac_ct_OTOOL64" = x; then
6935 case $cross_compiling:$ac_tool_warned in
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939 ac_tool_warned=yes ;;
6941 OTOOL64=$ac_ct_OTOOL64
6944 OTOOL64="$ac_cv_prog_OTOOL64"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6974 $as_echo_n "checking for -single_module linker flag... " >&6; }
6975 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6978 lt_cv_apple_cc_single_mod=no
6979 if test -z "${LT_MULTI_MODULE}"; then
6980 # By default we will add the -single_module flag. You can override
6981 # by either setting the environment variable LT_MULTI_MODULE
6982 # non-empty at configure time, or by adding -multi_module to the
6984 rm -rf libconftest.dylib*
6985 echo "int foo(void){return 1;}" > conftest.c
6986 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6987 -dynamiclib -Wl,-single_module conftest.c" >&5
6988 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6989 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6991 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6992 lt_cv_apple_cc_single_mod=yes
6994 cat conftest.err >&5
6996 rm -rf libconftest.dylib*
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7001 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7003 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7004 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7007 lt_cv_ld_exported_symbols_list=no
7008 save_LDFLAGS=$LDFLAGS
7009 echo "_main" > conftest.sym
7010 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7022 if ac_fn_c_try_link "$LINENO"; then :
7023 lt_cv_ld_exported_symbols_list=yes
7025 lt_cv_ld_exported_symbols_list=no
7027 rm -f core conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 LDFLAGS="$save_LDFLAGS"
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7033 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7035 rhapsody* | darwin1.[012])
7036 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7038 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7039 darwin*) # darwin 5.x on
7040 # if running on 10.5 or later, the deployment target defaults
7041 # to the OS version, if on x86, and 10.4, the deployment
7042 # target defaults to 10.4. Don't you love it?
7043 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7044 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7045 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7049 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7053 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7054 _lt_dar_single_mod='$single_module'
7056 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7057 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7059 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7061 if test "$DSYMUTIL" != ":"; then
7062 _lt_dsymutil='~$DSYMUTIL $lib || :'
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7071 $as_echo_n "checking for ANSI C header files... " >&6; }
7072 if test "${ac_cv_header_stdc+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091 ac_cv_header_stdc=yes
7093 ac_cv_header_stdc=no
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 if test $ac_cv_header_stdc = yes; then
7098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105 $EGREP "memchr" >/dev/null 2>&1; then :
7108 ac_cv_header_stdc=no
7114 if test $ac_cv_header_stdc = yes; then
7115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7122 $EGREP "free" >/dev/null 2>&1; then :
7125 ac_cv_header_stdc=no
7131 if test $ac_cv_header_stdc = yes; then
7132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7133 if test "$cross_compiling" = yes; then :
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7140 #if ((' ' & 0x0FF) == 0x020)
7141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7144 # define ISLOWER(c) \
7145 (('a' <= (c) && (c) <= 'i') \
7146 || ('j' <= (c) && (c) <= 'r') \
7147 || ('s' <= (c) && (c) <= 'z'))
7148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7156 for (i = 0; i < 256; i++)
7157 if (XOR (islower (i), ISLOWER (i))
7158 || toupper (i) != TOUPPER (i))
7163 if ac_fn_c_try_run "$LINENO"; then :
7166 ac_cv_header_stdc=no
7168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7169 conftest.$ac_objext conftest.beam conftest.$ac_ext
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7175 $as_echo "$ac_cv_header_stdc" >&6; }
7176 if test $ac_cv_header_stdc = yes; then
7178 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7184 inttypes.h stdint.h unistd.h
7186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7187 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7189 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7190 cat >>confdefs.h <<_ACEOF
7191 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7199 for ac_header in dlfcn.h
7201 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7203 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7204 cat >>confdefs.h <<_ACEOF
7205 @%:@define HAVE_DLFCN_H 1
7215 ac_cpp='$CXXCPP $CPPFLAGS'
7216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7219 if test -z "$CXX"; then
7220 if test -n "$CCC"; then
7223 if test -n "$ac_tool_prefix"; then
7224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_CXX+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7233 if test -n "$CXX"; then
7234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 if test -n "$CXX"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7256 $as_echo "$CXX" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7263 test -n "$CXX" && break
7266 if test -z "$CXX"; then
7268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7270 # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7277 if test -n "$ac_ct_CXX"; then
7278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_ac_ct_CXX="$ac_prog"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7298 if test -n "$ac_ct_CXX"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7300 $as_echo "$ac_ct_CXX" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7307 test -n "$ac_ct_CXX" && break
7310 if test "x$ac_ct_CXX" = x; then
7313 case $cross_compiling:$ac_tool_warned in
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7325 # Provide some information about the compiler.
7326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7329 for ac_option in --version -v -V -qversion; do
7330 { { ac_try="$ac_compiler $ac_option >&5"
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7336 $as_echo "$ac_try_echo"; } >&5
7337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7339 if test -s conftest.err; then
7341 ... rest of stderr output deleted ...
7342 10q' conftest.err >conftest.er1
7343 cat conftest.er1 >&5
7345 rm -f conftest.er1 conftest.err
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7352 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7369 if ac_fn_cxx_try_compile "$LINENO"; then :
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7380 if test $ac_compiler_gnu = yes; then
7385 ac_test_CXXFLAGS=${CXXFLAGS+set}
7386 ac_save_CXXFLAGS=$CXXFLAGS
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7389 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7393 ac_cxx_werror_flag=yes
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7407 if ac_fn_cxx_try_compile "$LINENO"; then :
7408 ac_cv_prog_cxx_g=yes
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7422 if ac_fn_cxx_try_compile "$LINENO"; then :
7425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7438 if ac_fn_cxx_try_compile "$LINENO"; then :
7439 ac_cv_prog_cxx_g=yes
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7450 if test "$ac_test_CXXFLAGS" = set; then
7451 CXXFLAGS=$ac_save_CXXFLAGS
7452 elif test $ac_cv_prog_cxx_g = yes; then
7453 if test "$GXX" = yes; then
7459 if test "$GXX" = yes; then
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7473 (test "X$CXX" != "Xg++"))) ; then
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7480 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7481 if test -z "$CXXCPP"; then
7482 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7485 # Double quotes because CXXCPP needs to be expanded
7486 for CXXCPP in "$CXX -E" "/lib/cpp"
7489 for ac_cxx_preproc_warn_flag in '' yes
7491 # Use a header file that comes with gcc, so configuring glibc
7492 # with a fresh cross-compiler works.
7493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7494 # <limits.h> exists even on freestanding compilers.
7495 # On the NeXT, cc -E runs the code through the compiler's parser,
7496 # not just through cpp. "Syntax error" is here to catch this case.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 @%:@ include <limits.h>
7502 @%:@ include <assert.h>
7506 if ac_fn_cxx_try_cpp "$LINENO"; then :
7509 # Broken: fails on valid input.
7512 rm -f conftest.err conftest.i conftest.$ac_ext
7514 # OK, works on sane cases. Now check whether nonexistent headers
7515 # can be detected and how.
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 @%:@include <ac_nonexistent.h>
7520 if ac_fn_cxx_try_cpp "$LINENO"; then :
7521 # Broken: success on invalid input.
7524 # Passes both tests.
7528 rm -f conftest.err conftest.i conftest.$ac_ext
7531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7532 rm -f conftest.i conftest.err conftest.$ac_ext
7533 if $ac_preproc_ok; then :
7538 ac_cv_prog_CXXCPP=$CXXCPP
7541 CXXCPP=$ac_cv_prog_CXXCPP
7543 ac_cv_prog_CXXCPP=$CXXCPP
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7546 $as_echo "$CXXCPP" >&6; }
7548 for ac_cxx_preproc_warn_flag in '' yes
7550 # Use a header file that comes with gcc, so configuring glibc
7551 # with a fresh cross-compiler works.
7552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553 # <limits.h> exists even on freestanding compilers.
7554 # On the NeXT, cc -E runs the code through the compiler's parser,
7555 # not just through cpp. "Syntax error" is here to catch this case.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 @%:@ include <limits.h>
7561 @%:@ include <assert.h>
7565 if ac_fn_cxx_try_cpp "$LINENO"; then :
7568 # Broken: fails on valid input.
7571 rm -f conftest.err conftest.i conftest.$ac_ext
7573 # OK, works on sane cases. Now check whether nonexistent headers
7574 # can be detected and how.
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 @%:@include <ac_nonexistent.h>
7579 if ac_fn_cxx_try_cpp "$LINENO"; then :
7580 # Broken: success on invalid input.
7583 # Passes both tests.
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7591 rm -f conftest.i conftest.err conftest.$ac_ext
7592 if $ac_preproc_ok; then :
7595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7597 _lt_caught_CXX_error=yes; }
7601 ac_cpp='$CPP $CPPFLAGS'
7602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7607 _lt_caught_CXX_error=yes
7622 @%:@ Check whether --enable-shared was given.
7623 if test "${enable_shared+set}" = set; then :
7624 enableval=$enable_shared; p=${PACKAGE-default}
7626 yes) enable_shared=yes ;;
7627 no) enable_shared=no ;;
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632 for pkg in $enableval; do
7634 if test "X$pkg" = "X$p"; then
7653 @%:@ Check whether --enable-static was given.
7654 if test "${enable_static+set}" = set; then :
7655 enableval=$enable_static; p=${PACKAGE-default}
7657 yes) enable_static=yes ;;
7658 no) enable_static=no ;;
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663 for pkg in $enableval; do
7665 if test "X$pkg" = "X$p"; then
7685 @%:@ Check whether --with-pic was given.
7686 if test "${with_pic+set}" = set; then :
7687 withval=$with_pic; pic_mode="$withval"
7693 test -z "$pic_mode" && pic_mode=default
7701 @%:@ Check whether --enable-fast-install was given.
7702 if test "${enable_fast_install+set}" = set; then :
7703 enableval=$enable_fast_install; p=${PACKAGE-default}
7705 yes) enable_fast_install=yes ;;
7706 no) enable_fast_install=no ;;
7708 enable_fast_install=no
7709 # Look at the argument we got. We use all the common list separators.
7710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711 for pkg in $enableval; do
7713 if test "X$pkg" = "X$p"; then
7714 enable_fast_install=yes
7721 enable_fast_install=yes
7734 # This can be used to rebuild libtool when needed
7735 LIBTOOL_DEPS="$ltmain"
7737 # Always use our own libtool.
7738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7764 test -z "$LN_S" && LN_S="ln -s"
7779 if test -n "${ZSH_VERSION+set}" ; then
7780 setopt NO_GLOB_SUBST
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7784 $as_echo_n "checking for objdir... " >&6; }
7785 if test "${lt_cv_objdir+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7788 rm -f .libs 2>/dev/null
7789 mkdir .libs 2>/dev/null
7790 if test -d .libs; then
7793 # MS-DOS does not allow filenames that begin with a dot.
7796 rmdir .libs 2>/dev/null
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7799 $as_echo "$lt_cv_objdir" >&6; }
7800 objdir=$lt_cv_objdir
7806 cat >>confdefs.h <<_ACEOF
7807 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7828 # AIX sometimes has problems with the GCC collect2 program. For some
7829 # reason, if we set the COLLECT_NAMES environment variable, the problems
7830 # vanish in a puff of smoke.
7831 if test "X${COLLECT_NAMES+set}" != Xset; then
7833 export COLLECT_NAMES
7838 # Sed substitution that helps us do robust quoting. It backslashifies
7839 # metacharacters that are still active within double-quoted strings.
7840 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7842 # Same as above, but do not quote variable references.
7843 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7845 # Sed substitution to delay expansion of an escaped shell variable in a
7846 # double_quote_subst'ed string.
7847 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7849 # Sed substitution to delay expansion of an escaped single quote.
7850 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7852 # Sed substitution to avoid accidental globbing in evaled expressions
7853 no_glob_subst='s/\*/\\\*/g'
7857 can_build_shared=yes
7859 # All known linkers require a `.a' archive for static linking (except MSVC,
7860 # which needs '.lib').
7863 with_gnu_ld="$lt_cv_prog_gnu_ld"
7866 old_CFLAGS="$CFLAGS"
7868 # Set sane defaults for various variables
7869 test -z "$CC" && CC=cc
7870 test -z "$LTCC" && LTCC=$CC
7871 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7872 test -z "$LD" && LD=ld
7873 test -z "$ac_objext" && ac_objext=o
7875 for cc_temp in $compiler""; do
7877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7883 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7886 # Only perform the check for file, if the check method requires it
7887 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7888 case $deplibs_check_method in
7890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7892 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7901 lt_save_MAGIC_CMD="$MAGIC_CMD"
7902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7904 for ac_dir in $ac_dummy; do
7906 test -z "$ac_dir" && ac_dir=.
7907 if test -f $ac_dir/${ac_tool_prefix}file; then
7908 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7909 if test -n "$file_magic_test_file"; then
7910 case $deplibs_check_method in
7912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7915 $EGREP "$file_magic_regex" > /dev/null; then
7920 *** Warning: the command libtool uses to detect shared libraries,
7921 *** $file_magic_cmd, produces output that libtool cannot recognize.
7922 *** The result is that libtool may fail to recognize shared libraries
7923 *** as such. This will affect the creation of libtool libraries that
7924 *** depend on shared libraries, but programs linked with such libtool
7925 *** libraries will work regardless of this problem. Nevertheless, you
7926 *** may want to report the problem to your system manager and/or to
7927 *** bug-libtool@gnu.org
7937 MAGIC_CMD="$lt_save_MAGIC_CMD"
7942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943 if test -n "$MAGIC_CMD"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7945 $as_echo "$MAGIC_CMD" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7955 if test -z "$lt_cv_path_MAGIC_CMD"; then
7956 if test -n "$ac_tool_prefix"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7958 $as_echo_n "checking for file... " >&6; }
7959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7967 lt_save_MAGIC_CMD="$MAGIC_CMD"
7968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7970 for ac_dir in $ac_dummy; do
7972 test -z "$ac_dir" && ac_dir=.
7973 if test -f $ac_dir/file; then
7974 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7975 if test -n "$file_magic_test_file"; then
7976 case $deplibs_check_method in
7978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7981 $EGREP "$file_magic_regex" > /dev/null; then
7986 *** Warning: the command libtool uses to detect shared libraries,
7987 *** $file_magic_cmd, produces output that libtool cannot recognize.
7988 *** The result is that libtool may fail to recognize shared libraries
7989 *** as such. This will affect the creation of libtool libraries that
7990 *** depend on shared libraries, but programs linked with such libtool
7991 *** libraries will work regardless of this problem. Nevertheless, you
7992 *** may want to report the problem to your system manager and/or to
7993 *** bug-libtool@gnu.org
8003 MAGIC_CMD="$lt_save_MAGIC_CMD"
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009 if test -n "$MAGIC_CMD"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8011 $as_echo "$MAGIC_CMD" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8027 # Use C for the default configuration in the libtool script
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037 # Source file extension for C test sources.
8040 # Object file extension for compiled C test sources.
8044 # Code to be used in simple compile tests
8045 lt_simple_compile_test_code="int some_variable = 0;"
8047 # Code to be used in simple link tests
8048 lt_simple_link_test_code='int main(){return(0);}'
8056 # If no C compiler was specified, use CC.
8059 # If no C compiler flags were specified, use CFLAGS.
8060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8062 # Allow CC to be a program name with arguments.
8065 # Save the default compiler, since it gets overwritten when the other
8066 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8067 compiler_DEFAULT=$CC
8069 # save warnings/boilerplate of simple test code
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_compiler_boilerplate=`cat conftest.err`
8076 ac_outfile=conftest.$ac_objext
8077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8079 _lt_linker_boilerplate=`cat conftest.err`
8083 if test -n "$compiler"; then
8085 lt_prog_compiler_no_builtin_flag=
8087 if test "$GCC" = yes; then
8088 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8092 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8095 lt_cv_prog_compiler_rtti_exceptions=no
8096 ac_outfile=conftest.$ac_objext
8097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098 lt_compiler_flag="-fno-rtti -fno-exceptions"
8099 # Insert the option either (1) after the last *FLAGS variable, or
8100 # (2) before a word containing "conftest.", or (3) at the end.
8101 # Note that $ac_compile itself does not contain backslashes and begins
8102 # with a dollar sign (not a hyphen), so the echo should work correctly.
8103 # The option is referenced via a variable to avoid confusing sed.
8104 lt_compile=`echo "$ac_compile" | $SED \
8105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107 -e 's:$: $lt_compiler_flag:'`
8108 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8109 (eval "$lt_compile" 2>conftest.err)
8111 cat conftest.err >&5
8112 echo "$as_me:__oline__: \$? = $ac_status" >&5
8113 if (exit $ac_status) && test -s "$ac_outfile"; then
8114 # The compiler can only warn and ignore the option if not recognized
8115 # So say no if there are warnings other than the usual output.
8116 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119 lt_cv_prog_compiler_rtti_exceptions=yes
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8141 lt_prog_compiler_wl=
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_static=
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148 if test "$GCC" = yes; then
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_static='-static'
8154 # All AIX code is PIC.
8155 if test "$host_cpu" = ia64; then
8156 # AIX 5 now supports IA64 processor
8157 lt_prog_compiler_static='-Bstatic'
8164 # see comment about AmigaOS4 .so support
8165 lt_prog_compiler_pic='-fPIC'
8168 # FIXME: we need at least 68020 code to build shared libraries, but
8169 # adding the `-m68020' flag to GCC prevents building anything better,
8171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8176 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8177 # PIC is the default for these OSes.
8180 mingw* | cygwin* | pw32* | os2* | cegcc*)
8181 # This hack is so that the source file can tell whether it is being
8182 # built for inclusion in a dll (and should export symbols for example).
8183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8184 # (--disable-auto-import) libraries
8185 lt_prog_compiler_pic='-DDLL_EXPORT'
8188 darwin* | rhapsody*)
8189 # PIC is the default on this platform
8190 # Common symbols not allowed in MH_DYLIB files
8191 lt_prog_compiler_pic='-fno-common'
8195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8197 # sets the default TLS model and affects inlining.
8203 lt_prog_compiler_pic='-fPIC'
8209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8210 # Instead, we relocate shared libraries at runtime.
8214 # Just because we use GCC doesn't mean we suddenly get shared libraries
8215 # on systems that don't support them.
8216 lt_prog_compiler_can_build_shared=no
8221 # QNX uses GNU C++, but need to define -shared option too, otherwise
8223 lt_prog_compiler_pic='-fPIC -shared'
8227 if test -d /usr/nec; then
8228 lt_prog_compiler_pic=-Kconform_pic
8233 lt_prog_compiler_pic='-fPIC'
8237 # PORTME Check for flag to pass linker flags through the system compiler.
8240 lt_prog_compiler_wl='-Wl,'
8241 if test "$host_cpu" = ia64; then
8242 # AIX 5 now supports IA64 processor
8243 lt_prog_compiler_static='-Bstatic'
8245 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8249 mingw* | cygwin* | pw32* | os2* | cegcc*)
8250 # This hack is so that the source file can tell whether it is being
8251 # built for inclusion in a dll (and should export symbols for example).
8252 lt_prog_compiler_pic='-DDLL_EXPORT'
8255 hpux9* | hpux10* | hpux11*)
8256 lt_prog_compiler_wl='-Wl,'
8257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8264 lt_prog_compiler_pic='+Z'
8267 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8268 lt_prog_compiler_static='${wl}-a ${wl}archive'
8271 irix5* | irix6* | nonstopux*)
8272 lt_prog_compiler_wl='-Wl,'
8273 # PIC (with -KPIC) is the default.
8274 lt_prog_compiler_static='-non_shared'
8277 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8278 case $cc_basename in
8279 # old Intel for x86_64 which still supported -KPIC.
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-KPIC'
8283 lt_prog_compiler_static='-static'
8285 # icc used to be incompatible with GCC.
8286 # ICC 10 doesn't accept -KPIC any more.
8288 lt_prog_compiler_wl='-Wl,'
8289 lt_prog_compiler_pic='-fPIC'
8290 lt_prog_compiler_static='-static'
8292 # Lahey Fortran 8.1.
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='--shared'
8296 lt_prog_compiler_static='--static'
8298 pgcc* | pgf77* | pgf90* | pgf95*)
8299 # Portland Group compilers (*not* the Pentium gcc compiler,
8300 # which looks to be a dead project)
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_pic='-fpic'
8303 lt_prog_compiler_static='-Bstatic'
8306 lt_prog_compiler_wl='-Wl,'
8307 # All Alpha code is PIC.
8308 lt_prog_compiler_static='-non_shared'
8311 # IBM XL C 8.0/Fortran 10.1 on PPC
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-qpic'
8314 lt_prog_compiler_static='-qstaticlink'
8317 case `$CC -V 2>&1 | sed 5q` in
8320 lt_prog_compiler_pic='-KPIC'
8321 lt_prog_compiler_static='-Bstatic'
8322 lt_prog_compiler_wl='-Wl,'
8325 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-Bstatic'
8328 lt_prog_compiler_wl=''
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8341 # QNX uses GNU C++, but need to define -shared option too, otherwise
8343 lt_prog_compiler_pic='-fPIC -shared'
8346 osf3* | osf4* | osf5*)
8347 lt_prog_compiler_wl='-Wl,'
8348 # All OSF/1 code is PIC.
8349 lt_prog_compiler_static='-non_shared'
8353 lt_prog_compiler_static='-non_shared'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8359 case $cc_basename in
8361 lt_prog_compiler_wl='-Qoption ld ';;
8363 lt_prog_compiler_wl='-Wl,';;
8368 lt_prog_compiler_wl='-Qoption ld '
8369 lt_prog_compiler_pic='-PIC'
8370 lt_prog_compiler_static='-Bstatic'
8373 sysv4 | sysv4.2uw2* | sysv4.3*)
8374 lt_prog_compiler_wl='-Wl,'
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8380 if test -d /usr/nec ;then
8381 lt_prog_compiler_pic='-Kconform_pic'
8382 lt_prog_compiler_static='-Bstatic'
8386 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_can_build_shared=no
8398 lt_prog_compiler_pic='-pic'
8399 lt_prog_compiler_static='-Bstatic'
8403 lt_prog_compiler_can_build_shared=no
8409 # For platforms which do not support PIC, -DPIC is meaningless:
8411 lt_prog_compiler_pic=
8414 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8418 $as_echo "$lt_prog_compiler_pic" >&6; }
8426 # Check to make sure the PIC flag actually works.
8428 if test -n "$lt_prog_compiler_pic"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8431 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8434 lt_cv_prog_compiler_pic_works=no
8435 ac_outfile=conftest.$ac_objext
8436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 # The option is referenced via a variable to avoid confusing sed.
8443 lt_compile=`echo "$ac_compile" | $SED \
8444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446 -e 's:$: $lt_compiler_flag:'`
8447 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8448 (eval "$lt_compile" 2>conftest.err)
8450 cat conftest.err >&5
8451 echo "$as_me:__oline__: \$? = $ac_status" >&5
8452 if (exit $ac_status) && test -s "$ac_outfile"; then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings other than the usual output.
8455 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_pic_works=yes
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8465 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8467 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8468 case $lt_prog_compiler_pic in
8470 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8473 lt_prog_compiler_pic=
8474 lt_prog_compiler_can_build_shared=no
8485 # Check to make sure the static flag actually works.
8487 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8489 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8490 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 lt_cv_prog_compiler_static_works=no
8494 save_LDFLAGS="$LDFLAGS"
8495 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8496 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8498 # The linker can only warn and ignore the option if not recognized
8499 # So say no if there are warnings
8500 if test -s conftest.err; then
8501 # Append any errors to the config.log.
8502 cat conftest.err 1>&5
8503 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8505 if diff conftest.exp conftest.er2 >/dev/null; then
8506 lt_cv_prog_compiler_static_works=yes
8509 lt_cv_prog_compiler_static_works=yes
8513 LDFLAGS="$save_LDFLAGS"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8517 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8519 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8522 lt_prog_compiler_static=
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8532 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8533 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8536 lt_cv_prog_compiler_c_o=no
8537 $RM -r conftest 2>/dev/null
8541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543 lt_compiler_flag="-o out/conftest2.$ac_objext"
8544 # Insert the option either (1) after the last *FLAGS variable, or
8545 # (2) before a word containing "conftest.", or (3) at the end.
8546 # Note that $ac_compile itself does not contain backslashes and begins
8547 # with a dollar sign (not a hyphen), so the echo should work correctly.
8548 lt_compile=`echo "$ac_compile" | $SED \
8549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8551 -e 's:$: $lt_compiler_flag:'`
8552 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8553 (eval "$lt_compile" 2>out/conftest.err)
8555 cat out/conftest.err >&5
8556 echo "$as_me:__oline__: \$? = $ac_status" >&5
8557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8559 # The compiler can only warn and ignore the option if not recognized
8560 # So say no if there are warnings
8561 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8564 lt_cv_prog_compiler_c_o=yes
8569 # SGI C++ compiler will create directory out/ii_files/ for
8570 # template instantiation
8571 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8572 $RM out/* && rmdir out
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8579 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 lt_cv_prog_compiler_c_o=no
8592 $RM -r conftest 2>/dev/null
8596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598 lt_compiler_flag="-o out/conftest2.$ac_objext"
8599 # Insert the option either (1) after the last *FLAGS variable, or
8600 # (2) before a word containing "conftest.", or (3) at the end.
8601 # Note that $ac_compile itself does not contain backslashes and begins
8602 # with a dollar sign (not a hyphen), so the echo should work correctly.
8603 lt_compile=`echo "$ac_compile" | $SED \
8604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606 -e 's:$: $lt_compiler_flag:'`
8607 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8608 (eval "$lt_compile" 2>out/conftest.err)
8610 cat out/conftest.err >&5
8611 echo "$as_me:__oline__: \$? = $ac_status" >&5
8612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614 # The compiler can only warn and ignore the option if not recognized
8615 # So say no if there are warnings
8616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619 lt_cv_prog_compiler_c_o=yes
8624 # SGI C++ compiler will create directory out/ii_files/ for
8625 # template instantiation
8626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627 $RM out/* && rmdir out
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8639 hard_links="nottested"
8640 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8641 # do not overwrite the value of need_locks provided by the user
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8643 $as_echo_n "checking if we can lock with hard links... " >&6; }
8646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8648 ln conftest.a conftest.b 2>&5 || hard_links=no
8649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8651 $as_echo "$hard_links" >&6; }
8652 if test "$hard_links" = no; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8667 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8670 allow_undefined_flag=
8671 always_export_symbols=no
8673 archive_expsym_cmds=
8674 compiler_needs_object=no
8675 enable_shared_with_static_runtimes=no
8676 export_dynamic_flag_spec=
8677 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8678 hardcode_automatic=no
8680 hardcode_direct_absolute=no
8681 hardcode_libdir_flag_spec=
8682 hardcode_libdir_flag_spec_ld=
8683 hardcode_libdir_separator=
8685 hardcode_shlibpath_var=unsupported
8687 link_all_deplibs=unknown
8690 old_archive_from_new_cmds=
8691 old_archive_from_expsyms_cmds=
8692 thread_safe_flag_spec=
8693 whole_archive_flag_spec=
8694 # include_expsyms should be a list of space-separated symbols to be *always*
8695 # included in the symbol list
8697 # exclude_expsyms can be an extended regexp of symbols to exclude
8698 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8699 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8700 # as well as any symbol that contains `d'.
8701 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8702 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8703 # platforms (ab)use it in PIC code, but their linkers get confused if
8704 # the symbol is explicitly referenced. Since portable code cannot
8705 # rely on this symbol name, it's probably fine to never include it in
8706 # preloaded symbol tables.
8707 # Exclude shared library initialization/finalization symbols.
8708 extract_expsyms_cmds=
8711 cygwin* | mingw* | pw32* | cegcc*)
8712 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 if test "$GCC" != yes; then
8720 # we just hope/assume this is gcc and not c89 (= MSVC++)
8726 linux* | k*bsd*-gnu)
8732 if test "$with_gnu_ld" = yes; then
8733 # If archive_cmds runs LD, not CC, wlarc should be empty
8736 # Set some defaults for GNU ld with shared library support. These
8737 # are reset later if shared libraries are not supported. Putting them
8738 # here allows them to be overridden if necessary.
8739 runpath_var=LD_RUN_PATH
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 export_dynamic_flag_spec='${wl}--export-dynamic'
8742 # ancient GNU ld didn't support --whole-archive et. al.
8743 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8744 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8746 whole_archive_flag_spec=
8748 supports_anon_versioning=no
8749 case `$LD -v 2>&1` in
8750 *GNU\ gold*) supports_anon_versioning=yes ;;
8751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8754 *\ 2.11.*) ;; # other 2.11 versions
8755 *) supports_anon_versioning=yes ;;
8758 # See if GNU ld supports shared libraries.
8761 # On AIX/PPC, the GNU linker is very broken
8762 if test "$host_cpu" != ia64; then
8766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8767 *** to be unable to reliably create shared libraries on AIX.
8768 *** Therefore, libtool is disabling shared libraries support. If you
8769 *** really care for shared libraries, you may want to modify your PATH
8770 *** so that a non-GNU linker is found, and then restart.
8779 # see comment about AmigaOS4 .so support
8780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds=''
8784 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)'
8785 hardcode_libdir_flag_spec='-L$libdir'
8786 hardcode_minus_L=yes
8792 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793 allow_undefined_flag=unsupported
8794 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8795 # support --undefined. This deserves some investigation. FIXME
8796 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802 cygwin* | mingw* | pw32* | cegcc*)
8803 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8804 # as there is no search path for DLLs.
8805 hardcode_libdir_flag_spec='-L$libdir'
8806 allow_undefined_flag=unsupported
8807 always_export_symbols=no
8808 enable_shared_with_static_runtimes=yes
8809 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8811 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8813 # If the export-symbols file already is a .def file (1st line
8814 # is EXPORTS), use it as is; otherwise, prepend...
8815 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8816 cp $export_symbols $output_objdir/$soname.def;
8818 echo EXPORTS > $output_objdir/$soname.def;
8819 cat $export_symbols >> $output_objdir/$soname.def;
8821 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8829 hardcode_shlibpath_var=no
8830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8831 export_dynamic_flag_spec='${wl}-E'
8832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8833 # Instead, shared libraries are loaded at an image base (0x10000000 by
8834 # default) and relocated if they conflict, which is a slow very memory
8835 # consuming and fragmenting process. To avoid this, we pick a random,
8836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8839 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'
8842 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8844 if test "$host_os" = linux-dietlibc; then
8845 case $cc_basename in
8846 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8849 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8850 && test "$tmp_diet" = no
8853 tmp_sharedflag='-shared'
8854 case $cc_basename,$host_cpu in
8855 pgcc*) # Portland Group C compiler
8856 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'
8857 tmp_addflag=' $pic_flag'
8859 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8860 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'
8861 tmp_addflag=' $pic_flag -Mnomain' ;;
8862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8863 tmp_addflag=' -i_dynamic' ;;
8864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8865 tmp_addflag=' -i_dynamic -nofor_main' ;;
8866 ifc* | ifort*) # Intel Fortran compiler
8867 tmp_addflag=' -nofor_main' ;;
8868 lf95*) # Lahey Fortran 8.1
8869 whole_archive_flag_spec=
8870 tmp_sharedflag='--shared' ;;
8871 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8872 tmp_sharedflag='-qmkshrobj'
8875 case `$CC -V 2>&1 | sed 5q` in
8876 *Sun\ C*) # Sun C 5.9
8877 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'
8878 compiler_needs_object=yes
8879 tmp_sharedflag='-G' ;;
8880 *Sun\ F*) # Sun Fortran 8.3
8881 tmp_sharedflag='-G' ;;
8883 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885 if test "x$supports_anon_versioning" = xyes; then
8886 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8888 echo "local: *; };" >> $output_objdir/$libname.ver~
8889 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8892 case $cc_basename in
8894 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8895 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8896 hardcode_libdir_flag_spec=
8897 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8898 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8899 if test "x$supports_anon_versioning" = xyes; then
8900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8902 echo "local: *; };" >> $output_objdir/$libname.ver~
8903 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8912 netbsd* | netbsdelf*-gnu)
8913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8914 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8923 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8927 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8928 *** create shared libraries on Solaris systems. Therefore, libtool
8929 *** is disabling shared libraries support. We urge you to upgrade GNU
8930 *** binutils to release 2.9.1 or newer. Another option is to modify
8931 *** your PATH or compiler configuration so that the native linker is
8932 *** used, and then restart.
8935 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8944 case `$LD -v 2>&1` in
8945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8949 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8950 *** reliably create shared libraries on SCO systems. Therefore, libtool
8951 *** is disabling shared libraries support. We urge you to upgrade GNU
8952 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8953 *** your PATH or compiler configuration so that the native linker is
8954 *** used, and then restart.
8959 # For security reasons, it is highly recommended that you always
8960 # use absolute paths for naming shared libraries, and exclude the
8961 # DT_RUNPATH tag from executables and libraries. But doing so
8962 # requires that you compile everything twice, which is a pain.
8963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8978 hardcode_shlibpath_var=no
8982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8991 if test "$ld_shlibs" = no; then
8993 hardcode_libdir_flag_spec=
8994 export_dynamic_flag_spec=
8995 whole_archive_flag_spec=
8998 # PORTME fill in a description of your system's linker (not GNU ld)
9001 allow_undefined_flag=unsupported
9002 always_export_symbols=yes
9003 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'
9004 # Note: this linker hardcodes the directories in LIBPATH if there
9005 # are no directories specified by -L.
9006 hardcode_minus_L=yes
9007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9008 # Neither direct hardcoding nor static linking is supported with a
9010 hardcode_direct=unsupported
9015 if test "$host_cpu" = ia64; then
9016 # On IA64, the linker does run time linking by default, so we don't
9017 # have to do anything special.
9018 aix_use_runtimelinking=no
9019 exp_sym_flag='-Bexport'
9022 # If we're using GNU nm, then we don't want the "-C" option.
9023 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9024 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9025 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'
9027 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'
9029 aix_use_runtimelinking=no
9031 # Test if we are trying to use run time linking or normal
9032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9033 # need to do runtime linking.
9034 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9035 for ld_flag in $LDFLAGS; do
9036 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9037 aix_use_runtimelinking=yes
9044 exp_sym_flag='-bexport'
9045 no_entry_flag='-bnoentry'
9048 # When large executables or shared objects are built, AIX ld can
9049 # have problems creating the table of contents. If linking a library
9050 # or program results in "error TOC overflow" add -mminimal-toc to
9051 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9052 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9056 hardcode_direct_absolute=yes
9057 hardcode_libdir_separator=':'
9058 link_all_deplibs=yes
9059 file_list_spec='${wl}-f,'
9061 if test "$GCC" = yes; then
9062 case $host_os in aix4.[012]|aix4.[012].*)
9063 # We only want to do this on AIX 4.2 and lower, the check
9064 # below for broken collect2 doesn't work under 4.3+
9065 collect2name=`${CC} -print-prog-name=collect2`
9066 if test -f "$collect2name" &&
9067 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9069 # We have reworked collect2
9072 # We have old collect2
9073 hardcode_direct=unsupported
9074 # It fails to find uninstalled libraries when the uninstalled
9075 # path is not listed in the libpath. Setting hardcode_minus_L
9076 # to unsupported forces relinking
9077 hardcode_minus_L=yes
9078 hardcode_libdir_flag_spec='-L$libdir'
9079 hardcode_libdir_separator=
9083 shared_flag='-shared'
9084 if test "$aix_use_runtimelinking" = yes; then
9085 shared_flag="$shared_flag "'${wl}-G'
9090 if test "$host_cpu" = ia64; then
9091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9092 # chokes on -Wl,-G. The following line is correct:
9095 if test "$aix_use_runtimelinking" = yes; then
9096 shared_flag='${wl}-G'
9098 shared_flag='${wl}-bM:SRE'
9103 export_dynamic_flag_spec='${wl}-bexpall'
9104 # It seems that -bexpall does not export symbols beginning with
9105 # underscore (_), so it is better to generate a list of symbols to export.
9106 always_export_symbols=yes
9107 if test "$aix_use_runtimelinking" = yes; then
9108 # Warning - without using the other runtime loading flags (-brtl),
9109 # -berok will link without error, but may produce a broken library.
9110 allow_undefined_flag='-berok'
9111 # Determine the default libpath from the value encoded in an
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9124 if ac_fn_c_try_link "$LINENO"; then :
9126 lt_aix_libpath_sed='
9127 /Import File Strings/,/^$/ {
9133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134 # Check for a 64-bit object if we didn't find anything.
9135 if test -z "$aix_libpath"; then
9136 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144 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"
9146 if test "$host_cpu" = ia64; then
9147 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9148 allow_undefined_flag="-z nodefs"
9149 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"
9151 # Determine the default libpath from the value encoded in an
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9164 if ac_fn_c_try_link "$LINENO"; then :
9166 lt_aix_libpath_sed='
9167 /Import File Strings/,/^$/ {
9173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9174 # Check for a 64-bit object if we didn't find anything.
9175 if test -z "$aix_libpath"; then
9176 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9183 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9184 # Warning - without using the other run time loading flags,
9185 # -berok will link without error, but may produce a broken library.
9186 no_undefined_flag=' ${wl}-bernotok'
9187 allow_undefined_flag=' ${wl}-berok'
9188 # Exported symbols can be pulled into shared objects from archives
9189 whole_archive_flag_spec='$convenience'
9190 archive_cmds_need_lc=yes
9191 # This is similar to how AIX traditionally builds its shared libraries.
9192 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'
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9205 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)'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9213 export_dynamic_flag_spec=-rdynamic
9216 cygwin* | mingw* | pw32* | cegcc*)
9217 # When not using gcc, we currently assume that we are using
9218 # Microsoft Visual C++.
9219 # hardcode_libdir_flag_spec is actually meaningless, as there is
9220 # no search path for DLLs.
9221 hardcode_libdir_flag_spec=' '
9222 allow_undefined_flag=unsupported
9223 # Tell ltmain to make .lib files, not .a files.
9225 # Tell ltmain to make .dll files, not .so files.
9227 # FIXME: Setting linknames here is a bad hack.
9228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9229 # The linker will automatically build a .lib file if we build a DLL.
9230 old_archive_from_new_cmds='true'
9231 # FIXME: Should let the user specify the lib program.
9232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9233 fix_srcfile_path='`cygpath -w "$srcfile"`'
9234 enable_shared_with_static_runtimes=yes
9237 darwin* | rhapsody*)
9240 archive_cmds_need_lc=no
9242 hardcode_automatic=yes
9243 hardcode_shlibpath_var=unsupported
9244 whole_archive_flag_spec=''
9245 link_all_deplibs=yes
9246 allow_undefined_flag="$_lt_dar_allow_undefined"
9247 case $cc_basename in
9248 ifort*) _lt_dar_can_shared=yes ;;
9249 *) _lt_dar_can_shared=$GCC ;;
9251 if test "$_lt_dar_can_shared" = "yes"; then
9252 output_verbose_link_cmd=echo
9253 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9254 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9255 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}"
9256 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}"
9265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_shlibpath_var=no
9274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9275 # support. Future versions do this automatically, but an explicit c++rt0.o
9276 # does not break anything, and helps significantly (at the cost of a little
9279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9280 hardcode_libdir_flag_spec='-R$libdir'
9282 hardcode_shlibpath_var=no
9285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9289 hardcode_minus_L=yes
9290 hardcode_shlibpath_var=no
9293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9294 freebsd* | dragonfly*)
9295 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9296 hardcode_libdir_flag_spec='-R$libdir'
9298 hardcode_shlibpath_var=no
9302 if test "$GCC" = yes; then
9303 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'
9305 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'
9307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308 hardcode_libdir_separator=:
9311 # hardcode_minus_L: Not really in the search PATH,
9312 # but as the default location of the library.
9313 hardcode_minus_L=yes
9314 export_dynamic_flag_spec='${wl}-E'
9318 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9323 if test "$with_gnu_ld" = no; then
9324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325 hardcode_libdir_flag_spec_ld='+b $libdir'
9326 hardcode_libdir_separator=:
9328 hardcode_direct_absolute=yes
9329 export_dynamic_flag_spec='${wl}-E'
9330 # hardcode_minus_L: Not really in the search PATH,
9331 # but as the default location of the library.
9332 hardcode_minus_L=yes
9337 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9362 if test "$with_gnu_ld" = no; then
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9369 hardcode_shlibpath_var=no
9373 hardcode_direct_absolute=yes
9374 export_dynamic_flag_spec='${wl}-E'
9376 # hardcode_minus_L: Not really in the search PATH,
9377 # but as the default location of the library.
9378 hardcode_minus_L=yes
9384 irix5* | irix6* | nonstopux*)
9385 if test "$GCC" = yes; then
9386 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'
9387 # Try to use the -exported_symbol ld option, if it does not
9388 # work, assume that -exports_file does not work either and
9389 # implicitly export all symbols.
9390 save_LDFLAGS="$LDFLAGS"
9391 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9396 if ac_fn_c_try_link "$LINENO"; then :
9397 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'
9400 rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 LDFLAGS="$save_LDFLAGS"
9404 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'
9405 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'
9407 archive_cmds_need_lc='no'
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 hardcode_libdir_separator=:
9411 link_all_deplibs=yes
9414 netbsd* | netbsdelf*-gnu)
9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9420 hardcode_libdir_flag_spec='-R$libdir'
9422 hardcode_shlibpath_var=no
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_shlibpath_var=no
9437 if test -f /usr/libexec/ld.so; then
9439 hardcode_shlibpath_var=no
9440 hardcode_direct_absolute=yes
9441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9445 export_dynamic_flag_spec='${wl}-E'
9448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_libdir_flag_spec='-R$libdir'
9453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_minus_L=yes
9466 allow_undefined_flag=unsupported
9467 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'
9468 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9472 if test "$GCC" = yes; then
9473 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9474 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'
9476 allow_undefined_flag=' -expect_unresolved \*'
9477 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'
9479 archive_cmds_need_lc='no'
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 hardcode_libdir_separator=:
9484 osf4* | osf5*) # as osf3* with the addition of -msym flag
9485 if test "$GCC" = yes; then
9486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487 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'
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490 allow_undefined_flag=' -expect_unresolved \*'
9491 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'
9492 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~
9493 $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'
9495 # Both c and cxx compiler support -rpath directly
9496 hardcode_libdir_flag_spec='-rpath $libdir'
9498 archive_cmds_need_lc='no'
9499 hardcode_libdir_separator=:
9503 no_undefined_flag=' -z defs'
9504 if test "$GCC" = yes; then
9506 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9510 case `$CC -V 2>&1` in
9513 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9519 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9521 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 hardcode_shlibpath_var=no
9528 solaris2.[0-5] | solaris2.[0-5].*) ;;
9530 # The compiler driver will combine and reorder linker options,
9531 # but understands `-z linker_flag'. GCC discards it without `$wl',
9532 # but is careful enough not to reorder.
9533 # Supported since Solaris 2.6 (maybe 2.5.1?)
9534 if test "$GCC" = yes; then
9535 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9541 link_all_deplibs=yes
9545 if test "x$host_vendor" = xsequent; then
9546 # Use $CC to link under sequent, because it throws in some extra .o
9547 # files that make .init and .fini sections work.
9548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_libdir_flag_spec='-L$libdir'
9554 hardcode_minus_L=yes
9555 hardcode_shlibpath_var=no
9559 case $host_vendor in
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes # is this really true???
9565 ## LD is ld it makes a PLAMLIB
9566 ## CC just makes a GrossModule.
9567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9568 reload_cmds='$CC -r -o $output$reload_objs'
9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9576 runpath_var='LD_RUN_PATH'
9577 hardcode_shlibpath_var=no
9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_shlibpath_var=no
9583 export_dynamic_flag_spec='-Bexport'
9587 if test -d /usr/nec; then
9588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_shlibpath_var=no
9590 runpath_var=LD_RUN_PATH
9591 hardcode_runpath_var=yes
9596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9597 no_undefined_flag='${wl}-z,text'
9598 archive_cmds_need_lc=no
9599 hardcode_shlibpath_var=no
9600 runpath_var='LD_RUN_PATH'
9602 if test "$GCC" = yes; then
9603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 sysv5* | sco3.2v5* | sco5v6*)
9612 # Note: We can NOT use -z defs as we might desire, because we do not
9613 # link with -lc, and that would cause any symbols used from libc to
9614 # always be unresolved, which means just about no library would
9615 # ever link correctly. If we're not using GNU ld we use -z text
9616 # though, which does catch some bad symbols but isn't as heavy-handed
9618 no_undefined_flag='${wl}-z,text'
9619 allow_undefined_flag='${wl}-z,nodefs'
9620 archive_cmds_need_lc=no
9621 hardcode_shlibpath_var=no
9622 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 export_dynamic_flag_spec='${wl}-Bexport'
9626 runpath_var='LD_RUN_PATH'
9628 if test "$GCC" = yes; then
9629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_libdir_flag_spec='-L$libdir'
9640 hardcode_shlibpath_var=no
9648 if test x$host_vendor = xsni; then
9650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9651 export_dynamic_flag_spec='${wl}-Blargedynsym'
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9658 $as_echo "$ld_shlibs" >&6; }
9659 test "$ld_shlibs" = no && can_build_shared=no
9661 with_gnu_ld=$with_gnu_ld
9678 # Do we need to explicitly link libc?
9680 case "x$archive_cmds_need_lc" in
9682 # Assume -lc should be added
9683 archive_cmds_need_lc=yes
9685 if test "$enable_shared" = yes && test "$GCC" = yes; then
9686 case $archive_cmds in
9688 # FIXME: we may have to deal with multi-command sequences.
9691 # Test whether the compiler implicitly links with -lc since on some
9692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9693 # to ld, don't add -lc before -lgcc.
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9700 (eval $ac_compile) 2>&5
9702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9703 test $ac_status = 0; } 2>conftest.err; then
9706 libobjs=conftest.$ac_objext
9708 wl=$lt_prog_compiler_wl
9709 pic_flag=$lt_prog_compiler_pic
9715 lt_save_allow_undefined_flag=$allow_undefined_flag
9716 allow_undefined_flag=
9717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9718 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9721 test $ac_status = 0; }
9723 archive_cmds_need_lc=no
9725 archive_cmds_need_lc=yes
9727 allow_undefined_flag=$lt_save_allow_undefined_flag
9729 cat conftest.err 1>&5
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9733 $as_echo "$archive_cmds_need_lc" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9897 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9899 if test "$GCC" = yes; then
9901 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9902 *) lt_awk_arg="/^libraries:/" ;;
9904 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9905 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9906 # if the path contains ";" then we assume it to be the separator
9907 # otherwise default to the standard path separator (i.e. ":") - it is
9908 # assumed that no part of a normal pathname contains ";" but that should
9909 # okay in the real world where ";" in dirpaths is itself problematic.
9910 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9914 # Ok, now we have the path, separated by spaces, we can step through it
9915 # and add multilib dir if necessary.
9916 lt_tmp_lt_search_path_spec=
9917 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9918 for lt_sys_path in $lt_search_path_spec; do
9919 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9920 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9922 test -d "$lt_sys_path" && \
9923 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9926 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9927 BEGIN {RS=" "; FS="/|\n";} {
9930 for (lt_i = NF; lt_i > 0; lt_i--) {
9931 if ($lt_i != "" && $lt_i != ".") {
9932 if ($lt_i == "..") {
9935 if (lt_count == 0) {
9936 lt_foo="/" $lt_i lt_foo;
9943 if (lt_foo != "") { lt_freq[lt_foo]++; }
9944 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9946 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9951 libname_spec='lib$name'
9959 shlibpath_overrides_runpath=unknown
9961 dynamic_linker="$host_os ld.so"
9962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9963 need_lib_prefix=unknown
9964 hardcode_into_libs=no
9966 # when you set need_version to no, make sure it does not cause -set_version
9967 # flags to be left without arguments
9968 need_version=unknown
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9974 shlibpath_var=LIBPATH
9976 # AIX 3 has no versioning support, so we append a major version to the name.
9977 soname_spec='${libname}${release}${shared_ext}$major'
9984 hardcode_into_libs=yes
9985 if test "$host_cpu" = ia64; then
9986 # AIX 5 supports IA64
9987 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9988 shlibpath_var=LD_LIBRARY_PATH
9990 # With GCC up to 2.95.x, collect2 would create an import file
9991 # for dependence libraries. The import file would start with
9992 # the line `#! .'. This would cause the generated library to
9993 # depend on `.', always an invalid library. This was fixed in
9994 # development snapshots of GCC prior to 3.0.
9996 aix4 | aix4.[01] | aix4.[01].*)
9997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9999 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10002 can_build_shared=no
10006 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10007 # soname into executable. Probably we can add versioning support to
10008 # collect2, so additional links can be useful in future.
10009 if test "$aix_use_runtimelinking" = yes; then
10010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10011 # instead of lib<name>.a to let people know that these are not
10012 # typical AIX shared libraries.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 # We preserve .a as extension for shared libraries through AIX4.2
10016 # and later when we are not doing run time linking.
10017 library_names_spec='${libname}${release}.a $libname.a'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LIBPATH
10027 # Since July 2007 AmigaOS4 officially supports .so libraries.
10028 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 library_names_spec='$libname.ixlibrary $libname.a'
10033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10034 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'
10040 library_names_spec='${libname}${shared_ext}'
10041 dynamic_linker="$host_os ld.so"
10042 shlibpath_var=LIBRARY_PATH
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10054 # the default ld.so.conf also contains /usr/contrib/lib and
10055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10056 # libtool to hard-code these into programs
10059 cygwin* | mingw* | pw32* | cegcc*)
10060 version_type=windows
10065 case $GCC,$host_os in
10066 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10067 library_names_spec='$libname.dll.a'
10068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10069 postinstall_cmds='base_file=`basename \${file}`~
10070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10071 dldir=$destdir/`dirname \$dlpath`~
10072 test -d \$dldir || mkdir -p \$dldir~
10073 $install_prog $dir/$dlname \$dldir/$dlname~
10074 chmod a+x \$dldir/$dlname~
10075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10079 dlpath=$dir/\$dldll~
10081 shlibpath_overrides_runpath=yes
10085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10087 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10090 # MinGW DLLs use traditional 'lib' prefix
10091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10092 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10093 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10094 # It is most probably a Windows format PATH printed by
10095 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10096 # path with ; separators, and with drive letters. We can handle the
10097 # drive letters (cygwin fileutils understands them), so leave them,
10098 # especially as we might pass files found there to a mingw objdump,
10099 # which wouldn't understand a cygwinified path. Ahh.
10100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10106 # pw32 DLLs use 'pw' prefix rather than 'lib'
10107 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10113 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10116 dynamic_linker='Win32 ld.exe'
10117 # FIXME: first we should search . and the directory the executable is in
10121 darwin* | rhapsody*)
10122 dynamic_linker="$host_os dyld"
10123 version_type=darwin
10126 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10127 soname_spec='${libname}${release}${major}$shared_ext'
10128 shlibpath_overrides_runpath=yes
10129 shlibpath_var=DYLD_LIBRARY_PATH
10130 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10132 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10133 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10149 freebsd* | dragonfly*)
10150 # DragonFly does not have aout. When/if they implement a new
10151 # versioning mechanism, adjust this.
10152 if test -x /usr/bin/objformat; then
10153 objformat=`/usr/bin/objformat`
10156 freebsd[123]*) objformat=aout ;;
10157 *) objformat=elf ;;
10160 version_type=freebsd-$objformat
10161 case $version_type in
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10172 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10177 freebsd3.[01]* | freebsdelf3.[01]*)
10178 shlibpath_overrides_runpath=yes
10179 hardcode_into_libs=yes
10181 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10182 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10186 *) # from 4.6 on, and DragonFly
10187 shlibpath_overrides_runpath=yes
10188 hardcode_into_libs=yes
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 hardcode_into_libs=yes
10203 hpux9* | hpux10* | hpux11*)
10204 # Give a soname corresponding to the major version so that dld.sl refuses to
10205 # link against other versions.
10212 hardcode_into_libs=yes
10213 dynamic_linker="$host_os dld.so"
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 if test "X$HPUX_IA64_MODE" = X32; then
10219 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10227 hardcode_into_libs=yes
10228 dynamic_linker="$host_os dld.sl"
10229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10238 dynamic_linker="$host_os dld.sl"
10239 shlibpath_var=SHLIB_PATH
10240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10245 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10246 postinstall_cmds='chmod 555 $lib'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
10258 hardcode_into_libs=yes
10261 irix5* | irix6* | nonstopux*)
10263 nonstopux*) version_type=nonstopux ;;
10265 if test "$lt_cv_prog_gnu_ld" = yes; then
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10276 irix5* | nonstopux*)
10277 libsuff= shlibsuff=
10280 case $LD in # libtool.m4 will add one of these switches to LD
10281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10282 libsuff= shlibsuff= libmagic=32-bit;;
10283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10284 libsuff=32 shlibsuff=N32 libmagic=N32;;
10285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10287 *) libsuff= shlibsuff= libmagic=never-match;;
10291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10292 shlibpath_overrides_runpath=no
10293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10295 hardcode_into_libs=yes
10298 # No shared lib support for Linux oldld, aout, or coff.
10299 linux*oldld* | linux*aout* | linux*coff*)
10303 # This must be Linux ELF.
10304 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=no
10313 # Some binutils ld are patched to set DT_RUNPATH
10314 save_LDFLAGS=$LDFLAGS
10315 save_libdir=$libdir
10316 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10317 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10329 if ac_fn_c_try_link "$LINENO"; then :
10330 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10331 shlibpath_overrides_runpath=yes
10334 rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LDFLAGS=$save_LDFLAGS
10337 libdir=$save_libdir
10339 # This implies no fast_install, which is unacceptable.
10340 # Some rework will be needed to allow for fast_install
10341 # before this can be enabled.
10342 hardcode_into_libs=yes
10344 # Append ld.so.conf contents to the search path
10345 if test -f /etc/ld.so.conf; then
10346 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' ' '`
10347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10350 # We used to test for /lib/ld.so.1 and disable shared libraries on
10351 # powerpc, because MkLinux only supported shared libraries with the
10352 # GNU dynamic linker. Since this was broken with cross compilers,
10353 # most powerpc-linux boxes support dynamic linking these days and
10354 # people can always --disable-shared, the test was removed, and we
10355 # assume the GNU/Linux dynamic linker is in use.
10356 dynamic_linker='GNU/Linux ld.so'
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=no
10367 hardcode_into_libs=yes
10368 dynamic_linker='NetBSD ld.elf_so'
10375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10378 dynamic_linker='NetBSD (a.out) ld.so'
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 dynamic_linker='NetBSD ld.elf_so'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 hardcode_into_libs=yes
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=yes
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10405 dynamic_linker='ldqnx.so'
10410 sys_lib_dlsearch_path_spec="/usr/lib"
10412 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10414 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10415 *) need_version=no ;;
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10422 openbsd2.[89] | openbsd2.[89].*)
10423 shlibpath_overrides_runpath=no
10426 shlibpath_overrides_runpath=yes
10430 shlibpath_overrides_runpath=yes
10435 libname_spec='$name'
10438 library_names_spec='$libname${shared_ext} $libname.a'
10439 dynamic_linker='OS/2 ld.exe'
10440 shlibpath_var=LIBPATH
10443 osf3* | osf4* | osf5*)
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=yes
10466 hardcode_into_libs=yes
10467 # ldd complains unless libraries are executable
10468 postinstall_cmds='chmod +x $lib'
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10474 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=yes
10477 if test "$with_gnu_ld" = yes; then
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 case $host_vendor in
10490 shlibpath_overrides_runpath=no
10492 runpath_var=LD_RUN_PATH
10500 shlibpath_overrides_runpath=no
10501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10507 if test -d /usr/nec ;then
10509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10510 soname_spec='$libname${shared_ext}.$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10516 version_type=freebsd-elf
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=yes
10523 hardcode_into_libs=yes
10524 if test "$with_gnu_ld" = yes; then
10525 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10534 sys_lib_dlsearch_path_spec='/usr/lib'
10538 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=no
10545 hardcode_into_libs=yes
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10560 $as_echo "$dynamic_linker" >&6; }
10561 test "$dynamic_linker" = no && can_build_shared=no
10563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10564 if test "$GCC" = yes; then
10565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10568 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10569 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10571 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10572 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10664 if test -n "$hardcode_libdir_flag_spec" ||
10665 test -n "$runpath_var" ||
10666 test "X$hardcode_automatic" = "Xyes" ; then
10668 # We can hardcode non-existent directories.
10669 if test "$hardcode_direct" != no &&
10670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10671 # have to relink, otherwise we might link with an installed library
10672 # when we should be linking with a yet-to-be-installed one
10673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10674 test "$hardcode_minus_L" != no; then
10675 # Linking always hardcodes the temporary library directory.
10676 hardcode_action=relink
10678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10679 hardcode_action=immediate
10682 # We cannot hardcode anything, or else we can only hardcode existing
10684 hardcode_action=unsupported
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10687 $as_echo "$hardcode_action" >&6; }
10689 if test "$hardcode_action" = relink ||
10690 test "$inherit_rpath" = yes; then
10691 # Fast installation is not supported
10692 enable_fast_install=no
10693 elif test "$shlibpath_overrides_runpath" = yes ||
10694 test "$enable_shared" = no; then
10695 # Fast installation is not necessary
10696 enable_fast_install=needless
10704 if test "x$enable_dlopen" != xyes; then
10705 enable_dlopen=unknown
10706 enable_dlopen_self=unknown
10707 enable_dlopen_self_static=unknown
10714 lt_cv_dlopen="load_add_on"
10716 lt_cv_dlopen_self=yes
10719 mingw* | pw32* | cegcc*)
10720 lt_cv_dlopen="LoadLibrary"
10725 lt_cv_dlopen="dlopen"
10730 # if libdl is installed we need to link against it
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10736 ac_check_lib_save_LIBS=$LIBS
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10756 if ac_fn_c_try_link "$LINENO"; then :
10757 ac_cv_lib_dl_dlopen=yes
10759 ac_cv_lib_dl_dlopen=no
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10767 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 lt_cv_dlopen="dyld"
10773 lt_cv_dlopen_self=yes
10780 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10781 if test "x$ac_cv_func_shl_load" = x""yes; then :
10782 lt_cv_dlopen="shl_load"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10789 ac_check_lib_save_LIBS=$LIBS
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10804 return shl_load ();
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_dld_shl_load=yes
10812 ac_cv_lib_dld_shl_load=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10819 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10820 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10823 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10824 if test "x$ac_cv_func_dlopen" = x""yes; then :
10825 lt_cv_dlopen="dlopen"
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10832 ac_check_lib_save_LIBS=$LIBS
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10837 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10852 if ac_fn_c_try_link "$LINENO"; then :
10853 ac_cv_lib_dl_dlopen=yes
10855 ac_cv_lib_dl_dlopen=no
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10863 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10868 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lsvld $LIBS"
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10891 if ac_fn_c_try_link "$LINENO"; then :
10892 ac_cv_lib_svld_dlopen=yes
10894 ac_cv_lib_svld_dlopen=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10902 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10906 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10910 ac_check_lib_save_LIBS=$LIBS
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10925 return dld_link ();
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 ac_cv_lib_dld_dld_link=yes
10933 ac_cv_lib_dld_dld_link=no
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10940 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10941 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10942 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10963 if test "x$lt_cv_dlopen" != xno; then
10969 case $lt_cv_dlopen in
10971 save_CPPFLAGS="$CPPFLAGS"
10972 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10974 save_LDFLAGS="$LDFLAGS"
10975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10978 LIBS="$lt_cv_dlopen_libs $LIBS"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10981 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10982 if test "${lt_cv_dlopen_self+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10985 if test "$cross_compiling" = yes; then :
10986 lt_cv_dlopen_self=cross
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<_LT_EOF
10991 #line __oline__ "configure"
10992 #include "confdefs.h"
11001 # define LT_DLGLOBAL RTLD_GLOBAL
11004 # define LT_DLGLOBAL DL_GLOBAL
11006 # define LT_DLGLOBAL 0
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # define LT_DLLAZY_OR_NOW DL_NOW
11025 # define LT_DLLAZY_OR_NOW 0
11032 void fnord() { int i=42;}
11035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11036 int status = $lt_dlunknown;
11040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11042 /* dlclose (self); */
11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051 (eval $ac_link) 2>&5
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055 (./conftest; exit; ) >&5 2>/dev/null
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11063 # compilation failed
11064 lt_cv_dlopen_self=no
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072 $as_echo "$lt_cv_dlopen_self" >&6; }
11074 if test "x$lt_cv_dlopen_self" = xyes; then
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11081 if test "$cross_compiling" = yes; then :
11082 lt_cv_dlopen_self_static=cross
11084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085 lt_status=$lt_dlunknown
11086 cat > conftest.$ac_ext <<_LT_EOF
11087 #line __oline__ "configure"
11088 #include "confdefs.h"
11097 # define LT_DLGLOBAL RTLD_GLOBAL
11100 # define LT_DLGLOBAL DL_GLOBAL
11102 # define LT_DLGLOBAL 0
11106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107 find out it does not work in some platform. */
11108 #ifndef LT_DLLAZY_OR_NOW
11110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11113 # define LT_DLLAZY_OR_NOW DL_LAZY
11116 # define LT_DLLAZY_OR_NOW RTLD_NOW
11119 # define LT_DLLAZY_OR_NOW DL_NOW
11121 # define LT_DLLAZY_OR_NOW 0
11128 void fnord() { int i=42;}
11131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11132 int status = $lt_dlunknown;
11136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11138 /* dlclose (self); */
11146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11147 (eval $ac_link) 2>&5
11149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11151 (./conftest; exit; ) >&5 2>/dev/null
11153 case x$lt_status in
11154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11159 # compilation failed
11160 lt_cv_dlopen_self_static=no
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11171 CPPFLAGS="$save_CPPFLAGS"
11172 LDFLAGS="$save_LDFLAGS"
11177 case $lt_cv_dlopen_self in
11178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11179 *) enable_dlopen_self=unknown ;;
11182 case $lt_cv_dlopen_self_static in
11183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11184 *) enable_dlopen_self_static=unknown ;;
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11214 # FIXME - insert some real tests, host_os isn't really good enough
11217 if test -n "$STRIP" ; then
11218 striplib="$STRIP -x"
11219 old_striplib="$STRIP -S"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11245 # Report which library types will actually be built
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11249 $as_echo "$can_build_shared" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11252 $as_echo_n "checking whether to build shared libraries... " >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11259 test "$enable_shared" = yes && enable_static=no
11260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11273 $as_echo "$enable_shared" >&6; }
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11276 $as_echo_n "checking whether to build static libraries... " >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11280 $as_echo "$enable_static" >&6; }
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11296 ac_cpp='$CXXCPP $CPPFLAGS'
11297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11301 archive_cmds_need_lc_CXX=no
11302 allow_undefined_flag_CXX=
11303 always_export_symbols_CXX=no
11304 archive_expsym_cmds_CXX=
11305 compiler_needs_object_CXX=no
11306 export_dynamic_flag_spec_CXX=
11307 hardcode_direct_CXX=no
11308 hardcode_direct_absolute_CXX=no
11309 hardcode_libdir_flag_spec_CXX=
11310 hardcode_libdir_flag_spec_ld_CXX=
11311 hardcode_libdir_separator_CXX=
11312 hardcode_minus_L_CXX=no
11313 hardcode_shlibpath_var_CXX=unsupported
11314 hardcode_automatic_CXX=no
11315 inherit_rpath_CXX=no
11317 module_expsym_cmds_CXX=
11318 link_all_deplibs_CXX=unknown
11319 old_archive_cmds_CXX=$old_archive_cmds
11320 no_undefined_flag_CXX=
11321 whole_archive_flag_spec_CXX=
11322 enable_shared_with_static_runtimes_CXX=no
11324 # Source file extension for C++ test sources.
11327 # Object file extension for compiled C++ test sources.
11331 # No sense in running all these tests if we already determined that
11332 # the CXX compiler isn't working. Some variables (like enable_shared)
11333 # are currently assumed to apply to all compilers on this platform,
11334 # and will be corrupted by setting them based on a non-working compiler.
11335 if test "$_lt_caught_CXX_error" != yes; then
11336 # Code to be used in simple compile tests
11337 lt_simple_compile_test_code="int some_variable = 0;"
11339 # Code to be used in simple link tests
11340 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11349 # If no C compiler was specified, use CC.
11352 # If no C compiler flags were specified, use CFLAGS.
11353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11355 # Allow CC to be a program name with arguments.
11359 # save warnings/boilerplate of simple test code
11360 ac_outfile=conftest.$ac_objext
11361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11363 _lt_compiler_boilerplate=`cat conftest.err`
11366 ac_outfile=conftest.$ac_objext
11367 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11369 _lt_linker_boilerplate=`cat conftest.err`
11373 # Allow CC to be a program name with arguments.
11378 lt_save_with_gnu_ld=$with_gnu_ld
11379 lt_save_path_LD=$lt_cv_path_LD
11380 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11381 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11383 $as_unset lt_cv_prog_gnu_ld
11385 if test -n "${lt_cv_path_LDCXX+set}"; then
11386 lt_cv_path_LD=$lt_cv_path_LDCXX
11388 $as_unset lt_cv_path_LD
11390 test -z "${LDCXX+set}" || LD=$LDCXX
11394 for cc_temp in $compiler""; do
11396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11402 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11405 if test -n "$compiler"; then
11406 # We don't want -fno-exception when compiling C++ code, so set the
11407 # no_builtin_flag separately
11408 if test "$GXX" = yes; then
11409 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11411 lt_prog_compiler_no_builtin_flag_CXX=
11414 if test "$GXX" = yes; then
11415 # Set up default GNU C++ configuration
11419 @%:@ Check whether --with-gnu-ld was given.
11420 if test "${with_gnu_ld+set}" = set; then :
11421 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11427 if test "$GCC" = yes; then
11428 # Check if gcc -print-prog-name=ld gives a path.
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11430 $as_echo_n "checking for ld used by $CC... " >&6; }
11433 # gcc leaves a trailing carriage return which upsets mingw
11434 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11436 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11439 # Accept absolute paths.
11441 re_direlt='/[^/][^/]*/\.\./'
11442 # Canonicalize the pathname of ld
11443 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11444 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11445 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11447 test -z "$LD" && LD="$ac_prog"
11450 # If it fails, then pretend we aren't using GCC.
11454 # If it is relative, then search for the first ld in PATH.
11455 with_gnu_ld=unknown
11458 elif test "$with_gnu_ld" = yes; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11460 $as_echo_n "checking for GNU ld... " >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11463 $as_echo_n "checking for non-GNU ld... " >&6; }
11465 if test "${lt_cv_path_LD+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
11468 if test -z "$LD"; then
11469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11470 for ac_dir in $PATH; do
11472 test -z "$ac_dir" && ac_dir=.
11473 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11474 lt_cv_path_LD="$ac_dir/$ac_prog"
11475 # Check to see if the program is GNU ld. I'd rather use --version,
11476 # but apparently some variants of GNU ld only accept -v.
11477 # Break only if it was the GNU/non-GNU ld that we prefer.
11478 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11479 *GNU* | *'with BFD'*)
11480 test "$with_gnu_ld" != no && break
11483 test "$with_gnu_ld" != yes && break
11490 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11494 LD="$lt_cv_path_LD"
11495 if test -n "$LD"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11497 $as_echo "$LD" >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11502 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11504 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11505 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11508 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11509 case `$LD -v 2>&1 </dev/null` in
11510 *GNU* | *'with BFD'*)
11511 lt_cv_prog_gnu_ld=yes
11514 lt_cv_prog_gnu_ld=no
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11519 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11520 with_gnu_ld=$lt_cv_prog_gnu_ld
11528 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11529 # archiving commands below assume that GNU ld is being used.
11530 if test "$with_gnu_ld" = yes; then
11531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11532 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'
11534 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11535 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11537 # If archive_cmds runs LD, not CC, wlarc should be empty
11538 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11539 # investigate it a little bit more. (MM)
11542 # ancient GNU ld didn't support --whole-archive et. al.
11543 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11544 $GREP 'no-whole-archive' > /dev/null; then
11545 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11547 whole_archive_flag_spec_CXX=
11553 # A generic and very simple default shared library creation
11554 # command for GNU C++ for the case where it uses the native
11555 # linker, instead of GNU ld. If possible, this setting should
11556 # overridden to take advantage of the native linker features on
11557 # the platform it is being used on.
11558 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11561 # Commands to make compiler produce verbose output that lists
11562 # what "hidden" libraries, object files and flags are used when
11563 # linking a shared library.
11564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11572 # PORTME: fill in a description of your system's C++ link characteristics
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11578 # FIXME: insert proper C++ library support
11582 if test "$host_cpu" = ia64; then
11583 # On IA64, the linker does run time linking by default, so we don't
11584 # have to do anything special.
11585 aix_use_runtimelinking=no
11586 exp_sym_flag='-Bexport'
11589 aix_use_runtimelinking=no
11591 # Test if we are trying to use run time linking or normal
11592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11593 # need to do runtime linking.
11594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11595 for ld_flag in $LDFLAGS; do
11598 aix_use_runtimelinking=yes
11606 exp_sym_flag='-bexport'
11607 no_entry_flag='-bnoentry'
11610 # When large executables or shared objects are built, AIX ld can
11611 # have problems creating the table of contents. If linking a library
11612 # or program results in "error TOC overflow" add -mminimal-toc to
11613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11616 archive_cmds_CXX=''
11617 hardcode_direct_CXX=yes
11618 hardcode_direct_absolute_CXX=yes
11619 hardcode_libdir_separator_CXX=':'
11620 link_all_deplibs_CXX=yes
11621 file_list_spec_CXX='${wl}-f,'
11623 if test "$GXX" = yes; then
11624 case $host_os in aix4.[012]|aix4.[012].*)
11625 # We only want to do this on AIX 4.2 and lower, the check
11626 # below for broken collect2 doesn't work under 4.3+
11627 collect2name=`${CC} -print-prog-name=collect2`
11628 if test -f "$collect2name" &&
11629 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11631 # We have reworked collect2
11634 # We have old collect2
11635 hardcode_direct_CXX=unsupported
11636 # It fails to find uninstalled libraries when the uninstalled
11637 # path is not listed in the libpath. Setting hardcode_minus_L
11638 # to unsupported forces relinking
11639 hardcode_minus_L_CXX=yes
11640 hardcode_libdir_flag_spec_CXX='-L$libdir'
11641 hardcode_libdir_separator_CXX=
11644 shared_flag='-shared'
11645 if test "$aix_use_runtimelinking" = yes; then
11646 shared_flag="$shared_flag "'${wl}-G'
11650 if test "$host_cpu" = ia64; then
11651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11652 # chokes on -Wl,-G. The following line is correct:
11655 if test "$aix_use_runtimelinking" = yes; then
11656 shared_flag='${wl}-G'
11658 shared_flag='${wl}-bM:SRE'
11663 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11664 # It seems that -bexpall does not export symbols beginning with
11665 # underscore (_), so it is better to generate a list of symbols to
11667 always_export_symbols_CXX=yes
11668 if test "$aix_use_runtimelinking" = yes; then
11669 # Warning - without using the other runtime loading flags (-brtl),
11670 # -berok will link without error, but may produce a broken library.
11671 allow_undefined_flag_CXX='-berok'
11672 # Determine the default libpath from the value encoded in an empty
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11685 if ac_fn_cxx_try_link "$LINENO"; then :
11687 lt_aix_libpath_sed='
11688 /Import File Strings/,/^$/ {
11694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11695 # Check for a 64-bit object if we didn't find anything.
11696 if test -z "$aix_libpath"; then
11697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11704 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11706 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"
11708 if test "$host_cpu" = ia64; then
11709 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11710 allow_undefined_flag_CXX="-z nodefs"
11711 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"
11713 # Determine the default libpath from the value encoded in an
11714 # empty executable.
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11726 if ac_fn_cxx_try_link "$LINENO"; then :
11728 lt_aix_libpath_sed='
11729 /Import File Strings/,/^$/ {
11735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736 # Check for a 64-bit object if we didn't find anything.
11737 if test -z "$aix_libpath"; then
11738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11745 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11746 # Warning - without using the other run time loading flags,
11747 # -berok will link without error, but may produce a broken library.
11748 no_undefined_flag_CXX=' ${wl}-bernotok'
11749 allow_undefined_flag_CXX=' ${wl}-berok'
11750 # Exported symbols can be pulled into shared objects from archives
11751 whole_archive_flag_spec_CXX='$convenience'
11752 archive_cmds_need_lc_CXX=yes
11753 # This is similar to how AIX traditionally builds its shared
11755 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'
11761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11762 allow_undefined_flag_CXX=unsupported
11763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11764 # support --undefined. This deserves some investigation. FIXME
11765 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772 case $cc_basename in
11774 # FIXME: insert proper C++ library support
11780 cygwin* | mingw* | pw32* | cegcc*)
11781 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11782 # as there is no search path for DLLs.
11783 hardcode_libdir_flag_spec_CXX='-L$libdir'
11784 allow_undefined_flag_CXX=unsupported
11785 always_export_symbols_CXX=no
11786 enable_shared_with_static_runtimes_CXX=yes
11788 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11789 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'
11790 # If the export-symbols file already is a .def file (1st line
11791 # is EXPORTS), use it as is; otherwise, prepend...
11792 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11793 cp $export_symbols $output_objdir/$soname.def;
11795 echo EXPORTS > $output_objdir/$soname.def;
11796 cat $export_symbols >> $output_objdir/$soname.def;
11798 $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'
11803 darwin* | rhapsody*)
11806 archive_cmds_need_lc_CXX=no
11807 hardcode_direct_CXX=no
11808 hardcode_automatic_CXX=yes
11809 hardcode_shlibpath_var_CXX=unsupported
11810 whole_archive_flag_spec_CXX=''
11811 link_all_deplibs_CXX=yes
11812 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11813 case $cc_basename in
11814 ifort*) _lt_dar_can_shared=yes ;;
11815 *) _lt_dar_can_shared=$GCC ;;
11817 if test "$_lt_dar_can_shared" = "yes"; then
11818 output_verbose_link_cmd=echo
11819 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}"
11820 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11821 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}"
11822 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}"
11823 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11824 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}"
11825 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}"
11835 case $cc_basename in
11837 # FIXME: insert proper C++ library support
11841 # Green Hills C++ Compiler
11842 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11853 # C++ shared libraries reported to be fairly broken before
11859 archive_cmds_need_lc_CXX=no
11862 freebsd* | dragonfly*)
11863 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11872 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11873 hardcode_libdir_separator_CXX=:
11874 export_dynamic_flag_spec_CXX='${wl}-E'
11875 hardcode_direct_CXX=yes
11876 hardcode_minus_L_CXX=yes # Not in the search PATH,
11877 # but as the default
11878 # location of the library.
11880 case $cc_basename in
11882 # FIXME: insert proper C++ library support
11886 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'
11887 # Commands to make compiler produce verbose output that lists
11888 # what "hidden" libraries, object files and flags are used when
11889 # linking a shared library.
11891 # There doesn't appear to be a way to prevent this compiler from
11892 # explicitly linking system object files so we need to strip them
11893 # from the output so that they don't get included in the library
11895 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'
11898 if test "$GXX" = yes; then
11899 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'
11901 # FIXME: insert proper C++ library support
11909 if test $with_gnu_ld = no; then
11910 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11911 hardcode_libdir_separator_CXX=:
11917 export_dynamic_flag_spec_CXX='${wl}-E'
11923 hardcode_direct_CXX=no
11924 hardcode_shlibpath_var_CXX=no
11927 hardcode_direct_CXX=yes
11928 hardcode_direct_absolute_CXX=yes
11929 hardcode_minus_L_CXX=yes # Not in the search PATH,
11930 # but as the default
11931 # location of the library.
11935 case $cc_basename in
11937 # FIXME: insert proper C++ library support
11943 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11946 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11949 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11952 # Commands to make compiler produce verbose output that lists
11953 # what "hidden" libraries, object files and flags are used when
11954 # linking a shared library.
11956 # There doesn't appear to be a way to prevent this compiler from
11957 # explicitly linking system object files so we need to strip them
11958 # from the output so that they don't get included in the library
11960 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'
11963 if test "$GXX" = yes; then
11964 if test $with_gnu_ld = no; then
11967 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11970 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11973 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'
11978 # FIXME: insert proper C++ library support
11986 hardcode_direct_CXX=no
11987 hardcode_shlibpath_var_CXX=no
11988 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11989 export_dynamic_flag_spec_CXX='${wl}-E'
11990 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11991 # Instead, shared libraries are loaded at an image base (0x10000000 by
11992 # default) and relocated if they conflict, which is a slow very memory
11993 # consuming and fragmenting process. To avoid this, we pick a random,
11994 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11995 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11996 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'
11997 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'
12000 case $cc_basename in
12003 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'
12005 # Archives containing C++ object files must be created using
12006 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12007 # necessary to make sure instantiated templates are included
12009 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12012 if test "$GXX" = yes; then
12013 if test "$with_gnu_ld" = no; then
12014 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'
12016 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'
12019 link_all_deplibs_CXX=yes
12022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12023 hardcode_libdir_separator_CXX=:
12024 inherit_rpath_CXX=yes
12027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12028 case $cc_basename in
12030 # Kuck and Associates, Inc. (KAI) C++ Compiler
12032 # KCC will only create a shared library if the output file
12033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12034 # to its proper name (with version) after linking.
12035 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'
12036 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'
12037 # Commands to make compiler produce verbose output that lists
12038 # what "hidden" libraries, object files and flags are used when
12039 # linking a shared library.
12041 # There doesn't appear to be a way to prevent this compiler from
12042 # explicitly linking system object files so we need to strip them
12043 # from the output so that they don't get included in the library
12045 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'
12047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12050 # Archives containing C++ object files must be created using
12051 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12057 # version 8.0 and above of icpc choke on multiply defined symbols
12058 # if we add $predep_objects and $postdep_objects, however 7.1 and
12059 # earlier do not add the objects themselves.
12060 case `$CC -V 2>&1` in
12062 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12063 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'
12065 *) # Version 8.0 or newer
12068 ia64*) tmp_idyn=' -i_dynamic';;
12070 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071 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'
12074 archive_cmds_need_lc_CXX=no
12075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12077 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12080 # Portland Group C++ compiler
12082 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12083 prelink_cmds_CXX='tpldir=Template.dir~
12085 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12086 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12087 old_archive_cmds_CXX='tpldir=Template.dir~
12089 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12090 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12092 archive_cmds_CXX='tpldir=Template.dir~
12094 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12095 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12096 archive_expsym_cmds_CXX='tpldir=Template.dir~
12098 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12099 $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'
12101 *) # Version 6 will use weak symbols
12102 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12103 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'
12107 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12109 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'
12113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12114 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'
12116 runpath_var=LD_RUN_PATH
12117 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12118 hardcode_libdir_separator_CXX=:
12120 # Commands to make compiler produce verbose output that lists
12121 # what "hidden" libraries, object files and flags are used when
12122 # linking a shared library.
12124 # There doesn't appear to be a way to prevent this compiler from
12125 # explicitly linking system object files so we need to strip them
12126 # from the output so that they don't get included in the library
12128 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'
12131 # IBM XL 8.0 on PPC, with GNU ld
12132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12134 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12135 if test "x$supports_anon_versioning" = xyes; then
12136 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12138 echo "local: *; };" >> $output_objdir/$libname.ver~
12139 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12143 case `$CC -V 2>&1 | sed 5q` in
12146 no_undefined_flag_CXX=' -zdefs'
12147 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12148 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'
12149 hardcode_libdir_flag_spec_CXX='-R$libdir'
12150 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'
12151 compiler_needs_object_CXX=yes
12153 # Not sure whether something based on
12154 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12156 output_verbose_link_cmd='echo'
12158 # Archives containing C++ object files must be created using
12159 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12160 # necessary to make sure instantiated templates are included
12162 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12170 # FIXME: insert proper C++ library support
12175 # FIXME: insert proper C++ library support
12180 case $cc_basename in
12182 # FIXME: insert proper C++ library support
12186 # FIXME: insert proper C++ library support
12193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12194 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12196 hardcode_libdir_flag_spec_CXX='-R$libdir'
12197 hardcode_direct_CXX=yes
12198 hardcode_shlibpath_var_CXX=no
12200 # Workaround some broken pre-1.5 toolchains
12201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12209 # C++ shared libraries are fairly broken
12214 if test -f /usr/libexec/ld.so; then
12215 hardcode_direct_CXX=yes
12216 hardcode_shlibpath_var_CXX=no
12217 hardcode_direct_absolute_CXX=yes
12218 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12219 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12221 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12222 export_dynamic_flag_spec_CXX='${wl}-E'
12223 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12225 output_verbose_link_cmd=echo
12231 osf3* | osf4* | osf5*)
12232 case $cc_basename in
12234 # Kuck and Associates, Inc. (KAI) C++ Compiler
12236 # KCC will only create a shared library if the output file
12237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12238 # to its proper name (with version) after linking.
12239 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'
12241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242 hardcode_libdir_separator_CXX=:
12244 # Archives containing C++ object files must be created using
12245 # the KAI C++ compiler.
12247 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12248 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12252 # Rational C++ 2.4.1
12253 # FIXME: insert proper C++ library support
12259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12260 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'
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12264 allow_undefined_flag_CXX=' -expect_unresolved \*'
12265 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'
12266 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12267 echo "-hidden">> $lib.exp~
12268 $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~
12270 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12274 hardcode_libdir_separator_CXX=:
12276 # Commands to make compiler produce verbose output that lists
12277 # what "hidden" libraries, object files and flags are used when
12278 # linking a shared library.
12280 # There doesn't appear to be a way to prevent this compiler from
12281 # explicitly linking system object files so we need to strip them
12282 # from the output so that they don't get included in the library
12284 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'
12287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12288 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12291 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'
12294 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'
12298 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299 hardcode_libdir_separator_CXX=:
12301 # Commands to make compiler produce verbose output that lists
12302 # what "hidden" libraries, object files and flags are used when
12303 # linking a shared library.
12304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12307 # FIXME: insert proper C++ library support
12315 # FIXME: insert proper C++ library support
12320 case $cc_basename in
12323 # FIXME: insert proper C++ library support
12328 # FIXME: insert proper C++ library support
12332 # FIXME: insert proper C++ library support
12339 case $cc_basename in
12341 # Sun C++ 4.2, 5.x and Centerline C++
12342 archive_cmds_need_lc_CXX=yes
12343 no_undefined_flag_CXX=' -zdefs'
12344 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12346 $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'
12348 hardcode_libdir_flag_spec_CXX='-R$libdir'
12349 hardcode_shlibpath_var_CXX=no
12351 solaris2.[0-5] | solaris2.[0-5].*) ;;
12353 # The compiler driver will combine and reorder linker options,
12354 # but understands `-z linker_flag'.
12355 # Supported since Solaris 2.6 (maybe 2.5.1?)
12356 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12359 link_all_deplibs_CXX=yes
12361 output_verbose_link_cmd='echo'
12363 # Archives containing C++ object files must be created using
12364 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12365 # necessary to make sure instantiated templates are included
12367 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12370 # Green Hills C++ Compiler
12371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12373 # The C++ compiler must be used to create the archive.
12374 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12377 # GNU C++ compiler with Solaris linker
12378 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12379 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12380 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12381 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12382 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12383 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12385 # Commands to make compiler produce verbose output that lists
12386 # what "hidden" libraries, object files and flags are used when
12387 # linking a shared library.
12388 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12390 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12392 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12393 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12394 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12396 # Commands to make compiler produce verbose output that lists
12397 # what "hidden" libraries, object files and flags are used when
12398 # linking a shared library.
12399 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12402 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12404 solaris2.[0-5] | solaris2.[0-5].*) ;;
12406 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12415 no_undefined_flag_CXX='${wl}-z,text'
12416 archive_cmds_need_lc_CXX=no
12417 hardcode_shlibpath_var_CXX=no
12418 runpath_var='LD_RUN_PATH'
12420 case $cc_basename in
12422 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12427 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12432 sysv5* | sco3.2v5* | sco5v6*)
12433 # Note: We can NOT use -z defs as we might desire, because we do not
12434 # link with -lc, and that would cause any symbols used from libc to
12435 # always be unresolved, which means just about no library would
12436 # ever link correctly. If we're not using GNU ld we use -z text
12437 # though, which does catch some bad symbols but isn't as heavy-handed
12439 no_undefined_flag_CXX='${wl}-z,text'
12440 allow_undefined_flag_CXX='${wl}-z,nodefs'
12441 archive_cmds_need_lc_CXX=no
12442 hardcode_shlibpath_var_CXX=no
12443 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12444 hardcode_libdir_separator_CXX=':'
12445 link_all_deplibs_CXX=yes
12446 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12447 runpath_var='LD_RUN_PATH'
12449 case $cc_basename in
12451 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12452 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12455 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12456 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12462 case $cc_basename in
12464 # NonStop-UX NCC 3.20
12465 # FIXME: insert proper C++ library support
12469 # FIXME: insert proper C++ library support
12476 # FIXME: insert proper C++ library support
12481 # FIXME: insert proper C++ library support
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12487 $as_echo "$ld_shlibs_CXX" >&6; }
12488 test "$ld_shlibs_CXX" = no && can_build_shared=no
12494 ## There is no encapsulation within the following macros, do not change
12495 ## the running order or otherwise move them around unless you know exactly
12496 ## what you are doing...
12497 # Dependencies to place before and after the object being linked:
12498 predep_objects_CXX=
12499 postdep_objects_CXX=
12502 compiler_lib_search_path_CXX=
12504 cat > conftest.$ac_ext <<_LT_EOF
12508 Foo (void) { a = 0; }
12514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12515 (eval $ac_compile) 2>&5
12517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12518 test $ac_status = 0; }; then
12519 # Parse the compiler output and extract the necessary
12520 # objects, libraries and library flags.
12522 # Sentinel used to keep track of whether or not we are before
12523 # the conftest object file.
12524 pre_test_object_deps_done=no
12526 for p in `eval "$output_verbose_link_cmd"`; do
12530 # Some compilers place space between "-{L,R}" and the path.
12531 # Remove the space.
12532 if test $p = "-L" ||
12533 test $p = "-R"; then
12540 if test "$pre_test_object_deps_done" = no; then
12543 # Internal compiler library paths should come after those
12544 # provided the user. The postdeps already come after the
12545 # user supplied libs so there is no need to process them.
12546 if test -z "$compiler_lib_search_path_CXX"; then
12547 compiler_lib_search_path_CXX="${prev}${p}"
12549 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12552 # The "-l" case would never come before the object being
12553 # linked, so don't bother handling this case.
12556 if test -z "$postdeps_CXX"; then
12557 postdeps_CXX="${prev}${p}"
12559 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12565 # This assumes that the test object file only shows up
12566 # once in the compiler output.
12567 if test "$p" = "conftest.$objext"; then
12568 pre_test_object_deps_done=yes
12572 if test "$pre_test_object_deps_done" = no; then
12573 if test -z "$predep_objects_CXX"; then
12574 predep_objects_CXX="$p"
12576 predep_objects_CXX="$predep_objects_CXX $p"
12579 if test -z "$postdep_objects_CXX"; then
12580 postdep_objects_CXX="$p"
12582 postdep_objects_CXX="$postdep_objects_CXX $p"
12587 *) ;; # Ignore the rest.
12595 echo "libtool.m4: error: problem compiling CXX test program"
12598 $RM -f confest.$objext
12600 # PORTME: override above test on systems where it is broken
12603 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12604 # hack all around it, let's just trust "g++" to DTRT.
12605 predep_objects_CXX=
12606 postdep_objects_CXX=
12611 case `$CC -V 2>&1 | sed 5q` in
12615 # The more standards-conforming stlport4 library is
12616 # incompatible with the Cstd library. Avoid specifying
12617 # it if it's in CXXFLAGS. Ignore libCrun as
12618 # -library=stlport4 depends on it.
12619 case " $CXX $CXXFLAGS " in
12620 *" -library=stlport4 "*)
12621 solaris_use_stlport4=yes
12625 if test "$solaris_use_stlport4" != yes; then
12626 postdeps_CXX='-library=Cstd -library=Crun'
12633 case $cc_basename in
12635 # The more standards-conforming stlport4 library is
12636 # incompatible with the Cstd library. Avoid specifying
12637 # it if it's in CXXFLAGS. Ignore libCrun as
12638 # -library=stlport4 depends on it.
12639 case " $CXX $CXXFLAGS " in
12640 *" -library=stlport4 "*)
12641 solaris_use_stlport4=yes
12645 # Adding this requires a known-good setup of shared libraries for
12646 # Sun compiler versions before 5.6, else PIC objects from an old
12647 # archive will be linked into the output, leading to subtle bugs.
12648 if test "$solaris_use_stlport4" != yes; then
12649 postdeps_CXX='-library=Cstd -library=Crun'
12657 case " $postdeps_CXX " in
12658 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12660 compiler_lib_search_dirs_CXX=
12661 if test -n "${compiler_lib_search_path_CXX}"; then
12662 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12695 lt_prog_compiler_wl_CXX=
12696 lt_prog_compiler_pic_CXX=
12697 lt_prog_compiler_static_CXX=
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12702 # C++ specific cases for pic, static, wl, etc.
12703 if test "$GXX" = yes; then
12704 lt_prog_compiler_wl_CXX='-Wl,'
12705 lt_prog_compiler_static_CXX='-static'
12709 # All AIX code is PIC.
12710 if test "$host_cpu" = ia64; then
12711 # AIX 5 now supports IA64 processor
12712 lt_prog_compiler_static_CXX='-Bstatic'
12719 # see comment about AmigaOS4 .so support
12720 lt_prog_compiler_pic_CXX='-fPIC'
12723 # FIXME: we need at least 68020 code to build shared libraries, but
12724 # adding the `-m68020' flag to GCC prevents building anything better,
12726 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12732 # PIC is the default for these OSes.
12734 mingw* | cygwin* | os2* | pw32* | cegcc*)
12735 # This hack is so that the source file can tell whether it is being
12736 # built for inclusion in a dll (and should export symbols for example).
12737 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12738 # (--disable-auto-import) libraries
12739 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12741 darwin* | rhapsody*)
12742 # PIC is the default on this platform
12743 # Common symbols not allowed in MH_DYLIB files
12744 lt_prog_compiler_pic_CXX='-fno-common'
12747 # DJGPP does not support shared libraries at all
12748 lt_prog_compiler_pic_CXX=
12751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12752 # Instead, we relocate shared libraries at runtime.
12755 if test -d /usr/nec; then
12756 lt_prog_compiler_pic_CXX=-Kconform_pic
12760 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12761 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12762 # sets the default TLS model and affects inlining.
12767 lt_prog_compiler_pic_CXX='-fPIC'
12772 # QNX uses GNU C++, but need to define -shared option too, otherwise
12773 # it will coredump.
12774 lt_prog_compiler_pic_CXX='-fPIC -shared'
12777 lt_prog_compiler_pic_CXX='-fPIC'
12783 # All AIX code is PIC.
12784 if test "$host_cpu" = ia64; then
12785 # AIX 5 now supports IA64 processor
12786 lt_prog_compiler_static_CXX='-Bstatic'
12788 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12792 case $cc_basename in
12794 # Green Hills C++ Compiler
12795 # _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"
12800 case $cc_basename in
12802 lt_prog_compiler_pic_CXX='-KPIC'
12805 # Green Hills C++ Compiler
12806 lt_prog_compiler_pic_CXX='-pic'
12812 freebsd* | dragonfly*)
12813 # FreeBSD uses GNU C++
12815 hpux9* | hpux10* | hpux11*)
12816 case $cc_basename in
12818 lt_prog_compiler_wl_CXX='-Wl,'
12819 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12820 if test "$host_cpu" != ia64; then
12821 lt_prog_compiler_pic_CXX='+Z'
12825 lt_prog_compiler_wl_CXX='-Wl,'
12826 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12832 lt_prog_compiler_pic_CXX='+Z'
12841 # This is c89, which is MS Visual C++ (no shared libs)
12842 # Anyone wants to do a port?
12844 irix5* | irix6* | nonstopux*)
12845 case $cc_basename in
12847 lt_prog_compiler_wl_CXX='-Wl,'
12848 lt_prog_compiler_static_CXX='-non_shared'
12849 # CC pic flag -KPIC is the default.
12855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12856 case $cc_basename in
12859 lt_prog_compiler_wl_CXX='--backend -Wl,'
12860 lt_prog_compiler_pic_CXX='-fPIC'
12863 # old Intel C++ for x86_64 which still supported -KPIC.
12864 lt_prog_compiler_wl_CXX='-Wl,'
12865 lt_prog_compiler_pic_CXX='-KPIC'
12866 lt_prog_compiler_static_CXX='-static'
12869 # Intel C++, used to be incompatible with GCC.
12870 # ICC 10 doesn't accept -KPIC any more.
12871 lt_prog_compiler_wl_CXX='-Wl,'
12872 lt_prog_compiler_pic_CXX='-fPIC'
12873 lt_prog_compiler_static_CXX='-static'
12876 # Portland Group C++ compiler
12877 lt_prog_compiler_wl_CXX='-Wl,'
12878 lt_prog_compiler_pic_CXX='-fpic'
12879 lt_prog_compiler_static_CXX='-Bstatic'
12883 # Make sure the PIC flag is empty. It appears that all Alpha
12884 # Linux and Compaq Tru64 Unix objects are PIC.
12885 lt_prog_compiler_pic_CXX=
12886 lt_prog_compiler_static_CXX='-non_shared'
12889 # IBM XL 8.0 on PPC
12890 lt_prog_compiler_wl_CXX='-Wl,'
12891 lt_prog_compiler_pic_CXX='-qpic'
12892 lt_prog_compiler_static_CXX='-qstaticlink'
12895 case `$CC -V 2>&1 | sed 5q` in
12898 lt_prog_compiler_pic_CXX='-KPIC'
12899 lt_prog_compiler_static_CXX='-Bstatic'
12900 lt_prog_compiler_wl_CXX='-Qoption ld '
12911 case $cc_basename in
12913 lt_prog_compiler_pic_CXX='-W c,exportall'
12919 netbsd* | netbsdelf*-gnu)
12922 # QNX uses GNU C++, but need to define -shared option too, otherwise
12923 # it will coredump.
12924 lt_prog_compiler_pic_CXX='-fPIC -shared'
12926 osf3* | osf4* | osf5*)
12927 case $cc_basename in
12929 lt_prog_compiler_wl_CXX='--backend -Wl,'
12932 # Rational C++ 2.4.1
12933 lt_prog_compiler_pic_CXX='-pic'
12936 # Digital/Compaq C++
12937 lt_prog_compiler_wl_CXX='-Wl,'
12938 # Make sure the PIC flag is empty. It appears that all Alpha
12939 # Linux and Compaq Tru64 Unix objects are PIC.
12940 lt_prog_compiler_pic_CXX=
12941 lt_prog_compiler_static_CXX='-non_shared'
12950 case $cc_basename in
12952 # Sun C++ 4.2, 5.x and Centerline C++
12953 lt_prog_compiler_pic_CXX='-KPIC'
12954 lt_prog_compiler_static_CXX='-Bstatic'
12955 lt_prog_compiler_wl_CXX='-Qoption ld '
12958 # Green Hills C++ Compiler
12959 lt_prog_compiler_pic_CXX='-PIC'
12966 case $cc_basename in
12969 lt_prog_compiler_pic_CXX='-pic'
12970 lt_prog_compiler_static_CXX='-Bstatic'
12974 lt_prog_compiler_pic_CXX='-pic'
12980 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12981 case $cc_basename in
12983 lt_prog_compiler_wl_CXX='-Wl,'
12984 lt_prog_compiler_pic_CXX='-KPIC'
12985 lt_prog_compiler_static_CXX='-Bstatic'
12990 case $cc_basename in
12992 # NonStop-UX NCC 3.20
12993 lt_prog_compiler_pic_CXX='-KPIC'
13002 lt_prog_compiler_can_build_shared_CXX=no
13008 # For platforms which do not support PIC, -DPIC is meaningless:
13010 lt_prog_compiler_pic_CXX=
13013 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13017 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13022 # Check to make sure the PIC flag actually works.
13024 if test -n "$lt_prog_compiler_pic_CXX"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13027 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13030 lt_cv_prog_compiler_pic_works_CXX=no
13031 ac_outfile=conftest.$ac_objext
13032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13033 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13034 # Insert the option either (1) after the last *FLAGS variable, or
13035 # (2) before a word containing "conftest.", or (3) at the end.
13036 # Note that $ac_compile itself does not contain backslashes and begins
13037 # with a dollar sign (not a hyphen), so the echo should work correctly.
13038 # The option is referenced via a variable to avoid confusing sed.
13039 lt_compile=`echo "$ac_compile" | $SED \
13040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13042 -e 's:$: $lt_compiler_flag:'`
13043 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13044 (eval "$lt_compile" 2>conftest.err)
13046 cat conftest.err >&5
13047 echo "$as_me:__oline__: \$? = $ac_status" >&5
13048 if (exit $ac_status) && test -s "$ac_outfile"; then
13049 # The compiler can only warn and ignore the option if not recognized
13050 # So say no if there are warnings other than the usual output.
13051 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13053 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13054 lt_cv_prog_compiler_pic_works_CXX=yes
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13061 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13063 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13064 case $lt_prog_compiler_pic_CXX in
13066 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13069 lt_prog_compiler_pic_CXX=
13070 lt_prog_compiler_can_build_shared_CXX=no
13078 # Check to make sure the static flag actually works.
13080 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13082 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13083 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13086 lt_cv_prog_compiler_static_works_CXX=no
13087 save_LDFLAGS="$LDFLAGS"
13088 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13089 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13090 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13091 # The linker can only warn and ignore the option if not recognized
13092 # So say no if there are warnings
13093 if test -s conftest.err; then
13094 # Append any errors to the config.log.
13095 cat conftest.err 1>&5
13096 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13098 if diff conftest.exp conftest.er2 >/dev/null; then
13099 lt_cv_prog_compiler_static_works_CXX=yes
13102 lt_cv_prog_compiler_static_works_CXX=yes
13106 LDFLAGS="$save_LDFLAGS"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13110 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13112 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13115 lt_prog_compiler_static_CXX=
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13123 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13126 lt_cv_prog_compiler_c_o_CXX=no
13127 $RM -r conftest 2>/dev/null
13131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13133 lt_compiler_flag="-o out/conftest2.$ac_objext"
13134 # Insert the option either (1) after the last *FLAGS variable, or
13135 # (2) before a word containing "conftest.", or (3) at the end.
13136 # Note that $ac_compile itself does not contain backslashes and begins
13137 # with a dollar sign (not a hyphen), so the echo should work correctly.
13138 lt_compile=`echo "$ac_compile" | $SED \
13139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13141 -e 's:$: $lt_compiler_flag:'`
13142 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13143 (eval "$lt_compile" 2>out/conftest.err)
13145 cat out/conftest.err >&5
13146 echo "$as_me:__oline__: \$? = $ac_status" >&5
13147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13149 # The compiler can only warn and ignore the option if not recognized
13150 # So say no if there are warnings
13151 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13154 lt_cv_prog_compiler_c_o_CXX=yes
13159 # SGI C++ compiler will create directory out/ii_files/ for
13160 # template instantiation
13161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13162 $RM out/* && rmdir out
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13169 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13175 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13178 lt_cv_prog_compiler_c_o_CXX=no
13179 $RM -r conftest 2>/dev/null
13183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185 lt_compiler_flag="-o out/conftest2.$ac_objext"
13186 # Insert the option either (1) after the last *FLAGS variable, or
13187 # (2) before a word containing "conftest.", or (3) at the end.
13188 # Note that $ac_compile itself does not contain backslashes and begins
13189 # with a dollar sign (not a hyphen), so the echo should work correctly.
13190 lt_compile=`echo "$ac_compile" | $SED \
13191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13193 -e 's:$: $lt_compiler_flag:'`
13194 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13195 (eval "$lt_compile" 2>out/conftest.err)
13197 cat out/conftest.err >&5
13198 echo "$as_me:__oline__: \$? = $ac_status" >&5
13199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13201 # The compiler can only warn and ignore the option if not recognized
13202 # So say no if there are warnings
13203 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13206 lt_cv_prog_compiler_c_o_CXX=yes
13211 # SGI C++ compiler will create directory out/ii_files/ for
13212 # template instantiation
13213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13214 $RM out/* && rmdir out
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13221 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13226 hard_links="nottested"
13227 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13228 # do not overwrite the value of need_locks provided by the user
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13230 $as_echo_n "checking if we can lock with hard links... " >&6; }
13233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235 ln conftest.a conftest.b 2>&5 || hard_links=no
13236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13238 $as_echo "$hard_links" >&6; }
13239 if test "$hard_links" = no; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13241 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13253 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256 # If we're using GNU nm, then we don't want the "-C" option.
13257 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13258 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13259 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'
13261 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'
13265 export_symbols_cmds_CXX="$ltdll_cmds"
13267 cygwin* | mingw* | cegcc*)
13268 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'
13270 linux* | k*bsd*-gnu)
13271 link_all_deplibs_CXX=no
13274 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13277 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13280 $as_echo "$ld_shlibs_CXX" >&6; }
13281 test "$ld_shlibs_CXX" = no && can_build_shared=no
13283 with_gnu_ld_CXX=$with_gnu_ld
13291 # Do we need to explicitly link libc?
13293 case "x$archive_cmds_need_lc_CXX" in
13295 # Assume -lc should be added
13296 archive_cmds_need_lc_CXX=yes
13298 if test "$enable_shared" = yes && test "$GCC" = yes; then
13299 case $archive_cmds_CXX in
13301 # FIXME: we may have to deal with multi-command sequences.
13304 # Test whether the compiler implicitly links with -lc since on some
13305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13306 # to ld, don't add -lc before -lgcc.
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13308 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13313 (eval $ac_compile) 2>&5
13315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13316 test $ac_status = 0; } 2>conftest.err; then
13319 libobjs=conftest.$ac_objext
13321 wl=$lt_prog_compiler_wl_CXX
13322 pic_flag=$lt_prog_compiler_pic_CXX
13328 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13329 allow_undefined_flag_CXX=
13330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13331 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334 test $ac_status = 0; }
13336 archive_cmds_need_lc_CXX=no
13338 archive_cmds_need_lc_CXX=yes
13340 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13342 cat conftest.err 1>&5
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13346 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13417 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13419 library_names_spec=
13420 libname_spec='lib$name'
13424 postuninstall_cmds=
13428 shlibpath_overrides_runpath=unknown
13430 dynamic_linker="$host_os ld.so"
13431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13432 need_lib_prefix=unknown
13433 hardcode_into_libs=no
13435 # when you set need_version to no, make sure it does not cause -set_version
13436 # flags to be left without arguments
13437 need_version=unknown
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13443 shlibpath_var=LIBPATH
13445 # AIX 3 has no versioning support, so we append a major version to the name.
13446 soname_spec='${libname}${release}${shared_ext}$major'
13453 hardcode_into_libs=yes
13454 if test "$host_cpu" = ia64; then
13455 # AIX 5 supports IA64
13456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13457 shlibpath_var=LD_LIBRARY_PATH
13459 # With GCC up to 2.95.x, collect2 would create an import file
13460 # for dependence libraries. The import file would start with
13461 # the line `#! .'. This would cause the generated library to
13462 # depend on `.', always an invalid library. This was fixed in
13463 # development snapshots of GCC prior to 3.0.
13465 aix4 | aix4.[01] | aix4.[01].*)
13466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13471 can_build_shared=no
13475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13476 # soname into executable. Probably we can add versioning support to
13477 # collect2, so additional links can be useful in future.
13478 if test "$aix_use_runtimelinking" = yes; then
13479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13480 # instead of lib<name>.a to let people know that these are not
13481 # typical AIX shared libraries.
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 # We preserve .a as extension for shared libraries through AIX4.2
13485 # and later when we are not doing run time linking.
13486 library_names_spec='${libname}${release}.a $libname.a'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13489 shlibpath_var=LIBPATH
13496 # Since July 2007 AmigaOS4 officially supports .so libraries.
13497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 library_names_spec='$libname.ixlibrary $libname.a'
13502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13503 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'
13509 library_names_spec='${libname}${shared_ext}'
13510 dynamic_linker="$host_os ld.so"
13511 shlibpath_var=LIBRARY_PATH
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518 soname_spec='${libname}${release}${shared_ext}$major'
13519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13520 shlibpath_var=LD_LIBRARY_PATH
13521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13523 # the default ld.so.conf also contains /usr/contrib/lib and
13524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13525 # libtool to hard-code these into programs
13528 cygwin* | mingw* | pw32* | cegcc*)
13529 version_type=windows
13534 case $GCC,$host_os in
13535 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13536 library_names_spec='$libname.dll.a'
13537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13538 postinstall_cmds='base_file=`basename \${file}`~
13539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13540 dldir=$destdir/`dirname \$dlpath`~
13541 test -d \$dldir || mkdir -p \$dldir~
13542 $install_prog $dir/$dlname \$dldir/$dlname~
13543 chmod a+x \$dldir/$dlname~
13544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13548 dlpath=$dir/\$dldll~
13550 shlibpath_overrides_runpath=yes
13554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13559 # MinGW DLLs use traditional 'lib' prefix
13560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13561 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13562 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13563 # It is most probably a Windows format PATH printed by
13564 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13565 # path with ; separators, and with drive letters. We can handle the
13566 # drive letters (cygwin fileutils understands them), so leave them,
13567 # especially as we might pass files found there to a mingw objdump,
13568 # which wouldn't understand a cygwinified path. Ahh.
13569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13575 # pw32 DLLs use 'pw' prefix rather than 'lib'
13576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13585 dynamic_linker='Win32 ld.exe'
13586 # FIXME: first we should search . and the directory the executable is in
13590 darwin* | rhapsody*)
13591 dynamic_linker="$host_os dyld"
13592 version_type=darwin
13595 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13596 soname_spec='${libname}${release}${major}$shared_ext'
13597 shlibpath_overrides_runpath=yes
13598 shlibpath_var=DYLD_LIBRARY_PATH
13599 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13609 soname_spec='${libname}${release}${shared_ext}$major'
13610 shlibpath_var=LD_LIBRARY_PATH
13617 freebsd* | dragonfly*)
13618 # DragonFly does not have aout. When/if they implement a new
13619 # versioning mechanism, adjust this.
13620 if test -x /usr/bin/objformat; then
13621 objformat=`/usr/bin/objformat`
13624 freebsd[123]*) objformat=aout ;;
13625 *) objformat=elf ;;
13628 version_type=freebsd-$objformat
13629 case $version_type in
13631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13640 shlibpath_var=LD_LIBRARY_PATH
13643 shlibpath_overrides_runpath=yes
13645 freebsd3.[01]* | freebsdelf3.[01]*)
13646 shlibpath_overrides_runpath=yes
13647 hardcode_into_libs=yes
13649 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13650 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13651 shlibpath_overrides_runpath=no
13652 hardcode_into_libs=yes
13654 *) # from 4.6 on, and DragonFly
13655 shlibpath_overrides_runpath=yes
13656 hardcode_into_libs=yes
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 hardcode_into_libs=yes
13671 hpux9* | hpux10* | hpux11*)
13672 # Give a soname corresponding to the major version so that dld.sl refuses to
13673 # link against other versions.
13680 hardcode_into_libs=yes
13681 dynamic_linker="$host_os dld.so"
13682 shlibpath_var=LD_LIBRARY_PATH
13683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 soname_spec='${libname}${release}${shared_ext}$major'
13686 if test "X$HPUX_IA64_MODE" = X32; then
13687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13695 hardcode_into_libs=yes
13696 dynamic_linker="$host_os dld.sl"
13697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13706 dynamic_linker="$host_os dld.sl"
13707 shlibpath_var=SHLIB_PATH
13708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13713 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13714 postinstall_cmds='chmod 555 $lib'
13721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13722 soname_spec='${libname}${release}${shared_ext}$major'
13723 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 shlibpath_overrides_runpath=no
13726 hardcode_into_libs=yes
13729 irix5* | irix6* | nonstopux*)
13731 nonstopux*) version_type=nonstopux ;;
13733 if test "$lt_cv_prog_gnu_ld" = yes; then
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13744 irix5* | nonstopux*)
13745 libsuff= shlibsuff=
13748 case $LD in # libtool.m4 will add one of these switches to LD
13749 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13750 libsuff= shlibsuff= libmagic=32-bit;;
13751 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13752 libsuff=32 shlibsuff=N32 libmagic=N32;;
13753 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13754 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13755 *) libsuff= shlibsuff= libmagic=never-match;;
13759 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13760 shlibpath_overrides_runpath=no
13761 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13762 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13763 hardcode_into_libs=yes
13766 # No shared lib support for Linux oldld, aout, or coff.
13767 linux*oldld* | linux*aout* | linux*coff*)
13771 # This must be Linux ELF.
13772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13777 soname_spec='${libname}${release}${shared_ext}$major'
13778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13779 shlibpath_var=LD_LIBRARY_PATH
13780 shlibpath_overrides_runpath=no
13781 # Some binutils ld are patched to set DT_RUNPATH
13782 save_LDFLAGS=$LDFLAGS
13783 save_libdir=$libdir
13784 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13785 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13797 if ac_fn_cxx_try_link "$LINENO"; then :
13798 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13799 shlibpath_overrides_runpath=yes
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13804 LDFLAGS=$save_LDFLAGS
13805 libdir=$save_libdir
13807 # This implies no fast_install, which is unacceptable.
13808 # Some rework will be needed to allow for fast_install
13809 # before this can be enabled.
13810 hardcode_into_libs=yes
13812 # Append ld.so.conf contents to the search path
13813 if test -f /etc/ld.so.conf; then
13814 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' ' '`
13815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13818 # We used to test for /lib/ld.so.1 and disable shared libraries on
13819 # powerpc, because MkLinux only supported shared libraries with the
13820 # GNU dynamic linker. Since this was broken with cross compilers,
13821 # most powerpc-linux boxes support dynamic linking these days and
13822 # people can always --disable-shared, the test was removed, and we
13823 # assume the GNU/Linux dynamic linker is in use.
13824 dynamic_linker='GNU/Linux ld.so'
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 shlibpath_var=LD_LIBRARY_PATH
13834 shlibpath_overrides_runpath=no
13835 hardcode_into_libs=yes
13836 dynamic_linker='NetBSD ld.elf_so'
13843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13846 dynamic_linker='NetBSD (a.out) ld.so'
13848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13849 soname_spec='${libname}${release}${shared_ext}$major'
13850 dynamic_linker='NetBSD ld.elf_so'
13852 shlibpath_var=LD_LIBRARY_PATH
13853 shlibpath_overrides_runpath=yes
13854 hardcode_into_libs=yes
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 shlibpath_overrides_runpath=yes
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=no
13872 hardcode_into_libs=yes
13873 dynamic_linker='ldqnx.so'
13878 sys_lib_dlsearch_path_spec="/usr/lib"
13880 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13882 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13883 *) need_version=no ;;
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13887 shlibpath_var=LD_LIBRARY_PATH
13888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13890 openbsd2.[89] | openbsd2.[89].*)
13891 shlibpath_overrides_runpath=no
13894 shlibpath_overrides_runpath=yes
13898 shlibpath_overrides_runpath=yes
13903 libname_spec='$name'
13906 library_names_spec='$libname${shared_ext} $libname.a'
13907 dynamic_linker='OS/2 ld.exe'
13908 shlibpath_var=LIBPATH
13911 osf3* | osf4* | osf5*)
13915 soname_spec='${libname}${release}${shared_ext}$major'
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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 shlibpath_var=LD_LIBRARY_PATH
13933 shlibpath_overrides_runpath=yes
13934 hardcode_into_libs=yes
13935 # ldd complains unless libraries are executable
13936 postinstall_cmds='chmod +x $lib'
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13942 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13943 shlibpath_var=LD_LIBRARY_PATH
13944 shlibpath_overrides_runpath=yes
13945 if test "$with_gnu_ld" = yes; then
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 case $host_vendor in
13958 shlibpath_overrides_runpath=no
13960 runpath_var=LD_RUN_PATH
13968 shlibpath_overrides_runpath=no
13969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13975 if test -d /usr/nec ;then
13977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13978 soname_spec='$libname${shared_ext}.$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13984 version_type=freebsd-elf
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=yes
13991 hardcode_into_libs=yes
13992 if test "$with_gnu_ld" = yes; then
13993 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14002 sys_lib_dlsearch_path_spec='/usr/lib'
14006 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011 shlibpath_var=LD_LIBRARY_PATH
14012 shlibpath_overrides_runpath=no
14013 hardcode_into_libs=yes
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 shlibpath_var=LD_LIBRARY_PATH
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14028 $as_echo "$dynamic_linker" >&6; }
14029 test "$dynamic_linker" = no && can_build_shared=no
14031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14032 if test "$GCC" = yes; then
14033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14037 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14040 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14080 hardcode_action_CXX=
14081 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14082 test -n "$runpath_var_CXX" ||
14083 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14085 # We can hardcode non-existent directories.
14086 if test "$hardcode_direct_CXX" != no &&
14087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14088 # have to relink, otherwise we might link with an installed library
14089 # when we should be linking with a yet-to-be-installed one
14090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14091 test "$hardcode_minus_L_CXX" != no; then
14092 # Linking always hardcodes the temporary library directory.
14093 hardcode_action_CXX=relink
14095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14096 hardcode_action_CXX=immediate
14099 # We cannot hardcode anything, or else we can only hardcode existing
14101 hardcode_action_CXX=unsupported
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14104 $as_echo "$hardcode_action_CXX" >&6; }
14106 if test "$hardcode_action_CXX" = relink ||
14107 test "$inherit_rpath_CXX" = yes; then
14108 # Fast installation is not supported
14109 enable_fast_install=no
14110 elif test "$shlibpath_overrides_runpath" = yes ||
14111 test "$enable_shared" = no; then
14112 # Fast installation is not necessary
14113 enable_fast_install=needless
14122 fi # test -n "$compiler"
14128 with_gnu_ld=$lt_save_with_gnu_ld
14129 lt_cv_path_LDCXX=$lt_cv_path_LD
14130 lt_cv_path_LD=$lt_save_path_LD
14131 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14132 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14133 fi # test "$_lt_caught_CXX_error" != yes
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14153 ac_config_commands="$ac_config_commands libtool"
14158 # Only expand once:
14163 if test "x$CC" != xcc; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
14165 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
14168 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
14170 set dummy $CC; ac_cc=`$as_echo "$2" |
14171 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14172 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
14173 $as_echo_n "(cached) " >&6
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14186 # Make sure it works both with $CC and with simple cc.
14187 # We do the test twice because some compilers refuse to overwrite an
14188 # existing .o file with -o, though they will create one.
14189 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14191 if { { case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14196 $as_echo "$ac_try_echo"; } >&5
14197 (eval "$ac_try") 2>&5
14199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14200 test $ac_status = 0; } &&
14201 test -f conftest2.$ac_objext && { { case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14206 $as_echo "$ac_try_echo"; } >&5
14207 (eval "$ac_try") 2>&5
14209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14210 test $ac_status = 0; };
14212 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14213 if test "x$CC" != xcc; then
14214 # Test first that cc exists at all.
14215 if { ac_try='cc -c conftest.$ac_ext >&5'
14216 { { case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14221 $as_echo "$ac_try_echo"; } >&5
14222 (eval "$ac_try") 2>&5
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; }; then
14226 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14228 if { { case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14233 $as_echo "$ac_try_echo"; } >&5
14234 (eval "$ac_try") 2>&5
14236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; } &&
14238 test -f conftest2.$ac_objext && { { case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14243 $as_echo "$ac_try_echo"; } >&5
14244 (eval "$ac_try") 2>&5
14246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14247 test $ac_status = 0; };
14252 # cc exists but doesn't like -o.
14253 eval ac_cv_prog_cc_${ac_cc}_c_o=no
14258 eval ac_cv_prog_cc_${ac_cc}_c_o=no
14260 rm -f core conftest*
14263 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14270 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
14274 # expand $ac_aux_dir to an absolute path
14275 am_aux_dir=`cd $ac_aux_dir && pwd`
14277 # FIXME: we rely on the cache variable name because
14278 # there is no other way.
14280 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14281 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
14282 if test "$am_t" != yes; then
14283 # Losing compiler, so override with the script.
14284 # FIXME: It is wrong to rewrite CC.
14285 # But if we don't then we get into trouble of one sort or another.
14286 # A longer-term fix would be to have automake use am__CC in this case,
14287 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14288 CC="$am_aux_dir/compile $CC"
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14294 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14295 if test "${ac_cv_c_bigendian+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14298 ac_cv_c_bigendian=unknown
14299 # See if we're dealing with a universal compiler.
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 #ifndef __APPLE_CC__
14303 not a universal capable compiler
14308 if ac_fn_c_try_compile "$LINENO"; then :
14310 # Check for potential -arch flags. It is not universal unless
14311 # there are at least two -arch flags with different values.
14314 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14315 if test -n "$ac_prev"; then
14317 i?86 | x86_64 | ppc | ppc64)
14318 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14321 ac_cv_c_bigendian=universal
14327 elif test "x$ac_word" = "x-arch"; then
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 if test $ac_cv_c_bigendian = unknown; then
14334 # See if sys/param.h defines the BYTE_ORDER macro.
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 #include <sys/types.h>
14338 #include <sys/param.h>
14343 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14344 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14346 bogus endian macros
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354 # It does; now see whether it defined to BIG_ENDIAN or not.
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 #include <sys/types.h>
14358 #include <sys/param.h>
14363 #if BYTE_ORDER != BIG_ENDIAN
14371 if ac_fn_c_try_compile "$LINENO"; then :
14372 ac_cv_c_bigendian=yes
14374 ac_cv_c_bigendian=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 if test $ac_cv_c_bigendian = unknown; then
14381 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384 #include <limits.h>
14389 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14390 bogus endian macros
14397 if ac_fn_c_try_compile "$LINENO"; then :
14398 # It does; now see whether it defined to _BIG_ENDIAN or not.
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 #include <limits.h>
14406 #ifndef _BIG_ENDIAN
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 ac_cv_c_bigendian=yes
14417 ac_cv_c_bigendian=no
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 if test $ac_cv_c_bigendian = unknown; then
14424 # Compile a test program.
14425 if test "$cross_compiling" = yes; then :
14426 # Try to guess by grepping values from an object file.
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14429 short int ascii_mm[] =
14430 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14431 short int ascii_ii[] =
14432 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14433 int use_ascii (int i) {
14434 return ascii_mm[i] + ascii_ii[i];
14436 short int ebcdic_ii[] =
14437 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14438 short int ebcdic_mm[] =
14439 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14440 int use_ebcdic (int i) {
14441 return ebcdic_mm[i] + ebcdic_ii[i];
14448 return use_ascii (foo) == use_ebcdic (foo);
14453 if ac_fn_c_try_compile "$LINENO"; then :
14454 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14455 ac_cv_c_bigendian=yes
14457 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14458 if test "$ac_cv_c_bigendian" = unknown; then
14459 ac_cv_c_bigendian=no
14461 # finding both strings is unlikely to happen, but who knows?
14462 ac_cv_c_bigendian=unknown
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 $ac_includes_default
14475 /* Are we little or big endian? From Harbison&Steele. */
14479 char c[sizeof (long int)];
14482 return u.c[sizeof (long int) - 1] == 1;
14488 if ac_fn_c_try_run "$LINENO"; then :
14489 ac_cv_c_bigendian=no
14491 ac_cv_c_bigendian=yes
14493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14494 conftest.$ac_objext conftest.beam conftest.$ac_ext
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14500 $as_echo "$ac_cv_c_bigendian" >&6; }
14501 case $ac_cv_c_bigendian in #(
14503 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
14509 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14513 as_fn_error $? "unknown endianness
14514 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14518 $as_echo_n "checking for inline... " >&6; }
14519 if test "${ac_cv_c_inline+set}" = set; then :
14520 $as_echo_n "(cached) " >&6
14523 for ac_kw in inline __inline__ __inline; do
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 #ifndef __cplusplus
14528 static $ac_kw foo_t static_foo () {return 0; }
14529 $ac_kw foo_t foo () {return 0; }
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534 ac_cv_c_inline=$ac_kw
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 test "$ac_cv_c_inline" != no && break
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14542 $as_echo "$ac_cv_c_inline" >&6; }
14544 case $ac_cv_c_inline in
14547 case $ac_cv_c_inline in
14549 *) ac_val=$ac_cv_c_inline;;
14551 cat >>confdefs.h <<_ACEOF
14552 #ifndef __cplusplus
14553 #define inline $ac_val
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14560 $as_echo_n "checking for working volatile... " >&6; }
14561 if test "${ac_cv_c_volatile+set}" = set; then :
14562 $as_echo_n "(cached) " >&6
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14572 int * volatile y = (int *) 0;
14578 if ac_fn_c_try_compile "$LINENO"; then :
14579 ac_cv_c_volatile=yes
14581 ac_cv_c_volatile=no
14583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14586 $as_echo "$ac_cv_c_volatile" >&6; }
14587 if test $ac_cv_c_volatile = no; then
14589 $as_echo "@%:@define volatile /**/" >>confdefs.h
14596 # Just to make sure we dont do debug on default!
14599 @%:@ Check whether --with-debug was given.
14600 if test "${with_debug+set}" = set; then :
14601 withval=$with_debug; debug="$withval"
14604 if test "x$debug" == "xyes"; then
14606 $as_echo "@%:@define DEBUG 1" >>confdefs.h
14610 # a lang needs math functions...
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14612 $as_echo_n "checking for pow in -lm... " >&6; }
14613 if test "${ac_cv_lib_m_pow+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14616 ac_check_lib_save_LIBS=$LIBS
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14621 /* Override any GCC internal prototype to avoid an error.
14622 Use char because int might match the return type of a GCC
14623 builtin and then its argument prototype would still apply. */
14636 if ac_fn_c_try_link "$LINENO"; then :
14637 ac_cv_lib_m_pow=yes
14641 rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14646 $as_echo "$ac_cv_lib_m_pow" >&6; }
14647 if test "x$ac_cv_lib_m_pow" = x""yes; then :
14648 cat >>confdefs.h <<_ACEOF
14649 @%:@define HAVE_LIBM 1
14655 as_fn_error $? "System Math library is required!" "$LINENO" 5
14659 # used for constant folding and rounding
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
14661 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
14662 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
14663 $as_echo_n "(cached) " >&6
14665 ac_check_lib_save_LIBS=$LIBS
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14676 char __gmpz_init ();
14680 return __gmpz_init ();
14685 if ac_fn_c_try_link "$LINENO"; then :
14686 ac_cv_lib_gmp___gmpz_init=yes
14688 ac_cv_lib_gmp___gmpz_init=no
14690 rm -f core conftest.err conftest.$ac_objext \
14691 conftest$ac_exeext conftest.$ac_ext
14692 LIBS=$ac_check_lib_save_LIBS
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
14695 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
14696 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 @%:@define HAVE_LIBGMP 1
14704 as_fn_error $? "GNU MP not found, see http://gmplib.org/" "$LINENO" 5
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_init in -lmpfr" >&5
14708 $as_echo_n "checking for mpfr_init in -lmpfr... " >&6; }
14709 if test "${ac_cv_lib_mpfr_mpfr_init_+set}" = set; then :
14710 $as_echo_n "(cached) " >&6
14712 ac_check_lib_save_LIBS=$LIBS
14713 LIBS="-lmpfr $LIBS"
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14717 /* Override any GCC internal prototype to avoid an error.
14718 Use char because int might match the return type of a GCC
14719 builtin and then its argument prototype would still apply. */
14727 return mpfr_init ();
14732 if ac_fn_c_try_link "$LINENO"; then :
14733 ac_cv_lib_mpfr_mpfr_init_=yes
14735 ac_cv_lib_mpfr_mpfr_init_=no
14737 rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_init_" >&5
14742 $as_echo "$ac_cv_lib_mpfr_mpfr_init_" >&6; }
14743 if test "x$ac_cv_lib_mpfr_mpfr_init_" = x""yes; then :
14744 cat >>confdefs.h <<_ACEOF
14745 @%:@define HAVE_LIBMPFR 1
14748 LIBS="-lmpfr $LIBS"
14751 as_fn_error $? "MPFR not found, see http://www.mpfr.org/" "$LINENO" 5
14754 # The cast to long int works around a bug in the HP C Compiler
14755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14757 # This bug is HP SR number 8606223364.
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
14759 $as_echo_n "checking size of mp_limb_t... " >&6; }
14760 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
14763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#include <gmp.h>
14767 if test "$ac_cv_type_mp_limb_t" = yes; then
14768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14770 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
14771 See \`config.log' for more details" "$LINENO" 5 ; }
14773 ac_cv_sizeof_mp_limb_t=0
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
14779 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
14783 cat >>confdefs.h <<_ACEOF
14784 @%:@define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
14790 if test "x$vl_cv_lib_readline" = "xno"; then :
14791 as_fn_error $? "libreadline is required for Crules. \
14792 On Debian this can be found in libreadline5-dev. On RedHat \
14793 this can be found in readline-devel." "$LINENO" 5
14795 for ac_func in dlopen
14797 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14798 if test "x$ac_cv_func_dlopen" = x""yes; then :
14799 cat >>confdefs.h <<_ACEOF
14800 @%:@define HAVE_DLOPEN 1
14812 # Extract the first word of "mv", so it can be a program name with args.
14813 set dummy mv; ac_word=$2
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14815 $as_echo_n "checking for $ac_word... " >&6; }
14816 if test "${ac_cv_path_MV+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14828 test -z "$as_dir" && as_dir=.
14829 for ac_exec_ext in '' $ac_executable_extensions; do
14830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
14832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
14844 if test -n "$MV"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
14846 $as_echo "$MV" >&6; }
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14853 # Extract the first word of "rm", so it can be a program name with args.
14854 set dummy rm; ac_word=$2
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14856 $as_echo_n "checking for $ac_word... " >&6; }
14857 if test "${ac_cv_path_RM+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14862 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14866 for as_dir in $PATH
14869 test -z "$as_dir" && as_dir=.
14870 for ac_exec_ext in '' $ac_executable_extensions; do
14871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14872 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14880 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
14885 if test -n "$RM"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14887 $as_echo "$RM" >&6; }
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14894 # Extract the first word of "cp", so it can be a program name with args.
14895 set dummy cp; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 $as_echo_n "checking for $ac_word... " >&6; }
14898 if test "${ac_cv_path_CP+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14903 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14907 for as_dir in $PATH
14910 test -z "$as_dir" && as_dir=.
14911 for ac_exec_ext in '' $ac_executable_extensions; do
14912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14913 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14921 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
14926 if test -n "$CP"; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
14928 $as_echo "$CP" >&6; }
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931 $as_echo "no" >&6; }
14935 # Extract the first word of "sed", so it can be a program name with args.
14936 set dummy sed; ac_word=$2
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14938 $as_echo_n "checking for $ac_word... " >&6; }
14939 if test "${ac_cv_path_SED+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14944 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14951 test -z "$as_dir" && as_dir=.
14952 for ac_exec_ext in '' $ac_executable_extensions; do
14953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14954 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14962 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14966 SED=$ac_cv_path_SED
14967 if test -n "$SED"; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14969 $as_echo "$SED" >&6; }
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14972 $as_echo "no" >&6; }
14976 # Extract the first word of "cmp", so it can be a program name with args.
14977 set dummy cmp; ac_word=$2
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14979 $as_echo_n "checking for $ac_word... " >&6; }
14980 if test "${ac_cv_path_CMP+set}" = set; then :
14981 $as_echo_n "(cached) " >&6
14985 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
14988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14989 for as_dir in $PATH
14992 test -z "$as_dir" && as_dir=.
14993 for ac_exec_ext in '' $ac_executable_extensions; do
14994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14995 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
14996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15003 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
15007 CMP=$ac_cv_path_CMP
15008 if test -n "$CMP"; then
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
15010 $as_echo "$CMP" >&6; }
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15017 # Extract the first word of "chmod", so it can be a program name with args.
15018 set dummy chmod; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if test "${ac_cv_path_CHMOD+set}" = set; then :
15022 $as_echo_n "(cached) " >&6
15026 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15036 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
15037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15044 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="chmod"
15048 CHMOD=$ac_cv_path_CHMOD
15049 if test -n "$CHMOD"; then
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
15051 $as_echo "$CHMOD" >&6; }
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15058 # Extract the first word of "hostname", so it can be a program name with args.
15059 set dummy hostname; ac_word=$2
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15061 $as_echo_n "checking for $ac_word... " >&6; }
15062 if test "${ac_cv_path_HOSTNAME+set}" = set; then :
15063 $as_echo_n "(cached) " >&6
15067 ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
15070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15071 for as_dir in $PATH
15074 test -z "$as_dir" && as_dir=.
15075 for ac_exec_ext in '' $ac_executable_extensions; do
15076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15077 ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
15078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15085 test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="hostname"
15089 HOSTNAME=$ac_cv_path_HOSTNAME
15090 if test -n "$HOSTNAME"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5
15092 $as_echo "$HOSTNAME" >&6; }
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15100 am__api_version='1.11'
15102 test "$program_prefix" != NONE &&
15103 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15104 # Use a double $ so make ignores it.
15105 test "$program_suffix" != NONE &&
15106 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15107 # Double any \ or $.
15108 # By default was `s,x,x', remove it if useless.
15109 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15110 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15112 if test x"${MISSING+set}" != xset; then
15113 case $am_aux_dir in
15115 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15117 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15120 # Use eval to expand $SHELL
15121 if eval "$MISSING --run true"; then
15122 am_missing_run="$MISSING --run "
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15126 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15129 if test x"${install_sh}" != xset; then
15130 case $am_aux_dir in
15132 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15134 install_sh="\${SHELL} $am_aux_dir/install-sh"
15138 # Installed binaries are usually stripped using `strip' when the user
15139 # run `make install-strip'. However `strip' might not be the right
15140 # tool to use in cross-compilation environments, therefore Automake
15141 # will honor the `STRIP' environment variable to overrule this program.
15142 if test "$cross_compiling" != no; then
15143 if test -n "$ac_tool_prefix"; then
15144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15145 set dummy ${ac_tool_prefix}strip; ac_word=$2
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15147 $as_echo_n "checking for $ac_word... " >&6; }
15148 if test "${ac_cv_prog_STRIP+set}" = set; then :
15149 $as_echo_n "(cached) " >&6
15151 if test -n "$STRIP"; then
15152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15155 for as_dir in $PATH
15158 test -z "$as_dir" && as_dir=.
15159 for ac_exec_ext in '' $ac_executable_extensions; do
15160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15171 STRIP=$ac_cv_prog_STRIP
15172 if test -n "$STRIP"; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15174 $as_echo "$STRIP" >&6; }
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 $as_echo "no" >&6; }
15182 if test -z "$ac_cv_prog_STRIP"; then
15184 # Extract the first word of "strip", so it can be a program name with args.
15185 set dummy strip; ac_word=$2
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15187 $as_echo_n "checking for $ac_word... " >&6; }
15188 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15189 $as_echo_n "(cached) " >&6
15191 if test -n "$ac_ct_STRIP"; then
15192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15198 test -z "$as_dir" && as_dir=.
15199 for ac_exec_ext in '' $ac_executable_extensions; do
15200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15201 ac_cv_prog_ac_ct_STRIP="strip"
15202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15212 if test -n "$ac_ct_STRIP"; then
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15214 $as_echo "$ac_ct_STRIP" >&6; }
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 $as_echo "no" >&6; }
15220 if test "x$ac_ct_STRIP" = x; then
15223 case $cross_compiling:$ac_tool_warned in
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15227 ac_tool_warned=yes ;;
15232 STRIP="$ac_cv_prog_STRIP"
15236 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15239 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15240 if test -z "$MKDIR_P"; then
15241 if test "${ac_cv_path_mkdir+set}" = set; then :
15242 $as_echo_n "(cached) " >&6
15244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15248 test -z "$as_dir" && as_dir=.
15249 for ac_prog in mkdir gmkdir; do
15250 for ac_exec_ext in '' $ac_executable_extensions; do
15251 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
15252 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15253 'mkdir (GNU coreutils) '* | \
15254 'mkdir (coreutils) '* | \
15255 'mkdir (fileutils) '4.1*)
15256 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15266 test -d ./--version && rmdir ./--version
15267 if test "${ac_cv_path_mkdir+set}" = set; then
15268 MKDIR_P="$ac_cv_path_mkdir -p"
15270 # As a last resort, use the slow shell script. Don't cache a
15271 # value for MKDIR_P within a source directory, because that will
15272 # break other packages using the cache if that directory is
15273 # removed, or if the value is a relative name.
15274 MKDIR_P="$ac_install_sh -d"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15278 $as_echo "$MKDIR_P" >&6; }
15282 [\\/$]* | ?:[\\/]*) ;;
15283 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15286 rm -rf .tst 2>/dev/null
15287 mkdir .tst 2>/dev/null
15288 if test -d .tst; then
15293 rmdir .tst 2>/dev/null
15295 DEPDIR="${am__leading_dot}deps"
15297 ac_config_commands="$ac_config_commands depfiles"
15300 am_make=${MAKE-make}
15301 cat > confinc << 'END'
15303 @echo this is the am__doit target
15306 # If we don't find an include directive, just comment out the code.
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15308 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15312 # First try GNU make style include.
15313 echo "include confinc" > confmf
15314 # Ignore all kinds of additional output from `make'.
15315 case `$am_make -s -f confmf 2> /dev/null` in #(
15316 *the\ am__doit\ target*)
15317 am__include=include
15322 # Now try BSD make style include.
15323 if test "$am__include" = "#"; then
15324 echo '.include "confinc"' > confmf
15325 case `$am_make -s -f confmf 2> /dev/null` in #(
15326 *the\ am__doit\ target*)
15327 am__include=.include
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15336 $as_echo "$_am_result" >&6; }
15337 rm -f confinc confmf
15339 @%:@ Check whether --enable-dependency-tracking was given.
15340 if test "${enable_dependency_tracking+set}" = set; then :
15341 enableval=$enable_dependency_tracking;
15344 if test "x$enable_dependency_tracking" != xno; then
15345 am_depcomp="$ac_aux_dir/depcomp"
15348 if test "x$enable_dependency_tracking" != xno; then
15357 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15358 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15359 # is not polluted with repeated "-I."
15360 am__isrc=' -I$(srcdir)'
15361 # test to see if srcdir already configured
15362 if test -f $srcdir/config.status; then
15363 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15367 # test whether we have cygpath
15368 if test -z "$CYGPATH_W"; then
15369 if (cygpath --version) >/dev/null 2>/dev/null; then
15370 CYGPATH_W='cygpath -w'
15377 # Define the identity of the package.
15378 PACKAGE='libgpython'
15382 cat >>confdefs.h <<_ACEOF
15383 @%:@define PACKAGE "$PACKAGE"
15387 cat >>confdefs.h <<_ACEOF
15388 @%:@define VERSION "$VERSION"
15391 # Some tools Automake needs.
15393 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15396 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15399 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15402 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15405 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15407 # We need awk for the "check" target. The system "awk" is bad on
15409 # Always define AMTAR for backward compatibility.
15411 AMTAR=${AMTAR-"${am_missing_run}tar"}
15413 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15418 depcc="$CC" am_compiler_list=
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15421 $as_echo_n "checking dependency style of $depcc... " >&6; }
15422 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15423 $as_echo_n "(cached) " >&6
15425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15426 # We make a subdir and do the tests there. Otherwise we can end up
15427 # making bogus files that we don't know about and never remove. For
15428 # instance it was reported that on HP-UX the gcc test will end up
15429 # making a dummy file named `D' -- because `-MD' means `put the output
15432 # Copy depcomp to subdir because otherwise we won't find it if we're
15433 # using a relative directory.
15434 cp "$am_depcomp" conftest.dir
15436 # We will build objects and dependencies in a subdirectory because
15437 # it helps to detect inapplicable dependency modes. For instance
15438 # both Tru64's cc and ICC support -MD to output dependencies as a
15439 # side effect of compilation, but ICC will put the dependencies in
15440 # the current directory while Tru64 will put them in the object
15444 am_cv_CC_dependencies_compiler_type=none
15445 if test "$am_compiler_list" = ""; then
15446 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15448 am__universal=false
15449 case " $depcc " in #(
15450 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15453 for depmode in $am_compiler_list; do
15454 # Setup a source with many dependencies, because some compilers
15455 # like to wrap large dependency lists on column 80 (with \), and
15456 # we should not choose a depcomp mode which is confused by this.
15458 # We need to recreate these files for each test, as the compiler may
15459 # overwrite some of them when testing with obscure command lines.
15460 # This happens at least with the AIX C compiler.
15462 for i in 1 2 3 4 5 6; do
15463 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15464 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15465 # Solaris 8's {/usr,}/bin/sh.
15466 touch sub/conftst$i.h
15468 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15471 # mode. It turns out that the SunPro C++ compiler does not properly
15472 # handle `-M -o', and we need to detect this. Also, some Intel
15473 # versions had trouble with output in subdirs
15474 am__obj=sub/conftest.${OBJEXT-o}
15475 am__minus_obj="-o $am__obj"
15478 # This depmode causes a compiler race in universal mode.
15479 test "$am__universal" = false || continue
15482 # after this tag, mechanisms are not by side-effect, so they'll
15483 # only be used when explicitly requested
15484 if test "x$enable_dependency_tracking" = xyes; then
15490 msvisualcpp | msvcmsys)
15491 # This compiler won't grok `-c -o', but also, the minuso test has
15492 # not run yet. These depmodes are late enough in the game, and
15493 # so weak that their functioning should not be impacted.
15494 am__obj=conftest.${OBJEXT-o}
15499 if depmode=$depmode \
15500 source=sub/conftest.c object=$am__obj \
15501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15502 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15503 >/dev/null 2>conftest.err &&
15504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15506 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15508 # icc doesn't choke on unknown options, it will just issue warnings
15509 # or remarks (even with -Werror). So we grep stderr for any message
15510 # that says an option was ignored or not supported.
15511 # When given -MP, icc 7.0 and 7.1 complain thusly:
15512 # icc: Command line warning: ignoring option '-M'; no argument required
15513 # The diagnosis changed in icc 8.0:
15514 # icc: Command line remark: option '-MP' not supported
15515 if (grep 'ignoring option' conftest.err ||
15516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15517 am_cv_CC_dependencies_compiler_type=$depmode
15524 rm -rf conftest.dir
15526 am_cv_CC_dependencies_compiler_type=none
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15532 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15535 test "x$enable_dependency_tracking" != xno \
15536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15537 am__fastdepCC_TRUE=
15538 am__fastdepCC_FALSE='#'
15540 am__fastdepCC_TRUE='#'
15541 am__fastdepCC_FALSE=
15545 depcc="$CXX" am_compiler_list=
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15548 $as_echo_n "checking dependency style of $depcc... " >&6; }
15549 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
15550 $as_echo_n "(cached) " >&6
15552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15553 # We make a subdir and do the tests there. Otherwise we can end up
15554 # making bogus files that we don't know about and never remove. For
15555 # instance it was reported that on HP-UX the gcc test will end up
15556 # making a dummy file named `D' -- because `-MD' means `put the output
15559 # Copy depcomp to subdir because otherwise we won't find it if we're
15560 # using a relative directory.
15561 cp "$am_depcomp" conftest.dir
15563 # We will build objects and dependencies in a subdirectory because
15564 # it helps to detect inapplicable dependency modes. For instance
15565 # both Tru64's cc and ICC support -MD to output dependencies as a
15566 # side effect of compilation, but ICC will put the dependencies in
15567 # the current directory while Tru64 will put them in the object
15571 am_cv_CXX_dependencies_compiler_type=none
15572 if test "$am_compiler_list" = ""; then
15573 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15575 am__universal=false
15576 case " $depcc " in #(
15577 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15580 for depmode in $am_compiler_list; do
15581 # Setup a source with many dependencies, because some compilers
15582 # like to wrap large dependency lists on column 80 (with \), and
15583 # we should not choose a depcomp mode which is confused by this.
15585 # We need to recreate these files for each test, as the compiler may
15586 # overwrite some of them when testing with obscure command lines.
15587 # This happens at least with the AIX C compiler.
15589 for i in 1 2 3 4 5 6; do
15590 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15591 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15592 # Solaris 8's {/usr,}/bin/sh.
15593 touch sub/conftst$i.h
15595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15597 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15598 # mode. It turns out that the SunPro C++ compiler does not properly
15599 # handle `-M -o', and we need to detect this. Also, some Intel
15600 # versions had trouble with output in subdirs
15601 am__obj=sub/conftest.${OBJEXT-o}
15602 am__minus_obj="-o $am__obj"
15605 # This depmode causes a compiler race in universal mode.
15606 test "$am__universal" = false || continue
15609 # after this tag, mechanisms are not by side-effect, so they'll
15610 # only be used when explicitly requested
15611 if test "x$enable_dependency_tracking" = xyes; then
15617 msvisualcpp | msvcmsys)
15618 # This compiler won't grok `-c -o', but also, the minuso test has
15619 # not run yet. These depmodes are late enough in the game, and
15620 # so weak that their functioning should not be impacted.
15621 am__obj=conftest.${OBJEXT-o}
15626 if depmode=$depmode \
15627 source=sub/conftest.c object=$am__obj \
15628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15629 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15630 >/dev/null 2>conftest.err &&
15631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15633 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15635 # icc doesn't choke on unknown options, it will just issue warnings
15636 # or remarks (even with -Werror). So we grep stderr for any message
15637 # that says an option was ignored or not supported.
15638 # When given -MP, icc 7.0 and 7.1 complain thusly:
15639 # icc: Command line warning: ignoring option '-M'; no argument required
15640 # The diagnosis changed in icc 8.0:
15641 # icc: Command line remark: option '-MP' not supported
15642 if (grep 'ignoring option' conftest.err ||
15643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15644 am_cv_CXX_dependencies_compiler_type=$depmode
15651 rm -rf conftest.dir
15653 am_cv_CXX_dependencies_compiler_type=none
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15658 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15662 test "x$enable_dependency_tracking" != xno \
15663 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15664 am__fastdepCXX_TRUE=
15665 am__fastdepCXX_FALSE='#'
15667 am__fastdepCXX_TRUE='#'
15668 am__fastdepCXX_FALSE=
15674 # The cast to long int works around a bug in the HP C Compiler
15675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15677 # This bug is HP SR number 8606223364.
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15679 $as_echo_n "checking size of long... " >&6; }
15680 if test "${ac_cv_sizeof_long+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15683 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15686 if test "$ac_cv_type_long" = yes; then
15687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15689 as_fn_error 77 "cannot compute sizeof (long)
15690 See \`config.log' for more details" "$LINENO" 5 ; }
15692 ac_cv_sizeof_long=0
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15698 $as_echo "$ac_cv_sizeof_long" >&6; }
15702 cat >>confdefs.h <<_ACEOF
15703 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
15707 # The cast to long int works around a bug in the HP C Compiler
15708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15710 # This bug is HP SR number 8606223364.
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15712 $as_echo_n "checking size of char... " >&6; }
15713 if test "${ac_cv_sizeof_char+set}" = set; then :
15714 $as_echo_n "(cached) " >&6
15716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15719 if test "$ac_cv_type_char" = yes; then
15720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15722 as_fn_error 77 "cannot compute sizeof (char)
15723 See \`config.log' for more details" "$LINENO" 5 ; }
15725 ac_cv_sizeof_char=0
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15731 $as_echo "$ac_cv_sizeof_char" >&6; }
15735 cat >>confdefs.h <<_ACEOF
15736 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
15740 # The cast to long int works around a bug in the HP C Compiler
15741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15743 # This bug is HP SR number 8606223364.
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15745 $as_echo_n "checking size of int... " >&6; }
15746 if test "${ac_cv_sizeof_int+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15749 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15752 if test "$ac_cv_type_int" = yes; then
15753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15755 as_fn_error 77 "cannot compute sizeof (int)
15756 See \`config.log' for more details" "$LINENO" 5 ; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15764 $as_echo "$ac_cv_sizeof_int" >&6; }
15768 cat >>confdefs.h <<_ACEOF
15769 @%:@define SIZEOF_INT $ac_cv_sizeof_int
15773 # The cast to long int works around a bug in the HP C Compiler
15774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15776 # This bug is HP SR number 8606223364.
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
15778 $as_echo_n "checking size of void*... " >&6; }
15779 if test "${ac_cv_sizeof_voidp+set}" = set; then :
15780 $as_echo_n "(cached) " >&6
15782 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
15785 if test "$ac_cv_type_voidp" = yes; then
15786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15788 as_fn_error 77 "cannot compute sizeof (void*)
15789 See \`config.log' for more details" "$LINENO" 5 ; }
15791 ac_cv_sizeof_voidp=0
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15797 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15801 cat >>confdefs.h <<_ACEOF
15802 @%:@define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15806 # The cast to long int works around a bug in the HP C Compiler
15807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15809 # This bug is HP SR number 8606223364.
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15811 $as_echo_n "checking size of short... " >&6; }
15812 if test "${ac_cv_sizeof_short+set}" = set; then :
15813 $as_echo_n "(cached) " >&6
15815 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15818 if test "$ac_cv_type_short" = yes; then
15819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15821 as_fn_error 77 "cannot compute sizeof (short)
15822 See \`config.log' for more details" "$LINENO" 5 ; }
15824 ac_cv_sizeof_short=0
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15830 $as_echo "$ac_cv_sizeof_short" >&6; }
15834 cat >>confdefs.h <<_ACEOF
15835 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
15839 # The cast to long int works around a bug in the HP C Compiler
15840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15842 # This bug is HP SR number 8606223364.
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15844 $as_echo_n "checking size of double... " >&6; }
15845 if test "${ac_cv_sizeof_double+set}" = set; then :
15846 $as_echo_n "(cached) " >&6
15848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15851 if test "$ac_cv_type_double" = yes; then
15852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15854 as_fn_error 77 "cannot compute sizeof (double)
15855 See \`config.log' for more details" "$LINENO" 5 ; }
15857 ac_cv_sizeof_double=0
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15863 $as_echo "$ac_cv_sizeof_double" >&6; }
15867 cat >>confdefs.h <<_ACEOF
15868 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
15872 # The cast to long int works around a bug in the HP C Compiler
15873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15875 # This bug is HP SR number 8606223364.
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15877 $as_echo_n "checking size of float... " >&6; }
15878 if test "${ac_cv_sizeof_float+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
15884 if test "$ac_cv_type_float" = yes; then
15885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15887 as_fn_error 77 "cannot compute sizeof (float)
15888 See \`config.log' for more details" "$LINENO" 5 ; }
15890 ac_cv_sizeof_float=0
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15896 $as_echo "$ac_cv_sizeof_float" >&6; }
15900 cat >>confdefs.h <<_ACEOF
15901 @%:@define SIZEOF_FLOAT $ac_cv_sizeof_float
15905 # The cast to long int works around a bug in the HP C Compiler
15906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15908 # This bug is HP SR number 8606223364.
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15910 $as_echo_n "checking size of size_t... " >&6; }
15911 if test "${ac_cv_sizeof_size_t+set}" = set; then :
15912 $as_echo_n "(cached) " >&6
15914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15917 if test "$ac_cv_type_size_t" = yes; then
15918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15920 as_fn_error 77 "cannot compute sizeof (size_t)
15921 See \`config.log' for more details" "$LINENO" 5 ; }
15923 ac_cv_sizeof_size_t=0
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15929 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15933 cat >>confdefs.h <<_ACEOF
15934 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15938 # The cast to long int works around a bug in the HP C Compiler
15939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15941 # This bug is HP SR number 8606223364.
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15943 $as_echo_n "checking size of long int... " >&6; }
15944 if test "${ac_cv_sizeof_long_int+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
15947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
15950 if test "$ac_cv_type_long_int" = yes; then
15951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15953 as_fn_error 77 "cannot compute sizeof (long int)
15954 See \`config.log' for more details" "$LINENO" 5 ; }
15956 ac_cv_sizeof_long_int=0
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15962 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15966 cat >>confdefs.h <<_ACEOF
15967 @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15971 # The cast to long int works around a bug in the HP C Compiler
15972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15974 # This bug is HP SR number 8606223364.
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15976 $as_echo_n "checking size of long long... " >&6; }
15977 if test "${ac_cv_sizeof_long_long+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15980 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
15983 if test "$ac_cv_type_long_long" = yes; then
15984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15986 as_fn_error 77 "cannot compute sizeof (long long)
15987 See \`config.log' for more details" "$LINENO" 5 ; }
15989 ac_cv_sizeof_long_long=0
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15995 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15999 cat >>confdefs.h <<_ACEOF
16000 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16005 # Checks for header files.
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16007 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16008 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16009 $as_echo_n "(cached) " >&6
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 #include <sys/types.h>
16014 #include <sys/wait.h>
16015 #ifndef WEXITSTATUS
16016 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16019 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16027 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033 ac_cv_header_sys_wait_h=yes
16035 ac_cv_header_sys_wait_h=no
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16040 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16041 if test $ac_cv_header_sys_wait_h = yes; then
16043 $as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16048 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16049 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16050 $as_echo_n "(cached) " >&6
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16055 #include <stdbool.h>
16057 "error: bool is not defined"
16060 "error: false is not defined"
16063 "error: false is not 0"
16066 "error: true is not defined"
16069 "error: true is not 1"
16071 #ifndef __bool_true_false_are_defined
16072 "error: __bool_true_false_are_defined is not defined"
16075 struct s { _Bool s: 1; _Bool t; } s;
16077 char a[true == 1 ? 1 : -1];
16078 char b[false == 0 ? 1 : -1];
16079 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16080 char d[(bool) 0.5 == true ? 1 : -1];
16082 char f[(_Bool) 0.0 == false ? 1 : -1];
16084 char h[sizeof (_Bool)];
16085 char i[sizeof s.t];
16086 enum { j = false, k = true, l = false * true, m = true * 256 };
16087 /* The following fails for
16088 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16090 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16091 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16092 # if defined __xlc__ || defined __GNUC__
16093 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16094 reported by James Lemley on 2005-10-05; see
16095 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16096 This test is not quite right, since xlc is allowed to
16097 reject this program, as the initializer for xlcbug is
16098 not one of the forms that C requires support for.
16099 However, doing the test right would require a runtime
16100 test, and that would make cross-compilation harder.
16101 Let us hope that IBM fixes the xlc bug, and also adds
16102 support for this kind of constant expression. In the
16103 meantime, this test will reject xlc, which is OK, since
16104 our stdbool.h substitute should suffice. We also test
16105 this with GCC, where it should work, to detect more
16106 quickly whether someone messes up the test in the
16108 char digs[] = "0123456789";
16109 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16111 /* Catch a bug in an HP-UX C compiler. See
16112 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16113 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16124 /* Refer to every declared value, to avoid compiler optimizations. */
16125 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16126 + !m + !n + !o + !p + !q + !pq);
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133 ac_cv_header_stdbool_h=yes
16135 ac_cv_header_stdbool_h=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16140 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16141 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16142 if test "x$ac_cv_type__Bool" = x""yes; then :
16144 cat >>confdefs.h <<_ACEOF
16145 @%:@define HAVE__BOOL 1
16151 if test $ac_cv_header_stdbool_h = yes; then
16153 $as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16158 $as_echo_n "checking for ANSI C header files... " >&6; }
16159 if test "${ac_cv_header_stdc+set}" = set; then :
16160 $as_echo_n "(cached) " >&6
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 #include <stdlib.h>
16165 #include <stdarg.h>
16166 #include <string.h>
16177 if ac_fn_c_try_compile "$LINENO"; then :
16178 ac_cv_header_stdc=yes
16180 ac_cv_header_stdc=no
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 if test $ac_cv_header_stdc = yes; then
16185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 #include <string.h>
16191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16192 $EGREP "memchr" >/dev/null 2>&1; then :
16195 ac_cv_header_stdc=no
16201 if test $ac_cv_header_stdc = yes; then
16202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <stdlib.h>
16208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16209 $EGREP "free" >/dev/null 2>&1; then :
16212 ac_cv_header_stdc=no
16218 if test $ac_cv_header_stdc = yes; then
16219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16220 if test "$cross_compiling" = yes; then :
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h. */
16226 #include <stdlib.h>
16227 #if ((' ' & 0x0FF) == 0x020)
16228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16231 # define ISLOWER(c) \
16232 (('a' <= (c) && (c) <= 'i') \
16233 || ('j' <= (c) && (c) <= 'r') \
16234 || ('s' <= (c) && (c) <= 'z'))
16235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16243 for (i = 0; i < 256; i++)
16244 if (XOR (islower (i), ISLOWER (i))
16245 || toupper (i) != TOUPPER (i))
16250 if ac_fn_c_try_run "$LINENO"; then :
16253 ac_cv_header_stdc=no
16255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16256 conftest.$ac_objext conftest.beam conftest.$ac_ext
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16262 $as_echo "$ac_cv_header_stdc" >&6; }
16263 if test $ac_cv_header_stdc = yes; then
16265 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
16269 for ac_header in stdlib.h string.h stdarg.h unistd.h \
16270 stdint.h stdio.h getopt.h \
16271 assert.h sys/types.h signal.h \
16272 fcntl.h pthread.h sys/wait.h \
16275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16278 cat >>confdefs.h <<_ACEOF
16279 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16287 # Checks for typedefs, structures, and compiler characteristics.
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16289 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16290 if test "${ac_cv_c_const+set}" = set; then :
16291 $as_echo_n "(cached) " >&6
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h. */
16299 /* FIXME: Include the comments suggested by Paul. */
16300 #ifndef __cplusplus
16301 /* Ultrix mips cc rejects this. */
16302 typedef int charset[2];
16304 /* SunOS 4.1.1 cc rejects this. */
16305 char const *const *pcpcc;
16307 /* NEC SVR4.0.2 mips cc rejects this. */
16308 struct point {int x, y;};
16309 static struct point const zero = {0,0};
16310 /* AIX XL C 1.02.0.0 rejects this.
16311 It does not let you subtract one const X* pointer from another in
16312 an arm of an if-expression whose if-part is not a constant
16314 const char *g = "string";
16315 pcpcc = &g + (g ? g-g : 0);
16316 /* HPUX 7.0 cc rejects these. */
16318 ppc = (char**) pcpcc;
16319 pcpcc = (char const *const *) ppc;
16320 { /* SCO 3.2v4 cc rejects this. */
16322 char const *s = 0 ? (char *) 0 : (char const *) 0;
16327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16328 int x[] = {25, 17};
16329 const int *foo = &x[0];
16332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16333 typedef const int *iptr;
16337 { /* AIX XL C 1.02.0.0 rejects this saying
16338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16339 struct s { int j; const int *ap[3]; };
16340 struct s *b; b->j = 5;
16342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16343 const int foo = 10;
16344 if (!foo) return 0;
16346 return !cs[0] && !zero.x;
16353 if ac_fn_c_try_compile "$LINENO"; then :
16358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16361 $as_echo "$ac_cv_c_const" >&6; }
16362 if test $ac_cv_c_const = no; then
16364 $as_echo "@%:@define const /**/" >>confdefs.h
16368 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16369 if test "x$ac_cv_type_pid_t" = x""yes; then :
16373 cat >>confdefs.h <<_ACEOF
16374 @%:@define pid_t int
16379 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16380 if test "x$ac_cv_type_size_t" = x""yes; then :
16384 cat >>confdefs.h <<_ACEOF
16385 @%:@define size_t unsigned int
16390 for ac_func in popen fopen fclose sprintf fprintf strdup \
16391 strlen strcpy strcmp getopt_long \
16392 memcpy calloc system sysconf atoi \
16393 getpid execl fork wait exit atof \
16394 vfprintf memcmp getc fgets pipe \
16397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16399 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16400 cat >>confdefs.h <<_ACEOF
16401 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16408 # Checks for library functions.
16409 for ac_header in stdlib.h
16411 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16412 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16413 cat >>confdefs.h <<_ACEOF
16414 @%:@define HAVE_STDLIB_H 1
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16422 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16423 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
16424 $as_echo_n "(cached) " >&6
16426 if test "$cross_compiling" = yes; then :
16427 ac_cv_func_malloc_0_nonnull=no
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16431 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16432 # include <stdlib.h>
16440 return ! malloc (0);
16445 if ac_fn_c_try_run "$LINENO"; then :
16446 ac_cv_func_malloc_0_nonnull=yes
16448 ac_cv_func_malloc_0_nonnull=no
16450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16451 conftest.$ac_objext conftest.beam conftest.$ac_ext
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16456 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16457 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16459 $as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
16462 $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
16464 case " $LIB@&t@OBJS " in
16465 *" malloc.$ac_objext "* ) ;;
16466 *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
16471 $as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
16479 for ac_header in $ac_header_list
16481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16482 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16485 cat >>confdefs.h <<_ACEOF
16486 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
16497 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
16498 if test "${ac_cv_func_utime_null+set}" = set; then :
16499 $as_echo_n "(cached) " >&6
16501 rm -f conftest.data; >conftest.data
16502 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
16503 if test "$cross_compiling" = yes; then :
16504 ac_cv_func_utime_null='guessing yes'
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508 $ac_includes_default
16509 #ifdef HAVE_UTIME_H
16510 # include <utime.h>
16516 return ! (stat ("conftest.data", &s) == 0
16517 && utime ("conftest.data", 0) == 0
16518 && stat ("conftest.data", &t) == 0
16519 && t.st_mtime >= s.st_mtime
16520 && t.st_mtime - s.st_mtime < 120);
16525 if ac_fn_c_try_run "$LINENO"; then :
16526 ac_cv_func_utime_null=yes
16528 ac_cv_func_utime_null=no
16530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16531 conftest.$ac_objext conftest.beam conftest.$ac_ext
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
16536 $as_echo "$ac_cv_func_utime_null" >&6; }
16537 if test "x$ac_cv_func_utime_null" != xno; then
16538 ac_cv_func_utime_null=yes
16540 $as_echo "@%:@define HAVE_UTIME_NULL 1" >>confdefs.h
16543 rm -f conftest.data
16545 for ac_func in vprintf
16547 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16548 if test "x$ac_cv_func_vprintf" = x""yes; then :
16549 cat >>confdefs.h <<_ACEOF
16550 @%:@define HAVE_VPRINTF 1
16553 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16554 if test "x$ac_cv_func__doprnt" = x""yes; then :
16556 $as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
16564 ac_config_files="$ac_config_files Makefile"
16567 cat >confcache <<\_ACEOF
16568 # This file is a shell script that caches the results of configure
16569 # tests run on this system so they can be shared between configure
16570 # scripts and configure runs, see configure's option --config-cache.
16571 # It is not useful on other systems. If it contains results you don't
16572 # want to keep, you may remove or edit it.
16574 # config.status only pays attention to the cache file if you give it
16575 # the --recheck option to rerun configure.
16577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16579 # following values.
16583 # The following way of writing the cache mishandles newlines in values,
16584 # but we know of no workaround that is simple, portable, and efficient.
16585 # So, we kill variables containing newlines.
16586 # Ultrix sh set writes to stderr and can't be redirected directly,
16587 # and sets the high bit in the cache file unless we assign to the vars.
16589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16590 eval ac_val=\$$ac_var
16594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16598 _ | IFS | as_nl) ;; #(
16599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16600 *) { eval $ac_var=; unset $ac_var;} ;;
16606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16607 *${as_nl}ac_space=\ *)
16608 # `set' does not quote correctly, so add quotes: double-quote
16609 # substitution turns \\\\ into \\, and sed turns \\ into \.
16612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16615 # `set' quotes correctly as required by POSIX, so do not add quotes.
16616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16630 if test -w "$cache_file"; then
16631 test "x$cache_file" != "x/dev/null" &&
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16633 $as_echo "$as_me: updating cache $cache_file" >&6;}
16634 cat confcache >$cache_file
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16643 # Let make expand exec_prefix.
16644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16646 DEFS=-DHAVE_CONFIG_H
16651 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
16652 # 1. Remove the extension, and $U if already installed.
16653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16656 # will be set to the directory where LIBOBJS objects are built.
16657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16660 LIB@&t@OBJS=$ac_libobjs
16662 LTLIBOBJS=$ac_ltlibobjs
16666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16667 as_fn_error $? "conditional \"AMDEP\" was never defined.
16668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16671 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16674 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16675 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16678 if test -n "$EXEEXT"; then
16680 am__EXEEXT_FALSE='#'
16682 am__EXEEXT_TRUE='#'
16687 : ${CONFIG_STATUS=./config.status}
16689 ac_clean_files_save=$ac_clean_files
16690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16696 # Generated by $as_me.
16697 # Run this file to recreate the current configuration.
16698 # Compiler output produced by configure, useful for debugging
16699 # configure, is in config.log if it exists.
16702 ac_cs_recheck=false
16705 SHELL=\${CONFIG_SHELL-$SHELL}
16708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16709 ## -------------------- ##
16710 ## M4sh Initialization. ##
16711 ## -------------------- ##
16713 # Be more Bourne compatible
16714 DUALCASE=1; export DUALCASE # for MKS sh
16715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16719 # is contrary to our usage. Disable this feature.
16720 alias -g '${1+"$@"}'='"$@"'
16721 setopt NO_GLOB_SUBST
16723 case `(set -o) 2>/dev/null` in @%:@(
16725 set -o posix ;; @%:@(
16735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16739 # Prefer a ksh shell builtin over an external printf program on Solaris,
16740 # but without wasting forks for bash or zsh.
16741 if test -z "$BASH_VERSION$ZSH_VERSION" \
16742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16743 as_echo='print -r --'
16744 as_echo_n='print -rn --'
16745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16746 as_echo='printf %s\n'
16747 as_echo_n='printf %s'
16749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16751 as_echo_n='/usr/ucb/echo -n'
16753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16754 as_echo_n_body='eval
16758 expr "X$arg" : "X\\(.*\\)$as_nl";
16759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16763 export as_echo_n_body
16764 as_echo_n='sh -c $as_echo_n_body as_echo'
16766 export as_echo_body
16767 as_echo='sh -c $as_echo_body as_echo'
16770 # The user is always right.
16771 if test "${PATH_SEPARATOR+set}" != set; then
16773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16781 # We need space, tab and new line, in precisely that order. Quoting is
16782 # there to prevent editors from complaining about space-tab.
16783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16784 # splitting by setting IFS to empty value.)
16787 # Find who we are. Look in the path if we contain no directory separator.
16789 *[\\/]* ) as_myself=$0 ;;
16790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16794 test -z "$as_dir" && as_dir=.
16795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16801 # We did not find ourselves, most probably we were run as `sh COMMAND'
16802 # in which case we are not to be found in the path.
16803 if test "x$as_myself" = x; then
16806 if test ! -f "$as_myself"; then
16807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16811 # Unset variables that we do not need and which cause bugs (e.g. in
16812 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16813 # suppresses any "Segmentation fault" message there. '((' could
16814 # trigger a bug in pdksh 5.2.14.
16815 for as_var in BASH_ENV ENV MAIL MAILPATH
16816 do eval test x\${$as_var+set} = xset \
16817 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16833 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
16834 @%:@ ----------------------------------------
16835 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16836 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16837 @%:@ script with STATUS, using 1 if that was 0.
16840 as_status=$1; test $as_status -eq 0 && as_status=1
16842 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16845 $as_echo "$as_me: error: $2" >&2
16846 as_fn_exit $as_status
16850 @%:@ as_fn_set_status STATUS
16851 @%:@ -----------------------
16852 @%:@ Set @S|@? to STATUS, without forking.
16853 as_fn_set_status ()
16856 } @%:@ as_fn_set_status
16858 @%:@ as_fn_exit STATUS
16859 @%:@ -----------------
16860 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16864 as_fn_set_status $1
16868 @%:@ as_fn_unset VAR
16869 @%:@ ---------------
16870 @%:@ Portably unset VAR.
16873 { eval $1=; unset $1;}
16875 as_unset=as_fn_unset
16876 @%:@ as_fn_append VAR VALUE
16877 @%:@ ----------------------
16878 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16879 @%:@ advantage of any shell optimizations that allow amortized linear growth over
16880 @%:@ repeated appends, instead of the typical quadratic growth present in naive
16881 @%:@ implementations.
16882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16883 eval 'as_fn_append ()
16894 @%:@ as_fn_arith ARG...
16895 @%:@ ------------------
16896 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16897 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16898 @%:@ must be portable across @S|@(()) and expr.
16899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16900 eval 'as_fn_arith ()
16907 as_val=`expr "$@" || test $? -eq 1`
16912 if expr a : '\(a\)' >/dev/null 2>&1 &&
16913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16920 as_basename=basename
16925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16931 as_me=`$as_basename -- "$0" ||
16932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16933 X"$0" : 'X\(//\)$' \| \
16934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16936 sed '/^.*\/\([^/][^/]*\)\/*$/{
16950 # Avoid depending upon Character Ranges.
16951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16954 as_cr_digits='0123456789'
16955 as_cr_alnum=$as_cr_Letters$as_cr_digits
16957 ECHO_C= ECHO_N= ECHO_T=
16958 case `echo -n x` in @%:@(((((
16960 case `echo 'xy\c'` in
16961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16963 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16970 rm -f conf$$ conf$$.exe conf$$.file
16971 if test -d conf$$.dir; then
16972 rm -f conf$$.dir/conf$$.file
16975 mkdir conf$$.dir 2>/dev/null
16977 if (echo >conf$$.file) 2>/dev/null; then
16978 if ln -s conf$$.file conf$$ 2>/dev/null; then
16980 # ... but there are two gotchas:
16981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16983 # In both cases, we have to default to `cp -p'.
16984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16986 elif ln conf$$.file conf$$ 2>/dev/null; then
16994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16995 rmdir conf$$.dir 2>/dev/null
17000 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17005 -*) as_dir=./$as_dir;;
17007 test -d "$as_dir" || eval $as_mkdir_p || {
17011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17012 *) as_qdir=$as_dir;;
17014 as_dirs="'$as_qdir' $as_dirs"
17015 as_dir=`$as_dirname -- "$as_dir" ||
17016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017 X"$as_dir" : 'X\(//\)[^/]' \| \
17018 X"$as_dir" : 'X\(//\)$' \| \
17019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X"$as_dir" |
17021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17025 /^X\(\/\/\)[^/].*/{
17038 test -d "$as_dir" && break
17040 test -z "$as_dirs" || eval "mkdir $as_dirs"
17041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17044 } @%:@ as_fn_mkdir_p
17045 if mkdir -p . 2>/dev/null; then
17046 as_mkdir_p='mkdir -p "$as_dir"'
17048 test -d ./-p && rmdir ./-p
17052 if test -x / >/dev/null 2>&1; then
17053 as_test_x='test -x'
17055 if ls -dL / >/dev/null 2>&1; then
17062 if test -d "$1"; then
17068 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
17069 ???[sx]*):;;*)false;;esac;fi
17073 as_executable_p=$as_test_x
17075 # Sed expression to map a string onto a valid CPP name.
17076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17078 # Sed expression to map a string onto a valid variable name.
17079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17083 ## ----------------------------------- ##
17084 ## Main body of $CONFIG_STATUS script. ##
17085 ## ----------------------------------- ##
17087 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17090 # Save the log message, to keep $0 and so on meaningful, and to
17091 # report actual input values of CONFIG_FILES etc. instead of their
17092 # values after options handling.
17094 This file was extended by GNU Python Runtime Library $as_me 0.1, which was
17095 generated by GNU Autoconf 2.67. Invocation command line was
17097 CONFIG_FILES = $CONFIG_FILES
17098 CONFIG_HEADERS = $CONFIG_HEADERS
17099 CONFIG_LINKS = $CONFIG_LINKS
17100 CONFIG_COMMANDS = $CONFIG_COMMANDS
17103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17108 case $ac_config_files in *"
17109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17112 case $ac_config_headers in *"
17113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17118 # Files that config.status was made for.
17119 config_files="$ac_config_files"
17120 config_headers="$ac_config_headers"
17121 config_commands="$ac_config_commands"
17125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17127 \`$as_me' instantiates files and other configuration actions
17128 from templates according to the current configuration. Unless the files
17129 and actions are specified as TAGs, all are instantiated by default.
17131 Usage: $0 [OPTION]... [TAG]...
17133 -h, --help print this help, then exit
17134 -V, --version print version number and configuration settings, then exit
17135 --config print configuration, then exit
17136 -q, --quiet, --silent
17137 do not print progress messages
17138 -d, --debug don't remove temporary files
17139 --recheck update $as_me by reconfiguring in the same conditions
17140 --file=FILE[:TEMPLATE]
17141 instantiate the configuration file FILE
17142 --header=FILE[:TEMPLATE]
17143 instantiate the configuration header FILE
17145 Configuration files:
17148 Configuration headers:
17151 Configuration commands:
17154 Report bugs to the package provider.
17155 GNU Python Runtime Library home page: <http://www.gnu.org/software/libgpython/>.
17156 General help using GNU software: <http://www.gnu.org/gethelp/>."
17159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17162 GNU Python Runtime Library config.status 0.1
17163 configured by $0, generated by GNU Autoconf 2.67,
17164 with options \\"\$ac_cs_config\\"
17166 Copyright (C) 2010 Free Software Foundation, Inc.
17167 This config.status script is free software; the Free Software Foundation
17168 gives unlimited permission to copy, distribute and modify it."
17175 test -n "\$AWK" || AWK=awk
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179 # The default lists apply if the user does not specify any file.
17185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17186 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17202 # Handling of the options.
17203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17206 $as_echo "$ac_cs_version"; exit ;;
17207 --config | --confi | --conf | --con | --co | --c )
17208 $as_echo "$ac_cs_config"; exit ;;
17209 --debug | --debu | --deb | --de | --d | -d )
17211 --file | --fil | --fi | --f )
17214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17215 '') as_fn_error $? "missing file argument" ;;
17217 as_fn_append CONFIG_FILES " '$ac_optarg'"
17218 ac_need_defaults=false;;
17219 --header | --heade | --head | --hea )
17222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17224 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17225 ac_need_defaults=false;;
17227 # Conflict between --help and --header
17228 as_fn_error $? "ambiguous option: \`$1'
17229 Try \`$0 --help' for more information.";;
17230 --help | --hel | -h )
17231 $as_echo "$ac_cs_usage"; exit ;;
17232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17236 # This is an error.
17237 -*) as_fn_error $? "unrecognized option: \`$1'
17238 Try \`$0 --help' for more information." ;;
17240 *) as_fn_append ac_config_targets " $1"
17241 ac_need_defaults=false ;;
17247 ac_configure_extra_args=
17249 if $ac_cs_silent; then
17251 ac_configure_extra_args="$ac_configure_extra_args --silent"
17255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256 if \$ac_cs_recheck; then
17257 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17260 CONFIG_SHELL='$SHELL'
17261 export CONFIG_SHELL
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17270 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17271 @%:@@%:@ Running $as_me. @%:@@%:@
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283 # The HP-UX ksh and POSIX shell print the target directory to stdout
17284 # if CDPATH is set.
17285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17287 sed_quote_subst='$sed_quote_subst'
17288 double_quote_subst='$double_quote_subst'
17289 delay_variable_subst='$delay_variable_subst'
17290 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17291 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17292 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17293 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17294 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17295 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17296 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17297 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17298 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17299 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17300 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17301 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17302 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17303 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17304 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17305 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17306 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17307 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17308 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17309 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17310 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17311 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17312 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17313 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17314 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17315 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17316 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17317 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17318 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17319 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17320 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17321 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17322 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17323 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17324 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17325 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17326 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17327 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17328 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17329 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17330 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17331 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17332 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17334 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"`'
17335 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"`'
17336 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17337 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17338 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17339 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17340 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17341 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17342 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17343 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17344 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17345 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17346 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17347 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17348 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17349 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17350 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17351 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17352 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17353 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17354 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17355 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17356 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17357 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17358 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17359 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17360 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17361 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17362 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17363 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17364 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17365 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17366 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17367 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17368 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17369 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17370 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17371 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17372 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17373 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17374 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17375 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17376 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17377 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17378 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17379 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17380 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17381 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17382 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17383 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17384 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17385 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17386 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17387 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17388 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17389 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17390 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17391 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17392 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17393 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17394 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17395 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17396 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17397 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17398 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17399 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17400 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17401 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17402 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17403 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17404 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17405 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17406 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17407 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17408 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17409 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17410 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17411 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17412 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17413 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17414 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17415 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17416 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17417 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17418 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17419 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17420 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17421 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17422 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17423 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17424 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17425 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17426 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17427 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17428 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17429 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17430 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17431 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17432 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17433 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17434 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17435 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17436 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17437 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17438 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17439 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17440 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17441 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17442 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17443 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17444 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17445 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17446 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17447 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17448 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17449 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17450 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17451 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17452 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17453 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17454 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17455 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17456 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17457 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17458 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17459 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17460 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17463 LTCFLAGS='$LTCFLAGS'
17464 compiler='$compiler_DEFAULT'
17466 # Quote evaled strings.
17478 deplibs_check_method \
17487 lt_cv_sys_global_symbol_pipe \
17488 lt_cv_sys_global_symbol_to_cdecl \
17489 lt_cv_sys_global_symbol_to_c_name_address \
17490 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17493 lt_prog_compiler_no_builtin_flag \
17494 lt_prog_compiler_wl \
17495 lt_prog_compiler_pic \
17496 lt_prog_compiler_static \
17497 lt_cv_prog_compiler_c_o \
17505 export_dynamic_flag_spec \
17506 whole_archive_flag_spec \
17507 compiler_needs_object \
17509 allow_undefined_flag \
17510 no_undefined_flag \
17511 hardcode_libdir_flag_spec \
17512 hardcode_libdir_flag_spec_ld \
17513 hardcode_libdir_separator \
17518 variables_saved_for_relink \
17520 library_names_spec \
17525 compiler_lib_search_dirs \
17530 compiler_lib_search_path \
17533 lt_prog_compiler_no_builtin_flag_CXX \
17534 lt_prog_compiler_wl_CXX \
17535 lt_prog_compiler_pic_CXX \
17536 lt_prog_compiler_static_CXX \
17537 lt_cv_prog_compiler_c_o_CXX \
17538 export_dynamic_flag_spec_CXX \
17539 whole_archive_flag_spec_CXX \
17540 compiler_needs_object_CXX \
17542 allow_undefined_flag_CXX \
17543 no_undefined_flag_CXX \
17544 hardcode_libdir_flag_spec_CXX \
17545 hardcode_libdir_flag_spec_ld_CXX \
17546 hardcode_libdir_separator_CXX \
17547 fix_srcfile_path_CXX \
17548 exclude_expsyms_CXX \
17549 include_expsyms_CXX \
17550 file_list_spec_CXX \
17551 compiler_lib_search_dirs_CXX \
17552 predep_objects_CXX \
17553 postdep_objects_CXX \
17556 compiler_lib_search_path_CXX; do
17557 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17558 *[\\\\\\\`\\"\\\$]*)
17559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17567 # Double-quote double-evaled strings.
17568 for var in reload_cmds \
17569 old_postinstall_cmds \
17570 old_postuninstall_cmds \
17572 extract_expsyms_cmds \
17573 old_archive_from_new_cmds \
17574 old_archive_from_expsyms_cmds \
17576 archive_expsym_cmds \
17578 module_expsym_cmds \
17579 export_symbols_cmds \
17582 postuninstall_cmds \
17584 sys_lib_search_path_spec \
17585 sys_lib_dlsearch_path_spec \
17586 old_archive_cmds_CXX \
17587 old_archive_from_new_cmds_CXX \
17588 old_archive_from_expsyms_cmds_CXX \
17590 archive_expsym_cmds_CXX \
17592 module_expsym_cmds_CXX \
17593 export_symbols_cmds_CXX \
17594 prelink_cmds_CXX; do
17595 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17596 *[\\\\\\\`\\"\\\$]*)
17597 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17600 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17605 # Fix-up fallback echo if it was mangled by the above quoting rules.
17607 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17611 ac_aux_dir='$ac_aux_dir'
17612 xsi_shell='$xsi_shell'
17613 lt_shell_append='$lt_shell_append'
17615 # See if we are running on zsh, and set the options which allow our
17616 # commands through without removal of \ escapes INIT.
17617 if test -n "\${ZSH_VERSION+set}" ; then
17618 setopt NO_GLOB_SUBST
17624 TIMESTAMP='$TIMESTAMP'
17632 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17638 # Handling of arguments.
17639 for ac_config_target in $ac_config_targets
17641 case $ac_config_target in
17642 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17643 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17647 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17652 # If the user did not use the arguments to specify the items to instantiate,
17653 # then the envvar interface is used. Set only those that are not.
17654 # We use the long form for the default assignment because of an extremely
17655 # bizarre bug on SunOS 4.1.3.
17656 if $ac_need_defaults; then
17657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17662 # Have a temporary directory for convenience. Make it in the build tree
17663 # simply because there is no reason against having it here, and in addition,
17664 # creating and moving files from /tmp can sometimes cause problems.
17665 # Hook for its removal unless debugging.
17666 # Note that there is a small window in which the directory will not be cleaned:
17667 # after its creation but before its name has been assigned to `$tmp'.
17671 trap 'exit_status=$?
17672 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17674 trap 'as_fn_exit 1' 1 2 13 15
17676 # Create a (secure) tmp directory for tmp files.
17679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17680 test -n "$tmp" && test -d "$tmp"
17683 tmp=./conf$$-$RANDOM
17684 (umask 077 && mkdir "$tmp")
17685 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17687 # Set up the scripts for CONFIG_FILES section.
17688 # No need to generate them if there are no CONFIG_FILES.
17689 # This happens for instance with `./config.status config.h'.
17690 if test -n "$CONFIG_FILES"; then
17693 ac_cr=`echo X | tr X '\015'`
17694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17695 # But we know of no other shell where ac_cr would be empty at this
17696 # point, so we can use a bashism as a fallback.
17697 if test "x$ac_cr" = x; then
17698 eval ac_cr=\$\'\\r\'
17700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17704 ac_cs_awk_cr=$ac_cr
17707 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17712 echo "cat >conf$$subs.awk <<_ACEOF" &&
17713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17715 } >conf$$subs.sh ||
17716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17719 for ac_last_try in false false false false false :; do
17720 . ./conf$$subs.sh ||
17721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17724 if test $ac_delim_n = $ac_delim_num; then
17726 elif $ac_last_try; then
17727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17732 rm -f conf$$subs.sh
17734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17735 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17739 s/^/S["/; s/!.*/"]=/
17749 s/\(.\{148\}\)..*/\1/
17751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17763 s/\(.\{148\}\)..*/\1/
17765 s/["\\]/\\&/g; s/^/"/; s/$/"/
17769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17774 ' <conf$$subs.awk | sed '
17779 ' >>$CONFIG_STATUS || ac_write_fail=1
17780 rm -f conf$$subs.awk
17781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17783 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17784 for (key in S) S_is_set[key] = 1
17790 nfields = split(line, field, "@")
17792 len = length(field[1])
17793 for (i = 2; i < nfields; i++) {
17795 keylen = length(key)
17796 if (S_is_set[key]) {
17798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17799 len += length(value) + length(field[++i])
17810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17815 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17821 # trailing colons and then remove the whole line if VPATH becomes empty
17822 # (actually we leave an empty line to preserve line numbers).
17823 if test "x$srcdir" = x.; then
17824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843 fi # test -n "$CONFIG_FILES"
17845 # Set up the scripts for CONFIG_HEADERS section.
17846 # No need to generate them if there are no CONFIG_HEADERS.
17847 # This happens for instance with `./config.status Makefile'.
17848 if test -n "$CONFIG_HEADERS"; then
17849 cat >"$tmp/defines.awk" <<\_ACAWK ||
17853 # Transform confdefs.h into an awk script `defines.awk', embedded as
17854 # here-document in config.status, that substitutes the proper values into
17855 # config.h.in to produce config.h.
17857 # Create a delimiter string that does not exist in confdefs.h, to ease
17858 # handling of long lines.
17860 for ac_last_try in false false :; do
17861 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17862 if test -z "$ac_t"; then
17864 elif $ac_last_try; then
17865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17871 # For the awk script, D is an array of macro values keyed by name,
17872 # likewise P contains macro parameters if any. Preserve backslash
17873 # newline sequences.
17875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17877 s/.\{148\}/&'"$ac_delim"'/g
17880 s/^[ ]*#[ ]*define[ ][ ]*/ /
17887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17894 D["\1"]=" \3\\\\\\n"\\/p
17896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17901 s/.\{148\}/&'"$ac_delim"'/g
17906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17911 ' <confdefs.h | sed '
17912 s/'"$ac_delim"'/"\\\
17913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17916 for (key in D) D_is_set[key] = 1
17919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17921 split(line, arg, " ")
17922 if (arg[1] == "#") {
17926 defundef = substr(arg[1], 2)
17929 split(mac1, mac2, "(") #)
17931 prefix = substr(line, 1, index(line, defundef) - 1)
17932 if (D_is_set[macro]) {
17933 # Preserve the white space surrounding the "#".
17934 print prefix "define", macro P[macro] D[macro]
17937 # Replace #undef with comments. This is necessary, for example,
17938 # in the case of _POSIX_SOURCE, which is predefined and required
17939 # on some systems where configure will not decide to define it.
17940 if (defundef == "undef") {
17941 print "/*", prefix defundef, macro, "*/"
17949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17951 fi # test -n "$CONFIG_HEADERS"
17954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17959 :[FHLC]) ac_mode=$ac_tag; continue;;
17961 case $ac_mode$ac_tag in
17963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17964 :[FH]-) ac_tag=-:-;;
17965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17982 -) ac_f="$tmp/stdin";;
17983 *) # Look for the file first in the build tree, then in the source tree
17984 # (if the path is not absolute). The absolute path cannot be DOS-style,
17985 # because $ac_f cannot contain `:'.
17989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17994 as_fn_append ac_file_inputs " '$ac_f'"
17997 # Let's still pretend it is `configure' which instantiates (i.e., don't
17998 # use $as_me), people would be surprised to read:
17999 # /* config.h. Generated by config.status. */
18000 configure_input='Generated from '`
18001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18003 if test x"$ac_file" != x-; then
18004 configure_input="$ac_file. $configure_input"
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18006 $as_echo "$as_me: creating $ac_file" >&6;}
18008 # Neutralize special characters interpreted by sed in replacement strings.
18009 case $configure_input in #(
18010 *\&* | *\|* | *\\* )
18011 ac_sed_conf_input=`$as_echo "$configure_input" |
18012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18013 *) ac_sed_conf_input=$configure_input;;
18017 *:-:* | *:-) cat >"$tmp/stdin" \
18018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18023 ac_dir=`$as_dirname -- "$ac_file" ||
18024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18025 X"$ac_file" : 'X\(//\)[^/]' \| \
18026 X"$ac_file" : 'X\(//\)$' \| \
18027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18028 $as_echo X"$ac_file" |
18029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18033 /^X\(\/\/\)[^/].*/{
18046 as_dir="$ac_dir"; as_fn_mkdir_p
18050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18053 # A ".." for each directory in $ac_dir_suffix.
18054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18055 case $ac_top_builddir_sub in
18056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18060 ac_abs_top_builddir=$ac_pwd
18061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18062 # for backward compatibility:
18063 ac_top_builddir=$ac_top_build_prefix
18066 .) # We are building in place.
18068 ac_top_srcdir=$ac_top_builddir_sub
18069 ac_abs_top_srcdir=$ac_pwd ;;
18070 [\\/]* | ?:[\\/]* ) # Absolute name.
18071 ac_srcdir=$srcdir$ac_dir_suffix;
18072 ac_top_srcdir=$srcdir
18073 ac_abs_top_srcdir=$srcdir ;;
18074 *) # Relative name.
18075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18076 ac_top_srcdir=$ac_top_build_prefix$srcdir
18077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18092 ac_MKDIR_P=$MKDIR_P
18094 [\\/$]* | ?:[\\/]* ) ;;
18095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18100 # If the template does not know about datarootdir, expand it.
18101 # FIXME: This hack should be removed a few years after 2.60.
18102 ac_datarootdir_hack=; ac_datarootdir_seen=
18113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18114 *datarootdir*) ac_datarootdir_seen=yes;;
18115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18120 ac_datarootdir_hack='
18121 s&@datadir@&$datadir&g
18122 s&@docdir@&$docdir&g
18123 s&@infodir@&$infodir&g
18124 s&@localedir@&$localedir&g
18125 s&@mandir@&$mandir&g
18126 s&\\\${datarootdir}&$datarootdir&g' ;;
18130 # Neutralize VPATH when `$srcdir' = `.'.
18131 # Shell code in configure.ac might set extrasub.
18132 # FIXME: do we really want to maintain this feature?
18133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18134 ac_sed_extra="$ac_vpsub
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18140 s|@configure_input@|$ac_sed_conf_input|;t t
18141 s&@top_builddir@&$ac_top_builddir_sub&;t t
18142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18143 s&@srcdir@&$ac_srcdir&;t t
18144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18145 s&@top_srcdir@&$ac_top_srcdir&;t t
18146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18147 s&@builddir@&$ac_builddir&;t t
18148 s&@abs_builddir@&$ac_abs_builddir&;t t
18149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18150 s&@INSTALL@&$ac_INSTALL&;t t
18151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18152 $ac_datarootdir_hack
18154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18161 which seems to be undefined. Please make sure it is defined" >&5
18162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18163 which seems to be undefined. Please make sure it is defined" >&2;}
18167 -) cat "$tmp/out" && rm -f "$tmp/out";;
18168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18176 if test x"$ac_file" != x-; then
18178 $as_echo "/* $configure_input */" \
18179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18180 } >"$tmp/config.h" \
18181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18182 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18187 mv "$tmp/config.h" "$ac_file" \
18188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18191 $as_echo "/* $configure_input */" \
18192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18193 || as_fn_error $? "could not create -" "$LINENO" 5
18195 # Compute "$ac_file"'s index in $config_headers.
18198 for _am_header in $config_headers :; do
18199 case $_am_header in
18200 $_am_arg | $_am_arg:* )
18203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18208 X"$_am_arg" : 'X\(//\)[^/]' \| \
18209 X"$_am_arg" : 'X\(//\)$' \| \
18210 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18211 $as_echo X"$_am_arg" |
18212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18216 /^X\(\/\/\)[^/].*/{
18228 s/.*/./; q'`/stamp-h$_am_stamp_count
18231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18232 $as_echo "$as_me: executing $ac_file commands" >&6;}
18237 case $ac_file$ac_mode in
18240 # See if we are running on zsh, and set the options which allow our
18241 # commands through without removal of \ escapes.
18242 if test -n "${ZSH_VERSION+set}" ; then
18243 setopt NO_GLOB_SUBST
18246 cfgfile="${ofile}T"
18247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18250 cat <<_LT_EOF >> "$cfgfile"
18253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18258 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18259 # 2006, 2007, 2008 Free Software Foundation, Inc.
18260 # Written by Gordon Matzigkeit, 1996
18262 # This file is part of GNU Libtool.
18264 # GNU Libtool is free software; you can redistribute it and/or
18265 # modify it under the terms of the GNU General Public License as
18266 # published by the Free Software Foundation; either version 2 of
18267 # the License, or (at your option) any later version.
18269 # As a special exception to the GNU General Public License,
18270 # if you distribute this file as part of a program or library that
18271 # is built using GNU Libtool, you may include this file under the
18272 # same distribution terms that you use for the rest of that program.
18274 # GNU Libtool is distributed in the hope that it will be useful,
18275 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18277 # GNU General Public License for more details.
18279 # You should have received a copy of the GNU General Public License
18280 # along with GNU Libtool; see the file COPYING. If not, a copy
18281 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18282 # obtained by writing to the Free Software Foundation, Inc.,
18283 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18286 # The names of the tagged configurations supported by this script.
18287 available_tags="CXX "
18289 # ### BEGIN LIBTOOL CONFIG
18291 # Which release of libtool.m4 was used?
18292 macro_version=$macro_version
18293 macro_revision=$macro_revision
18295 # Whether or not to build shared libraries.
18296 build_libtool_libs=$enable_shared
18298 # Whether or not to build static libraries.
18299 build_old_libs=$enable_static
18301 # What type of objects to build.
18304 # Whether or not to optimize for fast installation.
18305 fast_install=$enable_fast_install
18308 host_alias=$host_alias
18312 # The build system.
18313 build_alias=$build_alias
18317 # A sed program that does not truncate output.
18320 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18321 Xsed="\$SED -e 1s/^X//"
18323 # A grep program that handles long lines.
18329 # A literal string matcher.
18332 # A BSD- or MS-compatible name lister.
18335 # Whether we need soft or hard links.
18338 # What is the maximum length of a command?
18339 max_cmd_len=$max_cmd_len
18341 # Object file suffix (normally "o").
18344 # Executable file suffix (normally "").
18347 # whether the shell understands "unset".
18350 # turn spaces into newlines.
18353 # turn newlines into spaces.
18356 # How to create reloadable object files.
18357 reload_flag=$lt_reload_flag
18358 reload_cmds=$lt_reload_cmds
18360 # An object symbol dumper.
18361 OBJDUMP=$lt_OBJDUMP
18363 # Method to check whether dependent libraries are shared objects.
18364 deplibs_check_method=$lt_deplibs_check_method
18366 # Command to use when deplibs_check_method == "file_magic".
18367 file_magic_cmd=$lt_file_magic_cmd
18371 AR_FLAGS=$lt_AR_FLAGS
18373 # A symbol stripping program.
18376 # Commands used to install an old-style archive.
18378 old_postinstall_cmds=$lt_old_postinstall_cmds
18379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18384 # LTCC compiler flags.
18385 LTCFLAGS=$lt_CFLAGS
18387 # Take the output of nm and produce a listing of raw symbols and C names.
18388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18390 # Transform the output of nm in a proper C declaration.
18391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18393 # Transform the output of nm in a C name address pair.
18394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18396 # Transform the output of nm in a C name address pair when lib prefix is needed.
18397 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18399 # The name of the directory that contains temporary libtool files.
18402 # Shell to use when invoking shell scripts.
18405 # An echo program that does not interpret backslashes.
18408 # Used to examine libraries when file_magic_cmd begins with "file".
18409 MAGIC_CMD=$MAGIC_CMD
18411 # Must we lock files when doing compilation?
18412 need_locks=$lt_need_locks
18414 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18415 DSYMUTIL=$lt_DSYMUTIL
18417 # Tool to change global to local symbols on Mac OS X.
18420 # Tool to manipulate fat objects and archives on Mac OS X.
18423 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18426 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18427 OTOOL64=$lt_OTOOL64
18429 # Old archive suffix (normally "a").
18432 # Shared library suffix (normally ".so").
18433 shrext_cmds=$lt_shrext_cmds
18435 # The commands to extract the exported symbol list from a shared archive.
18436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18438 # Variables whose values should be saved in libtool wrapper scripts and
18439 # restored at link time.
18440 variables_saved_for_relink=$lt_variables_saved_for_relink
18442 # Do we need the "lib" prefix for modules?
18443 need_lib_prefix=$need_lib_prefix
18445 # Do we need a version for libraries?
18446 need_version=$need_version
18448 # Library versioning type.
18449 version_type=$version_type
18451 # Shared library runtime path variable.
18452 runpath_var=$runpath_var
18454 # Shared library path variable.
18455 shlibpath_var=$shlibpath_var
18457 # Is shlibpath searched before the hard-coded library search path?
18458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18460 # Format of library name prefix.
18461 libname_spec=$lt_libname_spec
18463 # List of archive names. First name is the real one, the rest are links.
18464 # The last name is the one that the linker finds with -lNAME
18465 library_names_spec=$lt_library_names_spec
18467 # The coded name of the library, if different from the real name.
18468 soname_spec=$lt_soname_spec
18470 # Command to use after installation of a shared archive.
18471 postinstall_cmds=$lt_postinstall_cmds
18473 # Command to use after uninstallation of a shared archive.
18474 postuninstall_cmds=$lt_postuninstall_cmds
18476 # Commands used to finish a libtool library installation in a directory.
18477 finish_cmds=$lt_finish_cmds
18479 # As "finish_cmds", except a single script fragment to be evaled but
18481 finish_eval=$lt_finish_eval
18483 # Whether we should hardcode library paths into libraries.
18484 hardcode_into_libs=$hardcode_into_libs
18486 # Compile-time system search path for libraries.
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489 # Run-time system search path for libraries.
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492 # Whether dlopen is supported.
18493 dlopen_support=$enable_dlopen
18495 # Whether dlopen of programs is supported.
18496 dlopen_self=$enable_dlopen_self
18498 # Whether dlopen of statically linked programs is supported.
18499 dlopen_self_static=$enable_dlopen_self_static
18501 # Commands to strip libraries.
18502 old_striplib=$lt_old_striplib
18503 striplib=$lt_striplib
18506 # The linker used to build libraries.
18509 # Commands used to build an old-style archive.
18510 old_archive_cmds=$lt_old_archive_cmds
18512 # A language specific compiler.
18515 # Is the compiler the GNU compiler?
18518 # Compiler flag to turn off builtin functions.
18519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18521 # How to pass a linker flag through the compiler.
18522 wl=$lt_lt_prog_compiler_wl
18524 # Additional compiler flags for building library objects.
18525 pic_flag=$lt_lt_prog_compiler_pic
18527 # Compiler flag to prevent dynamic linking.
18528 link_static_flag=$lt_lt_prog_compiler_static
18530 # Does compiler simultaneously support -c and -o options?
18531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18533 # Whether or not to add -lc for building shared libraries.
18534 build_libtool_need_lc=$archive_cmds_need_lc
18536 # Whether or not to disallow shared libs when runtime libs are static.
18537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18539 # Compiler flag to allow reflexive dlopens.
18540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18542 # Compiler flag to generate shared objects directly from archives.
18543 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18545 # Whether the compiler copes with passing no objects directly.
18546 compiler_needs_object=$lt_compiler_needs_object
18548 # Create an old-style archive from a shared archive.
18549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18551 # Create a temporary old-style archive to link instead of a shared archive.
18552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18554 # Commands used to build a shared archive.
18555 archive_cmds=$lt_archive_cmds
18556 archive_expsym_cmds=$lt_archive_expsym_cmds
18558 # Commands used to build a loadable module if different from building
18559 # a shared archive.
18560 module_cmds=$lt_module_cmds
18561 module_expsym_cmds=$lt_module_expsym_cmds
18563 # Whether we are building with GNU ld or not.
18564 with_gnu_ld=$lt_with_gnu_ld
18566 # Flag that allows shared libraries with undefined symbols to be built.
18567 allow_undefined_flag=$lt_allow_undefined_flag
18569 # Flag that enforces no undefined symbols.
18570 no_undefined_flag=$lt_no_undefined_flag
18572 # Flag to hardcode \$libdir into a binary during linking.
18573 # This must work even if \$libdir does not exist
18574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18576 # If ld is used when linking, flag to hardcode \$libdir into a binary
18577 # during linking. This must work even if \$libdir does not exist.
18578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18580 # Whether we need a single "-rpath" flag with a separated argument.
18581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18584 # DIR into the resulting binary.
18585 hardcode_direct=$hardcode_direct
18587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18588 # DIR into the resulting binary and the resulting library dependency is
18589 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18590 # library is relocated.
18591 hardcode_direct_absolute=$hardcode_direct_absolute
18593 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18594 # into the resulting binary.
18595 hardcode_minus_L=$hardcode_minus_L
18597 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18598 # into the resulting binary.
18599 hardcode_shlibpath_var=$hardcode_shlibpath_var
18601 # Set to "yes" if building a shared library automatically hardcodes DIR
18602 # into the library and all subsequent libraries and executables linked
18604 hardcode_automatic=$hardcode_automatic
18606 # Set to yes if linker adds runtime paths of dependent libraries
18607 # to runtime path list.
18608 inherit_rpath=$inherit_rpath
18610 # Whether libtool must link a program against all its dependency libraries.
18611 link_all_deplibs=$link_all_deplibs
18613 # Fix the shell variable \$srcfile for the compiler.
18614 fix_srcfile_path=$lt_fix_srcfile_path
18616 # Set to "yes" if exported symbols are required.
18617 always_export_symbols=$always_export_symbols
18619 # The commands to list exported symbols.
18620 export_symbols_cmds=$lt_export_symbols_cmds
18622 # Symbols that should not be listed in the preloaded symbols.
18623 exclude_expsyms=$lt_exclude_expsyms
18625 # Symbols that must always be exported.
18626 include_expsyms=$lt_include_expsyms
18628 # Commands necessary for linking programs (against libraries) with templates.
18629 prelink_cmds=$lt_prelink_cmds
18631 # Specify filename containing input files.
18632 file_list_spec=$lt_file_list_spec
18634 # How to hardcode a shared library path into an executable.
18635 hardcode_action=$hardcode_action
18637 # The directories searched by this compiler when creating a shared library.
18638 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18640 # Dependencies to place before and after the objects being linked to
18641 # create a shared library.
18642 predep_objects=$lt_predep_objects
18643 postdep_objects=$lt_postdep_objects
18644 predeps=$lt_predeps
18645 postdeps=$lt_postdeps
18647 # The library search path used internally by the compiler when linking
18648 # a shared library.
18649 compiler_lib_search_path=$lt_compiler_lib_search_path
18651 # ### END LIBTOOL CONFIG
18657 cat <<\_LT_EOF >> "$cfgfile"
18658 # AIX sometimes has problems with the GCC collect2 program. For some
18659 # reason, if we set the COLLECT_NAMES environment variable, the problems
18660 # vanish in a puff of smoke.
18661 if test "X${COLLECT_NAMES+set}" != Xset; then
18663 export COLLECT_NAMES
18670 ltmain="$ac_aux_dir/ltmain.sh"
18673 # We use sed instead of cat because bash on DJGPP gets confused if
18674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18675 # text mode, it properly converts lines to CR/LF. This bash problem
18676 # is reportedly fixed, but why not run on old versions too?
18677 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18678 || (rm -f "$cfgfile"; exit 1)
18682 cat << \_LT_EOF >> "$cfgfile"
18684 # func_dirname file append nondir_replacement
18685 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18686 # otherwise set result to NONDIR_REPLACEMENT.
18690 */*) func_dirname_result="${1%/*}${2}" ;;
18691 * ) func_dirname_result="${3}" ;;
18695 # func_basename file
18698 func_basename_result="${1##*/}"
18701 # func_dirname_and_basename file append nondir_replacement
18702 # perform func_basename and func_dirname in a single function
18704 # dirname: Compute the dirname of FILE. If nonempty,
18705 # add APPEND to the result, otherwise set result
18706 # to NONDIR_REPLACEMENT.
18707 # value returned in "$func_dirname_result"
18708 # basename: Compute filename of FILE.
18709 # value retuned in "$func_basename_result"
18710 # Implementation must be kept synchronized with func_dirname
18711 # and func_basename. For efficiency, we do not delegate to
18712 # those functions but instead duplicate the functionality here.
18713 func_dirname_and_basename ()
18716 */*) func_dirname_result="${1%/*}${2}" ;;
18717 * ) func_dirname_result="${3}" ;;
18719 func_basename_result="${1##*/}"
18722 # func_stripname prefix suffix name
18723 # strip PREFIX and SUFFIX off of NAME.
18724 # PREFIX and SUFFIX must not contain globbing or regex special
18725 # characters, hashes, percent signs, but SUFFIX may contain a leading
18726 # dot (in which case that matches only a dot).
18729 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18730 # positional parameters, so assign one to ordinary parameter first.
18731 func_stripname_result=${3}
18732 func_stripname_result=${func_stripname_result#"${1}"}
18733 func_stripname_result=${func_stripname_result%"${2}"}
18739 func_opt_split_opt=${1%%=*}
18740 func_opt_split_arg=${1#*=}
18747 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18748 *) func_lo2o_result=${1} ;;
18752 # func_xform libobj-or-source
18755 func_xform_result=${1%.*}.lo
18758 # func_arith arithmetic-term...
18761 func_arith_result=$(( $* ))
18765 # STRING may not start with a hyphen.
18768 func_len_result=${#1}
18773 *) # Bourne compatible functions.
18774 cat << \_LT_EOF >> "$cfgfile"
18776 # func_dirname file append nondir_replacement
18777 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18778 # otherwise set result to NONDIR_REPLACEMENT.
18781 # Extract subdirectory from the argument.
18782 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18783 if test "X$func_dirname_result" = "X${1}"; then
18784 func_dirname_result="${3}"
18786 func_dirname_result="$func_dirname_result${2}"
18790 # func_basename file
18793 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18797 # func_stripname prefix suffix name
18798 # strip PREFIX and SUFFIX off of NAME.
18799 # PREFIX and SUFFIX must not contain globbing or regex special
18800 # characters, hashes, percent signs, but SUFFIX may contain a leading
18801 # dot (in which case that matches only a dot).
18802 # func_strip_suffix prefix name
18806 .*) func_stripname_result=`$ECHO "X${3}" \
18807 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18808 *) func_stripname_result=`$ECHO "X${3}" \
18809 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18814 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18815 my_sed_long_arg='1s/^-[^=]*=//'
18820 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18821 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18827 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18830 # func_xform libobj-or-source
18833 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18836 # func_arith arithmetic-term...
18839 func_arith_result=`expr "$@"`
18843 # STRING may not start with a hyphen.
18846 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18852 case $lt_shell_append in
18854 cat << \_LT_EOF >> "$cfgfile"
18856 # func_append var value
18857 # Append VALUE to the end of shell variable VAR.
18865 cat << \_LT_EOF >> "$cfgfile"
18867 # func_append var value
18868 # Append VALUE to the end of shell variable VAR.
18879 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18880 || (rm -f "$cfgfile"; exit 1)
18882 mv -f "$cfgfile" "$ofile" ||
18883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18887 cat <<_LT_EOF >> "$ofile"
18889 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18891 # The linker used to build libraries.
18894 # Commands used to build an old-style archive.
18895 old_archive_cmds=$lt_old_archive_cmds_CXX
18897 # A language specific compiler.
18898 CC=$lt_compiler_CXX
18900 # Is the compiler the GNU compiler?
18903 # Compiler flag to turn off builtin functions.
18904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18906 # How to pass a linker flag through the compiler.
18907 wl=$lt_lt_prog_compiler_wl_CXX
18909 # Additional compiler flags for building library objects.
18910 pic_flag=$lt_lt_prog_compiler_pic_CXX
18912 # Compiler flag to prevent dynamic linking.
18913 link_static_flag=$lt_lt_prog_compiler_static_CXX
18915 # Does compiler simultaneously support -c and -o options?
18916 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18918 # Whether or not to add -lc for building shared libraries.
18919 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18921 # Whether or not to disallow shared libs when runtime libs are static.
18922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18924 # Compiler flag to allow reflexive dlopens.
18925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18927 # Compiler flag to generate shared objects directly from archives.
18928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18930 # Whether the compiler copes with passing no objects directly.
18931 compiler_needs_object=$lt_compiler_needs_object_CXX
18933 # Create an old-style archive from a shared archive.
18934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18936 # Create a temporary old-style archive to link instead of a shared archive.
18937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18939 # Commands used to build a shared archive.
18940 archive_cmds=$lt_archive_cmds_CXX
18941 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18943 # Commands used to build a loadable module if different from building
18944 # a shared archive.
18945 module_cmds=$lt_module_cmds_CXX
18946 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18948 # Whether we are building with GNU ld or not.
18949 with_gnu_ld=$lt_with_gnu_ld_CXX
18951 # Flag that allows shared libraries with undefined symbols to be built.
18952 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18954 # Flag that enforces no undefined symbols.
18955 no_undefined_flag=$lt_no_undefined_flag_CXX
18957 # Flag to hardcode \$libdir into a binary during linking.
18958 # This must work even if \$libdir does not exist
18959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18961 # If ld is used when linking, flag to hardcode \$libdir into a binary
18962 # during linking. This must work even if \$libdir does not exist.
18963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18965 # Whether we need a single "-rpath" flag with a separated argument.
18966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18968 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18969 # DIR into the resulting binary.
18970 hardcode_direct=$hardcode_direct_CXX
18972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18973 # DIR into the resulting binary and the resulting library dependency is
18974 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18975 # library is relocated.
18976 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18978 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18979 # into the resulting binary.
18980 hardcode_minus_L=$hardcode_minus_L_CXX
18982 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18983 # into the resulting binary.
18984 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18986 # Set to "yes" if building a shared library automatically hardcodes DIR
18987 # into the library and all subsequent libraries and executables linked
18989 hardcode_automatic=$hardcode_automatic_CXX
18991 # Set to yes if linker adds runtime paths of dependent libraries
18992 # to runtime path list.
18993 inherit_rpath=$inherit_rpath_CXX
18995 # Whether libtool must link a program against all its dependency libraries.
18996 link_all_deplibs=$link_all_deplibs_CXX
18998 # Fix the shell variable \$srcfile for the compiler.
18999 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19001 # Set to "yes" if exported symbols are required.
19002 always_export_symbols=$always_export_symbols_CXX
19004 # The commands to list exported symbols.
19005 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19007 # Symbols that should not be listed in the preloaded symbols.
19008 exclude_expsyms=$lt_exclude_expsyms_CXX
19010 # Symbols that must always be exported.
19011 include_expsyms=$lt_include_expsyms_CXX
19013 # Commands necessary for linking programs (against libraries) with templates.
19014 prelink_cmds=$lt_prelink_cmds_CXX
19016 # Specify filename containing input files.
19017 file_list_spec=$lt_file_list_spec_CXX
19019 # How to hardcode a shared library path into an executable.
19020 hardcode_action=$hardcode_action_CXX
19022 # The directories searched by this compiler when creating a shared library.
19023 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19025 # Dependencies to place before and after the objects being linked to
19026 # create a shared library.
19027 predep_objects=$lt_predep_objects_CXX
19028 postdep_objects=$lt_postdep_objects_CXX
19029 predeps=$lt_predeps_CXX
19030 postdeps=$lt_postdeps_CXX
19032 # The library search path used internally by the compiler when linking
19033 # a shared library.
19034 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19036 # ### END LIBTOOL TAG CONFIG: CXX
19040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19041 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19042 # are listed without --file. Let's play safe and only enable the eval
19043 # if we detect the quoting.
19044 case $CONFIG_FILES in
19045 *\'*) eval set x "$CONFIG_FILES" ;;
19046 *) set x $CONFIG_FILES ;;
19051 # Strip MF so we end up with the name of the file.
19052 mf=`echo "$mf" | sed -e 's/:.*$//'`
19053 # Check whether this is an Automake generated Makefile or not.
19054 # We used to match only the files named `Makefile.in', but
19055 # some people rename them; so instead we look at the file content.
19056 # Grep'ing the first line is not enough: some people post-process
19057 # each Makefile.in and add a new line on top of each file to say so.
19058 # Grep'ing the whole file is not good either: AIX grep has a line
19059 # limit of 2048, but all sed's we know have understand at least 4000.
19060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19061 dirpart=`$as_dirname -- "$mf" ||
19062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19063 X"$mf" : 'X\(//\)[^/]' \| \
19064 X"$mf" : 'X\(//\)$' \| \
19065 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19071 /^X\(\/\/\)[^/].*/{
19087 # Extract the definition of DEPDIR, am__include, and am__quote
19088 # from the Makefile without running `make'.
19089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19090 test -z "$DEPDIR" && continue
19091 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19092 test -z "am__include" && continue
19093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19094 # When using ansi2knr, U may be empty or an underscore; expand it
19095 U=`sed -n 's/^U = //p' < "$mf"`
19096 # Find all dependency output files, they are included files with
19097 # $(DEPDIR) in their names. We invoke sed twice because it is the
19098 # simplest approach to changing $(DEPDIR) to its actual value in the
19100 for file in `sed -n "
19101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19103 # Make sure the directory exists.
19104 test -f "$dirpart/$file" && continue
19105 fdir=`$as_dirname -- "$file" ||
19106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19107 X"$file" : 'X\(//\)[^/]' \| \
19108 X"$file" : 'X\(//\)$' \| \
19109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19110 $as_echo X"$file" |
19111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19115 /^X\(\/\/\)[^/].*/{
19128 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19129 # echo "creating $dirpart/$file"
19130 echo '# dummy' > "$dirpart/$file"
19142 ac_clean_files=$ac_clean_files_save
19144 test $ac_write_fail = 0 ||
19145 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19148 # configure is writing to config.log, and then calls config.status.
19149 # config.status does its own redirection, appending to config.log.
19150 # Unfortunately, on DOS this fails, as config.log is still kept open
19151 # by configure, so config.status won't be able to write to it; its
19152 # output is simply discarded. So we exec the FD to /dev/null,
19153 # effectively closing config.log, so it can be properly (re)opened and
19154 # appended to by config.status. When coming back to configure, we
19155 # need to make the FD available again.
19156 if test "$no_create" != yes; then
19158 ac_config_status_args=
19159 test "$silent" = yes &&
19160 ac_config_status_args="$ac_config_status_args --quiet"
19162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19165 # would make configure fail if this is the last instruction.
19166 $ac_cs_success || as_fn_exit 1
19168 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19170 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}